@onlive.ai/flow-client 0.1.54 → 0.1.55

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.
@@ -2921,6 +2921,7 @@ declare const Step: z.ZodObject<{
2921
2921
  detailsLabel?: string | undefined;
2922
2922
  }>>;
2923
2923
  search: z.ZodOptional<z.ZodObject<{
2924
+ enabled: z.ZodOptional<z.ZodBoolean>;
2924
2925
  value: z.ZodOptional<z.ZodString>;
2925
2926
  button: z.ZodOptional<z.ZodObject<{
2926
2927
  label: z.ZodOptional<z.ZodString>;
@@ -3020,6 +3021,7 @@ declare const Step: z.ZodObject<{
3020
3021
  position?: "inside" | "outside" | undefined;
3021
3022
  } | undefined;
3022
3023
  placeholder?: string | undefined;
3024
+ enabled?: boolean | undefined;
3023
3025
  prefix?: {
3024
3026
  default?: {
3025
3027
  text?: string | undefined;
@@ -3053,6 +3055,7 @@ declare const Step: z.ZodObject<{
3053
3055
  position?: "inside" | "outside" | undefined;
3054
3056
  } | undefined;
3055
3057
  placeholder?: string | undefined;
3058
+ enabled?: boolean | undefined;
3056
3059
  prefix?: {
3057
3060
  default?: {
3058
3061
  text?: string | undefined;
@@ -3527,6 +3530,7 @@ declare const Step: z.ZodObject<{
3527
3530
  position?: "inside" | "outside" | undefined;
3528
3531
  } | undefined;
3529
3532
  placeholder?: string | undefined;
3533
+ enabled?: boolean | undefined;
3530
3534
  prefix?: {
3531
3535
  default?: {
3532
3536
  text?: string | undefined;
@@ -3680,6 +3684,7 @@ declare const Step: z.ZodObject<{
3680
3684
  position?: "inside" | "outside" | undefined;
3681
3685
  } | undefined;
3682
3686
  placeholder?: string | undefined;
3687
+ enabled?: boolean | undefined;
3683
3688
  prefix?: {
3684
3689
  default?: {
3685
3690
  text?: string | undefined;
@@ -4033,6 +4038,7 @@ declare const Step: z.ZodObject<{
4033
4038
  position?: "inside" | "outside" | undefined;
4034
4039
  } | undefined;
4035
4040
  placeholder?: string | undefined;
4041
+ enabled?: boolean | undefined;
4036
4042
  prefix?: {
4037
4043
  default?: {
4038
4044
  text?: string | undefined;
@@ -4290,6 +4296,7 @@ declare const Step: z.ZodObject<{
4290
4296
  position?: "inside" | "outside" | undefined;
4291
4297
  } | undefined;
4292
4298
  placeholder?: string | undefined;
4299
+ enabled?: boolean | undefined;
4293
4300
  prefix?: {
4294
4301
  default?: {
4295
4302
  text?: string | undefined;
@@ -4737,6 +4744,7 @@ declare const Step: z.ZodObject<{
4737
4744
  position?: "inside" | "outside" | undefined;
4738
4745
  } | undefined;
4739
4746
  placeholder?: string | undefined;
4747
+ enabled?: boolean | undefined;
4740
4748
  prefix?: {
4741
4749
  default?: {
4742
4750
  text?: string | undefined;
@@ -5099,6 +5107,7 @@ declare const Step: z.ZodObject<{
5099
5107
  position?: "inside" | "outside" | undefined;
5100
5108
  } | undefined;
5101
5109
  placeholder?: string | undefined;
5110
+ enabled?: boolean | undefined;
5102
5111
  prefix?: {
5103
5112
  default?: {
5104
5113
  text?: string | undefined;
@@ -5618,6 +5627,7 @@ declare const Step: z.ZodObject<{
5618
5627
  position?: "inside" | "outside" | undefined;
5619
5628
  } | undefined;
5620
5629
  placeholder?: string | undefined;
5630
+ enabled?: boolean | undefined;
5621
5631
  prefix?: {
5622
5632
  default?: {
5623
5633
  text?: string | undefined;
@@ -6027,6 +6037,7 @@ declare const Step: z.ZodObject<{
6027
6037
  position?: "inside" | "outside" | undefined;
6028
6038
  } | undefined;
6029
6039
  placeholder?: string | undefined;
6040
+ enabled?: boolean | undefined;
6030
6041
  prefix?: {
6031
6042
  default?: {
6032
6043
  text?: string | undefined;
@@ -6614,6 +6625,7 @@ type ActionEvent = z.infer<typeof ActionEvent>;
6614
6625
  * @property {string} [configuration.map.options.searchLabel] - Label for search results section.
6615
6626
  * @property {string} [configuration.map.options.detailsLabel] - Label for location details section.
6616
6627
  * @property {Object} [configuration.map.search] - Search functionality configuration.
6628
+ * @property {boolean} [configuration.map.search.enabled] - Enable search functionality.
6617
6629
  * @property {string} [configuration.map.search.value] - Initial search value.
6618
6630
  * @property {Object} [configuration.map.search.button] - Search button configuration.
6619
6631
  * @property {string} [configuration.map.search.button.label] - Search button label.
@@ -7377,6 +7389,7 @@ declare const Field: z.ZodObject<{
7377
7389
  detailsLabel?: string | undefined;
7378
7390
  }>>;
7379
7391
  search: z.ZodOptional<z.ZodObject<{
7392
+ enabled: z.ZodOptional<z.ZodBoolean>;
7380
7393
  value: z.ZodOptional<z.ZodString>;
7381
7394
  button: z.ZodOptional<z.ZodObject<{
7382
7395
  label: z.ZodOptional<z.ZodString>;
@@ -7476,6 +7489,7 @@ declare const Field: z.ZodObject<{
7476
7489
  position?: "inside" | "outside" | undefined;
7477
7490
  } | undefined;
7478
7491
  placeholder?: string | undefined;
7492
+ enabled?: boolean | undefined;
7479
7493
  prefix?: {
7480
7494
  default?: {
7481
7495
  text?: string | undefined;
@@ -7509,6 +7523,7 @@ declare const Field: z.ZodObject<{
7509
7523
  position?: "inside" | "outside" | undefined;
7510
7524
  } | undefined;
7511
7525
  placeholder?: string | undefined;
7526
+ enabled?: boolean | undefined;
7512
7527
  prefix?: {
7513
7528
  default?: {
7514
7529
  text?: string | undefined;
@@ -7983,6 +7998,7 @@ declare const Field: z.ZodObject<{
7983
7998
  position?: "inside" | "outside" | undefined;
7984
7999
  } | undefined;
7985
8000
  placeholder?: string | undefined;
8001
+ enabled?: boolean | undefined;
7986
8002
  prefix?: {
7987
8003
  default?: {
7988
8004
  text?: string | undefined;
@@ -8136,6 +8152,7 @@ declare const Field: z.ZodObject<{
8136
8152
  position?: "inside" | "outside" | undefined;
8137
8153
  } | undefined;
8138
8154
  placeholder?: string | undefined;
8155
+ enabled?: boolean | undefined;
8139
8156
  prefix?: {
8140
8157
  default?: {
8141
8158
  text?: string | undefined;
@@ -8489,6 +8506,7 @@ declare const Field: z.ZodObject<{
8489
8506
  position?: "inside" | "outside" | undefined;
8490
8507
  } | undefined;
8491
8508
  placeholder?: string | undefined;
8509
+ enabled?: boolean | undefined;
8492
8510
  prefix?: {
8493
8511
  default?: {
8494
8512
  text?: string | undefined;
@@ -8746,6 +8764,7 @@ declare const Field: z.ZodObject<{
8746
8764
  position?: "inside" | "outside" | undefined;
8747
8765
  } | undefined;
8748
8766
  placeholder?: string | undefined;
8767
+ enabled?: boolean | undefined;
8749
8768
  prefix?: {
8750
8769
  default?: {
8751
8770
  text?: string | undefined;
@@ -9193,6 +9212,7 @@ declare const Field: z.ZodObject<{
9193
9212
  position?: "inside" | "outside" | undefined;
9194
9213
  } | undefined;
9195
9214
  placeholder?: string | undefined;
9215
+ enabled?: boolean | undefined;
9196
9216
  prefix?: {
9197
9217
  default?: {
9198
9218
  text?: string | undefined;
@@ -9555,6 +9575,7 @@ declare const Field: z.ZodObject<{
9555
9575
  position?: "inside" | "outside" | undefined;
9556
9576
  } | undefined;
9557
9577
  placeholder?: string | undefined;
9578
+ enabled?: boolean | undefined;
9558
9579
  prefix?: {
9559
9580
  default?: {
9560
9581
  text?: string | undefined;
@@ -10795,6 +10816,7 @@ declare const FlowContext: z.ZodObject<{
10795
10816
  detailsLabel?: string | undefined;
10796
10817
  }>>;
10797
10818
  search: z.ZodOptional<z.ZodObject<{
10819
+ enabled: z.ZodOptional<z.ZodBoolean>;
10798
10820
  value: z.ZodOptional<z.ZodString>;
10799
10821
  button: z.ZodOptional<z.ZodObject<{
10800
10822
  label: z.ZodOptional<z.ZodString>;
@@ -10894,6 +10916,7 @@ declare const FlowContext: z.ZodObject<{
10894
10916
  position?: "inside" | "outside" | undefined;
10895
10917
  } | undefined;
10896
10918
  placeholder?: string | undefined;
10919
+ enabled?: boolean | undefined;
10897
10920
  prefix?: {
10898
10921
  default?: {
10899
10922
  text?: string | undefined;
@@ -10927,6 +10950,7 @@ declare const FlowContext: z.ZodObject<{
10927
10950
  position?: "inside" | "outside" | undefined;
10928
10951
  } | undefined;
10929
10952
  placeholder?: string | undefined;
10953
+ enabled?: boolean | undefined;
10930
10954
  prefix?: {
10931
10955
  default?: {
10932
10956
  text?: string | undefined;
@@ -11401,6 +11425,7 @@ declare const FlowContext: z.ZodObject<{
11401
11425
  position?: "inside" | "outside" | undefined;
11402
11426
  } | undefined;
11403
11427
  placeholder?: string | undefined;
11428
+ enabled?: boolean | undefined;
11404
11429
  prefix?: {
11405
11430
  default?: {
11406
11431
  text?: string | undefined;
@@ -11554,6 +11579,7 @@ declare const FlowContext: z.ZodObject<{
11554
11579
  position?: "inside" | "outside" | undefined;
11555
11580
  } | undefined;
11556
11581
  placeholder?: string | undefined;
11582
+ enabled?: boolean | undefined;
11557
11583
  prefix?: {
11558
11584
  default?: {
11559
11585
  text?: string | undefined;
@@ -11907,6 +11933,7 @@ declare const FlowContext: z.ZodObject<{
11907
11933
  position?: "inside" | "outside" | undefined;
11908
11934
  } | undefined;
11909
11935
  placeholder?: string | undefined;
11936
+ enabled?: boolean | undefined;
11910
11937
  prefix?: {
11911
11938
  default?: {
11912
11939
  text?: string | undefined;
@@ -12164,6 +12191,7 @@ declare const FlowContext: z.ZodObject<{
12164
12191
  position?: "inside" | "outside" | undefined;
12165
12192
  } | undefined;
12166
12193
  placeholder?: string | undefined;
12194
+ enabled?: boolean | undefined;
12167
12195
  prefix?: {
12168
12196
  default?: {
12169
12197
  text?: string | undefined;
@@ -12611,6 +12639,7 @@ declare const FlowContext: z.ZodObject<{
12611
12639
  position?: "inside" | "outside" | undefined;
12612
12640
  } | undefined;
12613
12641
  placeholder?: string | undefined;
12642
+ enabled?: boolean | undefined;
12614
12643
  prefix?: {
12615
12644
  default?: {
12616
12645
  text?: string | undefined;
@@ -12973,6 +13002,7 @@ declare const FlowContext: z.ZodObject<{
12973
13002
  position?: "inside" | "outside" | undefined;
12974
13003
  } | undefined;
12975
13004
  placeholder?: string | undefined;
13005
+ enabled?: boolean | undefined;
12976
13006
  prefix?: {
12977
13007
  default?: {
12978
13008
  text?: string | undefined;
@@ -13492,6 +13522,7 @@ declare const FlowContext: z.ZodObject<{
13492
13522
  position?: "inside" | "outside" | undefined;
13493
13523
  } | undefined;
13494
13524
  placeholder?: string | undefined;
13525
+ enabled?: boolean | undefined;
13495
13526
  prefix?: {
13496
13527
  default?: {
13497
13528
  text?: string | undefined;
@@ -13901,6 +13932,7 @@ declare const FlowContext: z.ZodObject<{
13901
13932
  position?: "inside" | "outside" | undefined;
13902
13933
  } | undefined;
13903
13934
  placeholder?: string | undefined;
13935
+ enabled?: boolean | undefined;
13904
13936
  prefix?: {
13905
13937
  default?: {
13906
13938
  text?: string | undefined;
@@ -14344,6 +14376,7 @@ declare const FlowContext: z.ZodObject<{
14344
14376
  position?: "inside" | "outside" | undefined;
14345
14377
  } | undefined;
14346
14378
  placeholder?: string | undefined;
14379
+ enabled?: boolean | undefined;
14347
14380
  prefix?: {
14348
14381
  default?: {
14349
14382
  text?: string | undefined;
@@ -14765,6 +14798,7 @@ declare const FlowContext: z.ZodObject<{
14765
14798
  position?: "inside" | "outside" | undefined;
14766
14799
  } | undefined;
14767
14800
  placeholder?: string | undefined;
14801
+ enabled?: boolean | undefined;
14768
14802
  prefix?: {
14769
14803
  default?: {
14770
14804
  text?: string | undefined;
@@ -2921,6 +2921,7 @@ declare const Step: z.ZodObject<{
2921
2921
  detailsLabel?: string | undefined;
2922
2922
  }>>;
2923
2923
  search: z.ZodOptional<z.ZodObject<{
2924
+ enabled: z.ZodOptional<z.ZodBoolean>;
2924
2925
  value: z.ZodOptional<z.ZodString>;
2925
2926
  button: z.ZodOptional<z.ZodObject<{
2926
2927
  label: z.ZodOptional<z.ZodString>;
@@ -3020,6 +3021,7 @@ declare const Step: z.ZodObject<{
3020
3021
  position?: "inside" | "outside" | undefined;
3021
3022
  } | undefined;
3022
3023
  placeholder?: string | undefined;
3024
+ enabled?: boolean | undefined;
3023
3025
  prefix?: {
3024
3026
  default?: {
3025
3027
  text?: string | undefined;
@@ -3053,6 +3055,7 @@ declare const Step: z.ZodObject<{
3053
3055
  position?: "inside" | "outside" | undefined;
3054
3056
  } | undefined;
3055
3057
  placeholder?: string | undefined;
3058
+ enabled?: boolean | undefined;
3056
3059
  prefix?: {
3057
3060
  default?: {
3058
3061
  text?: string | undefined;
@@ -3527,6 +3530,7 @@ declare const Step: z.ZodObject<{
3527
3530
  position?: "inside" | "outside" | undefined;
3528
3531
  } | undefined;
3529
3532
  placeholder?: string | undefined;
3533
+ enabled?: boolean | undefined;
3530
3534
  prefix?: {
3531
3535
  default?: {
3532
3536
  text?: string | undefined;
@@ -3680,6 +3684,7 @@ declare const Step: z.ZodObject<{
3680
3684
  position?: "inside" | "outside" | undefined;
3681
3685
  } | undefined;
3682
3686
  placeholder?: string | undefined;
3687
+ enabled?: boolean | undefined;
3683
3688
  prefix?: {
3684
3689
  default?: {
3685
3690
  text?: string | undefined;
@@ -4033,6 +4038,7 @@ declare const Step: z.ZodObject<{
4033
4038
  position?: "inside" | "outside" | undefined;
4034
4039
  } | undefined;
4035
4040
  placeholder?: string | undefined;
4041
+ enabled?: boolean | undefined;
4036
4042
  prefix?: {
4037
4043
  default?: {
4038
4044
  text?: string | undefined;
@@ -4290,6 +4296,7 @@ declare const Step: z.ZodObject<{
4290
4296
  position?: "inside" | "outside" | undefined;
4291
4297
  } | undefined;
4292
4298
  placeholder?: string | undefined;
4299
+ enabled?: boolean | undefined;
4293
4300
  prefix?: {
4294
4301
  default?: {
4295
4302
  text?: string | undefined;
@@ -4737,6 +4744,7 @@ declare const Step: z.ZodObject<{
4737
4744
  position?: "inside" | "outside" | undefined;
4738
4745
  } | undefined;
4739
4746
  placeholder?: string | undefined;
4747
+ enabled?: boolean | undefined;
4740
4748
  prefix?: {
4741
4749
  default?: {
4742
4750
  text?: string | undefined;
@@ -5099,6 +5107,7 @@ declare const Step: z.ZodObject<{
5099
5107
  position?: "inside" | "outside" | undefined;
5100
5108
  } | undefined;
5101
5109
  placeholder?: string | undefined;
5110
+ enabled?: boolean | undefined;
5102
5111
  prefix?: {
5103
5112
  default?: {
5104
5113
  text?: string | undefined;
@@ -5618,6 +5627,7 @@ declare const Step: z.ZodObject<{
5618
5627
  position?: "inside" | "outside" | undefined;
5619
5628
  } | undefined;
5620
5629
  placeholder?: string | undefined;
5630
+ enabled?: boolean | undefined;
5621
5631
  prefix?: {
5622
5632
  default?: {
5623
5633
  text?: string | undefined;
@@ -6027,6 +6037,7 @@ declare const Step: z.ZodObject<{
6027
6037
  position?: "inside" | "outside" | undefined;
6028
6038
  } | undefined;
6029
6039
  placeholder?: string | undefined;
6040
+ enabled?: boolean | undefined;
6030
6041
  prefix?: {
6031
6042
  default?: {
6032
6043
  text?: string | undefined;
@@ -6614,6 +6625,7 @@ type ActionEvent = z.infer<typeof ActionEvent>;
6614
6625
  * @property {string} [configuration.map.options.searchLabel] - Label for search results section.
6615
6626
  * @property {string} [configuration.map.options.detailsLabel] - Label for location details section.
6616
6627
  * @property {Object} [configuration.map.search] - Search functionality configuration.
6628
+ * @property {boolean} [configuration.map.search.enabled] - Enable search functionality.
6617
6629
  * @property {string} [configuration.map.search.value] - Initial search value.
6618
6630
  * @property {Object} [configuration.map.search.button] - Search button configuration.
6619
6631
  * @property {string} [configuration.map.search.button.label] - Search button label.
@@ -7377,6 +7389,7 @@ declare const Field: z.ZodObject<{
7377
7389
  detailsLabel?: string | undefined;
7378
7390
  }>>;
7379
7391
  search: z.ZodOptional<z.ZodObject<{
7392
+ enabled: z.ZodOptional<z.ZodBoolean>;
7380
7393
  value: z.ZodOptional<z.ZodString>;
7381
7394
  button: z.ZodOptional<z.ZodObject<{
7382
7395
  label: z.ZodOptional<z.ZodString>;
@@ -7476,6 +7489,7 @@ declare const Field: z.ZodObject<{
7476
7489
  position?: "inside" | "outside" | undefined;
7477
7490
  } | undefined;
7478
7491
  placeholder?: string | undefined;
7492
+ enabled?: boolean | undefined;
7479
7493
  prefix?: {
7480
7494
  default?: {
7481
7495
  text?: string | undefined;
@@ -7509,6 +7523,7 @@ declare const Field: z.ZodObject<{
7509
7523
  position?: "inside" | "outside" | undefined;
7510
7524
  } | undefined;
7511
7525
  placeholder?: string | undefined;
7526
+ enabled?: boolean | undefined;
7512
7527
  prefix?: {
7513
7528
  default?: {
7514
7529
  text?: string | undefined;
@@ -7983,6 +7998,7 @@ declare const Field: z.ZodObject<{
7983
7998
  position?: "inside" | "outside" | undefined;
7984
7999
  } | undefined;
7985
8000
  placeholder?: string | undefined;
8001
+ enabled?: boolean | undefined;
7986
8002
  prefix?: {
7987
8003
  default?: {
7988
8004
  text?: string | undefined;
@@ -8136,6 +8152,7 @@ declare const Field: z.ZodObject<{
8136
8152
  position?: "inside" | "outside" | undefined;
8137
8153
  } | undefined;
8138
8154
  placeholder?: string | undefined;
8155
+ enabled?: boolean | undefined;
8139
8156
  prefix?: {
8140
8157
  default?: {
8141
8158
  text?: string | undefined;
@@ -8489,6 +8506,7 @@ declare const Field: z.ZodObject<{
8489
8506
  position?: "inside" | "outside" | undefined;
8490
8507
  } | undefined;
8491
8508
  placeholder?: string | undefined;
8509
+ enabled?: boolean | undefined;
8492
8510
  prefix?: {
8493
8511
  default?: {
8494
8512
  text?: string | undefined;
@@ -8746,6 +8764,7 @@ declare const Field: z.ZodObject<{
8746
8764
  position?: "inside" | "outside" | undefined;
8747
8765
  } | undefined;
8748
8766
  placeholder?: string | undefined;
8767
+ enabled?: boolean | undefined;
8749
8768
  prefix?: {
8750
8769
  default?: {
8751
8770
  text?: string | undefined;
@@ -9193,6 +9212,7 @@ declare const Field: z.ZodObject<{
9193
9212
  position?: "inside" | "outside" | undefined;
9194
9213
  } | undefined;
9195
9214
  placeholder?: string | undefined;
9215
+ enabled?: boolean | undefined;
9196
9216
  prefix?: {
9197
9217
  default?: {
9198
9218
  text?: string | undefined;
@@ -9555,6 +9575,7 @@ declare const Field: z.ZodObject<{
9555
9575
  position?: "inside" | "outside" | undefined;
9556
9576
  } | undefined;
9557
9577
  placeholder?: string | undefined;
9578
+ enabled?: boolean | undefined;
9558
9579
  prefix?: {
9559
9580
  default?: {
9560
9581
  text?: string | undefined;
@@ -10795,6 +10816,7 @@ declare const FlowContext: z.ZodObject<{
10795
10816
  detailsLabel?: string | undefined;
10796
10817
  }>>;
10797
10818
  search: z.ZodOptional<z.ZodObject<{
10819
+ enabled: z.ZodOptional<z.ZodBoolean>;
10798
10820
  value: z.ZodOptional<z.ZodString>;
10799
10821
  button: z.ZodOptional<z.ZodObject<{
10800
10822
  label: z.ZodOptional<z.ZodString>;
@@ -10894,6 +10916,7 @@ declare const FlowContext: z.ZodObject<{
10894
10916
  position?: "inside" | "outside" | undefined;
10895
10917
  } | undefined;
10896
10918
  placeholder?: string | undefined;
10919
+ enabled?: boolean | undefined;
10897
10920
  prefix?: {
10898
10921
  default?: {
10899
10922
  text?: string | undefined;
@@ -10927,6 +10950,7 @@ declare const FlowContext: z.ZodObject<{
10927
10950
  position?: "inside" | "outside" | undefined;
10928
10951
  } | undefined;
10929
10952
  placeholder?: string | undefined;
10953
+ enabled?: boolean | undefined;
10930
10954
  prefix?: {
10931
10955
  default?: {
10932
10956
  text?: string | undefined;
@@ -11401,6 +11425,7 @@ declare const FlowContext: z.ZodObject<{
11401
11425
  position?: "inside" | "outside" | undefined;
11402
11426
  } | undefined;
11403
11427
  placeholder?: string | undefined;
11428
+ enabled?: boolean | undefined;
11404
11429
  prefix?: {
11405
11430
  default?: {
11406
11431
  text?: string | undefined;
@@ -11554,6 +11579,7 @@ declare const FlowContext: z.ZodObject<{
11554
11579
  position?: "inside" | "outside" | undefined;
11555
11580
  } | undefined;
11556
11581
  placeholder?: string | undefined;
11582
+ enabled?: boolean | undefined;
11557
11583
  prefix?: {
11558
11584
  default?: {
11559
11585
  text?: string | undefined;
@@ -11907,6 +11933,7 @@ declare const FlowContext: z.ZodObject<{
11907
11933
  position?: "inside" | "outside" | undefined;
11908
11934
  } | undefined;
11909
11935
  placeholder?: string | undefined;
11936
+ enabled?: boolean | undefined;
11910
11937
  prefix?: {
11911
11938
  default?: {
11912
11939
  text?: string | undefined;
@@ -12164,6 +12191,7 @@ declare const FlowContext: z.ZodObject<{
12164
12191
  position?: "inside" | "outside" | undefined;
12165
12192
  } | undefined;
12166
12193
  placeholder?: string | undefined;
12194
+ enabled?: boolean | undefined;
12167
12195
  prefix?: {
12168
12196
  default?: {
12169
12197
  text?: string | undefined;
@@ -12611,6 +12639,7 @@ declare const FlowContext: z.ZodObject<{
12611
12639
  position?: "inside" | "outside" | undefined;
12612
12640
  } | undefined;
12613
12641
  placeholder?: string | undefined;
12642
+ enabled?: boolean | undefined;
12614
12643
  prefix?: {
12615
12644
  default?: {
12616
12645
  text?: string | undefined;
@@ -12973,6 +13002,7 @@ declare const FlowContext: z.ZodObject<{
12973
13002
  position?: "inside" | "outside" | undefined;
12974
13003
  } | undefined;
12975
13004
  placeholder?: string | undefined;
13005
+ enabled?: boolean | undefined;
12976
13006
  prefix?: {
12977
13007
  default?: {
12978
13008
  text?: string | undefined;
@@ -13492,6 +13522,7 @@ declare const FlowContext: z.ZodObject<{
13492
13522
  position?: "inside" | "outside" | undefined;
13493
13523
  } | undefined;
13494
13524
  placeholder?: string | undefined;
13525
+ enabled?: boolean | undefined;
13495
13526
  prefix?: {
13496
13527
  default?: {
13497
13528
  text?: string | undefined;
@@ -13901,6 +13932,7 @@ declare const FlowContext: z.ZodObject<{
13901
13932
  position?: "inside" | "outside" | undefined;
13902
13933
  } | undefined;
13903
13934
  placeholder?: string | undefined;
13935
+ enabled?: boolean | undefined;
13904
13936
  prefix?: {
13905
13937
  default?: {
13906
13938
  text?: string | undefined;
@@ -14344,6 +14376,7 @@ declare const FlowContext: z.ZodObject<{
14344
14376
  position?: "inside" | "outside" | undefined;
14345
14377
  } | undefined;
14346
14378
  placeholder?: string | undefined;
14379
+ enabled?: boolean | undefined;
14347
14380
  prefix?: {
14348
14381
  default?: {
14349
14382
  text?: string | undefined;
@@ -14765,6 +14798,7 @@ declare const FlowContext: z.ZodObject<{
14765
14798
  position?: "inside" | "outside" | undefined;
14766
14799
  } | undefined;
14767
14800
  placeholder?: string | undefined;
14801
+ enabled?: boolean | undefined;
14768
14802
  prefix?: {
14769
14803
  default?: {
14770
14804
  text?: string | undefined;
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/flow-client v0.1.54 | © 2025 Onlive.ai */
2
- import{GetAvailabilityFilters as s,GetAvailabilityOptions as c}from"@onlive.ai/calendar";import{z as o}from"zod";import{z as t}from"zod";var l=t.object({enabled:t.boolean().default(!1).optional(),data:t.custom().optional(),removeExtraneousValues:t.boolean().default(!0).optional(),allowBotTraffic:t.boolean().default(!1).optional(),adapters:t.array(t.string()).default([]).optional(),apiUrl:t.string().url().optional(),emitters:t.object({windowEvent:t.boolean().optional(),dataLayer:t.boolean().optional(),windowPostMessage:t.boolean().optional()}).optional()});var _={tracking:{removeExtraneousValues:!0,apiUrl:"https://srvless.onlive.site/tracking",data:{widget_type:"OnliveAppFlow"}}},L=o.string().nonempty(),I=o.object({baseUrl:o.string().url().nonempty(),flowId:o.string().length(24).nonempty(),organizationId:o.string().uuid().nonempty(),lang:o.string().length(2).nonempty(),tracking:l.optional(),devMode:o.boolean().default(!1).optional()}),D=o.object({state:o.record(o.string(),o.any()).optional(),fields:o.record(o.string(),o.any()).optional()}),w=o.object({currentStepId:o.string().nonempty(),actionId:o.string().nonempty()}),p=o.enum(["text","boolean","number","email","phone","mobile_phone","date","time","datetime","password","url","color","object","void","location","availability"]),m=o.object({name:o.string(),value:o.string().optional(),icon:o.string().optional(),type:o.enum(["url","email","phone"]).optional()}),b=o.object({lat:o.number().min(-90).max(90),lng:o.number().min(-180).max(180),meta:o.record(o.string(),o.any()).optional(),properties:o.record(o.string(),m).optional()}),g=o.object({datetime:o.string().datetime(),meta:o.record(o.string(),o.any()).optional()}),e=o.union([o.string(),o.number(),o.boolean(),b,g]),i=o.object({content:o.object({icon:o.string().optional(),url:o.string().url().optional(),width:o.string().optional(),height:o.string().optional(),scale:o.number().optional()}).optional(),background:o.string().optional(),glyph:o.object({color:o.string().optional(),url:o.string().url().optional(),icon:o.string().optional()}).optional(),borderColor:o.string().optional(),scale:o.number().optional()}),a=o.custom(r=>/^\d{4}-\d{2}-\d{2}$/.test(r),{message:"Date must be in 'YYYY-MM-DD' format"}),n=o.object({text:o.string().optional(),icon:o.string().optional()}),u=o.object({name:o.string().nonempty(),label:o.string().optional(),value:o.union([e,o.array(e)]).optional(),type:p,component:o.enum(["input","textarea","select","radio","checkbox","switch","rating","carousel","button","label","map","calendar"]).optional(),disabled:o.boolean().optional(),readonly:o.boolean().optional(),multiple:o.boolean().optional(),placeholder:o.string().optional(),options:o.array(o.object({label:o.string().nonempty(),value:e.optional(),image:o.string().url().optional(),description:o.string().optional(),disabled:o.boolean().optional(),attributes:o.record(o.string(),o.any()).optional(),dependsOn:o.array(o.object({fieldName:o.string().nonempty(),value:e.optional(),operator:o.enum(["exists","equals","not-equals","contains","not-contains","greater-than","less-than"]).optional()})).optional()})).optional(),required:o.boolean().optional(),configuration:o.object({generic:o.object({error:o.object({icon:o.string().optional(),showOn:o.enum(["input","blur"]).optional()})}).optional(),input:o.object({min:o.number().optional(),max:o.number().optional(),step:o.number().optional(),pattern:o.string().refine(r=>{try{return new RegExp(r),!0}catch{return!1}},"Invalid regex pattern").optional(),minLength:o.number().optional(),maxLength:o.number().optional(),exactLength:o.number().optional(),prefix:o.object({default:n.optional(),success:n.optional(),error:n.optional()}).optional(),suffix:o.object({default:n.optional(),success:n.optional(),error:n.optional()}).optional(),clearable:o.boolean().optional(),floatingLabel:o.boolean().optional()}).optional(),textarea:o.object({rows:o.number().optional()}).optional(),checkbox:o.object({layout:o.enum(["horizontal","vertical"])}).optional(),rating:o.object({icons:o.array(o.string()).optional(),color:o.string().optional(),precision:o.number().optional()}).optional(),carousel:o.object({loop:o.boolean().optional(),mouseDragging:o.boolean().optional(),itemsPerPage:o.number().optional(),showArrows:o.boolean().optional(),showDots:o.boolean().optional(),autoplay:o.boolean().optional(),autoplaySpeed:o.number().optional(),clickableItems:o.object({actionId:o.string()}).optional()}).optional(),map:o.object({apiKey:o.string().optional(),region:o.string().length(2).optional(),center:o.object({lat:o.number().min(-90).max(90),lng:o.number().min(-180).max(180)}).optional(),showMap:o.enum(["always","on-search","never"]).optional(),zoom:o.object({initial:o.number().optional(),focus:o.number().optional(),max:o.number().optional(),min:o.number().optional()}).optional(),controls:o.object({fullscreen:o.boolean().optional(),mapType:o.boolean().optional(),zoom:o.boolean().optional(),rotate:o.boolean().optional(),scale:o.boolean().optional(),streetView:o.boolean().optional()}).optional(),initialLocations:o.number().optional(),maxLocations:o.number().optional(),distanceUnit:o.enum(["km","mi"]).optional(),distanceFormat:o.enum(["short","long"]).optional(),options:o.object({show:o.enum(["always","on-search","never"]).optional(),component:o.enum(["list-button","list-radio","carousel"]).optional(),searchLabel:o.string().optional(),detailsLabel:o.string().optional()}).optional(),search:o.object({value:o.string().optional(),button:o.object({label:o.string().optional(),position:o.enum(["inside","outside"]).optional()}).optional(),placeholder:o.string().optional(),noResultsText:o.string().optional(),autocomplete:o.boolean().optional(),clearable:o.boolean().optional(),mode:o.enum(["address","postcode"]).default("postcode").optional(),locationButton:o.object({icon:o.string().optional(),position:o.enum(["left","right"]).optional()}).optional(),prefix:o.object({default:n.optional()}).optional(),suffix:o.object({default:n.optional()}).optional(),mappedResults:o.object({mapping:o.record(o.string(),o.array(o.object({key:o.string(),value:o.string()})))}).optional()}).optional(),distanceRange:o.object({initial:o.number().optional(),min:o.number().optional(),max:o.number().optional(),step:o.number().optional()}).optional(),mapRegion:o.object({strokeColor:o.string().optional(),fillColor:o.string().optional(),fillOpacity:o.number().optional()}).optional(),locationPin:i.optional(),markerPin:o.object({default:i.optional(),hover:i.optional(),selected:i.optional()}).optional(),infoWindow:o.object({button:o.object({label:o.string(),action:o.string()}).optional()}).optional()}).optional(),calendar:o.object({current:o.object({month:o.number().min(0).max(11).optional(),year:o.number().optional()}).optional(),range:o.object({min:a.optional(),max:a.optional(),enabled:o.array(a).optional(),disabled:o.array(a).optional()}).optional(),time:o.object({label:o.string().optional(),format:o.enum(["12h","24h"]).optional(),component:o.enum(["carousel","list"]).optional()}).optional(),api:o.object({url:o.string().url().nonempty(),organizationId:o.string().nonempty(),availability:o.object({filters:s,options:c.optional()}).optional()}).optional()}).optional()}).optional(),dependsOn:o.array(o.object({fieldName:o.string().nonempty(),value:e.optional(),operator:o.enum(["exists","equals","not-equals","contains","not-contains","greater-than","less-than"]).optional()})).optional(),dependentBehavior:o.enum(["hidden","disabled"]).optional(),customError:o.object({required:o.string().optional(),invalid:o.string().optional(),minLength:o.string().optional(),maxLength:o.string().optional(),minValue:o.string().optional(),maxValue:o.string().optional(),mismatch:o.string().optional()}).optional()}),d=o.object({src:o.string().url(),preload:o.boolean().optional(),name:o.string().nonempty(),function:o.string().nonempty(),params:o.record(o.string(),o.any()).optional()}),y=o.object({name:o.enum(["organization_call","close_panel"]),params:o.record(o.string(),o.any()).optional()}),f=o.object({id:o.string().nonempty(),type:o.enum(["submit","navigate","link","back","dispatcher","script"]),label:o.string().nonempty(),variant:o.enum(["primary","secondary","success","danger","warning","info"]),url:o.string().url().optional(),scripts:d.array().optional(),events:y.array().optional()}),x=o.enum(["INVALID_DATA","INVALID_ACTION","STEP_NOT_FOUND","UNKNOWN_ERROR","APPOINTMENT_INVALID_DATA","APPOINTMENT_BUSY_SLOT","APPOINTMENT_OUT_OF_DATE","APPOINTMENT_UNKNOWN_ERROR","LEAD_INVALID_DATA","LEAD_UNKNOWN_ERROR","CONTENT_INVALID_DATA","CONTENT_UNKNOWN_ERROR","CONTACT_INVALID_DATA","CONTACT_UNKNOWN_ERROR","LOST_OPPORTUNITY_INVALID_DATA","LOST_OPPORTUNITY_UNKNOWN_ERROR"]),j=o.object({type:o.enum(["redirect"]),params:o.record(o.string(),o.any()).optional()}),A=o.object({id:o.string().nonempty(),title:o.string().optional(),description:o.string().optional(),stageId:o.string().optional(),state:o.record(o.string(),o.any()).optional(),fields:o.array(u).optional(),actions:o.array(f).optional(),result:o.object({postActions:o.array(j).optional(),pipelines:o.array(o.object({name:o.string(),data:o.object({})})).optional(),tracking:o.record(o.string(),o.any()).optional()}).optional(),error:o.object({code:x,message:o.string().optional(),fields:o.array(o.object({name:o.string(),type:p,value:o.any(),error:o.string()})).optional()}).optional(),isFinal:o.boolean().optional()}),N=o.object({id:o.string().length(24).nonempty(),organizationId:o.string().uuid().nonempty(),updatedAt:o.string().datetime().nonempty(),stages:o.array(o.object({id:o.string().nonempty(),name:o.string().nonempty()}))}),S=o.object({status:o.enum(["ok","error"]),step:A,flow:N}),P=o.enum(["track"]);export{f as Action,y as ActionEvent,d as ActionScript,I as ClientOptions,_ as DEFAULT_CLIENT_OPTIONS,x as ErrorCode,P as EventType,u as Field,N as Flow,S as FlowContext,D as GetStepOptions,w as GetStepTrigger,j as PostAction,A as Step,L as StepId};
1
+ /*! @onlive.ai/flow-client v0.1.55 | © 2025 Onlive.ai */
2
+ import{GetAvailabilityFilters as s,GetAvailabilityOptions as c}from"@onlive.ai/calendar";import{z as o}from"zod";import{z as t}from"zod";var l=t.object({enabled:t.boolean().default(!1).optional(),data:t.custom().optional(),removeExtraneousValues:t.boolean().default(!0).optional(),allowBotTraffic:t.boolean().default(!1).optional(),adapters:t.array(t.string()).default([]).optional(),apiUrl:t.string().url().optional(),emitters:t.object({windowEvent:t.boolean().optional(),dataLayer:t.boolean().optional(),windowPostMessage:t.boolean().optional()}).optional()});var _={tracking:{removeExtraneousValues:!0,apiUrl:"https://srvless.onlive.site/tracking",data:{widget_type:"OnliveAppFlow"}}},L=o.string().nonempty(),I=o.object({baseUrl:o.string().url().nonempty(),flowId:o.string().length(24).nonempty(),organizationId:o.string().uuid().nonempty(),lang:o.string().length(2).nonempty(),tracking:l.optional(),devMode:o.boolean().default(!1).optional()}),D=o.object({state:o.record(o.string(),o.any()).optional(),fields:o.record(o.string(),o.any()).optional()}),w=o.object({currentStepId:o.string().nonempty(),actionId:o.string().nonempty()}),p=o.enum(["text","boolean","number","email","phone","mobile_phone","date","time","datetime","password","url","color","object","void","location","availability"]),m=o.object({name:o.string(),value:o.string().optional(),icon:o.string().optional(),type:o.enum(["url","email","phone"]).optional()}),b=o.object({lat:o.number().min(-90).max(90),lng:o.number().min(-180).max(180),meta:o.record(o.string(),o.any()).optional(),properties:o.record(o.string(),m).optional()}),g=o.object({datetime:o.string().datetime(),meta:o.record(o.string(),o.any()).optional()}),e=o.union([o.string(),o.number(),o.boolean(),b,g]),i=o.object({content:o.object({icon:o.string().optional(),url:o.string().url().optional(),width:o.string().optional(),height:o.string().optional(),scale:o.number().optional()}).optional(),background:o.string().optional(),glyph:o.object({color:o.string().optional(),url:o.string().url().optional(),icon:o.string().optional()}).optional(),borderColor:o.string().optional(),scale:o.number().optional()}),a=o.custom(r=>/^\d{4}-\d{2}-\d{2}$/.test(r),{message:"Date must be in 'YYYY-MM-DD' format"}),n=o.object({text:o.string().optional(),icon:o.string().optional()}),u=o.object({name:o.string().nonempty(),label:o.string().optional(),value:o.union([e,o.array(e)]).optional(),type:p,component:o.enum(["input","textarea","select","radio","checkbox","switch","rating","carousel","button","label","map","calendar"]).optional(),disabled:o.boolean().optional(),readonly:o.boolean().optional(),multiple:o.boolean().optional(),placeholder:o.string().optional(),options:o.array(o.object({label:o.string().nonempty(),value:e.optional(),image:o.string().url().optional(),description:o.string().optional(),disabled:o.boolean().optional(),attributes:o.record(o.string(),o.any()).optional(),dependsOn:o.array(o.object({fieldName:o.string().nonempty(),value:e.optional(),operator:o.enum(["exists","equals","not-equals","contains","not-contains","greater-than","less-than"]).optional()})).optional()})).optional(),required:o.boolean().optional(),configuration:o.object({generic:o.object({error:o.object({icon:o.string().optional(),showOn:o.enum(["input","blur"]).optional()})}).optional(),input:o.object({min:o.number().optional(),max:o.number().optional(),step:o.number().optional(),pattern:o.string().refine(r=>{try{return new RegExp(r),!0}catch{return!1}},"Invalid regex pattern").optional(),minLength:o.number().optional(),maxLength:o.number().optional(),exactLength:o.number().optional(),prefix:o.object({default:n.optional(),success:n.optional(),error:n.optional()}).optional(),suffix:o.object({default:n.optional(),success:n.optional(),error:n.optional()}).optional(),clearable:o.boolean().optional(),floatingLabel:o.boolean().optional()}).optional(),textarea:o.object({rows:o.number().optional()}).optional(),checkbox:o.object({layout:o.enum(["horizontal","vertical"])}).optional(),rating:o.object({icons:o.array(o.string()).optional(),color:o.string().optional(),precision:o.number().optional()}).optional(),carousel:o.object({loop:o.boolean().optional(),mouseDragging:o.boolean().optional(),itemsPerPage:o.number().optional(),showArrows:o.boolean().optional(),showDots:o.boolean().optional(),autoplay:o.boolean().optional(),autoplaySpeed:o.number().optional(),clickableItems:o.object({actionId:o.string()}).optional()}).optional(),map:o.object({apiKey:o.string().optional(),region:o.string().length(2).optional(),center:o.object({lat:o.number().min(-90).max(90),lng:o.number().min(-180).max(180)}).optional(),showMap:o.enum(["always","on-search","never"]).optional(),zoom:o.object({initial:o.number().optional(),focus:o.number().optional(),max:o.number().optional(),min:o.number().optional()}).optional(),controls:o.object({fullscreen:o.boolean().optional(),mapType:o.boolean().optional(),zoom:o.boolean().optional(),rotate:o.boolean().optional(),scale:o.boolean().optional(),streetView:o.boolean().optional()}).optional(),initialLocations:o.number().optional(),maxLocations:o.number().optional(),distanceUnit:o.enum(["km","mi"]).optional(),distanceFormat:o.enum(["short","long"]).optional(),options:o.object({show:o.enum(["always","on-search","never"]).optional(),component:o.enum(["list-button","list-radio","carousel"]).optional(),searchLabel:o.string().optional(),detailsLabel:o.string().optional()}).optional(),search:o.object({enabled:o.boolean().optional(),value:o.string().optional(),button:o.object({label:o.string().optional(),position:o.enum(["inside","outside"]).optional()}).optional(),placeholder:o.string().optional(),noResultsText:o.string().optional(),autocomplete:o.boolean().optional(),clearable:o.boolean().optional(),mode:o.enum(["address","postcode"]).default("postcode").optional(),locationButton:o.object({icon:o.string().optional(),position:o.enum(["left","right"]).optional()}).optional(),prefix:o.object({default:n.optional()}).optional(),suffix:o.object({default:n.optional()}).optional(),mappedResults:o.object({mapping:o.record(o.string(),o.array(o.object({key:o.string(),value:o.string()})))}).optional()}).optional(),distanceRange:o.object({initial:o.number().optional(),min:o.number().optional(),max:o.number().optional(),step:o.number().optional()}).optional(),mapRegion:o.object({strokeColor:o.string().optional(),fillColor:o.string().optional(),fillOpacity:o.number().optional()}).optional(),locationPin:i.optional(),markerPin:o.object({default:i.optional(),hover:i.optional(),selected:i.optional()}).optional(),infoWindow:o.object({button:o.object({label:o.string(),action:o.string()}).optional()}).optional()}).optional(),calendar:o.object({current:o.object({month:o.number().min(0).max(11).optional(),year:o.number().optional()}).optional(),range:o.object({min:a.optional(),max:a.optional(),enabled:o.array(a).optional(),disabled:o.array(a).optional()}).optional(),time:o.object({label:o.string().optional(),format:o.enum(["12h","24h"]).optional(),component:o.enum(["carousel","list"]).optional()}).optional(),api:o.object({url:o.string().url().nonempty(),organizationId:o.string().nonempty(),availability:o.object({filters:s,options:c.optional()}).optional()}).optional()}).optional()}).optional(),dependsOn:o.array(o.object({fieldName:o.string().nonempty(),value:e.optional(),operator:o.enum(["exists","equals","not-equals","contains","not-contains","greater-than","less-than"]).optional()})).optional(),dependentBehavior:o.enum(["hidden","disabled"]).optional(),customError:o.object({required:o.string().optional(),invalid:o.string().optional(),minLength:o.string().optional(),maxLength:o.string().optional(),minValue:o.string().optional(),maxValue:o.string().optional(),mismatch:o.string().optional()}).optional()}),d=o.object({src:o.string().url(),preload:o.boolean().optional(),name:o.string().nonempty(),function:o.string().nonempty(),params:o.record(o.string(),o.any()).optional()}),y=o.object({name:o.enum(["organization_call","close_panel"]),params:o.record(o.string(),o.any()).optional()}),f=o.object({id:o.string().nonempty(),type:o.enum(["submit","navigate","link","back","dispatcher","script"]),label:o.string().nonempty(),variant:o.enum(["primary","secondary","success","danger","warning","info"]),url:o.string().url().optional(),scripts:d.array().optional(),events:y.array().optional()}),x=o.enum(["INVALID_DATA","INVALID_ACTION","STEP_NOT_FOUND","UNKNOWN_ERROR","APPOINTMENT_INVALID_DATA","APPOINTMENT_BUSY_SLOT","APPOINTMENT_OUT_OF_DATE","APPOINTMENT_UNKNOWN_ERROR","LEAD_INVALID_DATA","LEAD_UNKNOWN_ERROR","CONTENT_INVALID_DATA","CONTENT_UNKNOWN_ERROR","CONTACT_INVALID_DATA","CONTACT_UNKNOWN_ERROR","LOST_OPPORTUNITY_INVALID_DATA","LOST_OPPORTUNITY_UNKNOWN_ERROR"]),j=o.object({type:o.enum(["redirect"]),params:o.record(o.string(),o.any()).optional()}),A=o.object({id:o.string().nonempty(),title:o.string().optional(),description:o.string().optional(),stageId:o.string().optional(),state:o.record(o.string(),o.any()).optional(),fields:o.array(u).optional(),actions:o.array(f).optional(),result:o.object({postActions:o.array(j).optional(),pipelines:o.array(o.object({name:o.string(),data:o.object({})})).optional(),tracking:o.record(o.string(),o.any()).optional()}).optional(),error:o.object({code:x,message:o.string().optional(),fields:o.array(o.object({name:o.string(),type:p,value:o.any(),error:o.string()})).optional()}).optional(),isFinal:o.boolean().optional()}),N=o.object({id:o.string().length(24).nonempty(),organizationId:o.string().uuid().nonempty(),updatedAt:o.string().datetime().nonempty(),stages:o.array(o.object({id:o.string().nonempty(),name:o.string().nonempty()}))}),S=o.object({status:o.enum(["ok","error"]),step:A,flow:N}),P=o.enum(["track"]);export{f as Action,y as ActionEvent,d as ActionScript,I as ClientOptions,_ as DEFAULT_CLIENT_OPTIONS,x as ErrorCode,P as EventType,u as Field,N as Flow,S as FlowContext,D as GetStepOptions,w as GetStepTrigger,j as PostAction,A as Step,L as StepId};
package/flow.types.cjs CHANGED
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/flow-client v0.1.54 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/flow-client v0.1.55 | © 2025 Onlive.ai */
2
2
  "use strict";var d=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var T=(i,t)=>{for(var s in t)d(i,s,{get:t[s],enumerable:!0})},P=(i,t,s,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of F(t))!E.call(i,n)&&n!==s&&d(i,n,{get:()=>t[n],enumerable:!(p=B(t,n))||p.enumerable});return i};var R=i=>P(d({},"__esModule",{value:!0}),i);var L={};T(L,{ActionDtoSchema:()=>C,ActionPipelineDtoSchema:()=>A,ActionTypeEnumSchema:()=>j,ActionVariantEnumSchema:()=>x,ConditionalGroupOperatorDtoSchema:()=>a,ConditionalOperatorDtoSchema:()=>r,DataProviderDtoSchema:()=>c,DataProviderSourceTypeSchema:()=>v,DataTransformerDtoSchema:()=>y,DataTransformerTypeSchema:()=>g,FailFlowSchema:()=>k,FieldComponentEnumSchema:()=>b,FieldDependentBehaviorEnumSchema:()=>h,FieldDtoSchema:()=>D,FieldItemDtoSchema:()=>m,FieldSelectionModeSchema:()=>u,FieldTypeEnumSchema:()=>f,FlowDtoSchema:()=>I,NodeDtoSchema:()=>l,NodeListDtoSchema:()=>O,PipelineFunctionTypeSchema:()=>w,RoutingDtoSchema:()=>q,ScriptsDtoSchema:()=>S});module.exports=R(L);var e=require("zod"),o=e.z.record(e.z.string(),e.z.any()).describe("Represents a plain literal object."),f=e.z.enum(["text","boolean","number","email","phone","mobile_phone","date","time","datetime","password","url","void","location","availability"]).describe("Enum for field types."),b=e.z.enum(["input","textarea","select","radio","checkbox","switch","carousel","button","label","calendar","map"]).describe("Enum for field components."),u=e.z.enum(["simple","multiple"]).describe("Enum for field selection modes."),h=e.z.enum(["hidden","disabled"]).describe("Enum for field dependent behaviors."),m=e.z.object({label:e.z.union([e.z.string(),o]).optional().describe("Label for the field item."),value:o.optional().describe("Value of the field item."),description:e.z.union([e.z.string(),o]).optional().describe("Description for the field item."),image:e.z.string().url().optional().describe("URL of an image for the field item."),nextNodeId:e.z.boolean().optional().describe("ID of the next node.")}).describe("Data transfer object for a field item."),v=e.z.enum(["property","httpRequest","mqRequest","function"]).describe("Enum for data provider source types."),r=e.z.object({exists:e.z.object({valueA:e.z.unknown(),valueB:e.z.boolean()}).optional().describe("Checks if a value exists."),equal:e.z.object({valueA:e.z.unknown(),valueB:e.z.unknown()}).optional().describe("Checks if two values are equal."),notEqual:e.z.object({valueA:e.z.unknown(),valueB:e.z.unknown()}).optional().describe("Checks if two values are not equal."),equalOrGreater:e.z.object({valueA:e.z.unknown(),valueB:e.z.unknown()}).optional().describe("Checks if valueA is equal to or greater than valueB."),equalOrLess:e.z.object({valueA:e.z.unknown(),valueB:e.z.unknown()}).optional().describe("Checks if valueA is equal to or less than valueB."),greater:e.z.object({valueA:e.z.unknown(),valueB:e.z.unknown()}).optional().describe("Checks if valueA is greater than valueB."),less:e.z.object({valueA:e.z.unknown(),valueB:e.z.unknown()}).optional().describe("Checks if valueA is less than valueB."),startsWith:e.z.object({valueA:e.z.string(),valueB:e.z.string()}).optional().describe("Checks if valueA starts with valueB."),contains:e.z.object({valueA:e.z.string(),valueB:e.z.string()}).optional().describe("Checks if valueA contains valueB."),includes:e.z.object({valueA:e.z.array(e.z.unknown()),valueB:e.z.unknown()}).optional().describe("Checks if valueA includes valueB.")}).describe("Data transfer object for conditional operators."),a=e.z.object({or:e.z.array(r).optional().describe("Array of OR conditions."),and:e.z.array(r).optional().describe("Array of AND conditions.")}).describe("Data transfer object for conditional group operators."),g=e.z.enum(["map","concat","filter","reduce","unique","join","flat","flatmap","sort","delete"]).describe("Enum for data transformer types."),y=e.z.object({type:g.describe("Type of the data transformer."),params:e.z.record(e.z.string(),e.z.any()).optional().describe("Parameters for the data transformer."),conditions:e.z.array(e.z.union([r,a])).optional().describe("Conditions for the data transformer."),require:e.z.array(e.z.string()).optional().describe("Required fields for the data transformer.")}).describe("Data transfer object for data transformers."),c=e.z.object({type:v.describe("Type of the data provider source."),name:e.z.string().optional().describe("Name of the data provider."),params:e.z.union([e.z.record(e.z.string(),e.z.unknown()),e.z.string()]).optional().describe("Parameters for the data provider."),persist:e.z.boolean().optional().describe("Whether to persist the data."),conditions:e.z.array(e.z.union([r,a])).optional().describe("Conditions for the data provider."),transformers:e.z.array(y).optional().describe("Transformers for the data provider."),require:e.z.array(e.z.string()).optional().describe("Required fields for the data provider.")}).describe("Data transfer object for data providers."),D=e.z.object({name:e.z.string().describe("Name of the field."),type:f.describe("Type of the field."),label:e.z.union([e.z.string(),o]).optional().describe("Label for the field."),value:e.z.any().optional().describe("Value of the field."),component:b.optional().describe("Component for the field."),selectionMode:u.optional().describe("Selection mode for the field."),required:e.z.boolean().optional().describe("Whether the field is required."),placeholder:e.z.union([e.z.string(),o]).optional().describe("Placeholder for the field."),options:e.z.array(m).optional().describe("Options for the field."),optionsProvider:c.optional().describe("Data provider for the field options."),configuration:o.optional().describe("Configuration for the field."),dependsOn:e.z.array(o).optional().describe("Fields that this field depends on."),dependentBehavior:h.optional().describe("Behavior of the field when its dependencies are not met."),conditions:e.z.array(o).optional().describe("Conditions for the field."),customError:o.optional().describe("Custom error message for the field.")}).describe("Data transfer object for a field."),j=e.z.enum(["submit","link","forward","script"]).describe("Enum for action types."),x=e.z.enum(["primary","secondary","success","warning","info","danger"]).describe("Enum for action variants."),S=e.z.object({src:e.z.string().url().describe("Source URL of the script."),preload:e.z.boolean().optional().describe("Whether to preload the script."),name:e.z.string().describe("Name of the script."),function:e.z.string().describe("Function to execute from the script."),params:e.z.record(e.z.string(),e.z.any()).optional().describe("Parameters for the script function.")}).describe("Data transfer object for scripts."),w=e.z.string().describe("Enum for pipeline function types. TODO: Replace z.string() with z.enum([...]) with actual pipeline function types."),k=o.describe("Data transfer object for fail flow. TODO: Define the actual structure for FailFlowSchema if it's not a plain literal object."),A=e.z.object({function:w.describe("Function type for the pipeline."),params:o.optional().describe("Parameters for the pipeline function."),conditions:e.z.array(e.z.union([r,a])).optional().describe("Conditions for the pipeline."),require:e.z.array(e.z.string()).optional().describe("Required fields for the pipeline."),onFail:k.optional().describe("Fail flow configuration.")}).describe("Data transfer object for an action pipeline."),C=e.z.object({id:e.z.string().describe("ID of the action."),label:e.z.union([e.z.string(),o]).optional().describe("Label for the action."),type:j.describe("Type of the action."),variant:x.optional().describe("Variant of the action."),url:e.z.string().optional().describe("URL for link-type actions."),pipeline:e.z.array(A).optional().describe("Pipeline for the action."),conditions:e.z.array(o).optional().describe("Conditions for the action."),nextStepId:e.z.string().optional().describe("ID of the next step."),scripts:e.z.array(S).optional().describe("Scripts associated with the action.")}).describe("Data transfer object for an action."),q=e.z.object({conditions:e.z.array(e.z.union([r,a])).optional().describe("Conditions for the routing rule."),nextStepId:e.z.string().describe("ID of the next step if conditions are met.")}).describe("Data transfer object for routing."),l=e.z.object({id:e.z.string().describe("ID of the node."),initialNode:e.z.boolean().optional().describe("Whether this is the initial node."),finalNode:e.z.boolean().optional().describe("Whether this is a final node."),title:e.z.union([e.z.string(),o]).optional().describe("Title of the node."),description:e.z.string().optional().describe("Description of the node."),fields:e.z.array(D).optional().describe("Fields in the node."),actions:e.z.array(C).optional().describe("Actions available in the node."),routing:e.z.array(q).optional().describe("Routing rules for the node."),stateProviders:e.z.array(c).optional().describe("Data providers for state management."),trackingProviders:e.z.array(c).optional().describe("Data providers for tracking."),stageId:e.z.string().optional().describe("ID of the stage this node belongs to."),translations:o.optional().describe("Translations for the node.")}).describe("Data transfer object for a node."),O=e.z.array(l).describe("List of nodes."),I=e.z.object({nodes:e.z.array(l).describe("List of nodes.")});0&&(module.exports={ActionDtoSchema,ActionPipelineDtoSchema,ActionTypeEnumSchema,ActionVariantEnumSchema,ConditionalGroupOperatorDtoSchema,ConditionalOperatorDtoSchema,DataProviderDtoSchema,DataProviderSourceTypeSchema,DataTransformerDtoSchema,DataTransformerTypeSchema,FailFlowSchema,FieldComponentEnumSchema,FieldDependentBehaviorEnumSchema,FieldDtoSchema,FieldItemDtoSchema,FieldSelectionModeSchema,FieldTypeEnumSchema,FlowDtoSchema,NodeDtoSchema,NodeListDtoSchema,PipelineFunctionTypeSchema,RoutingDtoSchema,ScriptsDtoSchema});
package/flow.types.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/flow-client v0.1.54 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/flow-client v0.1.55 | © 2025 Onlive.ai */
2
2
  import{z as e}from"zod";var o=e.record(e.string(),e.any()).describe("Represents a plain literal object."),a=e.enum(["text","boolean","number","email","phone","mobile_phone","date","time","datetime","password","url","void","location","availability"]).describe("Enum for field types."),s=e.enum(["input","textarea","select","radio","checkbox","switch","carousel","button","label","calendar","map"]).describe("Enum for field components."),c=e.enum(["simple","multiple"]).describe("Enum for field selection modes."),d=e.enum(["hidden","disabled"]).describe("Enum for field dependent behaviors."),l=e.object({label:e.union([e.string(),o]).optional().describe("Label for the field item."),value:o.optional().describe("Value of the field item."),description:e.union([e.string(),o]).optional().describe("Description for the field item."),image:e.string().url().optional().describe("URL of an image for the field item."),nextNodeId:e.boolean().optional().describe("ID of the next node.")}).describe("Data transfer object for a field item."),p=e.enum(["property","httpRequest","mqRequest","function"]).describe("Enum for data provider source types."),t=e.object({exists:e.object({valueA:e.unknown(),valueB:e.boolean()}).optional().describe("Checks if a value exists."),equal:e.object({valueA:e.unknown(),valueB:e.unknown()}).optional().describe("Checks if two values are equal."),notEqual:e.object({valueA:e.unknown(),valueB:e.unknown()}).optional().describe("Checks if two values are not equal."),equalOrGreater:e.object({valueA:e.unknown(),valueB:e.unknown()}).optional().describe("Checks if valueA is equal to or greater than valueB."),equalOrLess:e.object({valueA:e.unknown(),valueB:e.unknown()}).optional().describe("Checks if valueA is equal to or less than valueB."),greater:e.object({valueA:e.unknown(),valueB:e.unknown()}).optional().describe("Checks if valueA is greater than valueB."),less:e.object({valueA:e.unknown(),valueB:e.unknown()}).optional().describe("Checks if valueA is less than valueB."),startsWith:e.object({valueA:e.string(),valueB:e.string()}).optional().describe("Checks if valueA starts with valueB."),contains:e.object({valueA:e.string(),valueB:e.string()}).optional().describe("Checks if valueA contains valueB."),includes:e.object({valueA:e.array(e.unknown()),valueB:e.unknown()}).optional().describe("Checks if valueA includes valueB.")}).describe("Data transfer object for conditional operators."),i=e.object({or:e.array(t).optional().describe("Array of OR conditions."),and:e.array(t).optional().describe("Array of AND conditions.")}).describe("Data transfer object for conditional group operators."),f=e.enum(["map","concat","filter","reduce","unique","join","flat","flatmap","sort","delete"]).describe("Enum for data transformer types."),b=e.object({type:f.describe("Type of the data transformer."),params:e.record(e.string(),e.any()).optional().describe("Parameters for the data transformer."),conditions:e.array(e.union([t,i])).optional().describe("Conditions for the data transformer."),require:e.array(e.string()).optional().describe("Required fields for the data transformer.")}).describe("Data transfer object for data transformers."),r=e.object({type:p.describe("Type of the data provider source."),name:e.string().optional().describe("Name of the data provider."),params:e.union([e.record(e.string(),e.unknown()),e.string()]).optional().describe("Parameters for the data provider."),persist:e.boolean().optional().describe("Whether to persist the data."),conditions:e.array(e.union([t,i])).optional().describe("Conditions for the data provider."),transformers:e.array(b).optional().describe("Transformers for the data provider."),require:e.array(e.string()).optional().describe("Required fields for the data provider.")}).describe("Data transfer object for data providers."),u=e.object({name:e.string().describe("Name of the field."),type:a.describe("Type of the field."),label:e.union([e.string(),o]).optional().describe("Label for the field."),value:e.any().optional().describe("Value of the field."),component:s.optional().describe("Component for the field."),selectionMode:c.optional().describe("Selection mode for the field."),required:e.boolean().optional().describe("Whether the field is required."),placeholder:e.union([e.string(),o]).optional().describe("Placeholder for the field."),options:e.array(l).optional().describe("Options for the field."),optionsProvider:r.optional().describe("Data provider for the field options."),configuration:o.optional().describe("Configuration for the field."),dependsOn:e.array(o).optional().describe("Fields that this field depends on."),dependentBehavior:d.optional().describe("Behavior of the field when its dependencies are not met."),conditions:e.array(o).optional().describe("Conditions for the field."),customError:o.optional().describe("Custom error message for the field.")}).describe("Data transfer object for a field."),h=e.enum(["submit","link","forward","script"]).describe("Enum for action types."),m=e.enum(["primary","secondary","success","warning","info","danger"]).describe("Enum for action variants."),v=e.object({src:e.string().url().describe("Source URL of the script."),preload:e.boolean().optional().describe("Whether to preload the script."),name:e.string().describe("Name of the script."),function:e.string().describe("Function to execute from the script."),params:e.record(e.string(),e.any()).optional().describe("Parameters for the script function.")}).describe("Data transfer object for scripts."),g=e.string().describe("Enum for pipeline function types. TODO: Replace z.string() with z.enum([...]) with actual pipeline function types."),y=o.describe("Data transfer object for fail flow. TODO: Define the actual structure for FailFlowSchema if it's not a plain literal object."),D=e.object({function:g.describe("Function type for the pipeline."),params:o.optional().describe("Parameters for the pipeline function."),conditions:e.array(e.union([t,i])).optional().describe("Conditions for the pipeline."),require:e.array(e.string()).optional().describe("Required fields for the pipeline."),onFail:y.optional().describe("Fail flow configuration.")}).describe("Data transfer object for an action pipeline."),j=e.object({id:e.string().describe("ID of the action."),label:e.union([e.string(),o]).optional().describe("Label for the action."),type:h.describe("Type of the action."),variant:m.optional().describe("Variant of the action."),url:e.string().optional().describe("URL for link-type actions."),pipeline:e.array(D).optional().describe("Pipeline for the action."),conditions:e.array(o).optional().describe("Conditions for the action."),nextStepId:e.string().optional().describe("ID of the next step."),scripts:e.array(v).optional().describe("Scripts associated with the action.")}).describe("Data transfer object for an action."),x=e.object({conditions:e.array(e.union([t,i])).optional().describe("Conditions for the routing rule."),nextStepId:e.string().describe("ID of the next step if conditions are met.")}).describe("Data transfer object for routing."),n=e.object({id:e.string().describe("ID of the node."),initialNode:e.boolean().optional().describe("Whether this is the initial node."),finalNode:e.boolean().optional().describe("Whether this is a final node."),title:e.union([e.string(),o]).optional().describe("Title of the node."),description:e.string().optional().describe("Description of the node."),fields:e.array(u).optional().describe("Fields in the node."),actions:e.array(j).optional().describe("Actions available in the node."),routing:e.array(x).optional().describe("Routing rules for the node."),stateProviders:e.array(r).optional().describe("Data providers for state management."),trackingProviders:e.array(r).optional().describe("Data providers for tracking."),stageId:e.string().optional().describe("ID of the stage this node belongs to."),translations:o.optional().describe("Translations for the node.")}).describe("Data transfer object for a node."),w=e.array(n).describe("List of nodes."),k=e.object({nodes:e.array(n).describe("List of nodes.")});export{j as ActionDtoSchema,D as ActionPipelineDtoSchema,h as ActionTypeEnumSchema,m as ActionVariantEnumSchema,i as ConditionalGroupOperatorDtoSchema,t as ConditionalOperatorDtoSchema,r as DataProviderDtoSchema,p as DataProviderSourceTypeSchema,b as DataTransformerDtoSchema,f as DataTransformerTypeSchema,y as FailFlowSchema,s as FieldComponentEnumSchema,d as FieldDependentBehaviorEnumSchema,u as FieldDtoSchema,l as FieldItemDtoSchema,c as FieldSelectionModeSchema,a as FieldTypeEnumSchema,k as FlowDtoSchema,n as NodeDtoSchema,w as NodeListDtoSchema,g as PipelineFunctionTypeSchema,x as RoutingDtoSchema,v as ScriptsDtoSchema};