retell-sdk 5.35.0 → 5.37.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 (50) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +98 -49
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +98 -49
  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 -15
  12. package/resources/batch-call.d.mts.map +1 -1
  13. package/resources/batch-call.d.ts +31 -15
  14. package/resources/batch-call.d.ts.map +1 -1
  15. package/resources/call.d.mts +141 -49
  16. package/resources/call.d.mts.map +1 -1
  17. package/resources/call.d.ts +141 -49
  18. package/resources/call.d.ts.map +1 -1
  19. package/resources/chat-agent.d.mts +18 -4
  20. package/resources/chat-agent.d.mts.map +1 -1
  21. package/resources/chat-agent.d.ts +18 -4
  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/conversation-flow-component.d.mts +459 -0
  28. package/resources/conversation-flow-component.d.mts.map +1 -1
  29. package/resources/conversation-flow-component.d.ts +459 -0
  30. package/resources/conversation-flow-component.d.ts.map +1 -1
  31. package/resources/conversation-flow.d.mts +1507 -589
  32. package/resources/conversation-flow.d.mts.map +1 -1
  33. package/resources/conversation-flow.d.ts +1507 -589
  34. package/resources/conversation-flow.d.ts.map +1 -1
  35. package/resources/tests.d.mts +4 -2
  36. package/resources/tests.d.mts.map +1 -1
  37. package/resources/tests.d.ts +4 -2
  38. package/resources/tests.d.ts.map +1 -1
  39. package/src/resources/agent.ts +147 -55
  40. package/src/resources/batch-call.ts +47 -17
  41. package/src/resources/call.ts +194 -55
  42. package/src/resources/chat-agent.ts +22 -4
  43. package/src/resources/conversation-flow-component.ts +699 -15
  44. package/src/resources/conversation-flow.ts +1556 -188
  45. package/src/resources/tests.ts +4 -2
  46. package/src/version.ts +1 -1
  47. package/version.d.mts +1 -1
  48. package/version.d.ts +1 -1
  49. package/version.js +1 -1
  50. package/version.mjs +1 -1
@@ -226,6 +226,7 @@ export declare namespace ConversationFlowResponse {
226
226
  */
227
227
  display_position?: ConversationNode.DisplayPosition;
228
228
  edges?: Array<ConversationNode.Edge>;
229
+ else_edge?: ConversationNode.ElseEdge;
229
230
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
230
231
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
231
232
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -365,6 +366,56 @@ export declare namespace ConversationFlowResponse {
365
366
  }
366
367
  }
367
368
  }
369
+ interface ElseEdge {
370
+ /**
371
+ * Unique identifier for the edge
372
+ */
373
+ id: string;
374
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
375
+ /**
376
+ * ID of the destination node
377
+ */
378
+ destination_node_id?: string;
379
+ }
380
+ namespace ElseEdge {
381
+ interface PromptCondition {
382
+ /**
383
+ * Prompt condition text
384
+ */
385
+ prompt: string;
386
+ type: 'prompt';
387
+ }
388
+ interface EquationCondition {
389
+ equations: Array<EquationCondition.Equation>;
390
+ operator: '||' | '&&';
391
+ type: 'equation';
392
+ /**
393
+ * Must be "Else" for else edge
394
+ */
395
+ prompt?: 'Else';
396
+ }
397
+ namespace EquationCondition {
398
+ interface Equation {
399
+ /**
400
+ * Left side of the equation
401
+ */
402
+ left: string;
403
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
404
+ /**
405
+ * Right side of the equation. The right side of the equation not required when
406
+ * "exists" or "not_exist" are selected.
407
+ */
408
+ right?: string;
409
+ }
410
+ }
411
+ interface UnionMember2 {
412
+ /**
413
+ * Must be "Else" for else edge
414
+ */
415
+ prompt: 'Else';
416
+ type: 'prompt';
417
+ }
418
+ }
368
419
  interface FinetuneConversationExample {
369
420
  /**
370
421
  * Unique identifier for the example
@@ -633,6 +684,7 @@ export declare namespace ConversationFlowResponse {
633
684
  */
634
685
  display_position?: SubagentNode.DisplayPosition;
635
686
  edges?: Array<SubagentNode.Edge>;
687
+ else_edge?: SubagentNode.ElseEdge;
636
688
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
637
689
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
638
690
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -772,6 +824,56 @@ export declare namespace ConversationFlowResponse {
772
824
  }
773
825
  }
774
826
  }
827
+ interface ElseEdge {
828
+ /**
829
+ * Unique identifier for the edge
830
+ */
831
+ id: string;
832
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
833
+ /**
834
+ * ID of the destination node
835
+ */
836
+ destination_node_id?: string;
837
+ }
838
+ namespace ElseEdge {
839
+ interface PromptCondition {
840
+ /**
841
+ * Prompt condition text
842
+ */
843
+ prompt: string;
844
+ type: 'prompt';
845
+ }
846
+ interface EquationCondition {
847
+ equations: Array<EquationCondition.Equation>;
848
+ operator: '||' | '&&';
849
+ type: 'equation';
850
+ /**
851
+ * Must be "Else" for else edge
852
+ */
853
+ prompt?: 'Else';
854
+ }
855
+ namespace EquationCondition {
856
+ interface Equation {
857
+ /**
858
+ * Left side of the equation
859
+ */
860
+ left: string;
861
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
862
+ /**
863
+ * Right side of the equation. The right side of the equation not required when
864
+ * "exists" or "not_exist" are selected.
865
+ */
866
+ right?: string;
867
+ }
868
+ }
869
+ interface UnionMember2 {
870
+ /**
871
+ * Must be "Else" for else edge
872
+ */
873
+ prompt: 'Else';
874
+ type: 'prompt';
875
+ }
876
+ }
775
877
  interface FinetuneConversationExample {
776
878
  /**
777
879
  * Unique identifier for the example
@@ -3289,6 +3391,7 @@ export declare namespace ConversationFlowResponse {
3289
3391
  */
3290
3392
  display_position?: PressDigitNode.DisplayPosition;
3291
3393
  edges?: Array<PressDigitNode.Edge>;
3394
+ else_edge?: PressDigitNode.ElseEdge;
3292
3395
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
3293
3396
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
3294
3397
  model_choice?: PressDigitNode.ModelChoice;
@@ -3354,187 +3457,237 @@ export declare namespace ConversationFlowResponse {
3354
3457
  }
3355
3458
  }
3356
3459
  }
