@elevenlabs/elevenlabs-js 2.12.1 → 2.13.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 (220) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +147 -0
  3. package/api/resources/conversationalAi/resources/tests/client/Client.js +537 -0
  4. package/api/resources/conversationalAi/resources/tests/client/index.d.ts +2 -0
  5. package/api/resources/conversationalAi/resources/tests/client/index.js +17 -0
  6. package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +37 -0
  7. package/api/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
  8. package/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +21 -0
  9. package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +37 -0
  10. package/api/resources/conversationalAi/resources/tests/client/requests/index.d.ts +4 -0
  11. package/api/resources/conversationalAi/resources/tests/client/requests/index.js +2 -0
  12. package/api/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  13. package/api/resources/conversationalAi/resources/tests/index.js +19 -0
  14. package/api/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  15. package/api/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  16. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +63 -0
  17. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +201 -0
  18. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +2 -0
  19. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
  20. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
  21. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +5 -0
  22. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  23. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +2 -0
  24. package/api/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  25. package/api/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  26. package/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  27. package/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
  28. package/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  29. package/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
  30. package/api/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  31. package/api/resources/conversationalAi/resources/tests/types/index.js +18 -0
  32. package/api/resources/dubbing/resources/resource/client/Client.js +18 -1
  33. package/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +4 -0
  34. package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +2 -0
  35. package/api/resources/workspace/resources/members/client/Client.d.ts +0 -15
  36. package/api/resources/workspace/resources/members/client/Client.js +0 -77
  37. package/api/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
  38. package/api/types/AgentMetadataResponseModel.d.ts +2 -0
  39. package/api/types/InvoiceResponse.d.ts +3 -0
  40. package/api/types/InvoiceResponseModelPaymentIntentStatus.d.ts +13 -0
  41. package/api/types/InvoiceResponseModelPaymentIntentStatus.js +15 -0
  42. package/api/types/Subscription.d.ts +2 -0
  43. package/api/types/TtsConversationalConfigOverride.d.ts +6 -0
  44. package/api/types/TtsConversationalConfigOverrideConfig.d.ts +6 -0
  45. package/api/types/Voice.d.ts +2 -0
  46. package/api/types/VoicePreviewResponseModel.d.ts +2 -0
  47. package/api/types/index.d.ts +1 -1
  48. package/api/types/index.js +1 -1
  49. package/dist/Client.js +2 -2
  50. package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +147 -0
  51. package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +537 -0
  52. package/dist/api/resources/conversationalAi/resources/tests/client/index.d.ts +2 -0
  53. package/dist/api/resources/conversationalAi/resources/tests/client/index.js +17 -0
  54. package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +37 -0
  55. package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +5 -0
  56. package/dist/api/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
  57. package/dist/api/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js +5 -0
  58. package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +21 -0
  59. package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.js +5 -0
  60. package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +37 -0
  61. package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +5 -0
  62. package/dist/api/resources/conversationalAi/resources/tests/client/requests/index.d.ts +4 -0
  63. package/dist/api/resources/conversationalAi/resources/tests/client/requests/index.js +2 -0
  64. package/dist/api/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  65. package/dist/api/resources/conversationalAi/resources/tests/index.js +19 -0
  66. package/dist/api/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  67. package/dist/api/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  68. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +63 -0
  69. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +201 -0
  70. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +2 -0
  71. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
  72. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
  73. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +5 -0
  74. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  75. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +2 -0
  76. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  77. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  78. package/dist/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  79. package/dist/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
  80. package/dist/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
  81. package/dist/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
  82. package/dist/api/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  83. package/dist/api/resources/conversationalAi/resources/tests/types/index.js +18 -0
  84. package/dist/api/resources/dubbing/resources/resource/client/Client.js +18 -1
  85. package/dist/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +4 -0
  86. package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +2 -0
  87. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +0 -15
  88. package/dist/api/resources/workspace/resources/members/client/Client.js +0 -77
  89. package/dist/api/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
  90. package/dist/api/types/AgentMetadataResponseModel.d.ts +2 -0
  91. package/dist/api/types/InvoiceResponse.d.ts +3 -0
  92. package/dist/api/types/InvoiceResponseModelPaymentIntentStatus.d.ts +13 -0
  93. package/dist/api/types/InvoiceResponseModelPaymentIntentStatus.js +15 -0
  94. package/dist/api/types/Subscription.d.ts +2 -0
  95. package/dist/api/types/TtsConversationalConfigOverride.d.ts +6 -0
  96. package/dist/api/types/TtsConversationalConfigOverrideConfig.d.ts +6 -0
  97. package/dist/api/types/Voice.d.ts +2 -0
  98. package/dist/api/types/VoicePreviewResponseModel.d.ts +2 -0
  99. package/dist/api/types/index.d.ts +1 -1
  100. package/dist/api/types/index.js +1 -1
  101. package/dist/serialization/resources/conversationalAi/resources/tests/client/index.d.ts +1 -0
  102. package/dist/serialization/resources/conversationalAi/resources/tests/client/index.js +17 -0
  103. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +23 -0
  104. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +56 -0
  105. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
  106. package/dist/serialization/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js} +3 -3
  107. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +23 -0
  108. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +56 -0
  109. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/index.d.ts +3 -0
  110. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/index.js +9 -0
  111. package/dist/serialization/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  112. package/dist/serialization/resources/conversationalAi/resources/tests/index.js +19 -0
  113. package/dist/serialization/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  114. package/dist/serialization/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  115. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +1 -0
  116. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
  117. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
  118. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +46 -0
  119. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  120. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +5 -0
  121. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  122. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  123. package/dist/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  124. package/dist/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
  125. package/dist/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  126. package/dist/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
  127. package/dist/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  128. package/dist/serialization/resources/conversationalAi/resources/tests/types/index.js +18 -0
  129. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +1 -1
  130. package/dist/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -0
  131. package/dist/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.js +1 -0
  132. package/dist/serialization/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
  133. package/dist/serialization/resources/workspace/resources/members/client/requests/index.js +1 -3
  134. package/dist/serialization/types/AgentMetadataResponseModel.d.ts +1 -0
  135. package/dist/serialization/types/AgentMetadataResponseModel.js +1 -0
  136. package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
  137. package/dist/serialization/types/InvoiceResponse.js +2 -0
  138. package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatus.d.ts +10 -0
  139. package/dist/serialization/types/{DeleteWorkspaceMemberResponseModel.js → InvoiceResponseModelPaymentIntentStatus.js} +10 -4
  140. package/dist/serialization/types/Subscription.d.ts +1 -0
  141. package/dist/serialization/types/Subscription.js +1 -0
  142. package/dist/serialization/types/TtsConversationalConfigOverride.d.ts +3 -0
  143. package/dist/serialization/types/TtsConversationalConfigOverride.js +3 -0
  144. package/dist/serialization/types/TtsConversationalConfigOverrideConfig.d.ts +3 -0
  145. package/dist/serialization/types/TtsConversationalConfigOverrideConfig.js +3 -0
  146. package/dist/serialization/types/Voice.d.ts +1 -0
  147. package/dist/serialization/types/Voice.js +1 -0
  148. package/dist/serialization/types/VoicePreviewResponseModel.d.ts +1 -0
  149. package/dist/serialization/types/VoicePreviewResponseModel.js +1 -0
  150. package/dist/serialization/types/index.d.ts +1 -1
  151. package/dist/serialization/types/index.js +1 -1
  152. package/dist/version.d.ts +1 -1
  153. package/dist/version.js +1 -1
  154. package/package.json +1 -1
  155. package/reference.md +0 -65
  156. package/serialization/resources/conversationalAi/resources/tests/client/index.d.ts +1 -0
  157. package/serialization/resources/conversationalAi/resources/tests/client/index.js +17 -0
  158. package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +23 -0
  159. package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +56 -0
  160. package/serialization/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
  161. package/serialization/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js} +3 -3
  162. package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +23 -0
  163. package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +56 -0
  164. package/serialization/resources/conversationalAi/resources/tests/client/requests/index.d.ts +3 -0
  165. package/serialization/resources/conversationalAi/resources/tests/client/requests/index.js +9 -0
  166. package/serialization/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  167. package/serialization/resources/conversationalAi/resources/tests/index.js +19 -0
  168. package/serialization/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  169. package/serialization/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  170. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +1 -0
  171. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
  172. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
  173. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +46 -0
  174. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  175. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +5 -0
  176. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  177. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  178. package/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  179. package/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
  180. package/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  181. package/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
  182. package/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  183. package/serialization/resources/conversationalAi/resources/tests/types/index.js +18 -0
  184. package/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +1 -1
  185. package/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -0
  186. package/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.js +1 -0
  187. package/serialization/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
  188. package/serialization/resources/workspace/resources/members/client/requests/index.js +1 -3
  189. package/serialization/types/AgentMetadataResponseModel.d.ts +1 -0
  190. package/serialization/types/AgentMetadataResponseModel.js +1 -0
  191. package/serialization/types/InvoiceResponse.d.ts +2 -0
  192. package/serialization/types/InvoiceResponse.js +2 -0
  193. package/serialization/types/InvoiceResponseModelPaymentIntentStatus.d.ts +10 -0
  194. package/serialization/types/{DeleteWorkspaceMemberResponseModel.js → InvoiceResponseModelPaymentIntentStatus.js} +10 -4
  195. package/serialization/types/Subscription.d.ts +1 -0
  196. package/serialization/types/Subscription.js +1 -0
  197. package/serialization/types/TtsConversationalConfigOverride.d.ts +3 -0
  198. package/serialization/types/TtsConversationalConfigOverride.js +3 -0
  199. package/serialization/types/TtsConversationalConfigOverrideConfig.d.ts +3 -0
  200. package/serialization/types/TtsConversationalConfigOverrideConfig.js +3 -0
  201. package/serialization/types/Voice.d.ts +1 -0
  202. package/serialization/types/Voice.js +1 -0
  203. package/serialization/types/VoicePreviewResponseModel.d.ts +1 -0
  204. package/serialization/types/VoicePreviewResponseModel.js +1 -0
  205. package/serialization/types/index.d.ts +1 -1
  206. package/serialization/types/index.js +1 -1
  207. package/version.d.ts +1 -1
  208. package/version.js +1 -1
  209. package/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -13
  210. package/api/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -7
  211. package/dist/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -13
  212. package/dist/api/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -7
  213. package/dist/serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -12
  214. package/dist/serialization/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -12
  215. package/serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -12
  216. package/serialization/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -12
  217. /package/api/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js} +0 -0
  218. /package/api/{types/DeleteWorkspaceMemberResponseModel.js → resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js} +0 -0
  219. /package/{dist/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.js} +0 -0
  220. /package/{dist/api/types/DeleteWorkspaceMemberResponseModel.js → api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js} +0 -0
