@elevenlabs/elevenlabs-js 2.12.0 → 2.12.1

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 (150) 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/types/ClientEvent.d.ts +2 -1
  14. package/api/types/ClientEvent.js +1 -0
  15. package/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  16. package/api/types/TestsFeatureUsageCommonModel.d.ts +8 -0
  17. package/api/types/UnitTestRunResponseModel.d.ts +1 -0
  18. package/api/types/index.d.ts +1 -2
  19. package/api/types/index.js +1 -2
  20. package/dist/Client.d.ts +0 -160
  21. package/dist/Client.js +2 -687
  22. package/dist/api/index.d.ts +0 -1
  23. package/dist/api/index.js +0 -1
  24. package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
  25. package/dist/api/resources/conversationalAi/client/Client.js +25 -20
  26. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +18 -0
  27. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +80 -0
  28. package/dist/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.d.ts +1 -1
  29. package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  30. package/dist/api/resources/conversationalAi/resources/index.d.ts +3 -0
  31. package/dist/api/resources/conversationalAi/resources/index.js +4 -1
  32. package/dist/api/types/ClientEvent.d.ts +2 -1
  33. package/dist/api/types/ClientEvent.js +1 -0
  34. package/dist/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  35. package/dist/api/types/TestsFeatureUsageCommonModel.d.ts +8 -0
  36. package/dist/api/types/UnitTestRunResponseModel.d.ts +1 -0
  37. package/dist/api/types/index.d.ts +1 -2
  38. package/dist/api/types/index.js +1 -2
  39. package/dist/serialization/index.d.ts +0 -1
  40. package/dist/serialization/index.js +0 -1
  41. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  42. package/dist/serialization/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +3 -3
  43. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  44. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  45. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +3 -0
  46. package/dist/serialization/resources/conversationalAi/resources/index.js +4 -1
  47. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  48. package/dist/serialization/types/ClientEvent.js +1 -0
  49. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
  50. package/dist/serialization/types/FeaturesUsageCommonModel.js +2 -0
  51. package/dist/serialization/types/TestsFeatureUsageCommonModel.d.ts +14 -0
  52. package/{serialization/types/CreateUnitTestRequestDynamicVariablesValue.js → dist/serialization/types/TestsFeatureUsageCommonModel.js} +6 -7
  53. package/dist/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  54. package/dist/serialization/types/UnitTestRunResponseModel.js +1 -0
  55. package/dist/serialization/types/index.d.ts +1 -2
  56. package/dist/serialization/types/index.js +1 -2
  57. package/dist/version.d.ts +1 -1
  58. package/dist/version.js +1 -1
  59. package/package.json +1 -1
  60. package/reference.md +648 -0
  61. package/serialization/index.d.ts +0 -1
  62. package/serialization/index.js +0 -1
  63. package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
  64. package/serialization/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +3 -3
  65. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  66. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  67. package/serialization/resources/conversationalAi/resources/index.d.ts +3 -0
  68. package/serialization/resources/conversationalAi/resources/index.js +4 -1
  69. package/serialization/types/ClientEvent.d.ts +1 -1
  70. package/serialization/types/ClientEvent.js +1 -0
  71. package/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
  72. package/serialization/types/FeaturesUsageCommonModel.js +2 -0
  73. package/serialization/types/TestsFeatureUsageCommonModel.d.ts +14 -0
  74. package/{dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.js → serialization/types/TestsFeatureUsageCommonModel.js} +6 -7
  75. package/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  76. package/serialization/types/UnitTestRunResponseModel.js +1 -0
  77. package/serialization/types/index.d.ts +1 -2
  78. package/serialization/types/index.js +1 -2
  79. package/version.d.ts +1 -1
  80. package/version.js +1 -1
  81. package/api/client/index.d.ts +0 -1
  82. package/api/client/index.js +0 -17
  83. package/api/client/requests/CreateUnitTestRequest.d.ts +0 -37
  84. package/api/client/requests/ListChatResponseTestsRouteRequest.d.ts +0 -21
  85. package/api/client/requests/ListTestsByIdsRequestModel.d.ts +0 -13
  86. package/api/client/requests/ListTestsByIdsRequestModel.js +0 -5
  87. package/api/client/requests/ResubmitTestsRequestModel.d.ts +0 -19
  88. package/api/client/requests/ResubmitTestsRequestModel.js +0 -5
  89. package/api/client/requests/UpdateUnitTestRequest.d.ts +0 -37
  90. package/api/client/requests/UpdateUnitTestRequest.js +0 -5
  91. package/api/client/requests/index.d.ts +0 -6
  92. package/api/client/requests/index.js +0 -2
  93. package/api/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -4
  94. package/api/types/CreateUnitTestRequestDynamicVariablesValue.js +0 -5
  95. package/api/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -4
  96. package/api/types/UpdateUnitTestRequestDynamicVariablesValue.js +0 -5
  97. package/dist/api/client/index.d.ts +0 -1
  98. package/dist/api/client/index.js +0 -17
  99. package/dist/api/client/requests/CreateUnitTestRequest.d.ts +0 -37
  100. package/dist/api/client/requests/CreateUnitTestRequest.js +0 -5
  101. package/dist/api/client/requests/ListChatResponseTestsRouteRequest.d.ts +0 -21
  102. package/dist/api/client/requests/ListChatResponseTestsRouteRequest.js +0 -5
  103. package/dist/api/client/requests/ListTestsByIdsRequestModel.d.ts +0 -13
  104. package/dist/api/client/requests/ListTestsByIdsRequestModel.js +0 -5
  105. package/dist/api/client/requests/ResubmitTestsRequestModel.d.ts +0 -19
  106. package/dist/api/client/requests/ResubmitTestsRequestModel.js +0 -5
  107. package/dist/api/client/requests/UpdateUnitTestRequest.d.ts +0 -37
  108. package/dist/api/client/requests/UpdateUnitTestRequest.js +0 -5
  109. package/dist/api/client/requests/index.d.ts +0 -6
  110. package/dist/api/client/requests/index.js +0 -2
  111. package/dist/api/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -4
  112. package/dist/api/types/CreateUnitTestRequestDynamicVariablesValue.js +0 -5
  113. package/dist/api/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -4
  114. package/dist/api/types/UpdateUnitTestRequestDynamicVariablesValue.js +0 -5
  115. package/dist/serialization/client/index.d.ts +0 -1
  116. package/dist/serialization/client/index.js +0 -17
  117. package/dist/serialization/client/requests/CreateUnitTestRequest.d.ts +0 -23
  118. package/dist/serialization/client/requests/CreateUnitTestRequest.js +0 -56
  119. package/dist/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +0 -12
  120. package/dist/serialization/client/requests/ListTestsByIdsRequestModel.js +0 -43
  121. package/dist/serialization/client/requests/ResubmitTestsRequestModel.d.ts +0 -15
  122. package/dist/serialization/client/requests/ResubmitTestsRequestModel.js +0 -46
  123. package/dist/serialization/client/requests/RunAgentTestsRequestModel.d.ts +0 -15
  124. package/dist/serialization/client/requests/UpdateUnitTestRequest.d.ts +0 -23
  125. package/dist/serialization/client/requests/UpdateUnitTestRequest.js +0 -56
  126. package/dist/serialization/client/requests/index.d.ts +0 -5
  127. package/dist/serialization/client/requests/index.js +0 -13
  128. package/dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  129. package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  130. package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.js +0 -46
  131. package/serialization/client/index.d.ts +0 -1
  132. package/serialization/client/index.js +0 -17
  133. package/serialization/client/requests/CreateUnitTestRequest.d.ts +0 -23
  134. package/serialization/client/requests/CreateUnitTestRequest.js +0 -56
  135. package/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +0 -12
  136. package/serialization/client/requests/ListTestsByIdsRequestModel.js +0 -43
  137. package/serialization/client/requests/ResubmitTestsRequestModel.d.ts +0 -15
  138. package/serialization/client/requests/ResubmitTestsRequestModel.js +0 -46
  139. package/serialization/client/requests/RunAgentTestsRequestModel.d.ts +0 -15
  140. package/serialization/client/requests/UpdateUnitTestRequest.d.ts +0 -23
  141. package/serialization/client/requests/UpdateUnitTestRequest.js +0 -56
  142. package/serialization/client/requests/index.d.ts +0 -5
  143. package/serialization/client/requests/index.js +0 -13
  144. package/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  145. package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +0 -10
  146. package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.js +0 -46
  147. /package/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +0 -0
  148. /package/api/{client/requests/CreateUnitTestRequest.js → types/TestsFeatureUsageCommonModel.js} +0 -0
  149. /package/dist/api/{client → resources/conversationalAi/resources/agents/client}/requests/RunAgentTestsRequestModel.js +0 -0
  150. /package/{api/client/requests/ListChatResponseTestsRouteRequest.js → dist/api/types/TestsFeatureUsageCommonModel.js} +0 -0
