retell-sdk 5.22.0 → 5.24.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 (107) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +10 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent.d.mts +17 -4
  10. package/resources/agent.d.mts.map +1 -1
  11. package/resources/agent.d.ts +17 -4
  12. package/resources/agent.d.ts.map +1 -1
  13. package/resources/agent.js +15 -0
  14. package/resources/agent.js.map +1 -1
  15. package/resources/agent.mjs +15 -0
  16. package/resources/agent.mjs.map +1 -1
  17. package/resources/batch-call.d.mts +2 -2
  18. package/resources/batch-call.d.mts.map +1 -1
  19. package/resources/batch-call.d.ts +2 -2
  20. package/resources/batch-call.d.ts.map +1 -1
  21. package/resources/call.d.mts +1754 -120
  22. package/resources/call.d.mts.map +1 -1
  23. package/resources/call.d.ts +1754 -120
  24. package/resources/call.d.ts.map +1 -1
  25. package/resources/call.js +7 -4
  26. package/resources/call.js.map +1 -1
  27. package/resources/call.mjs +7 -4
  28. package/resources/call.mjs.map +1 -1
  29. package/resources/chat-agent.d.mts +16 -1
  30. package/resources/chat-agent.d.mts.map +1 -1
  31. package/resources/chat-agent.d.ts +16 -1
  32. package/resources/chat-agent.d.ts.map +1 -1
  33. package/resources/chat-agent.js +17 -0
  34. package/resources/chat-agent.js.map +1 -1
  35. package/resources/chat-agent.mjs +17 -0
  36. package/resources/chat-agent.mjs.map +1 -1
  37. package/resources/chat.d.mts +38 -12
  38. package/resources/chat.d.mts.map +1 -1
  39. package/resources/chat.d.ts +38 -12
  40. package/resources/chat.d.ts.map +1 -1
  41. package/resources/chat.js +8 -5
  42. package/resources/chat.js.map +1 -1
  43. package/resources/chat.mjs +8 -5
  44. package/resources/chat.mjs.map +1 -1
  45. package/resources/conversation-flow-component.d.mts +33 -5
  46. package/resources/conversation-flow-component.d.mts.map +1 -1
  47. package/resources/conversation-flow-component.d.ts +33 -5
  48. package/resources/conversation-flow-component.d.ts.map +1 -1
  49. package/resources/conversation-flow-component.js +8 -4
  50. package/resources/conversation-flow-component.js.map +1 -1
  51. package/resources/conversation-flow-component.mjs +8 -4
  52. package/resources/conversation-flow-component.mjs.map +1 -1
  53. package/resources/conversation-flow.d.mts +21 -14
  54. package/resources/conversation-flow.d.mts.map +1 -1
  55. package/resources/conversation-flow.d.ts +21 -14
  56. package/resources/conversation-flow.d.ts.map +1 -1
  57. package/resources/conversation-flow.js +7 -3
  58. package/resources/conversation-flow.js.map +1 -1
  59. package/resources/conversation-flow.mjs +7 -3
  60. package/resources/conversation-flow.mjs.map +1 -1
  61. package/resources/index.d.mts +5 -5
  62. package/resources/index.d.mts.map +1 -1
  63. package/resources/index.d.ts +5 -5
  64. package/resources/index.d.ts.map +1 -1
  65. package/resources/index.js.map +1 -1
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/llm.d.mts +23 -15
  68. package/resources/llm.d.mts.map +1 -1
  69. package/resources/llm.d.ts +23 -15
  70. package/resources/llm.d.ts.map +1 -1
  71. package/resources/llm.js +6 -3
  72. package/resources/llm.js.map +1 -1
  73. package/resources/llm.mjs +6 -3
  74. package/resources/llm.mjs.map +1 -1
  75. package/resources/phone-number.d.mts +32 -5
  76. package/resources/phone-number.d.mts.map +1 -1
  77. package/resources/phone-number.d.ts +32 -5
  78. package/resources/phone-number.d.ts.map +1 -1
  79. package/resources/phone-number.js +7 -4
  80. package/resources/phone-number.js.map +1 -1
  81. package/resources/phone-number.mjs +7 -4
  82. package/resources/phone-number.mjs.map +1 -1
  83. package/resources/tests.d.mts +64 -14
  84. package/resources/tests.d.mts.map +1 -1
  85. package/resources/tests.d.ts +64 -14
  86. package/resources/tests.d.ts.map +1 -1
  87. package/resources/tests.js +7 -13
  88. package/resources/tests.js.map +1 -1
  89. package/resources/tests.mjs +7 -13
  90. package/resources/tests.mjs.map +1 -1
  91. package/src/client.ts +10 -0
  92. package/src/resources/agent.ts +29 -0
  93. package/src/resources/batch-call.ts +3 -1
  94. package/src/resources/call.ts +2207 -118
  95. package/src/resources/chat-agent.ts +25 -0
  96. package/src/resources/chat.ts +42 -17
  97. package/src/resources/conversation-flow-component.ts +42 -5
  98. package/src/resources/conversation-flow.ts +24 -15
  99. package/src/resources/index.ts +5 -0
  100. package/src/resources/llm.ts +26 -16
  101. package/src/resources/phone-number.ts +41 -5
  102. package/src/resources/tests.ts +83 -16
  103. package/src/version.ts +1 -1
  104. package/version.d.mts +1 -1
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. package/version.mjs +1 -1
@@ -62,12 +62,16 @@ class ConversationFlowComponent extends resource_1.APIResource {
62
62
  });
