@walkeros/core 4.0.0 → 4.0.1-next-1778068549946

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.
package/dist/dev.d.mts CHANGED
@@ -795,6 +795,7 @@ declare const ConfigSchema$5: z.ZodObject<{
795
795
  }>]>>;
796
796
  handler: z.ZodOptional<z.ZodAny>;
797
797
  }, z.core.$strip>>;
798
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
798
799
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
799
800
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
800
801
  cache: z.ZodOptional<z.ZodObject<{
@@ -861,6 +862,7 @@ declare const PartialConfigSchema$3: z.ZodObject<{
861
862
  }>]>>;
862
863
  handler: z.ZodOptional<z.ZodAny>;
863
864
  }, z.core.$strip>>>;
865
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
864
866
  before: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
865
867
  next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
866
868
  cache: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -935,6 +937,7 @@ declare const ContextSchema: z.ZodObject<{
935
937
  }>]>>;
936
938
  handler: z.ZodOptional<z.ZodAny>;
937
939
  }, z.core.$strip>>;
940
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
938
941
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
939
942
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
940
943
  cache: z.ZodOptional<z.ZodObject<{
@@ -1003,6 +1006,7 @@ declare const PushContextSchema$1: z.ZodObject<{
1003
1006
  }>]>>;
1004
1007
  handler: z.ZodOptional<z.ZodAny>;
1005
1008
  }, z.core.$strip>>;
1009
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1006
1010
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1007
1011
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1008
1012
  cache: z.ZodOptional<z.ZodObject<{
@@ -1083,6 +1087,7 @@ declare const PushBatchContextSchema: z.ZodObject<{
1083
1087
  }>]>>;
1084
1088
  handler: z.ZodOptional<z.ZodAny>;
1085
1089
  }, z.core.$strip>>;
1090
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1086
1091
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1087
1092
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1088
1093
  cache: z.ZodOptional<z.ZodObject<{
@@ -1377,6 +1382,7 @@ declare const InstanceSchema$2: z.ZodObject<{
1377
1382
  }>]>>;
1378
1383
  handler: z.ZodOptional<z.ZodAny>;
1379
1384
  }, z.core.$strip>>;
1385
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1380
1386
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1381
1387
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1382
1388
  cache: z.ZodOptional<z.ZodObject<{
@@ -1551,6 +1557,7 @@ declare const InitSchema$1: z.ZodObject<{
1551
1557
  }>]>>;
1552
1558
  handler: z.ZodOptional<z.ZodAny>;
1553
1559
  }, z.core.$strip>>;
1560
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1554
1561
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1555
1562
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1556
1563
  cache: z.ZodOptional<z.ZodObject<{
@@ -1719,6 +1726,7 @@ declare const InitSchema$1: z.ZodObject<{
1719
1726
  }>]>>;
1720
1727
  handler: z.ZodOptional<z.ZodAny>;
1721
1728
  }, z.core.$strip>>>;
1729
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1722
1730
  before: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1723
1731
  next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1724
1732
  cache: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -1785,6 +1793,7 @@ declare const InitDestinationsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1785
1793
  }>]>>;
1786
1794
  handler: z.ZodOptional<z.ZodAny>;
1787
1795
  }, z.core.$strip>>;
1796
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1788
1797
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1789
1798
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1790
1799
  cache: z.ZodOptional<z.ZodObject<{
@@ -1953,6 +1962,7 @@ declare const InitDestinationsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1953
1962
  }>]>>;
1954
1963
  handler: z.ZodOptional<z.ZodAny>;
1955
1964
  }, z.core.$strip>>>;
1965
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1956
1966
  before: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1957
1967
  next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1958
1968
  cache: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -2018,6 +2028,7 @@ declare const DestinationsSchema$1: z.ZodRecord<z.ZodString, z.ZodObject<{
2018
2028
  }>]>>;
2019
2029
  handler: z.ZodOptional<z.ZodAny>;
2020
2030
  }, z.core.$strip>>;
2031
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2021
2032
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2022
2033
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
2023
2034
  cache: z.ZodOptional<z.ZodObject<{
@@ -2784,6 +2795,7 @@ declare const ConfigSchema$3: z.ZodObject<{
2784
2795
  }>]>>;
2785
2796
  handler: z.ZodOptional<z.ZodAny>;
2786
2797
  }, z.core.$strip>>;
2798
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2787
2799
  ingest: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>;
2788
2800
  disabled: z.ZodOptional<z.ZodBoolean>;
2789
2801
  }, z.core.$strip>;
@@ -2841,6 +2853,7 @@ declare const PartialConfigSchema$2: z.ZodObject<{
2841
2853
  }>]>>;
2842
2854
  handler: z.ZodOptional<z.ZodAny>;
2843
2855
  }, z.core.$strip>>>;
2856
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2844
2857
  ingest: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>>;
2845
2858
  disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2846
2859
  }, z.core.$strip>;
@@ -2914,6 +2927,7 @@ declare const InstanceSchema: z.ZodObject<{
2914
2927
  }>]>>;
2915
2928
  handler: z.ZodOptional<z.ZodAny>;
2916
2929
  }, z.core.$strip>>;
2930
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2917
2931
  ingest: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>;
2918
2932
  disabled: z.ZodOptional<z.ZodBoolean>;
2919
2933
  }, z.core.$strip>;
@@ -2996,6 +3010,7 @@ declare const InitSourceSchema: z.ZodObject<{
2996
3010
  }>]>>;
2997
3011
  handler: z.ZodOptional<z.ZodAny>;
2998
3012
  }, z.core.$strip>>>;
3013
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2999
3014
  ingest: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>>;
3000
3015
  disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3001
3016
  }, z.core.$strip>>;
@@ -3059,6 +3074,7 @@ declare const InitSourcesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3059
3074
  }>]>>;
3060
3075
  handler: z.ZodOptional<z.ZodAny>;
3061
3076
  }, z.core.$strip>>>;
3077
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
3062
3078
  ingest: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>]>>>;
3063
3079
  disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3064
3080
  }, z.core.$strip>>;
@@ -3206,6 +3222,7 @@ declare const ConfigSchema$1: z.ZodObject<{
3206
3222
  }>]>>;
3207
3223
  handler: z.ZodOptional<z.ZodAny>;
3208
3224
  }, z.core.$strip>>;
3225
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3209
3226
  }, z.core.$strip>;