@@ -1,4 +1,3 @@
1
1
  export * from "./resources";
2
2
  export * from "./types";
3
3
  export * from "./errors";
4
- export * from "./client";
package/dist/api/index.js CHANGED
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
18
  __exportStar(require("./types"), exports);
19
19
  __exportStar(require("./errors"), exports);
20
- __exportStar(require("./client"), exports);
@@ -7,6 +7,7 @@ import * as ElevenLabs from "../../../index";
7
7
  import { Conversations } from "../resources/conversations/client/Client";
8
8
  import { Twilio } from "../resources/twilio/client/Client";
9
9
  import { Agents } from "../resources/agents/client/Client";
10
+ import { Tests } from "../resources/tests/client/Client";
10
11
  import { PhoneNumbers } from "../resources/phoneNumbers/client/Client";
11
12
  import { LlmUsage } from "../resources/llmUsage/client/Client";
12
13
  import { KnowledgeBase } from "../resources/knowledgeBase/client/Client";
@@ -45,6 +46,7 @@ export declare class ConversationalAi {
45
46
  protected _conversations: Conversations | undefined;
46
47
  protected _twilio: Twilio | undefined;
47
48
  protected _agents: Agents | undefined;
49
+ protected _tests: Tests | undefined;
48
50
  protected _phoneNumbers: PhoneNumbers | undefined;
49
51
  protected _llmUsage: LlmUsage | undefined;
50
52
  protected _knowledgeBase: KnowledgeBase | undefined;
@@ -59,6 +61,7 @@ export declare class ConversationalAi {
59
61
  get conversations(): Conversations;
60
62
  get twilio(): Twilio;
61
63
  get agents(): Agents;
64
+ get tests(): Tests;
62
65
  get phoneNumbers(): PhoneNumbers;
63
66
  get llmUsage(): LlmUsage;
64
67
  get knowledgeBase(): KnowledgeBase;
@@ -55,16 +55,17 @@ const errors = __importStar(require("../../../../errors/index"));
55
55
  const Client_1 = require("../resources/conversations/client/Client");
56
56
  const Client_2 = require("../resources/twilio/client/Client");
57
57
  const Client_3 = require("../resources/agents/client/Client");
58
- const Client_4 = require("../resources/phoneNumbers/client/Client");
59
- const Client_5 = require("../resources/llmUsage/client/Client");
60
- const Client_6 = require("../resources/knowledgeBase/client/Client");
61
- const Client_7 = require("../resources/tools/client/Client");
62
- const Client_8 = require("../resources/settings/client/Client");
63
- const Client_9 = require("../resources/secrets/client/Client");
64
- const Client_10 = require("../resources/batchCalls/client/Client");
65
- const Client_11 = require("../resources/sipTrunk/client/Client");
66
- const Client_12 = require("../resources/mcpServers/client/Client");
67
- const Client_13 = require("../resources/dashboard/client/Client");
58
+ const Client_4 = require("../resources/tests/client/Client");
59
+ const Client_5 = require("../resources/phoneNumbers/client/Client");
60
+ const Client_6 = require("../resources/llmUsage/client/Client");
61
+ const Client_7 = require("../resources/knowledgeBase/client/Client");
62
+ const Client_8 = require("../resources/tools/client/Client");
63
+ const Client_9 = require("../resources/settings/client/Client");
64
+ const Client_10 = require("../resources/secrets/client/Client");
65
+ const Client_11 = require("../resources/batchCalls/client/Client");
66
+ const Client_12 = require("../resources/sipTrunk/client/Client");
67
+ const Client_13 = require("../resources/mcpServers/client/Client");
68
+ const Client_14 = require("../resources/dashboard/client/Client");
68
69
  class ConversationalAi {
69
70
  constructor(_options = {}) {
70
71
  this._options = _options;
@@ -81,45 +82,49 @@ class ConversationalAi {
81
82
  var _a;
82
83
  return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_3.Agents(this._options)));
83
84
  }
85
+ get tests() {
86
+ var _a;
87
+ return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_4.Tests(this._options)));
88
+ }
84
89
  get phoneNumbers() {
85
90
  var _a;
86
- return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_4.PhoneNumbers(this._options)));
91
+ return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_5.PhoneNumbers(this._options)));
87
92
  }
