retell-sdk 5.2.0 → 5.3.1

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 (52) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +1 -1
  3. package/resources/agent.d.mts +39 -3
  4. package/resources/agent.d.mts.map +1 -1
  5. package/resources/agent.d.ts +39 -3
  6. package/resources/agent.d.ts.map +1 -1
  7. package/resources/batch-call.d.mts +13 -1
  8. package/resources/batch-call.d.mts.map +1 -1
  9. package/resources/batch-call.d.ts +13 -1
  10. package/resources/batch-call.d.ts.map +1 -1
  11. package/resources/call.d.mts +58 -6
  12. package/resources/call.d.mts.map +1 -1
  13. package/resources/call.d.ts +58 -6
  14. package/resources/call.d.ts.map +1 -1
  15. package/resources/chat-agent.d.mts +34 -0
  16. package/resources/chat-agent.d.mts.map +1 -1
  17. package/resources/chat-agent.d.ts +34 -0
  18. package/resources/chat-agent.d.ts.map +1 -1
  19. package/resources/chat.d.mts +8 -0
  20. package/resources/chat.d.mts.map +1 -1
  21. package/resources/chat.d.ts +8 -0
  22. package/resources/chat.d.ts.map +1 -1
  23. package/resources/conversation-flow-component.d.mts +1927 -16
  24. package/resources/conversation-flow-component.d.mts.map +1 -1
  25. package/resources/conversation-flow-component.d.ts +1927 -16
  26. package/resources/conversation-flow-component.d.ts.map +1 -1
  27. package/resources/conversation-flow.d.mts +3958 -136
  28. package/resources/conversation-flow.d.mts.map +1 -1
  29. package/resources/conversation-flow.d.ts +3958 -136
  30. package/resources/conversation-flow.d.ts.map +1 -1
  31. package/resources/phone-number.d.mts +57 -38
  32. package/resources/phone-number.d.mts.map +1 -1
  33. package/resources/phone-number.d.ts +57 -38
  34. package/resources/phone-number.d.ts.map +1 -1
  35. package/resources/voice.d.mts +6 -6
  36. package/resources/voice.d.mts.map +1 -1
  37. package/resources/voice.d.ts +6 -6
  38. package/resources/voice.d.ts.map +1 -1
  39. package/src/resources/agent.ts +45 -0
  40. package/src/resources/batch-call.ts +15 -0
  41. package/src/resources/call.ts +65 -3
  42. package/src/resources/chat-agent.ts +40 -0
  43. package/src/resources/chat.ts +10 -0
  44. package/src/resources/conversation-flow-component.ts +2808 -0
  45. package/src/resources/conversation-flow.ts +5801 -185
  46. package/src/resources/phone-number.ts +57 -38
  47. package/src/resources/voice.ts +6 -6
  48. package/src/version.ts +1 -1
  49. package/version.d.mts +1 -1
  50. package/version.d.ts +1 -1
  51. package/version.js +1 -1
  52. package/version.mjs +1 -1