3210
3227
  /**
3211
3228
  * PartialConfig - Config with all fields optional
@@ -3223,6 +3240,7 @@ declare const PartialConfigSchema: z.ZodObject<{
3223
3240
  }>]>>;
3224
3241
  handler: z.ZodOptional<z.ZodAny>;
3225
3242
  }, z.core.$strip>>>;
3243
+ setup: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
3226
3244
  }, z.core.$strip>;
3227
3245
  declare const configJsonSchema$1: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3228
3246
  declare const partialConfigJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
@@ -3253,21 +3271,14 @@ declare namespace store {
3253
3271
  */
3254
3272
 
3255
3273
  /**
3256
- * Primitive value schema for variables.
3274
+ * Variables schema for unified $var. interpolation.
3257
3275
  *
3258
3276
  * @remarks
3259
- * Variables can be strings, numbers, or booleans.
3260
- * Used at root, flow, source, destination, transformer, and store levels.
3277
+ * Variables can hold any value (scalars, objects, arrays). Whole-string $var
3278
+ * references preserve native type; inline interpolation requires scalars.
3279
+ * Deep paths via `$var.name.deep.path` are supported.
3261
3280
  */
3262
- declare const PrimitiveSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3263
- /**
3264
- * Variables schema for interpolation.
3265
- */
3266
- declare const VariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3267
- /**
3268
- * Definitions schema for reusable configurations.
3269
- */
3270
- declare const DefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3281
+ declare const VariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3271
3282
  /**
3272
3283
  * Settings schema - free-form key-value bag inside Flow.Config.settings.
3273
3284
  */
@@ -3377,11 +3388,12 @@ declare const SourceSchema: z.ZodObject<{
3377
3388
  type: z.ZodOptional<z.ZodString>;
3378
3389
  init: z.ZodOptional<z.ZodString>;
3379
3390
  }, z.core.$strip>]>>;
3380
- config: z.ZodOptional<z.ZodUnknown>;
3391
+ config: z.ZodOptional<z.ZodObject<{
3392
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3393
+ }, z.core.$loose>>;
3381
3394
  env: z.ZodOptional<z.ZodUnknown>;
3382
3395
  primary: z.ZodOptional<z.ZodBoolean>;
3383
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3384
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3396
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3385
3397
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3386
3398
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3387
3399
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3427,8 +3439,7 @@ declare const TransformerSchema: z.ZodObject<{
3427
3439
  env: z.ZodOptional<z.ZodUnknown>;
3428
3440
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3429
3441
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3430
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3431
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3442
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3432
3443
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3433
3444
  title: z.ZodOptional<z.ZodString>;
3434
3445
  description: z.ZodOptional<z.ZodString>;
@@ -3468,10 +3479,11 @@ declare const DestinationSchema: z.ZodObject<{
3468
3479
  type: z.ZodOptional<z.ZodString>;
3469
3480
  init: z.ZodOptional<z.ZodString>;
3470
3481
  }, z.core.$strip>]>>;
3471
- config: z.ZodOptional<z.ZodUnknown>;
3482
+ config: z.ZodOptional<z.ZodObject<{
3483
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3484
+ }, z.core.$loose>>;
3472
3485
  env: z.ZodOptional<z.ZodUnknown>;
3473
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3474
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3486
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3475
3487
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3476
3488
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3477
3489
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3517,10 +3529,11 @@ declare const StoreSchema: z.ZodObject<{
3517
3529
  type: z.ZodOptional<z.ZodString>;
3518
3530
  init: z.ZodOptional<z.ZodString>;
3519
3531
  }, z.core.$strip>]>>;
3520
- config: z.ZodOptional<z.ZodUnknown>;
3532
+ config: z.ZodOptional<z.ZodObject<{
3533
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3534
+ }, z.core.$loose>>;
3521
3535
  env: z.ZodOptional<z.ZodUnknown>;
3522
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3523
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3536
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3524
3537
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3525
3538
  title: z.ZodOptional<z.ZodString>;
3526
3539
  description: z.ZodOptional<z.ZodString>;
@@ -3635,11 +3648,12 @@ declare const FlowSchema: z.ZodObject<{
3635
3648
  type: z.ZodOptional<z.ZodString>;
3636
3649
  init: z.ZodOptional<z.ZodString>;
3637
3650
  }, z.core.$strip>]>>;
3638
- config: z.ZodOptional<z.ZodUnknown>;
3651
+ config: z.ZodOptional<z.ZodObject<{
3652
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3653
+ }, z.core.$loose>>;
3639
3654
  env: z.ZodOptional<z.ZodUnknown>;
3640
3655
  primary: z.ZodOptional<z.ZodBoolean>;
3641
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3642
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3656
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3643
3657
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3644
3658
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3645
3659
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3678,10 +3692,11 @@ declare const FlowSchema: z.ZodObject<{
3678
3692
  type: z.ZodOptional<z.ZodString>;
3679
3693
  init: z.ZodOptional<z.ZodString>;
3680
3694
  }, z.core.$strip>]>>;
3681
- config: z.ZodOptional<z.ZodUnknown>;
3695
+ config: z.ZodOptional<z.ZodObject<{
3696
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3697
+ }, z.core.$loose>>;
3682
3698
  env: z.ZodOptional<z.ZodUnknown>;
3683
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3684
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3699
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3685
3700
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3686
3701
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3687
3702
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3724,8 +3739,7 @@ declare const FlowSchema: z.ZodObject<{
3724
3739
  env: z.ZodOptional<z.ZodUnknown>;
3725
3740
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3726
3741
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3727
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3728
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3742
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3729
3743
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3730
3744
  title: z.ZodOptional<z.ZodString>;
3731
3745
  description: z.ZodOptional<z.ZodString>;
@@ -3762,10 +3776,11 @@ declare const FlowSchema: z.ZodObject<{
3762
3776
  type: z.ZodOptional<z.ZodString>;
3763
3777
  init: z.ZodOptional<z.ZodString>;
3764
3778
  }, z.core.$strip>]>>;
3765
- config: z.ZodOptional<z.ZodUnknown>;
3779
+ config: z.ZodOptional<z.ZodObject<{
3780
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3781
+ }, z.core.$loose>>;
3766
3782
  env: z.ZodOptional<z.ZodUnknown>;
3767
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3768
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3783
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3769
3784
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3770
3785
  title: z.ZodOptional<z.ZodString>;
3771
3786
  description: z.ZodOptional<z.ZodString>;
@@ -3786,22 +3801,20 @@ declare const FlowSchema: z.ZodObject<{
3786
3801
  }, z.core.$strip>>>;
3787
3802
  }, z.core.$strip>>>;
3788
3803
  collector: z.ZodOptional<z.ZodUnknown>;
3789
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3790
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3804
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3791
3805
  }, z.core.$strip>;
