retell-sdk 4.47.0 → 4.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/core.js +3 -3
  3. package/core.js.map +1 -1
  4. package/core.mjs +3 -3
  5. package/core.mjs.map +1 -1
  6. package/index.d.mts +3 -0
  7. package/index.d.ts +3 -0
  8. package/index.d.ts.map +1 -1
  9. package/index.js +3 -0
  10. package/index.js.map +1 -1
  11. package/index.mjs +3 -0
  12. package/index.mjs.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/agent.d.ts +12 -0
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +17 -0
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +17 -0
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/conversation-flow.d.ts +12 -0
  21. package/resources/conversation-flow.d.ts.map +1 -1
  22. package/resources/index.d.ts +1 -0
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +3 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +1 -0
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/llm.d.ts +63 -6
  29. package/resources/llm.d.ts.map +1 -1
  30. package/resources/mcp-tool.d.ts +39 -0
  31. package/resources/mcp-tool.d.ts.map +1 -0
  32. package/resources/mcp-tool.js +15 -0
  33. package/resources/mcp-tool.js.map +1 -0
  34. package/resources/mcp-tool.mjs +11 -0
  35. package/resources/mcp-tool.mjs.map +1 -0
  36. package/src/core.ts +3 -3
  37. package/src/index.ts +15 -0
  38. package/src/resources/agent.ts +18 -0
  39. package/src/resources/conversation-flow.ts +15 -0
  40. package/src/resources/index.ts +6 -0
  41. package/src/resources/llm.ts +78 -12
  42. package/src/resources/mcp-tool.ts +56 -0
  43. package/src/version.ts +1 -1
  44. package/version.d.ts +1 -1
  45. package/version.js +1 -1
  46. package/version.mjs +1 -1
