retell-sdk 5.36.0 → 5.38.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 (40) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +98 -100
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +98 -100
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/agent.js +1 -4
  8. package/resources/agent.js.map +1 -1
  9. package/resources/agent.mjs +1 -4
  10. package/resources/agent.mjs.map +1 -1
  11. package/resources/batch-call.d.mts +31 -32
  12. package/resources/batch-call.d.mts.map +1 -1
  13. package/resources/batch-call.d.ts +31 -32
  14. package/resources/batch-call.d.ts.map +1 -1
  15. package/resources/call.d.mts +141 -100
  16. package/resources/call.d.mts.map +1 -1
  17. package/resources/call.d.ts +141 -100
  18. package/resources/call.d.ts.map +1 -1
  19. package/resources/chat-agent.d.mts +18 -50
  20. package/resources/chat-agent.d.mts.map +1 -1
  21. package/resources/chat-agent.d.ts +18 -50
  22. package/resources/chat-agent.d.ts.map +1 -1
  23. package/resources/chat-agent.js +1 -4
  24. package/resources/chat-agent.js.map +1 -1
  25. package/resources/chat-agent.mjs +1 -4
  26. package/resources/chat-agent.mjs.map +1 -1
  27. package/resources/tests.d.mts +4 -2
  28. package/resources/tests.d.mts.map +1 -1
  29. package/resources/tests.d.ts +4 -2
  30. package/resources/tests.d.ts.map +1 -1
  31. package/src/resources/agent.ts +147 -115
  32. package/src/resources/batch-call.ts +47 -37
  33. package/src/resources/call.ts +194 -115
  34. package/src/resources/chat-agent.ts +22 -59
  35. package/src/resources/tests.ts +4 -2
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. package/version.mjs +1 -1
@@ -143,6 +143,16 @@ export interface PhoneCallResponse {
143
143
  * Name of the agent.
144
144
  */
145
145
  agent_name?: string;
146
+ /**
147
+ * Tag pointing at the agent version used for this call, captured at call creation
148
+ * time and frozen thereafter (unaffected by later tag reassignments). Populated
149
+ * whether the caller dispatched by tag, numeric version, "latest", or
150
+ * "latest_published" — when the caller specified a tag, that tag wins; otherwise
151
+ * the most-recently- assigned tag on the resolved version is used. Absent when no
152
+ * tag points at the resolved version (or for calls created before this field was
153
+ * introduced).
154
+ */
155
+ agent_tag?: string | null;
146
156
  /**
147
157
  * Post call analysis that includes information such as sentiment, status, summary,
148
158
  * and custom defined data to extract. Available after call ends. Subscribe to
@@ -1106,6 +1116,16 @@ export interface WebCallResponse {
1106
1116
  * Name of the agent.
1107
1117
  */
1108
1118
  agent_name?: string;
1119
+ /**
1120
+ * Tag pointing at the agent version used for this call, captured at call creation
1121
+ * time and frozen thereafter (unaffected by later tag reassignments). Populated
1122
+ * whether the caller dispatched by tag, numeric version, "latest", or
1123
+ * "latest_published" — when the caller specified a tag, that tag wins; otherwise
1124
+ * the most-recently- assigned tag on the resolved version is used. Absent when no
1125
+ * tag points at the resolved version (or for calls created before this field was
1126
+ * introduced).
1127
+ */
1128
+ agent_tag?: string | null;
1109
1129
  /**
1110
1130
  * Post call analysis that includes information such as sentiment, status, summary,
1111
1131
  * and custom defined data to extract. Available after call ends. Subscribe to
@@ -2071,6 +2091,16 @@ export declare namespace CallListResponse {
2071
2091
  * Name of the agent.
2072
2092
  */
2073
2093
  agent_name?: string;
2094
+ /**
2095
+ * Tag pointing at the agent version used for this call, captured at call creation
2096
+ * time and frozen thereafter (unaffected by later tag reassignments). Populated
2097
+ * whether the caller dispatched by tag, numeric version, "latest", or
2098
+ * "latest_published" — when the caller specified a tag, that tag wins; otherwise
2099
+ * the most-recently- assigned tag on the resolved version is used. Absent when no
2100
+ * tag points at the resolved version (or for calls created before this field was
2101
+ * introduced).
2102
+ */
2103
+ agent_tag?: string | null;
2074
2104
  /**
2075
2105
  * Post call analysis that includes information such as sentiment, status, summary,
2076
2106
  * and custom defined data to extract. Available after call ends. Subscribe to
@@ -2647,6 +2677,16 @@ export declare namespace CallListResponse {
2647
2677
  * Name of the agent.
2648
2678
  */
2649
2679
  agent_name?: string;
2680
+ /**
2681
+ * Tag pointing at the agent version used for this call, captured at call creation
2682
+ * time and frozen thereafter (unaffected by later tag reassignments). Populated
2683
+ * whether the caller dispatched by tag, numeric version, "latest", or
2684
+ * "latest_published" — when the caller specified a tag, that tag wins; otherwise
2685
+ * the most-recently- assigned tag on the resolved version is used. Absent when no
2686
+ * tag points at the resolved version (or for calls created before this field was
2687
+ * introduced).
2688
+ */
2689
+ agent_tag?: string | null;
2650
2690
  /**
2651
2691
  * Post call analysis that includes information such as sentiment, status, summary,
2652
2692
  * and custom defined data to extract. Available after call ends. Subscribe to
@@ -3326,23 +3366,6 @@ export declare namespace CallCreatePhoneCallParams {
3326
3366
  * sound. If unset, default value 1 will apply.
3327
3367
  */
3328
3368
  ambient_sound_volume?: number;
3329
- /**
3330
- * Prompt to determine whether the post call or chat analysis should mark the
3331
- * interaction as successful. Set to null to use the default prompt.
3332
- */
3333
- analysis_successful_prompt?: string | null;
3334
- /**
3335
- * Prompt to guide how the post call or chat analysis summary should be generated.
3336
- * When unset, the default system prompt is used. Set to null to use the default
3337
- * prompt.
3338
- */
3339
- analysis_summary_prompt?: string | null;
3340
- /**
3341
- * Prompt to guide how the post call or chat analysis should evaluate user
3342
- * sentiment. When unset, the default system prompt is used. Set to null to use the
3343
- * default prompt.
3344
- */
3345
- analysis_user_sentiment_prompt?: string | null;
3346
3369
  /**
3347
3370
  * Only applicable when enable_backchannel is true. Controls how often the agent
3348
3371
  * would backchannel when a backchannel is possible. Value ranging from [0,1].
@@ -3423,11 +3446,30 @@ export declare namespace CallCreatePhoneCallParams {
3423
3446
  * speech rate and conversation context. If unset, default value false will apply.
3424
3447
  */
3425
3448
  enable_dynamic_voice_speed?: boolean;
3449
+ /**
3450
+ * Master toggle for expressive mode. When true, the agent may add expressive voice
3451
+ * tags to the audio it generates. Only applicable for platform voices. If unset,
3452
+ * defaults to false.
3453
+ */
3454
+ enable_expressive_mode?: boolean;
3426
3455
  /**
3427
3456
  * If users stay silent for a period after agent speech, end the call. The minimum
3428
3457
  * value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
3429
3458
  */
3430
3459
  end_call_after_silence_ms?: number;
3460
+ /**
3461
+ * The expressive voice tags Retell pre-teaches the model to use when
3462
+ * enable_expressive_mode is true. Custom tags defined in the system prompt are
3463
+ * still allowed. If empty, the agent follows general expressive guidance without a
3464
+ * fixed tag set.
3465
+ */
3466
+ expressive_emotion_tags?: Array<'empathetic' | 'excited' | 'happy' | 'curious' | 'surprised' | 'sigh' | 'clear throat' | 'pause' | 'long pause' | 'emphasis'>;
3467
+ /**
3468
+ * Custom expressive voice guidance to use instead of the default Retell expressive
3469
+ * prompt when enable_expressive_mode is true. If omitted or blank, the default
3470
+ * expressive prompt will be used.
3471
+ */
3472
+ expressive_mode_prompt?: string | null;
3431
3473
  /**
3432
3474
  * When TTS provider for the selected voice is experiencing outages, we would use
3433
3475
  * fallback voices listed here for the agent. Voice id and the fallback voice ids
@@ -3555,6 +3597,10 @@ export declare namespace CallCreatePhoneCallParams {
3555
3597
  * documentation.
3556
3598
  */
3557
3599
  version_description?: string | null;
3600
+ /**
3601
+ * Optional title of the agent version. Used for your own reference.
3602
+ */
3603
+ version_title?: string | null;
3558
3604
  /**
3559
3605
  * If set, determines the vocabulary set to use for transcription. This setting
3560
3606
  * only applies for English agents, for non English agent, this setting is a no-op.
@@ -3590,19 +3636,6 @@ export declare namespace CallCreatePhoneCallParams {
3590
3636
  * will apply.
3591
3637
  */
3592
3638
  voice_temperature?: number;
3593
- /**
3594
- * Configures when to stop running voicemail detection, as it becomes unlikely to
3595
- * hit voicemail after a couple minutes, and keep running it will only have
3596
- * negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
3597
- * allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
3598
- */
3599
- voicemail_detection_timeout_ms?: number;
3600
- /**
3601
- * The message to be played when the call enters a voicemail. Note that this
3602
- * feature is only available for phone calls. If you want to hangup after hitting
3603
- * voicemail, set this to empty string.
3604
- */
3605
- voicemail_message?: string;
3606
3639
  /**
3607
3640
  * If this option is set, the call will try to detect voicemail in the first 3
3608
3641
  * minutes of the call. Actions defined (hangup, or leave a message) will be
@@ -3658,13 +3691,13 @@ export declare namespace CallCreatePhoneCallParams {
3658
3691
  interface CustomSttConfig {
3659
3692
  /**
3660
3693
  * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
3661
- * 500 for Soniox
3694
+ * 500 for Soniox, 100 for AssemblyAI.
3662
3695
  */
3663
3696
  endpointing_ms: number;
3664
3697
  /**
3665
3698
  * ASR provider name.
3666
3699
  */
3667
- provider: 'azure' | 'deepgram' | 'soniox';
3700
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
3668
3701
  }
