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.
@@ -338,6 +338,8 @@ export namespace ConversationFlowResponse {
338
338
 
339
339
  edges?: Array<ConversationNode.Edge>;
340
340
 
341
+ else_edge?: ConversationNode.ElseEdge;
342
+
341
343
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
342
344
 
343
345
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -542,6 +544,80 @@ export namespace ConversationFlowResponse {
542
544
  }
543
545
  }
544
546
 
547
+ export interface ElseEdge {
548
+ /**
549
+ * Unique identifier for the edge
550
+ */
551
+ id: string;
552
+
553
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
554
+
555
+ /**
556
+ * ID of the destination node
557
+ */
558
+ destination_node_id?: string;
559
+ }
560
+
561
+ export namespace ElseEdge {
562
+ export interface PromptCondition {
563
+ /**
564
+ * Prompt condition text
565
+ */
566
+ prompt: string;
567
+
568
+ type: 'prompt';
569
+ }
570
+
571
+ export interface EquationCondition {
572
+ equations: Array<EquationCondition.Equation>;
573
+
574
+ operator: '||' | '&&';
575
+
576
+ type: 'equation';
577
+
578
+ /**
579
+ * Must be "Else" for else edge
580
+ */
581
+ prompt?: 'Else';
582
+ }
583
+
584
+ export namespace EquationCondition {
585
+ export interface Equation {
586
+ /**
587
+ * Left side of the equation
588
+ */
589
+ left: string;
590
+
591
+ operator:
592
+ | '=='
593
+ | '!='
594
+ | '>'
595
+ | '>='
596
+ | '<'
597
+ | '<='
598
+ | 'contains'
599
+ | 'not_contains'
600
+ | 'exists'
601
+ | 'not_exist';
602
+
603
+ /**
604
+ * Right side of the equation. The right side of the equation not required when
605
+ * "exists" or "not_exist" are selected.
606
+ */
607
+ right?: string;
608
+ }
609
+ }
610
+
611
+ export interface UnionMember2 {
612
+ /**
613
+ * Must be "Else" for else edge
614
+ */
615
+ prompt: 'Else';
616
+
617
+ type: 'prompt';
618
+ }
619
+ }
620
+
545
621
  export interface FinetuneConversationExample {
546
622
  /**
547
623
  * Unique identifier for the example
@@ -952,6 +1028,8 @@ export namespace ConversationFlowResponse {
952
1028
 
953
1029
  edges?: Array<SubagentNode.Edge>;
954
1030
 
1031
+ else_edge?: SubagentNode.ElseEdge;
1032
+
955
1033
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
956
1034
 
957
1035
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -1170,6 +1248,80 @@ export namespace ConversationFlowResponse {
1170
1248
  }
1171
1249
  }
1172
1250
 
1251
+ export interface ElseEdge {
1252
+ /**
1253
+ * Unique identifier for the edge
1254
+ */
1255
+ id: string;
1256
+
1257
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
1258
+
1259
+ /**
1260
+ * ID of the destination node
1261
+ */
1262
+ destination_node_id?: string;
1263
+ }
1264
+
1265
+ export namespace ElseEdge {
1266
+ export interface PromptCondition {
1267
+ /**
1268
+ * Prompt condition text
1269
+ */
1270
+ prompt: string;
1271
+
1272
+ type: 'prompt';
1273
+ }
1274
+
1275
+ export interface EquationCondition {
1276
+ equations: Array<EquationCondition.Equation>;
1277
+
1278
+ operator: '||' | '&&';
1279
+
1280
+ type: 'equation';
1281
+
1282
+ /**
1283
+ * Must be "Else" for else edge
1284
+ */
1285
+ prompt?: 'Else';
1286
+ }
1287
+
1288
+ export namespace EquationCondition {
1289
+ export interface Equation {
1290
+ /**
1291
+ * Left side of the equation
1292
+ */
1293
+ left: string;
1294
+
1295
+ operator:
1296
+ | '=='
1297
+ | '!='
1298
+ | '>'
1299
+ | '>='
1300
+ | '<'
1301
+ | '<='
1302
+ | 'contains'
1303
+ | 'not_contains'
1304
+ | 'exists'
1305
+ | 'not_exist';
1306
+
1307
+ /**
1308
+ * Right side of the equation. The right side of the equation not required when
1309
+ * "exists" or "not_exist" are selected.
1310
+ */
1311
+ right?: string;
1312
+ }
1313
+ }
1314
+
1315
+ export interface UnionMember2 {
1316
+ /**
1317
+ * Must be "Else" for else edge
1318
+ */
1319
+ prompt: 'Else';
1320
+
1321
+ type: 'prompt';
1322
+ }
1323
+ }
1324
+
1173
1325
  export interface FinetuneConversationExample {
1174
1326
  /**
1175
1327
  * Unique identifier for the example
@@ -4589,6 +4741,8 @@ export namespace ConversationFlowResponse {
4589
4741
 
4590
4742
  edges?: Array<PressDigitNode.Edge>;
4591
4743
 
4744
+ else_edge?: PressDigitNode.ElseEdge;
4745
+
4592
4746
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
4593
4747
 
4594
4748
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -4683,6 +4837,80 @@ export namespace ConversationFlowResponse {
4683
4837
  }
4684
4838
  }
4685
4839
 
4840
+ export interface ElseEdge {
4841
+ /**
4842
+ * Unique identifier for the edge
4843
+ */
4844
+ id: string;
4845
+
4846
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
4847
+
4848
+ /**
4849
+ * ID of the destination node
4850
+ */
4851
+ destination_node_id?: string;
4852
+ }
4853
+
4854
+ export namespace ElseEdge {
4855
+ export interface PromptCondition {
4856
+ /**
4857
+ * Prompt condition text
4858
+ */
4859
+ prompt: string;
4860
+
4861
+ type: 'prompt';
4862
+ }
4863
+
4864
+ export interface EquationCondition {
4865
+ equations: Array<EquationCondition.Equation>;
4866
+
4867
+ operator: '||' | '&&';
4868
+
4869
+ type: 'equation';
4870
+
4871
+ /**
4872
+ * Must be "Else" for else edge
4873
+ */
4874
+ prompt?: 'Else';
4875
+ }
4876
+
4877
+ export namespace EquationCondition {
4878
+ export interface Equation {
4879
+ /**
4880
+ * Left side of the equation
4881
+ */
4882
+ left: string;
4883
+
4884
+ operator:
4885
+ | '=='
4886
+ | '!='
4887
+ | '>'
4888
+ | '>='
4889
+ | '<'
4890
+ | '<='
4891
+ | 'contains'
4892
+ | 'not_contains'
4893
+ | 'exists'
4894
+ | 'not_exist';
4895
+
4896
+ /**
4897
+ * Right side of the equation. The right side of the equation not required when
4898
+ * "exists" or "not_exist" are selected.
4899
+ */
4900
+ right?: string;
4901
+ }
4902
+ }
4903
+
4904
+ export interface UnionMember2 {
4905
+ /**
4906
+ * Must be "Else" for else edge
4907
+ */
4908
+ prompt: 'Else';
4909
+
4910
+ type: 'prompt';
4911
+ }
4912
+ }
4913
+
4686
4914
  export interface FinetuneTransitionExample {
4687
4915
  /**
4688
4916
  * Unique identifier for the example
@@ -8590,6 +8818,8 @@ export namespace ConversationFlowResponse {
8590
8818
 
8591
8819
  edges?: Array<ConversationNode.Edge>;
8592
8820
 
8821
+ else_edge?: ConversationNode.ElseEdge;
8822
+
8593
8823
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
8594
8824
 
8595
8825
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -8794,6 +9024,80 @@ export namespace ConversationFlowResponse {
8794
9024
  }
8795
9025
  }
8796
9026
 
9027
+ export interface ElseEdge {
9028
+ /**
9029
+ * Unique identifier for the edge
9030
+ */
9031
+ id: string;
9032
+
9033
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
9034
+
9035
+ /**
9036
+ * ID of the destination node
9037
+ */
9038
+ destination_node_id?: string;
9039
+ }
9040
+
9041
+ export namespace ElseEdge {
9042
+ export interface PromptCondition {
9043
+ /**
9044
+ * Prompt condition text
9045
+ */
9046
+ prompt: string;
9047
+
9048
+ type: 'prompt';
9049
+ }
9050
+
9051
+ export interface EquationCondition {
9052
+ equations: Array<EquationCondition.Equation>;
9053
+
9054
+ operator: '||' | '&&';
9055
+
9056
+ type: 'equation';
9057
+
9058
+ /**
9059
+ * Must be "Else" for else edge
9060
+ */
9061
+ prompt?: 'Else';
9062
+ }
9063
+
9064
+ export namespace EquationCondition {
9065
+ export interface Equation {
9066
+ /**
9067
+ * Left side of the equation
9068
+ */
9069
+ left: string;
9070
+
9071
+ operator:
9072
+ | '=='
9073
+ | '!='
9074
+ | '>'
9075
+ | '>='
9076
+ | '<'
9077
+ | '<='
9078
+ | 'contains'
9079
+ | 'not_contains'
9080
+ | 'exists'
9081
+ | 'not_exist';
9082
+
9083
+ /**
9084
+ * Right side of the equation. The right side of the equation not required when
9085
+ * "exists" or "not_exist" are selected.
9086
+ */
9087
+ right?: string;
9088
+ }
9089
+ }
9090
+
9091
+ export interface UnionMember2 {
9092
+ /**
9093
+ * Must be "Else" for else edge
9094
+ */
9095
+ prompt: 'Else';
9096
+
9097
+ type: 'prompt';
9098
+ }
9099
+ }
9100
+
8797
9101
  export interface FinetuneConversationExample {
8798
9102
  /**
8799
9103
  * Unique identifier for the example
@@ -9204,6 +9508,8 @@ export namespace ConversationFlowResponse {
9204
9508
 
9205
9509
  edges?: Array<SubagentNode.Edge>;
9206
9510
 
9511
+ else_edge?: SubagentNode.ElseEdge;
9512
+
9207
9513
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
9208
9514
 
9209
9515
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -9422,6 +9728,80 @@ export namespace ConversationFlowResponse {
9422
9728
  }
9423
9729
  }
9424
9730
 
9731
+ export interface ElseEdge {
9732
+ /**
9733
+ * Unique identifier for the edge
9734
+ */
9735
+ id: string;
9736
+
9737
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
9738
+
9739
+ /**
9740
+ * ID of the destination node
9741
+ */
9742
+ destination_node_id?: string;
9743
+ }
9744
+
9745
+ export namespace ElseEdge {
9746
+ export interface PromptCondition {
9747
+ /**
9748
+ * Prompt condition text
9749
+ */
9750
+ prompt: string;
9751
+
9752
+ type: 'prompt';
9753
+ }
9754
+
9755
+ export interface EquationCondition {
9756
+ equations: Array<EquationCondition.Equation>;
9757
+
9758
+ operator: '||' | '&&';
9759
+
9760
+ type: 'equation';
9761
+
9762
+ /**
9763
+ * Must be "Else" for else edge
9764
+ */
9765
+ prompt?: 'Else';
9766
+ }
9767
+
9768
+ export namespace EquationCondition {
9769
+ export interface Equation {
9770
+ /**
9771
+ * Left side of the equation
9772
+ */
9773
+ left: string;
9774
+
9775
+ operator:
9776
+ | '=='
9777
+ | '!='
9778
+ | '>'
9779
+ | '>='
9780
+ | '<'
9781
+ | '<='
9782
+ | 'contains'
9783
+ | 'not_contains'
9784
+ | 'exists'
9785
+ | 'not_exist';
9786
+
9787
+ /**
9788
+ * Right side of the equation. The right side of the equation not required when
9789
+ * "exists" or "not_exist" are selected.
9790
+ */
9791
+ right?: string;
9792
+ }
9793
+ }
9794
+
9795
+ export interface UnionMember2 {
9796
+ /**
9797
+ * Must be "Else" for else edge
9798
+ */
9799
+ prompt: 'Else';
9800
+
9801
+ type: 'prompt';
9802
+ }
9803
+ }
9804
+
9425
9805
  export interface FinetuneConversationExample {
9426
9806
  /**
9427
9807
  * Unique identifier for the example
@@ -12841,6 +13221,8 @@ export namespace ConversationFlowResponse {
12841
13221
 
12842
13222
  edges?: Array<PressDigitNode.Edge>;
12843
13223
 
13224
+ else_edge?: PressDigitNode.ElseEdge;
13225
+
12844
13226
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
12845
13227
 
12846
13228
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -12935,6 +13317,80 @@ export namespace ConversationFlowResponse {
12935
13317
  }
12936
13318
  }
12937
13319
 
13320
+ export interface ElseEdge {
13321
+ /**
13322
+ * Unique identifier for the edge
13323
+ */
13324
+ id: string;
13325
+
13326
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
13327
+
13328
+ /**
13329
+ * ID of the destination node
13330
+ */
13331
+ destination_node_id?: string;
13332
+ }
13333
+
13334
+ export namespace ElseEdge {
13335
+ export interface PromptCondition {
13336
+ /**
13337
+ * Prompt condition text
13338
+ */
13339
+ prompt: string;
13340
+
13341
+ type: 'prompt';
13342
+ }
13343
+
13344
+ export interface EquationCondition {
13345
+ equations: Array<EquationCondition.Equation>;
13346
+
13347
+ operator: '||' | '&&';
13348
+
13349
+ type: 'equation';
13350
+
13351
+ /**
13352
+ * Must be "Else" for else edge
13353
+ */
13354
+ prompt?: 'Else';
13355
+ }
13356
+
13357
+ export namespace EquationCondition {
13358
+ export interface Equation {
13359
+ /**
13360
+ * Left side of the equation
13361
+ */
13362
+ left: string;
13363
+
13364
+ operator:
13365
+ | '=='
13366
+ | '!='
13367
+ | '>'
13368
+ | '>='
13369
+ | '<'
13370
+ | '<='
13371
+ | 'contains'
13372
+ | 'not_contains'
13373
+ | 'exists'
13374
+ | 'not_exist';
13375
+
13376
+ /**
13377
+ * Right side of the equation. The right side of the equation not required when
13378
+ * "exists" or "not_exist" are selected.
13379
+ */
13380
+ right?: string;
13381
+ }
13382
+ }
13383
+
13384
+ export interface UnionMember2 {
13385
+ /**
13386
+ * Must be "Else" for else edge
13387
+ */
13388
+ prompt: 'Else';
13389
+
13390
+ type: 'prompt';
13391
+ }
13392
+ }
13393
+
12938
13394
  export interface FinetuneTransitionExample {
12939
13395
  /**
12940
13396
  * Unique identifier for the example
@@ -16902,6 +17358,8 @@ export namespace ConversationFlowCreateParams {
16902
17358
 
16903
17359
  edges?: Array<ConversationNode.Edge>;
16904
17360
 
17361
+ else_edge?: ConversationNode.ElseEdge;
17362
+
16905
17363
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
16906
17364
 
16907
17365
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -17106,6 +17564,80 @@ export namespace ConversationFlowCreateParams {
17106
17564
  }
17107
17565
  }
17108
17566
 
17567
+ export interface ElseEdge {
17568
+ /**
17569
+ * Unique identifier for the edge
17570
+ */
17571
+ id: string;
17572
+
17573
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
17574
+
17575
+ /**
17576
+ * ID of the destination node
17577
+ */
17578
+ destination_node_id?: string;
17579
+ }
17580
+
17581
+ export namespace ElseEdge {
17582
+ export interface PromptCondition {
17583
+ /**
17584
+ * Prompt condition text
17585
+ */
17586
+ prompt: string;
17587
+
17588
+ type: 'prompt';
17589
+ }
17590
+
17591
+ export interface EquationCondition {
17592
+ equations: Array<EquationCondition.Equation>;
17593
+
17594
+ operator: '||' | '&&';
17595
+
17596
+ type: 'equation';
17597
+
17598
+ /**
17599
+ * Must be "Else" for else edge
17600
+ */
17601
+ prompt?: 'Else';
17602
+ }
17603
+
17604
+ export namespace EquationCondition {
17605
+ export interface Equation {
17606
+ /**
17607
+ * Left side of the equation
17608
+ */
17609
+ left: string;
17610
+
17611
+ operator:
17612
+ | '=='
17613
+ | '!='
17614
+ | '>'
17615
+ | '>='
17616
+ | '<'
17617
+ | '<='
17618
+ | 'contains'
17619
+ | 'not_contains'
17620
+ | 'exists'
17621
+ | 'not_exist';
17622
+
17623
+ /**
17624
+ * Right side of the equation. The right side of the equation not required when
17625
+ * "exists" or "not_exist" are selected.
17626
+ */
17627
+ right?: string;
17628
+ }
17629
+ }
17630
+
17631
+ export interface UnionMember2 {
17632
+ /**
17633
+ * Must be "Else" for else edge
17634
+ */
17635
+ prompt: 'Else';
17636
+
17637
+ type: 'prompt';
17638
+ }
17639
+ }
17640
+
17109
17641
  export interface FinetuneConversationExample {
17110
17642
  /**
17111
17643
  * Unique identifier for the example
@@ -17516,6 +18048,8 @@ export namespace ConversationFlowCreateParams {
17516
18048
 
17517
18049
  edges?: Array<SubagentNode.Edge>;
17518
18050
 
18051
+ else_edge?: SubagentNode.ElseEdge;
18052
+
17519
18053
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
17520
18054
 
17521
18055
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -17734,6 +18268,80 @@ export namespace ConversationFlowCreateParams {
17734
18268
  }
17735
18269
  }
17736
18270
 
18271
+ export interface ElseEdge {
18272
+ /**
18273
+ * Unique identifier for the edge
18274
+ */
18275
+ id: string;
18276
+
18277
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
18278
+
18279
+ /**
18280
+ * ID of the destination node
18281
+ */
18282
+ destination_node_id?: string;
18283
+ }
18284
+
18285
+ export namespace ElseEdge {
18286
+ export interface PromptCondition {
18287
+ /**
18288
+ * Prompt condition text
18289
+ */
18290
+ prompt: string;
18291
+
18292
+ type: 'prompt';
18293
+ }
18294
+
18295
+ export interface EquationCondition {
18296
+ equations: Array<EquationCondition.Equation>;
18297
+
18298
+ operator: '||' | '&&';
18299
+
18300
+ type: 'equation';
18301
+
18302
+ /**
18303
+ * Must be "Else" for else edge
18304
+ */
18305
+ prompt?: 'Else';
18306
+ }
18307
+
18308
+ export namespace EquationCondition {
18309
+ export interface Equation {
18310
+ /**
18311
+ * Left side of the equation
18312
+ */
18313
+ left: string;
18314
+
18315
+ operator:
18316
+ | '=='
18317
+ | '!='
18318
+ | '>'
18319
+ | '>='
18320
+ | '<'
18321
+ | '<='
18322
+ | 'contains'
18323
+ | 'not_contains'
18324
+ | 'exists'
18325
+ | 'not_exist';
18326
+
18327
+ /**
18328
+ * Right side of the equation. The right side of the equation not required when
18329
+ * "exists" or "not_exist" are selected.
18330
+ */
18331
+ right?: string;
18332
+ }
18333
+ }
18334
+
18335
+ export interface UnionMember2 {
18336
+ /**
18337
+ * Must be "Else" for else edge
18338
+ */
18339
+ prompt: 'Else';
18340
+
18341
+ type: 'prompt';
18342
+ }
18343
+ }
18344
+
17737
18345
  export interface FinetuneConversationExample {
17738
18346
  /**
17739
18347
  * Unique identifier for the example
@@ -21153,6 +21761,8 @@ export namespace ConversationFlowCreateParams {
21153
21761
 
21154
21762
  edges?: Array<PressDigitNode.Edge>;
21155
21763
 
21764
+ else_edge?: PressDigitNode.ElseEdge;
21765
+
21156
21766
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
21157
21767
 
21158
21768
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -21247,6 +21857,80 @@ export namespace ConversationFlowCreateParams {
21247
21857
  }
21248
21858
  }
21249
21859
 
21860
+ export interface ElseEdge {
21861
+ /**
21862
+ * Unique identifier for the edge
21863
+ */
21864
+ id: string;
21865
+
21866
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
21867
+
21868
+ /**
21869
+ * ID of the destination node
21870
+ */
21871
+ destination_node_id?: string;
21872
+ }
21873
+
21874
+ export namespace ElseEdge {
21875
+ export interface PromptCondition {
21876
+ /**
21877
+ * Prompt condition text
21878
+ */
21879
+ prompt: string;
21880
+
21881
+ type: 'prompt';
21882
+ }
21883
+
21884
+ export interface EquationCondition {
21885
+ equations: Array<EquationCondition.Equation>;
21886
+
21887
+ operator: '||' | '&&';
21888
+
21889
+ type: 'equation';
21890
+
21891
+ /**
21892
+ * Must be "Else" for else edge
21893
+ */
21894
+ prompt?: 'Else';
21895
+ }
21896
+
21897
+ export namespace EquationCondition {
21898
+ export interface Equation {
21899
+ /**
21900
+ * Left side of the equation
21901
+ */
21902
+ left: string;
21903
+
21904
+ operator:
21905
+ | '=='
21906
+ | '!='
21907
+ | '>'
21908
+ | '>='
21909
+ | '<'
21910
+ | '<='
21911
+ | 'contains'
21912
+ | 'not_contains'
21913
+ | 'exists'
21914
+ | 'not_exist';
21915
+
21916
+ /**
21917
+ * Right side of the equation. The right side of the equation not required when
21918
+ * "exists" or "not_exist" are selected.
21919
+ */
21920
+ right?: string;
21921
+ }
21922
+ }
21923
+
21924
+ export interface UnionMember2 {
21925
+ /**
21926
+ * Must be "Else" for else edge
21927
+ */
21928
+ prompt: 'Else';
21929
+
21930
+ type: 'prompt';
21931
+ }
21932
+ }
21933
+
21250
21934
  export interface FinetuneTransitionExample {
21251
21935
  /**
21252
21936
  * Unique identifier for the example
@@ -24840,6 +25524,8 @@ export namespace ConversationFlowCreateParams {
24840
25524
 
24841
25525
  edges?: Array<ConversationNode.Edge>;
24842
25526
 
25527
+ else_edge?: ConversationNode.ElseEdge;
25528
+
24843
25529
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
24844
25530
 
24845
25531
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -25044,6 +25730,80 @@ export namespace ConversationFlowCreateParams {
25044
25730
  }
25045
25731
  }
25046
25732
 
25733
+ export interface ElseEdge {
25734
+ /**
25735
+ * Unique identifier for the edge
25736
+ */
25737
+ id: string;
25738
+
25739
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
25740
+
25741
+ /**
25742
+ * ID of the destination node
25743
+ */
25744
+ destination_node_id?: string;
25745
+ }
25746
+
25747
+ export namespace ElseEdge {
25748
+ export interface PromptCondition {
25749
+ /**
25750
+ * Prompt condition text
25751
+ */
25752
+ prompt: string;
25753
+
25754
+ type: 'prompt';
25755
+ }
25756
+
25757
+ export interface EquationCondition {
25758
+ equations: Array<EquationCondition.Equation>;
25759
+
25760
+ operator: '||' | '&&';
25761
+
25762
+ type: 'equation';
25763
+
25764
+ /**
25765
+ * Must be "Else" for else edge
25766
+ */
25767
+ prompt?: 'Else';
25768
+ }
25769
+
25770
+ export namespace EquationCondition {
25771
+ export interface Equation {
25772
+ /**
25773
+ * Left side of the equation
25774
+ */
25775
+ left: string;
25776
+
25777
+ operator:
25778
+ | '=='
25779
+ | '!='
25780
+ | '>'
25781
+ | '>='
25782
+ | '<'
25783
+ | '<='
25784
+ | 'contains'
25785
+ | 'not_contains'
25786
+ | 'exists'
25787
+ | 'not_exist';
25788
+
25789
+ /**
25790
+ * Right side of the equation. The right side of the equation not required when
25791
+ * "exists" or "not_exist" are selected.
25792
+ */
25793
+ right?: string;
25794
+ }
25795
+ }
25796
+
25797
+ export interface UnionMember2 {
25798
+ /**
25799
+ * Must be "Else" for else edge
25800
+ */
25801
+ prompt: 'Else';
25802
+
25803
+ type: 'prompt';
25804
+ }
25805
+ }
25806
+
25047
25807
  export interface FinetuneConversationExample {
25048
25808
  /**
25049
25809
  * Unique identifier for the example
@@ -25454,6 +26214,8 @@ export namespace ConversationFlowCreateParams {
25454
26214
 
25455
26215
  edges?: Array<SubagentNode.Edge>;
25456
26216
 
26217
+ else_edge?: SubagentNode.ElseEdge;
26218
+
25457
26219
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
25458
26220
 
25459
26221
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -25672,6 +26434,80 @@ export namespace ConversationFlowCreateParams {
25672
26434
  }
25673
26435
  }
25674
26436
 
26437
+ export interface ElseEdge {
26438
+ /**
26439
+ * Unique identifier for the edge
26440
+ */
26441
+ id: string;
26442
+
26443
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
26444
+
26445
+ /**
26446
+ * ID of the destination node
26447
+ */
26448
+ destination_node_id?: string;
26449
+ }
26450
+
26451
+ export namespace ElseEdge {
26452
+ export interface PromptCondition {
26453
+ /**
26454
+ * Prompt condition text
26455
+ */
26456
+ prompt: string;
26457
+
26458
+ type: 'prompt';
26459
+ }
26460
+
26461
+ export interface EquationCondition {
26462
+ equations: Array<EquationCondition.Equation>;
26463
+
26464
+ operator: '||' | '&&';
26465
+
26466
+ type: 'equation';
26467
+
26468
+ /**
26469
+ * Must be "Else" for else edge
26470
+ */
26471
+ prompt?: 'Else';
26472
+ }
26473
+
26474
+ export namespace EquationCondition {
26475
+ export interface Equation {
26476
+ /**
26477
+ * Left side of the equation
26478
+ */
26479
+ left: string;
26480
+
26481
+ operator:
26482
+ | '=='
26483
+ | '!='
26484
+ | '>'
26485
+ | '>='
26486
+ | '<'
26487
+ | '<='
26488
+ | 'contains'
26489
+ | 'not_contains'
26490
+ | 'exists'
26491
+ | 'not_exist';
26492
+
26493
+ /**
26494
+ * Right side of the equation. The right side of the equation not required when
26495
+ * "exists" or "not_exist" are selected.
26496
+ */
26497
+ right?: string;
26498
+ }
26499
+ }
26500
+
26501
+ export interface UnionMember2 {
26502
+ /**
26503
+ * Must be "Else" for else edge
26504
+ */
26505
+ prompt: 'Else';
26506
+
26507
+ type: 'prompt';
26508
+ }
26509
+ }
26510
+
25675
26511
  export interface FinetuneConversationExample {
25676
26512
  /**
25677
26513
  * Unique identifier for the example
@@ -29091,6 +29927,8 @@ export namespace ConversationFlowCreateParams {
29091
29927
 
29092
29928
  edges?: Array<PressDigitNode.Edge>;
29093
29929
 
29930
+ else_edge?: PressDigitNode.ElseEdge;
29931
+
29094
29932
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
29095
29933
 
29096
29934
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -29185,6 +30023,80 @@ export namespace ConversationFlowCreateParams {
29185
30023
  }
29186
30024
  }
29187
30025
 
30026
+ export interface ElseEdge {
30027
+ /**
30028
+ * Unique identifier for the edge
30029
+ */
30030
+ id: string;
30031
+
30032
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
30033
+
30034
+ /**
30035
+ * ID of the destination node
30036
+ */
30037
+ destination_node_id?: string;
30038
+ }
30039
+
30040
+ export namespace ElseEdge {
30041
+ export interface PromptCondition {
30042
+ /**
30043
+ * Prompt condition text
30044
+ */
30045
+ prompt: string;
30046
+
30047
+ type: 'prompt';
30048
+ }
30049
+
30050
+ export interface EquationCondition {
30051
+ equations: Array<EquationCondition.Equation>;
30052
+
30053
+ operator: '||' | '&&';
30054
+
30055
+ type: 'equation';
30056
+
30057
+ /**
30058
+ * Must be "Else" for else edge
30059
+ */
30060
+ prompt?: 'Else';
30061
+ }
30062
+
30063
+ export namespace EquationCondition {
30064
+ export interface Equation {
30065
+ /**
30066
+ * Left side of the equation
30067
+ */
30068
+ left: string;
30069
+
30070
+ operator:
30071
+ | '=='
30072
+ | '!='
30073
+ | '>'
30074
+ | '>='
30075
+ | '<'
30076
+ | '<='
30077
+ | 'contains'
30078
+ | 'not_contains'
30079
+ | 'exists'
30080
+ | 'not_exist';
30081
+
30082
+ /**
30083
+ * Right side of the equation. The right side of the equation not required when
30084
+ * "exists" or "not_exist" are selected.
30085
+ */
30086
+ right?: string;
30087
+ }
30088
+ }
30089
+
30090
+ export interface UnionMember2 {
30091
+ /**
30092
+ * Must be "Else" for else edge
30093
+ */
30094
+ prompt: 'Else';
30095
+
30096
+ type: 'prompt';
30097
+ }
30098
+ }
30099
+
29188
30100
  export interface FinetuneTransitionExample {
29189
30101
  /**
29190
30102
  * Unique identifier for the example
@@ -33548,6 +34460,8 @@ export namespace ConversationFlowUpdateParams {
33548
34460
 
33549
34461
  edges?: Array<ConversationNode.Edge>;
33550
34462
 
34463
+ else_edge?: ConversationNode.ElseEdge;
34464
+
33551
34465
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
33552
34466
 
33553
34467
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -33752,6 +34666,80 @@ export namespace ConversationFlowUpdateParams {
33752
34666
  }
33753
34667
  }
33754
34668
 
34669
+ export interface ElseEdge {
34670
+ /**
34671
+ * Unique identifier for the edge
34672
+ */
34673
+ id: string;
34674
+
34675
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
34676
+
34677
+ /**
34678
+ * ID of the destination node
34679
+ */
34680
+ destination_node_id?: string;
34681
+ }
34682
+
34683
+ export namespace ElseEdge {
34684
+ export interface PromptCondition {
34685
+ /**
34686
+ * Prompt condition text
34687
+ */
34688
+ prompt: string;
34689
+
34690
+ type: 'prompt';
34691
+ }
34692
+
34693
+ export interface EquationCondition {
34694
+ equations: Array<EquationCondition.Equation>;
34695
+
34696
+ operator: '||' | '&&';
34697
+
34698
+ type: 'equation';
34699
+
34700
+ /**
34701
+ * Must be "Else" for else edge
34702
+ */
34703
+ prompt?: 'Else';
34704
+ }
34705
+
34706
+ export namespace EquationCondition {
34707
+ export interface Equation {
34708
+ /**
34709
+ * Left side of the equation
34710
+ */
34711
+ left: string;
34712
+
34713
+ operator:
34714
+ | '=='
34715
+ | '!='
34716
+ | '>'
34717
+ | '>='
34718
+ | '<'
34719
+ | '<='
34720
+ | 'contains'
34721
+ | 'not_contains'
34722
+ | 'exists'
34723
+ | 'not_exist';
34724
+
34725
+ /**
34726
+ * Right side of the equation. The right side of the equation not required when
34727
+ * "exists" or "not_exist" are selected.
34728
+ */
34729
+ right?: string;
34730
+ }
34731
+ }
34732
+
34733
+ export interface UnionMember2 {
34734
+ /**
34735
+ * Must be "Else" for else edge
34736
+ */
34737
+ prompt: 'Else';
34738
+
34739
+ type: 'prompt';
34740
+ }
34741
+ }
34742
+
33755
34743
  export interface FinetuneConversationExample {
33756
34744
  /**
33757
34745
  * Unique identifier for the example
@@ -34162,6 +35150,8 @@ export namespace ConversationFlowUpdateParams {
34162
35150
 
34163
35151
  edges?: Array<SubagentNode.Edge>;
34164
35152
 
35153
+ else_edge?: SubagentNode.ElseEdge;
35154
+
34165
35155
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
34166
35156
 
34167
35157
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
@@ -34380,6 +35370,80 @@ export namespace ConversationFlowUpdateParams {
34380
35370
  }
34381
35371
  }
34382
35372
 
35373
+ export interface ElseEdge {
35374
+ /**
35375
+ * Unique identifier for the edge
35376
+ */
35377
+ id: string;
35378
+
35379
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
35380
+
35381
+ /**
35382
+ * ID of the destination node
35383
+ */
35384
+ destination_node_id?: string;
35385
+ }
35386
+
35387
+ export namespace ElseEdge {
35388
+ export interface PromptCondition {
35389
+ /**
35390
+ * Prompt condition text
35391
+ */
35392
+ prompt: string;
35393
+
35394
+ type: 'prompt';
35395
+ }
35396
+
35397
+ export interface EquationCondition {
35398
+ equations: Array<EquationCondition.Equation>;
35399
+
35400
+ operator: '||' | '&&';
35401
+
35402
+ type: 'equation';
35403
+
35404
+ /**
35405
+ * Must be "Else" for else edge
35406
+ */
35407
+ prompt?: 'Else';
35408
+ }
35409
+
35410
+ export namespace EquationCondition {
35411
+ export interface Equation {
35412
+ /**
35413
+ * Left side of the equation
35414
+ */
35415
+ left: string;
35416
+
35417
+ operator:
35418
+ | '=='
35419
+ | '!='
35420
+ | '>'
35421
+ | '>='
35422
+ | '<'
35423
+ | '<='
35424
+ | 'contains'
35425
+ | 'not_contains'
35426
+ | 'exists'
35427
+ | 'not_exist';
35428
+
35429
+ /**
35430
+ * Right side of the equation. The right side of the equation not required when
35431
+ * "exists" or "not_exist" are selected.
35432
+ */
35433
+ right?: string;
35434
+ }
35435
+ }
35436
+
35437
+ export interface UnionMember2 {
35438
+ /**
35439
+ * Must be "Else" for else edge
35440
+ */
35441
+ prompt: 'Else';
35442
+
35443
+ type: 'prompt';
35444
+ }
35445
+ }
35446
+
34383
35447
  export interface FinetuneConversationExample {
34384
35448
  /**
34385
35449
  * Unique identifier for the example
@@ -37799,6 +38863,8 @@ export namespace ConversationFlowUpdateParams {
37799
38863
 
37800
38864
  edges?: Array<PressDigitNode.Edge>;
37801
38865
 
38866
+ else_edge?: PressDigitNode.ElseEdge;
38867
+
37802
38868
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
37803
38869
 
37804
38870
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -37893,6 +38959,80 @@ export namespace ConversationFlowUpdateParams {
37893
38959
  }
37894
38960
  }
37895
38961
 
38962
+ export interface ElseEdge {
38963
+ /**
38964
+ * Unique identifier for the edge
38965
+ */
38966
+ id: string;
38967
+
38968
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
38969
+
38970
+ /**
38971
+ * ID of the destination node
38972
+ */
38973
+ destination_node_id?: string;
38974
+ }
38975
+
38976
+ export namespace ElseEdge {
38977
+ export interface PromptCondition {
38978
+ /**
38979
+ * Prompt condition text
38980
+ */
38981
+ prompt: string;
38982
+
38983
+ type: 'prompt';
38984
+ }
38985
+
38986
+ export interface EquationCondition {
38987
+ equations: Array<EquationCondition.Equation>;
38988
+
38989
+ operator: '||' | '&&';
38990
+
38991
+ type: 'equation';
38992
+
38993
+ /**
38994
+ * Must be "Else" for else edge
38995
+ */
38996
+ prompt?: 'Else';
38997
+ }
38998
+
38999
+ export namespace EquationCondition {
39000
+ export interface Equation {
39001
+ /**
39002
+ * Left side of the equation
39003
+ */
39004
+ left: string;
39005
+
39006
+ operator:
39007
+ | '=='
39008
+ | '!='
39009
+ | '>'
39010
+ | '>='
39011
+ | '<'
39012
+ | '<='
39013
+ | 'contains'
39014
+ | 'not_contains'
39015
+ | 'exists'
39016
+ | 'not_exist';
39017
+
39018
+ /**
39019
+ * Right side of the equation. The right side of the equation not required when
39020
+ * "exists" or "not_exist" are selected.
39021
+ */
39022
+ right?: string;
39023
+ }
39024
+ }
39025
+
39026
+ export interface UnionMember2 {
39027
+ /**
39028
+ * Must be "Else" for else edge
39029
+ */
39030
+ prompt: 'Else';
39031
+
39032
+ type: 'prompt';
39033
+ }
39034
+ }
39035
+
37896
39036
  export interface FinetuneTransitionExample {
37897
39037
  /**
37898
39038
  * Unique identifier for the example
@@ -41800,6 +42940,8 @@ export namespace ConversationFlowUpdateParams {
41800
42940
 
41801
42941
  edges?: Array<ConversationNode.Edge>;
41802
42942
 
42943
+ else_edge?: ConversationNode.ElseEdge;
42944
+
41803
42945
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
41804
42946
 
41805
42947
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
@@ -42004,6 +43146,80 @@ export namespace ConversationFlowUpdateParams {
42004
43146
  }
42005
43147
  }
42006
43148
 
43149
+ export interface ElseEdge {
43150
+ /**
43151
+ * Unique identifier for the edge
43152
+ */
43153
+ id: string;
43154
+
43155
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
43156
+
43157
+ /**
43158
+ * ID of the destination node
43159
+ */
43160
+ destination_node_id?: string;
43161
+ }
43162
+
43163
+ export namespace ElseEdge {
43164
+ export interface PromptCondition {
43165
+ /**
43166
+ * Prompt condition text
43167
+ */
43168
+ prompt: string;
43169
+
43170
+ type: 'prompt';
43171
+ }
43172
+
43173
+ export interface EquationCondition {
43174
+ equations: Array<EquationCondition.Equation>;
43175
+
43176
+ operator: '||' | '&&';
43177
+
43178
+ type: 'equation';
43179
+
43180
+ /**
43181
+ * Must be "Else" for else edge
43182
+ */
43183
+ prompt?: 'Else';
43184
+ }
43185
+
43186
+ export namespace EquationCondition {
43187
+ export interface Equation {
43188
+ /**
43189
+ * Left side of the equation
43190
+ */
43191
+ left: string;
43192
+
43193
+ operator:
43194
+ | '=='
43195
+ | '!='
43196
+ | '>'
43197
+ | '>='
43198
+ | '<'
43199
+ | '<='
43200
+ | 'contains'
43201
+ | 'not_contains'
43202
+ | 'exists'
43203
+ | 'not_exist';
43204
+
43205
+ /**
43206
+ * Right side of the equation. The right side of the equation not required when
43207
+ * "exists" or "not_exist" are selected.
43208
+ */
43209
+ right?: string;
43210
+ }
43211
+ }
43212
+
43213
+ export interface UnionMember2 {
43214
+ /**
43215
+ * Must be "Else" for else edge
43216
+ */
43217
+ prompt: 'Else';
43218
+
43219
+ type: 'prompt';
43220
+ }
43221
+ }
43222
+
42007
43223
  export interface FinetuneConversationExample {
42008
43224
  /**
42009
43225
  * Unique identifier for the example
@@ -42375,127 +43591,272 @@ export namespace ConversationFlowUpdateParams {
42375
43591
  right?: string;
42376
43592
  }
42377
43593
  }
42378
-
42379
- export interface UnionMember2 {
42380
- /**
42381
- * Must be "Skip response" for skip response edge
42382
- */
42383
- prompt: 'Skip response';
42384
-
42385
- type: 'prompt';
42386
- }
43594
+
43595
+ export interface UnionMember2 {
43596
+ /**
43597
+ * Must be "Skip response" for skip response edge
43598
+ */
43599
+ prompt: 'Skip response';
43600
+
43601
+ type: 'prompt';
43602
+ }
43603
+ }
43604
+ }
43605
+
43606
+ export interface SubagentNode {
43607
+ /**
43608
+ * Unique identifier for the node
43609
+ */
43610
+ id: string;
43611
+
43612
+ instruction: SubagentNode.Instruction;
43613
+
43614
+ /**
43615
+ * Type of the node
43616
+ */
43617
+ type: 'subagent';
43618
+
43619
+ /**
43620
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
43621
+ */
43622
+ allow_dtmf_interruption?: boolean | null;
43623
+
43624
+ always_edge?: SubagentNode.AlwaysEdge;
43625
+
43626
+ /**
43627
+ * Position for frontend display
43628
+ */
43629
+ display_position?: SubagentNode.DisplayPosition;
43630
+
43631
+ edges?: Array<SubagentNode.Edge>;
43632
+
43633
+ else_edge?: SubagentNode.ElseEdge;
43634
+
43635
+ finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
43636
+
43637
+ finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
43638
+
43639
+ global_node_setting?: SubagentNode.GlobalNodeSetting;
43640
+
43641
+ interruption_sensitivity?: number | null;
43642
+
43643
+ /**
43644
+ * Knowledge base configuration for RAG retrieval at the node level. If
43645
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
43646
+ */
43647
+ kb_config?: SubagentNode.KBConfig;
43648
+
43649
+ /**
43650
+ * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
43651
+ */
43652
+ knowledge_base_ids?: Array<string> | null;
43653
+
43654
+ model_choice?: SubagentNode.ModelChoice;
43655
+
43656
+ /**
43657
+ * Optional name for display purposes
43658
+ */
43659
+ name?: string;
43660
+
43661
+ responsiveness?: number | null;
43662
+
43663
+ skip_response_edge?: SubagentNode.SkipResponseEdge;
43664
+
43665
+ /**
43666
+ * The tool ids of the tools defined in main conversation flow or component that
43667
+ * can be used in this subagent node.
43668
+ */
43669
+ tool_ids?: Array<string> | null;
43670
+
43671
+ /**
43672
+ * The tools owned by this subagent node. This includes other tool types like
43673
+ * transfer_call, agent_swap, etc.
43674
+ */
43675
+ tools?: Array<
43676
+ | SubagentNode.EndCallTool
43677
+ | SubagentNode.TransferCallTool
43678
+ | SubagentNode.CheckAvailabilityCalTool
43679
+ | SubagentNode.BookAppointmentCalTool
43680
+ | SubagentNode.AgentSwapTool
43681
+ | SubagentNode.PressDigitTool
43682
+ | SubagentNode.SendSMSTool
43683
+ | SubagentNode.CustomTool
43684
+ | SubagentNode.CodeTool
43685
+ | SubagentNode.ExtractDynamicVariableTool
43686
+ | SubagentNode.BridgeTransferTool
43687
+ | SubagentNode.CancelTransferTool
43688
+ | SubagentNode.McpTool
43689
+ > | null;
43690
+
43691
+ voice_speed?: number | null;
43692
+ }
43693
+
43694
+ export namespace SubagentNode {
43695
+ export interface Instruction {
43696
+ /**
43697
+ * The prompt text for the instruction
43698
+ */
43699
+ text: string;
43700
+
43701
+ /**
43702
+ * Type of instruction
43703
+ */
43704
+ type: 'prompt';
43705
+ }
43706
+
43707
+ export interface AlwaysEdge {
43708
+ /**
43709
+ * Unique identifier for the edge
43710
+ */
43711
+ id: string;
43712
+
43713
+ transition_condition:
43714
+ | AlwaysEdge.PromptCondition
43715
+ | AlwaysEdge.EquationCondition
43716
+ | AlwaysEdge.UnionMember2;
43717
+
43718
+ /**
43719
+ * ID of the destination node
43720
+ */
43721
+ destination_node_id?: string;
43722
+ }
43723
+
43724
+ export namespace AlwaysEdge {
43725
+ export interface PromptCondition {
43726
+ /**
43727
+ * Prompt condition text
43728
+ */
43729
+ prompt: string;
43730
+
43731
+ type: 'prompt';
43732
+ }
43733
+
43734
+ export interface EquationCondition {
43735
+ equations: Array<EquationCondition.Equation>;
43736
+
43737
+ operator: '||' | '&&';
43738
+
43739
+ type: 'equation';
43740
+
43741
+ /**
43742
+ * Must be "Always" for always edge
43743
+ */
43744
+ prompt?: 'Always';
43745
+ }
43746
+
43747
+ export namespace EquationCondition {
43748
+ export interface Equation {
43749
+ /**
43750
+ * Left side of the equation
43751
+ */
43752
+ left: string;
43753
+
43754
+ operator:
43755
+ | '=='
43756
+ | '!='
43757
+ | '>'
43758
+ | '>='
43759
+ | '<'
43760
+ | '<='
43761
+ | 'contains'
43762
+ | 'not_contains'
43763
+ | 'exists'
43764
+ | 'not_exist';
43765
+
43766
+ /**
43767
+ * Right side of the equation. The right side of the equation not required when
43768
+ * "exists" or "not_exist" are selected.
43769
+ */
43770
+ right?: string;
43771
+ }
43772
+ }
43773
+
43774
+ export interface UnionMember2 {
43775
+ /**
43776
+ * Must be "Always" for always edge
43777
+ */
43778
+ prompt: 'Always';
43779
+
43780
+ type: 'prompt';
43781
+ }
43782
+ }
43783
+
43784
+ /**
43785
+ * Position for frontend display
43786
+ */
43787
+ export interface DisplayPosition {
43788
+ x?: number;
43789
+
43790
+ y?: number;
43791
+ }
43792
+
43793
+ export interface Edge {
43794
+ /**
43795
+ * Unique identifier for the edge
43796
+ */
43797
+ id: string;
43798
+
43799
+ transition_condition: Edge.PromptCondition | Edge.EquationCondition;
43800
+
43801
+ /**
43802
+ * ID of the destination node
43803
+ */
43804
+ destination_node_id?: string;
43805
+ }
43806
+
43807
+ export namespace Edge {
43808
+ export interface PromptCondition {
43809
+ /**
43810
+ * Prompt condition text
43811
+ */
43812
+ prompt: string;
43813
+
43814
+ type: 'prompt';
43815
+ }
43816
+
43817
+ export interface EquationCondition {
43818
+ equations: Array<EquationCondition.Equation>;
43819
+
43820
+ operator: '||' | '&&';
43821
+
43822
+ type: 'equation';
43823
+ }
43824
+
43825
+ export namespace EquationCondition {
43826
+ export interface Equation {
43827
+ /**
43828
+ * Left side of the equation
43829
+ */
43830
+ left: string;
43831
+
43832
+ operator:
43833
+ | '=='
43834
+ | '!='
43835
+ | '>'
43836
+ | '>='
43837
+ | '<'
43838
+ | '<='
43839
+ | 'contains'
43840
+ | 'not_contains'
43841
+ | 'exists'
43842
+ | 'not_exist';
43843
+
43844
+ /**
43845
+ * Right side of the equation. The right side of the equation not required when
43846
+ * "exists" or "not_exist" are selected.
43847
+ */
43848
+ right?: string;
43849
+ }
43850
+ }
42387
43851
  }
42388
- }
42389
-
42390
- export interface SubagentNode {
42391
- /**
42392
- * Unique identifier for the node
42393
- */
42394
- id: string;
42395
-
42396
- instruction: SubagentNode.Instruction;
42397
-
42398
- /**
42399
- * Type of the node
42400
- */
42401
- type: 'subagent';
42402
-
42403
- /**
42404
- * If set, overrides the agent-level allow_dtmf_interruption for this node only.
42405
- */
42406
- allow_dtmf_interruption?: boolean | null;
42407
-
42408
- always_edge?: SubagentNode.AlwaysEdge;
42409
-
42410
- /**
42411
- * Position for frontend display
42412
- */
42413
- display_position?: SubagentNode.DisplayPosition;
42414
-
42415
- edges?: Array<SubagentNode.Edge>;
42416
-
42417
- finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
42418
-
42419
- finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
42420
-
42421
- global_node_setting?: SubagentNode.GlobalNodeSetting;
42422
-
42423
- interruption_sensitivity?: number | null;
42424
-
42425
- /**
42426
- * Knowledge base configuration for RAG retrieval at the node level. If
42427
- * kb_instruction is set here, it overrides the flow-level kb_instruction.
42428
- */
42429
- kb_config?: SubagentNode.KBConfig;
42430
43852
 
42431
- /**
42432
- * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
42433
- */
42434
- knowledge_base_ids?: Array<string> | null;
42435
-
42436
- model_choice?: SubagentNode.ModelChoice;
42437
-
42438
- /**
42439
- * Optional name for display purposes
42440
- */
42441
- name?: string;
42442
-
42443
- responsiveness?: number | null;
42444
-
42445
- skip_response_edge?: SubagentNode.SkipResponseEdge;
42446
-
42447
- /**
42448
- * The tool ids of the tools defined in main conversation flow or component that
42449
- * can be used in this subagent node.
42450
- */
42451
- tool_ids?: Array<string> | null;
42452
-
42453
- /**
42454
- * The tools owned by this subagent node. This includes other tool types like
42455
- * transfer_call, agent_swap, etc.
42456
- */
42457
- tools?: Array<
42458
- | SubagentNode.EndCallTool
42459
- | SubagentNode.TransferCallTool
42460
- | SubagentNode.CheckAvailabilityCalTool
42461
- | SubagentNode.BookAppointmentCalTool
42462
- | SubagentNode.AgentSwapTool
42463
- | SubagentNode.PressDigitTool
42464
- | SubagentNode.SendSMSTool
42465
- | SubagentNode.CustomTool
42466
- | SubagentNode.CodeTool
42467
- | SubagentNode.ExtractDynamicVariableTool
42468
- | SubagentNode.BridgeTransferTool
42469
- | SubagentNode.CancelTransferTool
42470
- | SubagentNode.McpTool
42471
- > | null;
42472
-
42473
- voice_speed?: number | null;
42474
- }
42475
-
42476
- export namespace SubagentNode {
42477
- export interface Instruction {
42478
- /**
42479
- * The prompt text for the instruction
42480
- */
42481
- text: string;
42482
-
42483
- /**
42484
- * Type of instruction
42485
- */
42486
- type: 'prompt';
42487
- }
42488
-
42489
- export interface AlwaysEdge {
43853
+ export interface ElseEdge {
42490
43854
  /**
42491
43855
  * Unique identifier for the edge
42492
43856
  */
42493
43857
  id: string;
42494
43858
 
42495
- transition_condition:
42496
- | AlwaysEdge.PromptCondition
42497
- | AlwaysEdge.EquationCondition
42498
- | AlwaysEdge.UnionMember2;
43859
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
42499
43860
 
42500
43861
  /**
42501
43862
  * ID of the destination node
@@ -42503,7 +43864,7 @@ export namespace ConversationFlowUpdateParams {
42503
43864
  destination_node_id?: string;
42504
43865
  }
42505
43866
 
42506
- export namespace AlwaysEdge {
43867
+ export namespace ElseEdge {
42507
43868
  export interface PromptCondition {
42508
43869
  /**
42509
43870
  * Prompt condition text
@@ -42521,9 +43882,9 @@ export namespace ConversationFlowUpdateParams {
42521
43882
  type: 'equation';
42522
43883
 
42523
43884
  /**
42524
- * Must be "Always" for always edge
43885
+ * Must be "Else" for else edge
42525
43886
  */
42526
- prompt?: 'Always';
43887
+ prompt?: 'Else';
42527
43888
  }
42528
43889
 
42529
43890
  export namespace EquationCondition {
@@ -42555,81 +43916,12 @@ export namespace ConversationFlowUpdateParams {
42555
43916
 
42556
43917
  export interface UnionMember2 {
42557
43918
  /**
42558
- * Must be "Always" for always edge
42559
- */
42560
- prompt: 'Always';
42561
-
42562
- type: 'prompt';
42563
- }
42564
- }
42565
-
42566
- /**
42567
- * Position for frontend display
42568
- */
42569
- export interface DisplayPosition {
42570
- x?: number;
42571
-
42572
- y?: number;
42573
- }
42574
-
42575
- export interface Edge {
42576
- /**
42577
- * Unique identifier for the edge
42578
- */
42579
- id: string;
42580
-
42581
- transition_condition: Edge.PromptCondition | Edge.EquationCondition;
42582
-
42583
- /**
42584
- * ID of the destination node
42585
- */
42586
- destination_node_id?: string;
42587
- }
42588
-
42589
- export namespace Edge {
42590
- export interface PromptCondition {
42591
- /**
42592
- * Prompt condition text
43919
+ * Must be "Else" for else edge
42593
43920
  */
42594
- prompt: string;
43921
+ prompt: 'Else';
42595
43922
 
42596
43923
  type: 'prompt';
42597
43924
  }
42598
-
42599
- export interface EquationCondition {
42600
- equations: Array<EquationCondition.Equation>;
42601
-
42602
- operator: '||' | '&&';
42603
-
42604
- type: 'equation';
42605
- }
42606
-
42607
- export namespace EquationCondition {
42608
- export interface Equation {
42609
- /**
42610
- * Left side of the equation
42611
- */
42612
- left: string;
42613
-
42614
- operator:
42615
- | '=='
42616
- | '!='
42617
- | '>'
42618
- | '>='
42619
- | '<'
42620
- | '<='
42621
- | 'contains'
42622
- | 'not_contains'
42623
- | 'exists'
42624
- | 'not_exist';
42625
-
42626
- /**
42627
- * Right side of the equation. The right side of the equation not required when
42628
- * "exists" or "not_exist" are selected.
42629
- */
42630
- right?: string;
42631
- }
42632
- }
42633
43925
  }
42634
43926
 
42635
43927
  export interface FinetuneConversationExample {
@@ -46051,6 +47343,8 @@ export namespace ConversationFlowUpdateParams {
46051
47343
 
46052
47344
  edges?: Array<PressDigitNode.Edge>;
46053
47345
 
47346
+ else_edge?: PressDigitNode.ElseEdge;
47347
+
46054
47348
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
46055
47349
 
46056
47350
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
@@ -46145,6 +47439,80 @@ export namespace ConversationFlowUpdateParams {
46145
47439
  }
46146
47440
  }
46147
47441
 
47442
+ export interface ElseEdge {
47443
+ /**
47444
+ * Unique identifier for the edge
47445
+ */
47446
+ id: string;
47447
+
47448
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
47449
+
47450
+ /**
47451
+ * ID of the destination node
47452
+ */
47453
+ destination_node_id?: string;
47454
+ }
47455
+
47456
+ export namespace ElseEdge {
47457
+ export interface PromptCondition {
47458
+ /**
47459
+ * Prompt condition text
47460
+ */
47461
+ prompt: string;
47462
+
47463
+ type: 'prompt';
47464
+ }
47465
+
47466
+ export interface EquationCondition {
47467
+ equations: Array<EquationCondition.Equation>;
47468
+
47469
+ operator: '||' | '&&';
47470
+
47471
+ type: 'equation';
47472
+
47473
+ /**
47474
+ * Must be "Else" for else edge
47475
+ */
47476
+ prompt?: 'Else';
47477
+ }
47478
+
47479
+ export namespace EquationCondition {
47480
+ export interface Equation {
47481
+ /**
47482
+ * Left side of the equation
47483
+ */
47484
+ left: string;
47485
+
47486
+ operator:
47487
+ | '=='
47488
+ | '!='
47489
+ | '>'
47490
+ | '>='
47491
+ | '<'
47492
+ | '<='
47493
+ | 'contains'
47494
+ | 'not_contains'
47495
+ | 'exists'
47496
+ | 'not_exist';
47497
+
47498
+ /**
47499
+ * Right side of the equation. The right side of the equation not required when
47500
+ * "exists" or "not_exist" are selected.
47501
+ */
47502
+ right?: string;
47503
+ }
47504
+ }
47505
+
47506
+ export interface UnionMember2 {
47507
+ /**
47508
+ * Must be "Else" for else edge
47509
+ */
47510
+ prompt: 'Else';
47511
+
47512
+ type: 'prompt';
47513
+ }
47514
+ }
47515
+
46148
47516
  export interface FinetuneTransitionExample {
46149
47517
  /**
46150
47518
  * Unique identifier for the example