retell-sdk 5.63.0 → 5.64.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 (103) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +15 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +15 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent.d.mts +64 -4
  12. package/resources/agent.d.mts.map +1 -1
  13. package/resources/agent.d.ts +64 -4
  14. package/resources/agent.d.ts.map +1 -1
  15. package/resources/agent.js +13 -4
  16. package/resources/agent.js.map +1 -1
  17. package/resources/agent.mjs +13 -4
  18. package/resources/agent.mjs.map +1 -1
  19. package/resources/app.d.mts +457 -0
  20. package/resources/app.d.mts.map +1 -0
  21. package/resources/app.d.ts +457 -0
  22. package/resources/app.d.ts.map +1 -0
  23. package/resources/app.js +67 -0
  24. package/resources/app.js.map +1 -0
  25. package/resources/app.mjs +63 -0
  26. package/resources/app.mjs.map +1 -0
  27. package/resources/call.d.mts +66 -6
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +66 -6
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/chat-agent.d.mts +2 -8
  32. package/resources/chat-agent.d.mts.map +1 -1
  33. package/resources/chat-agent.d.ts +2 -8
  34. package/resources/chat-agent.d.ts.map +1 -1
  35. package/resources/chat-agent.js +2 -8
  36. package/resources/chat-agent.js.map +1 -1
  37. package/resources/chat-agent.mjs +2 -8
  38. package/resources/chat-agent.mjs.map +1 -1
  39. package/resources/contact.d.mts +541 -0
  40. package/resources/contact.d.mts.map +1 -0
  41. package/resources/contact.d.ts +541 -0
  42. package/resources/contact.d.ts.map +1 -0
  43. package/resources/contact.js +77 -0
  44. package/resources/contact.js.map +1 -0
  45. package/resources/contact.mjs +73 -0
  46. package/resources/contact.mjs.map +1 -0
  47. package/resources/conversation-flow-component.d.mts +18 -6
  48. package/resources/conversation-flow-component.d.mts.map +1 -1
  49. package/resources/conversation-flow-component.d.ts +18 -6
  50. package/resources/conversation-flow-component.d.ts.map +1 -1
  51. package/resources/conversation-flow.d.mts +46 -14
  52. package/resources/conversation-flow.d.mts.map +1 -1
  53. package/resources/conversation-flow.d.ts +46 -14
  54. package/resources/conversation-flow.d.ts.map +1 -1
  55. package/resources/conversation-flow.js +3 -1
  56. package/resources/conversation-flow.js.map +1 -1
  57. package/resources/conversation-flow.mjs +3 -1
  58. package/resources/conversation-flow.mjs.map +1 -1
  59. package/resources/crm.d.mts +222 -0
  60. package/resources/crm.d.mts.map +1 -0
  61. package/resources/crm.d.ts +222 -0
  62. package/resources/crm.d.ts.map +1 -0
  63. package/resources/crm.js +46 -0
  64. package/resources/crm.js.map +1 -0
  65. package/resources/crm.mjs +42 -0
  66. package/resources/crm.mjs.map +1 -0
  67. package/resources/index.d.mts +6 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +6 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +7 -1
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +3 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/knowledge-base.d.mts +12 -4
  76. package/resources/knowledge-base.d.mts.map +1 -1
  77. package/resources/knowledge-base.d.ts +12 -4
  78. package/resources/knowledge-base.d.ts.map +1 -1
  79. package/resources/llm.d.mts +28 -8
  80. package/resources/llm.d.mts.map +1 -1
  81. package/resources/llm.d.ts +28 -8
  82. package/resources/llm.d.ts.map +1 -1
  83. package/resources/llm.js +3 -1
  84. package/resources/llm.js.map +1 -1
  85. package/resources/llm.mjs +3 -1
  86. package/resources/llm.mjs.map +1 -1
  87. package/src/client.ts +85 -0
  88. package/src/resources/agent.ts +85 -4
  89. package/src/resources/app.ts +622 -0
  90. package/src/resources/call.ts +93 -7
  91. package/src/resources/chat-agent.ts +2 -8
  92. package/src/resources/contact.ts +732 -0
  93. package/src/resources/conversation-flow-component.ts +18 -6
  94. package/src/resources/conversation-flow.ts +53 -13
  95. package/src/resources/crm.ts +293 -0
  96. package/src/resources/index.ts +38 -0
  97. package/src/resources/knowledge-base.ts +12 -4
  98. package/src/resources/llm.ts +35 -7
  99. package/src/version.ts +1 -1
  100. package/version.d.mts +1 -1
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
  103. package/version.mjs +1 -1
