retell-sdk 5.17.0 → 5.19.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 (97) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/agent.d.mts +143 -17
  16. package/resources/agent.d.mts.map +1 -1
  17. package/resources/agent.d.ts +143 -17
  18. package/resources/agent.d.ts.map +1 -1
  19. package/resources/agent.js +2 -19
  20. package/resources/agent.js.map +1 -1
  21. package/resources/agent.mjs +2 -19
  22. package/resources/agent.mjs.map +1 -1
  23. package/resources/batch-call.d.mts +43 -4
  24. package/resources/batch-call.d.mts.map +1 -1
  25. package/resources/batch-call.d.ts +43 -4
  26. package/resources/batch-call.d.ts.map +1 -1
  27. package/resources/call.d.mts +129 -12
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +129 -12
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/chat-agent.d.mts +29 -20
  32. package/resources/chat-agent.d.mts.map +1 -1
  33. package/resources/chat-agent.d.ts +29 -20
  34. package/resources/chat-agent.d.ts.map +1 -1
  35. package/resources/chat-agent.js +2 -19
  36. package/resources/chat-agent.js.map +1 -1
  37. package/resources/chat-agent.mjs +2 -19
  38. package/resources/chat-agent.mjs.map +1 -1
  39. package/resources/chat.d.mts +2 -2
  40. package/resources/chat.d.mts.map +1 -1
  41. package/resources/chat.d.ts +2 -2
  42. package/resources/chat.d.ts.map +1 -1
  43. package/resources/conversation-flow-component.d.mts +186 -48
  44. package/resources/conversation-flow-component.d.mts.map +1 -1
  45. package/resources/conversation-flow-component.d.ts +186 -48
  46. package/resources/conversation-flow-component.d.ts.map +1 -1
  47. package/resources/conversation-flow.d.mts +375 -99
  48. package/resources/conversation-flow.d.mts.map +1 -1
  49. package/resources/conversation-flow.d.ts +375 -99
  50. package/resources/conversation-flow.d.ts.map +1 -1
  51. package/resources/export-request.d.mts +48 -0
  52. package/resources/export-request.d.mts.map +1 -0
  53. package/resources/export-request.d.ts +48 -0
  54. package/resources/export-request.d.ts.map +1 -0
  55. package/resources/export-request.js +15 -0
  56. package/resources/export-request.js.map +1 -0
  57. package/resources/export-request.mjs +11 -0
  58. package/resources/export-request.mjs.map +1 -0
  59. package/resources/index.d.mts +3 -2
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +3 -2
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +3 -1
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +1 -0
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/llm.d.mts +9 -9
  68. package/resources/llm.d.mts.map +1 -1
  69. package/resources/llm.d.ts +9 -9
  70. package/resources/llm.d.ts.map +1 -1
  71. package/resources/phone-number.d.mts +108 -12
  72. package/resources/phone-number.d.mts.map +1 -1
  73. package/resources/phone-number.d.ts +108 -12
  74. package/resources/phone-number.d.ts.map +1 -1
  75. package/resources/tests.d.mts +3 -3
  76. package/resources/tests.d.mts.map +1 -1
  77. package/resources/tests.d.ts +3 -3
  78. package/resources/tests.d.ts.map +1 -1
  79. package/src/client.ts +17 -0
  80. package/src/internal/types.ts +6 -8
  81. package/src/resources/agent.ts +167 -23
  82. package/src/resources/batch-call.ts +46 -4
  83. package/src/resources/call.ts +138 -12
  84. package/src/resources/chat-agent.ts +35 -26
  85. package/src/resources/chat.ts +2 -2
  86. package/src/resources/conversation-flow-component.ts +168 -48
  87. package/src/resources/conversation-flow.ts +336 -99
  88. package/src/resources/export-request.ts +71 -0
  89. package/src/resources/index.ts +7 -0
  90. package/src/resources/llm.ts +6 -9
  91. package/src/resources/phone-number.ts +108 -12
  92. package/src/resources/tests.ts +0 -3
  93. package/src/version.ts +1 -1
  94. package/version.d.mts +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. package/version.mjs +1 -1
