retell-sdk 5.35.0 → 5.36.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.36.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v5.35.0...v5.36.0) (2026-06-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** api update ([57158d0](https://github.com/RetellAI/retell-typescript-sdk/commit/57158d031efd22aaf26795d1a46a25505234ee0a))
9
+
10
+
11
+ ### Chores
12
+
13
+ * preserve production workflow files ([619d01d](https://github.com/RetellAI/retell-typescript-sdk/commit/619d01d192af05f0a4922abff764163bf8dbe93b))
14
+
3
15
  ## [5.35.0](https://github.com/RetellAI/retell-typescript-sdk/compare/v5.34.0...v5.35.0) (2026-06-04)
4
16
 
5
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-sdk",
3
- "version": "5.35.0",
3
+ "version": "5.36.0",
4
4
  "description": "The official TypeScript library for the Retell API",
5
5
  "author": "Retell <support@retellai.com>",
6
6
  "types": "./index.d.ts",
@@ -138,6 +138,7 @@ export declare namespace ConversationFlowComponentResponse {
138
138
  */
139
139
  display_position?: ConversationNode.DisplayPosition;
140
140
  edges?: Array<ConversationNode.Edge>;
141
+ else_edge?: ConversationNode.ElseEdge;
141
142
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
142
143
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
143
144
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -277,6 +278,56 @@ export declare namespace ConversationFlowComponentResponse {
277
278
  }
278
279
  }
279
280
  }
281
+ interface ElseEdge {
282
+ /**
283
+ * Unique identifier for the edge
284
+ */
285
+ id: string;
286
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
287
+ /**
288
+ * ID of the destination node
289
+ */
290
+ destination_node_id?: string;
291
+ }
292
+ namespace ElseEdge {
293
+ interface PromptCondition {
294
+ /**
295
+ * Prompt condition text
296
+ */
297
+ prompt: string;
298
+ type: 'prompt';
299
+ }
300
+ interface EquationCondition {
301
+ equations: Array<EquationCondition.Equation>;
302
+ operator: '||' | '&&';
303
+ type: 'equation';
304
+ /**
305
+ * Must be "Else" for else edge
306
+ */
307
+ prompt?: 'Else';
308
+ }
309
+ namespace EquationCondition {
310
+ interface Equation {
311
+ /**
312
+ * Left side of the equation
313
+ */
314
+ left: string;
315
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
316
+ /**
317
+ * Right side of the equation. The right side of the equation not required when
318
+ * "exists" or "not_exist" are selected.
319
+ */
320
+ right?: string;
321
+ }
322
+ }
323
+ interface UnionMember2 {
324
+ /**
325
+ * Must be "Else" for else edge
326
+ */
327
+ prompt: 'Else';
328
+ type: 'prompt';
329
+ }
330
+ }
280
331
  interface FinetuneConversationExample {
281
332
  /**
282
333
  * Unique identifier for the example
@@ -545,6 +596,7 @@ export declare namespace ConversationFlowComponentResponse {
545
596
  */
546
597
  display_position?: SubagentNode.DisplayPosition;
547
598
  edges?: Array<SubagentNode.Edge>;
599
+ else_edge?: SubagentNode.ElseEdge;
548
600
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
549
601
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
550
602
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -684,6 +736,56 @@ export declare namespace ConversationFlowComponentResponse {
684
736
  }
685
737
  }
686
738
  }
739
+ interface ElseEdge {
740
+ /**
741
+ * Unique identifier for the edge
742
+ */
743
+ id: string;
744
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
745
+ /**
746
+ * ID of the destination node
747
+ */
748
+ destination_node_id?: string;
749
+ }
750
+ namespace ElseEdge {
751
+ interface PromptCondition {
752
+ /**
753
+ * Prompt condition text
754
+ */
755
+ prompt: string;
756
+ type: 'prompt';
757
+ }
758
+ interface EquationCondition {
759
+ equations: Array<EquationCondition.Equation>;
760
+ operator: '||' | '&&';
761
+ type: 'equation';
762
+ /**
763
+ * Must be "Else" for else edge
764
+ */
765
+ prompt?: 'Else';
766
+ }
767
+ namespace EquationCondition {
768
+ interface Equation {
769
+ /**
770
+ * Left side of the equation
771
+ */
772
+ left: string;
773
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
774
+ /**
775
+ * Right side of the equation. The right side of the equation not required when
776
+ * "exists" or "not_exist" are selected.
777
+ */
778
+ right?: string;
779
+ }
780
+ }
781
+ interface UnionMember2 {
782
+ /**
783
+ * Must be "Else" for else edge
784
+ */
785
+ prompt: 'Else';
786
+ type: 'prompt';
787
+ }
788
+ }
687
789
  interface FinetuneConversationExample {
688
790
  /**
689
791
  * Unique identifier for the example
@@ -3201,6 +3303,7 @@ export declare namespace ConversationFlowComponentResponse {
3201
3303
  */
3202
3304
  display_position?: PressDigitNode.DisplayPosition;
3203
3305
  edges?: Array<PressDigitNode.Edge>;
3306
+ else_edge?: PressDigitNode.ElseEdge;
3204
3307
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
3205
3308
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
3206
3309
  model_choice?: PressDigitNode.ModelChoice;
@@ -3266,6 +3369,56 @@ export declare namespace ConversationFlowComponentResponse {
3266
3369
  }
3267
3370
  }
3268
3371
  }
3372
+ interface ElseEdge {
3373
+ /**
3374
+ * Unique identifier for the edge
3375
+ */
3376
+ id: string;
3377
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
3378
+ /**
3379
+ * ID of the destination node
3380
+ */
3381
+ destination_node_id?: string;
3382
+ }
3383
+ namespace ElseEdge {
3384
+ interface PromptCondition {
3385
+ /**
3386
+ * Prompt condition text
3387
+ */
3388
+ prompt: string;
3389
+ type: 'prompt';
3390
+ }
3391
+ interface EquationCondition {
3392
+ equations: Array<EquationCondition.Equation>;
3393
+ operator: '||' | '&&';
3394
+ type: 'equation';
3395
+ /**
3396
+ * Must be "Else" for else edge
3397
+ */
3398
+ prompt?: 'Else';
3399
+ }
3400
+ namespace EquationCondition {
3401
+ interface Equation {
3402
+ /**
3403
+ * Left side of the equation
3404
+ */
3405
+ left: string;
3406
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
3407
+ /**
3408
+ * Right side of the equation. The right side of the equation not required when
3409
+ * "exists" or "not_exist" are selected.
3410
+ */
3411
+ right?: string;
3412
+ }
3413
+ }
3414
+ interface UnionMember2 {
3415
+ /**
3416
+ * Must be "Else" for else edge
3417
+ */
3418
+ prompt: 'Else';
3419
+ type: 'prompt';
3420
+ }
3421
+ }
3269
3422
  interface FinetuneTransitionExample {
3270
3423
  /**
3271
3424
  * Unique identifier for the example
@@ -5951,6 +6104,7 @@ export declare namespace ConversationFlowComponentCreateParams {
5951
6104
  */
5952
6105
  display_position?: ConversationNode.DisplayPosition;
5953
6106
  edges?: Array<ConversationNode.Edge>;
6107
+ else_edge?: ConversationNode.ElseEdge;
5954
6108
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
5955
6109
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
5956
6110
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -6090,6 +6244,56 @@ export declare namespace ConversationFlowComponentCreateParams {
6090
6244
  }
6091
6245
  }
6092
6246
  }
6247
+ interface ElseEdge {
6248
+ /**
6249
+ * Unique identifier for the edge
6250
+ */
6251
+ id: string;
6252
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
6253
+ /**
6254
+ * ID of the destination node
6255
+ */
6256
+ destination_node_id?: string;
6257
+ }
6258
+ namespace ElseEdge {
6259
+ interface PromptCondition {
6260
+ /**
6261
+ * Prompt condition text
6262
+ */
6263
+ prompt: string;
6264
+ type: 'prompt';
6265
+ }
6266
+ interface EquationCondition {
6267
+ equations: Array<EquationCondition.Equation>;
6268
+ operator: '||' | '&&';
6269
+ type: 'equation';
6270
+ /**
6271
+ * Must be "Else" for else edge
6272
+ */
6273
+ prompt?: 'Else';
6274
+ }
6275
+ namespace EquationCondition {
6276
+ interface Equation {
6277
+ /**
6278
+ * Left side of the equation
6279
+ */
6280
+ left: string;
6281
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
6282
+ /**
6283
+ * Right side of the equation. The right side of the equation not required when
6284
+ * "exists" or "not_exist" are selected.
6285
+ */
6286
+ right?: string;
6287
+ }
6288
+ }
6289
+ interface UnionMember2 {
6290
+ /**
6291
+ * Must be "Else" for else edge
6292
+ */
6293
+ prompt: 'Else';
6294
+ type: 'prompt';
6295
+ }
6296
+ }
6093
6297
  interface FinetuneConversationExample {
6094
6298
  /**
6095
6299
  * Unique identifier for the example
@@ -6358,6 +6562,7 @@ export declare namespace ConversationFlowComponentCreateParams {
6358
6562
  */
6359
6563
  display_position?: SubagentNode.DisplayPosition;
6360
6564
  edges?: Array<SubagentNode.Edge>;
6565
+ else_edge?: SubagentNode.ElseEdge;
6361
6566
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
6362
6567
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
6363
6568
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -6497,6 +6702,56 @@ export declare namespace ConversationFlowComponentCreateParams {
6497
6702
  }
6498
6703
  }
6499
6704
  }
