retell-sdk 4.56.0 → 4.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,127 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ export declare class Tests extends APIResource {
4
+ /**
5
+ * Create a batch test to run multiple test cases
6
+ */
7
+ createBatchTest(body: TestCreateBatchTestParams, options?: Core.RequestOptions): Core.APIPromise<BatchTestResponse>;
8
+ }
9
+ export interface BatchTestResponse {
10
+ /**
11
+ * Timestamp when the batch job was created (milliseconds since epoch)
12
+ */
13
+ creation_timestamp: number;
14
+ /**
15
+ * Number of test cases that encountered errors
16
+ */
17
+ error_count: number;
18
+ /**
19
+ * Number of test cases that failed
20
+ */
21
+ fail_count: number;
22
+ /**
23
+ * Number of test cases that passed
24
+ */
25
+ pass_count: number;
26
+ response_engine: BatchTestResponse.ResponseEngineRetellLm | BatchTestResponse.ResponseEngineCustomLm | BatchTestResponse.ResponseEngineConversationFlow;
27
+ /**
28
+ * Status of the batch job
29
+ */
30
+ status: 'in_progress' | 'complete';
31
+ /**
32
+ * Unique identifier for the test case batch job
33
+ */
34
+ test_case_batch_job_id: string;
35
+ /**
36
+ * Total number of test cases in the batch
37
+ */
38
+ total_count: number;
39
+ /**
40
+ * Timestamp when the batch job was last modified (milliseconds since epoch)
41
+ */
42
+ user_modified_timestamp: number;
43
+ }
44
+ export declare namespace BatchTestResponse {
45
+ interface ResponseEngineRetellLm {
46
+ /**
47
+ * id of the Retell LLM Response Engine.
48
+ */
49
+ llm_id: string;
50
+ /**
51
+ * type of the Response Engine.
52
+ */
53
+ type: 'retell-llm';
54
+ /**
55
+ * Version of the Retell LLM Response Engine.
56
+ */
57
+ version?: number | null;
58
+ }
59
+ interface ResponseEngineCustomLm {
60
+ /**
61
+ * LLM websocket url of the custom LLM.
62
+ */
63
+ llm_websocket_url: string;
64
+ /**
65
+ * type of the Response Engine.
66
+ */
67
+ type: 'custom-llm';
68
+ }
69
+ interface ResponseEngineConversationFlow {
70
+ /**
71
+ * ID of the Conversation Flow Response Engine.
72
+ */
73
+ conversation_flow_id: string;
74
+ /**
75
+ * type of the Response Engine.
76
+ */
77
+ type: 'conversation-flow';
78
+ /**
79
+ * Version of the Conversation Flow Response Engine.
80
+ */
81
+ version?: number | null;
82
+ }
83
+ }
84
+ export interface TestCreateBatchTestParams {
85
+ /**
86
+ * Response engine to use for the test cases. Custom LLM is not supported.
87
+ */
88
+ response_engine: TestCreateBatchTestParams.ResponseEngineRetellLm | TestCreateBatchTestParams.ResponseEngineConversationFlow;
89
+ /**
90
+ * Array of test case definition IDs to run
91
+ */
92
+ test_case_definition_ids: Array<string>;
93
+ }
94
+ export declare namespace TestCreateBatchTestParams {
95
+ interface ResponseEngineRetellLm {
96
+ /**
97
+ * id of the Retell LLM Response Engine.
98
+ */
99
+ llm_id: string;
100
+ /**
101
+ * type of the Response Engine.
102
+ */
103
+ type: 'retell-llm';
104
+ /**
105
+ * Version of the Retell LLM Response Engine.
106
+ */
107
+ version?: number | null;
108
+ }
109
+ interface ResponseEngineConversationFlow {
110
+ /**
111
+ * ID of the Conversation Flow Response Engine.
112
+ */
113
+ conversation_flow_id: string;
114
+ /**
115
+ * type of the Response Engine.
116
+ */
117
+ type: 'conversation-flow';
118
+ /**
119
+ * Version of the Conversation Flow Response Engine.
120
+ */
121
+ version?: number | null;
122
+ }
123
+ }
124
+ export declare namespace Tests {
125
+ export { type BatchTestResponse as BatchTestResponse, type TestCreateBatchTestParams as TestCreateBatchTestParams, };
126
+ }
127
+ //# sourceMappingURL=tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAE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BAA8B,CAAC;IAE7D;;OAEG;IACH,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzC;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,sBAAsB;QACrC;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,IAAI,EAAE,YAAY,CAAC;QAEnB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB;IAED,UAAiB,8BAA8B;QAC7C;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAE7B;;WAEG;QACH,IAAI,EAAE,mBAAmB,CAAC;QAE1B;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Tests = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ class Tests extends resource_1.APIResource {
7
+ /**
8
+ * Create a batch test to run multiple test cases
9
+ */
10
+ createBatchTest(body, options) {
11
+ return this._client.post('/create-batch-test', { body, ...options });
12
+ }
13
+ }
14
+ exports.Tests = Tests;
15
+ //# sourceMappingURL=tests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tests.js","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,eAAe,CACb,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAVD,sBAUC"}
@@ -0,0 +1,11 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ export class Tests extends APIResource {
4
+ /**
5
+ * Create a batch test to run multiple test cases
6
+ */
7
+ createBatchTest(body, options) {
8
+ return this._client.post('/create-batch-test', { body, ...options });
9
+ }
10
+ }
11
+ //# sourceMappingURL=tests.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tests.mjs","sourceRoot":"","sources":["../src/resources/tests.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,eAAe,CACb,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
package/src/index.ts CHANGED
@@ -77,6 +77,7 @@ import {
77
77
  PhoneNumberResponse,
78
78
  PhoneNumberUpdateParams,
79
79
  } from './resources/phone-number';