3357
- interface FinetuneTransitionExample {
3358
- /**
3359
- * Unique identifier for the example
3360
- */
3361
- id: string;
3362
- /**
3363
- * The example transcript to finetune how the node should transition.
3364
- */
3365
- transcript: Array<FinetuneTransitionExample.UnionMember0 | FinetuneTransitionExample.UnionMember1 | FinetuneTransitionExample.UnionMember2>;
3366
- /**
3367
- * Optional destination node ID
3368
- */
3369
- destination_node_id?: string;
3370
- }
3371
- namespace FinetuneTransitionExample {
3372
- interface UnionMember0 {
3373
- content: string;
3374
- role: 'agent' | 'user';
3375
- }
3376
- interface UnionMember1 {
3377
- arguments: string;
3378
- name: string;
3379
- role: 'tool_call_invocation';
3380
- tool_call_id: string;
3381
- }
3382
- interface UnionMember2 {
3383
- content: string;
3384
- role: 'tool_call_result';
3385
- tool_call_id: string;
3386
- }
3387
- }
3388
- interface GlobalNodeSetting {
3389
- /**
3390
- * Condition for global node activation, cannot be empty
3391
- */
3392
- condition: string;
3393
- /**
3394
- * The same global node won't be triggered again within the next N node
3395
- * transitions.
3396
- */
3397
- cool_down?: number;
3398
- /**
3399
- * The conditions for global node go back. There would be no destination_node_id
3400
- * for these edges.
3401
- */
3402
- go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
3403
- /**
3404
- * Don't transition to this node
3405
- */
3406
- negative_finetune_examples?: Array<GlobalNodeSetting.NegativeFinetuneExample>;
3407
- /**
3408
- * Transition to this node
3409
- */
3410
- positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
3411
- }
3412
- namespace GlobalNodeSetting {
3413
- interface GoBackCondition {
3414
- /**
3415
- * Unique identifier for the edge
3416
- */
3417
- id: string;
3418
- transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
3419
- /**
3420
- * ID of the destination node
3421
- */
3422
- destination_node_id?: string;
3423
- }
3424
- namespace GoBackCondition {
3425
- interface PromptCondition {
3426
- /**
3427
- * Prompt condition text
3428
- */
3429
- prompt: string;
3430
- type: 'prompt';
3431
- }
3432
- interface EquationCondition {
3433
- equations: Array<EquationCondition.Equation>;
3434
- operator: '||' | '&&';
3435
- type: 'equation';
3436
- }
3437
- namespace EquationCondition {
3438
- interface Equation {
3439
- /**
3440
- * Left side of the equation
3441
- */
3442
- left: string;
3443
- operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
3444
- /**
3445
- * Right side of the equation. The right side of the equation not required when
3446
- * "exists" or "not_exist" are selected.
3447
- */
3448
- right?: string;
3449
- }
3450
- }
3451
- }
3452
- interface NegativeFinetuneExample {
3453
- /**
3454
- * Find tune the transition condition to this global node
3455
- */
3456
- transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
3457
- }
3458
- namespace NegativeFinetuneExample {
3459
- interface UnionMember0 {
3460
- content: string;
3461
- role: 'agent' | 'user';
3462
- }
3463
- interface UnionMember1 {
3464
- arguments: string;
3465
- name: string;
3466
- role: 'tool_call_invocation';
3467
- tool_call_id: string;
3468
- }
3469
- interface UnionMember2 {
3470
- content: string;
3471
- role: 'tool_call_result';
3472
- tool_call_id: string;
3473
- }
3474
- }
3475
- interface PositiveFinetuneExample {
3476
- /**
3477
- * Find tune the transition condition to this global node
3478
- */
3479
- transcript: Array<PositiveFinetuneExample.UnionMember0 | PositiveFinetuneExample.UnionMember1 | PositiveFinetuneExample.UnionMember2>;
3480
- }
3481
- namespace PositiveFinetuneExample {
3482
- interface UnionMember0 {
3483
- content: string;
3484
- role: 'agent' | 'user';
3485
- }
3486
- interface UnionMember1 {
3487
- arguments: string;
3488
- name: string;
3489
- role: 'tool_call_invocation';
3490
- tool_call_id: string;
3491
- }
3492
- interface UnionMember2 {
3493
- content: string;
3494
- role: 'tool_call_result';
3495
- tool_call_id: string;
3496
- }
3497
- }
3498
- }
3499
- interface ModelChoice {
3500
- /**
3501
- * The LLM model to use
3502
- */
3503
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3504
- /**
3505
- * Type of model choice
3506
- */
3507
- type: 'cascading';
3508
- /**
3509
- * Whether to use high priority pool with more dedicated resource, default false
3510
- */
3511
- high_priority?: boolean;
3512
- }
3513
- }
3514
- interface BranchNode {
3515
- /**
3516
- * Unique identifier for the node
3517
- */
3518
- id: string;
3519
- else_edge: BranchNode.ElseEdge;
3520
- /**
3521
- * Type of the node
3522
- */
3523
- type: 'branch';
3524
- /**
3525
- * Position for frontend display
3526
- */
3527
- display_position?: BranchNode.DisplayPosition;
3528
- edges?: Array<BranchNode.Edge>;
3529
- finetune_transition_examples?: Array<BranchNode.FinetuneTransitionExample>;
3530
- global_node_setting?: BranchNode.GlobalNodeSetting;
3531
- model_choice?: BranchNode.ModelChoice;
3532
- /**
3533
- * Optional name for display purposes
3534
- */
3535
- name?: string;
3536
- }
3537
- namespace BranchNode {
3460
+ interface ElseEdge {
3461
+ /**
3462
+ * Unique identifier for the edge
3463
+ */
3464
+ id: string;
3465
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
3466
+ /**
3467
+ * ID of the destination node
3468
+ */
3469
+ destination_node_id?: string;
3470
+ }
3471
+ namespace ElseEdge {
3472
+ interface PromptCondition {
3473
+ /**
3474
+ * Prompt condition text
3475
+ */
3476
+ prompt: string;
3477
+ type: 'prompt';
3478
+ }
3479
+ interface EquationCondition {
3480
+ equations: Array<EquationCondition.Equation>;
3481
+ operator: '||' | '&&';
3482
+ type: 'equation';
3483
+ /**
3484
+ * Must be "Else" for else edge
3485
+ */
3486
+ prompt?: 'Else';
3487
+ }
3488
+ namespace EquationCondition {
3489
+ interface Equation {
3490
+ /**
3491
+ * Left side of the equation
3492
+ */
3493
+ left: string;
3494
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
3495
+ /**
3496
+ * Right side of the equation. The right side of the equation not required when
3497
+ * "exists" or "not_exist" are selected.
3498
+ */
3499
+ right?: string;
3500
+ }
3501
+ }
3502
+ interface UnionMember2 {
3503
+ /**
3504
+ * Must be "Else" for else edge
3505
+ */
3506
+ prompt: 'Else';
3507
+ type: 'prompt';
3508
+ }
3509
+ }
3510
+ interface FinetuneTransitionExample {
3511
+ /**
3512
+ * Unique identifier for the example
3513
+ */
3514
+ id: string;
3515
+ /**
3516
+ * The example transcript to finetune how the node should transition.
3517
+ */
3518
+ transcript: Array<FinetuneTransitionExample.UnionMember0 | FinetuneTransitionExample.UnionMember1 | FinetuneTransitionExample.UnionMember2>;
3519
+ /**
3520
+ * Optional destination node ID
3521
+ */
3522
+ destination_node_id?: string;
3523
+ }
3524
+ namespace FinetuneTransitionExample {
3525
+ interface UnionMember0 {
3526
+ content: string;
3527
+ role: 'agent' | 'user';
3528
+ }
3529
+ interface UnionMember1 {
3530
+ arguments: string;
3531
+ name: string;
3532
+ role: 'tool_call_invocation';
3533
+ tool_call_id: string;
3534
+ }
3535
+ interface UnionMember2 {
3536
+ content: string;
3537
+ role: 'tool_call_result';
3538
+ tool_call_id: string;
3539
+ }
3540
+ }
3541
+ interface GlobalNodeSetting {
3542
+ /**
3543
+ * Condition for global node activation, cannot be empty
3544
+ */
3545
+ condition: string;
3546
+ /**
3547
+ * The same global node won't be triggered again within the next N node
3548
+ * transitions.
3549
+ */
3550
+ cool_down?: number;
3551
+ /**
3552
+ * The conditions for global node go back. There would be no destination_node_id
3553
+ * for these edges.
3554
+ */
3555
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
3556
+ /**
3557
+ * Don't transition to this node
3558
+ */
3559
+ negative_finetune_examples?: Array<GlobalNodeSetting.NegativeFinetuneExample>;
3560
+ /**
3561
+ * Transition to this node
3562
+ */
3563
+ positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
3564
+ }
3565
+ namespace GlobalNodeSetting {
3566
+ interface GoBackCondition {
3567
+ /**
3568
+ * Unique identifier for the edge
3569
+ */
3570
+ id: string;
3571
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
3572
+ /**
3573
+ * ID of the destination node
3574
+ */
3575
+ destination_node_id?: string;
3576
+ }
3577
+ namespace GoBackCondition {
3578
+ interface PromptCondition {
3579
+ /**
3580
+ * Prompt condition text
3581
+ */
3582
+ prompt: string;
3583
+ type: 'prompt';
3584
+ }
3585
+ interface EquationCondition {
3586
+ equations: Array<EquationCondition.Equation>;
3587
+ operator: '||' | '&&';
3588
+ type: 'equation';
3589
+ }
3590
+ namespace EquationCondition {
3591
+ interface Equation {
3592
+ /**
3593
+ * Left side of the equation
3594
+ */
3595
+ left: string;
3596
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
3597
+ /**
3598
+ * Right side of the equation. The right side of the equation not required when
3599
+ * "exists" or "not_exist" are selected.
3600
+ */
3601
+ right?: string;
3602
+ }
3603
+ }
3604
+ }
3605
+ interface NegativeFinetuneExample {
3606
+ /**
3607
+ * Find tune the transition condition to this global node
3608
+ */
3609
+ transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
3610
+ }
3611
+ namespace NegativeFinetuneExample {
3612
+ interface UnionMember0 {
3613
+ content: string;
3614
+ role: 'agent' | 'user';
3615
+ }
3616
+ interface UnionMember1 {
3617
+ arguments: string;
3618
+ name: string;
3619
+ role: 'tool_call_invocation';
3620
+ tool_call_id: string;
3621
+ }
3622
+ interface UnionMember2 {
3623
+ content: string;
3624
+ role: 'tool_call_result';
3625
+ tool_call_id: string;
3626
+ }
3627
+ }
3628
+ interface PositiveFinetuneExample {
3629
+ /**
3630
+ * Find tune the transition condition to this global node
3631
+ */
3632
+ transcript: Array<PositiveFinetuneExample.UnionMember0 | PositiveFinetuneExample.UnionMember1 | PositiveFinetuneExample.UnionMember2>;
3633
+ }
3634
+ namespace PositiveFinetuneExample {
3635
+ interface UnionMember0 {
3636
+ content: string;
3637
+ role: 'agent' | 'user';
3638
+ }
3639
+ interface UnionMember1 {
3640
+ arguments: string;
3641
+ name: string;
3642
+ role: 'tool_call_invocation';
3643
+ tool_call_id: string;
3644
+ }
3645
+ interface UnionMember2 {
3646
+ content: string;
3647
+ role: 'tool_call_result';
3648
+ tool_call_id: string;
3649
+ }
3650
+ }
3651
+ }
3652
+ interface ModelChoice {
3653
+ /**
3654
+ * The LLM model to use
3655
+ */
3656
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3657
+ /**
3658
+ * Type of model choice
3659
+ */
3660
+ type: 'cascading';
3661
+ /**
3662
+ * Whether to use high priority pool with more dedicated resource, default false
3663
+ */
3664
+ high_priority?: boolean;
3665
+ }
3666
+ }
3667
+ interface BranchNode {
3668
+ /**
3669
+ * Unique identifier for the node
3670
+ */
3671
+ id: string;
3672
+ else_edge: BranchNode.ElseEdge;
3673
+ /**
3674
+ * Type of the node
3675
+ */
3676
+ type: 'branch';
3677
+ /**
3678
+ * Position for frontend display
3679
+ */
3680
+ display_position?: BranchNode.DisplayPosition;
3681
+ edges?: Array<BranchNode.Edge>;
3682
+ finetune_transition_examples?: Array<BranchNode.FinetuneTransitionExample>;
3683
+ global_node_setting?: BranchNode.GlobalNodeSetting;
3684
+ model_choice?: BranchNode.ModelChoice;
3685
+ /**
3686
+ * Optional name for display purposes
3687
+ */
3688
+ name?: string;
3689
+ }
3690
+ namespace BranchNode {
3538
3691
  interface ElseEdge {
3539
3692
  /**
3540
3693
  * Unique identifier for the edge
@@ -6047,6 +6200,7 @@ export declare namespace ConversationFlowResponse {
6047
6200
  */
6048
6201
  display_position?: ConversationNode.DisplayPosition;
6049
6202
  edges?: Array<ConversationNode.Edge>;
6203
+ else_edge?: ConversationNode.ElseEdge;
6050
6204
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
6051
6205
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
6052
6206
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -6186,6 +6340,56 @@ export declare namespace ConversationFlowResponse {
6186
6340
  }
6187
6341
  }
6188
6342
  }
