retell-sdk 5.64.0 → 5.66.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 (129) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +29 -0
  3. package/client.d.mts +9 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent.d.mts +43 -13
  13. package/resources/agent.d.mts.map +1 -1
  14. package/resources/agent.d.ts +43 -13
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +21 -2
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +21 -2
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/app.d.mts +28 -46
  21. package/resources/app.d.mts.map +1 -1
  22. package/resources/app.d.ts +28 -46
  23. package/resources/app.d.ts.map +1 -1
  24. package/resources/app.js +7 -5
  25. package/resources/app.js.map +1 -1
  26. package/resources/app.mjs +7 -5
  27. package/resources/app.mjs.map +1 -1
  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 +155 -21
  41. package/resources/call.d.mts.map +1 -1
  42. package/resources/call.d.ts +155 -21
  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 +2 -2
  49. package/resources/chat-agent.d.mts.map +1 -1
  50. package/resources/chat-agent.d.ts +2 -2
  51. package/resources/chat-agent.d.ts.map +1 -1
  52. package/resources/chat.d.mts +24 -11
  53. package/resources/chat.d.mts.map +1 -1
  54. package/resources/chat.d.ts +24 -11
  55. package/resources/chat.d.ts.map +1 -1
  56. package/resources/contact.d.mts +137 -26
  57. package/resources/contact.d.mts.map +1 -1
  58. package/resources/contact.d.ts +137 -26
  59. package/resources/contact.d.ts.map +1 -1
  60. package/resources/contact.js +23 -4
  61. package/resources/contact.js.map +1 -1
  62. package/resources/contact.mjs +23 -4
  63. package/resources/contact.mjs.map +1 -1
  64. package/resources/conversation-flow-component.d.mts +182 -2
  65. package/resources/conversation-flow-component.d.mts.map +1 -1
  66. package/resources/conversation-flow-component.d.ts +182 -2
  67. package/resources/conversation-flow-component.d.ts.map +1 -1
  68. package/resources/conversation-flow.d.mts +362 -2
  69. package/resources/conversation-flow.d.mts.map +1 -1
  70. package/resources/conversation-flow.d.ts +362 -2
  71. package/resources/conversation-flow.d.ts.map +1 -1
  72. package/resources/crm.d.mts +4 -0
  73. package/resources/crm.d.mts.map +1 -1
  74. package/resources/crm.d.ts +4 -0
  75. package/resources/crm.d.ts.map +1 -1
  76. package/resources/export-request.d.mts +2 -2
  77. package/resources/export-request.d.mts.map +1 -1
  78. package/resources/export-request.d.ts +2 -2
  79. package/resources/export-request.d.ts.map +1 -1
  80. package/resources/index.d.mts +4 -3
  81. package/resources/index.d.mts.map +1 -1
  82. package/resources/index.d.ts +4 -3
  83. package/resources/index.d.ts.map +1 -1
  84. package/resources/index.js +3 -1
  85. package/resources/index.js.map +1 -1
  86. package/resources/index.mjs +1 -0
  87. package/resources/index.mjs.map +1 -1
  88. package/resources/knowledge-base.d.mts +7 -7
  89. package/resources/knowledge-base.d.ts +7 -7
  90. package/resources/llm.d.mts +38 -2
  91. package/resources/llm.d.mts.map +1 -1
  92. package/resources/llm.d.ts +38 -2
  93. package/resources/llm.d.ts.map +1 -1
  94. package/resources/phone-number.d.mts +14 -8
  95. package/resources/phone-number.d.mts.map +1 -1
  96. package/resources/phone-number.d.ts +14 -8
  97. package/resources/phone-number.d.ts.map +1 -1
  98. package/resources/tests.d.mts +6 -6
  99. package/resources/tests.d.mts.map +1 -1
  100. package/resources/tests.d.ts +6 -6
  101. package/resources/tests.d.ts.map +1 -1
  102. package/resources/voice.d.mts +4 -4
  103. package/resources/voice.d.mts.map +1 -1
  104. package/resources/voice.d.ts +4 -4
  105. package/resources/voice.d.ts.map +1 -1
  106. package/src/client.ts +31 -0
  107. package/src/resources/agent.ts +60 -9
  108. package/src/resources/app.ts +29 -58
  109. package/src/resources/asset.ts +69 -0
  110. package/src/resources/batch-call.ts +6 -1
  111. package/src/resources/call.ts +196 -18
  112. package/src/resources/chat-agent.ts +2 -2
  113. package/src/resources/chat.ts +28 -11
  114. package/src/resources/contact.ts +187 -26
  115. package/src/resources/conversation-flow-component.ts +206 -2
  116. package/src/resources/conversation-flow.ts +410 -2
  117. package/src/resources/crm.ts +5 -0
  118. package/src/resources/export-request.ts +2 -2
  119. package/src/resources/index.ts +12 -0
  120. package/src/resources/knowledge-base.ts +7 -7
  121. package/src/resources/llm.ts +38 -2
  122. package/src/resources/phone-number.ts +14 -8
  123. package/src/resources/tests.ts +6 -6
  124. package/src/resources/voice.ts +4 -4
  125. package/src/version.ts +1 -1
  126. package/version.d.mts +1 -1
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/version.mjs +1 -1
@@ -65,6 +65,11 @@ export interface CRMConfig {
65
65
  */
66
66
  contact_columns_order?: Array<string>;
67
67
 
68
+ /**
69
+ * Tags available to contacts in this organization.
70
+ */
71
+ contact_tags?: Array<string>;
72
+
68
73
  crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
69
74
 
70
75
  custom_fields?: Array<CRMConfig.CustomField>;
@@ -20,9 +20,9 @@ export interface ExportRequestListResponse {
20
20
  /**
21
21
  * Whether more results are available.
22
22
  */
23
- has_more?: boolean;
23
+ has_more: boolean;
24
24
 
25
- items?: Array<ExportRequestListResponse.Item>;
25
+ items: Array<ExportRequestListResponse.Item>;
26
26
 
27
27
  /**
28
28
  * Pagination key for the next page.
@@ -7,6 +7,7 @@ export {
7
7
  type AgentCreateVersionResponse,
8
8
  type AgentGetVersionsResponse,
9
9
  type AgentListVersionsResponse,
10
+ type AgentRepairResponse,
10
11
  type AgentCreateParams,
11
12
  type AgentRetrieveParams,
12
13
  type AgentUpdateParams,
@@ -15,6 +16,7 @@ export {
15
16
  type AgentDeleteVersionParams,
16
17
  type AgentListVersionsParams,
17
18
  type AgentPublishParams,
19
+ type AgentRepairParams,
18
20
  } from './agent';
19
21
  export {
20
22
  App,
@@ -28,6 +30,7 @@ export {
28
30
  type AppDeleteParams,
29
31
  type AppListUsagesParams,
30
32
  } from './app';
33
+ export { Asset, type AssetCreateResponse, type AssetCreateParams } from './asset';
31
34
  export { BatchCall, type BatchCallResponse, type BatchCallCreateBatchCallParams } from './batch-call';
32
35
  export {
33
36
  CRM,
@@ -41,15 +44,19 @@ export {
41
44
  export {
42
45
  Call,
43
46
  type CallResponse,
47
+ type CreateWebCallResponse,
44
48
  type PhoneCallResponse,
45
49
  type WebCallResponse,
46
50
  type CallListResponse,
51
+ type CallListenLiveResponse,
52
+ type CallTakeOverLiveResponse,
47
53
  type CallUpdateLiveResponse,
48
54
  type CallUpdateParams,
49
55
  type CallListParams,
50
56
  type CallCreatePhoneCallParams,
51
57
  type CallCreateWebCallParams,
52
58
  type CallRegisterPhoneCallParams,
59
+ type CallTakeOverLiveParams,
53
60
  type CallUpdateLiveParams,
54
61
  } from './call';
55
62
  export {
@@ -83,13 +90,18 @@ export {
83
90
  type ContactResponse,
84
91
  type ContactListResponse,
85
92
  type ContactBackfillAnalysisDataResponse,
93
+ type ContactCreateImportResponse,
86
94
  type ContactGetBackfillJobStatusResponse,
95
+ type ContactGetImportResponse,
87
96
  type ContactListConversationsResponse,
97
+ type ContactUploadImportFileResponse,
88
98
  type ContactCreateParams,
89
99
  type ContactUpdateParams,
90
100
  type ContactListParams,
91
101
  type ContactBackfillAnalysisDataParams,
102
+ type ContactCreateImportParams,
92
103
  type ContactListConversationsParams,
104
+ type ContactUploadImportFileParams,
93
105
  } from './contact';
94
106
  export {
95
107
  ConversationFlow,
@@ -134,15 +134,15 @@ export interface KnowledgeBaseResponse {
134
134
  * - `error`: Initial indexing failed. Source metadata may be incomplete.
135
135
  * - `refreshing_in_progress`: An existing knowledge base is being updated. This
136
136
  * includes indexing newly added sources or running a manual or automatic refresh
137
- * that re-indexes URLs, Google Drive files, and pages from auto-crawling paths.
138
- * Previously indexed sources remain available during the update, and the source
139
- * list may change when it finishes.
137
+ * that re-indexes URLs, Google Drive files, Microsoft OneDrive files, and pages
138
+ * from auto-crawling paths. Previously indexed sources remain available during
139
+ * the update, and the source list may change when it finishes.
140
140
  */
141
141
  status: 'in_progress' | 'complete' | 'error' | 'refreshing_in_progress';
142
142
 
143
143
  /**
144
- * Whether to enable auto refresh for the knowledge base urls. If set to true, will
145
- * retrieve the data from the specified url every 12 hours.
144
+ * Whether eligible URL and connected-file sources refresh automatically on a daily
145
+ * cadence.
146
146
  */
147
147
  enable_auto_refresh?: boolean;
148
148
 
@@ -251,8 +251,8 @@ export interface KnowledgeBaseCreateParams {
251
251
  knowledge_base_name: string;
252
252
 
253
253
  /**
254
- * Whether to enable auto refresh for the knowledge base urls. If set to true, will
255
- * retrieve the data from the specified url every 12 hours.
254
+ * Whether to refresh eligible URL and connected-file sources automatically on a
255
+ * daily cadence.
256
256
  */
257
257
  enable_auto_refresh?: boolean;
258
258
 
@@ -668,6 +668,9 @@ export namespace LlmResponse {
668
668
  }
669
669
  }
670
670
 
671
+ /**
672
+ * @deprecated
673
+ */
671
674
  export interface CheckAvailabilityCalTool {
672
675
  /**
673
676
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -708,6 +711,9 @@ export namespace LlmResponse {
708
711
  timezone?: string;
709
712
  }
710
713
 
714
+ /**
715
+ * @deprecated
716
+ */
711
717
  export interface BookAppointmentCalTool {
712
718
  /**
713
719
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -1980,6 +1986,9 @@ export namespace LlmResponse {
1980
1986
  }
1981
1987
  }
1982
1988
 
1989
+ /**
1990
+ * @deprecated
1991
+ */
1983
1992
  export interface CheckAvailabilityCalTool {
1984
1993
  /**
1985
1994
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -2020,6 +2029,9 @@ export namespace LlmResponse {
2020
2029
  timezone?: string;
2021
2030
  }
2022
2031
 
2032
+ /**
2033
+ * @deprecated
2034
+ */
2023
2035
  export interface BookAppointmentCalTool {
2024
2036
  /**
2025
2037
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -2760,9 +2772,9 @@ export interface LlmListResponse {
2760
2772
  /**
2761
2773
  * Whether more results are available.
2762
2774
  */
2763
- has_more?: boolean;
2775
+ has_more: boolean;
2764
2776
 
2765
- items?: Array<LlmResponse>;
2777
+ items: Array<LlmResponse>;
2766
2778
 
2767
2779
  /**
2768
2780
  * Pagination key for the next page.
@@ -3326,6 +3338,9 @@ export namespace LlmCreateParams {
3326
3338
  }
3327
3339
  }
3328
3340
 
3341
+ /**
3342
+ * @deprecated
3343
+ */
3329
3344
  export interface CheckAvailabilityCalTool {
3330
3345
  /**
3331
3346
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -3366,6 +3381,9 @@ export namespace LlmCreateParams {
3366
3381
  timezone?: string;
3367
3382
  }
3368
3383
 
3384
+ /**
3385
+ * @deprecated
3386
+ */
3369
3387
  export interface BookAppointmentCalTool {
3370
3388
  /**
3371
3389
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -4638,6 +4656,9 @@ export namespace LlmCreateParams {
4638
4656
  }
4639
4657
  }
4640
4658
 
4659
+ /**
4660
+ * @deprecated
4661
+ */
4641
4662
  export interface CheckAvailabilityCalTool {
4642
4663
  /**
4643
4664
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -4678,6 +4699,9 @@ export namespace LlmCreateParams {
4678
4699
  timezone?: string;
4679
4700
  }
4680
4701
 
4702
+ /**
4703
+ * @deprecated
4704
+ */
4681
4705
  export interface BookAppointmentCalTool {
4682
4706
  /**
4683
4707
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -5986,6 +6010,9 @@ export namespace LlmUpdateParams {
5986
6010
  }
5987
6011
  }
5988
6012
 
6013
+ /**
6014
+ * @deprecated
6015
+ */
5989
6016
  export interface CheckAvailabilityCalTool {
5990
6017
  /**
5991
6018
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -6026,6 +6053,9 @@ export namespace LlmUpdateParams {
6026
6053
  timezone?: string;
6027
6054
  }
6028
6055
 
6056
+ /**
6057
+ * @deprecated
6058
+ */
6029
6059
  export interface BookAppointmentCalTool {
6030
6060
  /**
6031
6061
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -7298,6 +7328,9 @@ export namespace LlmUpdateParams {
7298
7328
  }
7299
7329
  }
7300
7330
 
7331
+ /**
7332
+ * @deprecated
7333
+ */
7301
7334
  export interface CheckAvailabilityCalTool {
7302
7335
  /**
7303
7336
  * Cal.com Api key that have access to the cal.com event you want to check
@@ -7338,6 +7371,9 @@ export namespace LlmUpdateParams {
7338
7371
  timezone?: string;
7339
7372
  }
7340
7373
 
7374
+ /**
7375
+ * @deprecated
7376
+ */
7341
7377
  export interface BookAppointmentCalTool {
7342
7378
  /**
7343
7379
  * Cal.com Api key that have access to the cal.com event you want to book
@@ -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.64.0'; // x-release-please-version
1
+ export const VERSION = '5.66.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.64.0";
1
+ export declare const VERSION = "5.66.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.64.0";
1
+ export declare const VERSION = "5.66.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.64.0'; // x-release-please-version
4
+ exports.VERSION = '5.66.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.64.0'; // x-release-please-version
1
+ export const VERSION = '5.66.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map