3792
3806
  /**
3793
3807
  * Root walkerOS multi-flow configuration schema (Flow.Json, v4).
3794
3808
  *
3795
3809
  * @remarks
3796
3810
  * This is the complete schema for walkeros.config.json files.
3797
- * Contains multiple named flows with shared variables, definitions, and contracts.
3811
+ * Contains multiple named flows with shared variables and contracts.
3798
3812
  */
3799
3813
  declare const JsonSchema: z.ZodObject<{
3800
3814
  version: z.ZodLiteral<4>;
3801
3815
  $schema: z.ZodOptional<z.ZodString>;
3802
3816
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
3803
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3804
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3817
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3805
3818
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3806
3819
  extends: z.ZodOptional<z.ZodString>;
3807
3820
  tagging: z.ZodOptional<z.ZodNumber>;
@@ -3837,11 +3850,12 @@ declare const JsonSchema: z.ZodObject<{
3837
3850
  type: z.ZodOptional<z.ZodString>;
3838
3851
  init: z.ZodOptional<z.ZodString>;
3839
3852
  }, z.core.$strip>]>>;
3840
- config: z.ZodOptional<z.ZodUnknown>;
3853
+ config: z.ZodOptional<z.ZodObject<{
3854
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3855
+ }, z.core.$loose>>;
3841
3856
  env: z.ZodOptional<z.ZodUnknown>;
3842
3857
  primary: z.ZodOptional<z.ZodBoolean>;
3843
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3844
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3858
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3845
3859
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3846
3860
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3847
3861
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3880,10 +3894,11 @@ declare const JsonSchema: z.ZodObject<{
3880
3894
  type: z.ZodOptional<z.ZodString>;
3881
3895
  init: z.ZodOptional<z.ZodString>;
3882
3896
  }, z.core.$strip>]>>;
3883
- config: z.ZodOptional<z.ZodUnknown>;
3897
+ config: z.ZodOptional<z.ZodObject<{
3898
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3899
+ }, z.core.$loose>>;
3884
3900
  env: z.ZodOptional<z.ZodUnknown>;
3885
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3886
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3901
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3887
3902
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3888
3903
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3889
3904
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3926,8 +3941,7 @@ declare const JsonSchema: z.ZodObject<{
3926
3941
  env: z.ZodOptional<z.ZodUnknown>;
3927
3942
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3928
3943
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
3929
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3930
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3944
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3931
3945
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3932
3946
  title: z.ZodOptional<z.ZodString>;
3933
3947
  description: z.ZodOptional<z.ZodString>;
@@ -3964,10 +3978,11 @@ declare const JsonSchema: z.ZodObject<{
3964
3978
  type: z.ZodOptional<z.ZodString>;
3965
3979
  init: z.ZodOptional<z.ZodString>;
3966
3980
  }, z.core.$strip>]>>;
3967
- config: z.ZodOptional<z.ZodUnknown>;
3981
+ config: z.ZodOptional<z.ZodObject<{
3982
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
3983
+ }, z.core.$loose>>;
3968
3984
  env: z.ZodOptional<z.ZodUnknown>;
3969
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3970
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3985
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3971
3986
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3972
3987
  title: z.ZodOptional<z.ZodString>;
3973
3988
  description: z.ZodOptional<z.ZodString>;
@@ -3988,8 +4003,7 @@ declare const JsonSchema: z.ZodObject<{
3988
4003
  }, z.core.$strip>>>;
3989
4004
  }, z.core.$strip>>>;
3990
4005
  collector: z.ZodOptional<z.ZodUnknown>;
3991
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3992
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4006
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3993
4007
  }, z.core.$strip>>;
3994
4008
  }, z.core.$strip>;