@@ -513,6 +513,18 @@ export namespace ConversationFlowComponentResponse {
513
513
  */
514
514
  condition: string;
515
515
 
516
+ /**
517
+ * The same global node won't be triggered again within the next N node
518
+ * transitions.
519
+ */
520
+ cool_down?: number;
521
+
522
+ /**
523
+ * The conditions for global node go back. There would be no destination_node_id
524
+ * for these edges.
525
+ */
526
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
527
+
516
528
  /**
517
529
  * Don't transition to this node
518
530
  */
@@ -525,6 +537,66 @@ export namespace ConversationFlowComponentResponse {
525
537
  }
526
538
 
527
539
  export namespace GlobalNodeSetting {
540
+ export interface GoBackCondition {
541
+ /**
542
+ * Unique identifier for the edge
543
+ */
544
+ id: string;
545
+
546
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
547
+
548
+ /**
549
+ * ID of the destination node
550
+ */
551
+ destination_node_id?: string;
552
+ }
553
+
554
+ export namespace GoBackCondition {
555
+ export interface PromptCondition {
556
+ /**
557
+ * Prompt condition text
558
+ */
559
+ prompt: string;
560
+
561
+ type: 'prompt';
562
+ }
563
+
564
+ export interface EquationCondition {
565
+ equations: Array<EquationCondition.Equation>;
566
+
567
+ operator: '||' | '&&';
568
+
569
+ type: 'equation';
570
+ }
571
+
572
+ export namespace EquationCondition {
573
+ export interface Equation {
574
+ /**
575
+ * Left side of the equation
576
+ */
577
+ left: string;
578
+
579
+ operator:
580
+ | '=='
581
+ | '!='
582
+ | '>'
583
+ | '>='
584
+ | '<'
585
+ | '<='
586
+ | 'contains'
587
+ | 'not_contains'
588
+ | 'exists'
589
+ | 'not_exist';
590
+
591
+ /**
592
+ * Right side of the equation. The right side of the equation not required when
593
+ * "exists" or "not_exist" are selected.
594
+ */
595
+ right?: string;
596
+ }
597
+ }
598
+ }
599
+
528
600
  export interface NegativeFinetuneExample {
529
601
  /**
530
602
  * Find tune the transition condition to this global node
@@ -1663,6 +1735,18 @@ export namespace ConversationFlowComponentResponse {
1663
1735
  */
1664
1736
  condition: string;
1665
1737
 
1738
+ /**
1739
+ * The same global node won't be triggered again within the next N node
1740
+ * transitions.
1741
+ */
1742
+ cool_down?: number;
1743
+
1744
+ /**
1745
+ * The conditions for global node go back. There would be no destination_node_id
1746
+ * for these edges.
1747
+ */
1748
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
1749
+
1666
1750
  /**
1667
1751
  * Don't transition to this node
1668
1752
  */
@@ -1675,6 +1759,66 @@ export namespace ConversationFlowComponentResponse {
1675
1759
  }
1676
1760
 
1677
1761
  export namespace GlobalNodeSetting {
1762
+ export interface GoBackCondition {
1763
+ /**
1764
+ * Unique identifier for the edge
1765
+ */
1766
+ id: string;
1767
+
1768
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
1769
+
1770
+ /**
1771
+ * ID of the destination node
1772
+ */
1773
+ destination_node_id?: string;
1774
+ }
1775
+
1776
+ export namespace GoBackCondition {
1777
+ export interface PromptCondition {
1778
+ /**
1779
+ * Prompt condition text
1780
+ */
1781
+ prompt: string;
1782
+
1783
+ type: 'prompt';
1784
+ }
1785
+
1786
+ export interface EquationCondition {
1787
+ equations: Array<EquationCondition.Equation>;
1788
+
1789
+ operator: '||' | '&&';
1790
+
1791
+ type: 'equation';
1792
+ }
1793
+
1794
+ export namespace EquationCondition {
1795
+ export interface Equation {
1796
+ /**
1797
+ * Left side of the equation
1798
+ */
1799
+ left: string;
1800
+
1801
+ operator:
1802
+ | '=='
1803
+ | '!='
1804
+ | '>'
1805
+ | '>='
1806
+ | '<'
1807
+ | '<='
1808
+ | 'contains'
1809
+ | 'not_contains'
1810
+ | 'exists'
1811
+ | 'not_exist';
1812
+
1813
+ /**
1814
+ * Right side of the equation. The right side of the equation not required when
1815
+ * "exists" or "not_exist" are selected.
1816
+ */
1817
+ right?: string;
1818
+ }
1819
+ }
1820
+ }
1821
+
1678
1822
  export interface NegativeFinetuneExample {
1679
1823
  /**
1680
1824
  * Find tune the transition condition to this global node
@@ -2032,6 +2176,18 @@ export namespace ConversationFlowComponentResponse {
2032
2176
  */
2033
2177
  condition: string;
2034
2178
 
2179
+ /**
2180
+ * The same global node won't be triggered again within the next N node
2181
+ * transitions.
2182
+ */
2183
+ cool_down?: number;
2184
+
2185
+ /**
2186
+ * The conditions for global node go back. There would be no destination_node_id
2187
+ * for these edges.
2188
+ */
2189
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
2190
+
2035
2191
  /**
2036
2192
  * Don't transition to this node
2037
2193
  */
@@ -2044,6 +2200,66 @@ export namespace ConversationFlowComponentResponse {
2044
2200
  }
2045
2201
 
2046
2202
  export namespace GlobalNodeSetting {
2203
+ export interface GoBackCondition {
2204
+ /**
2205
+ * Unique identifier for the edge
2206
+ */
2207
+ id: string;
2208
+
2209
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
2210
+
2211
+ /**
2212
+ * ID of the destination node
2213
+ */
2214
+ destination_node_id?: string;
2215
+ }
2216
+
2217
+ export namespace GoBackCondition {
2218
+ export interface PromptCondition {
2219
+ /**
2220
+ * Prompt condition text
2221
+ */
2222
+ prompt: string;
2223
+
2224
+ type: 'prompt';
2225
+ }
2226
+
2227
+ export interface EquationCondition {
2228
+ equations: Array<EquationCondition.Equation>;
2229
+
2230
+ operator: '||' | '&&';
2231
+
2232
+ type: 'equation';
2233
+ }
2234
+
2235
+ export namespace EquationCondition {
2236
+ export interface Equation {
2237
+ /**
2238
+ * Left side of the equation
2239
+ */
2240
+ left: string;
2241
+
2242
+ operator:
2243
+ | '=='
2244
+ | '!='
2245
+ | '>'
2246
+ | '>='
2247
+ | '<'
2248
+ | '<='
2249
+ | 'contains'
2250
+ | 'not_contains'
2251
+ | 'exists'
2252
+ | 'not_exist';
2253
+
2254
+ /**
2255
+ * Right side of the equation. The right side of the equation not required when
2256
+ * "exists" or "not_exist" are selected.
2257
+ */
2258
+ right?: string;
2259
+ }
2260
+ }
2261
+ }
2262
+
2047
2263
  export interface NegativeFinetuneExample {
2048
2264
  /**
2049
2265
  * Find tune the transition condition to this global node
@@ -2596,6 +2812,18 @@ export namespace ConversationFlowComponentResponse {
2596
2812
  */
2597
2813
  condition: string;
2598
2814
 
2815
+ /**
2816
+ * The same global node won't be triggered again within the next N node
2817
+ * transitions.
2818
+ */
2819
+ cool_down?: number;
2820
+
2821
+ /**
2822
+ * The conditions for global node go back. There would be no destination_node_id
2823
+ * for these edges.
2824
+ */
2825
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
2826
+
2599
2827
  /**
2600
2828
  * Don't transition to this node
2601
2829
  */
@@ -2608,6 +2836,66 @@ export namespace ConversationFlowComponentResponse {
2608
2836
  }
2609
2837
 
2610
2838
  export namespace GlobalNodeSetting {
2839
+ export interface GoBackCondition {
2840
+ /**
2841
+ * Unique identifier for the edge
2842
+ */
2843
+ id: string;
2844
+
2845
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
2846
+
2847
+ /**
2848
+ * ID of the destination node
2849
+ */
2850
+ destination_node_id?: string;
2851
+ }
2852
+
2853
+ export namespace GoBackCondition {
2854
+ export interface PromptCondition {
2855
+ /**
2856
+ * Prompt condition text
2857
+ */
2858
+ prompt: string;
2859
+
2860
+ type: 'prompt';
2861
+ }
2862
+
2863
+ export interface EquationCondition {
2864
+ equations: Array<EquationCondition.Equation>;
2865
+
2866
+ operator: '||' | '&&';
2867
+
2868
+ type: 'equation';
2869
+ }
2870
+
2871
+ export namespace EquationCondition {
2872
+ export interface Equation {
2873
+ /**
2874
+ * Left side of the equation
2875
+ */
2876
+ left: string;
2877
+
2878
+ operator:
2879
+ | '=='
2880
+ | '!='
2881
+ | '>'
2882
+ | '>='
2883
+ | '<'
2884
+ | '<='
2885
+ | 'contains'
2886
+ | 'not_contains'
2887
+ | 'exists'
2888
+ | 'not_exist';
2889
+
2890
+ /**
2891
+ * Right side of the equation. The right side of the equation not required when
2892
+ * "exists" or "not_exist" are selected.
2893
+ */
2894
+ right?: string;
2895
+ }
2896
+ }
2897
+ }
2898
+
2611
2899
  export interface NegativeFinetuneExample {
2612
2900
  /**
2613
2901
  * Find tune the transition condition to this global node
@@ -2910,6 +3198,18 @@ export namespace ConversationFlowComponentResponse {
2910
3198
  */
2911
3199
  condition: string;
2912
3200
 
3201
+ /**
3202
+ * The same global node won't be triggered again within the next N node
3203
+ * transitions.
3204
+ */
3205
+ cool_down?: number;
3206
+
3207
+ /**
3208
+ * The conditions for global node go back. There would be no destination_node_id
3209
+ * for these edges.
3210
+ */
3211
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
3212
+
2913
3213
  /**
2914
3214
  * Don't transition to this node
2915
3215
  */
@@ -2922,6 +3222,66 @@ export namespace ConversationFlowComponentResponse {
2922
3222
  }
2923
3223
 
2924
3224
  export namespace GlobalNodeSetting {
3225
+ export interface GoBackCondition {
3226
+ /**
3227
+ * Unique identifier for the edge
3228
+ */
3229
+ id: string;
3230
+
3231
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
3232
+
3233
+ /**
3234
+ * ID of the destination node
3235
+ */
3236
+ destination_node_id?: string;
3237
+ }
3238
+
3239
+ export namespace GoBackCondition {
3240
+ export interface PromptCondition {
3241
+ /**
3242
+ * Prompt condition text
3243
+ */
3244
+ prompt: string;
3245
+
3246
+ type: 'prompt';
3247
+ }
3248
+
3249
+ export interface EquationCondition {
3250
+ equations: Array<EquationCondition.Equation>;
3251
+
3252
+ operator: '||' | '&&';
3253
+
3254
+ type: 'equation';
3255
+ }
3256
+
3257
+ export namespace EquationCondition {
3258
+ export interface Equation {
3259
+ /**
3260
+ * Left side of the equation
3261
+ */
3262
+ left: string;
3263
+
3264
+ operator:
3265
+ | '=='
3266
+ | '!='
3267
+ | '>'
3268
+ | '>='
3269
+ | '<'
3270
+ | '<='
3271
+ | 'contains'
3272
+ | 'not_contains'
3273
+ | 'exists'
3274
+ | 'not_exist';
3275
+
3276
+ /**
3277
+ * Right side of the equation. The right side of the equation not required when
3278
+ * "exists" or "not_exist" are selected.
3279
+ */
3280
+ right?: string;
3281
+ }
3282
+ }
3283
+ }
3284
+
2925
3285
  export interface NegativeFinetuneExample {
2926
3286
  /**
2927
3287
  * Find tune the transition condition to this global node
@@ -3255,6 +3615,18 @@ export namespace ConversationFlowComponentResponse {
3255
3615
  */
3256
3616
  condition: string;
3257
3617
 
3618
+ /**
3619
+ * The same global node won't be triggered again within the next N node
3620
+ * transitions.
3621
+ */
3622
+ cool_down?: number;
3623
+
3624
+ /**
3625
+ * The conditions for global node go back. There would be no destination_node_id
3626
+ * for these edges.
3627
+ */
3628
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
3629
+
3258
3630
  /**
3259
3631
  * Don't transition to this node
3260
3632
  */
@@ -3267,6 +3639,66 @@ export namespace ConversationFlowComponentResponse {
3267
3639
  }
3268
3640
 
3269
3641
  export namespace GlobalNodeSetting {
3642
+ export interface GoBackCondition {
3643
+ /**
3644
+ * Unique identifier for the edge
3645
+ */
3646
+ id: string;
3647
+
3648
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
3649
+
3650
+ /**
3651
+ * ID of the destination node
3652
+ */
3653
+ destination_node_id?: string;
3654
+ }
3655
+
3656
+ export namespace GoBackCondition {
3657
+ export interface PromptCondition {
3658
+ /**
3659
+ * Prompt condition text
3660
+ */
3661
+ prompt: string;
3662
+
3663
+ type: 'prompt';
3664
+ }
3665
+
3666
+ export interface EquationCondition {
3667
+ equations: Array<EquationCondition.Equation>;
3668
+
3669
+ operator: '||' | '&&';
3670
+
3671
+ type: 'equation';
3672
+ }
3673
+
3674
+ export namespace EquationCondition {
3675
+ export interface Equation {
3676
+ /**
3677
+ * Left side of the equation
3678
+ */
3679
+ left: string;
3680
+
3681
+ operator:
3682
+ | '=='
3683
+ | '!='
3684
+ | '>'
3685
+ | '>='
3686
+ | '<'
3687
+ | '<='
3688
+ | 'contains'
3689
+ | 'not_contains'
3690
+ | 'exists'
3691
+ | 'not_exist';
3692
+
3693
+ /**
3694
+ * Right side of the equation. The right side of the equation not required when
3695
+ * "exists" or "not_exist" are selected.
3696
+ */
3697
+ right?: string;
3698
+ }
3699
+ }
3700
+ }
3701
+
3270
3702
  export interface NegativeFinetuneExample {
3271
3703
  /**
3272
3704
  * Find tune the transition condition to this global node
@@ -3567,6 +3999,18 @@ export namespace ConversationFlowComponentResponse {
3567
3999
  */
3568
4000
  condition: string;
3569
4001
 
4002
+ /**
4003
+ * The same global node won't be triggered again within the next N node
4004
+ * transitions.
4005
+ */
4006
+ cool_down?: number;
4007
+
4008
+ /**
4009
+ * The conditions for global node go back. There would be no destination_node_id
4010
+ * for these edges.
4011
+ */
4012
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
4013
+
3570
4014
  /**
3571
4015
  * Don't transition to this node
3572
4016
  */
@@ -3579,6 +4023,66 @@ export namespace ConversationFlowComponentResponse {
3579
4023
  }
3580
4024
 
3581
4025
  export namespace GlobalNodeSetting {
4026
+ export interface GoBackCondition {
4027
+ /**
4028
+ * Unique identifier for the edge
4029
+ */
4030
+ id: string;
4031
+
4032
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
4033
+
4034
+ /**
4035
+ * ID of the destination node
4036
+ */
4037
+ destination_node_id?: string;
4038
+ }
4039
+
4040
+ export namespace GoBackCondition {
4041
+ export interface PromptCondition {
4042
+ /**
4043
+ * Prompt condition text
4044
+ */
4045
+ prompt: string;
4046
+
4047
+ type: 'prompt';
4048
+ }
4049
+
4050
+ export interface EquationCondition {
4051
+ equations: Array<EquationCondition.Equation>;
4052
+
4053
+ operator: '||' | '&&';
4054
+
4055
+ type: 'equation';
4056
+ }
4057
+
4058
+ export namespace EquationCondition {
4059
+ export interface Equation {
4060
+ /**
4061
+ * Left side of the equation
4062
+ */
4063
+ left: string;
4064
+
4065
+ operator:
4066
+ | '=='
4067
+ | '!='
4068
+ | '>'
4069
+ | '>='
4070
+ | '<'
4071
+ | '<='
4072
+ | 'contains'
4073
+ | 'not_contains'
4074
+ | 'exists'
4075
+ | 'not_exist';
4076
+
4077
+ /**
4078
+ * Right side of the equation. The right side of the equation not required when
4079
+ * "exists" or "not_exist" are selected.
4080
+ */
4081
+ right?: string;
4082
+ }
4083
+ }
4084
+ }
4085
+
3582
4086
  export interface NegativeFinetuneExample {
3583
4087
  /**
3584
4088
  * Find tune the transition condition to this global node
@@ -3969,6 +4473,18 @@ export namespace ConversationFlowComponentResponse {
3969
4473
  */
3970
4474
  condition: string;
3971
4475
 
4476
+ /**
4477
+ * The same global node won't be triggered again within the next N node
4478
+ * transitions.
4479
+ */
4480
+ cool_down?: number;
4481
+
4482
+ /**
4483
+ * The conditions for global node go back. There would be no destination_node_id
4484
+ * for these edges.
4485
+ */
4486
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
4487
+
3972
4488
  /**
3973
4489
  * Don't transition to this node
3974
4490
  */
@@ -3981,6 +4497,66 @@ export namespace ConversationFlowComponentResponse {
3981
4497
  }
3982
4498
 
3983
4499
  export namespace GlobalNodeSetting {
4500
+ export interface GoBackCondition {
4501
+ /**
4502
+ * Unique identifier for the edge
4503
+ */
4504
+ id: string;
4505
+
4506
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
4507
+
4508
+ /**
4509
+ * ID of the destination node
4510
+ */
4511
+ destination_node_id?: string;
4512
+ }
4513
+
4514
+ export namespace GoBackCondition {
4515
+ export interface PromptCondition {
4516
+ /**
4517
+ * Prompt condition text
4518
+ */
4519
+ prompt: string;
4520
+
4521
+ type: 'prompt';
4522
+ }
4523
+
4524
+ export interface EquationCondition {
4525
+ equations: Array<EquationCondition.Equation>;
4526
+
4527
+ operator: '||' | '&&';
4528
+
4529
+ type: 'equation';
4530
+ }
4531
+
4532
+ export namespace EquationCondition {
4533
+ export interface Equation {
4534
+ /**
4535
+ * Left side of the equation
4536
+ */
4537
+ left: string;
4538
+
4539
+ operator:
4540
+ | '=='
4541
+ | '!='
4542
+ | '>'
4543
+ | '>='
4544
+ | '<'
4545
+ | '<='
4546
+ | 'contains'
4547
+ | 'not_contains'
4548
+ | 'exists'
4549
+ | 'not_exist';
4550
+
4551
+ /**
4552
+ * Right side of the equation. The right side of the equation not required when
4553
+ * "exists" or "not_exist" are selected.
4554
+ */
4555
+ right?: string;
4556
+ }
4557
+ }
4558
+ }
4559
+
3984
4560
  export interface NegativeFinetuneExample {
3985
4561
  /**
3986
4562
  * Find tune the transition condition to this global node
@@ -4245,6 +4821,18 @@ export namespace ConversationFlowComponentResponse {
4245
4821
  */
4246
4822
  condition: string;
4247
4823
 
4824
+ /**
4825
+ * The same global node won't be triggered again within the next N node
4826
+ * transitions.
4827
+ */
4828
+ cool_down?: number;
4829
+
4830
+ /**
4831
+ * The conditions for global node go back. There would be no destination_node_id
4832
+ * for these edges.
4833
+ */
4834
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
4835
+
4248
4836
  /**
4249
4837
  * Don't transition to this node
4250
4838
  */
@@ -4257,6 +4845,66 @@ export namespace ConversationFlowComponentResponse {
4257
4845
  }
4258
4846
 
4259
4847
  export namespace GlobalNodeSetting {
4848
+ export interface GoBackCondition {
4849
+ /**
4850
+ * Unique identifier for the edge
4851
+ */
4852
+ id: string;
4853
+
4854
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
4855
+
4856
+ /**
4857
+ * ID of the destination node
4858
+ */
4859
+ destination_node_id?: string;
4860
+ }
4861
+
4862
+ export namespace GoBackCondition {
4863
+ export interface PromptCondition {
4864
+ /**
4865
+ * Prompt condition text
4866
+ */
4867
+ prompt: string;
4868
+
4869
+ type: 'prompt';
4870
+ }
4871
+
4872
+ export interface EquationCondition {
4873
+ equations: Array<EquationCondition.Equation>;
4874
+
4875
+ operator: '||' | '&&';
4876
+
4877
+ type: 'equation';
4878
+ }
4879
+
4880
+ export namespace EquationCondition {
4881
+ export interface Equation {
4882
+ /**
4883
+ * Left side of the equation
4884
+ */
4885
+ left: string;
4886
+
4887
+ operator:
4888
+ | '=='
4889
+ | '!='
4890
+ | '>'
4891
+ | '>='
4892
+ | '<'
4893
+ | '<='
4894
+ | 'contains'
4895
+ | 'not_contains'
4896
+ | 'exists'
4897
+ | 'not_exist';
4898
+
4899
+ /**
4900
+ * Right side of the equation. The right side of the equation not required when
4901
+ * "exists" or "not_exist" are selected.
4902
+ */
4903
+ right?: string;
4904
+ }
4905
+ }
4906
+ }
4907
+
4260
4908
  export interface NegativeFinetuneExample {
4261
4909
  /**
4262
4910
  * Find tune the transition condition to this global node
@@ -4621,6 +5269,18 @@ export namespace ConversationFlowComponentResponse {
4621
5269
  */
4622
5270
  condition: string;
4623
5271
 
5272
+ /**
5273
+ * The same global node won't be triggered again within the next N node
5274
+ * transitions.
5275
+ */
5276
+ cool_down?: number;
5277
+
5278
+ /**
5279
+ * The conditions for global node go back. There would be no destination_node_id
5280
+ * for these edges.
5281
+ */
5282
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
5283
+
4624
5284
  /**
4625
5285
  * Don't transition to this node
4626
5286
  */
@@ -4633,6 +5293,66 @@ export namespace ConversationFlowComponentResponse {
4633
5293
  }
4634
5294
 
4635
5295
  export namespace GlobalNodeSetting {
5296
+ export interface GoBackCondition {
5297
+ /**
5298
+ * Unique identifier for the edge
5299
+ */
5300
+ id: string;
5301
+
5302
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
5303
+
5304
+ /**
5305
+ * ID of the destination node
5306
+ */
5307
+ destination_node_id?: string;
5308
+ }
5309
+
5310
+ export namespace GoBackCondition {
5311
+ export interface PromptCondition {
5312
+ /**
5313
+ * Prompt condition text
5314
+ */
5315
+ prompt: string;
5316
+
5317
+ type: 'prompt';
5318
+ }
5319
+
5320
+ export interface EquationCondition {
5321
+ equations: Array<EquationCondition.Equation>;
5322
+
5323
+ operator: '||' | '&&';
5324
+
5325
+ type: 'equation';
5326
+ }
5327
+
5328
+ export namespace EquationCondition {
5329
+ export interface Equation {
5330
+ /**
5331
+ * Left side of the equation
5332
+ */
5333
+ left: string;
5334
+
5335
+ operator:
5336
+ | '=='
5337
+ | '!='
5338
+ | '>'
5339
+ | '>='
5340
+ | '<'
5341
+ | '<='
5342
+ | 'contains'
5343
+ | 'not_contains'
5344
+ | 'exists'
5345
+ | 'not_exist';
5346
+
5347
+ /**
5348
+ * Right side of the equation. The right side of the equation not required when
5349
+ * "exists" or "not_exist" are selected.
5350
+ */
5351
+ right?: string;
5352
+ }
5353
+ }
5354
+ }
5355
+
4636
5356
  export interface NegativeFinetuneExample {
4637
5357
  /**
4638
5358
  * Find tune the transition condition to this global node
@@ -4933,6 +5653,18 @@ export namespace ConversationFlowComponentResponse {
4933
5653
  */
4934
5654
  condition: string;
4935
5655
 
5656
+ /**
5657
+ * The same global node won't be triggered again within the next N node
5658
+ * transitions.
5659
+ */
5660
+ cool_down?: number;
5661
+
5662
+ /**
5663
+ * The conditions for global node go back. There would be no destination_node_id
5664
+ * for these edges.
5665
+ */
5666
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
5667
+
4936
5668
  /**
4937
5669
  * Don't transition to this node
4938
5670
  */
@@ -4945,6 +5677,66 @@ export namespace ConversationFlowComponentResponse {
4945
5677
  }
4946
5678
 
4947
5679
  export namespace GlobalNodeSetting {
5680
+ export interface GoBackCondition {
5681
+ /**
5682
+ * Unique identifier for the edge
5683
+ */
5684
+ id: string;
5685
+
5686
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
5687
+
5688
+ /**
5689
+ * ID of the destination node
5690
+ */
5691
+ destination_node_id?: string;
5692
+ }
5693
+
5694
+ export namespace GoBackCondition {
5695
+ export interface PromptCondition {
5696
+ /**
5697
+ * Prompt condition text
5698
+ */
5699
+ prompt: string;
5700
+
5701
+ type: 'prompt';
5702
+ }
5703
+
5704
+ export interface EquationCondition {
5705
+ equations: Array<EquationCondition.Equation>;
5706
+
5707
+ operator: '||' | '&&';
5708
+
5709
+ type: 'equation';
5710
+ }
5711
+
5712
+ export namespace EquationCondition {
5713
+ export interface Equation {
5714
+ /**
5715
+ * Left side of the equation
5716
+ */
5717
+ left: string;
5718
+
5719
+ operator:
5720
+ | '=='
5721
+ | '!='
5722
+ | '>'
5723
+ | '>='
5724
+ | '<'
5725
+ | '<='
5726
+ | 'contains'
5727
+ | 'not_contains'
5728
+ | 'exists'
5729
+ | 'not_exist';
5730
+
5731
+ /**
5732
+ * Right side of the equation. The right side of the equation not required when
5733
+ * "exists" or "not_exist" are selected.
5734
+ */
5735
+ right?: string;
5736
+ }
5737
+ }
5738
+ }
5739
+
4948
5740
  export interface NegativeFinetuneExample {
4949
5741
  /**
4950
5742
  * Find tune the transition condition to this global node
@@ -5061,6 +5853,18 @@ export namespace ConversationFlowComponentResponse {
5061
5853
  */
5062
5854
  condition: string;
5063
5855
 
5856
+ /**
5857
+ * The same global node won't be triggered again within the next N node
5858
+ * transitions.
5859
+ */
5860
+ cool_down?: number;
5861
+
5862
+ /**
5863
+ * The conditions for global node go back. There would be no destination_node_id
5864
+ * for these edges.
5865
+ */
5866
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
5867
+
5064
5868
  /**
5065
5869
  * Don't transition to this node
5066
5870
  */
@@ -5073,6 +5877,66 @@ export namespace ConversationFlowComponentResponse {
5073
5877
  }
5074
5878
 
5075
5879
  export namespace GlobalNodeSetting {
5880
+ export interface GoBackCondition {
5881
+ /**
5882
+ * Unique identifier for the edge
5883
+ */
5884
+ id: string;
5885
+
5886
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
5887
+
5888
+ /**
5889
+ * ID of the destination node
5890
+ */
5891
+ destination_node_id?: string;
5892
+ }
5893
+
5894
+ export namespace GoBackCondition {
5895
+ export interface PromptCondition {
5896
+ /**
5897
+ * Prompt condition text
5898
+ */
5899
+ prompt: string;
5900
+
5901
+ type: 'prompt';
5902
+ }
5903
+
5904
+ export interface EquationCondition {
5905
+ equations: Array<EquationCondition.Equation>;
5906
+
5907
+ operator: '||' | '&&';
5908
+
5909
+ type: 'equation';
5910
+ }
5911
+
5912
+ export namespace EquationCondition {
5913
+ export interface Equation {
5914
+ /**
5915
+ * Left side of the equation
5916
+ */
5917
+ left: string;
5918
+
5919
+ operator:
5920
+ | '=='
5921
+ | '!='
5922
+ | '>'
5923
+ | '>='
5924
+ | '<'
5925
+ | '<='
5926
+ | 'contains'
5927
+ | 'not_contains'
5928
+ | 'exists'
5929
+ | 'not_exist';
5930
+
5931
+ /**
5932
+ * Right side of the equation. The right side of the equation not required when
5933
+ * "exists" or "not_exist" are selected.
5934
+ */
5935
+ right?: string;
5936
+ }
5937
+ }
5938
+ }
5939
+
5076
5940
  export interface NegativeFinetuneExample {
5077
5941
  /**
5078
5942
  * Find tune the transition condition to this global node
@@ -5189,6 +6053,18 @@ export namespace ConversationFlowComponentResponse {
5189
6053
  */
5190
6054
  condition: string;
5191
6055
 
6056
+ /**
6057
+ * The same global node won't be triggered again within the next N node
6058
+ * transitions.
6059
+ */
6060
+ cool_down?: number;
6061
+
6062
+ /**
6063
+ * The conditions for global node go back. There would be no destination_node_id
6064
+ * for these edges.
6065
+ */
6066
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
6067
+
5192
6068
  /**
5193
6069
  * Don't transition to this node
5194
6070
  */
@@ -5201,6 +6077,66 @@ export namespace ConversationFlowComponentResponse {
5201
6077
  }
5202
6078
 
5203
6079
  export namespace GlobalNodeSetting {
6080
+ export interface GoBackCondition {
6081
+ /**
6082
+ * Unique identifier for the edge
6083
+ */
6084
+ id: string;
6085
+
6086
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
6087
+
6088
+ /**
6089
+ * ID of the destination node
6090
+ */
6091
+ destination_node_id?: string;
6092
+ }
6093
+
6094
+ export namespace GoBackCondition {
6095
+ export interface PromptCondition {
6096
+ /**
6097
+ * Prompt condition text
6098
+ */
6099
+ prompt: string;
6100
+
6101
+ type: 'prompt';
6102
+ }
6103
+
6104
+ export interface EquationCondition {
6105
+ equations: Array<EquationCondition.Equation>;
6106
+
6107
+ operator: '||' | '&&';
6108
+
6109
+ type: 'equation';
6110
+ }
6111
+
6112
+ export namespace EquationCondition {
6113
+ export interface Equation {
6114
+ /**
6115
+ * Left side of the equation
6116
+ */
6117
+ left: string;
6118
+
6119
+ operator:
6120
+ | '=='
6121
+ | '!='
6122
+ | '>'
6123
+ | '>='
6124
+ | '<'
6125
+ | '<='
6126
+ | 'contains'
6127
+ | 'not_contains'
6128
+ | 'exists'
6129
+ | 'not_exist';
6130
+
6131
+ /**
6132
+ * Right side of the equation. The right side of the equation not required when
6133
+ * "exists" or "not_exist" are selected.
6134
+ */
6135
+ right?: string;
6136
+ }
6137
+ }
6138
+ }
6139
+
5204
6140
  export interface NegativeFinetuneExample {
5205
6141
  /**
5206
6142
  * Find tune the transition condition to this global node
@@ -5926,6 +6862,18 @@ export namespace ConversationFlowComponentCreateParams {
5926
6862
  */
5927
6863
  condition: string;
5928
6864
 
6865
+ /**
6866
+ * The same global node won't be triggered again within the next N node
6867
+ * transitions.
6868
+ */
6869
+ cool_down?: number;
6870
+
6871
+ /**
6872
+ * The conditions for global node go back. There would be no destination_node_id
6873
+ * for these edges.
6874
+ */
6875
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
6876
+
5929
6877
  /**
5930
6878
  * Don't transition to this node
5931
6879
  */
@@ -5938,6 +6886,66 @@ export namespace ConversationFlowComponentCreateParams {
5938
6886
  }
5939
6887
 
5940
6888
  export namespace GlobalNodeSetting {
6889
+ export interface GoBackCondition {
6890
+ /**
6891
+ * Unique identifier for the edge
6892
+ */
6893
+ id: string;
6894
+
6895
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
6896
+
6897
+ /**
6898
+ * ID of the destination node
6899
+ */
6900
+ destination_node_id?: string;
6901
+ }
6902
+
6903
+ export namespace GoBackCondition {
6904
+ export interface PromptCondition {
6905
+ /**
6906
+ * Prompt condition text
6907
+ */
6908
+ prompt: string;
6909
+
6910
+ type: 'prompt';
6911
+ }
6912
+
6913
+ export interface EquationCondition {
6914
+ equations: Array<EquationCondition.Equation>;
6915
+
6916
+ operator: '||' | '&&';
6917
+
6918
+ type: 'equation';
6919
+ }
6920
+
6921
+ export namespace EquationCondition {
6922
+ export interface Equation {
6923
+ /**
6924
+ * Left side of the equation
6925
+ */
6926
+ left: string;
6927
+
6928
+ operator:
6929
+ | '=='
6930
+ | '!='
6931
+ | '>'
6932
+ | '>='
6933
+ | '<'
6934
+ | '<='
6935
+ | 'contains'
6936
+ | 'not_contains'
6937
+ | 'exists'
6938
+ | 'not_exist';
6939
+
6940
+ /**
6941
+ * Right side of the equation. The right side of the equation not required when
6942
+ * "exists" or "not_exist" are selected.
6943
+ */
6944
+ right?: string;
6945
+ }
6946
+ }
6947
+ }
6948
+
5941
6949
  export interface NegativeFinetuneExample {
5942
6950
  /**
5943
6951
  * Find tune the transition condition to this global node
@@ -7076,6 +8084,18 @@ export namespace ConversationFlowComponentCreateParams {
7076
8084
  */
7077
8085
  condition: string;
7078
8086
 
8087
+ /**
8088
+ * The same global node won't be triggered again within the next N node
8089
+ * transitions.
8090
+ */
8091
+ cool_down?: number;
8092
+
8093
+ /**
8094
+ * The conditions for global node go back. There would be no destination_node_id
8095
+ * for these edges.
8096
+ */
8097
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
8098
+
7079
8099
  /**
7080
8100
  * Don't transition to this node
7081
8101
  */
@@ -7088,6 +8108,66 @@ export namespace ConversationFlowComponentCreateParams {
7088
8108
  }
7089
8109
 
7090
8110
  export namespace GlobalNodeSetting {
8111
+ export interface GoBackCondition {
8112
+ /**
8113
+ * Unique identifier for the edge
8114
+ */
8115
+ id: string;
8116
+
8117
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
8118
+
8119
+ /**
8120
+ * ID of the destination node
8121
+ */
8122
+ destination_node_id?: string;
8123
+ }
8124
+
8125
+ export namespace GoBackCondition {
8126
+ export interface PromptCondition {
8127
+ /**
8128
+ * Prompt condition text
8129
+ */
8130
+ prompt: string;
8131
+
8132
+ type: 'prompt';
8133
+ }
8134
+
8135
+ export interface EquationCondition {
8136
+ equations: Array<EquationCondition.Equation>;
8137
+
8138
+ operator: '||' | '&&';
8139
+
8140
+ type: 'equation';
8141
+ }
8142
+
8143
+ export namespace EquationCondition {
8144
+ export interface Equation {
8145
+ /**
8146
+ * Left side of the equation
8147
+ */
8148
+ left: string;
8149
+
8150
+ operator:
8151
+ | '=='
8152
+ | '!='
8153
+ | '>'
8154
+ | '>='
8155
+ | '<'
8156
+ | '<='
8157
+ | 'contains'
8158
+ | 'not_contains'
8159
+ | 'exists'
8160
+ | 'not_exist';
8161
+
8162
+ /**
8163
+ * Right side of the equation. The right side of the equation not required when
8164
+ * "exists" or "not_exist" are selected.
8165
+ */
8166
+ right?: string;
8167
+ }
8168
+ }
8169
+ }
8170
+
7091
8171
  export interface NegativeFinetuneExample {
7092
8172
  /**
7093
8173
  * Find tune the transition condition to this global node
@@ -7445,6 +8525,18 @@ export namespace ConversationFlowComponentCreateParams {
7445
8525
  */
7446
8526
  condition: string;
7447
8527
 
8528
+ /**
8529
+ * The same global node won't be triggered again within the next N node
8530
+ * transitions.
8531
+ */
8532
+ cool_down?: number;
8533
+
8534
+ /**
8535
+ * The conditions for global node go back. There would be no destination_node_id
8536
+ * for these edges.
8537
+ */
8538
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
8539
+
7448
8540
  /**
7449
8541
  * Don't transition to this node
7450
8542
  */
@@ -7457,6 +8549,66 @@ export namespace ConversationFlowComponentCreateParams {
7457
8549
  }
7458
8550
 
7459
8551
  export namespace GlobalNodeSetting {
8552
+ export interface GoBackCondition {
8553
+ /**
8554
+ * Unique identifier for the edge
8555
+ */
8556
+ id: string;
8557
+
8558
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
8559
+
8560
+ /**
8561
+ * ID of the destination node
8562
+ */
8563
+ destination_node_id?: string;
8564
+ }
8565
+
8566
+ export namespace GoBackCondition {
8567
+ export interface PromptCondition {
8568
+ /**
8569
+ * Prompt condition text
8570
+ */
8571
+ prompt: string;
8572
+
8573
+ type: 'prompt';
8574
+ }
8575
+
8576
+ export interface EquationCondition {
8577
+ equations: Array<EquationCondition.Equation>;
8578
+
8579
+ operator: '||' | '&&';
8580
+
8581
+ type: 'equation';
8582
+ }
8583
+
8584
+ export namespace EquationCondition {
8585
+ export interface Equation {
8586
+ /**
8587
+ * Left side of the equation
8588
+ */
8589
+ left: string;
8590
+
8591
+ operator:
8592
+ | '=='
8593
+ | '!='
8594
+ | '>'
8595
+ | '>='
8596
+ | '<'
8597
+ | '<='
8598
+ | 'contains'
8599
+ | 'not_contains'
8600
+ | 'exists'
8601
+ | 'not_exist';
8602
+
8603
+ /**
8604
+ * Right side of the equation. The right side of the equation not required when
8605
+ * "exists" or "not_exist" are selected.
8606
+ */
8607
+ right?: string;
8608
+ }
8609
+ }
8610
+ }
8611
+
7460
8612
  export interface NegativeFinetuneExample {
7461
8613
  /**
7462
8614
  * Find tune the transition condition to this global node
@@ -8009,6 +9161,18 @@ export namespace ConversationFlowComponentCreateParams {
8009
9161
  */
8010
9162
  condition: string;
8011
9163
 
9164
+ /**
9165
+ * The same global node won't be triggered again within the next N node
9166
+ * transitions.
9167
+ */
9168
+ cool_down?: number;
9169
+
9170
+ /**
9171
+ * The conditions for global node go back. There would be no destination_node_id
9172
+ * for these edges.
9173
+ */
9174
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
9175
+
8012
9176
  /**
8013
9177
  * Don't transition to this node
8014
9178
  */
@@ -8021,6 +9185,66 @@ export namespace ConversationFlowComponentCreateParams {
8021
9185
  }
8022
9186
 
8023
9187
  export namespace GlobalNodeSetting {
9188
+ export interface GoBackCondition {
9189
+ /**
9190
+ * Unique identifier for the edge
9191
+ */
9192
+ id: string;
9193
+
9194
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
9195
+
9196
+ /**
9197
+ * ID of the destination node
9198
+ */
9199
+ destination_node_id?: string;
9200
+ }
9201
+
9202
+ export namespace GoBackCondition {
9203
+ export interface PromptCondition {
9204
+ /**
9205
+ * Prompt condition text
9206
+ */
9207
+ prompt: string;
9208
+
9209
+ type: 'prompt';
9210
+ }
9211
+
9212
+ export interface EquationCondition {
9213
+ equations: Array<EquationCondition.Equation>;
9214
+
9215
+ operator: '||' | '&&';
9216
+
9217
+ type: 'equation';
9218
+ }
9219
+
9220
+ export namespace EquationCondition {
9221
+ export interface Equation {
9222
+ /**
9223
+ * Left side of the equation
9224
+ */
9225
+ left: string;
9226
+
9227
+ operator:
9228
+ | '=='
9229
+ | '!='
9230
+ | '>'
9231
+ | '>='
9232
+ | '<'
9233
+ | '<='
9234
+ | 'contains'
9235
+ | 'not_contains'
9236
+ | 'exists'
9237
+ | 'not_exist';
9238
+
9239
+ /**
9240
+ * Right side of the equation. The right side of the equation not required when
9241
+ * "exists" or "not_exist" are selected.
9242
+ */
9243
+ right?: string;
9244
+ }
9245
+ }
9246
+ }
9247
+
8024
9248
  export interface NegativeFinetuneExample {
8025
9249
  /**
8026
9250
  * Find tune the transition condition to this global node
@@ -8323,6 +9547,18 @@ export namespace ConversationFlowComponentCreateParams {
8323
9547
  */
8324
9548
  condition: string;
8325
9549
 
9550
+ /**
9551
+ * The same global node won't be triggered again within the next N node
9552
+ * transitions.
9553
+ */
9554
+ cool_down?: number;
9555
+
9556
+ /**
9557
+ * The conditions for global node go back. There would be no destination_node_id
9558
+ * for these edges.
9559
+ */
9560
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
9561
+
8326
9562
  /**
8327
9563
  * Don't transition to this node
8328
9564
  */
@@ -8335,6 +9571,66 @@ export namespace ConversationFlowComponentCreateParams {
8335
9571
  }
8336
9572
 
8337
9573
  export namespace GlobalNodeSetting {
9574
+ export interface GoBackCondition {
9575
+ /**
9576
+ * Unique identifier for the edge
9577
+ */
9578
+ id: string;
9579
+
9580
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
9581
+
9582
+ /**
9583
+ * ID of the destination node
9584
+ */
9585
+ destination_node_id?: string;
9586
+ }
9587
+
9588
+ export namespace GoBackCondition {
9589
+ export interface PromptCondition {
9590
+ /**
9591
+ * Prompt condition text
9592
+ */
9593
+ prompt: string;
9594
+
9595
+ type: 'prompt';
9596
+ }
9597
+
9598
+ export interface EquationCondition {
9599
+ equations: Array<EquationCondition.Equation>;
9600
+
9601
+ operator: '||' | '&&';
9602
+
9603
+ type: 'equation';
9604
+ }
9605
+
9606
+ export namespace EquationCondition {
9607
+ export interface Equation {
9608
+ /**
9609
+ * Left side of the equation
9610
+ */
9611
+ left: string;
9612
+
9613
+ operator:
9614
+ | '=='
9615
+ | '!='
9616
+ | '>'
9617
+ | '>='
9618
+ | '<'
9619
+ | '<='
9620
+ | 'contains'
9621
+ | 'not_contains'
9622
+ | 'exists'
9623
+ | 'not_exist';
9624
+
9625
+ /**
9626
+ * Right side of the equation. The right side of the equation not required when
9627
+ * "exists" or "not_exist" are selected.
9628
+ */
9629
+ right?: string;
9630
+ }
9631
+ }
9632
+ }
9633
+
8338
9634
  export interface NegativeFinetuneExample {
8339
9635
  /**
8340
9636
  * Find tune the transition condition to this global node
@@ -8668,6 +9964,18 @@ export namespace ConversationFlowComponentCreateParams {
8668
9964
  */
8669
9965
  condition: string;
8670
9966
 
9967
+ /**
9968
+ * The same global node won't be triggered again within the next N node
9969
+ * transitions.
9970
+ */
9971
+ cool_down?: number;
9972
+
9973
+ /**
9974
+ * The conditions for global node go back. There would be no destination_node_id
9975
+ * for these edges.
9976
+ */
9977
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
9978
+
8671
9979
  /**
8672
9980
  * Don't transition to this node
8673
9981
  */
@@ -8680,6 +9988,66 @@ export namespace ConversationFlowComponentCreateParams {
8680
9988
  }
8681
9989
 
8682
9990
  export namespace GlobalNodeSetting {
9991
+ export interface GoBackCondition {
9992
+ /**
9993
+ * Unique identifier for the edge
9994
+ */
9995
+ id: string;
9996
+
9997
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
9998
+
9999
+ /**
10000
+ * ID of the destination node
10001
+ */
10002
+ destination_node_id?: string;
10003
+ }
10004
+
10005
+ export namespace GoBackCondition {
10006
+ export interface PromptCondition {
10007
+ /**
10008
+ * Prompt condition text
10009
+ */
10010
+ prompt: string;
10011
+
10012
+ type: 'prompt';
10013
+ }
10014
+
10015
+ export interface EquationCondition {
10016
+ equations: Array<EquationCondition.Equation>;
10017
+
10018
+ operator: '||' | '&&';
10019
+
10020
+ type: 'equation';
10021
+ }
10022
+
10023
+ export namespace EquationCondition {
10024
+ export interface Equation {
10025
+ /**
10026
+ * Left side of the equation
10027
+ */
10028
+ left: string;
10029
+
10030
+ operator:
10031
+ | '=='
10032
+ | '!='
10033
+ | '>'
10034
+ | '>='
10035
+ | '<'
10036
+ | '<='
10037
+ | 'contains'
10038
+ | 'not_contains'
10039
+ | 'exists'
10040
+ | 'not_exist';
10041
+
10042
+ /**
10043
+ * Right side of the equation. The right side of the equation not required when
10044
+ * "exists" or "not_exist" are selected.
10045
+ */
10046
+ right?: string;
10047
+ }
10048
+ }
10049
+ }
10050
+
8683
10051
  export interface NegativeFinetuneExample {
8684
10052
  /**
8685
10053
  * Find tune the transition condition to this global node
@@ -8980,6 +10348,18 @@ export namespace ConversationFlowComponentCreateParams {
8980
10348
  */
8981
10349
  condition: string;
8982
10350
 
10351
+ /**
10352
+ * The same global node won't be triggered again within the next N node
10353
+ * transitions.
10354
+ */
10355
+ cool_down?: number;
10356
+
10357
+ /**
10358
+ * The conditions for global node go back. There would be no destination_node_id
10359
+ * for these edges.
10360
+ */
10361
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
10362
+
8983
10363
  /**
8984
10364
  * Don't transition to this node
8985
10365
  */
@@ -8992,6 +10372,66 @@ export namespace ConversationFlowComponentCreateParams {
8992
10372
  }
8993
10373
 
8994
10374
  export namespace GlobalNodeSetting {
10375
+ export interface GoBackCondition {
10376
+ /**
10377
+ * Unique identifier for the edge
10378
+ */
10379
+ id: string;
10380
+
10381
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
10382
+
10383
+ /**
10384
+ * ID of the destination node
10385
+ */
10386
+ destination_node_id?: string;
10387
+ }
10388
+
10389
+ export namespace GoBackCondition {
10390
+ export interface PromptCondition {
10391
+ /**
10392
+ * Prompt condition text
10393
+ */
10394
+ prompt: string;
10395
+
10396
+ type: 'prompt';
10397
+ }
10398
+
10399
+ export interface EquationCondition {
10400
+ equations: Array<EquationCondition.Equation>;
10401
+
10402
+ operator: '||' | '&&';
10403
+
10404
+ type: 'equation';
10405
+ }
10406
+
10407
+ export namespace EquationCondition {
10408
+ export interface Equation {
10409
+ /**
10410
+ * Left side of the equation
10411
+ */
10412
+ left: string;
10413
+
10414
+ operator:
10415
+ | '=='
10416
+ | '!='
10417
+ | '>'
10418
+ | '>='
10419
+ | '<'
10420
+ | '<='
10421
+ | 'contains'
10422
+ | 'not_contains'
10423
+ | 'exists'
10424
+ | 'not_exist';
10425
+
10426
+ /**
10427
+ * Right side of the equation. The right side of the equation not required when
10428
+ * "exists" or "not_exist" are selected.
10429
+ */
10430
+ right?: string;
10431
+ }
10432
+ }
10433
+ }
10434
+
8995
10435
  export interface NegativeFinetuneExample {
8996
10436
  /**
8997
10437
  * Find tune the transition condition to this global node
@@ -9382,6 +10822,18 @@ export namespace ConversationFlowComponentCreateParams {
9382
10822
  */
9383
10823
  condition: string;
9384
10824
 
10825
+ /**
10826
+ * The same global node won't be triggered again within the next N node
10827
+ * transitions.
10828
+ */
10829
+ cool_down?: number;
10830
+
10831
+ /**
10832
+ * The conditions for global node go back. There would be no destination_node_id
10833
+ * for these edges.
10834
+ */
10835
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
10836
+
9385
10837
  /**
9386
10838
  * Don't transition to this node
9387
10839
  */
@@ -9394,6 +10846,66 @@ export namespace ConversationFlowComponentCreateParams {
9394
10846
  }
9395
10847
 
9396
10848
  export namespace GlobalNodeSetting {
10849
+ export interface GoBackCondition {
10850
+ /**
10851
+ * Unique identifier for the edge
10852
+ */
10853
+ id: string;
10854
+
10855
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
10856
+
10857
+ /**
10858
+ * ID of the destination node
10859
+ */
10860
+ destination_node_id?: string;
10861
+ }
10862
+
10863
+ export namespace GoBackCondition {
10864
+ export interface PromptCondition {
10865
+ /**
10866
+ * Prompt condition text
10867
+ */
10868
+ prompt: string;
10869
+
10870
+ type: 'prompt';
10871
+ }
10872
+
10873
+ export interface EquationCondition {
10874
+ equations: Array<EquationCondition.Equation>;
10875
+
10876
+ operator: '||' | '&&';
10877
+
10878
+ type: 'equation';
10879
+ }
10880
+
10881
+ export namespace EquationCondition {
10882
+ export interface Equation {
10883
+ /**
10884
+ * Left side of the equation
10885
+ */
10886
+ left: string;
10887
+
10888
+ operator:
10889
+ | '=='
10890
+ | '!='
10891
+ | '>'
10892
+ | '>='
10893
+ | '<'
10894
+ | '<='
10895
+ | 'contains'
10896
+ | 'not_contains'
10897
+ | 'exists'
10898
+ | 'not_exist';
10899
+
10900
+ /**
10901
+ * Right side of the equation. The right side of the equation not required when
10902
+ * "exists" or "not_exist" are selected.
10903
+ */
10904
+ right?: string;
10905
+ }
10906
+ }
10907
+ }
10908
+
9397
10909
  export interface NegativeFinetuneExample {
9398
10910
  /**
9399
10911
  * Find tune the transition condition to this global node
@@ -9658,6 +11170,18 @@ export namespace ConversationFlowComponentCreateParams {
9658
11170
  */
9659
11171
  condition: string;
9660
11172
 
11173
+ /**
11174
+ * The same global node won't be triggered again within the next N node
11175
+ * transitions.
11176
+ */
11177
+ cool_down?: number;
11178
+
11179
+ /**
11180
+ * The conditions for global node go back. There would be no destination_node_id
11181
+ * for these edges.
11182
+ */
11183
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
11184
+
9661
11185
  /**
9662
11186
  * Don't transition to this node
9663
11187
  */
@@ -9670,6 +11194,66 @@ export namespace ConversationFlowComponentCreateParams {
9670
11194
  }
9671
11195
 
9672
11196
  export namespace GlobalNodeSetting {
11197
+ export interface GoBackCondition {
11198
+ /**
11199
+ * Unique identifier for the edge
11200
+ */
11201
+ id: string;
11202
+
11203
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
11204
+
11205
+ /**
11206
+ * ID of the destination node
11207
+ */
11208
+ destination_node_id?: string;
11209
+ }
11210
+
11211
+ export namespace GoBackCondition {
11212
+ export interface PromptCondition {
11213
+ /**
11214
+ * Prompt condition text
11215
+ */
11216
+ prompt: string;
11217
+
11218
+ type: 'prompt';
11219
+ }
11220
+
11221
+ export interface EquationCondition {
11222
+ equations: Array<EquationCondition.Equation>;
11223
+
11224
+ operator: '||' | '&&';
11225
+
11226
+ type: 'equation';
11227
+ }
11228
+
11229
+ export namespace EquationCondition {
11230
+ export interface Equation {
11231
+ /**
11232
+ * Left side of the equation
11233
+ */
11234
+ left: string;
11235
+
11236
+ operator:
11237
+ | '=='
11238
+ | '!='
11239
+ | '>'
11240
+ | '>='
11241
+ | '<'
11242
+ | '<='
11243
+ | 'contains'
11244
+ | 'not_contains'
11245
+ | 'exists'
11246
+ | 'not_exist';
11247
+
11248
+ /**
11249
+ * Right side of the equation. The right side of the equation not required when
11250
+ * "exists" or "not_exist" are selected.
11251
+ */
11252
+ right?: string;
11253
+ }
11254
+ }
11255
+ }
11256
+
9673
11257
  export interface NegativeFinetuneExample {
9674
11258
  /**
9675
11259
  * Find tune the transition condition to this global node
@@ -10034,6 +11618,18 @@ export namespace ConversationFlowComponentCreateParams {
10034
11618
  */
10035
11619
  condition: string;
10036
11620
 
11621
+ /**
11622
+ * The same global node won't be triggered again within the next N node
11623
+ * transitions.
11624
+ */
11625
+ cool_down?: number;
11626
+
11627
+ /**
11628
+ * The conditions for global node go back. There would be no destination_node_id
11629
+ * for these edges.
11630
+ */
11631
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
11632
+
10037
11633
  /**
10038
11634
  * Don't transition to this node
10039
11635
  */
@@ -10046,6 +11642,66 @@ export namespace ConversationFlowComponentCreateParams {
10046
11642
  }
10047
11643
 
10048
11644
  export namespace GlobalNodeSetting {
11645
+ export interface GoBackCondition {
11646
+ /**
11647
+ * Unique identifier for the edge
11648
+ */
11649
+ id: string;
11650
+
11651
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
11652
+
11653
+ /**
11654
+ * ID of the destination node
11655
+ */
11656
+ destination_node_id?: string;
11657
+ }
11658
+
11659
+ export namespace GoBackCondition {
11660
+ export interface PromptCondition {
11661
+ /**
11662
+ * Prompt condition text
11663
+ */
11664
+ prompt: string;
11665
+
11666
+ type: 'prompt';
11667
+ }
11668
+
11669
+ export interface EquationCondition {
11670
+ equations: Array<EquationCondition.Equation>;
11671
+
11672
+ operator: '||' | '&&';
11673
+
11674
+ type: 'equation';
11675
+ }
11676
+
11677
+ export namespace EquationCondition {
11678
+ export interface Equation {
11679
+ /**
11680
+ * Left side of the equation
11681
+ */
11682
+ left: string;
11683
+
11684
+ operator:
11685
+ | '=='
11686
+ | '!='
11687
+ | '>'
11688
+ | '>='
11689
+ | '<'
11690
+ | '<='
11691
+ | 'contains'
11692
+ | 'not_contains'
11693
+ | 'exists'
11694
+ | 'not_exist';
11695
+
11696
+ /**
11697
+ * Right side of the equation. The right side of the equation not required when
11698
+ * "exists" or "not_exist" are selected.
11699
+ */
11700
+ right?: string;
11701
+ }
11702
+ }
11703
+ }
11704
+
10049
11705
  export interface NegativeFinetuneExample {
10050
11706
  /**
10051
11707
  * Find tune the transition condition to this global node
@@ -10346,6 +12002,18 @@ export namespace ConversationFlowComponentCreateParams {
10346
12002
  */
10347
12003
  condition: string;
10348
12004
 
12005
+ /**
12006
+ * The same global node won't be triggered again within the next N node
12007
+ * transitions.
12008
+ */
12009
+ cool_down?: number;
12010
+
12011
+ /**
12012
+ * The conditions for global node go back. There would be no destination_node_id
12013
+ * for these edges.
12014
+ */
12015
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
12016
+
10349
12017
  /**
10350
12018
  * Don't transition to this node
10351
12019
  */
@@ -10358,6 +12026,66 @@ export namespace ConversationFlowComponentCreateParams {
10358
12026
  }
10359
12027
 
10360
12028
  export namespace GlobalNodeSetting {
12029
+ export interface GoBackCondition {
12030
+ /**
12031
+ * Unique identifier for the edge
12032
+ */
12033
+ id: string;
12034
+
12035
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
12036
+
12037
+ /**
12038
+ * ID of the destination node
12039
+ */
12040
+ destination_node_id?: string;
12041
+ }
12042
+
12043
+ export namespace GoBackCondition {
12044
+ export interface PromptCondition {
12045
+ /**
12046
+ * Prompt condition text
12047
+ */
12048
+ prompt: string;
12049
+
12050
+ type: 'prompt';
12051
+ }
12052
+
12053
+ export interface EquationCondition {
12054
+ equations: Array<EquationCondition.Equation>;
12055
+
12056
+ operator: '||' | '&&';
12057
+
12058
+ type: 'equation';
12059
+ }
12060
+
12061
+ export namespace EquationCondition {
12062
+ export interface Equation {
12063
+ /**
12064
+ * Left side of the equation
12065
+ */
12066
+ left: string;
12067
+
12068
+ operator:
12069
+ | '=='
12070
+ | '!='
12071
+ | '>'
12072
+ | '>='
12073
+ | '<'
12074
+ | '<='
12075
+ | 'contains'
12076
+ | 'not_contains'
12077
+ | 'exists'
12078
+ | 'not_exist';
12079
+
12080
+ /**
12081
+ * Right side of the equation. The right side of the equation not required when
12082
+ * "exists" or "not_exist" are selected.
12083
+ */
12084
+ right?: string;
12085
+ }
12086
+ }
12087
+ }
12088
+
10361
12089
  export interface NegativeFinetuneExample {
10362
12090
  /**
10363
12091
  * Find tune the transition condition to this global node
@@ -10474,6 +12202,18 @@ export namespace ConversationFlowComponentCreateParams {
10474
12202
  */
10475
12203
  condition: string;
10476
12204
 
12205
+ /**
12206
+ * The same global node won't be triggered again within the next N node
12207
+ * transitions.
12208
+ */
12209
+ cool_down?: number;
12210
+
12211
+ /**
12212
+ * The conditions for global node go back. There would be no destination_node_id
12213
+ * for these edges.
12214
+ */
12215
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
12216
+
10477
12217
  /**
10478
12218
  * Don't transition to this node
10479
12219
  */
@@ -10486,6 +12226,66 @@ export namespace ConversationFlowComponentCreateParams {
10486
12226
  }
10487
12227
 
10488
12228
  export namespace GlobalNodeSetting {
12229
+ export interface GoBackCondition {
12230
+ /**
12231
+ * Unique identifier for the edge
12232
+ */
12233
+ id: string;
12234
+
12235
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
12236
+
12237
+ /**
12238
+ * ID of the destination node
12239
+ */
12240
+ destination_node_id?: string;
12241
+ }
12242
+
12243
+ export namespace GoBackCondition {
12244
+ export interface PromptCondition {
12245
+ /**
12246
+ * Prompt condition text
12247
+ */
12248
+ prompt: string;
12249
+
12250
+ type: 'prompt';
12251
+ }
12252
+
12253
+ export interface EquationCondition {
12254
+ equations: Array<EquationCondition.Equation>;
12255
+
12256
+ operator: '||' | '&&';
12257
+
12258
+ type: 'equation';
12259
+ }
12260
+
12261
+ export namespace EquationCondition {
12262
+ export interface Equation {
12263
+ /**
12264
+ * Left side of the equation
12265
+ */
12266
+ left: string;
12267
+
12268
+ operator:
12269
+ | '=='
12270
+ | '!='
12271
+ | '>'
12272
+ | '>='
12273
+ | '<'
12274
+ | '<='
12275
+ | 'contains'
12276
+ | 'not_contains'
12277
+ | 'exists'
12278
+ | 'not_exist';
12279
+
12280
+ /**
12281
+ * Right side of the equation. The right side of the equation not required when
12282
+ * "exists" or "not_exist" are selected.
12283
+ */
12284
+ right?: string;
12285
+ }
12286
+ }
12287
+ }
12288
+
10489
12289
  export interface NegativeFinetuneExample {
10490
12290
  /**
10491
12291
  * Find tune the transition condition to this global node
@@ -10602,6 +12402,18 @@ export namespace ConversationFlowComponentCreateParams {
10602
12402
  */
10603
12403
  condition: string;
10604
12404
 
12405
+ /**
12406
+ * The same global node won't be triggered again within the next N node
12407
+ * transitions.
12408
+ */
12409
+ cool_down?: number;
12410
+
12411
+ /**
12412
+ * The conditions for global node go back. There would be no destination_node_id
12413
+ * for these edges.
12414
+ */
12415
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
12416
+
10605
12417
  /**
10606
12418
  * Don't transition to this node
10607
12419
  */
@@ -10614,6 +12426,66 @@ export namespace ConversationFlowComponentCreateParams {
10614
12426
  }
10615
12427
 
10616
12428
  export namespace GlobalNodeSetting {
12429
+ export interface GoBackCondition {
12430
+ /**
12431
+ * Unique identifier for the edge
12432
+ */
12433
+ id: string;
12434
+
12435
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
12436
+
12437
+ /**
12438
+ * ID of the destination node
12439
+ */
12440
+ destination_node_id?: string;
12441
+ }
12442
+
12443
+ export namespace GoBackCondition {
12444
+ export interface PromptCondition {
12445
+ /**
12446
+ * Prompt condition text
12447
+ */
12448
+ prompt: string;
12449
+
12450
+ type: 'prompt';
12451
+ }
12452
+
12453
+ export interface EquationCondition {
12454
+ equations: Array<EquationCondition.Equation>;
12455
+
12456
+ operator: '||' | '&&';
12457
+
12458
+ type: 'equation';
12459
+ }
12460
+
12461
+ export namespace EquationCondition {
12462
+ export interface Equation {
12463
+ /**
12464
+ * Left side of the equation
12465
+ */
12466
+ left: string;
12467
+
12468
+ operator:
12469
+ | '=='
12470
+ | '!='
12471
+ | '>'
12472
+ | '>='
12473
+ | '<'
12474
+ | '<='
12475
+ | 'contains'
12476
+ | 'not_contains'
12477
+ | 'exists'
12478
+ | 'not_exist';
12479
+
12480
+ /**
12481
+ * Right side of the equation. The right side of the equation not required when
12482
+ * "exists" or "not_exist" are selected.
12483
+ */
12484
+ right?: string;
12485
+ }
12486
+ }
12487
+ }
12488
+
10617
12489
  export interface NegativeFinetuneExample {
10618
12490
  /**
10619
12491
  * Find tune the transition condition to this global node
@@ -11371,6 +13243,18 @@ export namespace ConversationFlowComponentUpdateParams {
11371
13243
  */
11372
13244
  condition: string;
11373
13245
 
13246
+ /**
13247
+ * The same global node won't be triggered again within the next N node
13248
+ * transitions.
13249
+ */
13250
+ cool_down?: number;
13251
+
13252
+ /**
13253
+ * The conditions for global node go back. There would be no destination_node_id
13254
+ * for these edges.
13255
+ */
13256
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
13257
+
11374
13258
  /**
11375
13259
  * Don't transition to this node
11376
13260
  */
@@ -11383,6 +13267,66 @@ export namespace ConversationFlowComponentUpdateParams {
11383
13267
  }
11384
13268
 
11385
13269
  export namespace GlobalNodeSetting {
13270
+ export interface GoBackCondition {
13271
+ /**
13272
+ * Unique identifier for the edge
13273
+ */
13274
+ id: string;
13275
+
13276
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
13277
+
13278
+ /**
13279
+ * ID of the destination node
13280
+ */
13281
+ destination_node_id?: string;
13282
+ }
13283
+
13284
+ export namespace GoBackCondition {
13285
+ export interface PromptCondition {
13286
+ /**
13287
+ * Prompt condition text
13288
+ */
13289
+ prompt: string;
13290
+
13291
+ type: 'prompt';
13292
+ }
13293
+
13294
+ export interface EquationCondition {
13295
+ equations: Array<EquationCondition.Equation>;
13296
+
13297
+ operator: '||' | '&&';
13298
+
13299
+ type: 'equation';
13300
+ }
13301
+
13302
+ export namespace EquationCondition {
13303
+ export interface Equation {
13304
+ /**
13305
+ * Left side of the equation
13306
+ */
13307
+ left: string;
13308
+
13309
+ operator:
13310
+ | '=='
13311
+ | '!='
13312
+ | '>'
13313
+ | '>='
13314
+ | '<'
13315
+ | '<='
13316
+ | 'contains'
13317
+ | 'not_contains'
13318
+ | 'exists'
13319
+ | 'not_exist';
13320
+
13321
+ /**
13322
+ * Right side of the equation. The right side of the equation not required when
13323
+ * "exists" or "not_exist" are selected.
13324
+ */
13325
+ right?: string;
13326
+ }
13327
+ }
13328
+ }
13329
+
11386
13330
  export interface NegativeFinetuneExample {
11387
13331
  /**
11388
13332
  * Find tune the transition condition to this global node
@@ -12521,6 +14465,18 @@ export namespace ConversationFlowComponentUpdateParams {
12521
14465
  */
12522
14466
  condition: string;
12523
14467
 
14468
+ /**
14469
+ * The same global node won't be triggered again within the next N node
14470
+ * transitions.
14471
+ */
14472
+ cool_down?: number;
14473
+
14474
+ /**
14475
+ * The conditions for global node go back. There would be no destination_node_id
14476
+ * for these edges.
14477
+ */
14478
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
14479
+
12524
14480
  /**
12525
14481
  * Don't transition to this node
12526
14482
  */
@@ -12533,6 +14489,66 @@ export namespace ConversationFlowComponentUpdateParams {
12533
14489
  }
12534
14490
 
12535
14491
  export namespace GlobalNodeSetting {
14492
+ export interface GoBackCondition {
14493
+ /**
14494
+ * Unique identifier for the edge
14495
+ */
14496
+ id: string;
14497
+
14498
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
14499
+
14500
+ /**
14501
+ * ID of the destination node
14502
+ */
14503
+ destination_node_id?: string;
14504
+ }
14505
+
14506
+ export namespace GoBackCondition {
14507
+ export interface PromptCondition {
14508
+ /**
14509
+ * Prompt condition text
14510
+ */
14511
+ prompt: string;
14512
+
14513
+ type: 'prompt';
14514
+ }
14515
+
14516
+ export interface EquationCondition {
14517
+ equations: Array<EquationCondition.Equation>;
14518
+
14519
+ operator: '||' | '&&';
14520
+
14521
+ type: 'equation';
14522
+ }
14523
+
14524
+ export namespace EquationCondition {
14525
+ export interface Equation {
14526
+ /**
14527
+ * Left side of the equation
14528
+ */
14529
+ left: string;
14530
+
14531
+ operator:
14532
+ | '=='
14533
+ | '!='
14534
+ | '>'
14535
+ | '>='
14536
+ | '<'
14537
+ | '<='
14538
+ | 'contains'
14539
+ | 'not_contains'
14540
+ | 'exists'
14541
+ | 'not_exist';
14542
+
14543
+ /**
14544
+ * Right side of the equation. The right side of the equation not required when
14545
+ * "exists" or "not_exist" are selected.
14546
+ */
14547
+ right?: string;
14548
+ }
14549
+ }
14550
+ }
14551
+
12536
14552
  export interface NegativeFinetuneExample {
12537
14553
  /**
12538
14554
  * Find tune the transition condition to this global node
@@ -12890,6 +14906,18 @@ export namespace ConversationFlowComponentUpdateParams {
12890
14906
  */
12891
14907
  condition: string;
12892
14908
 
14909
+ /**
14910
+ * The same global node won't be triggered again within the next N node
14911
+ * transitions.
14912
+ */
14913
+ cool_down?: number;
14914
+
14915
+ /**
14916
+ * The conditions for global node go back. There would be no destination_node_id
14917
+ * for these edges.
14918
+ */
14919
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
14920
+
12893
14921
  /**
12894
14922
  * Don't transition to this node
12895
14923
  */
@@ -12902,6 +14930,66 @@ export namespace ConversationFlowComponentUpdateParams {
12902
14930
  }
12903
14931
 
12904
14932
  export namespace GlobalNodeSetting {
14933
+ export interface GoBackCondition {
14934
+ /**
14935
+ * Unique identifier for the edge
14936
+ */
14937
+ id: string;
14938
+
14939
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
14940
+
14941
+ /**
14942
+ * ID of the destination node
14943
+ */
14944
+ destination_node_id?: string;
14945
+ }
14946
+
14947
+ export namespace GoBackCondition {
14948
+ export interface PromptCondition {
14949
+ /**
14950
+ * Prompt condition text
14951
+ */
14952
+ prompt: string;
14953
+
14954
+ type: 'prompt';
14955
+ }
14956
+
14957
+ export interface EquationCondition {
14958
+ equations: Array<EquationCondition.Equation>;
14959
+
14960
+ operator: '||' | '&&';
14961
+
14962
+ type: 'equation';
14963
+ }
14964
+
14965
+ export namespace EquationCondition {
14966
+ export interface Equation {
14967
+ /**
14968
+ * Left side of the equation
14969
+ */
14970
+ left: string;
14971
+
14972
+ operator:
14973
+ | '=='
14974
+ | '!='
14975
+ | '>'
14976
+ | '>='
14977
+ | '<'
14978
+ | '<='
14979
+ | 'contains'
14980
+ | 'not_contains'
14981
+ | 'exists'
14982
+ | 'not_exist';
14983
+
14984
+ /**
14985
+ * Right side of the equation. The right side of the equation not required when
14986
+ * "exists" or "not_exist" are selected.
14987
+ */
14988
+ right?: string;
14989
+ }
14990
+ }
14991
+ }
14992
+
12905
14993
  export interface NegativeFinetuneExample {
12906
14994
  /**
12907
14995
  * Find tune the transition condition to this global node
@@ -13454,6 +15542,18 @@ export namespace ConversationFlowComponentUpdateParams {
13454
15542
  */
13455
15543
  condition: string;
13456
15544
 
15545
+ /**
15546
+ * The same global node won't be triggered again within the next N node
15547
+ * transitions.
15548
+ */
15549
+ cool_down?: number;
15550
+
15551
+ /**
15552
+ * The conditions for global node go back. There would be no destination_node_id
15553
+ * for these edges.
15554
+ */
15555
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
15556
+
13457
15557
  /**
13458
15558
  * Don't transition to this node
13459
15559
  */
@@ -13466,6 +15566,66 @@ export namespace ConversationFlowComponentUpdateParams {
13466
15566
  }
13467
15567
 
13468
15568
  export namespace GlobalNodeSetting {
15569
+ export interface GoBackCondition {
15570
+ /**
15571
+ * Unique identifier for the edge
15572
+ */
15573
+ id: string;
15574
+
15575
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
15576
+
15577
+ /**
15578
+ * ID of the destination node
15579
+ */
15580
+ destination_node_id?: string;
15581
+ }
15582
+
15583
+ export namespace GoBackCondition {
15584
+ export interface PromptCondition {
15585
+ /**
15586
+ * Prompt condition text
15587
+ */
15588
+ prompt: string;
15589
+
15590
+ type: 'prompt';
15591
+ }
15592
+
15593
+ export interface EquationCondition {
15594
+ equations: Array<EquationCondition.Equation>;
15595
+
15596
+ operator: '||' | '&&';
15597
+
15598
+ type: 'equation';
15599
+ }
15600
+
15601
+ export namespace EquationCondition {
15602
+ export interface Equation {
15603
+ /**
15604
+ * Left side of the equation
15605
+ */
15606
+ left: string;
15607
+
15608
+ operator:
15609
+ | '=='
15610
+ | '!='
15611
+ | '>'
15612
+ | '>='
15613
+ | '<'
15614
+ | '<='
15615
+ | 'contains'
15616
+ | 'not_contains'
15617
+ | 'exists'
15618
+ | 'not_exist';
15619
+
15620
+ /**
15621
+ * Right side of the equation. The right side of the equation not required when
15622
+ * "exists" or "not_exist" are selected.
15623
+ */
15624
+ right?: string;
15625
+ }
15626
+ }
15627
+ }
15628
+
13469
15629
  export interface NegativeFinetuneExample {
13470
15630
  /**
13471
15631
  * Find tune the transition condition to this global node
@@ -13768,6 +15928,18 @@ export namespace ConversationFlowComponentUpdateParams {
13768
15928
  */
13769
15929
  condition: string;
13770
15930
 
15931
+ /**
15932
+ * The same global node won't be triggered again within the next N node
15933
+ * transitions.
15934
+ */
15935
+ cool_down?: number;
15936
+
15937
+ /**
15938
+ * The conditions for global node go back. There would be no destination_node_id
15939
+ * for these edges.
15940
+ */
15941
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
15942
+
13771
15943
  /**
13772
15944
  * Don't transition to this node
13773
15945
  */
@@ -13780,6 +15952,66 @@ export namespace ConversationFlowComponentUpdateParams {
13780
15952
  }
13781
15953
 
13782
15954
  export namespace GlobalNodeSetting {
15955
+ export interface GoBackCondition {
15956
+ /**
15957
+ * Unique identifier for the edge
15958
+ */
15959
+ id: string;
15960
+
15961
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
15962
+
15963
+ /**
15964
+ * ID of the destination node
15965
+ */
15966
+ destination_node_id?: string;
15967
+ }
15968
+
15969
+ export namespace GoBackCondition {
15970
+ export interface PromptCondition {
15971
+ /**
15972
+ * Prompt condition text
15973
+ */
15974
+ prompt: string;
15975
+
15976
+ type: 'prompt';
15977
+ }
15978
+
15979
+ export interface EquationCondition {
15980
+ equations: Array<EquationCondition.Equation>;
15981
+
15982
+ operator: '||' | '&&';
15983
+
15984
+ type: 'equation';
15985
+ }
15986
+
15987
+ export namespace EquationCondition {
15988
+ export interface Equation {
15989
+ /**
15990
+ * Left side of the equation
15991
+ */
15992
+ left: string;
15993
+
15994
+ operator:
15995
+ | '=='
15996
+ | '!='
15997
+ | '>'
15998
+ | '>='
15999
+ | '<'
16000
+ | '<='
16001
+ | 'contains'
16002
+ | 'not_contains'
16003
+ | 'exists'
16004
+ | 'not_exist';
16005
+
16006
+ /**
16007
+ * Right side of the equation. The right side of the equation not required when
16008
+ * "exists" or "not_exist" are selected.
16009
+ */
16010
+ right?: string;
16011
+ }
16012
+ }
16013
+ }
16014
+
13783
16015
  export interface NegativeFinetuneExample {
13784
16016
  /**
13785
16017
  * Find tune the transition condition to this global node
@@ -14113,6 +16345,18 @@ export namespace ConversationFlowComponentUpdateParams {
14113
16345
  */
14114
16346
  condition: string;
14115
16347
 
16348
+ /**
16349
+ * The same global node won't be triggered again within the next N node
16350
+ * transitions.
16351
+ */
16352
+ cool_down?: number;
16353
+
16354
+ /**
16355
+ * The conditions for global node go back. There would be no destination_node_id
16356
+ * for these edges.
16357
+ */
16358
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
16359
+
14116
16360
  /**
14117
16361
  * Don't transition to this node
14118
16362
  */
@@ -14125,6 +16369,66 @@ export namespace ConversationFlowComponentUpdateParams {
14125
16369
  }
14126
16370
 
14127
16371
  export namespace GlobalNodeSetting {
16372
+ export interface GoBackCondition {
16373
+ /**
16374
+ * Unique identifier for the edge
16375
+ */
16376
+ id: string;
16377
+
16378
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
16379
+
16380
+ /**
16381
+ * ID of the destination node
16382
+ */
16383
+ destination_node_id?: string;
16384
+ }
16385
+
16386
+ export namespace GoBackCondition {
16387
+ export interface PromptCondition {
16388
+ /**
16389
+ * Prompt condition text
16390
+ */
16391
+ prompt: string;
16392
+
16393
+ type: 'prompt';
16394
+ }
16395
+
16396
+ export interface EquationCondition {
16397
+ equations: Array<EquationCondition.Equation>;
16398
+
16399
+ operator: '||' | '&&';
16400
+
16401
+ type: 'equation';
16402
+ }
16403
+
16404
+ export namespace EquationCondition {
16405
+ export interface Equation {
16406
+ /**
16407
+ * Left side of the equation
16408
+ */
16409
+ left: string;
16410
+
16411
+ operator:
16412
+ | '=='
16413
+ | '!='
16414
+ | '>'
16415
+ | '>='
16416
+ | '<'
16417
+ | '<='
16418
+ | 'contains'
16419
+ | 'not_contains'
16420
+ | 'exists'
16421
+ | 'not_exist';
16422
+
16423
+ /**
16424
+ * Right side of the equation. The right side of the equation not required when
16425
+ * "exists" or "not_exist" are selected.
16426
+ */
16427
+ right?: string;
16428
+ }
16429
+ }
16430
+ }
16431
+
14128
16432
  export interface NegativeFinetuneExample {
14129
16433
  /**
14130
16434
  * Find tune the transition condition to this global node
@@ -14425,6 +16729,18 @@ export namespace ConversationFlowComponentUpdateParams {
14425
16729
  */
14426
16730
  condition: string;
14427
16731
 
16732
+ /**
16733
+ * The same global node won't be triggered again within the next N node
16734
+ * transitions.
16735
+ */
16736
+ cool_down?: number;
16737
+
16738
+ /**
16739
+ * The conditions for global node go back. There would be no destination_node_id
16740
+ * for these edges.
16741
+ */
16742
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
16743
+
14428
16744
  /**
14429
16745
  * Don't transition to this node
14430
16746
  */
@@ -14437,6 +16753,66 @@ export namespace ConversationFlowComponentUpdateParams {
14437
16753
  }
14438
16754
 
14439
16755
  export namespace GlobalNodeSetting {
16756
+ export interface GoBackCondition {
16757
+ /**
16758
+ * Unique identifier for the edge
16759
+ */
16760
+ id: string;
16761
+
16762
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
16763
+
16764
+ /**
16765
+ * ID of the destination node
16766
+ */
16767
+ destination_node_id?: string;
16768
+ }
16769
+
16770
+ export namespace GoBackCondition {
16771
+ export interface PromptCondition {
16772
+ /**
16773
+ * Prompt condition text
16774
+ */
16775
+ prompt: string;
16776
+
16777
+ type: 'prompt';
16778
+ }
16779
+
16780
+ export interface EquationCondition {
16781
+ equations: Array<EquationCondition.Equation>;
16782
+
16783
+ operator: '||' | '&&';
16784
+
16785
+ type: 'equation';
16786
+ }
16787
+
16788
+ export namespace EquationCondition {
16789
+ export interface Equation {
16790
+ /**
16791
+ * Left side of the equation
16792
+ */
16793
+ left: string;
16794
+
16795
+ operator:
16796
+ | '=='
16797
+ | '!='
16798
+ | '>'
16799
+ | '>='
16800
+ | '<'
16801
+ | '<='
16802
+ | 'contains'
16803
+ | 'not_contains'
16804
+ | 'exists'
16805
+ | 'not_exist';
16806
+
16807
+ /**
16808
+ * Right side of the equation. The right side of the equation not required when
16809
+ * "exists" or "not_exist" are selected.
16810
+ */
16811
+ right?: string;
16812
+ }
16813
+ }
16814
+ }
16815
+
14440
16816
  export interface NegativeFinetuneExample {
14441
16817
  /**
14442
16818
  * Find tune the transition condition to this global node
@@ -14827,6 +17203,18 @@ export namespace ConversationFlowComponentUpdateParams {
14827
17203
  */
14828
17204
  condition: string;
14829
17205
 
17206
+ /**
17207
+ * The same global node won't be triggered again within the next N node
17208
+ * transitions.
17209
+ */
17210
+ cool_down?: number;
17211
+
17212
+ /**
17213
+ * The conditions for global node go back. There would be no destination_node_id
17214
+ * for these edges.
17215
+ */
17216
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
17217
+
14830
17218
  /**
14831
17219
  * Don't transition to this node
14832
17220
  */
@@ -14839,6 +17227,66 @@ export namespace ConversationFlowComponentUpdateParams {
14839
17227
  }
14840
17228
 
14841
17229
  export namespace GlobalNodeSetting {
17230
+ export interface GoBackCondition {
17231
+ /**
17232
+ * Unique identifier for the edge
17233
+ */
17234
+ id: string;
17235
+
17236
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
17237
+
17238
+ /**
17239
+ * ID of the destination node
17240
+ */
17241
+ destination_node_id?: string;
17242
+ }
17243
+
17244
+ export namespace GoBackCondition {
17245
+ export interface PromptCondition {
17246
+ /**
17247
+ * Prompt condition text
17248
+ */
17249
+ prompt: string;
17250
+
17251
+ type: 'prompt';
17252
+ }
17253
+
17254
+ export interface EquationCondition {
17255
+ equations: Array<EquationCondition.Equation>;
17256
+
17257
+ operator: '||' | '&&';
17258
+
17259
+ type: 'equation';
17260
+ }
17261
+
17262
+ export namespace EquationCondition {
17263
+ export interface Equation {
17264
+ /**
17265
+ * Left side of the equation
17266
+ */
17267
+ left: string;
17268
+
17269
+ operator:
17270
+ | '=='
17271
+ | '!='
17272
+ | '>'
17273
+ | '>='
17274
+ | '<'
17275
+ | '<='
17276
+ | 'contains'
17277
+ | 'not_contains'
17278
+ | 'exists'
17279
+ | 'not_exist';
17280
+
17281
+ /**
17282
+ * Right side of the equation. The right side of the equation not required when
17283
+ * "exists" or "not_exist" are selected.
17284
+ */
17285
+ right?: string;
17286
+ }
17287
+ }
17288
+ }
17289
+
14842
17290
  export interface NegativeFinetuneExample {
14843
17291
  /**
14844
17292
  * Find tune the transition condition to this global node
@@ -15103,6 +17551,18 @@ export namespace ConversationFlowComponentUpdateParams {
15103
17551
  */
15104
17552
  condition: string;
15105
17553
 
17554
+ /**
17555
+ * The same global node won't be triggered again within the next N node
17556
+ * transitions.
17557
+ */
17558
+ cool_down?: number;
17559
+
17560
+ /**
17561
+ * The conditions for global node go back. There would be no destination_node_id
17562
+ * for these edges.
17563
+ */
17564
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
17565
+
15106
17566
  /**
15107
17567
  * Don't transition to this node
15108
17568
  */
@@ -15115,6 +17575,66 @@ export namespace ConversationFlowComponentUpdateParams {
15115
17575
  }
15116
17576
 
15117
17577
  export namespace GlobalNodeSetting {
17578
+ export interface GoBackCondition {
17579
+ /**
17580
+ * Unique identifier for the edge
17581
+ */
17582
+ id: string;
17583
+
17584
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
17585
+
17586
+ /**
17587
+ * ID of the destination node
17588
+ */
17589
+ destination_node_id?: string;
17590
+ }
17591
+
17592
+ export namespace GoBackCondition {
17593
+ export interface PromptCondition {
17594
+ /**
17595
+ * Prompt condition text
17596
+ */
17597
+ prompt: string;
17598
+
17599
+ type: 'prompt';
17600
+ }
17601
+
17602
+ export interface EquationCondition {
17603
+ equations: Array<EquationCondition.Equation>;
17604
+
17605
+ operator: '||' | '&&';
17606
+
17607
+ type: 'equation';
17608
+ }
17609
+
17610
+ export namespace EquationCondition {
17611
+ export interface Equation {
17612
+ /**
17613
+ * Left side of the equation
17614
+ */
17615
+ left: string;
17616
+
17617
+ operator:
17618
+ | '=='
17619
+ | '!='
17620
+ | '>'
17621
+ | '>='
17622
+ | '<'
17623
+ | '<='
17624
+ | 'contains'
17625
+ | 'not_contains'
17626
+ | 'exists'
17627
+ | 'not_exist';
17628
+
17629
+ /**
17630
+ * Right side of the equation. The right side of the equation not required when
17631
+ * "exists" or "not_exist" are selected.
17632
+ */
17633
+ right?: string;
17634
+ }
17635
+ }
17636
+ }
17637
+
15118
17638
  export interface NegativeFinetuneExample {
15119
17639
  /**
15120
17640
  * Find tune the transition condition to this global node
@@ -15479,6 +17999,18 @@ export namespace ConversationFlowComponentUpdateParams {
15479
17999
  */
15480
18000
  condition: string;
15481
18001
 
18002
+ /**
18003
+ * The same global node won't be triggered again within the next N node
18004
+ * transitions.
18005
+ */
18006
+ cool_down?: number;
18007
+
18008
+ /**
18009
+ * The conditions for global node go back. There would be no destination_node_id
18010
+ * for these edges.
18011
+ */
18012
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
18013
+
15482
18014
  /**
15483
18015
  * Don't transition to this node
15484
18016
  */
@@ -15491,6 +18023,66 @@ export namespace ConversationFlowComponentUpdateParams {
15491
18023
  }
15492
18024
 
15493
18025
  export namespace GlobalNodeSetting {
18026
+ export interface GoBackCondition {
18027
+ /**
18028
+ * Unique identifier for the edge
18029
+ */
18030
+ id: string;
18031
+
18032
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
18033
+
18034
+ /**
18035
+ * ID of the destination node
18036
+ */
18037
+ destination_node_id?: string;
18038
+ }
18039
+
18040
+ export namespace GoBackCondition {
18041
+ export interface PromptCondition {
18042
+ /**
18043
+ * Prompt condition text
18044
+ */
18045
+ prompt: string;
18046
+
18047
+ type: 'prompt';
18048
+ }
18049
+
18050
+ export interface EquationCondition {
18051
+ equations: Array<EquationCondition.Equation>;
18052
+
18053
+ operator: '||' | '&&';
18054
+
18055
+ type: 'equation';
18056
+ }
18057
+
18058
+ export namespace EquationCondition {
18059
+ export interface Equation {
18060
+ /**
18061
+ * Left side of the equation
18062
+ */
18063
+ left: string;
18064
+
18065
+ operator:
18066
+ | '=='
18067
+ | '!='
18068
+ | '>'
18069
+ | '>='
18070
+ | '<'
18071
+ | '<='
18072
+ | 'contains'
18073
+ | 'not_contains'
18074
+ | 'exists'
18075
+ | 'not_exist';
18076
+
18077
+ /**
18078
+ * Right side of the equation. The right side of the equation not required when
18079
+ * "exists" or "not_exist" are selected.
18080
+ */
18081
+ right?: string;
18082
+ }
18083
+ }
18084
+ }
18085
+
15494
18086
  export interface NegativeFinetuneExample {
15495
18087
  /**
15496
18088
  * Find tune the transition condition to this global node
@@ -15791,6 +18383,18 @@ export namespace ConversationFlowComponentUpdateParams {
15791
18383
  */
15792
18384
  condition: string;
15793
18385
 
18386
+ /**
18387
+ * The same global node won't be triggered again within the next N node
18388
+ * transitions.
18389
+ */
18390
+ cool_down?: number;
18391
+
18392
+ /**
18393
+ * The conditions for global node go back. There would be no destination_node_id
18394
+ * for these edges.
18395
+ */
18396
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
18397
+
15794
18398
  /**
15795
18399
  * Don't transition to this node
15796
18400
  */
@@ -15803,6 +18407,66 @@ export namespace ConversationFlowComponentUpdateParams {
15803
18407
  }
15804
18408
 
15805
18409
  export namespace GlobalNodeSetting {
18410
+ export interface GoBackCondition {
18411
+ /**
18412
+ * Unique identifier for the edge
18413
+ */
18414
+ id: string;
18415
+
18416
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
18417
+
18418
+ /**
18419
+ * ID of the destination node
18420
+ */
18421
+ destination_node_id?: string;
18422
+ }
18423
+
18424
+ export namespace GoBackCondition {
18425
+ export interface PromptCondition {
18426
+ /**
18427
+ * Prompt condition text
18428
+ */
18429
+ prompt: string;
18430
+
18431
+ type: 'prompt';
18432
+ }
18433
+
18434
+ export interface EquationCondition {
18435
+ equations: Array<EquationCondition.Equation>;
18436
+
18437
+ operator: '||' | '&&';
18438
+
18439
+ type: 'equation';
18440
+ }
18441
+
18442
+ export namespace EquationCondition {
18443
+ export interface Equation {
18444
+ /**
18445
+ * Left side of the equation
18446
+ */
18447
+ left: string;
18448
+
18449
+ operator:
18450
+ | '=='
18451
+ | '!='
18452
+ | '>'
18453
+ | '>='
18454
+ | '<'
18455
+ | '<='
18456
+ | 'contains'
18457
+ | 'not_contains'
18458
+ | 'exists'
18459
+ | 'not_exist';
18460
+
18461
+ /**
18462
+ * Right side of the equation. The right side of the equation not required when
18463
+ * "exists" or "not_exist" are selected.
18464
+ */
18465
+ right?: string;
18466
+ }
18467
+ }
18468
+ }
18469
+
15806
18470
  export interface NegativeFinetuneExample {
15807
18471
  /**
15808
18472
  * Find tune the transition condition to this global node
@@ -15919,6 +18583,18 @@ export namespace ConversationFlowComponentUpdateParams {
15919
18583
  */
15920
18584
  condition: string;
15921
18585
 
18586
+ /**
18587
+ * The same global node won't be triggered again within the next N node
18588
+ * transitions.
18589
+ */
18590
+ cool_down?: number;
18591
+
18592
+ /**
18593
+ * The conditions for global node go back. There would be no destination_node_id
18594
+ * for these edges.
18595
+ */
18596
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
18597
+
15922
18598
  /**
15923
18599
  * Don't transition to this node
15924
18600
  */
@@ -15931,6 +18607,66 @@ export namespace ConversationFlowComponentUpdateParams {
15931
18607
  }
15932
18608
 
15933
18609
  export namespace GlobalNodeSetting {
18610
+ export interface GoBackCondition {
18611
+ /**
18612
+ * Unique identifier for the edge
18613
+ */
18614
+ id: string;
18615
+
18616
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
18617
+
18618
+ /**
18619
+ * ID of the destination node
18620
+ */
18621
+ destination_node_id?: string;
18622
+ }
18623
+
18624
+ export namespace GoBackCondition {
18625
+ export interface PromptCondition {
18626
+ /**
18627
+ * Prompt condition text
18628
+ */
18629
+ prompt: string;
18630
+
18631
+ type: 'prompt';
18632
+ }
18633
+
18634
+ export interface EquationCondition {
18635
+ equations: Array<EquationCondition.Equation>;
18636
+
18637
+ operator: '||' | '&&';
18638
+
18639
+ type: 'equation';
18640
+ }
18641
+
18642
+ export namespace EquationCondition {
18643
+ export interface Equation {
18644
+ /**
18645
+ * Left side of the equation
18646
+ */
18647
+ left: string;
18648
+
18649
+ operator:
18650
+ | '=='
18651
+ | '!='
18652
+ | '>'
18653
+ | '>='
18654
+ | '<'
18655
+ | '<='
18656
+ | 'contains'
18657
+ | 'not_contains'
18658
+ | 'exists'
18659
+ | 'not_exist';
18660
+
18661
+ /**
18662
+ * Right side of the equation. The right side of the equation not required when
18663
+ * "exists" or "not_exist" are selected.
18664
+ */
18665
+ right?: string;
18666
+ }
18667
+ }
18668
+ }
18669
+
15934
18670
  export interface NegativeFinetuneExample {
15935
18671
  /**
15936
18672
  * Find tune the transition condition to this global node
@@ -16047,6 +18783,18 @@ export namespace ConversationFlowComponentUpdateParams {
16047
18783
  */
16048
18784
  condition: string;
16049
18785
 
18786
+ /**
18787
+ * The same global node won't be triggered again within the next N node
18788
+ * transitions.
18789
+ */
18790
+ cool_down?: number;
18791
+
18792
+ /**
18793
+ * The conditions for global node go back. There would be no destination_node_id
18794
+ * for these edges.
18795
+ */
18796
+ go_back_conditions?: Array<GlobalNodeSetting.GoBackCondition>;
18797
+
16050
18798
  /**
16051
18799
  * Don't transition to this node
16052
18800
  */
@@ -16059,6 +18807,66 @@ export namespace ConversationFlowComponentUpdateParams {
16059
18807
  }
16060
18808
 
16061
18809
  export namespace GlobalNodeSetting {
18810
+ export interface GoBackCondition {
18811
+ /**
18812
+ * Unique identifier for the edge
18813
+ */
18814
+ id: string;
18815
+
18816
+ transition_condition: GoBackCondition.PromptCondition | GoBackCondition.EquationCondition;
18817
+
18818
+ /**
18819
+ * ID of the destination node
18820
+ */
18821
+ destination_node_id?: string;
18822
+ }
18823
+
18824
+ export namespace GoBackCondition {
18825
+ export interface PromptCondition {
18826
+ /**
18827
+ * Prompt condition text
18828
+ */
18829
+ prompt: string;
18830
+
18831
+ type: 'prompt';
18832
+ }
18833
+
18834
+ export interface EquationCondition {
18835
+ equations: Array<EquationCondition.Equation>;
18836
+
18837
+ operator: '||' | '&&';
18838
+
18839
+ type: 'equation';
18840
+ }
18841
+
18842
+ export namespace EquationCondition {
18843
+ export interface Equation {
18844
+ /**
18845
+ * Left side of the equation
18846
+ */
18847
+ left: string;
18848
+
18849
+ operator:
18850
+ | '=='
18851
+ | '!='
18852
+ | '>'
18853
+ | '>='
18854
+ | '<'
18855
+ | '<='
18856
+ | 'contains'
18857
+ | 'not_contains'
18858
+ | 'exists'
18859
+ | 'not_exist';
18860
+
18861
+ /**
18862
+ * Right side of the equation. The right side of the equation not required when
18863
+ * "exists" or "not_exist" are selected.
18864
+ */
18865
+ right?: string;
18866
+ }
18867
+ }
18868
+ }
18869
+
16062
18870
  export interface NegativeFinetuneExample {
16063
18871
  /**
16064
18872
  * Find tune the transition condition to this global node