@onlive.ai/flow-client 0.1.44 → 0.1.45

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.
@@ -2763,7 +2763,7 @@ declare const Step: z.ZodObject<{
2763
2763
  lat: number;
2764
2764
  lng: number;
2765
2765
  }>>;
2766
- showMap: z.ZodOptional<z.ZodEnum<["always", "on-search"]>>;
2766
+ showMap: z.ZodOptional<z.ZodEnum<["always", "on-search", "never"]>>;
2767
2767
  zoom: z.ZodOptional<z.ZodObject<{
2768
2768
  initial: z.ZodOptional<z.ZodNumber>;
2769
2769
  focus: z.ZodOptional<z.ZodNumber>;
@@ -3462,7 +3462,7 @@ declare const Step: z.ZodObject<{
3462
3462
  lat: number;
3463
3463
  lng: number;
3464
3464
  } | undefined;
3465
- showMap?: "always" | "on-search" | undefined;
3465
+ showMap?: "never" | "always" | "on-search" | undefined;
3466
3466
  zoom?: {
3467
3467
  min?: number | undefined;
3468
3468
  max?: number | undefined;
@@ -3615,7 +3615,7 @@ declare const Step: z.ZodObject<{
3615
3615
  lat: number;
3616
3616
  lng: number;
3617
3617
  } | undefined;
3618
- showMap?: "always" | "on-search" | undefined;
3618
+ showMap?: "never" | "always" | "on-search" | undefined;
3619
3619
  zoom?: {
3620
3620
  min?: number | undefined;
3621
3621
  max?: number | undefined;
@@ -3968,7 +3968,7 @@ declare const Step: z.ZodObject<{
3968
3968
  lat: number;
3969
3969
  lng: number;
3970
3970
  } | undefined;
3971
- showMap?: "always" | "on-search" | undefined;
3971
+ showMap?: "never" | "always" | "on-search" | undefined;
3972
3972
  zoom?: {
3973
3973
  min?: number | undefined;
3974
3974
  max?: number | undefined;
@@ -4207,7 +4207,7 @@ declare const Step: z.ZodObject<{
4207
4207
  lat: number;
4208
4208
  lng: number;
4209
4209
  } | undefined;
4210
- showMap?: "always" | "on-search" | undefined;
4210
+ showMap?: "never" | "always" | "on-search" | undefined;
4211
4211
  zoom?: {
4212
4212
  min?: number | undefined;
4213
4213
  max?: number | undefined;
@@ -4615,7 +4615,7 @@ declare const Step: z.ZodObject<{
4615
4615
  lat: number;
4616
4616
  lng: number;
4617
4617
  } | undefined;
4618
- showMap?: "always" | "on-search" | undefined;
4618
+ showMap?: "never" | "always" | "on-search" | undefined;
4619
4619
  zoom?: {
4620
4620
  min?: number | undefined;
4621
4621
  max?: number | undefined;
@@ -4940,7 +4940,7 @@ declare const Step: z.ZodObject<{
4940
4940
  lat: number;
4941
4941
  lng: number;
4942
4942
  } | undefined;
4943
- showMap?: "always" | "on-search" | undefined;
4943
+ showMap?: "never" | "always" | "on-search" | undefined;
4944
4944
  zoom?: {
4945
4945
  min?: number | undefined;
4946
4946
  max?: number | undefined;
@@ -5422,7 +5422,7 @@ declare const Step: z.ZodObject<{
5422
5422
  lat: number;
5423
5423
  lng: number;
5424
5424
  } | undefined;
5425
- showMap?: "always" | "on-search" | undefined;
5425
+ showMap?: "never" | "always" | "on-search" | undefined;
5426
5426
  zoom?: {
5427
5427
  min?: number | undefined;
5428
5428
  max?: number | undefined;
@@ -5794,7 +5794,7 @@ declare const Step: z.ZodObject<{
5794
5794
  lat: number;
5795
5795
  lng: number;
5796
5796
  } | undefined;
5797
- showMap?: "always" | "on-search" | undefined;
5797
+ showMap?: "never" | "always" | "on-search" | undefined;
5798
5798
  zoom?: {
5799
5799
  min?: number | undefined;
5800
5800
  max?: number | undefined;
@@ -6286,7 +6286,7 @@ type ActionEvent = z.infer<typeof ActionEvent>;
6286
6286
  * @property {Object} [configuration.map.center] - Initial map center coordinates.
6287
6287
  * @property {number} configuration.map.center.lat - Latitude coordinate (-90 to 90).
6288
6288
  * @property {number} configuration.map.center.lng - Longitude coordinate (-180 to 180).
6289
- * @property {"always" | "on-search"} [configuration.map.showMap] - When to display the map.
6289
+ * @property {"always" | "on-search" | "never"} [configuration.map.showMap] - When to display the map.
6290
6290
  * @property {Object} [configuration.map.zoom] - Zoom level configuration.
6291
6291
  * @property {number} [configuration.map.zoom.initial] - Initial zoom level.
6292
6292
  * @property {number} [configuration.map.zoom.focus] - Zoom level when focusing on location.
@@ -6825,7 +6825,7 @@ declare const Field: z.ZodObject<{
6825
6825
  lat: number;
6826
6826
  lng: number;
6827
6827
  }>>;
6828
- showMap: z.ZodOptional<z.ZodEnum<["always", "on-search"]>>;
6828
+ showMap: z.ZodOptional<z.ZodEnum<["always", "on-search", "never"]>>;
6829
6829
  zoom: z.ZodOptional<z.ZodObject<{
6830
6830
  initial: z.ZodOptional<z.ZodNumber>;
6831
6831
  focus: z.ZodOptional<z.ZodNumber>;
@@ -7524,7 +7524,7 @@ declare const Field: z.ZodObject<{
7524
7524
  lat: number;
7525
7525
  lng: number;
7526
7526
  } | undefined;
7527
- showMap?: "always" | "on-search" | undefined;
7527
+ showMap?: "never" | "always" | "on-search" | undefined;
7528
7528
  zoom?: {
7529
7529
  min?: number | undefined;
7530
7530
  max?: number | undefined;
@@ -7677,7 +7677,7 @@ declare const Field: z.ZodObject<{
7677
7677
  lat: number;
7678
7678
  lng: number;
7679
7679
  } | undefined;
7680
- showMap?: "always" | "on-search" | undefined;
7680
+ showMap?: "never" | "always" | "on-search" | undefined;
7681
7681
  zoom?: {
7682
7682
  min?: number | undefined;
7683
7683
  max?: number | undefined;
@@ -8030,7 +8030,7 @@ declare const Field: z.ZodObject<{
8030
8030
  lat: number;
8031
8031
  lng: number;
8032
8032
  } | undefined;
8033
- showMap?: "always" | "on-search" | undefined;
8033
+ showMap?: "never" | "always" | "on-search" | undefined;
8034
8034
  zoom?: {
8035
8035
  min?: number | undefined;
8036
8036
  max?: number | undefined;
@@ -8269,7 +8269,7 @@ declare const Field: z.ZodObject<{
8269
8269
  lat: number;
8270
8270
  lng: number;
8271
8271
  } | undefined;
8272
- showMap?: "always" | "on-search" | undefined;
8272
+ showMap?: "never" | "always" | "on-search" | undefined;
8273
8273
  zoom?: {
8274
8274
  min?: number | undefined;
8275
8275
  max?: number | undefined;
@@ -8677,7 +8677,7 @@ declare const Field: z.ZodObject<{
8677
8677
  lat: number;
8678
8678
  lng: number;
8679
8679
  } | undefined;
8680
- showMap?: "always" | "on-search" | undefined;
8680
+ showMap?: "never" | "always" | "on-search" | undefined;
8681
8681
  zoom?: {
8682
8682
  min?: number | undefined;
8683
8683
  max?: number | undefined;
@@ -9002,7 +9002,7 @@ declare const Field: z.ZodObject<{
9002
9002
  lat: number;
9003
9003
  lng: number;
9004
9004
  } | undefined;
9005
- showMap?: "always" | "on-search" | undefined;
9005
+ showMap?: "never" | "always" | "on-search" | undefined;
9006
9006
  zoom?: {
9007
9007
  min?: number | undefined;
9008
9008
  max?: number | undefined;
@@ -9946,7 +9946,7 @@ declare const FlowContext: z.ZodObject<{
9946
9946
  lat: number;
9947
9947
  lng: number;
9948
9948
  }>>;
9949
- showMap: z.ZodOptional<z.ZodEnum<["always", "on-search"]>>;
9949
+ showMap: z.ZodOptional<z.ZodEnum<["always", "on-search", "never"]>>;
9950
9950
  zoom: z.ZodOptional<z.ZodObject<{
9951
9951
  initial: z.ZodOptional<z.ZodNumber>;
9952
9952
  focus: z.ZodOptional<z.ZodNumber>;
@@ -10645,7 +10645,7 @@ declare const FlowContext: z.ZodObject<{
10645
10645
  lat: number;
10646
10646
  lng: number;
10647
10647
  } | undefined;
10648
- showMap?: "always" | "on-search" | undefined;
10648
+ showMap?: "never" | "always" | "on-search" | undefined;
10649
10649
  zoom?: {
10650
10650
  min?: number | undefined;
10651
10651
  max?: number | undefined;
@@ -10798,7 +10798,7 @@ declare const FlowContext: z.ZodObject<{
10798
10798
  lat: number;
10799
10799
  lng: number;
10800
10800
  } | undefined;
10801
- showMap?: "always" | "on-search" | undefined;
10801
+ showMap?: "never" | "always" | "on-search" | undefined;
10802
10802
  zoom?: {
10803
10803
  min?: number | undefined;
10804
10804
  max?: number | undefined;
@@ -11151,7 +11151,7 @@ declare const FlowContext: z.ZodObject<{
11151
11151
  lat: number;
11152
11152
  lng: number;
11153
11153
  } | undefined;
11154
- showMap?: "always" | "on-search" | undefined;
11154
+ showMap?: "never" | "always" | "on-search" | undefined;
11155
11155
  zoom?: {
11156
11156
  min?: number | undefined;
11157
11157
  max?: number | undefined;
@@ -11390,7 +11390,7 @@ declare const FlowContext: z.ZodObject<{
11390
11390
  lat: number;
11391
11391
  lng: number;
11392
11392
  } | undefined;
11393
- showMap?: "always" | "on-search" | undefined;
11393
+ showMap?: "never" | "always" | "on-search" | undefined;
11394
11394
  zoom?: {
11395
11395
  min?: number | undefined;
11396
11396
  max?: number | undefined;
@@ -11798,7 +11798,7 @@ declare const FlowContext: z.ZodObject<{
11798
11798
  lat: number;
11799
11799
  lng: number;
11800
11800
  } | undefined;
11801
- showMap?: "always" | "on-search" | undefined;
11801
+ showMap?: "never" | "always" | "on-search" | undefined;
11802
11802
  zoom?: {
11803
11803
  min?: number | undefined;
11804
11804
  max?: number | undefined;
@@ -12123,7 +12123,7 @@ declare const FlowContext: z.ZodObject<{
12123
12123
  lat: number;
12124
12124
  lng: number;
12125
12125
  } | undefined;
12126
- showMap?: "always" | "on-search" | undefined;
12126
+ showMap?: "never" | "always" | "on-search" | undefined;
12127
12127
  zoom?: {
12128
12128
  min?: number | undefined;
12129
12129
  max?: number | undefined;
@@ -12605,7 +12605,7 @@ declare const FlowContext: z.ZodObject<{
12605
12605
  lat: number;
12606
12606
  lng: number;
12607
12607
  } | undefined;
12608
- showMap?: "always" | "on-search" | undefined;
12608
+ showMap?: "never" | "always" | "on-search" | undefined;
12609
12609
  zoom?: {
12610
12610
  min?: number | undefined;
12611
12611
  max?: number | undefined;
@@ -12977,7 +12977,7 @@ declare const FlowContext: z.ZodObject<{
12977
12977
  lat: number;
12978
12978
  lng: number;
12979
12979
  } | undefined;
12980
- showMap?: "always" | "on-search" | undefined;
12980
+ showMap?: "never" | "always" | "on-search" | undefined;
12981
12981
  zoom?: {
12982
12982
  min?: number | undefined;
12983
12983
  max?: number | undefined;
@@ -13383,7 +13383,7 @@ declare const FlowContext: z.ZodObject<{
13383
13383
  lat: number;
13384
13384
  lng: number;
13385
13385
  } | undefined;
13386
- showMap?: "always" | "on-search" | undefined;
13386
+ showMap?: "never" | "always" | "on-search" | undefined;
13387
13387
  zoom?: {
13388
13388
  min?: number | undefined;
13389
13389
  max?: number | undefined;
@@ -13767,7 +13767,7 @@ declare const FlowContext: z.ZodObject<{
13767
13767
  lat: number;
13768
13768
  lng: number;
13769
13769
  } | undefined;
13770
- showMap?: "always" | "on-search" | undefined;
13770
+ showMap?: "never" | "always" | "on-search" | undefined;
13771
13771
  zoom?: {
13772
13772
  min?: number | undefined;
13773
13773
  max?: number | undefined;
@@ -2763,7 +2763,7 @@ declare const Step: z.ZodObject<{
2763
2763
  lat: number;
2764
2764
  lng: number;
2765
2765
  }>>;
2766
- showMap: z.ZodOptional<z.ZodEnum<["always", "on-search"]>>;
2766
+ showMap: z.ZodOptional<z.ZodEnum<["always", "on-search", "never"]>>;
2767
2767
  zoom: z.ZodOptional<z.ZodObject<{
2768
2768
  initial: z.ZodOptional<z.ZodNumber>;
2769
2769
  focus: z.ZodOptional<z.ZodNumber>;
@@ -3462,7 +3462,7 @@ declare const Step: z.ZodObject<{
3462
3462
  lat: number;
3463
3463
  lng: number;
3464
3464
  } | undefined;
3465
- showMap?: "always" | "on-search" | undefined;
3465
+ showMap?: "never" | "always" | "on-search" | undefined;
3466
3466
  zoom?: {
3467
3467
  min?: number | undefined;
3468
3468
  max?: number | undefined;
@@ -3615,7 +3615,7 @@ declare const Step: z.ZodObject<{
3615
3615
  lat: number;
3616
3616
  lng: number;
3617
3617
  } | undefined;
3618
- showMap?: "always" | "on-search" | undefined;
3618
+ showMap?: "never" | "always" | "on-search" | undefined;
3619
3619
  zoom?: {
3620
3620
  min?: number | undefined;
3621
3621
  max?: number | undefined;
@@ -3968,7 +3968,7 @@ declare const Step: z.ZodObject<{
3968
3968
  lat: number;
3969
3969
  lng: number;
3970
3970
  } | undefined;
3971
- showMap?: "always" | "on-search" | undefined;
3971
+ showMap?: "never" | "always" | "on-search" | undefined;
3972
3972
  zoom?: {
3973
3973
  min?: number | undefined;
3974
3974
  max?: number | undefined;
@@ -4207,7 +4207,7 @@ declare const Step: z.ZodObject<{
4207
4207
  lat: number;
4208
4208
  lng: number;
4209
4209
  } | undefined;
4210
- showMap?: "always" | "on-search" | undefined;
4210
+ showMap?: "never" | "always" | "on-search" | undefined;
4211
4211
  zoom?: {
4212
4212
  min?: number | undefined;
4213
4213
  max?: number | undefined;
@@ -4615,7 +4615,7 @@ declare const Step: z.ZodObject<{
4615
4615
  lat: number;
4616
4616
  lng: number;
4617
4617
  } | undefined;
4618
- showMap?: "always" | "on-search" | undefined;
4618
+ showMap?: "never" | "always" | "on-search" | undefined;
4619
4619
  zoom?: {
4620
4620
  min?: number | undefined;
4621
4621
  max?: number | undefined;
@@ -4940,7 +4940,7 @@ declare const Step: z.ZodObject<{
4940
4940
  lat: number;
4941
4941
  lng: number;
4942
4942
  } | undefined;
4943
- showMap?: "always" | "on-search" | undefined;
4943
+ showMap?: "never" | "always" | "on-search" | undefined;
4944
4944
  zoom?: {
4945
4945
  min?: number | undefined;
4946
4946
  max?: number | undefined;
@@ -5422,7 +5422,7 @@ declare const Step: z.ZodObject<{
5422
5422
  lat: number;
5423
5423
  lng: number;
5424
5424
  } | undefined;
5425
- showMap?: "always" | "on-search" | undefined;
5425
+ showMap?: "never" | "always" | "on-search" | undefined;
5426
5426
  zoom?: {
5427
5427
  min?: number | undefined;
5428
5428
  max?: number | undefined;
@@ -5794,7 +5794,7 @@ declare const Step: z.ZodObject<{
5794
5794
  lat: number;
5795
5795
  lng: number;
5796
5796
  } | undefined;
5797
- showMap?: "always" | "on-search" | undefined;
5797
+ showMap?: "never" | "always" | "on-search" | undefined;
5798
5798
  zoom?: {
5799
5799
  min?: number | undefined;
5800
5800
  max?: number | undefined;
@@ -6286,7 +6286,7 @@ type ActionEvent = z.infer<typeof ActionEvent>;
6286
6286
  * @property {Object} [configuration.map.center] - Initial map center coordinates.
6287
6287
  * @property {number} configuration.map.center.lat - Latitude coordinate (-90 to 90).
6288
6288
  * @property {number} configuration.map.center.lng - Longitude coordinate (-180 to 180).
6289
- * @property {"always" | "on-search"} [configuration.map.showMap] - When to display the map.
6289
+ * @property {"always" | "on-search" | "never"} [configuration.map.showMap] - When to display the map.
6290
6290
  * @property {Object} [configuration.map.zoom] - Zoom level configuration.
6291
6291
  * @property {number} [configuration.map.zoom.initial] - Initial zoom level.
6292
6292
  * @property {number} [configuration.map.zoom.focus] - Zoom level when focusing on location.
@@ -6825,7 +6825,7 @@ declare const Field: z.ZodObject<{
6825
6825
  lat: number;
6826
6826
  lng: number;
6827
6827
  }>>;
6828
- showMap: z.ZodOptional<z.ZodEnum<["always", "on-search"]>>;
6828
+ showMap: z.ZodOptional<z.ZodEnum<["always", "on-search", "never"]>>;
6829
6829
  zoom: z.ZodOptional<z.ZodObject<{
6830
6830
  initial: z.ZodOptional<z.ZodNumber>;
6831
6831
  focus: z.ZodOptional<z.ZodNumber>;
@@ -7524,7 +7524,7 @@ declare const Field: z.ZodObject<{
7524
7524
  lat: number;
7525
7525
  lng: number;
7526
7526
  } | undefined;
7527
- showMap?: "always" | "on-search" | undefined;
7527
+ showMap?: "never" | "always" | "on-search" | undefined;
7528
7528
  zoom?: {
7529
7529
  min?: number | undefined;
7530
7530
  max?: number | undefined;
@@ -7677,7 +7677,7 @@ declare const Field: z.ZodObject<{
7677
7677
  lat: number;
7678
7678
  lng: number;
7679
7679
  } | undefined;
7680
- showMap?: "always" | "on-search" | undefined;
7680
+ showMap?: "never" | "always" | "on-search" | undefined;
7681
7681
  zoom?: {
7682
7682
  min?: number | undefined;
7683
7683
  max?: number | undefined;
@@ -8030,7 +8030,7 @@ declare const Field: z.ZodObject<{
8030
8030
  lat: number;
8031
8031
  lng: number;
8032
8032
  } | undefined;
8033
- showMap?: "always" | "on-search" | undefined;
8033
+ showMap?: "never" | "always" | "on-search" | undefined;
8034
8034
  zoom?: {
8035
8035
  min?: number | undefined;
8036
8036
  max?: number | undefined;
@@ -8269,7 +8269,7 @@ declare const Field: z.ZodObject<{
8269
8269
  lat: number;
8270
8270
  lng: number;
8271
8271
  } | undefined;
8272
- showMap?: "always" | "on-search" | undefined;
8272
+ showMap?: "never" | "always" | "on-search" | undefined;
8273
8273
  zoom?: {
8274
8274
  min?: number | undefined;
8275
8275
  max?: number | undefined;
@@ -8677,7 +8677,7 @@ declare const Field: z.ZodObject<{
8677
8677
  lat: number;
8678
8678
  lng: number;
8679
8679
  } | undefined;
8680
- showMap?: "always" | "on-search" | undefined;
8680
+ showMap?: "never" | "always" | "on-search" | undefined;
8681
8681
  zoom?: {
8682
8682
  min?: number | undefined;
8683
8683
  max?: number | undefined;
@@ -9002,7 +9002,7 @@ declare const Field: z.ZodObject<{
9002
9002
  lat: number;
9003
9003
  lng: number;
9004
9004
  } | undefined;
9005
- showMap?: "always" | "on-search" | undefined;
9005
+ showMap?: "never" | "always" | "on-search" | undefined;
9006
9006
  zoom?: {
9007
9007
  min?: number | undefined;
9008
9008
  max?: number | undefined;
@@ -9946,7 +9946,7 @@ declare const FlowContext: z.ZodObject<{
9946
9946
  lat: number;
9947
9947
  lng: number;
9948
9948
  }>>;
9949
- showMap: z.ZodOptional<z.ZodEnum<["always", "on-search"]>>;
9949
+ showMap: z.ZodOptional<z.ZodEnum<["always", "on-search", "never"]>>;
9950
9950
  zoom: z.ZodOptional<z.ZodObject<{
9951
9951
  initial: z.ZodOptional<z.ZodNumber>;
9952
9952
  focus: z.ZodOptional<z.ZodNumber>;
@@ -10645,7 +10645,7 @@ declare const FlowContext: z.ZodObject<{
10645
10645
  lat: number;
10646
10646
  lng: number;
10647
10647
  } | undefined;
10648
- showMap?: "always" | "on-search" | undefined;
10648
+ showMap?: "never" | "always" | "on-search" | undefined;
10649
10649
  zoom?: {
10650
10650
  min?: number | undefined;
10651
10651
  max?: number | undefined;
@@ -10798,7 +10798,7 @@ declare const FlowContext: z.ZodObject<{
10798
10798
  lat: number;
10799
10799
  lng: number;
10800
10800
  } | undefined;
10801
- showMap?: "always" | "on-search" | undefined;
10801
+ showMap?: "never" | "always" | "on-search" | undefined;
10802
10802
  zoom?: {
10803
10803
  min?: number | undefined;
10804
10804
  max?: number | undefined;
@@ -11151,7 +11151,7 @@ declare const FlowContext: z.ZodObject<{
11151
11151
  lat: number;
11152
11152
  lng: number;
11153
11153
  } | undefined;
11154
- showMap?: "always" | "on-search" | undefined;
11154
+ showMap?: "never" | "always" | "on-search" | undefined;
11155
11155
  zoom?: {
11156
11156
  min?: number | undefined;
11157
11157
  max?: number | undefined;
@@ -11390,7 +11390,7 @@ declare const FlowContext: z.ZodObject<{
11390
11390
  lat: number;
11391
11391
  lng: number;
11392
11392
  } | undefined;
11393
- showMap?: "always" | "on-search" | undefined;
11393
+ showMap?: "never" | "always" | "on-search" | undefined;
11394
11394
  zoom?: {
11395
11395
  min?: number | undefined;
11396
11396
  max?: number | undefined;
@@ -11798,7 +11798,7 @@ declare const FlowContext: z.ZodObject<{
11798
11798
  lat: number;
11799
11799
  lng: number;
11800
11800
  } | undefined;
11801
- showMap?: "always" | "on-search" | undefined;
11801
+ showMap?: "never" | "always" | "on-search" | undefined;
11802
11802
  zoom?: {
11803
11803
  min?: number | undefined;
11804
11804
  max?: number | undefined;
@@ -12123,7 +12123,7 @@ declare const FlowContext: z.ZodObject<{
12123
12123
  lat: number;
12124
12124
  lng: number;
12125
12125
  } | undefined;
12126
- showMap?: "always" | "on-search" | undefined;
12126
+ showMap?: "never" | "always" | "on-search" | undefined;
12127
12127
  zoom?: {
12128
12128
  min?: number | undefined;
12129
12129
  max?: number | undefined;
@@ -12605,7 +12605,7 @@ declare const FlowContext: z.ZodObject<{
12605
12605
  lat: number;
12606
12606
  lng: number;
12607
12607
  } | undefined;
12608
- showMap?: "always" | "on-search" | undefined;
12608
+ showMap?: "never" | "always" | "on-search" | undefined;
12609
12609
  zoom?: {
12610
12610
  min?: number | undefined;
12611
12611
  max?: number | undefined;
@@ -12977,7 +12977,7 @@ declare const FlowContext: z.ZodObject<{
12977
12977
  lat: number;
12978
12978
  lng: number;
12979
12979
  } | undefined;
12980
- showMap?: "always" | "on-search" | undefined;
12980
+ showMap?: "never" | "always" | "on-search" | undefined;
12981
12981
  zoom?: {
12982
12982
  min?: number | undefined;
12983
12983
  max?: number | undefined;
@@ -13383,7 +13383,7 @@ declare const FlowContext: z.ZodObject<{
13383
13383
  lat: number;
13384
13384
  lng: number;
13385
13385
  } | undefined;
13386
- showMap?: "always" | "on-search" | undefined;
13386
+ showMap?: "never" | "always" | "on-search" | undefined;
13387
13387
  zoom?: {
13388
13388
  min?: number | undefined;
13389
13389
  max?: number | undefined;
@@ -13767,7 +13767,7 @@ declare const FlowContext: z.ZodObject<{
13767
13767
  lat: number;
13768
13768
  lng: number;
13769
13769
  } | undefined;
13770
- showMap?: "always" | "on-search" | undefined;
13770
+ showMap?: "never" | "always" | "on-search" | undefined;
13771
13771
  zoom?: {
13772
13772
  min?: number | undefined;
13773
13773
  max?: number | undefined;
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/flow-client v0.1.44 | © 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 h={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()}),S=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()})).optional(),required:o.boolean().optional(),configuration:o.object({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(),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"]).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()})).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()}),y=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()}),d=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:y.array().optional(),events:d.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()}))}),z=o.object({status:o.enum(["ok","error"]),step:A,flow:N}),w=o.enum(["track"]);export{f as Action,d as ActionEvent,y as ActionScript,I as ClientOptions,h as DEFAULT_CLIENT_OPTIONS,x as ErrorCode,w as EventType,u as Field,N as Flow,z as FlowContext,D as GetStepOptions,S as GetStepTrigger,j as PostAction,A as Step,L as StepId};
1
+ /*! @onlive.ai/flow-client v0.1.45 | © 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 h={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()}),S=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()})).optional(),required:o.boolean().optional(),configuration:o.object({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(),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()})).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()}),y=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()}),d=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:y.array().optional(),events:d.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()}))}),z=o.object({status:o.enum(["ok","error"]),step:A,flow:N}),w=o.enum(["track"]);export{f as Action,d as ActionEvent,y as ActionScript,I as ClientOptions,h as DEFAULT_CLIENT_OPTIONS,x as ErrorCode,w as EventType,u as Field,N as Flow,z as FlowContext,D as GetStepOptions,S 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.44 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/flow-client v0.1.45 | © 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.44 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/flow-client v0.1.45 | © 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};