@@ -221,6 +221,12 @@ export interface LlmResponse {
221
221
  */
222
222
  s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | 'gpt-realtime' | null;
223
223
 
224
+ /**
225
+ * The speaker who starts the conversation. Required. Must be either 'user' or
226
+ * 'agent'.
227
+ */
228
+ start_speaker?: 'user' | 'agent';
229
+
224
230
  /**
225
231
  * Name of the starting state. Required if states is not empty.
226
232
  */
@@ -764,6 +770,11 @@ export namespace LlmResponse {
764
770
  */
765
771
  name: string;
766
772
 
773
+ /**
774
+ * Post call analysis setting for the agent swap.
775
+ */
776
+ post_call_analysis_setting: 'both_agents' | 'only_destination_agent';
777
+
767
778
  type: 'agent_swap';
768
779
 
769
780
  /**
@@ -783,9 +794,12 @@ export namespace LlmResponse {
783
794
  */
784
795
  execution_message_description?: string;
785
796
 
786
- post_call_analysis_setting?: 'both_agents' | 'only_destination_agent';
787
-
788
797
  speak_during_execution?: boolean;
798
+
799
+ /**
800
+ * Webhook setting for the agent swap, defaults to only source.
801
+ */
802
+ webhook_setting?: 'both_agents' | 'only_destination_agent' | 'only_source_agent';
789
803
  }
790
804
 
791
805
  export interface McpTool {
@@ -1504,6 +1518,11 @@ export namespace LlmResponse {
1504
1518
  */
1505
1519
  name: string;
1506
1520
 
1521
+ /**
1522
+ * Post call analysis setting for the agent swap.
1523
+ */
1524
+ post_call_analysis_setting: 'both_agents' | 'only_destination_agent';
1525
+
1507
1526
  type: 'agent_swap';
1508
1527
 
1509
1528
  /**
@@ -1523,9 +1542,12 @@ export namespace LlmResponse {
1523
1542
  */
1524
1543
  execution_message_description?: string;
1525
1544
 
1526
- post_call_analysis_setting?: 'both_agents' | 'only_destination_agent';
1527
-
1528
1545
  speak_during_execution?: boolean;
1546
+
1547
+ /**
1548
+ * Webhook setting for the agent swap, defaults to only source.
1549
+ */
1550
+ webhook_setting?: 'both_agents' | 'only_destination_agent' | 'only_source_agent';
1529
1551
  }
1530
1552
 
1531
1553
  export interface McpTool {
@@ -1717,6 +1739,12 @@ export interface LlmCreateParams {
1717
1739
  */
1718
1740
  s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | 'gpt-realtime' | null;
1719
1741
 
1742
+ /**
1743
+ * The speaker who starts the conversation. Required. Must be either 'user' or
1744
+ * 'agent'.
1745
+ */
1746
+ start_speaker?: 'user' | 'agent';
1747
+
1720
1748
  /**
1721
1749
  * Name of the starting state. Required if states is not empty.
1722
1750
  */
@@ -2260,6 +2288,11 @@ export namespace LlmCreateParams {
2260
2288
  */
2261
2289
  name: string;
2262
2290
 
2291
+ /**
2292
+ * Post call analysis setting for the agent swap.
2293
+ */
2294
+ post_call_analysis_setting: 'both_agents' | 'only_destination_agent';
2295
+
2263
2296
  type: 'agent_swap';
2264
2297
 
2265
2298
  /**
@@ -2279,9 +2312,12 @@ export namespace LlmCreateParams {
2279
2312
  */
2280
2313
  execution_message_description?: string;
2281
2314
 
2282
- post_call_analysis_setting?: 'both_agents' | 'only_destination_agent';
2283
-
2284
2315
  speak_during_execution?: boolean;
2316
+
2317
+ /**
2318
+ * Webhook setting for the agent swap, defaults to only source.
2319
+ */
2320
+ webhook_setting?: 'both_agents' | 'only_destination_agent' | 'only_source_agent';
2285
2321
  }
2286
2322
 
2287
2323
  export interface McpTool {
@@ -3000,6 +3036,11 @@ export namespace LlmCreateParams {
3000
3036
  */
3001
3037
  name: string;
3002
3038
 
3039
+ /**
3040
+ * Post call analysis setting for the agent swap.
3041
+ */
3042
+ post_call_analysis_setting: 'both_agents' | 'only_destination_agent';
3043
+
3003
3044
  type: 'agent_swap';
3004
3045
 
3005
3046
  /**
@@ -3019,9 +3060,12 @@ export namespace LlmCreateParams {
3019
3060
  */
3020
3061
  execution_message_description?: string;
3021
3062
 
3022
- post_call_analysis_setting?: 'both_agents' | 'only_destination_agent';
3023
-
3024
3063
  speak_during_execution?: boolean;
3064
+
3065
+ /**
3066
+ * Webhook setting for the agent swap, defaults to only source.
3067
+ */
3068
+ webhook_setting?: 'both_agents' | 'only_destination_agent' | 'only_source_agent';
3025
3069
  }
3026
3070
 
3027
3071
  export interface McpTool {
@@ -3228,6 +3272,12 @@ export interface LlmUpdateParams {
3228
3272
  */
3229
3273
  s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | 'gpt-realtime' | null;
3230
3274
 
3275
+ /**
3276
+ * Body param: The speaker who starts the conversation. Required. Must be either
3277
+ * 'user' or 'agent'.
3278
+ */
3279
+ start_speaker?: 'user' | 'agent';
3280
+
3231
3281
  /**
3232
3282
  * Body param: Name of the starting state. Required if states is not empty.
3233
3283
  */
@@ -3771,6 +3821,11 @@ export namespace LlmUpdateParams {
3771
3821
  */
3772
3822
  name: string;
3773
3823
 
3824
+ /**
3825
+ * Post call analysis setting for the agent swap.
3826
+ */
3827
+ post_call_analysis_setting: 'both_agents' | 'only_destination_agent';
3828
+
3774
3829
  type: 'agent_swap';
3775
3830
 
3776
3831
  /**
@@ -3790,9 +3845,12 @@ export namespace LlmUpdateParams {
3790
3845
  */
3791
3846
  execution_message_description?: string;
3792
3847
 
3793
- post_call_analysis_setting?: 'both_agents' | 'only_destination_agent';
3794
-
3795
3848
  speak_during_execution?: boolean;
3849
+
3850
+ /**
3851
+ * Webhook setting for the agent swap, defaults to only source.
3852
+ */
3853
+ webhook_setting?: 'both_agents' | 'only_destination_agent' | 'only_source_agent';
3796
3854
  }
3797
3855
 
3798
3856
  export interface McpTool {
@@ -4511,6 +4569,11 @@ export namespace LlmUpdateParams {
4511
4569
  */
4512
4570
  name: string;
4513
4571
 
4572
+ /**
4573
+ * Post call analysis setting for the agent swap.
4574
+ */
4575
+ post_call_analysis_setting: 'both_agents' | 'only_destination_agent';
4576
+
4514
4577
  type: 'agent_swap';
4515
4578
 
4516
4579
  /**
@@ -4530,9 +4593,12 @@ export namespace LlmUpdateParams {
4530
4593
  */
4531
4594
  execution_message_description?: string;
4532
4595
 
4533
- post_call_analysis_setting?: 'both_agents' | 'only_destination_agent';
4534
-
4535
4596
  speak_during_execution?: boolean;
4597
+
4598
+ /**
4599
+ * Webhook setting for the agent swap, defaults to only source.
4600
+ */
4601
+ webhook_setting?: 'both_agents' | 'only_destination_agent' | 'only_source_agent';
4536
4602
  }
4537
4603
 
4538
4604
  export interface McpTool {
@@ -0,0 +1,56 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
+
6
+ export class McpTool extends APIResource {
7
+ /**
8
+ * Get MCP tools for a specific agent
9
+ */
10
+ getMcpTools(
11
+ agentId: string,
12
+ query: McpToolGetMcpToolsParams,
13
+ options?: Core.RequestOptions,
14
+ ): Core.APIPromise<McpToolGetMcpToolsResponse> {
15
+ return this._client.get(`/get-mcp-tools/${agentId}`, { query, ...options });
16
+ }
17
+ }
18
+
19
+ export interface McpToolDefinition {
20
+ /**
21
+ * Description of what the MCP tool does.
22
+ */
23
+ description: string;
24
+
25
+ /**
26
+ * JSON schema defining the input parameters for the tool.
27
+ */
28
+ inputSchema: { [key: string]: unknown };
29
+
30
+ /**
31
+ * Name of the MCP tool.
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ export type McpToolGetMcpToolsResponse = Array<McpToolDefinition>;
37
+
38
+ export interface McpToolGetMcpToolsParams {
39
+ /**
40
+ * The ID of the MCP server to get tools from.
41
+ */
42
+ mcp_id: string;
43
+
44
+ /**
45
+ * Optional version of the API to use for this request.
46
+ */
47
+ version?: number;
48
+ }
49
+
50
+ export declare namespace McpTool {
51
+ export {
52
+ type McpToolDefinition as McpToolDefinition,
53
+ type McpToolGetMcpToolsResponse as McpToolGetMcpToolsResponse,
54
+ type McpToolGetMcpToolsParams as McpToolGetMcpToolsParams,
55
+ };
56
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.47.0'; // x-release-please-version
1
+ export const VERSION = '4.49.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.47.0";
1
+ export declare const VERSION = "4.49.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.47.0'; // x-release-please-version
4
+ exports.VERSION = '4.49.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.47.0'; // x-release-please-version
1
+ export const VERSION = '4.49.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map