@@ -1,2 +1 @@
1
1
  export { type UpdateMemberRequest } from "./UpdateMemberRequest";
2
- export { type BodyDeleteMemberV1WorkspaceMembersDelete } from "./BodyDeleteMemberV1WorkspaceMembersDelete";
@@ -4,4 +4,6 @@
4
4
  export interface AgentMetadataResponseModel {
5
5
  /** The creation time of the agent in unix seconds */
6
6
  createdAtUnixSecs: number;
7
+ /** The last update time of the agent in unix seconds */
8
+ updatedAtUnixSecs: number;
7
9
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as ElevenLabs from "../index";
4
5
  export interface InvoiceResponse {
5
6
  /** The amount due in cents. */
6
7
  amountDueCents: number;
@@ -10,4 +11,6 @@ export interface InvoiceResponse {
10
11
  discountAmountOff?: number;
11
12
  /** The Unix timestamp of the next payment attempt. */
12
13
  nextPaymentAttemptUnix: number;
14
+ /** The status of this invoice's payment intent. None when there is no payment intent. */
15
+ paymentIntentStatus?: ElevenLabs.InvoiceResponseModelPaymentIntentStatus;
13
16
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type InvoiceResponseModelPaymentIntentStatus = "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
5
+ export declare const InvoiceResponseModelPaymentIntentStatus: {
6
+ readonly Canceled: "canceled";
7
+ readonly Processing: "processing";
8
+ readonly RequiresAction: "requires_action";
9
+ readonly RequiresCapture: "requires_capture";
10
+ readonly RequiresConfirmation: "requires_confirmation";
11
+ readonly RequiresPaymentMethod: "requires_payment_method";
12
+ readonly Succeeded: "succeeded";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InvoiceResponseModelPaymentIntentStatus = void 0;
7
+ exports.InvoiceResponseModelPaymentIntentStatus = {
8
+ Canceled: "canceled",
9
+ Processing: "processing",
10
+ RequiresAction: "requires_action",
11
+ RequiresCapture: "requires_capture",
12
+ RequiresConfirmation: "requires_confirmation",
13
+ RequiresPaymentMethod: "requires_payment_method",
14
+ Succeeded: "succeeded",
15
+ };
@@ -45,6 +45,8 @@ export interface Subscription {
45
45
  characterRefreshPeriod?: ElevenLabs.ExtendedSubscriptionResponseModelCharacterRefreshPeriod;
46
46
  /** The next invoice for the user. */
47
47
  nextInvoice?: ElevenLabs.InvoiceResponse;
48
+ /** The open invoices for the user. */
49
+ openInvoices: ElevenLabs.InvoiceResponse[];
48
50
  /** Whether the user has open invoices. */
49
51
  hasOpenInvoices: boolean;
50
52
  /** The pending change for the user. */
@@ -4,4 +4,10 @@
4
4
  export interface TtsConversationalConfigOverride {
5
5
  /** The voice ID to use for TTS */
6
6
  voiceId?: string;
7
+ /** The stability of generated speech */
8
+ stability?: number;
9
+ /** The speed of generated speech */
10
+ speed?: number;
11
+ /** The similarity boost for generated speech */
12
+ similarityBoost?: number;
7
13
  }
@@ -4,4 +4,10 @@
4
4
  export interface TtsConversationalConfigOverrideConfig {
5
5
  /** Whether to allow overriding the voice_id field. */
6
6
  voiceId?: boolean;
7
+ /** Whether to allow overriding the stability field. */
8
+ stability?: boolean;
9
+ /** Whether to allow overriding the speed field. */
10
+ speed?: boolean;
11
+ /** Whether to allow overriding the similarity_boost field. */
12
+ similarityBoost?: boolean;
7
13
  }
@@ -41,6 +41,8 @@ export interface Voice {
41
41
  isLegacy?: boolean;
42
42
  /** Whether the voice is mixed. */
43
43
  isMixed?: boolean;
44
+ /** Timestamp when the voice was marked as favorite in Unix time. */
45
+ favoritedAtUnix?: number;
44
46
  /** The creation time of the voice in Unix time. */
45
47
  createdAtUnix?: number;
46
48
  }
@@ -10,4 +10,6 @@ export interface VoicePreviewResponseModel {
10
10
  mediaType: string;
11
11
  /** The duration of the preview in seconds. */
12
12
  durationSecs: number;
13
+ /** The language of the preview. */
14
+ language?: string;
13
15
  }
@@ -190,7 +190,6 @@ export * from "./DeleteVoiceResponseModel";
190
190
  export * from "./DeleteVoiceSampleResponseModel";
191
191
  export * from "./DeleteWorkspaceGroupMemberResponseModel";
192
192
  export * from "./DeleteWorkspaceInviteResponseModel";
193
- export * from "./DeleteWorkspaceMemberResponseModel";
194
193
  export * from "./DependentAvailableAgentIdentifierAccessLevel";
195
194
  export * from "./DependentAvailableAgentIdentifier";
196
195
  export * from "./DependentAvailableToolIdentifierAccessLevel";
@@ -294,6 +293,7 @@ export * from "./HtmlExportOptions";
294
293
  export * from "./ImageAvatar";
295
294
  export * from "./InboundSipTrunkConfigRequestModel";
296
295
  export * from "./IntegrationType";
296
+ export * from "./InvoiceResponseModelPaymentIntentStatus";
297
297
  export * from "./InvoiceResponse";
298
298
  export * from "./KnowledgeBaseDocumentChunkResponseModel";
299
299
  export * from "./KnowledgeBaseDocumentMetadataResponseModel";
@@ -206,7 +206,6 @@ __exportStar(require("./DeleteVoiceResponseModel"), exports);
206
206
  __exportStar(require("./DeleteVoiceSampleResponseModel"), exports);
207
207
  __exportStar(require("./DeleteWorkspaceGroupMemberResponseModel"), exports);
208
208
  __exportStar(require("./DeleteWorkspaceInviteResponseModel"), exports);
209
- __exportStar(require("./DeleteWorkspaceMemberResponseModel"), exports);
210
209
  __exportStar(require("./DependentAvailableAgentIdentifierAccessLevel"), exports);
211
210
  __exportStar(require("./DependentAvailableAgentIdentifier"), exports);
212
211
  __exportStar(require("./DependentAvailableToolIdentifierAccessLevel"), exports);
@@ -310,6 +309,7 @@ __exportStar(require("./HtmlExportOptions"), exports);
310
309
  __exportStar(require("./ImageAvatar"), exports);
311
310
  __exportStar(require("./InboundSipTrunkConfigRequestModel"), exports);
312
311
  __exportStar(require("./IntegrationType"), exports);
312
+ __exportStar(require("./InvoiceResponseModelPaymentIntentStatus"), exports);
313
313
  __exportStar(require("./InvoiceResponse"), exports);
314
314
  __exportStar(require("./KnowledgeBaseDocumentChunkResponseModel"), exports);
315
315
  __exportStar(require("./KnowledgeBaseDocumentMetadataResponseModel"), exports);
package/dist/Client.js CHANGED
@@ -79,8 +79,8 @@ class ElevenLabsClient {
79
79
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
82
- "X-Fern-SDK-Version": "v2.12.1",
83
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.12.1",
82
+ "X-Fern-SDK-Version": "v2.13.0",
83
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.13.0",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,147 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as ElevenLabs from "../../../../../index";
7
+ import { Invocations } from "../resources/invocations/client/Client";
8
+ export declare namespace Tests {
9
+ interface Options {
10
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
11
+ /** Specify a custom URL to connect the client to. */
12
+ baseUrl?: core.Supplier<string>;
13
+ /** Override the xi-api-key header */
14
+ apiKey?: core.Supplier<string | undefined>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
17
+ }
18
+ interface RequestOptions {
19
+ /** The maximum time to wait for a response in seconds. */
20
+ timeoutInSeconds?: number;
21
+ /** The number of times to retry the request. Defaults to 2. */
22
+ maxRetries?: number;
23
+ /** A hook to abort the request. */
24
+ abortSignal?: AbortSignal;
25
+ /** Override the xi-api-key header */
26
+ apiKey?: string | undefined;
27
+ /** Additional headers to include in the request. */
28
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29
+ }
30
+ }
31
+ export declare class Tests {
32
+ protected readonly _options: Tests.Options;
33
+ protected _invocations: Invocations | undefined;
34
+ constructor(_options?: Tests.Options);
35
+ get invocations(): Invocations;
36
+ /**
37
+ * Creates a new agent response test.
38
+ *
39
+ * @param {ElevenLabs.conversationalAi.CreateUnitTestRequest} request
40
+ * @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
43
+ *
44
+ * @example
45
+ * await client.conversationalAi.tests.create({
46
+ * chatHistory: [{
47
+ * role: "user",
48
+ * timeInCallSecs: 1
49
+ * }],
50
+ * successCondition: "success_condition",
51
+ * successExamples: [{
52
+ * response: "response",
53
+ * type: "success"
54
+ * }],
55
+ * failureExamples: [{
56
+ * response: "response",
57
+ * type: "failure"
58
+ * }],
59
+ * name: "name"
60
+ * })
61
+ */
62
+ create(request: ElevenLabs.conversationalAi.CreateUnitTestRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateUnitTestResponseModel>;
63
+ private __create;
64
+ /**
65
+ * Gets an agent response test by ID.
66
+ *
67
+ * @param {string} testId - The id of a chat response test. This is returned on test creation.
68
+ * @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
71
+ *
72
+ * @example
73
+ * await client.conversationalAi.tests.get("TeaqRRdTcIfIu2i7BYfT")
74
+ */
75
+ get(testId: string, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetUnitTestResponseModel>;
76
+ private __get;
77
+ /**
78
+ * Updates an agent response test by ID.
79
+ *
80
+ * @param {string} testId - The id of a chat response test. This is returned on test creation.
81
+ * @param {ElevenLabs.conversationalAi.UpdateUnitTestRequest} request
82
+ * @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
83
+ *
84
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
85
+ *
86
+ * @example
87
+ * await client.conversationalAi.tests.update("TeaqRRdTcIfIu2i7BYfT", {
88
+ * chatHistory: [{
89
+ * role: "user",
90
+ * timeInCallSecs: 1
91
+ * }],
92
+ * successCondition: "success_condition",
93
+ * successExamples: [{
94
+ * response: "response",
95
+ * type: "success"
96
+ * }],
97
+ * failureExamples: [{
98
+ * response: "response",
99
+ * type: "failure"
100
+ * }],
101
+ * name: "name"
102
+ * })
103
+ */
104
+ update(testId: string, request: ElevenLabs.conversationalAi.UpdateUnitTestRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetUnitTestResponseModel>;
105
+ private __update;
106
+ /**
107
+ * Deletes an agent response test by ID.
108
+ *
109
+ * @param {string} testId - The id of a chat response test. This is returned on test creation.
110
+ * @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
111
+ *
112
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
113
+ *
114
+ * @example
115
+ * await client.conversationalAi.tests.delete("TeaqRRdTcIfIu2i7BYfT")
116
+ */
117
+ delete(testId: string, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<unknown>;
118
+ private __delete;
119
+ /**
120
+ * Gets multiple agent response tests by their IDs. Returns a dictionary mapping test IDs to test summaries.
121
+ *
122
+ * @param {ElevenLabs.conversationalAi.ListTestsByIdsRequestModel} request
123
+ * @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
126
+ *
127
+ * @example
128
+ * await client.conversationalAi.tests.summaries({
129
+ * testIds: ["test_id_1", "test_id_2"]
130
+ * })
131
+ */
132
+ summaries(request: ElevenLabs.conversationalAi.ListTestsByIdsRequestModel, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsSummariesByIdsResponseModel>;
133
+ private __summaries;
134
+ /**
135
+ * Lists all agent response tests with pagination support and optional search filtering.
136
+ *
137
+ * @param {ElevenLabs.conversationalAi.TestsListRequest} request
138
+ * @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
141
+ *
142
+ * @example
143
+ * await client.conversationalAi.tests.list()
144
+ */
145
+ list(request?: ElevenLabs.conversationalAi.TestsListRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsPageResponseModel>;
146
+ private __list;
147
+ }