6343
+ interface ElseEdge {
6344
+ /**
6345
+ * Unique identifier for the edge
6346
+ */
6347
+ id: string;
6348
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
6349
+ /**
6350
+ * ID of the destination node
6351
+ */
6352
+ destination_node_id?: string;
6353
+ }
6354
+ namespace ElseEdge {
6355
+ interface PromptCondition {
6356
+ /**
6357
+ * Prompt condition text
6358
+ */
6359
+ prompt: string;
6360
+ type: 'prompt';
6361
+ }
6362
+ interface EquationCondition {
6363
+ equations: Array<EquationCondition.Equation>;
6364
+ operator: '||' | '&&';
6365
+ type: 'equation';
6366
+ /**
6367
+ * Must be "Else" for else edge
6368
+ */
6369
+ prompt?: 'Else';
6370
+ }
6371
+ namespace EquationCondition {
6372
+ interface Equation {
6373
+ /**
6374
+ * Left side of the equation
6375
+ */
6376
+ left: string;
6377
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
6378
+ /**
6379
+ * Right side of the equation. The right side of the equation not required when
6380
+ * "exists" or "not_exist" are selected.
6381
+ */
6382
+ right?: string;
6383
+ }
6384
+ }
6385
+ interface UnionMember2 {
6386
+ /**
6387
+ * Must be "Else" for else edge
6388
+ */
6389
+ prompt: 'Else';
6390
+ type: 'prompt';
6391
+ }
6392
+ }
6189
6393
  interface FinetuneConversationExample {
6190
6394
  /**
6191
6395
  * Unique identifier for the example
@@ -6454,6 +6658,7 @@ export declare namespace ConversationFlowResponse {
6454
6658
  */
6455
6659
  display_position?: SubagentNode.DisplayPosition;
6456
6660
  edges?: Array<SubagentNode.Edge>;
6661
+ else_edge?: SubagentNode.ElseEdge;
6457
6662
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
6458
6663
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
6459
6664
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -6593,6 +6798,56 @@ export declare namespace ConversationFlowResponse {
6593
6798
  }
6594
6799
  }
6595
6800
  }
6801
+ interface ElseEdge {
6802
+ /**
6803
+ * Unique identifier for the edge
6804
+ */
6805
+ id: string;
6806
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
6807
+ /**
6808
+ * ID of the destination node
6809
+ */
6810
+ destination_node_id?: string;
6811
+ }
6812
+ namespace ElseEdge {
6813
+ interface PromptCondition {
6814
+ /**
6815
+ * Prompt condition text
6816
+ */
6817
+ prompt: string;
6818
+ type: 'prompt';
6819
+ }
6820
+ interface EquationCondition {
6821
+ equations: Array<EquationCondition.Equation>;
6822
+ operator: '||' | '&&';
6823
+ type: 'equation';
6824
+ /**
6825
+ * Must be "Else" for else edge
6826
+ */
6827
+ prompt?: 'Else';
6828
+ }
6829
+ namespace EquationCondition {
6830
+ interface Equation {
6831
+ /**
6832
+ * Left side of the equation
6833
+ */
6834
+ left: string;
6835
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
6836
+ /**
6837
+ * Right side of the equation. The right side of the equation not required when
6838
+ * "exists" or "not_exist" are selected.
6839
+ */
6840
+ right?: string;
6841
+ }
6842
+ }
6843
+ interface UnionMember2 {
6844
+ /**
6845
+ * Must be "Else" for else edge
6846
+ */
6847
+ prompt: 'Else';
6848
+ type: 'prompt';
6849
+ }
6850
+ }
6596
6851
  interface FinetuneConversationExample {
6597
6852
  /**
6598
6853
  * Unique identifier for the example
@@ -9110,6 +9365,7 @@ export declare namespace ConversationFlowResponse {
9110
9365
  */
9111
9366
  display_position?: PressDigitNode.DisplayPosition;
9112
9367
  edges?: Array<PressDigitNode.Edge>;
9368
+ else_edge?: PressDigitNode.ElseEdge;
9113
9369
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
9114
9370
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
9115
9371
  model_choice?: PressDigitNode.ModelChoice;
@@ -9175,187 +9431,6 @@ export declare namespace ConversationFlowResponse {
9175
9431
  }
9176
9432
  }
9177
9433
  }