6705
+ interface ElseEdge {
6706
+ /**
6707
+ * Unique identifier for the edge
6708
+ */
6709
+ id: string;
6710
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
6711
+ /**
6712
+ * ID of the destination node
6713
+ */
6714
+ destination_node_id?: string;
6715
+ }
6716
+ namespace ElseEdge {
6717
+ interface PromptCondition {
6718
+ /**
6719
+ * Prompt condition text
6720
+ */
6721
+ prompt: string;
6722
+ type: 'prompt';
6723
+ }
6724
+ interface EquationCondition {
6725
+ equations: Array<EquationCondition.Equation>;
6726
+ operator: '||' | '&&';
6727
+ type: 'equation';
6728
+ /**
6729
+ * Must be "Else" for else edge
6730
+ */
6731
+ prompt?: 'Else';
6732
+ }
6733
+ namespace EquationCondition {
6734
+ interface Equation {
6735
+ /**
6736
+ * Left side of the equation
6737
+ */
6738
+ left: string;
6739
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
6740
+ /**
6741
+ * Right side of the equation. The right side of the equation not required when
6742
+ * "exists" or "not_exist" are selected.
6743
+ */
6744
+ right?: string;
6745
+ }
6746
+ }
6747
+ interface UnionMember2 {
6748
+ /**
6749
+ * Must be "Else" for else edge
6750
+ */
6751
+ prompt: 'Else';
6752
+ type: 'prompt';
6753
+ }
6754
+ }
6500
6755
  interface FinetuneConversationExample {
6501
6756
  /**
6502
6757
  * Unique identifier for the example
@@ -9014,6 +9269,7 @@ export declare namespace ConversationFlowComponentCreateParams {
9014
9269
  */
9015
9270
  display_position?: PressDigitNode.DisplayPosition;
9016
9271
  edges?: Array<PressDigitNode.Edge>;
9272
+ else_edge?: PressDigitNode.ElseEdge;
9017
9273
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
9018
9274
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
9019
9275
  model_choice?: PressDigitNode.ModelChoice;
@@ -9079,6 +9335,56 @@ export declare namespace ConversationFlowComponentCreateParams {
9079
9335
  }
9080
9336
  }
