retell-sdk 4.62.0 → 4.63.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.
@@ -5,6 +5,7 @@ export { Chat, type ChatResponse, type ChatListResponse, type ChatCreateChatComp
5
5
  export { ChatAgent, type ChatAgentResponse, type ChatAgentListResponse, type ChatAgentGetVersionsResponse, type ChatAgentCreateParams, type ChatAgentRetrieveParams, type ChatAgentUpdateParams, type ChatAgentListParams, } from "./chat-agent.js";
6
6
  export { Concurrency, type ConcurrencyRetrieveResponse } from "./concurrency.js";
7
7
  export { ConversationFlow, type ConversationFlowResponse, type ConversationFlowListResponse, type ConversationFlowCreateParams, type ConversationFlowRetrieveParams, type ConversationFlowUpdateParams, type ConversationFlowListParams, } from "./conversation-flow.js";
8
+ export { ConversationFlowComponent, type ConversationFlowComponentResponse, type ConversationFlowComponentListResponse, type ConversationFlowComponentCreateParams, type ConversationFlowComponentUpdateParams, } from "./conversation-flow-component.js";
8
9
  export { KnowledgeBase, type KnowledgeBaseResponse, type KnowledgeBaseListResponse, type KnowledgeBaseCreateParams, type KnowledgeBaseAddSourcesParams, } from "./knowledge-base.js";
9
10
  export { Llm, type LlmResponse, type LlmListResponse, type LlmCreateParams, type LlmRetrieveParams, type LlmUpdateParams, type LlmListParams, } from "./llm.js";
10
11
  export { McpTool, type McpToolDefinition, type McpToolGetMcpToolsResponse, type McpToolGetMcpToolsParams, } from "./mcp-tool.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,KAAK,8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-1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Voice = exports.Tests = exports.PhoneNumber = exports.McpTool = exports.Llm = exports.KnowledgeBase = exports.ConversationFlow = exports.Concurrency = exports.ChatAgent = exports.Chat = exports.Call = exports.BatchCall = exports.Agent = void 0;
4
+ exports.Voice = exports.Tests = exports.PhoneNumber = exports.McpTool = exports.Llm = exports.KnowledgeBase = exports.ConversationFlowComponent = exports.ConversationFlow = exports.Concurrency = exports.ChatAgent = exports.Chat = exports.Call = exports.BatchCall = exports.Agent = void 0;
5
5
  var agent_1 = require("./agent.js");
6
6
  Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
7
7
  var batch_call_1 = require("./batch-call.js");
@@ -16,6 +16,8 @@ var concurrency_1 = require("./concurrency.js");
16
16
  Object.defineProperty(exports, "Concurrency", { enumerable: true, get: function () { return concurrency_1.Concurrency; } });
17
17
  var conversation_flow_1 = require("./conversation-flow.js");
18
18
  Object.defineProperty(exports, "ConversationFlow", { enumerable: true, get: function () { return conversation_flow_1.ConversationFlow; } });
19
+ var conversation_flow_component_1 = require("./conversation-flow-component.js");
20
+ Object.defineProperty(exports, "ConversationFlowComponent", { enumerable: true, get: function () { return conversation_flow_component_1.ConversationFlowComponent; } });
19
21
  var knowledge_base_1 = require("./knowledge-base.js");
20
22
  Object.defineProperty(exports, "KnowledgeBase", { enumerable: true, get: function () { return knowledge_base_1.KnowledgeBase; } });
21
23
  var llm_1 = require("./llm.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,8CAAsG;AAA7F,uGAAA,SAAS,OAAA;AAClB,kCAWgB;AAVd,4FAAA,IAAI,OAAA;AAWN,kCASgB;AARd,4FAAA,IAAI,OAAA;AASN,8CASsB;AARpB,uGAAA,SAAS,OAAA;AASX,gDAA8E;AAArE,0GAAA,WAAW,OAAA;AACpB,4DAQ6B;AAP3B,qHAAA,gBAAgB,OAAA;AAQlB,sDAM0B;AALxB,+GAAA,aAAa,OAAA;AAMf,gCAQe;AAPb,0FAAA,GAAG,OAAA;AAQL,0CAKoB;AAJlB,mGAAA,OAAO,OAAA;AAKT,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,oCAAwF;AAA/E,8FAAA,KAAK,OAAA;AACd,oCAA4E;AAAnE,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,8CAAsG;AAA7F,uGAAA,SAAS,OAAA;AAClB,kCAWgB;AAVd,4FAAA,IAAI,OAAA;AAWN,kCASgB;AARd,4FAAA,IAAI,OAAA;AASN,8CASsB;AARpB,uGAAA,SAAS,OAAA;AASX,gDAA8E;AAArE,0GAAA,WAAW,OAAA;AACpB,4DAQ6B;AAP3B,qHAAA,gBAAgB,OAAA;AAQlB,gFAMuC;AALrC,wIAAA,yBAAyB,OAAA;AAM3B,sDAM0B;AALxB,+GAAA,aAAa,OAAA;AAMf,gCAQe;AAPb,0FAAA,GAAG,OAAA;AAQL,0CAKoB;AAJlB,mGAAA,OAAO,OAAA;AAKT,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,oCAAwF;AAA/E,8FAAA,KAAK,OAAA;AACd,oCAA4E;AAAnE,8FAAA,KAAK,OAAA"}
@@ -6,6 +6,7 @@ export { Chat, } from "./chat.mjs";
6
6
  export { ChatAgent, } from "./chat-agent.mjs";
7
7
  export { Concurrency } from "./concurrency.mjs";
8
8
  export { ConversationFlow, } from "./conversation-flow.mjs";
9
+ export { ConversationFlowComponent, } from "./conversation-flow-component.mjs";
9
10
  export { KnowledgeBase, } from "./knowledge-base.mjs";
10
11
  export { Llm, } from "./llm.mjs";
11
12
  export { McpTool, } from "./mcp-tool.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAQN;OACM,EAAE,SAAS,EAA+D;OAC1E,EACL,IAAI,GAUL;OACM,EACL,IAAI,GAQL;OACM,EACL,SAAS,GAQV;OACM,EAAE,WAAW,EAAoC;OACjD,EACL,gBAAgB,GAOjB;OACM,EACL,aAAa,GAKd;OACM,EACL,GAAG,GAOJ;OACM,EACL,OAAO,GAIR;OACM,EACL,WAAW,GAMZ;OACM,EAAE,KAAK,EAA0D;OACjE,EAAE,KAAK,EAA8C"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAQN;OACM,EAAE,SAAS,EAA+D;OAC1E,EACL,IAAI,GAUL;OACM,EACL,IAAI,GAQL;OACM,EACL,SAAS,GAQV;OACM,EAAE,WAAW,EAAoC;OACjD,EACL,gBAAgB,GAOjB;OACM,EACL,yBAAyB,GAK1B;OACM,EACL,aAAa,GAKd;OACM,EACL,GAAG,GAOJ;OACM,EACL,OAAO,GAIR;OACM,EACL,WAAW,GAMZ;OACM,EAAE,KAAK,EAA0D;OACjE,EAAE,KAAK,EAA8C"}
@@ -29,7 +29,8 @@ export interface McpToolGetMcpToolsParams {
29
29
  */
30
30
  mcp_id: string;
31
31
  /**
32
- * Optional version of the API to use for this request.
32
+ * Optional version of the agent to use for this request. Default to latest
33
+ * version.
33
34
  */
34
35
  version?: number;
35
36
  }
@@ -1 +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,M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AC;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;;;OAGG;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"}
package/src/index.ts CHANGED
@@ -58,6 +58,13 @@ import {
58
58
  ConversationFlowRetrieveParams,
59
59
  ConversationFlowUpdateParams,
60
60
  } from './resources/conversation-flow';
61
+ import {
62
+ ConversationFlowComponent,
63
+ ConversationFlowComponentCreateParams,
64
+ ConversationFlowComponentListResponse,
65
+ ConversationFlowComponentResponse,
66
+ ConversationFlowComponentUpdateParams,
67
+ } from './resources/conversation-flow-component';
61
68
  import {
62
69
  KnowledgeBase,
63
70
  KnowledgeBaseAddSourcesParams,
@@ -208,6 +215,7 @@ export class Retell extends Core.APIClient {
208
215
  chatAgent: API.ChatAgent = new API.ChatAgent(this);
209
216
  llm: API.Llm = new API.Llm(this);
210
217
  conversationFlow: API.ConversationFlow = new API.ConversationFlow(this);
218
+ conversationFlowComponent: API.ConversationFlowComponent = new API.ConversationFlowComponent(this);
211
219
  knowledgeBase: API.KnowledgeBase = new API.KnowledgeBase(this);
212
220
  voice: API.Voice = new API.Voice(this);
213
221
  concurrency: API.Concurrency = new API.Concurrency(this);
@@ -268,6 +276,7 @@ Retell.Agent = AgentAPIAgent;
268
276
  Retell.ChatAgent = ChatAgent;
269
277
  Retell.Llm = Llm;
270
278
  Retell.ConversationFlow = ConversationFlow;
279
+ Retell.ConversationFlowComponent = ConversationFlowComponent;
271
280
  Retell.KnowledgeBase = KnowledgeBase;
272
281
  Retell.Voice = Voice;
273
282
  Retell.Concurrency = Concurrency;
@@ -353,6 +362,14 @@ export declare namespace Retell {
353
362
  type ConversationFlowListParams as ConversationFlowListParams,
354
363
  };
355
364
 
365
+ export {
366
+ ConversationFlowComponent as ConversationFlowComponent,
367
+ type ConversationFlowComponentResponse as ConversationFlowComponentResponse,
368
+ type ConversationFlowComponentListResponse as ConversationFlowComponentListResponse,
369
+ type ConversationFlowComponentCreateParams as ConversationFlowComponentCreateParams,
370
+ type ConversationFlowComponentUpdateParams as ConversationFlowComponentUpdateParams,
371
+ };
372
+
356
373
  export {
357
374
  KnowledgeBase as KnowledgeBase,
358
375
  type KnowledgeBaseResponse as KnowledgeBaseResponse,