80
+ import { BatchTestResponse, TestCreateBatchTestParams, Tests } from './resources/tests';
80
81
  import { Voice, VoiceListResponse, VoiceResponse } from './resources/voice';
81
82
  import * as Webhooks from "./lib/webhook_auth";
82
83
 
@@ -199,6 +200,7 @@ export class Retell extends Core.APIClient {
199
200
  voice: API.Voice = new API.Voice(this);
200
201
  concurrency: API.Concurrency = new API.Concurrency(this);
201
202
  batchCall: API.BatchCall = new API.BatchCall(this);
203
+ tests: API.Tests = new API.Tests(this);
202
204
  mcpTool: API.McpTool = new API.McpTool(this);
203
205
 
204
206
  /**
@@ -257,6 +259,7 @@ Retell.KnowledgeBase = KnowledgeBase;
257
259
  Retell.Voice = Voice;
258
260
  Retell.Concurrency = Concurrency;
259
261
  Retell.BatchCall = BatchCall;
262
+ Retell.Tests = Tests;
260
263
  Retell.McpTool = McpTool;
261
264
 
262
265
  export declare namespace Retell {
@@ -343,6 +346,12 @@ export declare namespace Retell {
343
346
  type BatchCallCreateBatchCallParams as BatchCallCreateBatchCallParams,
344
347
  };
345
348
 
349
+ export {
350
+ Tests as Tests,
351
+ type BatchTestResponse as BatchTestResponse,
352
+ type TestCreateBatchTestParams as TestCreateBatchTestParams,
353
+ };
354
+
346
355
  export {
347
356
  McpTool as McpTool,
348
357
  type McpToolDefinition as McpToolDefinition,
@@ -234,7 +234,7 @@ export interface AgentResponse {
234
234
  * Check out
235
235
  * [backchannel default words](/agent/interaction-configuration#backchannel) for
236
236
  * more details. Note that certain voices do not work too well with certain words,
237
- * so it's recommended to expeirment before adding any words.
237
+ * so it's recommended to experiment before adding any words.
238
238
  */
239
239
  backchannel_words?: Array<string> | null;
240
240
 
@@ -850,7 +850,7 @@ export interface AgentCreateParams {
850
850
  * Check out
851
851
  * [backchannel default words](/agent/interaction-configuration#backchannel) for
852
852
  * more details. Note that certain voices do not work too well with certain words,
853
- * so it's recommended to expeirment before adding any words.
853
+ * so it's recommended to experiment before adding any words.
854
854
  */
855
855
  backchannel_words?: Array<string> | null;
856
856
 
@@ -1450,7 +1450,7 @@ export interface AgentUpdateParams {
1450
1450
  * will apply. Check out
1451
1451
  * [backchannel default words](/agent/interaction-configuration#backchannel) for
1452
1452
  * more details. Note that certain voices do not work too well with certain words,
1453
- * so it's recommended to expeirment before adding any words.
1453
+ * so it's recommended to experiment before adding any words.
1454
1454
  */
1455
1455
  backchannel_words?: Array<string> | null;
1456
1456