9081
9337
  }
9338
+ interface ElseEdge {
9339
+ /**
9340
+ * Unique identifier for the edge
9341
+ */
9342
+ id: string;
9343
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
9344
+ /**
9345
+ * ID of the destination node
9346
+ */
9347
+ destination_node_id?: string;
9348
+ }
9349
+ namespace ElseEdge {
9350
+ interface PromptCondition {
9351
+ /**
9352
+ * Prompt condition text
9353
+ */
9354
+ prompt: string;
9355
+ type: 'prompt';
9356
+ }
9357
+ interface EquationCondition {
9358
+ equations: Array<EquationCondition.Equation>;
9359
+ operator: '||' | '&&';
9360
+ type: 'equation';
9361
+ /**
9362
+ * Must be "Else" for else edge
9363
+ */
9364
+ prompt?: 'Else';
9365
+ }
9366
+ namespace EquationCondition {
9367
+ interface Equation {
9368
+ /**
9369
+ * Left side of the equation
9370
+ */
9371
+ left: string;
9372
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
9373
+ /**
9374
+ * Right side of the equation. The right side of the equation not required when
9375
+ * "exists" or "not_exist" are selected.
9376
+ */
9377
+ right?: string;
9378
+ }
9379
+ }
9380
+ interface UnionMember2 {
9381
+ /**
9382
+ * Must be "Else" for else edge
9383
+ */
9384
+ prompt: 'Else';
9385
+ type: 'prompt';
9386
+ }
9387
+ }
9082
9388
  interface FinetuneTransitionExample {
9083
9389
  /**
9084
9390
  * Unique identifier for the example
@@ -11798,6 +12104,7 @@ export declare namespace ConversationFlowComponentUpdateParams {
11798
12104
  */
11799
12105
  display_position?: ConversationNode.DisplayPosition;
11800
12106
  edges?: Array<ConversationNode.Edge>;
12107
+ else_edge?: ConversationNode.ElseEdge;
11801
12108
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
11802
12109
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
11803
12110
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -11937,6 +12244,56 @@ export declare namespace ConversationFlowComponentUpdateParams {
11937
12244
  }
11938
12245
  }