9178
- interface FinetuneTransitionExample {
9179
- /**
9180
- * Unique identifier for the example
9181
- */
9182
- id: string;
9183
- /**
9184
- * The example transcript to finetune how the node should transition.
9185
- */
9186
- transcript: Array<FinetuneTransitionExample.UnionMember0 | FinetuneTransitionExample.UnionMember1 | FinetuneTransitionExample.UnionMember2>;
9187
- /**
9188
- * Optional destination node ID
9189
- */
9190
- destination_node_id?: string;
9191
- }
9192
- namespace FinetuneTransitionExample {
9193
- interface UnionMember0 {
9194
- content: string;
9195
- role: 'agent' | 'user';
9196
- }
9197
- interface UnionMember1 {
9198
- arguments: string;
9199
- name: string;
9200
- role: 'tool_call_invocation';
9201
- tool_call_id: string;
9202
- }
9203
- interface UnionMember2 {
9204
- content: string;
9205
- role: 'tool_call_result';
9206
- tool_call_id: string;
9207
- }
9208
- }
9209
- interface GlobalNodeSetting {
9210
- /**
9211
- * Condition for global node activation, cannot be empty
9212
- */
9213
- condition: string;
9214
- /**
9215
- * The same global node won't be triggered again within the next N node
9216
- * transitions.
9217
- */
9218
- cool_down?: number;
9219
- /**
9220
- * The conditions for global node go back. There would be no destination_node_id
9221
- * for these edges.
9222
- */
9223
- go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
9224
- /**
9225
- * Don't transition to this node
9226
- */
9227
- negative_finetune_examples?: Array<GlobalNodeSetting.NegativeFinetuneExample>;
9228
- /**
9229
- * Transition to this node
9230
- */
9231
- positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
9232
- }
9233
- namespace GlobalNodeSetting {
9234
- interface GoBackCondition {
9235
- /**
9236
- * Unique identifier for the edge
9237
- */
9238
- id: string;
9239
- transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
9240
- /**
9241
- * ID of the destination node
9242
- */
9243
- destination_node_id?: string;
9244
- }
9245
- namespace GoBackCondition {
9246
- interface PromptCondition {
9247
- /**
9248
- * Prompt condition text
9249
- */
9250
- prompt: string;
9251
- type: 'prompt';
9252
- }
9253
- interface EquationCondition {
9254
- equations: Array<EquationCondition.Equation>;
9255
- operator: '||' | '&&';
9256
- type: 'equation';
9257
- }
9258
- namespace EquationCondition {
9259
- interface Equation {
9260
- /**
9261
- * Left side of the equation
9262
- */
9263
- left: string;
9264
- operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
9265
- /**
9266
- * Right side of the equation. The right side of the equation not required when
9267
- * "exists" or "not_exist" are selected.
9268
- */
9269
- right?: string;
9270
- }
9271
- }
9272
- }
9273
- interface NegativeFinetuneExample {
9274
- /**
9275
- * Find tune the transition condition to this global node
9276
- */
9277
- transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
9278
- }
9279
- namespace NegativeFinetuneExample {
9280
- interface UnionMember0 {
9281
- content: string;
9282
- role: 'agent' | 'user';
9283
- }
9284
- interface UnionMember1 {
9285
- arguments: string;
9286
- name: string;
9287
- role: 'tool_call_invocation';
9288
- tool_call_id: string;
9289
- }
9290
- interface UnionMember2 {
9291
- content: string;
9292
- role: 'tool_call_result';
9293
- tool_call_id: string;
9294
- }
9295
- }
9296
- interface PositiveFinetuneExample {
9297
- /**
9298
- * Find tune the transition condition to this global node
9299
- */
9300
- transcript: Array<PositiveFinetuneExample.UnionMember0 | PositiveFinetuneExample.UnionMember1 | PositiveFinetuneExample.UnionMember2>;
9301
- }
9302
- namespace PositiveFinetuneExample {
9303
- interface UnionMember0 {
9304
- content: string;
9305
- role: 'agent' | 'user';
9306
- }
9307
- interface UnionMember1 {
9308
- arguments: string;
9309
- name: string;
9310
- role: 'tool_call_invocation';
9311
- tool_call_id: string;
9312
- }
9313
- interface UnionMember2 {
9314
- content: string;
9315
- role: 'tool_call_result';
9316
- tool_call_id: string;
9317
- }
9318
- }
9319
- }
9320
- interface ModelChoice {
9321
- /**
9322
- * The LLM model to use
9323
- */
9324
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9325
- /**
9326
- * Type of model choice
9327
- */
9328
- type: 'cascading';
9329
- /**
9330
- * Whether to use high priority pool with more dedicated resource, default false
9331
- */
9332
- high_priority?: boolean;
9333
- }
9334
- }
9335
- interface BranchNode {
9336
- /**
9337
- * Unique identifier for the node
9338
- */
9339
- id: string;
9340
- else_edge: BranchNode.ElseEdge;
9341
- /**
9342
- * Type of the node
9343
- */
9344
- type: 'branch';
9345
- /**
9346
- * Position for frontend display
9347
- */
9348
- display_position?: BranchNode.DisplayPosition;
9349
- edges?: Array<BranchNode.Edge>;
9350
- finetune_transition_examples?: Array<BranchNode.FinetuneTransitionExample>;
9351
- global_node_setting?: BranchNode.GlobalNodeSetting;
9352
- model_choice?: BranchNode.ModelChoice;
9353
- /**
9354
- * Optional name for display purposes
9355
- */
9356
- name?: string;
9357
- }
9358
- namespace BranchNode {
9359
9434
  interface ElseEdge {
9360
9435
  /**
9361
9436
  * Unique identifier for the edge
@@ -9406,52 +9481,283 @@ export declare namespace ConversationFlowResponse {
9406
9481
  type: 'prompt';
9407
9482
  }
9408
9483
  }
9409
- /**
9410
- * Position for frontend display
9411
- */
9412
- interface DisplayPosition {
9413
- x?: number;
9414
- y?: number;
9415
- }
9416
- interface Edge {
9417
- /**
9418
- * Unique identifier for the edge
9419
- */
9420
- id: string;
9421
- transition_condition: Edge.PromptCondition | Edge.EquationCondition;
9422
- /**
9423
- * ID of the destination node
9424
- */
9425
- destination_node_id?: string;
9426
- }
9427
- namespace Edge {
9428
- interface PromptCondition {
9429
- /**
9430
- * Prompt condition text
9431
- */
9432
- prompt: string;
9433
- type: 'prompt';
9434
- }
9435
- interface EquationCondition {
9436
- equations: Array<EquationCondition.Equation>;
9437
- operator: '||' | '&&';
9438
- type: 'equation';
9439
- }
9440
- namespace EquationCondition {
9441
- interface Equation {
9442
- /**
9443
- * Left side of the equation
9444
- */
9445
- left: string;
9446
- operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
9447
- /**
9448
- * Right side of the equation. The right side of the equation not required when
9449
- * "exists" or "not_exist" are selected.
9450
- */
9451
- right?: string;
9452
- }
9453
- }
9454
- }
9484
+ interface FinetuneTransitionExample {
9485
+ /**
9486
+ * Unique identifier for the example
9487
+ */
9488
+ id: string;
9489
+ /**
9490
+ * The example transcript to finetune how the node should transition.
9491
+ */
9492
+ transcript: Array<FinetuneTransitionExample.UnionMember0 | FinetuneTransitionExample.UnionMember1 | FinetuneTransitionExample.UnionMember2>;
9493
+ /**
9494
+ * Optional destination node ID
9495
+ */
9496
+ destination_node_id?: string;
9497
+ }
9498
+ namespace FinetuneTransitionExample {
9499
+ interface UnionMember0 {
9500
+ content: string;
9501
+ role: 'agent' | 'user';
9502
+ }
9503
+ interface UnionMember1 {
9504
+ arguments: string;
9505
+ name: string;
9506
+ role: 'tool_call_invocation';
9507
+ tool_call_id: string;
9508
+ }
9509
+ interface UnionMember2 {
9510
+ content: string;
9511
+ role: 'tool_call_result';
9512
+ tool_call_id: string;
9513
+ }
9514
+ }
9515
+ interface GlobalNodeSetting {
9516
+ /**
9517
+ * Condition for global node activation, cannot be empty
9518
+ */
9519
+ condition: string;
9520
+ /**
9521
+ * The same global node won't be triggered again within the next N node
9522
+ * transitions.
9523
+ */
9524
+ cool_down?: number;
9525
+ /**
9526
+ * The conditions for global node go back. There would be no destination_node_id
9527
+ * for these edges.
9528
+ */
9529
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
9530
+ /**
9531
+ * Don't transition to this node
9532
+ */
9533
+ negative_finetune_examples?: Array<GlobalNodeSetting.NegativeFinetuneExample>;
9534
+ /**
9535
+ * Transition to this node
9536
+ */
9537
+ positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
9538
+ }
9539
+ namespace GlobalNodeSetting {
9540
+ interface GoBackCondition {
9541
+ /**
9542
+ * Unique identifier for the edge
9543
+ */
9544
+ id: string;
9545
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
9546
+ /**
9547
+ * ID of the destination node
9548
+ */
9549
+ destination_node_id?: string;
9550
+ }
9551
+ namespace GoBackCondition {
9552
+ interface PromptCondition {
9553
+ /**
9554
+ * Prompt condition text
9555
+ */
9556
+ prompt: string;
9557
+ type: 'prompt';
9558
+ }
9559
+ interface EquationCondition {
9560
+ equations: Array<EquationCondition.Equation>;
9561
+ operator: '||' | '&&';
9562
+ type: 'equation';
9563
+ }
9564
+ namespace EquationCondition {
9565
+ interface Equation {
9566
+ /**
9567
+ * Left side of the equation
9568
+ */
9569
+ left: string;
9570
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
9571
+ /**
9572
+ * Right side of the equation. The right side of the equation not required when
9573
+ * "exists" or "not_exist" are selected.
9574
+ */
9575
+ right?: string;
9576
+ }
9577
+ }
9578
+ }
9579
+ interface NegativeFinetuneExample {
9580
+ /**
9581
+ * Find tune the transition condition to this global node
9582
+ */
9583
+ transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
9584
+ }
9585
+ namespace NegativeFinetuneExample {
9586
+ interface UnionMember0 {
9587
+ content: string;
9588
+ role: 'agent' | 'user';
9589
+ }
9590
+ interface UnionMember1 {
9591
+ arguments: string;
9592
+ name: string;
9593
+ role: 'tool_call_invocation';
9594
+ tool_call_id: string;
9595
+ }
9596
+ interface UnionMember2 {
9597
+ content: string;
9598
+ role: 'tool_call_result';
9599
+ tool_call_id: string;
9600
+ }
9601
+ }
9602
+ interface PositiveFinetuneExample {
9603
+ /**
9604
+ * Find tune the transition condition to this global node
9605
+ */
9606
+ transcript: Array<PositiveFinetuneExample.UnionMember0 | PositiveFinetuneExample.UnionMember1 | PositiveFinetuneExample.UnionMember2>;
9607
+ }
9608
+ namespace PositiveFinetuneExample {
9609
+ interface UnionMember0 {
9610
+ content: string;
9611
+ role: 'agent' | 'user';
9612
+ }
9613
+ interface UnionMember1 {
9614
+ arguments: string;
9615
+ name: string;
9616
+ role: 'tool_call_invocation';
9617
+ tool_call_id: string;
9618
+ }
9619
+ interface UnionMember2 {
9620
+ content: string;
9621
+ role: 'tool_call_result';
9622
+ tool_call_id: string;
9623
+ }
9624
+ }
9625
+ }
9626
+ interface ModelChoice {
9627
+ /**
9628
+ * The LLM model to use
9629
+ */
9630
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9631
+ /**
9632
+ * Type of model choice
9633
+ */
9634
+ type: 'cascading';
9635
+ /**
9636
+ * Whether to use high priority pool with more dedicated resource, default false
9637
+ */
9638
+ high_priority?: boolean;
9639
+ }
9640
+ }
9641
+ interface BranchNode {
9642
+ /**
9643
+ * Unique identifier for the node
9644
+ */
9645
+ id: string;
9646
+ else_edge: BranchNode.ElseEdge;
9647
+ /**
9648
+ * Type of the node
9649
+ */
9650
+ type: 'branch';
9651
+ /**
9652
+ * Position for frontend display
9653
+ */
9654
+ display_position?: BranchNode.DisplayPosition;
9655
+ edges?: Array<BranchNode.Edge>;
9656
+ finetune_transition_examples?: Array<BranchNode.FinetuneTransitionExample>;
9657
+ global_node_setting?: BranchNode.GlobalNodeSetting;
9658
+ model_choice?: BranchNode.ModelChoice;
9659
+ /**
9660
+ * Optional name for display purposes
9661
+ */
9662
+ name?: string;
9663
+ }
9664
+ namespace BranchNode {
9665
+ interface ElseEdge {
9666
+ /**
9667
+ * Unique identifier for the edge
9668
+ */
9669
+ id: string;
9670
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
9671
+ /**
9672
+ * ID of the destination node
9673
+ */
9674
+ destination_node_id?: string;
9675
+ }
9676
+ namespace ElseEdge {
9677
+ interface PromptCondition {
9678
+ /**
9679
+ * Prompt condition text
9680
+ */
9681
+ prompt: string;
9682
+ type: 'prompt';
9683
+ }
9684
+ interface EquationCondition {
9685
+ equations: Array<EquationCondition.Equation>;
9686
+ operator: '||' | '&&';
9687
+ type: 'equation';
9688
+ /**
9689
+ * Must be "Else" for else edge
9690
+ */
9691
+ prompt?: 'Else';
9692
+ }
9693
+ namespace EquationCondition {
9694
+ interface Equation {
9695
+ /**
9696
+ * Left side of the equation
9697
+ */
9698
+ left: string;
9699
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
9700
+ /**
9701
+ * Right side of the equation. The right side of the equation not required when
9702
+ * "exists" or "not_exist" are selected.
9703
+ */
9704
+ right?: string;
9705
+ }
9706
+ }
9707
+ interface UnionMember2 {
9708
+ /**
9709
+ * Must be "Else" for else edge
9710
+ */
9711
+ prompt: 'Else';
9712
+ type: 'prompt';
9713
+ }
9714
+ }
9715
+ /**
9716
+ * Position for frontend display
9717
+ */
9718
+ interface DisplayPosition {
9719
+ x?: number;
9720
+ y?: number;
9721
+ }
9722
+ interface Edge {
9723
+ /**
9724
+ * Unique identifier for the edge
9725
+ */
9726
+ id: string;
9727
+ transition_condition: Edge.PromptCondition | Edge.EquationCondition;
9728
+ /**
9729
+ * ID of the destination node
9730
+ */
9731
+ destination_node_id?: string;
9732
+ }
9733
+ namespace Edge {
9734
+ interface PromptCondition {
9735
+ /**
9736
+ * Prompt condition text
9737
+ */
9738
+ prompt: string;
9739
+ type: 'prompt';
9740
+ }
9741
+ interface EquationCondition {
9742
+ equations: Array<EquationCondition.Equation>;
9743
+ operator: '||' | '&&';
9744
+ type: 'equation';
9745
+ }
9746
+ namespace EquationCondition {
9747
+ interface Equation {
9748
+ /**
9749
+ * Left side of the equation
9750
+ */
9751
+ left: string;
9752
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
9753
+ /**
9754
+ * Right side of the equation. The right side of the equation not required when
9755
+ * "exists" or "not_exist" are selected.
9756
+ */
9757
+ right?: string;
9758
+ }
9759
+ }
9760
+ }
9455
9761
  interface FinetuneTransitionExample {
9456
9762
  /**
9457
9763
  * Unique identifier for the example
@@ -11895,6 +12201,7 @@ export declare namespace ConversationFlowCreateParams {
11895
12201
  */
11896
12202
  display_position?: ConversationNode.DisplayPosition;
11897
12203
  edges?: Array<ConversationNode.Edge>;
12204
+ else_edge?: ConversationNode.ElseEdge;
11898
12205
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
11899
12206
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
11900
12207
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -12034,6 +12341,56 @@ export declare namespace ConversationFlowCreateParams {
12034
12341
  }
12035
12342
  }
12036
12343
  }
12344
+ interface ElseEdge {
12345
+ /**
12346
+ * Unique identifier for the edge
12347
+ */
12348
+ id: string;
12349
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
12350
+ /**
12351
+ * ID of the destination node
12352
+ */
12353
+ destination_node_id?: string;
12354
+ }
12355
+ namespace ElseEdge {
12356
+ interface PromptCondition {
12357
+ /**
12358
+ * Prompt condition text
12359
+ */
12360
+ prompt: string;
12361
+ type: 'prompt';
12362
+ }
12363
+ interface EquationCondition {
12364
+ equations: Array<EquationCondition.Equation>;
12365
+ operator: '||' | '&&';
12366
+ type: 'equation';
12367
+ /**
12368
+ * Must be "Else" for else edge
12369
+ */
12370
+ prompt?: 'Else';
12371
+ }
12372
+ namespace EquationCondition {
12373
+ interface Equation {
12374
+ /**
12375
+ * Left side of the equation
12376
+ */
12377
+ left: string;
12378
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
12379
+ /**
12380
+ * Right side of the equation. The right side of the equation not required when
12381
+ * "exists" or "not_exist" are selected.
12382
+ */
12383
+ right?: string;
12384
+ }
12385
+ }
12386
+ interface UnionMember2 {
12387
+ /**
12388
+ * Must be "Else" for else edge
12389
+ */
12390
+ prompt: 'Else';
12391
+ type: 'prompt';
12392
+ }
12393
+ }
12037
12394
  interface FinetuneConversationExample {
12038
12395
  /**
12039
12396
  * Unique identifier for the example
@@ -12302,6 +12659,7 @@ export declare namespace ConversationFlowCreateParams {
12302
12659
  */
12303
12660
  display_position?: SubagentNode.DisplayPosition;
12304
12661
  edges?: Array<SubagentNode.Edge>;
12662
+ else_edge?: SubagentNode.ElseEdge;
12305
12663
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
12306
12664
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
12307
12665
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -12441,6 +12799,56 @@ export declare namespace ConversationFlowCreateParams {
12441
12799
  }
12442
12800
  }
12443
12801
  }