88
93
  get llmUsage() {
89
94
  var _a;
90
- return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_5.LlmUsage(this._options)));
95
+ return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_6.LlmUsage(this._options)));
91
96
  }
92
97
  get knowledgeBase() {
93
98
  var _a;
94
- return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBase(this._options)));
99
+ return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_7.KnowledgeBase(this._options)));
95
100
  }
96
101
  get tools() {
97
102
  var _a;
98
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_7.Tools(this._options)));
103
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_8.Tools(this._options)));
99
104
  }
100
105
  get settings() {
101
106
  var _a;
102
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_8.Settings(this._options)));
107
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_9.Settings(this._options)));
103
108
  }
104
109
  get secrets() {
105
110
  var _a;
106
- return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_9.Secrets(this._options)));
111
+ return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.Secrets(this._options)));
107
112
  }
108
113
  get batchCalls() {
109
114
  var _a;
110
- return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_10.BatchCalls(this._options)));
115
+ return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_11.BatchCalls(this._options)));
111
116
  }
112
117
  get sipTrunk() {
113
118
  var _a;
114
- return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_11.SipTrunk(this._options)));
119
+ return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.SipTrunk(this._options)));
115
120
  }
116
121
  get mcpServers() {
117
122
  var _a;
118
- return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_12.McpServers(this._options)));
123
+ return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_13.McpServers(this._options)));
119
124
  }