3669
3702
  /**
3670
3703
  * Configuration for guardrail checks to detect and prevent prohibited topics in
@@ -3691,6 +3724,12 @@ export declare namespace CallCreatePhoneCallParams {
3691
3724
  * When asked, acknowledge being a virtual assistant.
3692
3725
  */
3693
3726
  ai_disclosure?: boolean;
3727
+ /**
3728
+ * Enables Conversational Personality. When true, the agent uses the Conversational
3729
+ * Personality handbook preset, skips Professional Rep Personality during prompt
3730
+ * assembly, and enables internal colloquial rewrite behavior.
3731
+ */
3732
+ conversational_personality?: boolean;
3694
3733
  /**
3695
3734
  * Professional call center rep baseline.
3696
3735
  */
@@ -4271,23 +4310,6 @@ export declare namespace CallRegisterPhoneCallParams {
4271
4310
  * sound. If unset, default value 1 will apply.
4272
4311
  */
4273
4312
  ambient_sound_volume?: number;
4274
- /**
4275
- * Prompt to determine whether the post call or chat analysis should mark the
4276
- * interaction as successful. Set to null to use the default prompt.
4277
- */
4278
- analysis_successful_prompt?: string | null;
4279
- /**
4280
- * Prompt to guide how the post call or chat analysis summary should be generated.
4281
- * When unset, the default system prompt is used. Set to null to use the default
4282
- * prompt.
4283
- */
4284
- analysis_summary_prompt?: string | null;
4285
- /**
4286
- * Prompt to guide how the post call or chat analysis should evaluate user
4287
- * sentiment. When unset, the default system prompt is used. Set to null to use the
4288
- * default prompt.
4289
- */
4290
- analysis_user_sentiment_prompt?: string | null;
4291
4313
  /**
4292
4314
  * Only applicable when enable_backchannel is true. Controls how often the agent
4293
4315
  * would backchannel when a backchannel is possible. Value ranging from [0,1].
@@ -4368,11 +4390,30 @@ export declare namespace CallRegisterPhoneCallParams {
4368
4390
  * speech rate and conversation context. If unset, default value false will apply.
4369
4391
  */
4370
4392
  enable_dynamic_voice_speed?: boolean;
4393
+ /**
4394
+ * Master toggle for expressive mode. When true, the agent may add expressive voice
4395
+ * tags to the audio it generates. Only applicable for platform voices. If unset,
4396
+ * defaults to false.
4397
+ */
4398
+ enable_expressive_mode?: boolean;
4371
4399
  /**
4372
4400
  * If users stay silent for a period after agent speech, end the call. The minimum
4373
4401
  * value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
4374
4402
  */
4375
4403
  end_call_after_silence_ms?: number;
4404
+ /**
4405
+ * The expressive voice tags Retell pre-teaches the model to use when
4406
+ * enable_expressive_mode is true. Custom tags defined in the system prompt are
4407
+ * still allowed. If empty, the agent follows general expressive guidance without a
4408
+ * fixed tag set.
4409
+ */
4410
+ expressive_emotion_tags?: Array<'empathetic' | 'excited' | 'happy' | 'curious' | 'surprised' | 'sigh' | 'clear throat' | 'pause' | 'long pause' | 'emphasis'>;
4411
+ /**
4412
+ * Custom expressive voice guidance to use instead of the default Retell expressive
4413
+ * prompt when enable_expressive_mode is true. If omitted or blank, the default
4414
+ * expressive prompt will be used.
4415
+ */
4416
+ expressive_mode_prompt?: string | null;
4376
4417
  /**
4377
4418
  * When TTS provider for the selected voice is experiencing outages, we would use
4378
4419
  * fallback voices listed here for the agent. Voice id and the fallback voice ids
@@ -4500,6 +4541,10 @@ export declare namespace CallRegisterPhoneCallParams {
4500
4541
  * documentation.
4501
4542
  */
4502
4543
  version_description?: string | null;
4544
+ /**
4545
+ * Optional title of the agent version. Used for your own reference.
4546
+ */
4547
+ version_title?: string | null;
4503
4548
  /**
4504
4549
  * If set, determines the vocabulary set to use for transcription. This setting
4505
4550
  * only applies for English agents, for non English agent, this setting is a no-op.
@@ -4535,19 +4580,6 @@ export declare namespace CallRegisterPhoneCallParams {
4535
4580
  * will apply.
4536
4581
  */
4537
4582
  voice_temperature?: number;
4538
- /**
4539
- * Configures when to stop running voicemail detection, as it becomes unlikely to
4540
- * hit voicemail after a couple minutes, and keep running it will only have
4541
- * negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
4542
- * allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
4543
- */
4544
- voicemail_detection_timeout_ms?: number;
4545
- /**
4546
- * The message to be played when the call enters a voicemail. Note that this
4547
- * feature is only available for phone calls. If you want to hangup after hitting
4548
- * voicemail, set this to empty string.
4549
- */
4550
- voicemail_message?: string;
4551
4583
  /**
4552
4584
  * If this option is set, the call will try to detect voicemail in the first 3
4553
4585
  * minutes of the call. Actions defined (hangup, or leave a message) will be
@@ -4603,13 +4635,13 @@ export declare namespace CallRegisterPhoneCallParams {
4603
4635
  interface CustomSttConfig {
4604
4636
  /**
4605
4637
  * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
4606
- * 500 for Soniox
4638
+ * 500 for Soniox, 100 for AssemblyAI.
4607
4639
  */
4608
4640
  endpointing_ms: number;
4609
4641
  /**
4610
4642
  * ASR provider name.
4611
4643
  */
4612
- provider: 'azure' | 'deepgram' | 'soniox';
4644
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
4613
4645
  }