12802
+ interface ElseEdge {
12803
+ /**
12804
+ * Unique identifier for the edge
12805
+ */
12806
+ id: string;
12807
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
12808
+ /**
12809
+ * ID of the destination node
12810
+ */
12811
+ destination_node_id?: string;
12812
+ }
12813
+ namespace ElseEdge {
12814
+ interface PromptCondition {
12815
+ /**
12816
+ * Prompt condition text
12817
+ */
12818
+ prompt: string;
12819
+ type: 'prompt';
12820
+ }
12821
+ interface EquationCondition {
12822
+ equations: Array<EquationCondition.Equation>;
12823
+ operator: '||' | '&&';
12824
+ type: 'equation';
12825
+ /**
12826
+ * Must be "Else" for else edge
12827
+ */
12828
+ prompt?: 'Else';
12829
+ }
12830
+ namespace EquationCondition {
12831
+ interface Equation {
12832
+ /**
12833
+ * Left side of the equation
12834
+ */
12835
+ left: string;
12836
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
12837
+ /**
12838
+ * Right side of the equation. The right side of the equation not required when
12839
+ * "exists" or "not_exist" are selected.
12840
+ */
12841
+ right?: string;
12842
+ }
12843
+ }
12844
+ interface UnionMember2 {
12845
+ /**
12846
+ * Must be "Else" for else edge
12847
+ */
12848
+ prompt: 'Else';
12849
+ type: 'prompt';
12850
+ }
12851
+ }
12444
12852
  interface FinetuneConversationExample {
12445
12853
  /**
12446
12854
  * Unique identifier for the example
@@ -14958,6 +15366,7 @@ export declare namespace ConversationFlowCreateParams {
14958
15366
  */
14959
15367
  display_position?: PressDigitNode.DisplayPosition;
14960
15368
  edges?: Array<PressDigitNode.Edge>;
15369
+ else_edge?: PressDigitNode.ElseEdge;
14961
15370
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
14962
15371
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
14963
15372
  model_choice?: PressDigitNode.ModelChoice;
@@ -15023,187 +15432,237 @@ export declare namespace ConversationFlowCreateParams {
15023
15432
  }
15024
15433
  }
15025
15434
  }
