retell-sdk 4.48.0 → 4.50.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,39 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ export declare class McpTool extends APIResource {
4
+ /**
5
+ * Get MCP tools for a specific agent
6
+ */
7
+ getMcpTools(agentId: string, query: McpToolGetMcpToolsParams, options?: Core.RequestOptions): Core.APIPromise<McpToolGetMcpToolsResponse>;
8
+ }
9
+ export interface McpToolDefinition {
10
+ /**
11
+ * Description of what the MCP tool does.
12
+ */
13
+ description: string;
14
+ /**
15
+ * JSON schema defining the input parameters for the tool.
16
+ */
17
+ inputSchema: {
18
+ [key: string]: unknown;
19
+ };
20
+ /**
21
+ * Name of the MCP tool.
22
+ */
23
+ name: string;
24
+ }
25
+ export type McpToolGetMcpToolsResponse = Array<McpToolDefinition>;
26
+ export interface McpToolGetMcpToolsParams {
27
+ /**
28
+ * The ID of the MCP server to get tools from.
29
+ */
30
+ mcp_id: string;
31
+ /**
32
+ * Optional version of the API to use for this request.
33
+ */
34
+ version?: number;
35
+ }
36
+ export declare namespace McpTool {
37
+ export { type McpToolDefinition as McpToolDefinition, type McpToolGetMcpToolsResponse as McpToolGetMcpToolsResponse, type McpToolGetMcpToolsParams as McpToolGetMcpToolsParams, };
38
+ }
39
+ //# sourceMappingURL=mcp-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-tool.d.ts","sourceRoot":"","sources":["../src/resources/mcp-tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,WAAW,CACT,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAG/C;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAExC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAElE,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,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.McpTool = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ class McpTool extends resource_1.APIResource {
7
+ /**
8
+ * Get MCP tools for a specific agent
9
+ */
10
+ getMcpTools(agentId, query, options) {
11
+ return this._client.get(`/get-mcp-tools/${agentId}`, { query, ...options });
12
+ }
13
+ }
14
+ exports.McpTool = McpTool;
15
+ //# sourceMappingURL=mcp-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-tool.js","sourceRoot":"","sources":["../src/resources/mcp-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,WAAW,CACT,OAAe,EACf,KAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAXD,0BAWC"}
@@ -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 McpTool extends APIResource {
4
+ /**
5
+ * Get MCP tools for a specific agent
6
+ */
7
+ getMcpTools(agentId, query, options) {
8
+ return this._client.get(`/get-mcp-tools/${agentId}`, { query, ...options });
9
+ }
10
+ }
11
+ //# sourceMappingURL=mcp-tool.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-tool.mjs","sourceRoot":"","sources":["../src/resources/mcp-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,WAAW,CACT,OAAe,EACf,KAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
package/src/index.ts CHANGED
@@ -63,6 +63,12 @@ import {
63
63
  LlmRetrieveParams,
64
64
  LlmUpdateParams,
65
65
  } from './resources/llm';
66
+ import {
67
+ McpTool,
68
+ McpToolDefinition,
69
+ McpToolGetMcpToolsParams,
70
+ McpToolGetMcpToolsResponse,
71
+ } from './resources/mcp-tool';
66
72
  import {
67
73
  PhoneNumber,
68
74
  PhoneNumberCreateParams,
@@ -193,6 +199,7 @@ export class Retell extends Core.APIClient {
193
199
  voice: API.Voice = new API.Voice(this);
194
200
  concurrency: API.Concurrency = new API.Concurrency(this);
195
201
  batchCall: API.BatchCall = new API.BatchCall(this);
202
+ mcpTool: API.McpTool = new API.McpTool(this);
196
203
 
197
204
  /**
198
205
  * Check whether the base URL is set to its default.
@@ -250,6 +257,7 @@ Retell.KnowledgeBase = KnowledgeBase;
250
257
  Retell.Voice = Voice;
251
258
  Retell.Concurrency = Concurrency;
252
259
  Retell.BatchCall = BatchCall;
260
+ Retell.McpTool = McpTool;
253
261
 
254
262
  export declare namespace Retell {
255
263
  export type RequestOptions = Core.RequestOptions;
@@ -334,6 +342,13 @@ export declare namespace Retell {
334
342
  type BatchCallResponse as BatchCallResponse,
335
343
  type BatchCallCreateBatchCallParams as BatchCallCreateBatchCallParams,
336
344
  };
345
+
346
+ export {
347
+ McpTool as McpTool,
348
+ type McpToolDefinition as McpToolDefinition,
349
+ type McpToolGetMcpToolsResponse as McpToolGetMcpToolsResponse,
350
+ type McpToolGetMcpToolsParams as McpToolGetMcpToolsParams,
351
+ };
337
352
  }
338
353
 
339
354
  export { toFile, fileFromPath } from './uploads';
@@ -406,6 +406,7 @@ export interface AgentResponse {
406
406
  | 'gpt-5'
407
407
  | 'gpt-5-mini'
408
408
  | 'gpt-5-nano'
409
+ | 'claude-4.5-sonnet'
409
410
  | 'claude-4.0-sonnet'
410
411
  | 'claude-3.7-sonnet'
411
412
  | 'claude-3.5-haiku'
@@ -1016,6 +1017,7 @@ export interface AgentCreateParams {
1016
1017
  | 'gpt-5'
1017
1018
  | 'gpt-5-mini'
1018
1019
  | 'gpt-5-nano'
1020
+ | 'claude-4.5-sonnet'
1019
1021
  | 'claude-4.0-sonnet'
1020
1022
  | 'claude-3.7-sonnet'
1021
1023
  | 'claude-3.5-haiku'
@@ -1617,6 +1619,7 @@ export interface AgentUpdateParams {
1617
1619
  | 'gpt-5'
1618
1620
  | 'gpt-5-mini'
1619
1621
  | 'gpt-5-nano'
1622
+ | 'claude-4.5-sonnet'
1620
1623
  | 'claude-4.0-sonnet'
1621
1624
  | 'claude-3.7-sonnet'
1622
1625
  | 'claude-3.5-haiku'