3995
4009
  /**
@@ -4039,11 +4053,13 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4039
4053
  type?: string | undefined;
4040
4054
  init?: string | undefined;
4041
4055
  } | undefined;
4042
- config?: unknown;
4056
+ config?: {
4057
+ [x: string]: unknown;
4058
+ setup?: boolean | Record<string, unknown> | undefined;
4059
+ } | undefined;
4043
4060
  env?: unknown;
4044
4061
  primary?: boolean | undefined;
4045
- variables?: Record<string, string | number | boolean> | undefined;
4046
- definitions?: Record<string, unknown> | undefined;
4062
+ variables?: Record<string, unknown> | undefined;
4047
4063
  next?: unknown;
4048
4064
  before?: unknown;
4049
4065
  examples?: Record<string, {
@@ -4077,10 +4093,12 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4077
4093
  type?: string | undefined;
4078
4094
  init?: string | undefined;
4079
4095
  } | undefined;
4080
- config?: unknown;
4096
+ config?: {
4097
+ [x: string]: unknown;
4098
+ setup?: boolean | Record<string, unknown> | undefined;
4099
+ } | undefined;
4081
4100
  env?: unknown;
4082
- variables?: Record<string, string | number | boolean> | undefined;
4083
- definitions?: Record<string, unknown> | undefined;
4101
+ variables?: Record<string, unknown> | undefined;
4084
4102
  before?: unknown;
4085
4103
  next?: unknown;
4086
4104
  examples?: Record<string, {
@@ -4118,8 +4136,7 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4118
4136
  env?: unknown;
4119
4137
  before?: unknown;
4120
4138
  next?: unknown;
4121
- variables?: Record<string, string | number | boolean> | undefined;
4122
- definitions?: Record<string, unknown> | undefined;
4139
+ variables?: Record<string, unknown> | undefined;
4123
4140
  examples?: Record<string, {
4124
4141
  title?: string | undefined;
4125
4142
  description?: string | undefined;
@@ -4151,10 +4168,12 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4151
4168
  type?: string | undefined;
4152
4169
  init?: string | undefined;
4153
4170
  } | undefined;
4154
- config?: unknown;
4171
+ config?: {
4172
+ [x: string]: unknown;
4173
+ setup?: boolean | Record<string, unknown> | undefined;
4174
+ } | undefined;
4155
4175
  env?: unknown;
4156
- variables?: Record<string, string | number | boolean> | undefined;
4157
- definitions?: Record<string, unknown> | undefined;
4176
+ variables?: Record<string, unknown> | undefined;
4158
4177
  examples?: Record<string, {
4159
4178
  title?: string | undefined;
4160
4179
  description?: string | undefined;
@@ -4170,13 +4189,11 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
4170
4189
  }> | undefined;
4171
4190
  }> | undefined;
4172
4191
  collector?: unknown;
4173
- variables?: Record<string, string | number | boolean> | undefined;
4174
- definitions?: Record<string, unknown> | undefined;
4192
+ variables?: Record<string, unknown> | undefined;
4175
4193
  }>;
4176
4194
  $schema?: string | undefined;
4177
4195
  include?: string[] | undefined;
4178
- variables?: Record<string, string | number | boolean> | undefined;
4179
- definitions?: Record<string, unknown> | undefined;
4196
+ variables?: Record<string, unknown> | undefined;
4180
4197
  contract?: Record<string, {
4181
4198
  extends?: string | undefined;
4182
4199
  tagging?: number | undefined;
@@ -4221,11 +4238,13 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4221
4238
  type?: string | undefined;
4222
4239
  init?: string | undefined;
4223
4240
  } | undefined;
4224
- config?: unknown;
4241
+ config?: {
4242
+ [x: string]: unknown;
4243
+ setup?: boolean | Record<string, unknown> | undefined;
4244
+ } | undefined;
4225
4245
  env?: unknown;
4226
4246
  primary?: boolean | undefined;
4227
- variables?: Record<string, string | number | boolean> | undefined;
4228
- definitions?: Record<string, unknown> | undefined;
4247
+ variables?: Record<string, unknown> | undefined;
4229
4248
  next?: unknown;
4230
4249
  before?: unknown;
4231
4250
  examples?: Record<string, {
@@ -4259,10 +4278,12 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4259
4278
  type?: string | undefined;
4260
4279
  init?: string | undefined;
4261
4280
  } | undefined;
4262
- config?: unknown;
4281
+ config?: {
4282
+ [x: string]: unknown;
4283
+ setup?: boolean | Record<string, unknown> | undefined;
4284
+ } | undefined;
4263
4285
  env?: unknown;
4264
- variables?: Record<string, string | number | boolean> | undefined;
4265
- definitions?: Record<string, unknown> | undefined;
4286
+ variables?: Record<string, unknown> | undefined;
4266
4287
  before?: unknown;
4267
4288
  next?: unknown;
4268
4289
  examples?: Record<string, {
@@ -4300,8 +4321,7 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4300
4321
  env?: unknown;
4301
4322
  before?: unknown;
4302
4323
  next?: unknown;
4303
- variables?: Record<string, string | number | boolean> | undefined;
4304
- definitions?: Record<string, unknown> | undefined;
4324
+ variables?: Record<string, unknown> | undefined;
4305
4325
  examples?: Record<string, {
4306
4326
  title?: string | undefined;
4307
4327
  description?: string | undefined;
@@ -4333,10 +4353,12 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4333
4353
  type?: string | undefined;
4334
4354
  init?: string | undefined;
4335
4355
  } | undefined;
4336
- config?: unknown;
4356
+ config?: {
4357
+ [x: string]: unknown;
4358
+ setup?: boolean | Record<string, unknown> | undefined;
4359
+ } | undefined;
4337
4360
  env?: unknown;
4338
- variables?: Record<string, string | number | boolean> | undefined;
4339
- definitions?: Record<string, unknown> | undefined;
4361
+ variables?: Record<string, unknown> | undefined;
4340
4362
  examples?: Record<string, {
4341
4363
  title?: string | undefined;
4342
4364
  description?: string | undefined;
@@ -4352,8 +4374,7 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
4352
4374
  }> | undefined;
4353
4375
  }> | undefined;
4354
4376
  collector?: unknown;
4355
- variables?: Record<string, string | number | boolean> | undefined;
4356
- definitions?: Record<string, unknown> | undefined;
4377
+ variables?: Record<string, unknown> | undefined;
4357
4378
  }>;
4358
4379
  /**
4359
4380
  * JSON Schema for Flow.Json (root walkeros.config.json).
@@ -4366,8 +4387,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4366
4387
  version: z.ZodLiteral<4>;
4367
4388
  $schema: z.ZodOptional<z.ZodString>;
4368
4389
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
4369
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4370
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4390
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4371
4391
  contract: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4372
4392
  extends: z.ZodOptional<z.ZodString>;
4373
4393
  tagging: z.ZodOptional<z.ZodNumber>;
@@ -4403,11 +4423,12 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4403
4423
  type: z.ZodOptional<z.ZodString>;
4404
4424
  init: z.ZodOptional<z.ZodString>;
4405
4425
  }, z.core.$strip>]>>;
4406
- config: z.ZodOptional<z.ZodUnknown>;
4426
+ config: z.ZodOptional<z.ZodObject<{
4427
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4428
+ }, z.core.$loose>>;
4407
4429
  env: z.ZodOptional<z.ZodUnknown>;
4408
4430
  primary: z.ZodOptional<z.ZodBoolean>;
4409
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4410
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4431
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4411
4432
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4412
4433
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4413
4434
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -4446,10 +4467,11 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4446
4467
  type: z.ZodOptional<z.ZodString>;
4447
4468
  init: z.ZodOptional<z.ZodString>;
4448
4469
  }, z.core.$strip>]>>;
4449
- config: z.ZodOptional<z.ZodUnknown>;
4470
+ config: z.ZodOptional<z.ZodObject<{
4471
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4472
+ }, z.core.$loose>>;
4450
4473
  env: z.ZodOptional<z.ZodUnknown>;
4451
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4452
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4474
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4453
4475
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4454
4476
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4455
4477
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -4492,8 +4514,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4492
4514
  env: z.ZodOptional<z.ZodUnknown>;
4493
4515
  before: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4494
4516
  next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4495
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4496
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4517
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4497
4518
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4498
4519
  title: z.ZodOptional<z.ZodString>;
4499
4520
  description: z.ZodOptional<z.ZodString>;
@@ -4530,10 +4551,11 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4530
4551
  type: z.ZodOptional<z.ZodString>;
4531
4552
  init: z.ZodOptional<z.ZodString>;
4532
4553
  }, z.core.$strip>]>>;
4533
- config: z.ZodOptional<z.ZodUnknown>;
4554
+ config: z.ZodOptional<z.ZodObject<{
4555
+ setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
4556
+ }, z.core.$loose>>;
4534
4557
  env: z.ZodOptional<z.ZodUnknown>;
4535
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4536
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4558
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4537
4559
  examples: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4538
4560
  title: z.ZodOptional<z.ZodString>;
4539
4561
  description: z.ZodOptional<z.ZodString>;
@@ -4554,8 +4576,7 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
4554
4576
  }, z.core.$strip>>>;
4555
4577
  }, z.core.$strip>>>;
4556
4578
  collector: z.ZodOptional<z.ZodUnknown>;
4557
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4558
- definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4579
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4559
4580
  }, z.core.$strip>>;
4560
4581
  }, z.core.$strip>>;
4561
4582
  /**
@@ -4599,11 +4620,9 @@ declare const flow_ContractEventsSchema: typeof ContractEventsSchema;
4599
4620
  declare const flow_ContractRuleSchema: typeof ContractRuleSchema;
4600
4621
  declare const flow_ContractSchema: typeof ContractSchema;
4601
4622
  declare const flow_ContractSchemaEntry: typeof ContractSchemaEntry;
4602
- declare const flow_DefinitionsSchema: typeof DefinitionsSchema;
4603
4623
  declare const flow_DestinationSchema: typeof DestinationSchema;
4604
4624
  declare const flow_FlowSchema: typeof FlowSchema;
4605
4625
  declare const flow_JsonSchema: typeof JsonSchema;
4606
- declare const flow_PrimitiveSchema: typeof PrimitiveSchema;
4607
4626
  declare const flow_SettingsSchema: typeof SettingsSchema;
4608
4627
  declare const flow_SourceSchema: typeof SourceSchema;
4609
4628
  declare const flow_StepExampleSchema: typeof StepExampleSchema;
@@ -4626,7 +4645,7 @@ declare const flow_sourceJsonSchema: typeof sourceJsonSchema;
4626
4645
  declare const flow_storeJsonSchema: typeof storeJsonSchema;
4627
4646
  declare const flow_transformerJsonSchema: typeof transformerJsonSchema;
4628
4647
  declare namespace flow {
4629
- export { flow_BundlePackageSchema as BundlePackageSchema, flow_BundleSchema as BundleSchema, CodeSchema$1 as CodeSchema, flow_ConfigSchema as ConfigSchema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractEventsSchema as ContractEventsSchema, flow_ContractRuleSchema as ContractRuleSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DefinitionsSchema as DefinitionsSchema, flow_DestinationSchema as DestinationSchema, flow_FlowSchema as FlowSchema, flow_JsonSchema as JsonSchema, flow_PrimitiveSchema as PrimitiveSchema, flow_SettingsSchema as SettingsSchema, flow_SourceSchema as SourceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreSchema as StoreSchema, flow_TransformerSchema as TransformerSchema, flow_TriggerDescriptorSchema as TriggerDescriptorSchema, flow_VariablesSchema as VariablesSchema, flow_configJsonSchema as configJsonSchema, flow_contractJsonSchema as contractJsonSchema, flow_contractRuleJsonSchema as contractRuleJsonSchema, flow_destinationJsonSchema as destinationJsonSchema, flow_flowConfigJsonSchema as flowConfigJsonSchema, flow_flowJsonSchema as flowJsonSchema, flow_parseConfig as parseConfig, flow_parseFlow as parseFlow, flow_safeParseConfig as safeParseConfig, flow_safeParseFlow as safeParseFlow, flow_sourceJsonSchema as sourceJsonSchema, flow_storeJsonSchema as storeJsonSchema, flow_transformerJsonSchema as transformerJsonSchema };
4648
+ export { flow_BundlePackageSchema as BundlePackageSchema, flow_BundleSchema as BundleSchema, CodeSchema$1 as CodeSchema, flow_ConfigSchema as ConfigSchema, flow_ContractActionsSchema as ContractActionsSchema, flow_ContractEventsSchema as ContractEventsSchema, flow_ContractRuleSchema as ContractRuleSchema, flow_ContractSchema as ContractSchema, flow_ContractSchemaEntry as ContractSchemaEntry, flow_DestinationSchema as DestinationSchema, flow_FlowSchema as FlowSchema, flow_JsonSchema as JsonSchema, flow_SettingsSchema as SettingsSchema, flow_SourceSchema as SourceSchema, flow_StepExampleSchema as StepExampleSchema, flow_StepExamplesSchema as StepExamplesSchema, flow_StoreSchema as StoreSchema, flow_TransformerSchema as TransformerSchema, flow_TriggerDescriptorSchema as TriggerDescriptorSchema, flow_VariablesSchema as VariablesSchema, flow_configJsonSchema as configJsonSchema, flow_contractJsonSchema as contractJsonSchema, flow_contractRuleJsonSchema as contractRuleJsonSchema, flow_destinationJsonSchema as destinationJsonSchema, flow_flowConfigJsonSchema as flowConfigJsonSchema, flow_flowJsonSchema as flowJsonSchema, flow_parseConfig as parseConfig, flow_parseFlow as parseFlow, flow_safeParseConfig as safeParseConfig, flow_safeParseFlow as safeParseFlow, flow_sourceJsonSchema as sourceJsonSchema, flow_storeJsonSchema as storeJsonSchema, flow_transformerJsonSchema as transformerJsonSchema };
4630
4649
  }
4631
4650
 
4632
4651
  /**
@@ -4855,8 +4874,7 @@ interface PackageInfo {
4855
4874
  description?: string;
4856
4875
  }
4857
4876
  interface IntelliSenseContext {
4858
- variables?: Record<string, string | number | boolean>;
4859
- definitions?: Record<string, unknown>;
4877
+ variables?: Record<string, unknown>;
4860
4878
  secrets?: string[];
4861
4879
  stepNames?: {
4862
4880
  sources?: string[];
@@ -4875,12 +4893,12 @@ interface IntelliSenseContext {
4875
4893
  * Validate a Flow.Config JSON string.
4876
4894
  *
4877
4895
  * Performs three levels of validation:
4878
- * 1. JSON syntax parse error with line/column
4879
- * 2. Schema Zod ConfigSchema validation with mapped positions
4880
- * 3. References checks $var., $def., $secret. against extracted context
4896
+ * 1. JSON syntax (parse error with line/column)
4897
+ * 2. Schema (Zod ConfigSchema validation with mapped positions)
4898
+ * 3. References (checks $var., $secret. against extracted context)
4881
4899
  *
4882
4900
  * Returns errors, warnings, and extracted IntelliSenseContext as a byproduct.
4883
- * Pure function works in Node.js (CLI/MCP) and browser (CodeBox).
4901
+ * Pure function: works in Node.js (CLI/MCP) and browser (CodeBox).
4884
4902
  */