15026
- interface FinetuneTransitionExample {
15027
- /**
15028
- * Unique identifier for the example
15029
- */
15030
- id: string;
15031
- /**
15032
- * The example transcript to finetune how the node should transition.
15033
- */
15034
- transcript: Array<FinetuneTransitionExample.UnionMember0 | FinetuneTransitionExample.UnionMember1 | FinetuneTransitionExample.UnionMember2>;
15035
- /**
15036
- * Optional destination node ID
15037
- */
15038
- destination_node_id?: string;
15039
- }
15040
- namespace FinetuneTransitionExample {
15041
- interface UnionMember0 {
15042
- content: string;
15043
- role: 'agent' | 'user';
15044
- }
15045
- interface UnionMember1 {
15046
- arguments: string;
15047
- name: string;
15048
- role: 'tool_call_invocation';
15049
- tool_call_id: string;
15050
- }
15051
- interface UnionMember2 {
15052
- content: string;
15053
- role: 'tool_call_result';
15054
- tool_call_id: string;
15055
- }
15056
- }
15057
- interface GlobalNodeSetting {
15058
- /**
15059
- * Condition for global node activation, cannot be empty
15060
- */
15061
- condition: string;
15062
- /**
15063
- * The same global node won't be triggered again within the next N node
15064
- * transitions.
15065
- */
15066
- cool_down?: number;
15067
- /**
15068
- * The conditions for global node go back. There would be no destination_node_id
15069
- * for these edges.
15070
- */
15071
- go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
15072
- /**
15073
- * Don't transition to this node
15074
- */
15075
- negative_finetune_examples?: Array<GlobalNodeSetting.NegativeFinetuneExample>;
15076
- /**
15077
- * Transition to this node
15078
- */
15079
- positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
15080
- }
15081
- namespace GlobalNodeSetting {
15082
- interface GoBackCondition {
15083
- /**
15084
- * Unique identifier for the edge
15085
- */
15086
- id: string;
15087
- transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
15088
- /**
15089
- * ID of the destination node
15090
- */
15091
- destination_node_id?: string;
15092
- }
15093
- namespace GoBackCondition {
15094
- interface PromptCondition {
15095
- /**
15096
- * Prompt condition text
15097
- */
15098
- prompt: string;
15099
- type: 'prompt';
15100
- }
15101
- interface EquationCondition {
15102
- equations: Array<EquationCondition.Equation>;
15103
- operator: '||' | '&&';
15104
- type: 'equation';
15105
- }
15106
- namespace EquationCondition {
15107
- interface Equation {
15108
- /**
15109
- * Left side of the equation
15110
- */
15111
- left: string;
15112
- operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
15113
- /**
15114
- * Right side of the equation. The right side of the equation not required when
15115
- * "exists" or "not_exist" are selected.
15116
- */
15117
- right?: string;
15118
- }
15119
- }
15120
- }
15121
- interface NegativeFinetuneExample {
15122
- /**
15123
- * Find tune the transition condition to this global node
15124
- */
15125
- transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
15126
- }
15127
- namespace NegativeFinetuneExample {
15128
- interface UnionMember0 {
15129
- content: string;
15130
- role: 'agent' | 'user';
15131
- }
15132
- interface UnionMember1 {
15133
- arguments: string;
15134
- name: string;
15135
- role: 'tool_call_invocation';
15136
- tool_call_id: string;
15137
- }
15138
- interface UnionMember2 {
15139
- content: string;
15140
- role: 'tool_call_result';
15141
- tool_call_id: string;
15142
- }
15143
- }
15144
- interface PositiveFinetuneExample {
15145
- /**
15146
- * Find tune the transition condition to this global node
15147
- */
15148
- transcript: Array<PositiveFinetuneExample.UnionMember0 | PositiveFinetuneExample.UnionMember1 | PositiveFinetuneExample.UnionMember2>;
15149
- }
15150
- namespace PositiveFinetuneExample {
15151
- interface UnionMember0 {
15152
- content: string;
15153
- role: 'agent' | 'user';
15154
- }
15155
- interface UnionMember1 {
15156
- arguments: string;
15157
- name: string;
15158
- role: 'tool_call_invocation';
15159
- tool_call_id: string;
15160
- }
15161
- interface UnionMember2 {
15162
- content: string;
15163
- role: 'tool_call_result';
15164
- tool_call_id: string;
15165
- }
15166
- }
15167
- }
15168
- interface ModelChoice {
15169
- /**
15170
- * The LLM model to use
15171
- */
15172
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15173
- /**
15174
- * Type of model choice
15175
- */
15176
- type: 'cascading';
15177
- /**
15178
- * Whether to use high priority pool with more dedicated resource, default false
15179
- */
15180
- high_priority?: boolean;
15181
- }
15182
- }
15183
- interface BranchNode {
15184
- /**
15185
- * Unique identifier for the node
15186
- */
15187
- id: string;
15188
- else_edge: BranchNode.ElseEdge;
15189
- /**
15190
- * Type of the node
15191
- */
15192
- type: 'branch';
15193
- /**
15194
- * Position for frontend display
15195
- */
15196
- display_position?: BranchNode.DisplayPosition;
15197
- edges?: Array<BranchNode.Edge>;
15198
- finetune_transition_examples?: Array<BranchNode.FinetuneTransitionExample>;
15199
- global_node_setting?: BranchNode.GlobalNodeSetting;
15200
- model_choice?: BranchNode.ModelChoice;
15201
- /**
15202
- * Optional name for display purposes
15203
- */
15204
- name?: string;
15205
- }
15206
- namespace BranchNode {
15435
+ interface ElseEdge {
15436
+ /**
15437
+ * Unique identifier for the edge
15438
+ */
15439
+ id: string;
15440
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
15441
+ /**
15442
+ * ID of the destination node
15443
+ */
15444
+ destination_node_id?: string;
15445
+ }
15446
+ namespace ElseEdge {
15447
+ interface PromptCondition {
15448
+ /**
15449
+ * Prompt condition text
15450
+ */
15451
+ prompt: string;
15452
+ type: 'prompt';
15453
+ }
15454
+ interface EquationCondition {
15455
+ equations: Array<EquationCondition.Equation>;
15456
+ operator: '||' | '&&';
15457
+ type: 'equation';
15458
+ /**
15459
+ * Must be "Else" for else edge
15460
+ */
15461
+ prompt?: 'Else';
15462
+ }
15463
+ namespace EquationCondition {
15464
+ interface Equation {
15465
+ /**
15466
+ * Left side of the equation
15467
+ */
15468
+ left: string;
15469
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
15470
+ /**
15471
+ * Right side of the equation. The right side of the equation not required when
15472
+ * "exists" or "not_exist" are selected.
15473
+ */
15474
+ right?: string;
15475
+ }
15476
+ }
15477
+ interface UnionMember2 {
15478
+ /**
15479
+ * Must be "Else" for else edge
15480
+ */
15481
+ prompt: 'Else';
15482
+ type: 'prompt';
15483
+ }
15484
+ }
15485
+ interface FinetuneTransitionExample {
15486
+ /**
15487
+ * Unique identifier for the example
15488
+ */
15489
+ id: string;
15490
+ /**
15491
+ * The example transcript to finetune how the node should transition.
15492
+ */
15493
+ transcript: Array<FinetuneTransitionExample.UnionMember0 | FinetuneTransitionExample.UnionMember1 | FinetuneTransitionExample.UnionMember2>;
15494
+ /**
15495
+ * Optional destination node ID
15496
+ */
15497
+ destination_node_id?: string;
15498
+ }
15499
+ namespace FinetuneTransitionExample {
15500
+ interface UnionMember0 {
15501
+ content: string;
15502
+ role: 'agent' | 'user';
15503
+ }
15504
+ interface UnionMember1 {
15505
+ arguments: string;
15506
+ name: string;
15507
+ role: 'tool_call_invocation';
15508
+ tool_call_id: string;
15509
+ }
15510
+ interface UnionMember2 {
15511
+ content: string;
15512
+ role: 'tool_call_result';
15513
+ tool_call_id: string;
15514
+ }
15515
+ }
15516
+ interface GlobalNodeSetting {
15517
+ /**
15518
+ * Condition for global node activation, cannot be empty
15519
+ */
15520
+ condition: string;
15521
+ /**
15522
+ * The same global node won't be triggered again within the next N node
15523
+ * transitions.
15524
+ */
15525
+ cool_down?: number;
15526
+ /**
15527
+ * The conditions for global node go back. There would be no destination_node_id
15528
+ * for these edges.
15529
+ */
15530
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
15531
+ /**
15532
+ * Don't transition to this node
15533
+ */
15534
+ negative_finetune_examples?: Array<GlobalNodeSetting.NegativeFinetuneExample>;
15535
+ /**
15536
+ * Transition to this node
15537
+ */
15538
+ positive_finetune_examples?: Array<GlobalNodeSetting.PositiveFinetuneExample>;
15539
+ }
15540
+ namespace GlobalNodeSetting {
15541
+ interface GoBackCondition {
15542
+ /**
15543
+ * Unique identifier for the edge
15544
+ */
15545
+ id: string;
15546
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
15547
+ /**
15548
+ * ID of the destination node
15549
+ */
15550
+ destination_node_id?: string;
15551
+ }
15552
+ namespace GoBackCondition {
15553
+ interface PromptCondition {
15554
+ /**
15555
+ * Prompt condition text
15556
+ */
15557
+ prompt: string;
15558
+ type: 'prompt';
15559
+ }
15560
+ interface EquationCondition {
15561
+ equations: Array<EquationCondition.Equation>;
15562
+ operator: '||' | '&&';
15563
+ type: 'equation';
15564
+ }
15565
+ namespace EquationCondition {
15566
+ interface Equation {
15567
+ /**
15568
+ * Left side of the equation
15569
+ */
15570
+ left: string;
15571
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
15572
+ /**
15573
+ * Right side of the equation. The right side of the equation not required when
15574
+ * "exists" or "not_exist" are selected.
15575
+ */
15576
+ right?: string;
15577
+ }
15578
+ }
15579
+ }
15580
+ interface NegativeFinetuneExample {
15581
+ /**
15582
+ * Find tune the transition condition to this global node
15583
+ */
15584
+ transcript: Array<NegativeFinetuneExample.UnionMember0 | NegativeFinetuneExample.UnionMember1 | NegativeFinetuneExample.UnionMember2>;
15585
+ }
15586
+ namespace NegativeFinetuneExample {
15587
+ interface UnionMember0 {
15588
+ content: string;
15589
+ role: 'agent' | 'user';
15590
+ }
15591
+ interface UnionMember1 {
15592
+ arguments: string;
15593
+ name: string;
15594
+ role: 'tool_call_invocation';
15595
+ tool_call_id: string;
15596
+ }
15597
+ interface UnionMember2 {
15598
+ content: string;
15599
+ role: 'tool_call_result';
15600
+ tool_call_id: string;
15601
+ }
15602
+ }
15603
+ interface PositiveFinetuneExample {
15604
+ /**
15605
+ * Find tune the transition condition to this global node
15606
+ */
15607
+ transcript: Array<PositiveFinetuneExample.UnionMember0 | PositiveFinetuneExample.UnionMember1 | PositiveFinetuneExample.UnionMember2>;
15608
+ }
15609
+ namespace PositiveFinetuneExample {
15610
+ interface UnionMember0 {
15611
+ content: string;
15612
+ role: 'agent' | 'user';
15613
+ }
15614
+ interface UnionMember1 {
15615
+ arguments: string;
15616
+ name: string;
15617
+ role: 'tool_call_invocation';
15618
+ tool_call_id: string;
15619
+ }
15620
+ interface UnionMember2 {
15621
+ content: string;
15622
+ role: 'tool_call_result';
15623
+ tool_call_id: string;
15624
+ }
15625
+ }
15626
+ }
15627
+ interface ModelChoice {
15628
+ /**
15629
+ * The LLM model to use
15630
+ */
15631
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15632
+ /**
15633
+ * Type of model choice
15634
+ */
15635
+ type: 'cascading';
15636
+ /**
15637
+ * Whether to use high priority pool with more dedicated resource, default false
15638
+ */
15639
+ high_priority?: boolean;
15640
+ }
15641
+ }
15642
+ interface BranchNode {
15643
+ /**
15644
+ * Unique identifier for the node
15645
+ */
15646
+ id: string;
15647
+ else_edge: BranchNode.ElseEdge;
15648
+ /**
15649
+ * Type of the node
15650
+ */
15651
+ type: 'branch';
15652
+ /**
15653
+ * Position for frontend display
15654
+ */
15655
+ display_position?: BranchNode.DisplayPosition;
15656
+ edges?: Array<BranchNode.Edge>;
15657
+ finetune_transition_examples?: Array<BranchNode.FinetuneTransitionExample>;
15658
+ global_node_setting?: BranchNode.GlobalNodeSetting;
15659
+ model_choice?: BranchNode.ModelChoice;
15660
+ /**
15661
+ * Optional name for display purposes
15662
+ */
15663
+ name?: string;
15664
+ }
15665
+ namespace BranchNode {
15207
15666
  interface ElseEdge {
15208
15667
  /**
15209
15668
  * Unique identifier for the edge
@@ -17437,6 +17896,7 @@ export declare namespace ConversationFlowCreateParams {
17437
17896
  */
17438
17897
  display_position?: ConversationNode.DisplayPosition;
17439
17898
  edges?: Array<ConversationNode.Edge>;
17899
+ else_edge?: ConversationNode.ElseEdge;
17440
17900
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
17441
17901
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
17442
17902
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -17576,6 +18036,56 @@ export declare namespace ConversationFlowCreateParams {
17576
18036
  }
17577
18037
  }
17578
18038
  }