@@ -70,7 +70,7 @@ export declare class ConversationFlow extends APIResource {
70
70
  * );
71
71
  * ```
72
72
  */
73
- delete(conversationFlowID: string, options?: RequestOptions): APIPromise<void>;
73
+ delete(conversationFlowID: string, params?: ConversationFlowDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
74
74
  }
75
75
  export interface ConversationFlowResponse {
76
76
  /**
@@ -1580,7 +1580,9 @@ export declare namespace ConversationFlowResponse {
1580
1580
  */
1581
1581
  keep_current_language?: boolean;
1582
1582
  /**
1583
- * If true, keep the current voice when swapping agents. Defaults to false.
1583
+ * If true, keep the current voice and ambient sound settings when swapping agents.
1584
+ * Otherwise, use the destination agent's voice and ambient sound settings.
1585
+ * Defaults to false.
1584
1586
  */
1585
1587
  keep_current_voice?: boolean;
1586
1588
  speak_during_execution?: boolean;
@@ -4733,7 +4735,9 @@ export declare namespace ConversationFlowResponse {
4733
4735
  */
4734
4736
  keep_current_language?: boolean;
4735
4737
  /**
4736
- * If true, keep the current voice when swapping agents. Defaults to false.
4738
+ * If true, keep the current voice and ambient sound settings when swapping agents.
4739
+ * Otherwise, use the destination agent's voice and ambient sound settings.
4740
+ * Defaults to false.
4737
4741
  */
4738
4742
  keep_current_voice?: boolean;
4739
4743
  model_choice?: AgentSwapNode.ModelChoice;
@@ -7642,7 +7646,9 @@ export declare namespace ConversationFlowResponse {
7642
7646
  */
7643
7647
  keep_current_language?: boolean;
7644
7648
  /**
7645
- * If true, keep the current voice when swapping agents. Defaults to false.
7649
+ * If true, keep the current voice and ambient sound settings when swapping agents.
7650
+ * Otherwise, use the destination agent's voice and ambient sound settings.
7651
+ * Defaults to false.
7646
7652
  */
7647
7653
  keep_current_voice?: boolean;
7648
7654
  speak_during_execution?: boolean;
@@ -10795,7 +10801,9 @@ export declare namespace ConversationFlowResponse {
10795
10801
  */
10796
10802
  keep_current_language?: boolean;
10797
10803
  /**
10798
- * If true, keep the current voice when swapping agents. Defaults to false.
10804
+ * If true, keep the current voice and ambient sound settings when swapping agents.
10805
+ * Otherwise, use the destination agent's voice and ambient sound settings.
10806
+ * Defaults to false.
10799
10807
  */
10800
10808
  keep_current_voice?: boolean;
10801
10809
  model_choice?: AgentSwapNode.ModelChoice;
@@ -13732,7 +13740,9 @@ export declare namespace ConversationFlowCreateParams {
13732
13740
  */
13733
13741
  keep_current_language?: boolean;
13734
13742
  /**
13735
- * If true, keep the current voice when swapping agents. Defaults to false.
13743
+ * If true, keep the current voice and ambient sound settings when swapping agents.
13744
+ * Otherwise, use the destination agent's voice and ambient sound settings.
13745
+ * Defaults to false.
13736
13746
  */
13737
13747
  keep_current_voice?: boolean;
13738
13748
  speak_during_execution?: boolean;
@@ -16885,7 +16895,9 @@ export declare namespace ConversationFlowCreateParams {
16885
16895
  */
16886
16896
  keep_current_language?: boolean;
16887
16897
  /**
16888
- * If true, keep the current voice when swapping agents. Defaults to false.
16898
+ * If true, keep the current voice and ambient sound settings when swapping agents.
16899
+ * Otherwise, use the destination agent's voice and ambient sound settings.
16900
+ * Defaults to false.
16889
16901
  */
16890
16902
  keep_current_voice?: boolean;
16891
16903
  model_choice?: AgentSwapNode.ModelChoice;
@@ -19495,7 +19507,9 @@ export declare namespace ConversationFlowCreateParams {
19495
19507
  */
19496
19508
  keep_current_language?: boolean;
19497
19509
  /**
19498
- * If true, keep the current voice when swapping agents. Defaults to false.
19510
+ * If true, keep the current voice and ambient sound settings when swapping agents.
19511
+ * Otherwise, use the destination agent's voice and ambient sound settings.
19512
+ * Defaults to false.
19499
19513
  */
19500
19514
  keep_current_voice?: boolean;
19501
19515
  speak_during_execution?: boolean;
@@ -22648,7 +22662,9 @@ export declare namespace ConversationFlowCreateParams {
22648
22662
  */
22649
22663
  keep_current_language?: boolean;
22650
22664
  /**
22651
- * If true, keep the current voice when swapping agents. Defaults to false.
22665
+ * If true, keep the current voice and ambient sound settings when swapping agents.
22666
+ * Otherwise, use the destination agent's voice and ambient sound settings.
22667
+ * Defaults to false.
22652
22668
  */
22653
22669
  keep_current_voice?: boolean;
22654
22670
  model_choice?: AgentSwapNode.ModelChoice;
@@ -25936,7 +25952,9 @@ export declare namespace ConversationFlowUpdateParams {
25936
25952
  */
25937
25953
  keep_current_language?: boolean;
25938
25954
  /**
25939
- * If true, keep the current voice when swapping agents. Defaults to false.
25955
+ * If true, keep the current voice and ambient sound settings when swapping agents.
25956
+ * Otherwise, use the destination agent's voice and ambient sound settings.
25957
+ * Defaults to false.
25940
25958
  */
25941
25959
  keep_current_voice?: boolean;
25942
25960
  speak_during_execution?: boolean;
@@ -29089,7 +29107,9 @@ export declare namespace ConversationFlowUpdateParams {
29089
29107
  */
29090
29108
  keep_current_language?: boolean;
29091
29109
  /**
29092
- * If true, keep the current voice when swapping agents. Defaults to false.
29110
+ * If true, keep the current voice and ambient sound settings when swapping agents.
29111
+ * Otherwise, use the destination agent's voice and ambient sound settings.
29112
+ * Defaults to false.
29093
29113
  */
29094
29114
  keep_current_voice?: boolean;
29095
29115
  model_choice?: AgentSwapNode.ModelChoice;
@@ -31998,7 +32018,9 @@ export declare namespace ConversationFlowUpdateParams {
31998
32018
  */
31999
32019
  keep_current_language?: boolean;
32000
32020
  /**
32001
- * If true, keep the current voice when swapping agents. Defaults to false.
32021
+ * If true, keep the current voice and ambient sound settings when swapping agents.
32022
+ * Otherwise, use the destination agent's voice and ambient sound settings.
32023
+ * Defaults to false.
32002
32024
  */
32003
32025
  keep_current_voice?: boolean;
32004
32026
  speak_during_execution?: boolean;
@@ -35151,7 +35173,9 @@ export declare namespace ConversationFlowUpdateParams {
35151
35173
  */
35152
35174
  keep_current_language?: boolean;
35153
35175
  /**
35154
- * If true, keep the current voice when swapping agents. Defaults to false.
35176
+ * If true, keep the current voice and ambient sound settings when swapping agents.
35177
+ * Otherwise, use the destination agent's voice and ambient sound settings.
35178
+ * Defaults to false.
35155
35179
  */
35156
35180
  keep_current_voice?: boolean;
35157
35181
  model_choice?: AgentSwapNode.ModelChoice;
@@ -36621,7 +36645,15 @@ export interface ConversationFlowListParams {
36621
36645
  */
36622
36646
  sort_order?: 'ascending' | 'descending';
36623
36647
  }
36648
+ export interface ConversationFlowDeleteParams {
36649
+ /**
36650
+ * By default the deletion is rejected with a 400 if any agent still uses this
36651
+ * conversation flow as its response engine. Set to true to delete it anyway, which
36652
+ * leaves those agents pointing at a conversation flow that no longer exists.
36653
+ */
36654
+ force_delete?: boolean;
36655
+ }
36624
36656
  export declare namespace ConversationFlow {
36625
- 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, };
36657
+ 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, type ConversationFlowDeleteParams as ConversationFlowDeleteParams, };
36626
36658
  }
36627
36659
  //# sourceMappingURL=conversation-flow.d.ts.map