4885
4903
  declare function validateFlowConfig(json: string): ValidationResult;
4886
4904
 
@@ -5127,7 +5145,6 @@ type index_PackageInfo = PackageInfo;
5127
5145
  declare const index_PartialEventSchema: typeof PartialEventSchema;
5128
5146
  declare const index_PolicySchema: typeof PolicySchema;
5129
5147
  declare const index_PrimaryConfig: typeof PrimaryConfig;
5130
- declare const index_PrimitiveSchema: typeof PrimitiveSchema;
5131
5148
  declare const index_PrimitiveValue: typeof PrimitiveValue;
5132
5149
  declare const index_ProcessingControlConfig: typeof ProcessingControlConfig;
5133
5150
  declare const index_PropertiesSchema: typeof PropertiesSchema;
@@ -5194,7 +5211,7 @@ declare const index_valueJsonSchema: typeof valueJsonSchema;
5194
5211
  declare const index_z: typeof z;
5195
5212
  declare const index_zodToSchema: typeof zodToSchema;
5196
5213
  declare namespace index {
5197
- export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, index_CacheRuleSchema as CacheRuleSchema, index_CacheSchema as CacheSchema, cache as CacheSchemas, index_ClickIdEntrySchema as ClickIdEntrySchema, index_CodeSchema as CodeSchema, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractRuleSchema as ContractRuleSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, BundlePackageSchema as FlowBundlePackageSchema, BundleSchema as FlowBundleSchema, CodeSchema$1 as FlowCodeSchema, ConfigSchema as FlowConfigSchema, DestinationSchema as FlowDestinationSchema, JsonSchema as FlowJsonSchema, index_FlowSchema as FlowSchema, flow as FlowSchemas, SourceSchema as FlowSourceSchema, StoreSchema as FlowStoreSchema, TransformerSchema as FlowTransformerSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_HintSchema as HintSchema, index_HintsSchema as HintsSchema, index_IdConfig as IdConfig, index_Identifier as Identifier, InitConfig$1 as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoggerConfigSchema as LoggerConfigSchema, index_LoggerHandlerSchema as LoggerHandlerSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_MatchExpressionSchema as MatchExpressionSchema, matcher as MatcherSchemas, index_NextRuleSchema as NextRuleSchema, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveSchema as PrimitiveSchema, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RoutableNextSchema as RoutableNextSchema, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, SourceSchema$1 as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, store as StoreSchemas, index_Timestamp as Timestamp, transformer as TransformerSchemas, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_contractJsonSchema as contractJsonSchema, index_contractRuleJsonSchema as contractRuleJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationJsonSchema as destinationJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_flowConfigJsonSchema as flowConfigJsonSchema, index_flowJsonSchema as flowJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseFlow as parseFlow, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseFlow as safeParseFlow, index_setJsonSchema as setJsonSchema, index_sourceJsonSchema as sourceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeJsonSchema as storeJsonSchema, index_transformerJsonSchema as transformerJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
5214
+ export { index_BaseContextConfig as BaseContextConfig, index_BatchConfig as BatchConfig, index_CacheRuleSchema as CacheRuleSchema, index_CacheSchema as CacheSchema, cache as CacheSchemas, index_ClickIdEntrySchema as ClickIdEntrySchema, index_CodeSchema as CodeSchema, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractRuleSchema as ContractRuleSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_DeepPartialEventSchema as DeepPartialEventSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventSchema as EventSchema, BundlePackageSchema as FlowBundlePackageSchema, BundleSchema as FlowBundleSchema, CodeSchema$1 as FlowCodeSchema, ConfigSchema as FlowConfigSchema, DestinationSchema as FlowDestinationSchema, JsonSchema as FlowJsonSchema, index_FlowSchema as FlowSchema, flow as FlowSchemas, SourceSchema as FlowSourceSchema, StoreSchema as FlowStoreSchema, TransformerSchema as FlowTransformerSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_HintSchema as HintSchema, index_HintsSchema as HintsSchema, index_IdConfig as IdConfig, index_Identifier as Identifier, InitConfig$1 as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoggerConfigSchema as LoggerConfigSchema, index_LoggerHandlerSchema as LoggerHandlerSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_MatchExpressionSchema as MatchExpressionSchema, matcher as MatcherSchemas, index_NextRuleSchema as NextRuleSchema, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RoutableNextSchema as RoutableNextSchema, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_SetSchema as SetSchema, SourceSchema$1 as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, store as StoreSchemas, index_Timestamp as Timestamp, transformer as TransformerSchemas, index_UserSchema as UserSchema, utilities as UtilitySchemas, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_contractJsonSchema as contractJsonSchema, index_contractRuleJsonSchema as contractRuleJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_destinationJsonSchema as destinationJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_flowConfigJsonSchema as flowConfigJsonSchema, index_flowJsonSchema as flowJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseFlow as parseFlow, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseFlow as safeParseFlow, index_setJsonSchema as setJsonSchema, index_sourceJsonSchema as sourceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeJsonSchema as storeJsonSchema, index_transformerJsonSchema as transformerJsonSchema, index_userJsonSchema as userJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
5198
5215
  }
5199
5216
 
5200
5217
  type PackageType = 'source' | 'destination' | 'transformer' | 'store';
@@ -5417,29 +5434,25 @@ interface Base<C = unknown, E = unknown> {
5417
5434
  }
5418
5435
 
5419
5436
  /**
5420
- * Context provided to the destroy() lifecycle method.
5421
- *
5422
- * A subset of the init context — config, env, logger, and id.
5423
- * Does NOT include collector or event data. Destroy should only
5424
- * clean up resources, not interact with the event pipeline.
5437
+ * Shared context for one-shot lifecycle hooks (setup, destroy).
5438
+ * No event pipeline machinery — just config, env, logger, and id.
5425
5439
  */
5426
- interface DestroyContext<C = unknown, E = unknown> {
5427
- /** Step instance ID. */
5440
+ interface LifecycleContext<C = unknown, E = unknown> {
5428
5441
  id: string;
5429
- /** Step configuration (contains settings with SDK clients, etc.). */
5430
5442
  config: C;
5431
- /** Runtime environment/dependencies (DB clients, auth clients, etc.). */
5432
5443
  env: E;
5433
- /** Scoped logger for this step instance. */
5434
5444
  logger: Instance$3;
5435
5445
  }
5446
+ /**
5447
+ * Setup function signature. Called once via `walker setup <kind>.<name>`.
5448
+ * Packages own idempotency and error semantics. Return value (if any) is
5449
+ * JSON-stringified to stdout by the CLI for scripting use.
5450
+ */
5451
+ type SetupFn<C = unknown, E = unknown> = (context: LifecycleContext<C, E>) => Promise<unknown>;
5436
5452
  /**
5437
5453
  * Destroy function signature for step lifecycle cleanup.
5438
- *
5439
- * Implementations should be idempotent — calling destroy() twice must not throw.
5440
- * Used for closing connections, clearing timers, releasing SDK clients.
5441
5454
  */
5442
- type DestroyFn<C = unknown, E = unknown> = (context: DestroyContext<C, E>) => PromiseOrValue<void>;
5455
+ type DestroyFn<C = unknown, E = unknown> = (context: LifecycleContext<C, E>) => PromiseOrValue<void>;
5443
5456
 
5444
5457
  /**
5445
5458
  * Base environment requirements interface for walkerOS destinations
@@ -5457,13 +5470,14 @@ interface BaseEnv$3 {
5457
5470
  }
5458
5471
  /**
5459
5472
  * Type bundle for destination generics.
5460
- * Groups Settings, InitSettings, Mapping, and Env into a single type parameter.
5473
+ * Groups Settings, InitSettings, Mapping, Env, and Setup into a single type parameter.
5461
5474
  */
5462
- interface Types$4<S = unknown, M = unknown, E = BaseEnv$3, I = S> {
5475
+ interface Types$4<S = unknown, M = unknown, E = BaseEnv$3, I = S, U = unknown> {
5463
5476
  settings: S;
5464
5477
  initSettings: I;
5465
5478
  mapping: M;
5466
5479
  env: E;
5480
+ setup: U;
5467
5481
  }
5468
5482
  /**
5469
5483
  * Generic constraint for Types - ensures T has required properties for indexed access
@@ -5473,10 +5487,12 @@ type TypesGeneric$3 = {
5473
5487
  initSettings: any;
5474
5488
  mapping: any;
5475
5489
  env: any;
5490
+ setup: any;
5476
5491
  };
5477
5492
  type InitSettings$3<T extends TypesGeneric$3 = Types$4> = T['initSettings'];
5478
5493
  type Mapping$1<T extends TypesGeneric$3 = Types$4> = T['mapping'];
5479
5494
  type Env$3<T extends TypesGeneric$3 = Types$4> = T['env'];
5495
+ type SetupOptions$2<T extends TypesGeneric$3 = Types$4> = T['setup'];
5480
5496
  interface Instance$4<T extends TypesGeneric$3 = Types$4> {
5481
5497
  config: Config$6<T>;
5482
5498
  queuePush?: Events;
@@ -5488,6 +5504,7 @@ interface Instance$4<T extends TypesGeneric$3 = Types$4> {
5488
5504
  batches?: BatchRegistry<Mapping$1<T>>;
5489
5505
  type?: string;
5490
5506
  env?: Env$3<T>;
5507
+ setup?: SetupFn<Config$6<T>, Env$3<T>>;
5491
5508
  init?: InitFn$1<T>;
5492
5509
  push: PushFn<T>;
5493
5510
  pushBatch?: PushBatchFn<T>;
@@ -5521,6 +5538,11 @@ interface Config$6<T extends TypesGeneric$3 = Types$4> {
5521
5538
  queue?: boolean;
5522
5539
  /** Defer destination initialization until these collector events fire (e.g., `['consent']`). */
5523
5540
  require?: string[];
5541
+ /**
5542
+ * Provisioning options for `walker setup`. `boolean | object`.
5543
+ * Triggered only by explicit CLI invocation; never automatic.
5544
+ */
5545
+ setup?: boolean | SetupOptions$2<T>;
5524
5546
  /** Transformer chain to run after collector processing but before this destination. */
5525
5547
  before?: Next;
5526
5548
  /** Transformer chain to run after destination push completes. Push response available at ingest._response. */
@@ -5933,20 +5955,22 @@ interface BaseEnv$1 {
5933
5955
  }
5934
5956
  /**
5935
5957
  * Type bundle for source generics.
5936
- * Groups Settings, Mapping, Push, Env, and InitSettings into a single type parameter.
5958
+ * Groups Settings, Mapping, Push, Env, InitSettings, and Setup into a single type parameter.
5937
5959
  *
5938
5960
  * @template S - Settings configuration type
5939
5961
  * @template M - Mapping configuration type
5940
5962
  * @template P - Push function signature (flexible to support HTTP handlers, etc.)
5941
5963
  * @template E - Environment dependencies type
5942
5964
  * @template I - InitSettings configuration type (user input)
5965
+ * @template U - Setup options type (provisioning options for `walker setup`)
5943
5966
  */
5944
- interface Types$1<S = unknown, M = unknown, P = Fn$3, E = BaseEnv$1, I = S> {
5967
+ interface Types$1<S = unknown, M = unknown, P = Fn$3, E = BaseEnv$1, I = S, U = unknown> {
5945
5968
  settings: S;
5946
5969
  initSettings: I;
5947
5970
  mapping: M;
5948
5971
  push: P;
5949
5972
  env: E;
5973
+ setup: U;
5950
5974
  }
5951
5975
  /**
5952
5976
  * Generic constraint for Types - ensures T has required properties for indexed access
@@ -5957,11 +5981,13 @@ type TypesGeneric$1 = {
5957
5981
  mapping: any;
5958
5982
  push: any;
5959
5983
  env: any;
5984
+ setup: any;
5960
5985
  };
5961
5986
  type InitSettings$1<T extends TypesGeneric$1 = Types$1> = T['initSettings'];
5962
5987
  type Mapping<T extends TypesGeneric$1 = Types$1> = T['mapping'];
5963
5988
  type Push<T extends TypesGeneric$1 = Types$1> = T['push'];
5964
5989
  type Env$1<T extends TypesGeneric$1 = Types$1> = T['env'];
5990
+ type SetupOptions$1<T extends TypesGeneric$1 = Types$1> = T['setup'];
5965
5991
  interface Config$2<T extends TypesGeneric$1 = Types$1> extends Config<Mapping<T>> {
5966
5992
  /** Implementation-specific configuration passed to the init function. */
5967
5993
  settings?: InitSettings$1<T>;
@@ -5975,6 +6001,11 @@ interface Config$2<T extends TypesGeneric$1 = Types$1> extends Config<Mapping<T>
5975
6001
  primary?: boolean;
5976
6002
  /** Defer source initialization until these collector events fire (e.g., `['consent']`). */
5977
6003
  require?: string[];
6004
+ /**
6005
+ * Provisioning options for `walker setup`. `boolean | object`.
6006
+ * Triggered only by explicit CLI invocation; never automatic.
6007
+ */
6008
+ setup?: boolean | SetupOptions$1<T>;
5978
6009
  /**
5979
6010
  * Ingest metadata extraction mapping.
5980
6011
  * Extracts values from raw request objects (Express req, Lambda event, etc.)
@@ -5994,6 +6025,7 @@ interface Config$2<T extends TypesGeneric$1 = Types$1> extends Config<Mapping<T>
5994
6025
  interface Instance$1<T extends TypesGeneric$1 = Types$1> {
5995
6026
  type: string;
5996
6027
  config: Config$2<T>;
6028
+ setup?: SetupFn<Config$2<T>, Env$1<T>>;
5997
6029
  push: Push<T>;
5998
6030
  destroy?: DestroyFn<Config$2<T>, Env$1<T>>;
5999
6031
  on?(event: Types$3, context?: unknown): void | boolean | Promise<void | boolean>;
@@ -6036,24 +6068,32 @@ interface InitSources {
6036
6068
  interface BaseEnv {
6037
6069
  [key: string]: unknown;
6038
6070
  }
6039
- interface Types<S = unknown, E = BaseEnv, I = S> {
6071
+ interface Types<S = unknown, E = BaseEnv, I = S, U = unknown> {
6040
6072
  settings: S;
6041
6073
  initSettings: I;
6042
6074
  env: E;
6075
+ setup: U;
6043
6076
  }
6044
6077
  type TypesGeneric = {
6045
6078
  settings: any;
6046
6079
  initSettings: any;
6047
6080
  env: any;
6081
+ setup: any;
6048
6082
  };
6049
6083
  type Settings<T extends TypesGeneric = Types> = T['settings'];
6050
6084
  type InitSettings<T extends TypesGeneric = Types> = T['initSettings'];
6051
6085
  type Env<T extends TypesGeneric = Types> = T['env'];
6086
+ type SetupOptions<T extends TypesGeneric = Types> = T['setup'];
6052
6087
  interface Config$1<T extends TypesGeneric = Types> {
6053
6088
  settings?: InitSettings<T>;
6054
6089
  env?: Env<T>;
6055
6090
  id?: string;
6056
6091
  logger?: Config$5;
6092
+ /**
6093
+ * Provisioning options for `walker setup`. `boolean | object`.
6094
+ * Triggered only by explicit CLI invocation; never automatic.
6095
+ */
6096
+ setup?: boolean | SetupOptions<T>;
6057
6097
  }
6058
6098
  interface Context$1<T extends TypesGeneric = Types> extends Base<Config$1<T>, Env<T>> {
6059
6099
  id: string;
@@ -6067,6 +6107,7 @@ interface Instance<T extends TypesGeneric = Types> {
6067
6107
  get: GetFn;
6068
6108
  set: SetFn;
6069
6109
  delete: DeleteFn;
6110
+ setup?: SetupFn<Config$1<T>, Env<T>>;
6070
6111
  destroy?: DestroyFn<Config$1<T>, Env<T>>;
6071
6112
  }
6072
6113
  type Init<T extends TypesGeneric = Types> = (context: Context$1<Types<Partial<Settings<T>>, Env<T>, InitSettings<T>>>) => Instance<T> | Promise<Instance<T>>;
@@ -6246,7 +6287,7 @@ interface Cache {
6246
6287
  * Represents one deployment target (e.g., web_prod, server_stage).
6247
6288
  * Platform is determined by `config.platform` ('web' | 'server').
6248
6289
  *
6249
- * Variables/definitions cascade: source/destination > flow > root config.
6290
+ * Variables cascade: source/destination > flow > root config.
6250
6291
  */
6251
6292
  interface Flow {
6252
6293
  /** Per-flow configuration: platform, url, settings, bundle. */
@@ -6310,11 +6351,6 @@ interface Flow {
6310
6351
  * Override root variables; overridden by source/destination variables.
6311
6352
  */
6312
6353
  variables?: Flow.Variables;
6313
- /**
6314
- * Flow-level definitions.
6315
- * Extend root definitions; overridden by source/destination definitions.
6316
- */
6317
- definitions?: Flow.Definitions;
6318
6354
  }
6319
6355
  declare namespace Flow {
6320
6356
  /**
@@ -6359,11 +6395,6 @@ declare namespace Flow {
6359
6395
  * Syntax: $var.name
6360
6396
  */
6361
6397
  variables?: Variables;
6362
- /**
6363
- * Reusable configuration definitions.
6364
- * Syntax: $def.name
6365
- */
6366
- definitions?: Definitions;
6367
6398
  /**
6368
6399
  * Data contract definition.
6369
6400
  * Entity → action keyed JSON Schema with additive inheritance.
@@ -6408,18 +6439,11 @@ declare namespace Flow {
6408
6439
  */
6409
6440
  bundle?: Bundle;
6410
6441
  }
6411
- /** Primitive value types for variables. */
6412
- type Primitive = string | number | boolean;
6413
- /**
6414
- * Variables record type for interpolation.
6415
- * Used at root, flow, source, destination, transformer, and store levels.
6416
- */
6417
- type Variables = Record<string, Primitive>;
6418
6442
  /**
6419
- * Definitions record type for reusable configurations.
6420
- * Used at root, flow, source, destination, transformer, and store levels.
6443
+ * Reusable values referenced via `$var.name` (with optional deep paths).
6444
+ * Whole-string references preserve native type; inline interpolation requires scalars.
6421
6445
  */
6422
- type Definitions = Record<string, unknown>;
6446
+ type Variables = Record<string, unknown>;
6423
6447
  /**
6424
6448
  * Free-form settings bag inside `Flow.Config.settings`.
6425
6449
  * Mirrors the package settings convention (arbitrary keys).
@@ -6545,11 +6569,6 @@ declare namespace Flow {
6545
6569
  * Overrides flow and root variables.
6546
6570
  */
6547
6571
  variables?: Variables;
6548
- /**
6549
- * Source-level definitions (highest priority in cascade).
6550
- * Overrides flow and root definitions.
6551
- */
6552
- definitions?: Definitions;
6553
6572
  /**
6554
6573
  * Named examples for testing and documentation.
6555
6574
  * Stripped during flow resolution (not included in bundles).
@@ -6597,8 +6616,6 @@ declare namespace Flow {
6597
6616
  cache?: Cache;
6598
6617
  /** Destination-level variables (highest priority in cascade). */
6599
6618
  variables?: Variables;
6600
- /** Destination-level definitions (highest priority in cascade). */
6601
- definitions?: Definitions;
6602
6619
  /**
6603
6620
  * Named examples for testing and documentation.
6604
6621
  * Stripped during flow resolution.
@@ -6643,8 +6660,6 @@ declare namespace Flow {
6643
6660
  cache?: Cache;
6644
6661
  /** Transformer-level variables (highest priority in cascade). */
6645
6662
  variables?: Variables;
6646
- /** Transformer-level definitions (highest priority in cascade). */
6647
- definitions?: Definitions;
6648
6663
  /**
6649
6664
  * Named examples for testing and documentation.
6650
6665
  * Stripped during flow resolution.
@@ -6669,8 +6684,6 @@ declare namespace Flow {
6669
6684
  env?: unknown;
6670
6685
  /** Store-level variables (highest priority in cascade). */
6671
6686
  variables?: Variables;
6672
- /** Store-level definitions (highest priority in cascade). */
6673
- definitions?: Definitions;
6674
6687
  /**
6675
6688
  * Named examples for testing and documentation.
6676
6689
  * Stripped during flow resolution.