4614
4646
  /**
4615
4647
  * Configuration for guardrail checks to detect and prevent prohibited topics in
@@ -4636,6 +4668,12 @@ export declare namespace CallRegisterPhoneCallParams {
4636
4668
  * When asked, acknowledge being a virtual assistant.
4637
4669
  */
4638
4670
  ai_disclosure?: boolean;
4671
+ /**
4672
+ * Enables Conversational Personality. When true, the agent uses the Conversational
4673
+ * Personality handbook preset, skips Professional Rep Personality during prompt
4674
+ * assembly, and enables internal colloquial rewrite behavior.
4675
+ */
4676
+ conversational_personality?: boolean;
4639
4677
  /**
4640
4678
  * Professional call center rep baseline.
4641
4679
  */
@@ -5217,23 +5255,6 @@ export declare namespace CallCreateWebCallParams {
5217
5255
  * sound. If unset, default value 1 will apply.
5218
5256
  */
5219
5257
  ambient_sound_volume?: number;
5220
- /**
5221
- * Prompt to determine whether the post call or chat analysis should mark the
5222
- * interaction as successful. Set to null to use the default prompt.
5223
- */
5224
- analysis_successful_prompt?: string | null;
5225
- /**
5226
- * Prompt to guide how the post call or chat analysis summary should be generated.
5227
- * When unset, the default system prompt is used. Set to null to use the default
5228
- * prompt.
5229
- */
5230
- analysis_summary_prompt?: string | null;
5231
- /**
5232
- * Prompt to guide how the post call or chat analysis should evaluate user
5233
- * sentiment. When unset, the default system prompt is used. Set to null to use the
5234
- * default prompt.
5235
- */
5236
- analysis_user_sentiment_prompt?: string | null;
5237
5258
  /**
5238
5259
  * Only applicable when enable_backchannel is true. Controls how often the agent
5239
5260
  * would backchannel when a backchannel is possible. Value ranging from [0,1].
@@ -5314,11 +5335,30 @@ export declare namespace CallCreateWebCallParams {
5314
5335
  * speech rate and conversation context. If unset, default value false will apply.
5315
5336
  */
5316
5337
  enable_dynamic_voice_speed?: boolean;
5338
+ /**
5339
+ * Master toggle for expressive mode. When true, the agent may add expressive voice
5340
+ * tags to the audio it generates. Only applicable for platform voices. If unset,
5341
+ * defaults to false.
5342
+ */
5343
+ enable_expressive_mode?: boolean;
5317
5344
  /**
5318
5345
  * If users stay silent for a period after agent speech, end the call. The minimum
5319
5346
  * value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
5320
5347
  */
5321
5348
  end_call_after_silence_ms?: number;
5349
+ /**
5350
+ * The expressive voice tags Retell pre-teaches the model to use when
5351
+ * enable_expressive_mode is true. Custom tags defined in the system prompt are
5352
+ * still allowed. If empty, the agent follows general expressive guidance without a
5353
+ * fixed tag set.
5354
+ */
5355
+ expressive_emotion_tags?: Array<'empathetic' | 'excited' | 'happy' | 'curious' | 'surprised' | 'sigh' | 'clear throat' | 'pause' | 'long pause' | 'emphasis'>;
5356
+ /**
5357
+ * Custom expressive voice guidance to use instead of the default Retell expressive
5358
+ * prompt when enable_expressive_mode is true. If omitted or blank, the default
5359
+ * expressive prompt will be used.
5360
+ */
5361
+ expressive_mode_prompt?: string | null;
5322
5362
  /**
5323
5363
  * When TTS provider for the selected voice is experiencing outages, we would use
5324
5364
  * fallback voices listed here for the agent. Voice id and the fallback voice ids
@@ -5446,6 +5486,10 @@ export declare namespace CallCreateWebCallParams {
5446
5486
  * documentation.
5447
5487
  */
5448
5488
  version_description?: string | null;
5489
+ /**
5490
+ * Optional title of the agent version. Used for your own reference.
5491
+ */
5492
+ version_title?: string | null;
5449
5493
  /**
5450
5494
  * If set, determines the vocabulary set to use for transcription. This setting
5451
5495
  * only applies for English agents, for non English agent, this setting is a no-op.
@@ -5481,19 +5525,6 @@ export declare namespace CallCreateWebCallParams {
5481
5525
  * will apply.
5482
5526
  */
5483
5527
  voice_temperature?: number;
5484
- /**
5485
- * Configures when to stop running voicemail detection, as it becomes unlikely to
5486
- * hit voicemail after a couple minutes, and keep running it will only have
5487
- * negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
5488
- * allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
5489
- */
5490
- voicemail_detection_timeout_ms?: number;
5491
- /**
5492
- * The message to be played when the call enters a voicemail. Note that this
5493
- * feature is only available for phone calls. If you want to hangup after hitting
5494
- * voicemail, set this to empty string.
5495
- */
5496
- voicemail_message?: string;
5497
5528
  /**
5498
5529
  * If this option is set, the call will try to detect voicemail in the first 3
5499
5530
  * minutes of the call. Actions defined (hangup, or leave a message) will be
@@ -5549,13 +5580,13 @@ export declare namespace CallCreateWebCallParams {
5549
5580
  interface CustomSttConfig {
5550
5581
  /**
5551
5582
  * Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
5552
- * 500 for Soniox
5583
+ * 500 for Soniox, 100 for AssemblyAI.
5553
5584
  */
5554
5585
  endpointing_ms: number;
5555
5586
  /**
5556
5587
  * ASR provider name.
5557
5588
  */
5558
- provider: 'azure' | 'deepgram' | 'soniox';
5589
+ provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
5559
5590
  }