18039
+ interface ElseEdge {
18040
+ /**
18041
+ * Unique identifier for the edge
18042
+ */
18043
+ id: string;
18044
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
18045
+ /**
18046
+ * ID of the destination node
18047
+ */
18048
+ destination_node_id?: string;
18049
+ }
18050
+ namespace ElseEdge {
18051
+ interface PromptCondition {
18052
+ /**
18053
+ * Prompt condition text
18054
+ */
18055
+ prompt: string;
18056
+ type: 'prompt';
18057
+ }
18058
+ interface EquationCondition {
18059
+ equations: Array<EquationCondition.Equation>;
18060
+ operator: '||' | '&&';
18061
+ type: 'equation';
18062
+ /**
18063
+ * Must be "Else" for else edge
18064
+ */
18065
+ prompt?: 'Else';
18066
+ }
18067
+ namespace EquationCondition {
18068
+ interface Equation {
18069
+ /**
18070
+ * Left side of the equation
18071
+ */
18072
+ left: string;
18073
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
18074
+ /**
18075
+ * Right side of the equation. The right side of the equation not required when
18076
+ * "exists" or "not_exist" are selected.
18077
+ */
18078
+ right?: string;
18079
+ }
18080
+ }
18081
+ interface UnionMember2 {
18082
+ /**
18083
+ * Must be "Else" for else edge
18084
+ */
18085
+ prompt: 'Else';
18086
+ type: 'prompt';
18087
+ }
18088
+ }
17579
18089
  interface FinetuneConversationExample {
17580
18090
  /**
17581
18091
  * Unique identifier for the example
@@ -17844,6 +18354,7 @@ export declare namespace ConversationFlowCreateParams {
17844
18354
  */
17845
18355
  display_position?: SubagentNode.DisplayPosition;
17846
18356
  edges?: Array<SubagentNode.Edge>;
18357
+ else_edge?: SubagentNode.ElseEdge;
17847
18358
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
17848
18359
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
17849
18360
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -17983,6 +18494,56 @@ export declare namespace ConversationFlowCreateParams {
17983
18494
  }
17984
18495
  }
17985
18496
  }
18497
+ interface ElseEdge {
18498
+ /**
18499
+ * Unique identifier for the edge
18500
+ */
18501
+ id: string;
18502
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
18503
+ /**
18504
+ * ID of the destination node
18505
+ */
18506
+ destination_node_id?: string;
18507
+ }
18508
+ namespace ElseEdge {
18509
+ interface PromptCondition {
18510
+ /**
18511
+ * Prompt condition text
18512
+ */
18513
+ prompt: string;
18514
+ type: 'prompt';
18515
+ }
18516
+ interface EquationCondition {
18517
+ equations: Array<EquationCondition.Equation>;
18518
+ operator: '||' | '&&';
18519
+ type: 'equation';
18520
+ /**
18521
+ * Must be "Else" for else edge
18522
+ */
18523
+ prompt?: 'Else';
18524
+ }
18525
+ namespace EquationCondition {
18526
+ interface Equation {
18527
+ /**
18528
+ * Left side of the equation
18529
+ */
18530
+ left: string;
18531
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
18532
+ /**
18533
+ * Right side of the equation. The right side of the equation not required when
18534
+ * "exists" or "not_exist" are selected.
18535
+ */
18536
+ right?: string;
18537
+ }
18538
+ }
18539
+ interface UnionMember2 {
18540
+ /**
18541
+ * Must be "Else" for else edge
18542
+ */
18543
+ prompt: 'Else';
18544
+ type: 'prompt';
18545
+ }
18546
+ }
17986
18547
  interface FinetuneConversationExample {
17987
18548
  /**
17988
18549
  * Unique identifier for the example
@@ -20500,6 +21061,7 @@ export declare namespace ConversationFlowCreateParams {
20500
21061
  */
20501
21062
  display_position?: PressDigitNode.DisplayPosition;
20502
21063
  edges?: Array<PressDigitNode.Edge>;
21064
+ else_edge?: PressDigitNode.ElseEdge;
20503
21065
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
20504
21066
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
20505
21067
  model_choice?: PressDigitNode.ModelChoice;
@@ -20565,6 +21127,56 @@ export declare namespace ConversationFlowCreateParams {
20565
21127
  }
20566
21128
  }
20567
21129
  }
21130
+ interface ElseEdge {
21131
+ /**
21132
+ * Unique identifier for the edge
21133
+ */
21134
+ id: string;
21135
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
21136
+ /**
21137
+ * ID of the destination node
21138
+ */
21139
+ destination_node_id?: string;
21140
+ }
21141
+ namespace ElseEdge {
21142
+ interface PromptCondition {
21143
+ /**
21144
+ * Prompt condition text
21145
+ */
21146
+ prompt: string;
21147
+ type: 'prompt';
21148
+ }
21149
+ interface EquationCondition {
21150
+ equations: Array<EquationCondition.Equation>;
21151
+ operator: '||' | '&&';
21152
+ type: 'equation';
21153
+ /**
21154
+ * Must be "Else" for else edge
21155
+ */
21156
+ prompt?: 'Else';
21157
+ }
21158
+ namespace EquationCondition {
21159
+ interface Equation {
21160
+ /**
21161
+ * Left side of the equation
21162
+ */
21163
+ left: string;
21164
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
21165
+ /**
21166
+ * Right side of the equation. The right side of the equation not required when
21167
+ * "exists" or "not_exist" are selected.
21168
+ */
21169
+ right?: string;
21170
+ }
21171
+ }
21172
+ interface UnionMember2 {
21173
+ /**
21174
+ * Must be "Else" for else edge
21175
+ */
21176
+ prompt: 'Else';
21177
+ type: 'prompt';
21178
+ }
21179
+ }
20568
21180
  interface FinetuneTransitionExample {
20569
21181
  /**
20570
21182
  * Unique identifier for the example
@@ -23630,6 +24242,7 @@ export declare namespace ConversationFlowUpdateParams {
23630
24242
  */
23631
24243
  display_position?: ConversationNode.DisplayPosition;
23632
24244
  edges?: Array<ConversationNode.Edge>;
24245
+ else_edge?: ConversationNode.ElseEdge;
23633
24246
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
23634
24247
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
23635
24248
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -23769,6 +24382,56 @@ export declare namespace ConversationFlowUpdateParams {
23769
24382
  }
23770
24383
  }
23771
24384
  }
24385
+ interface ElseEdge {
24386
+ /**
24387
+ * Unique identifier for the edge
24388
+ */
24389
+ id: string;
24390
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
24391
+ /**
24392
+ * ID of the destination node
24393
+ */
24394
+ destination_node_id?: string;
24395
+ }
24396
+ namespace ElseEdge {
24397
+ interface PromptCondition {
24398
+ /**
24399
+ * Prompt condition text
24400
+ */
24401
+ prompt: string;
24402
+ type: 'prompt';
24403
+ }
24404
+ interface EquationCondition {
24405
+ equations: Array<EquationCondition.Equation>;
24406
+ operator: '||' | '&&';
24407
+ type: 'equation';
24408
+ /**
24409
+ * Must be "Else" for else edge
24410
+ */
24411
+ prompt?: 'Else';
24412
+ }
24413
+ namespace EquationCondition {
24414
+ interface Equation {
24415
+ /**
24416
+ * Left side of the equation
24417
+ */
24418
+ left: string;
24419
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
24420
+ /**
24421
+ * Right side of the equation. The right side of the equation not required when
24422
+ * "exists" or "not_exist" are selected.
24423
+ */
24424
+ right?: string;
24425
+ }
24426
+ }
24427
+ interface UnionMember2 {
24428
+ /**
24429
+ * Must be "Else" for else edge
24430
+ */
24431
+ prompt: 'Else';
24432
+ type: 'prompt';
24433
+ }
24434
+ }
23772
24435
  interface FinetuneConversationExample {
23773
24436
  /**
23774
24437
  * Unique identifier for the example
@@ -24037,6 +24700,7 @@ export declare namespace ConversationFlowUpdateParams {
24037
24700
  */
24038
24701
  display_position?: SubagentNode.DisplayPosition;
24039
24702
  edges?: Array<SubagentNode.Edge>;
24703
+ else_edge?: SubagentNode.ElseEdge;
24040
24704
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
24041
24705
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
24042
24706
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -24176,6 +24840,56 @@ export declare namespace ConversationFlowUpdateParams {
24176
24840
  }
24177
24841
  }
24178
24842
  }