11939
12246
  }
12247
+ interface ElseEdge {
12248
+ /**
12249
+ * Unique identifier for the edge
12250
+ */
12251
+ id: string;
12252
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
12253
+ /**
12254
+ * ID of the destination node
12255
+ */
12256
+ destination_node_id?: string;
12257
+ }
12258
+ namespace ElseEdge {
12259
+ interface PromptCondition {
12260
+ /**
12261
+ * Prompt condition text
12262
+ */
12263
+ prompt: string;
12264
+ type: 'prompt';
12265
+ }
12266
+ interface EquationCondition {
12267
+ equations: Array<EquationCondition.Equation>;
12268
+ operator: '||' | '&&';
12269
+ type: 'equation';
12270
+ /**
12271
+ * Must be "Else" for else edge
12272
+ */
12273
+ prompt?: 'Else';
12274
+ }
12275
+ namespace EquationCondition {
12276
+ interface Equation {
12277
+ /**
12278
+ * Left side of the equation
12279
+ */
12280
+ left: string;
12281
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
12282
+ /**
12283
+ * Right side of the equation. The right side of the equation not required when
12284
+ * "exists" or "not_exist" are selected.
12285
+ */
12286
+ right?: string;
12287
+ }
12288
+ }
12289
+ interface UnionMember2 {
12290
+ /**
12291
+ * Must be "Else" for else edge
12292
+ */
12293
+ prompt: 'Else';
12294
+ type: 'prompt';
12295
+ }
12296
+ }
11940
12297
  interface FinetuneConversationExample {
11941
12298
  /**
11942
12299
  * Unique identifier for the example
@@ -12205,6 +12562,7 @@ export declare namespace ConversationFlowComponentUpdateParams {
12205
12562
  */
12206
12563
  display_position?: SubagentNode.DisplayPosition;
12207
12564
  edges?: Array<SubagentNode.Edge>;
12565
+ else_edge?: SubagentNode.ElseEdge;
12208
12566
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
12209
12567
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
12210
12568
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -12344,6 +12702,56 @@ export declare namespace ConversationFlowComponentUpdateParams {
12344
12702
  }
12345
12703
  }