63
63
  }
64
64
  /**
65
- * List shared conversation flow components
65
+ * List shared conversation flow components with pagination
66
66
  *
67
- * @deprecated
67
+ * @example
68
+ * ```ts
69
+ * const conversationFlowComponents =
70
+ * await client.conversationFlowComponent.list();
71
+ * ```
68
72
  */
69
- list(options) {
70
- return this._client.get('/list-conversation-flow-components', options);
73
+ list(query = {}, options) {
74
+ return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
71
75
  }
72
76
  /**
73
77
  * Delete a shared conversation flow component. When deleting a shared component,
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-flow-component.js","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA/FD,8DA+FC"}
1
+ {"version":3,"file":"conversation-flow-component.js","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtGD,8DAsGC"}
@@ -59,12 +59,16 @@ export class ConversationFlowComponent extends APIResource {
59
59
  });
60
60
  }
61
61
  /**
62
- * List shared conversation flow components
62
+ * List shared conversation flow components with pagination
63
63
  *
64
- * @deprecated
64
+ * @example
65
+ * ```ts
66
+ * const conversationFlowComponents =
67
+ * await client.conversationFlowComponent.list();
68
+ * ```
65
69
  */
66
- list(options) {
67
- return this._client.get('/list-conversation-flow-components', options);
70
+ list(query = {}, options) {
71
+ return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
68
72
  }
69
73
  /**
70
74
  * Delete a shared conversation flow component. When deleting a shared component,
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-flow-component.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"conversation-flow-component.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -51,9 +51,13 @@ export declare class ConversationFlow extends APIResource {
51
51
  */
52
52
  update(conversationFlowID: string, params: ConversationFlowUpdateParams, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
53
53
  /**
54
- * List all conversation flows that can be attached to an agent.
54
+ * List conversation flows with pagination
55
55
  *
56
- * @deprecated
56
+ * @example
57
+ * ```ts
58
+ * const conversationFlows =
59
+ * await client.conversationFlow.list();
60
+ * ```
57
61
  */
58
62
  list(query?: ConversationFlowListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowListResponse>;
59
63
  /**
@@ -11740,7 +11744,17 @@ export declare namespace ConversationFlowResponse {
11740
11744
  tool_id?: string;
11741
11745
  }
11742
11746
  }
11743
- export type ConversationFlowListResponse = Array<ConversationFlowResponse>;
11747
+ export interface ConversationFlowListResponse {
11748
+ /**
11749
+ * Whether more results are available.
11750
+ */
11751
+ has_more?: boolean;
11752
+ items?: Array<ConversationFlowResponse>;
11753
+ /**
11754
+ * Pagination key for the next page.
11755
+ */
11756
+ pagination_key?: string;
11757
+ }
11744
11758
  export interface ConversationFlowCreateParams {
11745
11759
  /**
11746
11760
  * The model choice for the conversation flow.
@@ -35084,24 +35098,17 @@ export declare namespace ConversationFlowUpdateParams {
35084
35098
  }
35085
35099
  export interface ConversationFlowListParams {
35086
35100
  /**
35087
- * Limit the number of conversation flows returned. Default 1000, Max 1000. To
35088
- * retrieve more than 1000, use pagination_key to continue fetching the next page.
35101
+ * Maximum number of items to return.
35089
35102
  */
35090
35103
  limit?: number;
35091
35104
  /**
35092
- * The pagination key to continue fetching the next page of conversation flows.
35093
- * Pagination key is represented by a conversation flow id here, and it's exclusive
35094
- * (not included in the fetched conversation flows). The last conversation flow id
35095
- * from the list conversation flows is usually used as pagination key here. If not
35096
- * set, will start from the beginning.
35105
+ * Pagination key for fetching the next page.
35097
35106
  */
35098
35107
  pagination_key?: string;
35099
35108
  /**
35100
- * Specifies the version of the conversation flow associated with the
35101
- * pagination_key. When paginating, both the pagination_key and its version must be
35102
- * provided to ensure consistent ordering and to fetch the next page correctly.
35109
+ * Sort order for results.
35103
35110
  */
35104
- pagination_key_version?: number;
35111
+ sort_order?: 'ascending' | 'descending';
35105
35112
  }
35106
35113
  export declare namespace ConversationFlow {
35107
35114
  export { type ConversationFlowResponse as ConversationFlowResponse, type ConversationFlowListResponse as ConversationFlowListResponse, type ConversationFlowCreateParams as ConversationFlowCreateParams, type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams, type ConversationFlowUpdateParams as ConversationFlowUpdateParams, type ConversationFlowListParams as ConversationFlowListParams, };