5560
5591
  /**
5561
5592
  * Configuration for guardrail checks to detect and prevent prohibited topics in
@@ -5582,6 +5613,12 @@ export declare namespace CallCreateWebCallParams {
5582
5613
  * When asked, acknowledge being a virtual assistant.
5583
5614
  */
5584
5615
  ai_disclosure?: boolean;
5616
+ /**
5617
+ * Enables Conversational Personality. When true, the agent uses the Conversational
5618
+ * Personality handbook preset, skips Professional Rep Personality during prompt
5619
+ * assembly, and enables internal colloquial rewrite behavior.
5620
+ */
5621
+ conversational_personality?: boolean;
5585
5622
  /**
5586
5623
  * Professional call center rep baseline.
5587
5624
  */
@@ -6599,18 +6636,22 @@ export declare namespace CallListParams {
6599
6636
  value: string;
6600
6637
  }
6601
6638
  interface ToolCall {
6602
- /**
6603
- * The tool call name to filter on.
6604
- */
6605
- name: string;
6606
6639
  /**
6607
6640
  * Filter by tool call latency in milliseconds.
6608
6641
  */
6609
6642
  latency_ms?: ToolCall.NumberFilter | ToolCall.RangeFilter;
6643
+ /**
6644
+ * The tool call name to filter on.
6645
+ */
6646
+ name?: string;
6610
6647
  /**
6611
6648
  * Filter by tool call success status.
6612
6649
  */
6613
6650
  success?: ToolCall.Success;
6651
+ /**
6652
+ * The tool call type to filter on.
6653
+ */
6654
+ type?: string;
6614
6655
  }
6615
6656
  namespace ToolCall {
6616
6657
  interface NumberFilter {