@elevenlabs/elevenlabs-js 2.12.0 → 2.12.2

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 (218) hide show
  1. package/Client.d.ts +0 -160
  2. package/Client.js +2 -687
  3. package/api/index.d.ts +0 -1
  4. package/api/index.js +0 -1
  5. package/api/resources/conversationalAi/client/Client.d.ts +3 -0
  6. package/api/resources/conversationalAi/client/Client.js +25 -20
  7. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +18 -0
  8. package/api/resources/conversationalAi/resources/agents/client/Client.js +80 -0
  9. package/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.d.ts +1 -1
  10. package/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  11. package/api/resources/conversationalAi/resources/index.d.ts +3 -0
  12. package/api/resources/conversationalAi/resources/index.js +4 -1
  13. package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +147 -0
  14. package/api/resources/conversationalAi/resources/tests/client/Client.js +537 -0
  15. package/api/resources/conversationalAi/resources/tests/client/index.d.ts +2 -0
  16. package/{dist/api → api/resources/conversationalAi/resources/tests}/client/requests/CreateUnitTestRequest.d.ts +2 -2
  17. package/api/{client/requests/ListChatResponseTestsRouteRequest.d.ts → resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts} +1 -1
  18. package/api/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.d.ts +2 -2
  19. package/api/resources/conversationalAi/resources/tests/client/requests/index.d.ts +4 -0
  20. package/api/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  21. package/api/resources/conversationalAi/resources/tests/index.js +19 -0
  22. package/api/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  23. package/api/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  24. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +63 -0
  25. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +201 -0
  26. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +2 -0
  27. package/{dist/api → api/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/ResubmitTestsRequestModel.d.ts +1 -1
  28. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  29. package/api/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  30. package/api/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  31. package/api/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  32. package/api/resources/conversationalAi/resources/tests/types/index.js +18 -0
  33. package/api/types/ClientEvent.d.ts +2 -1
  34. package/api/types/ClientEvent.js +1 -0
  35. package/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  36. package/api/types/TestsFeatureUsageCommonModel.d.ts +8 -0
  37. package/api/types/UnitTestRunResponseModel.d.ts +1 -0
  38. package/api/types/index.d.ts +1 -2
  39. package/api/types/index.js +1 -2
  40. package/dist/Client.d.ts +0 -160
  41. package/dist/Client.js +2 -687
  42. package/dist/api/index.d.ts +0 -1
  43. package/dist/api/index.js +0 -1
  44. package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
  45. package/dist/api/resources/conversationalAi/client/Client.js +25 -20
  46. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +18 -0
  47. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +80 -0
  48. package/dist/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.d.ts +1 -1
  49. package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  50. package/dist/api/resources/conversationalAi/resources/index.d.ts +3 -0
  51. package/dist/api/resources/conversationalAi/resources/index.js +4 -1
  52. package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +147 -0
  53. package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +537 -0
  54. package/dist/api/resources/conversationalAi/resources/tests/client/index.d.ts +2 -0
  55. package/{api → dist/api/resources/conversationalAi/resources/tests}/client/requests/CreateUnitTestRequest.d.ts +2 -2
  56. package/dist/api/{client/requests/ListChatResponseTestsRouteRequest.d.ts → resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts} +1 -1
  57. package/dist/api/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.d.ts +2 -2
  58. package/dist/api/resources/conversationalAi/resources/tests/client/requests/index.d.ts +4 -0
  59. package/dist/api/resources/conversationalAi/resources/tests/client/requests/index.js +2 -0
  60. package/dist/api/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  61. package/dist/api/resources/conversationalAi/resources/tests/index.js +19 -0
  62. package/dist/api/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  63. package/dist/api/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  64. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +63 -0
  65. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +201 -0
  66. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +2 -0
  67. package/{api → dist/api/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/ResubmitTestsRequestModel.d.ts +1 -1
  68. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  69. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +2 -0
  70. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  71. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  72. package/dist/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
  73. package/dist/api/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  74. package/dist/api/resources/conversationalAi/resources/tests/types/index.js +18 -0
  75. package/dist/api/types/ClientEvent.d.ts +2 -1
  76. package/dist/api/types/ClientEvent.js +1 -0
  77. package/dist/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  78. package/dist/api/types/TestsFeatureUsageCommonModel.d.ts +8 -0
  79. package/dist/api/types/TestsFeatureUsageCommonModel.js +5 -0
  80. package/dist/api/types/UnitTestRunResponseModel.d.ts +1 -0
  81. package/dist/api/types/index.d.ts +1 -2
  82. package/dist/api/types/index.js +1 -2
  83. package/dist/serialization/index.d.ts +0 -1
  84. package/dist/serialization/index.js +0 -1
  85. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  86. package/dist/serialization/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +3 -3
  87. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  88. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  89. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +3 -0
  90. package/dist/serialization/resources/conversationalAi/resources/index.js +4 -1
  91. package/dist/serialization/resources/conversationalAi/resources/tests/client/index.js +17 -0
  92. package/dist/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/CreateUnitTestRequest.d.ts +8 -8
  93. package/dist/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/CreateUnitTestRequest.js +5 -5
  94. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
  95. package/{serialization → dist/serialization/resources/conversationalAi/resources/tests}/client/requests/ListTestsByIdsRequestModel.js +1 -1
  96. package/dist/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.d.ts +8 -8
  97. package/dist/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.js +5 -5
  98. package/dist/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/index.d.ts +0 -2
  99. package/{serialization → dist/serialization/resources/conversationalAi/resources/tests}/client/requests/index.js +1 -5
  100. package/dist/serialization/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  101. package/dist/serialization/resources/conversationalAi/resources/tests/index.js +19 -0
  102. package/dist/serialization/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  103. package/dist/serialization/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  104. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
  105. package/{serialization → dist/serialization/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/ResubmitTestsRequestModel.d.ts +5 -5
  106. package/{serialization → dist/serialization/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/ResubmitTestsRequestModel.js +2 -2
  107. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  108. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +5 -0
  109. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  110. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  111. package/dist/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  112. package/{serialization → dist/serialization/resources/conversationalAi/resources/tests}/types/CreateUnitTestRequestDynamicVariablesValue.js +1 -1
  113. package/dist/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  114. package/{serialization → dist/serialization/resources/conversationalAi/resources/tests}/types/UpdateUnitTestRequestDynamicVariablesValue.js +1 -1
  115. package/dist/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  116. package/dist/serialization/resources/conversationalAi/resources/tests/types/index.js +18 -0
  117. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  118. package/dist/serialization/types/ClientEvent.js +1 -0
  119. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
  120. package/dist/serialization/types/FeaturesUsageCommonModel.js +2 -0
  121. package/dist/serialization/types/TestsFeatureUsageCommonModel.d.ts +14 -0
  122. package/dist/serialization/types/TestsFeatureUsageCommonModel.js +45 -0
  123. package/dist/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  124. package/dist/serialization/types/UnitTestRunResponseModel.js +1 -0
  125. package/dist/serialization/types/index.d.ts +1 -2
  126. package/dist/serialization/types/index.js +1 -2
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +648 -0
  131. package/serialization/index.d.ts +0 -1
  132. package/serialization/index.js +0 -1
  133. package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  134. package/serialization/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +3 -3
  135. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  136. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  137. package/serialization/resources/conversationalAi/resources/index.d.ts +3 -0
  138. package/serialization/resources/conversationalAi/resources/index.js +4 -1
  139. package/serialization/resources/conversationalAi/resources/tests/client/index.js +17 -0
  140. package/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/CreateUnitTestRequest.d.ts +8 -8
  141. package/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/CreateUnitTestRequest.js +5 -5
  142. package/serialization/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
  143. package/{dist/serialization → serialization/resources/conversationalAi/resources/tests}/client/requests/ListTestsByIdsRequestModel.js +1 -1
  144. package/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.d.ts +8 -8
  145. package/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.js +5 -5
  146. package/serialization/{client → resources/conversationalAi/resources/tests/client}/requests/index.d.ts +0 -2
  147. package/{dist/serialization → serialization/resources/conversationalAi/resources/tests}/client/requests/index.js +1 -5
  148. package/serialization/resources/conversationalAi/resources/tests/index.d.ts +3 -0
  149. package/serialization/resources/conversationalAi/resources/tests/index.js +19 -0
  150. package/serialization/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
  151. package/serialization/resources/conversationalAi/resources/tests/resources/index.js +41 -0
  152. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
  153. package/{dist/serialization → serialization/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/ResubmitTestsRequestModel.d.ts +5 -5
  154. package/{dist/serialization → serialization/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/ResubmitTestsRequestModel.js +2 -2
  155. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
  156. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +5 -0
  157. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
  158. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
  159. package/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  160. package/{dist/serialization → serialization/resources/conversationalAi/resources/tests}/types/CreateUnitTestRequestDynamicVariablesValue.js +1 -1
  161. package/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
  162. package/{dist/serialization → serialization/resources/conversationalAi/resources/tests}/types/UpdateUnitTestRequestDynamicVariablesValue.js +1 -1
  163. package/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
  164. package/serialization/resources/conversationalAi/resources/tests/types/index.js +18 -0
  165. package/serialization/types/ClientEvent.d.ts +1 -1
  166. package/serialization/types/ClientEvent.js +1 -0
  167. package/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
  168. package/serialization/types/FeaturesUsageCommonModel.js +2 -0
  169. package/serialization/types/TestsFeatureUsageCommonModel.d.ts +14 -0
  170. package/serialization/types/TestsFeatureUsageCommonModel.js +45 -0
  171. package/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  172. package/serialization/types/UnitTestRunResponseModel.js +1 -0
  173. package/serialization/types/index.d.ts +1 -2
  174. package/serialization/types/index.js +1 -2
  175. package/version.d.ts +1 -1
  176. package/version.js +1 -1
  177. package/api/client/requests/index.d.ts +0 -6
  178. package/dist/api/client/requests/index.d.ts +0 -6
  179. package/dist/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +0 -12
  180. package/dist/serialization/client/requests/RunAgentTestsRequestModel.d.ts +0 -15
  181. package/dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  182. package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  183. package/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +0 -12
  184. package/serialization/client/requests/RunAgentTestsRequestModel.d.ts +0 -15
  185. package/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  186. package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  187. /package/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +0 -0
  188. /package/api/{client → resources/conversationalAi/resources/tests/client}/index.js +0 -0
  189. /package/api/{client → resources/conversationalAi/resources/tests/client}/requests/CreateUnitTestRequest.js +0 -0
  190. /package/api/{client → resources/conversationalAi/resources/tests/client}/requests/ListTestsByIdsRequestModel.d.ts +0 -0
  191. /package/api/{client → resources/conversationalAi/resources/tests/client}/requests/ListTestsByIdsRequestModel.js +0 -0
  192. /package/api/{client/requests/ListChatResponseTestsRouteRequest.js → resources/conversationalAi/resources/tests/client/requests/TestsListRequest.js} +0 -0
  193. /package/api/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.js +0 -0
  194. /package/api/{client → resources/conversationalAi/resources/tests/client}/requests/index.js +0 -0
  195. /package/{dist/api → api/resources/conversationalAi/resources/tests/resources/invocations}/client/index.js +0 -0
  196. /package/api/{client → resources/conversationalAi/resources/tests/resources/invocations/client}/requests/ResubmitTestsRequestModel.js +0 -0
  197. /package/{dist/api → api/resources/conversationalAi/resources/tests/resources/invocations}/client/requests/index.js +0 -0
  198. /package/api/{types → resources/conversationalAi/resources/tests/types}/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -0
  199. /package/api/{types → resources/conversationalAi/resources/tests/types}/CreateUnitTestRequestDynamicVariablesValue.js +0 -0
  200. /package/api/{types → resources/conversationalAi/resources/tests/types}/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -0
  201. /package/api/{types → resources/conversationalAi/resources/tests/types}/UpdateUnitTestRequestDynamicVariablesValue.js +0 -0
  202. /package/{dist/api/client/requests/CreateUnitTestRequest.js → api/types/TestsFeatureUsageCommonModel.js} +0 -0
  203. /package/dist/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +0 -0
  204. /package/dist/{serialization → api/resources/conversationalAi/resources/tests}/client/index.js +0 -0
  205. /package/dist/api/{client/requests/ListChatResponseTestsRouteRequest.js → resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js} +0 -0
  206. /package/dist/api/{client → resources/conversationalAi/resources/tests/client}/requests/ListTestsByIdsRequestModel.d.ts +0 -0
  207. /package/dist/api/{client → resources/conversationalAi/resources/tests/client}/requests/ListTestsByIdsRequestModel.js +0 -0
  208. /package/dist/api/{client/requests/ResubmitTestsRequestModel.js → resources/conversationalAi/resources/tests/client/requests/TestsListRequest.js} +0 -0
  209. /package/dist/api/{client → resources/conversationalAi/resources/tests/client}/requests/UpdateUnitTestRequest.js +0 -0
  210. /package/{serialization → dist/api/resources/conversationalAi/resources/tests/resources/invocations}/client/index.js +0 -0
  211. /package/dist/api/{types/CreateUnitTestRequestDynamicVariablesValue.js → resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js} +0 -0
  212. /package/dist/api/{types → resources/conversationalAi/resources/tests/types}/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -0
  213. /package/dist/api/{types/UpdateUnitTestRequestDynamicVariablesValue.js → resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js} +0 -0
  214. /package/dist/api/{types → resources/conversationalAi/resources/tests/types}/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -0
  215. /package/{api → dist/serialization/resources/conversationalAi/resources/tests}/client/index.d.ts +0 -0
  216. /package/dist/{api → serialization/resources/conversationalAi/resources/tests/resources/invocations}/client/index.d.ts +0 -0
  217. /package/{dist/serialization → serialization/resources/conversationalAi/resources/tests}/client/index.d.ts +0 -0
  218. /package/serialization/{client → resources/conversationalAi/resources/tests/resources/invocations/client}/index.d.ts +0 -0
@@ -0,0 +1,63 @@
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
+ export declare namespace Invocations {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ /** Override the xi-api-key header */
13
+ apiKey?: core.Supplier<string | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the xi-api-key header */
25
+ apiKey?: string | undefined;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
28
+ }
29
+ }
30
+ export declare class Invocations {
31
+ protected readonly _options: Invocations.Options;
32
+ constructor(_options?: Invocations.Options);
33
+ /**
34
+ * Gets a test invocation by ID.
35
+ *
36
+ * @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
37
+ * @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.conversationalAi.tests.invocations.get("test_invocation_id")
43
+ */
44
+ get(testInvocationId: string, requestOptions?: Invocations.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
45
+ private __get;
46
+ /**
47
+ * Resubmits specific test runs from a test invocation.
48
+ *
49
+ * @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
50
+ * @param {ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel} request
51
+ * @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
52
+ *
53
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
54
+ *
55
+ * @example
56
+ * await client.conversationalAi.tests.invocations.resubmit("test_invocation_id", {
57
+ * testRunIds: ["test_run_ids"],
58
+ * agentId: "agent_id"
59
+ * })
60
+ */
61
+ resubmit(testInvocationId: string, request: ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel, requestOptions?: Invocations.RequestOptions): core.HttpResponsePromise<unknown>;
62
+ private __resubmit;
63
+ }
@@ -0,0 +1,201 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.Invocations = void 0;
49
+ const environments = __importStar(require("../../../../../../../../environments"));
50
+ const core = __importStar(require("../../../../../../../../core"));
51
+ const ElevenLabs = __importStar(require("../../../../../../../index"));
52
+ const headers_1 = require("../../../../../../../../core/headers");
53
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
54
+ const errors = __importStar(require("../../../../../../../../errors/index"));
55
+ class Invocations {
56
+ constructor(_options = {}) {
57
+ this._options = _options;
58
+ }
59
+ /**
60
+ * Gets a test invocation by ID.
61
+ *
62
+ * @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
63
+ * @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.conversationalAi.tests.invocations.get("test_invocation_id")
69
+ */
70
+ get(testInvocationId, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__get(testInvocationId, requestOptions));
72
+ }
73
+ __get(testInvocationId, requestOptions) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ var _a, _b, _c;
76
+ const _response = yield core.fetcher({
77
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/test-invocations/${encodeURIComponent(testInvocationId)}`),
78
+ method: "GET",
79
+ headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
81
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
82
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
83
+ });
84
+ if (_response.ok) {
85
+ return {
86
+ data: serializers.GetTestSuiteInvocationResponseModel.parseOrThrow(_response.body, {
87
+ unrecognizedObjectKeys: "passthrough",
88
+ allowUnrecognizedUnionMembers: true,
89
+ allowUnrecognizedEnumValues: true,
90
+ breadcrumbsPrefix: ["response"],
91
+ }),
92
+ rawResponse: _response.rawResponse,
93
+ };
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ switch (_response.error.statusCode) {
97
+ case 422:
98
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
99
+ unrecognizedObjectKeys: "passthrough",
100
+ allowUnrecognizedUnionMembers: true,
101
+ allowUnrecognizedEnumValues: true,
102
+ breadcrumbsPrefix: ["response"],
103
+ }), _response.rawResponse);
104
+ default:
105
+ throw new errors.ElevenLabsError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ rawResponse: _response.rawResponse,
109
+ });
110
+ }
111
+ }
112
+ switch (_response.error.reason) {
113
+ case "non-json":
114
+ throw new errors.ElevenLabsError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.rawBody,
117
+ rawResponse: _response.rawResponse,
118
+ });
119
+ case "timeout":
120
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/test-invocations/{test_invocation_id}.");
121
+ case "unknown":
122
+ throw new errors.ElevenLabsError({
123
+ message: _response.error.errorMessage,
124
+ rawResponse: _response.rawResponse,
125
+ });
126
+ }
127
+ });
128
+ }
129
+ /**
130
+ * Resubmits specific test runs from a test invocation.
131
+ *
132
+ * @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
133
+ * @param {ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel} request
134
+ * @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
137
+ *
138
+ * @example
139
+ * await client.conversationalAi.tests.invocations.resubmit("test_invocation_id", {
140
+ * testRunIds: ["test_run_ids"],
141
+ * agentId: "agent_id"
142
+ * })
143
+ */
144
+ resubmit(testInvocationId, request, requestOptions) {
145
+ return core.HttpResponsePromise.fromPromise(this.__resubmit(testInvocationId, request, requestOptions));
146
+ }
147
+ __resubmit(testInvocationId, request, requestOptions) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ var _a, _b, _c;
150
+ const _response = yield core.fetcher({
151
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/test-invocations/${encodeURIComponent(testInvocationId)}/resubmit`),
152
+ method: "POST",
153
+ headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
+ contentType: "application/json",
155
+ requestType: "json",
156
+ body: serializers.conversationalAi.tests.ResubmitTestsRequestModel.jsonOrThrow(request, {
157
+ unrecognizedObjectKeys: "strip",
158
+ }),
159
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
160
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
162
+ });
163
+ if (_response.ok) {
164
+ return { data: _response.body, rawResponse: _response.rawResponse };
165
+ }
166
+ if (_response.error.reason === "status-code") {
167
+ switch (_response.error.statusCode) {
168
+ case 422:
169
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
170
+ unrecognizedObjectKeys: "passthrough",
171
+ allowUnrecognizedUnionMembers: true,
172
+ allowUnrecognizedEnumValues: true,
173
+ breadcrumbsPrefix: ["response"],
174
+ }), _response.rawResponse);
175
+ default:
176
+ throw new errors.ElevenLabsError({
177
+ statusCode: _response.error.statusCode,
178
+ body: _response.error.body,
179
+ rawResponse: _response.rawResponse,
180
+ });
181
+ }
182
+ }
183
+ switch (_response.error.reason) {
184
+ case "non-json":
185
+ throw new errors.ElevenLabsError({
186
+ statusCode: _response.error.statusCode,
187
+ body: _response.error.rawBody,
188
+ rawResponse: _response.rawResponse,
189
+ });
190
+ case "timeout":
191
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/test-invocations/{test_invocation_id}/resubmit.");
192
+ case "unknown":
193
+ throw new errors.ElevenLabsError({
194
+ message: _response.error.errorMessage,
195
+ rawResponse: _response.rawResponse,
196
+ });
197
+ }
198
+ });
199
+ }
200
+ }
201
+ exports.Invocations = Invocations;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests";
@@ -1,7 +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
+ import * as ElevenLabs from "../../../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
@@ -0,0 +1 @@
1
+ export { type ResubmitTestsRequestModel } from "./ResubmitTestsRequestModel";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./CreateUnitTestRequestDynamicVariablesValue";
2
+ export * from "./UpdateUnitTestRequestDynamicVariablesValue";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateUnitTestRequestDynamicVariablesValue"), exports);
18
+ __exportStar(require("./UpdateUnitTestRequestDynamicVariablesValue"), exports);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ClientEvent = "conversation_initiation_metadata" | "asr_initiation_metadata" | "ping" | "audio" | "interruption" | "user_transcript" | "agent_response" | "agent_response_correction" | "client_tool_call" | "mcp_tool_call" | "mcp_connection_status" | "agent_tool_response" | "vad_score" | "internal_turn_probability" | "internal_tentative_agent_response";
4
+ export type ClientEvent = "conversation_initiation_metadata" | "asr_initiation_metadata" | "ping" | "audio" | "interruption" | "user_transcript" | "tentative_user_transcript" | "agent_response" | "agent_response_correction" | "client_tool_call" | "mcp_tool_call" | "mcp_connection_status" | "agent_tool_response" | "vad_score" | "internal_turn_probability" | "internal_tentative_agent_response";
5
5
  export declare const ClientEvent: {
6
6
  readonly ConversationInitiationMetadata: "conversation_initiation_metadata";
7
7
  readonly AsrInitiationMetadata: "asr_initiation_metadata";
@@ -9,6 +9,7 @@ export declare const ClientEvent: {
9
9
  readonly Audio: "audio";
10
10
  readonly Interruption: "interruption";
11
11
  readonly UserTranscript: "user_transcript";
12
+ readonly TentativeUserTranscript: "tentative_user_transcript";
12
13
  readonly AgentResponse: "agent_response";
13
14
  readonly AgentResponseCorrection: "agent_response_correction";
14
15
  readonly ClientToolCall: "client_tool_call";
@@ -11,6 +11,7 @@ exports.ClientEvent = {
11
11
  Audio: "audio",
12
12
  Interruption: "interruption",
13
13
  UserTranscript: "user_transcript",
14
+ TentativeUserTranscript: "tentative_user_transcript",
14
15
  AgentResponse: "agent_response",
15
16
  AgentResponseCorrection: "agent_response_correction",
16
17
  ClientToolCall: "client_tool_call",
@@ -15,4 +15,5 @@ export interface FeaturesUsageCommonModel {
15
15
  isLivekit?: boolean;
16
16
  voicemailDetection?: ElevenLabs.FeatureStatusCommonModel;
17
17
  workflow?: ElevenLabs.WorkflowFeaturesUsageCommonModel;
18
+ agentTesting?: ElevenLabs.TestsFeatureUsageCommonModel;
18
19
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestsFeatureUsageCommonModel {
5
+ enabled?: boolean;
6
+ testsRanAfterLastModification?: boolean;
7
+ testsRanInLast7Days?: boolean;
8
+ }
@@ -10,4 +10,5 @@ export interface UnitTestRunResponseModel {
10
10
  agentResponses?: ElevenLabs.ConversationHistoryTranscriptCommonModelOutput[];
11
11
  testId: string;
12
12
  conditionResult?: ElevenLabs.TestConditionResultCommonModel;
13
+ lastUpdatedAtUnix?: number;
13
14
  }
@@ -1,6 +1,4 @@
1
1
  export * from "./BadRequestErrorBody";
2
- export * from "./CreateUnitTestRequestDynamicVariablesValue";
3
- export * from "./UpdateUnitTestRequestDynamicVariablesValue";
4
2
  export * from "./AsrConversationalConfig";
5
3
  export * from "./AsrInputFormat";
6
4
  export * from "./AsrProvider";
@@ -511,6 +509,7 @@ export * from "./TestConditionRationaleCommonModel";
511
509
  export * from "./TestConditionResultCommonModel";
512
510
  export * from "./TestRunStatus";
513
511
  export * from "./TestToolResultModel";
512
+ export * from "./TestsFeatureUsageCommonModel";
514
513
  export * from "./TokenResponseModel";
515
514
  export * from "./Tool";
516
515
  export * from "./ToolAnnotations";
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BadRequestErrorBody"), exports);
18
- __exportStar(require("./CreateUnitTestRequestDynamicVariablesValue"), exports);
19
- __exportStar(require("./UpdateUnitTestRequestDynamicVariablesValue"), exports);
20
18
  __exportStar(require("./AsrConversationalConfig"), exports);
21
19
  __exportStar(require("./AsrInputFormat"), exports);
22
20
  __exportStar(require("./AsrProvider"), exports);
@@ -527,6 +525,7 @@ __exportStar(require("./TestConditionRationaleCommonModel"), exports);
527
525
  __exportStar(require("./TestConditionResultCommonModel"), exports);
528
526
  __exportStar(require("./TestRunStatus"), exports);
529
527
  __exportStar(require("./TestToolResultModel"), exports);
528
+ __exportStar(require("./TestsFeatureUsageCommonModel"), exports);
530
529
  __exportStar(require("./TokenResponseModel"), exports);
531
530
  __exportStar(require("./Tool"), exports);
532
531
  __exportStar(require("./ToolAnnotations"), exports);
package/dist/Client.d.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
- import * as ElevenLabs from "./api/index";
7
6
  import { History } from "./api/resources/history/client/Client";
8
7
  import { TextToSoundEffects } from "./api/resources/textToSoundEffects/client/Client";
9
8
  import { AudioIsolation } from "./api/resources/audioIsolation/client/Client";
@@ -99,165 +98,6 @@ export declare class ElevenLabsClient {
99
98
  get conversationalAi(): ConversationalAi;
100
99
  get music(): Music;
101
100
  get workspace(): Workspace;
102
- /**
103
- * Creates a new agent response test.
104
- *
105
- * @param {ElevenLabs.CreateUnitTestRequest} request
106
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
107
- *
108
- * @throws {@link ElevenLabs.UnprocessableEntityError}
109
- *
110
- * @example
111
- * await client.createAgentResponseTestRoute({
112
- * chatHistory: [{
113
- * role: "user",
114
- * timeInCallSecs: 1
115
- * }],
116
- * successCondition: "success_condition",
117
- * successExamples: [{
118
- * response: "response",
119
- * type: "success"
120
- * }],
121
- * failureExamples: [{
122
- * response: "response",
123
- * type: "failure"
124
- * }],
125
- * name: "name"
126
- * })
127
- */
128
- createAgentResponseTestRoute(request: ElevenLabs.CreateUnitTestRequest, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateUnitTestResponseModel>;
129
- private __createAgentResponseTestRoute;
130
- /**
131
- * Gets an agent response test by ID.
132
- *
133
- * @param {string} testId - The id of a chat response test. This is returned on test creation.
134
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
135
- *
136
- * @throws {@link ElevenLabs.UnprocessableEntityError}
137
- *
138
- * @example
139
- * await client.getAgentResponseTestRoute("TeaqRRdTcIfIu2i7BYfT")
140
- */
141
- getAgentResponseTestRoute(testId: string, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetUnitTestResponseModel>;
142
- private __getAgentResponseTestRoute;
143
- /**
144
- * Updates an agent response test by ID.
145
- *
146
- * @param {string} testId - The id of a chat response test. This is returned on test creation.
147
- * @param {ElevenLabs.UpdateUnitTestRequest} request
148
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
149
- *
150
- * @throws {@link ElevenLabs.UnprocessableEntityError}
151
- *
152
- * @example
153
- * await client.updateAgentResponseTestRoute("TeaqRRdTcIfIu2i7BYfT", {
154
- * chatHistory: [{
155
- * role: "user",
156
- * timeInCallSecs: 1
157
- * }],
158
- * successCondition: "success_condition",
159
- * successExamples: [{
160
- * response: "response",
161
- * type: "success"
162
- * }],
163
- * failureExamples: [{
164
- * response: "response",
165
- * type: "failure"
166
- * }],
167
- * name: "name"
168
- * })
169
- */
170
- updateAgentResponseTestRoute(testId: string, request: ElevenLabs.UpdateUnitTestRequest, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetUnitTestResponseModel>;
171
- private __updateAgentResponseTestRoute;
172
- /**
173
- * Deletes an agent response test by ID.
174
- *
175
- * @param {string} testId - The id of a chat response test. This is returned on test creation.
176
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
177
- *
178
- * @throws {@link ElevenLabs.UnprocessableEntityError}
179
- *
180
- * @example
181
- * await client.deleteChatResponseTestRoute("TeaqRRdTcIfIu2i7BYfT")
182
- */
183
- deleteChatResponseTestRoute(testId: string, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<unknown>;
184
- private __deleteChatResponseTestRoute;
185
- /**
186
- * Gets multiple agent response tests by their IDs. Returns a dictionary mapping test IDs to test summaries.
187
- *
188
- * @param {ElevenLabs.ListTestsByIdsRequestModel} request
189
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
190
- *
191
- * @throws {@link ElevenLabs.UnprocessableEntityError}
192
- *
193
- * @example
194
- * await client.getAgentResponseTestsSummariesRoute({
195
- * testIds: ["test_id_1", "test_id_2"]
196
- * })
197
- */
198
- getAgentResponseTestsSummariesRoute(request: ElevenLabs.ListTestsByIdsRequestModel, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsSummariesByIdsResponseModel>;
199
- private __getAgentResponseTestsSummariesRoute;
200
- /**
201
- * Lists all agent response tests with pagination support and optional search filtering.
202
- *
203
- * @param {ElevenLabs.ListChatResponseTestsRouteRequest} request
204
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
205
- *
206
- * @throws {@link ElevenLabs.UnprocessableEntityError}
207
- *
208
- * @example
209
- * await client.listChatResponseTestsRoute()
210
- */
211
- listChatResponseTestsRoute(request?: ElevenLabs.ListChatResponseTestsRouteRequest, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsPageResponseModel>;
212
- private __listChatResponseTestsRoute;
213
- /**
214
- * Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
215
- *
216
- * @param {string} agentId - The id of an agent. This is returned on agent creation.
217
- * @param {ElevenLabs.RunAgentTestsRequestModel} request
218
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
219
- *
220
- * @throws {@link ElevenLabs.UnprocessableEntityError}
221
- *
222
- * @example
223
- * await client.runAgentTestSuiteRoute("21m00Tcm4TlvDq8ikWAM", {
224
- * tests: [{
225
- * testId: "test_id"
226
- * }]
227
- * })
228
- */
229
- runAgentTestSuiteRoute(agentId: string, request: ElevenLabs.RunAgentTestsRequestModel, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
230
- private __runAgentTestSuiteRoute;
231
- /**
232
- * Gets a test invocation by ID.
233
- *
234
- * @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
235
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
236
- *
237
- * @throws {@link ElevenLabs.UnprocessableEntityError}
238
- *
239
- * @example
240
- * await client.getTestInvocationRoute("test_invocation_id")
241
- */
242
- getTestInvocationRoute(testInvocationId: string, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
243
- private __getTestInvocationRoute;
244
- /**
245
- * Resubmits specific test runs from a test invocation.
246
- *
247
- * @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
248
- * @param {ElevenLabs.ResubmitTestsRequestModel} request
249
- * @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
250
- *
251
- * @throws {@link ElevenLabs.UnprocessableEntityError}
252
- *
253
- * @example
254
- * await client.resubmitTestsRoute("test_invocation_id", {
255
- * testRunIds: ["test_run_ids"],
256
- * agentId: "agent_id"
257
- * })
258
- */
259
- resubmitTestsRoute(testInvocationId: string, request: ElevenLabs.ResubmitTestsRequestModel, requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<unknown>;
260
- private __resubmitTestsRoute;
261
101
  /**
262
102
  * Add a generated voice to the voice library.
263
103
  *