@@ -2561,7 +2561,7 @@ export interface CallCreatePhoneCallParams {
2561
2561
  * This does not bind the agent version to this number, this is for one time
2562
2562
  * override.
2563
2563
  */
2564
- override_agent_version?: number;
2564
+ override_agent_version?: number | string;
2565
2565
 
2566
2566
  /**
2567
2567
  * Add optional dynamic variables in key value pairs of string that injects into
@@ -2613,6 +2613,13 @@ export namespace CallCreatePhoneCallParams {
2613
2613
  */
2614
2614
  agent_name?: string | null;
2615
2615
 
2616
+ /**
2617
+ * If set to true, DTMF input will interrupt the agent even when
2618
+ * interruption_sensitivity is 0. Can be overridden per conversation or subagent
2619
+ * node. Default to false.
2620
+ */
2621
+ allow_dtmf_interruption?: boolean;
2622
+
2616
2623
  /**
2617
2624
  * If set to true, DTMF input will be accepted and processed. If false, any DTMF
2618
2625
  * input will be ignored. Default to true.
@@ -2707,6 +2714,13 @@ export namespace CallCreatePhoneCallParams {
2707
2714
  */
2708
2715
  boosted_keywords?: Array<string> | null;
2709
2716
 
2717
+ /**
2718
+ * If this option is set, the agent prompt will include call screen handling
2719
+ * instructions for identity and call purpose questions. Set this to null to
2720
+ * disable call screen prompt instructions.
2721
+ */
2722
+ call_screening_option?: Agent.CallScreeningOption | null;
2723
+
2710
2724
  /**
2711
2725
  * Custom STT configuration. Only used when stt_mode is set to custom.
2712
2726
  */
@@ -2998,7 +3012,6 @@ export namespace CallCreatePhoneCallParams {
2998
3012
  | 'claude-4.5-sonnet'
2999
3013
  | 'claude-4.6-sonnet'
3000
3014
  | 'claude-4.5-haiku'
3001
- | 'gemini-2.5-flash'
3002
3015
  | 'gemini-2.5-flash-lite'
3003
3016
  | 'gemini-3.0-flash'
3004
3017
  | 'gemini-3.1-flash-lite'
@@ -3195,6 +3208,25 @@ export namespace CallCreatePhoneCallParams {
3195
3208
  }
3196
3209
 
3197
3210
  export namespace Agent {
3211
+ /**
3212
+ * If this option is set, the agent prompt will include call screen handling
3213
+ * instructions for identity and call purpose questions. Set this to null to
3214
+ * disable call screen prompt instructions.
3215
+ */
3216
+ export interface CallScreeningOption {
3217
+ /**
3218
+ * Identity the agent should provide when a call screen asks who is calling.
3219
+ * Dynamic variables are supported.
3220
+ */
3221
+ agent_identity: string;
3222
+
3223
+ /**
3224
+ * Purpose the agent should provide when a call screen asks why it is calling.
3225
+ * Dynamic variables are supported.
3226
+ */
3227
+ call_purpose: string;
3228
+ }
3229
+
3198
3230
  /**
3199
3231
  * Custom STT configuration. Only used when stt_mode is set to custom.
3200
3232
  */
@@ -3299,6 +3331,12 @@ export namespace CallCreatePhoneCallParams {
3299
3331
  */
3300
3332
  export interface IvrOption {
3301
3333
  action: IvrOption.Action;
3334
+
3335
+ /**
3336
+ * Optionally describe what should be treated as an IVR. Leave as null to use the
3337
+ * default definition.
3338
+ */
3339
+ detection_prompt?: string | null;
3302
3340
  }
3303
3341
 
3304
3342
  export namespace IvrOption {
@@ -3596,6 +3634,12 @@ export namespace CallCreatePhoneCallParams {
3596
3634
  | VoicemailOption.VoicemailActionStaticText
3597
3635
  | VoicemailOption.VoicemailActionHangup
3598
3636
  | VoicemailOption.VoicemailActionBridgeTransfer;
3637
+
3638
+ /**
3639
+ * Optionally describe what should be treated as voicemail. Leave as null to use
3640
+ * the default definition.
3641
+ */
3642
+ detection_prompt?: string | null;
3599
3643
  }
3600
3644
 
3601
3645
  export namespace VoicemailOption {
@@ -3715,7 +3759,6 @@ export namespace CallCreatePhoneCallParams {
3715
3759
  | 'claude-4.5-sonnet'
3716
3760
  | 'claude-4.6-sonnet'
3717
3761
  | 'claude-4.5-haiku'
3718
- | 'gemini-2.5-flash'
3719
3762
  | 'gemini-2.5-flash-lite'
3720
3763
  | 'gemini-3.0-flash'
3721
3764
  | 'gemini-3.1-flash-lite';
@@ -3783,7 +3826,6 @@ export namespace CallCreatePhoneCallParams {
3783
3826
  | 'claude-4.5-sonnet'
3784
3827
  | 'claude-4.6-sonnet'
3785
3828
  | 'claude-4.5-haiku'
3786
- | 'gemini-2.5-flash'
3787
3829
  | 'gemini-2.5-flash-lite'
3788
3830
  | 'gemini-3.0-flash'
3789
3831
  | 'gemini-3.1-flash-lite'
@@ -3859,7 +3901,7 @@ export interface CallCreateWebCallParams {
3859
3901
  /**
3860
3902
  * The version of the agent to use for the call.
3861
3903
  */
3862
- agent_version?: number;
3904
+ agent_version?: number | string;
3863
3905
 
3864
3906
  /**
3865
3907
  * Start the call at this conversation flow node (stage). Must be a valid node id
@@ -3932,6 +3974,13 @@ export namespace CallCreateWebCallParams {
3932
3974
  */
3933
3975
  agent_name?: string | null;
3934
3976
 
3977
+ /**
3978
+ * If set to true, DTMF input will interrupt the agent even when
3979
+ * interruption_sensitivity is 0. Can be overridden per conversation or subagent
3980
+ * node. Default to false.
3981
+ */
3982
+ allow_dtmf_interruption?: boolean;
3983
+
3935
3984
  /**
3936
3985
  * If set to true, DTMF input will be accepted and processed. If false, any DTMF
3937
3986
  * input will be ignored. Default to true.
@@ -4026,6 +4075,13 @@ export namespace CallCreateWebCallParams {
4026
4075
  */
4027
4076
  boosted_keywords?: Array<string> | null;
4028
4077
 
4078
+ /**
4079
+ * If this option is set, the agent prompt will include call screen handling
4080
+ * instructions for identity and call purpose questions. Set this to null to
4081
+ * disable call screen prompt instructions.
4082
+ */
4083
+ call_screening_option?: Agent.CallScreeningOption | null;
4084
+
4029
4085
  /**
4030
4086
  * Custom STT configuration. Only used when stt_mode is set to custom.
4031
4087
  */
@@ -4317,7 +4373,6 @@ export namespace CallCreateWebCallParams {
4317
4373
  | 'claude-4.5-sonnet'
4318
4374
  | 'claude-4.6-sonnet'
4319
4375
  | 'claude-4.5-haiku'
4320
- | 'gemini-2.5-flash'
4321
4376
  | 'gemini-2.5-flash-lite'
4322
4377
  | 'gemini-3.0-flash'
4323
4378
  | 'gemini-3.1-flash-lite'
@@ -4514,6 +4569,25 @@ export namespace CallCreateWebCallParams {
4514
4569
  }
4515
4570
 
4516
4571
  export namespace Agent {
4572
+ /**
4573
+ * If this option is set, the agent prompt will include call screen handling
4574
+ * instructions for identity and call purpose questions. Set this to null to
4575
+ * disable call screen prompt instructions.
4576
+ */
4577
+ export interface CallScreeningOption {
4578
+ /**
4579
+ * Identity the agent should provide when a call screen asks who is calling.
4580
+ * Dynamic variables are supported.
4581
+ */
4582
+ agent_identity: string;
4583
+
4584
+ /**
4585
+ * Purpose the agent should provide when a call screen asks why it is calling.
4586
+ * Dynamic variables are supported.
4587
+ */
4588
+ call_purpose: string;
4589
+ }
4590
+
4517
4591
  /**
4518
4592
  * Custom STT configuration. Only used when stt_mode is set to custom.
4519
4593
  */
@@ -4618,6 +4692,12 @@ export namespace CallCreateWebCallParams {
4618
4692
  */
4619
4693
  export interface IvrOption {
4620
4694
  action: IvrOption.Action;
4695
+
4696
+ /**
4697
+ * Optionally describe what should be treated as an IVR. Leave as null to use the
4698
+ * default definition.
4699
+ */
4700
+ detection_prompt?: string | null;
4621
4701
  }
4622
4702
 
4623
4703
  export namespace IvrOption {
@@ -4915,6 +4995,12 @@ export namespace CallCreateWebCallParams {
4915
4995
  | VoicemailOption.VoicemailActionStaticText
4916
4996
  | VoicemailOption.VoicemailActionHangup
4917
4997
  | VoicemailOption.VoicemailActionBridgeTransfer;
4998
+
4999
+ /**
5000
+ * Optionally describe what should be treated as voicemail. Leave as null to use
5001
+ * the default definition.
5002
+ */
5003
+ detection_prompt?: string | null;
4918
5004
  }
4919
5005
 
4920
5006
  export namespace VoicemailOption {
@@ -5034,7 +5120,6 @@ export namespace CallCreateWebCallParams {
5034
5120
  | 'claude-4.5-sonnet'
5035
5121
  | 'claude-4.6-sonnet'
5036
5122
  | 'claude-4.5-haiku'
5037
- | 'gemini-2.5-flash'
5038
5123
  | 'gemini-2.5-flash-lite'
5039
5124
  | 'gemini-3.0-flash'
5040
5125
  | 'gemini-3.1-flash-lite';
@@ -5102,7 +5187,6 @@ export namespace CallCreateWebCallParams {
5102
5187
  | 'claude-4.5-sonnet'
5103
5188
  | 'claude-4.6-sonnet'
5104
5189
  | 'claude-4.5-haiku'
5105
- | 'gemini-2.5-flash'
5106
5190
  | 'gemini-2.5-flash-lite'
5107
5191
  | 'gemini-3.0-flash'
5108
5192
  | 'gemini-3.1-flash-lite'
@@ -5177,7 +5261,7 @@ export interface CallRegisterPhoneCallParams {
5177
5261
  /**
5178
5262
  * The version of the agent to use for the call.
5179
5263
  */
5180
- agent_version?: number;
5264
+ agent_version?: number | string;
5181
5265
 
5182
5266
  /**
5183
5267
  * Direction of the phone call. Stored for tracking purpose.
@@ -5251,6 +5335,13 @@ export namespace CallRegisterPhoneCallParams {
5251
5335
  */
5252
5336
  agent_name?: string | null;
5253
5337
 
5338
+ /**
5339
+ * If set to true, DTMF input will interrupt the agent even when
5340
+ * interruption_sensitivity is 0. Can be overridden per conversation or subagent
5341
+ * node. Default to false.
5342
+ */
5343
+ allow_dtmf_interruption?: boolean;
5344
+
5254
5345
  /**
5255
5346
  * If set to true, DTMF input will be accepted and processed. If false, any DTMF
5256
5347
  * input will be ignored. Default to true.
@@ -5345,6 +5436,13 @@ export namespace CallRegisterPhoneCallParams {
5345
5436
  */
5346
5437
  boosted_keywords?: Array<string> | null;
5347
5438
 
5439
+ /**
5440
+ * If this option is set, the agent prompt will include call screen handling
5441
+ * instructions for identity and call purpose questions. Set this to null to
5442
+ * disable call screen prompt instructions.
5443
+ */
5444
+ call_screening_option?: Agent.CallScreeningOption | null;
5445
+
5348
5446
  /**
5349
5447
  * Custom STT configuration. Only used when stt_mode is set to custom.
5350
5448
  */
@@ -5636,7 +5734,6 @@ export namespace CallRegisterPhoneCallParams {
5636
5734
  | 'claude-4.5-sonnet'
5637
5735
  | 'claude-4.6-sonnet'
5638
5736
  | 'claude-4.5-haiku'
5639
- | 'gemini-2.5-flash'
5640
5737
  | 'gemini-2.5-flash-lite'
5641
5738
  | 'gemini-3.0-flash'
5642
5739
  | 'gemini-3.1-flash-lite'
@@ -5833,6 +5930,25 @@ export namespace CallRegisterPhoneCallParams {
5833
5930
  }
5834
5931
 
5835
5932
  export namespace Agent {
5933
+ /**
5934
+ * If this option is set, the agent prompt will include call screen handling
5935
+ * instructions for identity and call purpose questions. Set this to null to
5936
+ * disable call screen prompt instructions.
5937
+ */
5938
+ export interface CallScreeningOption {
5939
+ /**
5940
+ * Identity the agent should provide when a call screen asks who is calling.
5941
+ * Dynamic variables are supported.
5942
+ */
5943
+ agent_identity: string;
5944
+
5945
+ /**
5946
+ * Purpose the agent should provide when a call screen asks why it is calling.
5947
+ * Dynamic variables are supported.
5948
+ */
5949
+ call_purpose: string;
5950
+ }
5951
+
5836
5952
  /**
5837
5953
  * Custom STT configuration. Only used when stt_mode is set to custom.
5838
5954
  */
@@ -5937,6 +6053,12 @@ export namespace CallRegisterPhoneCallParams {
5937
6053
  */
5938
6054
  export interface IvrOption {
5939
6055
  action: IvrOption.Action;
6056
+
6057
+ /**
6058
+ * Optionally describe what should be treated as an IVR. Leave as null to use the
6059
+ * default definition.
6060
+ */
6061
+ detection_prompt?: string | null;
5940
6062
  }
5941
6063
 
5942
6064
  export namespace IvrOption {
@@ -6234,6 +6356,12 @@ export namespace CallRegisterPhoneCallParams {
6234
6356
  | VoicemailOption.VoicemailActionStaticText
6235
6357
  | VoicemailOption.VoicemailActionHangup
6236
6358
  | VoicemailOption.VoicemailActionBridgeTransfer;
6359
+
6360
+ /**
6361
+ * Optionally describe what should be treated as voicemail. Leave as null to use
6362
+ * the default definition.
6363
+ */
6364
+ detection_prompt?: string | null;
6237
6365
  }
6238
6366
 
6239
6367
  export namespace VoicemailOption {
@@ -6353,7 +6481,6 @@ export namespace CallRegisterPhoneCallParams {
6353
6481
  | 'claude-4.5-sonnet'
6354
6482
  | 'claude-4.6-sonnet'
6355
6483
  | 'claude-4.5-haiku'
6356
- | 'gemini-2.5-flash'
6357
6484
  | 'gemini-2.5-flash-lite'
6358
6485
  | 'gemini-3.0-flash'
6359
6486
  | 'gemini-3.1-flash-lite';
@@ -6421,7 +6548,6 @@ export namespace CallRegisterPhoneCallParams {
6421
6548
  | 'claude-4.5-sonnet'
6422
6549
  | 'claude-4.6-sonnet'
6423
6550
  | 'claude-4.5-haiku'
6424
- | 'gemini-2.5-flash'
6425
6551
  | 'gemini-2.5-flash-lite'
6426
6552
  | 'gemini-3.0-flash'
6427
6553
  | 'gemini-3.1-flash-lite'
@@ -104,26 +104,12 @@ export class ChatAgent extends APIResource {
104
104
  * );
105
105
  * ```
106
106
  */
107
- getVersions(agentID: string, options?: RequestOptions): APIPromise<ChatAgentGetVersionsResponse> {
108
- return this._client.get(path`/get-chat-agent-versions/${agentID}`, options);
109
- }
110
-
111
- /**
112
- * Publish the latest version of the chat agent and create a new draft chat agent
113
- * with newer version.
114
- *
115
- * @example
116
- * ```ts
117
- * await client.chatAgent.publish(
118
- * '16b980523634a6dc504898cda492e939',
119
- * );
120
- * ```
121
- */
122
- publish(agentID: string, options?: RequestOptions): APIPromise<void> {
123
- return this._client.post(path`/publish-chat-agent/${agentID}`, {
124
- ...options,
125
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
126
- });
107
+ getVersions(
108
+ agentID: string,
109
+ query: ChatAgentGetVersionsParams | null | undefined = {},
110
+ options?: RequestOptions,
111
+ ): APIPromise<ChatAgentGetVersionsResponse> {
112
+ return this._client.get(path`/get-chat-agent-versions/${agentID}`, { query, ...options });
127
113
  }
128
114
  }
129
115
 
@@ -172,11 +158,21 @@ export interface ChatAgentResponse {
172
158
  */
173
159
  analysis_user_sentiment_prompt?: string | null;
174
160
 
161
+ /**
162
+ * Tags assigned to this chat agent version. Preferred tag is listed first.
163
+ */
164
+ assigned_tags?: Array<string>;
165
+
175
166
  /**
176
167
  * Message to display when the chat is automatically closed.
177
168
  */
178
169
  auto_close_message?: string | null;
179
170
 
171
+ /**
172
+ * Version that this draft was based on. Null for initial versions.
173
+ */
174
+ base_version?: number | null;
175
+
180
176
  /**
181
177
  * Number of days to retain call/chat data before automatic deletion. Must be
182
178
  * between 1 and 730 days. If not set, data is retained forever (no automatic
@@ -405,12 +401,17 @@ export interface ChatAgentResponse {
405
401
  | 'claude-4.5-sonnet'
406
402
  | 'claude-4.6-sonnet'
407
403
  | 'claude-4.5-haiku'
408
- | 'gemini-2.5-flash'
409
404
  | 'gemini-2.5-flash-lite'
410
405
  | 'gemini-3.0-flash'
411
406
  | 'gemini-3.1-flash-lite'
412
407
  | null;
413
408
 
409
+ /**
410
+ * Hydrated response engine for this chat agent version. Only present when
411
+ * include_response_engine is true on /get-chat-agent-versions.
412
+ */
413
+ response_engine_data?: unknown;
414
+
414
415
  /**
415
416
  * The expiration time for the signed url in milliseconds. Only applicable when
416
417
  * opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
@@ -433,7 +434,7 @@ export interface ChatAgentResponse {
433
434
  * Which webhook events this agent should receive. If not set, defaults to
434
435
  * chat_started, chat_ended, chat_analyzed.
435
436
  */
436
- webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed'> | null;
437
+ webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed' | 'transcript_updated'> | null;
437
438
 
438
439
  /**
439
440
  * The timeout for the webhook in milliseconds. If not set, default value of 10000
@@ -1012,7 +1013,6 @@ export interface ChatAgentCreateParams {
1012
1013
  | 'claude-4.5-sonnet'
1013
1014
  | 'claude-4.6-sonnet'
1014
1015
  | 'claude-4.5-haiku'
1015
- | 'gemini-2.5-flash'
1016
1016
  | 'gemini-2.5-flash-lite'
1017
1017
  | 'gemini-3.0-flash'
1018
1018
  | 'gemini-3.1-flash-lite'
@@ -1035,7 +1035,7 @@ export interface ChatAgentCreateParams {
1035
1035
  * Which webhook events this agent should receive. If not set, defaults to
1036
1036
  * chat_started, chat_ended, chat_analyzed.
1037
1037
  */
1038
- webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed'> | null;
1038
+ webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed' | 'transcript_updated'> | null;
1039
1039
 
1040
1040
  /**
1041
1041
  * The timeout for the webhook in milliseconds. If not set, default value of 10000
@@ -1616,7 +1616,6 @@ export interface ChatAgentUpdateParams {
1616
1616
  | 'claude-4.5-sonnet'
1617
1617
  | 'claude-4.6-sonnet'
1618
1618
  | 'claude-4.5-haiku'
1619
- | 'gemini-2.5-flash'
1620
1619
  | 'gemini-2.5-flash-lite'
1621
1620
  | 'gemini-3.0-flash'
1622
1621
  | 'gemini-3.1-flash-lite'
@@ -1649,7 +1648,7 @@ export interface ChatAgentUpdateParams {
1649
1648
  * Body param: Which webhook events this agent should receive. If not set, defaults
1650
1649
  * to chat_started, chat_ended, chat_analyzed.
1651
1650
  */
1652
- webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed'> | null;
1651
+ webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed' | 'transcript_updated'> | null;
1653
1652
 
1654
1653
  /**
1655
1654
  * Body param: The timeout for the webhook in milliseconds. If not set, default
@@ -1989,6 +1988,15 @@ export interface ChatAgentListParams {
1989
1988
  pagination_key_version?: number;
1990
1989
  }
1991
1990
 
1991
+ export interface ChatAgentGetVersionsParams {
1992
+ /**
1993
+ * When true, each returned chat agent version includes a response_engine_data
1994
+ * field with the hydrated response engine (full retell-llm or conversation-flow
1995
+ * configuration) bound to that version.
1996
+ */
1997
+ include_response_engine?: boolean;
1998
+ }
1999
+
1992
2000
  export declare namespace ChatAgent {
1993
2001
  export {
1994
2002
  type ChatAgentResponse as ChatAgentResponse,
@@ -1998,5 +2006,6 @@ export declare namespace ChatAgent {
1998
2006
  type ChatAgentRetrieveParams as ChatAgentRetrieveParams,
1999
2007
  type ChatAgentUpdateParams as ChatAgentUpdateParams,
2000
2008
  type ChatAgentListParams as ChatAgentListParams,
2009
+ type ChatAgentGetVersionsParams as ChatAgentGetVersionsParams,
2001
2010
  };
2002
2011
  }
@@ -646,7 +646,7 @@ export interface ChatCreateParams {
646
646
  * The version of the chat agent to use for the chat. If not provided, will default
647
647
  * to latest version.
648
648
  */
649
- agent_version?: number;
649
+ agent_version?: number | string;
650
650
 
651
651
  /**
652
652
  * An arbitrary object for storage purpose only. You can put anything here like
@@ -757,7 +757,7 @@ export interface ChatCreateSMSChatParams {
757
757
  * This does not bind the agent version to this number, this is for one time
758
758
  * override.
759
759
  */
760
- override_agent_version?: number;
760
+ override_agent_version?: number | string;
761
761
 
762
762
  /**
763
763
  * Add optional dynamic variables in key value pairs of string that injects into