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
@@ -77,8 +77,14 @@ export class Llm extends APIResource {
77
77
  * await client.llm.delete('oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD');
78
78
  * ```
79
79
  */
80
- delete(llmID: string, options?: RequestOptions): APIPromise<void> {
80
+ delete(
81
+ llmID: string,
82
+ params: LlmDeleteParams | null | undefined = {},
83
+ options?: RequestOptions,
84
+ ): APIPromise<void> {
85
+ const { force_delete } = params ?? {};
81
86
  return this._client.delete(path`/delete-retell-llm/${llmID}`, {
87
+ query: { force_delete },
82
88
  ...options,
83
89
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
84
90
  });
@@ -792,7 +798,9 @@ export namespace LlmResponse {
792
798
  keep_current_language?: boolean;
793
799
 
794
800
  /**
795
- * If true, keep the current voice when swapping agents. Defaults to false.
801
+ * If true, keep the current voice and ambient sound settings when swapping agents.
802
+ * Otherwise, use the destination agent's voice and ambient sound settings.
803
+ * Defaults to false.
796
804
  */
797
805
  keep_current_voice?: boolean;
798
806
 
@@ -2102,7 +2110,9 @@ export namespace LlmResponse {
2102
2110
  keep_current_language?: boolean;
2103
2111
 
2104
2112
  /**
2105
- * If true, keep the current voice when swapping agents. Defaults to false.
2113
+ * If true, keep the current voice and ambient sound settings when swapping agents.
2114
+ * Otherwise, use the destination agent's voice and ambient sound settings.
2115
+ * Defaults to false.
2106
2116
  */
2107
2117
  keep_current_voice?: boolean;
2108
2118
 
@@ -3446,7 +3456,9 @@ export namespace LlmCreateParams {
3446
3456
  keep_current_language?: boolean;
3447
3457
 
3448
3458
  /**
3449
- * If true, keep the current voice when swapping agents. Defaults to false.
3459
+ * If true, keep the current voice and ambient sound settings when swapping agents.
3460
+ * Otherwise, use the destination agent's voice and ambient sound settings.
3461
+ * Defaults to false.
3450
3462
  */
3451
3463
  keep_current_voice?: boolean;
3452
3464
 
@@ -4756,7 +4768,9 @@ export namespace LlmCreateParams {
4756
4768
  keep_current_language?: boolean;
4757
4769
 
4758
4770
  /**
4759
- * If true, keep the current voice when swapping agents. Defaults to false.
4771
+ * If true, keep the current voice and ambient sound settings when swapping agents.
4772
+ * Otherwise, use the destination agent's voice and ambient sound settings.
4773
+ * Defaults to false.
4760
4774
  */
4761
4775
  keep_current_voice?: boolean;
4762
4776
 
@@ -6102,7 +6116,9 @@ export namespace LlmUpdateParams {
6102
6116
  keep_current_language?: boolean;
6103
6117
 
6104
6118
  /**
6105
- * If true, keep the current voice when swapping agents. Defaults to false.
6119
+ * If true, keep the current voice and ambient sound settings when swapping agents.
6120
+ * Otherwise, use the destination agent's voice and ambient sound settings.
6121
+ * Defaults to false.
6106
6122
  */
6107
6123
  keep_current_voice?: boolean;
6108
6124
 
@@ -7412,7 +7428,9 @@ export namespace LlmUpdateParams {
7412
7428
  keep_current_language?: boolean;
7413
7429
 
7414
7430
  /**
7415
- * If true, keep the current voice when swapping agents. Defaults to false.
7431
+ * If true, keep the current voice and ambient sound settings when swapping agents.
7432
+ * Otherwise, use the destination agent's voice and ambient sound settings.
7433
+ * Defaults to false.
7416
7434
  */
7417
7435
  keep_current_voice?: boolean;
7418
7436
 
@@ -8073,6 +8091,15 @@ export interface LlmListParams {
8073
8091
  sort_order?: 'ascending' | 'descending';
8074
8092
  }
8075
8093
 
8094
+ export interface LlmDeleteParams {
8095
+ /**
8096
+ * By default the deletion is rejected with a 400 if any agent still uses this
8097
+ * Retell LLM as its response engine. Set to true to delete it anyway, which leaves
8098
+ * those agents pointing at a Retell LLM that no longer exists.
8099
+ */
8100
+ force_delete?: boolean;
8101
+ }
8102
+
8076
8103
  export declare namespace Llm {
8077
8104
  export {
8078
8105
  type LlmResponse as LlmResponse,
@@ -8081,5 +8108,6 @@ export declare namespace Llm {
8081
8108
  type LlmRetrieveParams as LlmRetrieveParams,
8082
8109
  type LlmUpdateParams as LlmUpdateParams,
8083
8110
  type LlmListParams as LlmListParams,
8111
+ type LlmDeleteParams as LlmDeleteParams,
8084
8112
  };
8085
8113
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.63.0'; // x-release-please-version
1
+ export const VERSION = '5.64.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.63.0";
1
+ export declare const VERSION = "5.64.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.63.0";
1
+ export declare const VERSION = "5.64.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 = '5.63.0'; // x-release-please-version
4
+ exports.VERSION = '5.64.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.63.0'; // x-release-please-version
1
+ export const VERSION = '5.64.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map