24843
+ interface ElseEdge {
24844
+ /**
24845
+ * Unique identifier for the edge
24846
+ */
24847
+ id: string;
24848
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
24849
+ /**
24850
+ * ID of the destination node
24851
+ */
24852
+ destination_node_id?: string;
24853
+ }
24854
+ namespace ElseEdge {
24855
+ interface PromptCondition {
24856
+ /**
24857
+ * Prompt condition text
24858
+ */
24859
+ prompt: string;
24860
+ type: 'prompt';
24861
+ }
24862
+ interface EquationCondition {
24863
+ equations: Array<EquationCondition.Equation>;
24864
+ operator: '||' | '&&';
24865
+ type: 'equation';
24866
+ /**
24867
+ * Must be "Else" for else edge
24868
+ */
24869
+ prompt?: 'Else';
24870
+ }
24871
+ namespace EquationCondition {
24872
+ interface Equation {
24873
+ /**
24874
+ * Left side of the equation
24875
+ */
24876
+ left: string;
24877
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
24878
+ /**
24879
+ * Right side of the equation. The right side of the equation not required when
24880
+ * "exists" or "not_exist" are selected.
24881
+ */
24882
+ right?: string;
24883
+ }
24884
+ }
24885
+ interface UnionMember2 {
24886
+ /**
24887
+ * Must be "Else" for else edge
24888
+ */
24889
+ prompt: 'Else';
24890
+ type: 'prompt';
24891
+ }
24892
+ }
24179
24893
  interface FinetuneConversationExample {
24180
24894
  /**
24181
24895
  * Unique identifier for the example
@@ -26693,6 +27407,7 @@ export declare namespace ConversationFlowUpdateParams {
26693
27407
  */
26694
27408
  display_position?: PressDigitNode.DisplayPosition;
26695
27409
  edges?: Array<PressDigitNode.Edge>;
27410
+ else_edge?: PressDigitNode.ElseEdge;
26696
27411
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
26697
27412
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
26698
27413
  model_choice?: PressDigitNode.ModelChoice;
@@ -26758,6 +27473,56 @@ export declare namespace ConversationFlowUpdateParams {
26758
27473
  }
26759
27474
  }
26760
27475
  }
27476
+ interface ElseEdge {
27477
+ /**
27478
+ * Unique identifier for the edge
27479
+ */
27480
+ id: string;
27481
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
27482
+ /**
27483
+ * ID of the destination node
27484
+ */
27485
+ destination_node_id?: string;
27486
+ }
27487
+ namespace ElseEdge {
27488
+ interface PromptCondition {
27489
+ /**
27490
+ * Prompt condition text
27491
+ */
27492
+ prompt: string;
27493
+ type: 'prompt';
27494
+ }
27495
+ interface EquationCondition {
27496
+ equations: Array<EquationCondition.Equation>;
27497
+ operator: '||' | '&&';
27498
+ type: 'equation';
27499
+ /**
27500
+ * Must be "Else" for else edge
27501
+ */
27502
+ prompt?: 'Else';
27503
+ }
27504
+ namespace EquationCondition {
27505
+ interface Equation {
27506
+ /**
27507
+ * Left side of the equation
27508
+ */
27509
+ left: string;
27510
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
27511
+ /**
27512
+ * Right side of the equation. The right side of the equation not required when
27513
+ * "exists" or "not_exist" are selected.
27514
+ */
27515
+ right?: string;
27516
+ }
27517
+ }
27518
+ interface UnionMember2 {
27519
+ /**
27520
+ * Must be "Else" for else edge
27521
+ */
27522
+ prompt: 'Else';
27523
+ type: 'prompt';
27524
+ }
27525
+ }
26761
27526
  interface FinetuneTransitionExample {
26762
27527
  /**
26763
27528
  * Unique identifier for the example
@@ -29451,6 +30216,7 @@ export declare namespace ConversationFlowUpdateParams {
29451
30216
  */
29452
30217
  display_position?: ConversationNode.DisplayPosition;
29453
30218
  edges?: Array<ConversationNode.Edge>;
30219
+ else_edge?: ConversationNode.ElseEdge;
29454
30220
  finetune_conversation_examples?: Array<ConversationNode.FinetuneConversationExample>;
29455
30221
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
29456
30222
  global_node_setting?: ConversationNode.GlobalNodeSetting;
@@ -29590,6 +30356,56 @@ export declare namespace ConversationFlowUpdateParams {
29590
30356
  }
29591
30357
  }
29592
30358
  }
30359
+ interface ElseEdge {
30360
+ /**
30361
+ * Unique identifier for the edge
30362
+ */
30363
+ id: string;
30364
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
30365
+ /**
30366
+ * ID of the destination node
30367
+ */
30368
+ destination_node_id?: string;
30369
+ }
30370
+ namespace ElseEdge {
30371
+ interface PromptCondition {
30372
+ /**
30373
+ * Prompt condition text
30374
+ */
30375
+ prompt: string;
30376
+ type: 'prompt';
30377
+ }
30378
+ interface EquationCondition {
30379
+ equations: Array<EquationCondition.Equation>;
30380
+ operator: '||' | '&&';
30381
+ type: 'equation';
30382
+ /**
30383
+ * Must be "Else" for else edge
30384
+ */
30385
+ prompt?: 'Else';
30386
+ }
30387
+ namespace EquationCondition {
30388
+ interface Equation {
30389
+ /**
30390
+ * Left side of the equation
30391
+ */
30392
+ left: string;
30393
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
30394
+ /**
30395
+ * Right side of the equation. The right side of the equation not required when
30396
+ * "exists" or "not_exist" are selected.
30397
+ */
30398
+ right?: string;
30399
+ }
30400
+ }
30401
+ interface UnionMember2 {
30402
+ /**
30403
+ * Must be "Else" for else edge
30404
+ */
30405
+ prompt: 'Else';
30406
+ type: 'prompt';
30407
+ }
30408
+ }
29593
30409
  interface FinetuneConversationExample {
29594
30410
  /**
29595
30411
  * Unique identifier for the example
@@ -29858,6 +30674,7 @@ export declare namespace ConversationFlowUpdateParams {
29858
30674
  */
29859
30675
  display_position?: SubagentNode.DisplayPosition;
29860
30676
  edges?: Array<SubagentNode.Edge>;
30677
+ else_edge?: SubagentNode.ElseEdge;
29861
30678
  finetune_conversation_examples?: Array<SubagentNode.FinetuneConversationExample>;
29862
30679
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
29863
30680
  global_node_setting?: SubagentNode.GlobalNodeSetting;
@@ -29997,6 +30814,56 @@ export declare namespace ConversationFlowUpdateParams {
29997
30814
  }
29998
30815
  }
29999
30816
  }
30817
+ interface ElseEdge {
30818
+ /**
30819
+ * Unique identifier for the edge
30820
+ */
30821
+ id: string;
30822
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
30823
+ /**
30824
+ * ID of the destination node
30825
+ */
30826
+ destination_node_id?: string;
30827
+ }
30828
+ namespace ElseEdge {
30829
+ interface PromptCondition {
30830
+ /**
30831
+ * Prompt condition text
30832
+ */
30833
+ prompt: string;
30834
+ type: 'prompt';
30835
+ }
30836
+ interface EquationCondition {
30837
+ equations: Array<EquationCondition.Equation>;
30838
+ operator: '||' | '&&';
30839
+ type: 'equation';
30840
+ /**
30841
+ * Must be "Else" for else edge
30842
+ */
30843
+ prompt?: 'Else';
30844
+ }
30845
+ namespace EquationCondition {
30846
+ interface Equation {
30847
+ /**
30848
+ * Left side of the equation
30849
+ */
30850
+ left: string;
30851
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
30852
+ /**
30853
+ * Right side of the equation. The right side of the equation not required when
30854
+ * "exists" or "not_exist" are selected.
30855
+ */
30856
+ right?: string;
30857
+ }
30858
+ }
30859
+ interface UnionMember2 {
30860
+ /**
30861
+ * Must be "Else" for else edge
30862
+ */
30863
+ prompt: 'Else';
30864
+ type: 'prompt';
30865
+ }
30866
+ }
30000
30867
  interface FinetuneConversationExample {
30001
30868
  /**
30002
30869
  * Unique identifier for the example
@@ -32514,6 +33381,7 @@ export declare namespace ConversationFlowUpdateParams {
32514
33381
  */
32515
33382
  display_position?: PressDigitNode.DisplayPosition;
32516
33383
  edges?: Array<PressDigitNode.Edge>;
33384
+ else_edge?: PressDigitNode.ElseEdge;
32517
33385
  finetune_transition_examples?: Array<PressDigitNode.FinetuneTransitionExample>;
32518
33386
  global_node_setting?: PressDigitNode.GlobalNodeSetting;
32519
33387
  model_choice?: PressDigitNode.ModelChoice;
@@ -32579,6 +33447,56 @@ export declare namespace ConversationFlowUpdateParams {
32579
33447
  }
32580
33448
  }
32581
33449
  }
33450
+ interface ElseEdge {
33451
+ /**
33452
+ * Unique identifier for the edge
33453
+ */
33454
+ id: string;
33455
+ transition_condition: ElseEdge.PromptCondition | ElseEdge.EquationCondition | ElseEdge.UnionMember2;
33456
+ /**
33457
+ * ID of the destination node
33458
+ */
33459
+ destination_node_id?: string;
33460
+ }
33461
+ namespace ElseEdge {
33462
+ interface PromptCondition {
33463
+ /**
33464
+ * Prompt condition text
33465
+ */
33466
+ prompt: string;
33467
+ type: 'prompt';
33468
+ }
33469
+ interface EquationCondition {
33470
+ equations: Array<EquationCondition.Equation>;
33471
+ operator: '||' | '&&';
33472
+ type: 'equation';
33473
+ /**
33474
+ * Must be "Else" for else edge
33475
+ */
33476
+ prompt?: 'Else';
33477
+ }
33478
+ namespace EquationCondition {
33479
+ interface Equation {
33480
+ /**
33481
+ * Left side of the equation
33482
+ */
33483
+ left: string;
33484
+ operator: '==' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'not_contains' | 'exists' | 'not_exist';
33485
+ /**
33486
+ * Right side of the equation. The right side of the equation not required when
33487
+ * "exists" or "not_exist" are selected.
33488
+ */
33489
+ right?: string;
33490
+ }
33491
+ }
33492
+ interface UnionMember2 {
33493
+ /**
33494
+ * Must be "Else" for else edge
33495
+ */
33496
+ prompt: 'Else';
33497
+ type: 'prompt';
33498
+ }
33499
+ }
32582
33500
  interface FinetuneTransitionExample {
32583
33501
  /**
32584
33502
  * Unique identifier for the example