retell-sdk 5.63.0 → 5.65.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 (147) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +29 -0
  3. package/client.d.mts +20 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +20 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent.d.mts +102 -12
  13. package/resources/agent.d.mts.map +1 -1
  14. package/resources/agent.d.ts +102 -12
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +32 -4
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +32 -4
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/app.d.mts +439 -0
  21. package/resources/app.d.mts.map +1 -0
  22. package/resources/app.d.ts +439 -0
  23. package/resources/app.d.ts.map +1 -0
  24. package/resources/app.js +69 -0
  25. package/resources/app.js.map +1 -0
  26. package/resources/app.mjs +65 -0
  27. package/resources/app.mjs.map +1 -0
  28. package/resources/asset.d.mts +53 -0
  29. package/resources/asset.d.mts.map +1 -0
  30. package/resources/asset.d.ts +53 -0
  31. package/resources/asset.d.ts.map +1 -0
  32. package/resources/asset.js +20 -0
  33. package/resources/asset.js.map +1 -0
  34. package/resources/asset.mjs +16 -0
  35. package/resources/asset.mjs.map +1 -0
  36. package/resources/batch-call.d.mts +4 -2
  37. package/resources/batch-call.d.mts.map +1 -1
  38. package/resources/batch-call.d.ts +4 -2
  39. package/resources/batch-call.d.ts.map +1 -1
  40. package/resources/call.d.mts +221 -27
  41. package/resources/call.d.mts.map +1 -1
  42. package/resources/call.d.ts +221 -27
  43. package/resources/call.d.ts.map +1 -1
  44. package/resources/call.js +37 -5
  45. package/resources/call.js.map +1 -1
  46. package/resources/call.mjs +37 -5
  47. package/resources/call.mjs.map +1 -1
  48. package/resources/chat-agent.d.mts +4 -10
  49. package/resources/chat-agent.d.mts.map +1 -1
  50. package/resources/chat-agent.d.ts +4 -10
  51. package/resources/chat-agent.d.ts.map +1 -1
  52. package/resources/chat-agent.js +2 -8
  53. package/resources/chat-agent.js.map +1 -1
  54. package/resources/chat-agent.mjs +2 -8
  55. package/resources/chat-agent.mjs.map +1 -1
  56. package/resources/chat.d.mts +24 -11
  57. package/resources/chat.d.mts.map +1 -1
  58. package/resources/chat.d.ts +24 -11
  59. package/resources/chat.d.ts.map +1 -1
  60. package/resources/contact.d.mts +669 -0
  61. package/resources/contact.d.mts.map +1 -0
  62. package/resources/contact.d.ts +669 -0
  63. package/resources/contact.d.ts.map +1 -0
  64. package/resources/contact.js +100 -0
  65. package/resources/contact.js.map +1 -0
  66. package/resources/contact.mjs +96 -0
  67. package/resources/contact.mjs.map +1 -0
  68. package/resources/conversation-flow-component.d.mts +56 -8
  69. package/resources/conversation-flow-component.d.mts.map +1 -1
  70. package/resources/conversation-flow-component.d.ts +56 -8
  71. package/resources/conversation-flow-component.d.ts.map +1 -1
  72. package/resources/conversation-flow.d.mts +120 -16
  73. package/resources/conversation-flow.d.mts.map +1 -1
  74. package/resources/conversation-flow.d.ts +120 -16
  75. package/resources/conversation-flow.d.ts.map +1 -1
  76. package/resources/conversation-flow.js +3 -1
  77. package/resources/conversation-flow.js.map +1 -1
  78. package/resources/conversation-flow.mjs +3 -1
  79. package/resources/conversation-flow.mjs.map +1 -1
  80. package/resources/crm.d.mts +226 -0
  81. package/resources/crm.d.mts.map +1 -0
  82. package/resources/crm.d.ts +226 -0
  83. package/resources/crm.d.ts.map +1 -0
  84. package/resources/crm.js +46 -0
  85. package/resources/crm.js.map +1 -0
  86. package/resources/crm.mjs +42 -0
  87. package/resources/crm.mjs.map +1 -0
  88. package/resources/export-request.d.mts +2 -2
  89. package/resources/export-request.d.mts.map +1 -1
  90. package/resources/export-request.d.ts +2 -2
  91. package/resources/export-request.d.ts.map +1 -1
  92. package/resources/index.d.mts +8 -4
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +8 -4
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/knowledge-base.d.mts +16 -8
  101. package/resources/knowledge-base.d.mts.map +1 -1
  102. package/resources/knowledge-base.d.ts +16 -8
  103. package/resources/knowledge-base.d.ts.map +1 -1
  104. package/resources/llm.d.mts +66 -10
  105. package/resources/llm.d.mts.map +1 -1
  106. package/resources/llm.d.ts +66 -10
  107. package/resources/llm.d.ts.map +1 -1
  108. package/resources/llm.js +3 -1
  109. package/resources/llm.js.map +1 -1
  110. package/resources/llm.mjs +3 -1
  111. package/resources/llm.mjs.map +1 -1
  112. package/resources/phone-number.d.mts +14 -8
  113. package/resources/phone-number.d.mts.map +1 -1
  114. package/resources/phone-number.d.ts +14 -8
  115. package/resources/phone-number.d.ts.map +1 -1
  116. package/resources/tests.d.mts +6 -6
  117. package/resources/tests.d.mts.map +1 -1
  118. package/resources/tests.d.ts +6 -6
  119. package/resources/tests.d.ts.map +1 -1
  120. package/resources/voice.d.mts +4 -4
  121. package/resources/voice.d.mts.map +1 -1
  122. package/resources/voice.d.ts +4 -4
  123. package/resources/voice.d.ts.map +1 -1
  124. package/src/client.ts +116 -0
  125. package/src/resources/agent.ts +141 -9
  126. package/src/resources/app.ts +593 -0
  127. package/src/resources/asset.ts +69 -0
  128. package/src/resources/batch-call.ts +6 -1
  129. package/src/resources/call.ts +289 -25
  130. package/src/resources/chat-agent.ts +4 -10
  131. package/src/resources/chat.ts +28 -11
  132. package/src/resources/contact.ts +910 -0
  133. package/src/resources/conversation-flow-component.ts +56 -8
  134. package/src/resources/conversation-flow.ts +127 -15
  135. package/src/resources/crm.ts +298 -0
  136. package/src/resources/export-request.ts +2 -2
  137. package/src/resources/index.ts +50 -0
  138. package/src/resources/knowledge-base.ts +16 -8
  139. package/src/resources/llm.ts +73 -9
  140. package/src/resources/phone-number.ts +14 -8
  141. package/src/resources/tests.ts +6 -6
  142. package/src/resources/voice.ts +4 -4
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -178,14 +178,16 @@ export interface PhoneNumberResponse {
178
178
  /**
179
179
  * If set, Retell will send a webhook for inbound SMS, where you can override the
180
180
  * agent ID, set dynamic variables, reject the SMS, and configure other fields
181
- * specific to that chat.
181
+ * specific to that chat. Includes chat_inbound.chat_id for deduplication across
182
+ * HTTP retries. Early setup failures may not create a chat history record.
182
183
  */
183
184
  inbound_sms_webhook_url?: string | null;
184
185
 
185
186
  /**
186
187
  * If set, Retell will send a webhook for inbound calls, where you can override the
187
188
  * agent ID, set dynamic variables, reject the call, and configure other fields
188
- * specific to that call.
189
+ * specific to that call. Includes call_inbound.call_id for deduplication across
190
+ * HTTP retries. Early setup failures may not create a call history record.
189
191
  */
190
192
  inbound_webhook_url?: string | null;
191
193
 
@@ -332,9 +334,9 @@ export interface PhoneNumberListResponse {
332
334
  /**
333
335
  * Whether more results are available.
334
336
  */
335
- has_more?: boolean;
337
+ has_more: boolean;
336
338
 
337
- items?: Array<PhoneNumberResponse>;
339
+ items: Array<PhoneNumberResponse>;
338
340
 
339
341
  /**
340
342
  * Pagination key for the next page.
@@ -386,7 +388,8 @@ export interface PhoneNumberCreateParams {
386
388
  /**
387
389
  * If set, Retell will send a webhook for inbound calls, where you can override the
388
390
  * agent ID, set dynamic variables, reject the call, and configure other fields
389
- * specific to that call.
391
+ * specific to that call. Includes call_inbound.call_id for deduplication across
392
+ * HTTP retries. Early setup failures may not create a call history record.
390
393
  */
391
394
  inbound_webhook_url?: string | null;
392
395
 
@@ -524,14 +527,16 @@ export interface PhoneNumberUpdateParams {
524
527
  /**
525
528
  * If set, Retell will send a webhook for inbound SMS, where you can override the
526
529
  * agent ID, set dynamic variables, reject the SMS, and configure other fields
527
- * specific to that chat.
530
+ * specific to that chat. Includes chat_inbound.chat_id for deduplication across
531
+ * HTTP retries. Early setup failures may not create a chat history record.
528
532
  */
529
533
  inbound_sms_webhook_url?: string | null;
530
534
 
531
535
  /**
532
536
  * If set, Retell will send a webhook for inbound calls, where you can override the
533
537
  * agent ID, set dynamic variables, reject the call, and configure other fields
534
- * specific to that call.
538
+ * specific to that call. Includes call_inbound.call_id for deduplication across
539
+ * HTTP retries. Early setup failures may not create a call history record.
535
540
  */
536
541
  inbound_webhook_url?: string | null;
537
542
 
@@ -723,7 +728,8 @@ export interface PhoneNumberImportParams {
723
728
  /**
724
729
  * If set, Retell will send a webhook for inbound calls, where you can override the
725
730
  * agent ID, set dynamic variables, reject the call, and configure other fields
726
- * specific to that call.
731
+ * specific to that call. Includes call_inbound.call_id for deduplication across
732
+ * HTTP retries. Early setup failures may not create a call history record.
727
733
  */
728
734
  inbound_webhook_url?: string | null;
729
735
 
@@ -421,9 +421,9 @@ export interface TestListBatchTestsResponse {
421
421
  /**
422
422
  * Whether more results are available.
423
423
  */
424
- has_more?: boolean;
424
+ has_more: boolean;
425
425
 
426
- items?: Array<BatchTestResponse>;
426
+ items: Array<BatchTestResponse>;
427
427
 
428
428
  /**
429
429
  * Pagination key for the next page.
@@ -435,9 +435,9 @@ export interface TestListTestCaseDefinitionsResponse {
435
435
  /**
436
436
  * Whether more results are available.
437
437
  */
438
- has_more?: boolean;
438
+ has_more: boolean;
439
439
 
440
- items?: Array<TestCaseDefinitionResponse>;
440
+ items: Array<TestCaseDefinitionResponse>;
441
441
 
442
442
  /**
443
443
  * Pagination key for the next page.
@@ -449,9 +449,9 @@ export interface TestListTestRunsResponse {
449
449
  /**
450
450
  * Whether more results are available.
451
451
  */
452
- has_more?: boolean;
452
+ has_more: boolean;
453
453
 
454
- items?: Array<TestCaseJobResponse>;
454
+ items: Array<TestCaseJobResponse>;
455
455
 
456
456
  /**
457
457
  * Pagination key for the next page.
@@ -53,7 +53,7 @@ export interface VoiceResponse {
53
53
  /**
54
54
  * Indicates the provider of voice.
55
55
  */
56
- provider: 'elevenlabs' | 'openai' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform';
56
+ provider: 'elevenlabs' | 'openai' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld' | 'platform';
57
57
 
58
58
  /**
59
59
  * Unique id for the voice.
@@ -133,7 +133,7 @@ export interface VoiceAddResourceParams {
133
133
  /**
134
134
  * Voice provider to add the voice from.
135
135
  */
136
- voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
136
+ voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld';
137
137
  }
138
138
 
139
139
  export interface VoiceCloneParams {
@@ -151,7 +151,7 @@ export interface VoiceCloneParams {
151
151
  /**
152
152
  * Voice provider to use for cloning.
153
153
  */
154
- voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform';
154
+ voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'platform' | 'inworld';
155
155
  }
156
156
 
157
157
  export interface VoiceSearchParams {
@@ -163,7 +163,7 @@ export interface VoiceSearchParams {
163
163
  /**
164
164
  * Voice provider to search.
165
165
  */
166
- voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
166
+ voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio' | 'inworld';
167
167
  }
168
168
 
169
169
  export declare namespace Voice {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.63.0'; // x-release-please-version
1
+ export const VERSION = '5.65.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.65.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.65.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.65.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.65.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map