12346
12704
  }
12705
+ interface ElseEdge {
12706
+ /**
12707
+ * Unique identifier for the edge
12708
+ */
12709
+ id: string;
12710
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
12711
+ /**
12712
+ * ID of the destination node
12713
+ */
12714
+ destination_node_id?: string;
12715
+ }
12716
+ namespace ElseEdge {
12717
+ interface PromptCondition {
12718
+ /**
12719
+ * Prompt condition text
12720
+ */
12721
+ prompt: string;
12722
+ type: 'prompt';
12723
+ }
12724
+ interface EquationCondition {
12725
+ equations: Array<EquationCondition.Equation>;
12726
+ operator: '||' | '&&';
12727
+ type: 'equation';
12728
+ /**
12729
+ * Must be "Else" for else edge
12730
+ */
12731
+ prompt?: 'Else';
12732
+ }
12733
+ namespace EquationCondition {
12734
+ interface Equation {
12735
+ /**
12736
+ * Left side of the equation
12737
+ */
12738
+ left: string;
12739
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
12740
+ /**
12741
+ * Right side of the equation. The right side of the equation not required when
12742
+ * "exists" or "not_exist" are selected.
12743
+ */
12744
+ right?: string;
12745
+ }
12746
+ }
12747
+ interface UnionMember2 {
12748
+ /**
12749
+ * Must be "Else" for else edge
12750
+ */
12751
+ prompt: 'Else';
12752
+ type: 'prompt';
12753
+ }
12754
+ }
12347
12755
  interface FinetuneConversationExample {
12348
12756
  /**
12349
12757
  * Unique identifier for the example
@@ -14861,6 +15269,7 @@ export declare namespace ConversationFlowComponentUpdateParams {
14861
15269
  */
14862
15270
  display_position?: PressDigitNode.DisplayPosition;
14863
15271
  edges?: Array<PressDigitNode.Edge>;
15272
+ else_edge?: PressDigitNode.ElseEdge;
14864
15273
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
14865
15274
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
14866
15275
  model_choice?: PressDigitNode.ModelChoice;
@@ -14926,6 +15335,56 @@ export declare namespace ConversationFlowComponentUpdateParams {
14926
15335
  }
14927
15336
  }
14928
15337
  }
15338
+ interface ElseEdge {
15339
+ /**
15340
+ * Unique identifier for the edge
15341
+ */
15342
+ id: string;
15343
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
15344
+ /**
15345
+ * ID of the destination node
15346
+ */
15347
+ destination_node_id?: string;
15348
+ }
15349
+ namespace ElseEdge {
15350
+ interface PromptCondition {
15351
+ /**
15352
+ * Prompt condition text
15353
+ */
15354
+ prompt: string;
15355
+ type: 'prompt';
15356
+ }
15357
+ interface EquationCondition {
15358
+ equations: Array<EquationCondition.Equation>;
15359
+ operator: '||' | '&&';
15360
+ type: 'equation';
15361
+ /**
15362
+ * Must be "Else" for else edge
15363
+ */
15364
+ prompt?: 'Else';
15365
+ }
15366
+ namespace EquationCondition {
15367
+ interface Equation {
15368
+ /**
15369
+ * Left side of the equation
15370
+ */
15371
+ left: string;
15372
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
15373
+ /**
15374
+ * Right side of the equation. The right side of the equation not required when
15375
+ * "exists" or "not_exist" are selected.
15376
+ */
15377
+ right?: string;
15378
+ }
15379
+ }
15380
+ interface UnionMember2 {
15381
+ /**
15382
+ * Must be "Else" for else edge
15383
+ */
15384
+ prompt: 'Else';
15385
+ type: 'prompt';
15386
+ }
15387
+ }
14929
15388
  interface FinetuneTransitionExample {
14930
15389
  /**
14931
15390
  * Unique identifier for the example