120
125
  get dashboard() {
121
126
  var _a;
122
- return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_13.Dashboard(this._options)));
127
+ return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_14.Dashboard(this._options)));
123
128
  }
124
129
  /**
125
130
  * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
@@ -166,4 +166,22 @@ export declare class Agents {
166
166
  */
167
167
  simulateConversationStream(agentId: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
168
168
  private __simulateConversationStream;
169
+ /**
170
+ * Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
171
+ *
172
+ * @param {string} agentId - The id of an agent. This is returned on agent creation.
173
+ * @param {ElevenLabs.conversationalAi.RunAgentTestsRequestModel} request
174
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
175
+ *
176
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
177
+ *
178
+ * @example
179
+ * await client.conversationalAi.agents.runTests("21m00Tcm4TlvDq8ikWAM", {
180
+ * tests: [{
181
+ * testId: "test_id"
182
+ * }]
183
+ * })
184
+ */
185
+ runTests(agentId: string, request: ElevenLabs.conversationalAi.RunAgentTestsRequestModel, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
186
+ private __runTests;
169
187
  }
@@ -671,5 +671,85 @@ class Agents {
671
671
  }
672
672
  });
673
673
  }
674
+ /**
675
+ * Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
676
+ *
677
+ * @param {string} agentId - The id of an agent. This is returned on agent creation.
678
+ * @param {ElevenLabs.conversationalAi.RunAgentTestsRequestModel} request
679
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
680
+ *
681
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
682
+ *
683
+ * @example
684
+ * await client.conversationalAi.agents.runTests("21m00Tcm4TlvDq8ikWAM", {
685
+ * tests: [{
686
+ * testId: "test_id"
687
+ * }]
688
+ * })
689
+ */
690
+ runTests(agentId, request, requestOptions) {
691
+ return core.HttpResponsePromise.fromPromise(this.__runTests(agentId, request, requestOptions));
692
+ }
693
+ __runTests(agentId, request, requestOptions) {
694
+ return __awaiter(this, void 0, void 0, function* () {
695
+ var _a, _b, _c;
696
+ const _response = yield core.fetcher({
697
+ 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/agents/${encodeURIComponent(agentId)}/run-tests`),
698
+ method: "POST",
699
+ 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),
700
+ contentType: "application/json",
701
+ requestType: "json",
702
+ body: serializers.conversationalAi.RunAgentTestsRequestModel.jsonOrThrow(request, {
703
+ unrecognizedObjectKeys: "strip",
704
+ }),
705
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
706
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
707
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
708
+ });
709
+ if (_response.ok) {
710
+ return {
711
+ data: serializers.GetTestSuiteInvocationResponseModel.parseOrThrow(_response.body, {
712
+ unrecognizedObjectKeys: "passthrough",
713
+ allowUnrecognizedUnionMembers: true,
714
+ allowUnrecognizedEnumValues: true,
715
+ breadcrumbsPrefix: ["response"],
716
+ }),
717
+ rawResponse: _response.rawResponse,
718
+ };
719
+ }
720
+ if (_response.error.reason === "status-code") {
721
+ switch (_response.error.statusCode) {
722
+ case 422:
723
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
724
+ unrecognizedObjectKeys: "passthrough",
725
+ allowUnrecognizedUnionMembers: true,
726
+ allowUnrecognizedEnumValues: true,
727
+ breadcrumbsPrefix: ["response"],
728
+ }), _response.rawResponse);
729
+ default:
730
+ throw new errors.ElevenLabsError({
731
+ statusCode: _response.error.statusCode,
732
+ body: _response.error.body,
733
+ rawResponse: _response.rawResponse,
734
+ });
735
+ }
736
+ }
737
+ switch (_response.error.reason) {
738
+ case "non-json":
739
+ throw new errors.ElevenLabsError({
740
+ statusCode: _response.error.statusCode,
741
+ body: _response.error.rawBody,
742
+ rawResponse: _response.rawResponse,
743
+ });
744
+ case "timeout":
745
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/agents/{agent_id}/run-tests.");
746
+ case "unknown":
747
+ throw new errors.ElevenLabsError({
748
+ message: _response.error.errorMessage,
749
+ rawResponse: _response.rawResponse,
750
+ });
751
+ }
752
+ });
753
+ }
674
754
  }
675
755
  exports.Agents = Agents;
@@ -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
  * {
@@ -4,3 +4,4 @@ export { type AgentsListRequest } from "./AgentsListRequest";
4
4
  export { type BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost } from "./BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost";
5
5
  export { type BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost } from "./BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost";
6
6
  export { type BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost } from "./BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost";
7
+ export { type RunAgentTestsRequestModel } from "./RunAgentTestsRequestModel";
@@ -1,5 +1,7 @@
1
1
  export * as conversations from "./conversations";
2
2
  export * from "./conversations/types";
3
+ export * as tests from "./tests";
4
+ export * from "./tests/types";
3
5
  export * as phoneNumbers from "./phoneNumbers";
4
6
  export * from "./phoneNumbers/types";
5
7
  export * as dashboard from "./dashboard";
@@ -16,6 +18,7 @@ export * as mcpServers from "./mcpServers";
16
18
  export * from "./conversations/client/requests";
17
19
  export * from "./twilio/client/requests";
18
20
  export * from "./agents/client/requests";
21
+ export * from "./tests/client/requests";
19
22
  export * from "./phoneNumbers/client/requests";
20
23
  export * from "./llmUsage/client/requests";
21
24
  export * from "./knowledgeBase/client/requests";
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.mcpServers = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.tools = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = exports.conversations = void 0;
39
+ exports.mcpServers = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.tools = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = exports.tests = exports.conversations = void 0;
40
40
  exports.conversations = __importStar(require("./conversations"));
41
41
  __exportStar(require("./conversations/types"), exports);
42
+ exports.tests = __importStar(require("./tests"));
43
+ __exportStar(require("./tests/types"), exports);
42
44
  exports.phoneNumbers = __importStar(require("./phoneNumbers"));
43
45
  __exportStar(require("./phoneNumbers/types"), exports);
44
46
  exports.dashboard = __importStar(require("./dashboard"));
@@ -55,6 +57,7 @@ exports.mcpServers = __importStar(require("./mcpServers"));
55
57
  __exportStar(require("./conversations/client/requests"), exports);
56
58
  __exportStar(require("./twilio/client/requests"), exports);
57
59
  __exportStar(require("./agents/client/requests"), exports);
60
+ __exportStar(require("./tests/client/requests"), exports);
58
61
  __exportStar(require("./phoneNumbers/client/requests"), exports);
59
62
  __exportStar(require("./llmUsage/client/requests"), exports);
60
63
  __exportStar(require("./knowledgeBase/client/requests"), 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);
@@ -1,3 +1,2 @@
1
1
  export * from "./resources";
2
2
  export * from "./types";
3
- export * from "./client";
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
18
  __exportStar(require("./types"), exports);
19
- __exportStar(require("./client"), exports);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as ElevenLabs from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ import { SingleTestRunRequestModel } from "../../../../../../types/SingleTestRunRequestModel";
8
+ import { AdhocAgentConfigOverrideForTestRequestModel } from "../../../../../../types/AdhocAgentConfigOverrideForTestRequestModel";
9
+ export declare const RunAgentTestsRequestModel: core.serialization.Schema<serializers.conversationalAi.RunAgentTestsRequestModel.Raw, ElevenLabs.conversationalAi.RunAgentTestsRequestModel>;
10
+ export declare namespace RunAgentTestsRequestModel {
11
+ interface Raw {
12
+ tests: SingleTestRunRequestModel.Raw[];
13
+ agent_config_override?: AdhocAgentConfigOverrideForTestRequestModel.Raw | null;
14
+ }
15
+ }
@@ -37,9 +37,9 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.RunAgentTestsRequestModel = void 0;
40
- const core = __importStar(require("../../../core"));
41
- const SingleTestRunRequestModel_1 = require("../../types/SingleTestRunRequestModel");
42
- const AdhocAgentConfigOverrideForTestRequestModel_1 = require("../../types/AdhocAgentConfigOverrideForTestRequestModel");
40
+ const core = __importStar(require("../../../../../../../core"));
41
+ const SingleTestRunRequestModel_1 = require("../../../../../../types/SingleTestRunRequestModel");
42
+ const AdhocAgentConfigOverrideForTestRequestModel_1 = require("../../../../../../types/AdhocAgentConfigOverrideForTestRequestModel");
43
43
  exports.RunAgentTestsRequestModel = core.serialization.object({
44
44
  tests: core.serialization.list(SingleTestRunRequestModel_1.SingleTestRunRequestModel),
45
45
  agentConfigOverride: core.serialization.property("agent_config_override", AdhocAgentConfigOverrideForTestRequestModel_1.AdhocAgentConfigOverrideForTestRequestModel.optional()),
@@ -3,3 +3,4 @@ export { UpdateAgentRequest } from "./UpdateAgentRequest";
3
3
  export { BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost } from "./BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost";
4
4
  export { BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost } from "./BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost";
5
5
  export { BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost } from "./BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost";
6
+ export { RunAgentTestsRequestModel } from "./RunAgentTestsRequestModel";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost = exports.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost = exports.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost = exports.UpdateAgentRequest = exports.BodyCreateAgentV1ConvaiAgentsCreatePost = void 0;
3
+ exports.RunAgentTestsRequestModel = exports.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost = exports.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost = exports.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost = exports.UpdateAgentRequest = exports.BodyCreateAgentV1ConvaiAgentsCreatePost = void 0;
4
4
  var BodyCreateAgentV1ConvaiAgentsCreatePost_1 = require("./BodyCreateAgentV1ConvaiAgentsCreatePost");
5
5
  Object.defineProperty(exports, "BodyCreateAgentV1ConvaiAgentsCreatePost", { enumerable: true, get: function () { return BodyCreateAgentV1ConvaiAgentsCreatePost_1.BodyCreateAgentV1ConvaiAgentsCreatePost; } });
6
6
  var UpdateAgentRequest_1 = require("./UpdateAgentRequest");
@@ -11,3 +11,5 @@ var BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost_1 =
11
11
  Object.defineProperty(exports, "BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost", { enumerable: true, get: function () { return BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost_1.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost; } });
12
12
  var BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost_1 = require("./BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost");
13
13
  Object.defineProperty(exports, "BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost", { enumerable: true, get: function () { return BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost_1.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost; } });
14
+ var RunAgentTestsRequestModel_1 = require("./RunAgentTestsRequestModel");
15
+ Object.defineProperty(exports, "RunAgentTestsRequestModel", { enumerable: true, get: function () { return RunAgentTestsRequestModel_1.RunAgentTestsRequestModel; } });
@@ -1,5 +1,7 @@
1
1
  export * as conversations from "./conversations";
2
2
  export * from "./conversations/types";
3
+ export * as tests from "./tests";
4
+ export * from "./tests/types";
3
5
  export * as phoneNumbers from "./phoneNumbers";
4
6
  export * from "./phoneNumbers/types";
5
7
  export * as dashboard from "./dashboard";
@@ -8,6 +10,7 @@ export * as twilio from "./twilio";
8
10
  export * from "./twilio/client/requests";
9
11
  export * as agents from "./agents";
10
12
  export * from "./agents/client/requests";
13
+ export * from "./tests/client/requests";
11
14
  export * from "./phoneNumbers/client/requests";
12
15
  export * as llmUsage from "./llmUsage";
13
16
  export * from "./llmUsage/client/requests";
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.mcpServers = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = exports.conversations = void 0;
39
+ exports.mcpServers = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = exports.tests = exports.conversations = void 0;
40
40
  exports.conversations = __importStar(require("./conversations"));
41
41
  __exportStar(require("./conversations/types"), exports);
42
+ exports.tests = __importStar(require("./tests"));
43
+ __exportStar(require("./tests/types"), exports);
42
44
  exports.phoneNumbers = __importStar(require("./phoneNumbers"));
43
45
  __exportStar(require("./phoneNumbers/types"), exports);
44
46
  exports.dashboard = __importStar(require("./dashboard"));
@@ -47,6 +49,7 @@ exports.twilio = __importStar(require("./twilio"));
47
49
  __exportStar(require("./twilio/client/requests"), exports);
48
50
  exports.agents = __importStar(require("./agents"));
49
51
  __exportStar(require("./agents/client/requests"), exports);
52
+ __exportStar(require("./tests/client/requests"), exports);
50
53
  __exportStar(require("./phoneNumbers/client/requests"), exports);
51
54
  exports.llmUsage = __importStar(require("./llmUsage"));
52
55
  __exportStar(require("./llmUsage/client/requests"), exports);
@@ -6,5 +6,5 @@ import * as ElevenLabs from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientEvent: core.serialization.Schema<serializers.ClientEvent.Raw, ElevenLabs.ClientEvent>;
8
8
  export declare namespace ClientEvent {
9
- type Raw = "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";
9
+ type Raw = "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";
10
10
  }
@@ -45,6 +45,7 @@ exports.ClientEvent = core.serialization.enum_([
45
45
  "audio",
46
46
  "interruption",
47
47
  "user_transcript",
48
+ "tentative_user_transcript",
48
49
  "agent_response",
49
50
  "agent_response_correction",
50
51
  "client_tool_call",
@@ -6,6 +6,7 @@ import * as ElevenLabs from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { FeatureStatusCommonModel } from "./FeatureStatusCommonModel";
8
8
  import { WorkflowFeaturesUsageCommonModel } from "./WorkflowFeaturesUsageCommonModel";
9
+ import { TestsFeatureUsageCommonModel } from "./TestsFeatureUsageCommonModel";
9
10
  export declare const FeaturesUsageCommonModel: core.serialization.ObjectSchema<serializers.FeaturesUsageCommonModel.Raw, ElevenLabs.FeaturesUsageCommonModel>;
10
11
  export declare namespace FeaturesUsageCommonModel {
11
12
  interface Raw {
@@ -21,5 +22,6 @@ export declare namespace FeaturesUsageCommonModel {
21
22
  is_livekit?: boolean | null;
22
23
  voicemail_detection?: FeatureStatusCommonModel.Raw | null;
23
24
  workflow?: WorkflowFeaturesUsageCommonModel.Raw | null;
25
+ agent_testing?: TestsFeatureUsageCommonModel.Raw | null;
24
26
  }
25
27
  }
@@ -40,6 +40,7 @@ exports.FeaturesUsageCommonModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const FeatureStatusCommonModel_1 = require("./FeatureStatusCommonModel");
42
42
  const WorkflowFeaturesUsageCommonModel_1 = require("./WorkflowFeaturesUsageCommonModel");
43
+ const TestsFeatureUsageCommonModel_1 = require("./TestsFeatureUsageCommonModel");
43
44
  exports.FeaturesUsageCommonModel = core.serialization.object({
44
45
  languageDetection: core.serialization.property("language_detection", FeatureStatusCommonModel_1.FeatureStatusCommonModel.optional()),
45
46
  transferToAgent: core.serialization.property("transfer_to_agent", FeatureStatusCommonModel_1.FeatureStatusCommonModel.optional()),
@@ -53,4 +54,5 @@ exports.FeaturesUsageCommonModel = core.serialization.object({
53
54
  isLivekit: core.serialization.property("is_livekit", core.serialization.boolean().optional()),
54
55
  voicemailDetection: core.serialization.property("voicemail_detection", FeatureStatusCommonModel_1.FeatureStatusCommonModel.optional()),
55
56
  workflow: WorkflowFeaturesUsageCommonModel_1.WorkflowFeaturesUsageCommonModel.optional(),
57
+ agentTesting: core.serialization.property("agent_testing", TestsFeatureUsageCommonModel_1.TestsFeatureUsageCommonModel.optional()),
56
58
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as ElevenLabs from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const TestsFeatureUsageCommonModel: core.serialization.ObjectSchema<serializers.TestsFeatureUsageCommonModel.Raw, ElevenLabs.TestsFeatureUsageCommonModel>;
8
+ export declare namespace TestsFeatureUsageCommonModel {
9
+ interface Raw {
10
+ enabled?: boolean | null;
11
+ tests_ran_after_last_modification?: boolean | null;
12
+ tests_ran_in_last_7_days?: boolean | null;
13
+ }
14
+ }
@@ -36,11 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.CreateUnitTestRequestDynamicVariablesValue = void 0;
39
+ exports.TestsFeatureUsageCommonModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CreateUnitTestRequestDynamicVariablesValue = core.serialization.undiscriminatedUnion([
42
- core.serialization.string(),
43
- core.serialization.number(),
44
- core.serialization.number(),
45
- core.serialization.boolean(),
46
- ]);
41
+ exports.TestsFeatureUsageCommonModel = core.serialization.object({
42
+ enabled: core.serialization.boolean().optional(),
43
+ testsRanAfterLastModification: core.serialization.property("tests_ran_after_last_modification", core.serialization.boolean().optional()),
44
+ testsRanInLast7Days: core.serialization.property("tests_ran_in_last_7_days", core.serialization.boolean().optional()),
45
+ });
@@ -17,5 +17,6 @@ export declare namespace UnitTestRunResponseModel {
17
17
  agent_responses?: ConversationHistoryTranscriptCommonModelOutput.Raw[] | null;
18
18
  test_id: string;
19
19
  condition_result?: TestConditionResultCommonModel.Raw | null;
20
+ last_updated_at_unix?: number | null;
20
21
  }
21
22
  }
@@ -49,4 +49,5 @@ exports.UnitTestRunResponseModel = core.serialization.object({
49
49
  agentResponses: core.serialization.property("agent_responses", core.serialization.list(ConversationHistoryTranscriptCommonModelOutput_1.ConversationHistoryTranscriptCommonModelOutput).optional()),
50
50
  testId: core.serialization.property("test_id", core.serialization.string()),
51
51
  conditionResult: core.serialization.property("condition_result", TestConditionResultCommonModel_1.TestConditionResultCommonModel.optional()),
52
+ lastUpdatedAtUnix: core.serialization.property("last_updated_at_unix", core.serialization.number().optional()),
52
53
  });
@@ -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);