@ninetailed/experience.js-utils 7.13.0-beta.0 → 7.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,8 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
9
9
  config: z.ZodDefault<z.ZodObject<{
10
10
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
11
11
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
12
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
14
14
  baseline: z.ZodObject<{
15
15
  id: z.ZodString;
16
16
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -32,6 +32,7 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
32
32
  hidden?: boolean | undefined;
33
33
  }>, "many">;
34
34
  }, "strip", z.ZodTypeAny, {
35
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
35
36
  baseline: {
36
37
  id: string;
37
38
  hidden: boolean;
@@ -40,8 +41,8 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
40
41
  id: string;
41
42
  hidden: boolean;
42
43
  }[];
43
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
44
44
  }, {
45
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
45
46
  baseline: {
46
47
  id: string;
47
48
  hidden?: boolean | undefined;
@@ -50,7 +51,6 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
50
51
  id: string;
51
52
  hidden?: boolean | undefined;
52
53
  }[];
53
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
54
54
  }>, z.ZodObject<{
55
55
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
56
56
  key: z.ZodString;
@@ -89,12 +89,8 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
89
89
  }[];
90
90
  key: string;
91
91
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
92
- }>]>, "many">>>;
93
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
94
- }, "strip", z.ZodTypeAny, {
95
- distribution: number[];
96
- traffic: number;
97
- components: ({
92
+ }>]>, {
93
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
98
94
  baseline: {
99
95
  id: string;
100
96
  hidden: boolean;
@@ -103,7 +99,6 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
103
99
  id: string;
104
100
  hidden: boolean;
105
101
  }[];
106
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
107
102
  } | {
108
103
  type: import("./Config").ComponentTypeEnum.InlineVariable;
109
104
  baseline: {
@@ -114,32 +109,37 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
114
109
  }[];
115
110
  key: string;
116
111
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
117
- })[];
118
- sticky: boolean;
119
- }, {
120
- distribution?: number[] | undefined;
121
- traffic?: number | undefined;
122
- components?: ({
112
+ }, unknown>, "many">>>;
113
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ distribution: number[];
116
+ traffic: number;
117
+ components: ({
118
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
123
119
  baseline: {
124
120
  id: string;
125
- hidden?: boolean | undefined;
121
+ hidden: boolean;
126
122
  };
127
123
  variants: {
128
124
  id: string;
129
- hidden?: boolean | undefined;
125
+ hidden: boolean;
130
126
  }[];
131
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
132
127
  } | {
133
128
  type: import("./Config").ComponentTypeEnum.InlineVariable;
134
129
  baseline: {
135
- value?: unknown;
130
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
136
131
  };
137
132
  variants: {
138
- value?: unknown;
133
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
139
134
  }[];
140
135
  key: string;
141
136
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
142
- })[] | undefined;
137
+ })[];
138
+ sticky: boolean;
139
+ }, {
140
+ distribution?: number[] | undefined;
141
+ traffic?: number | undefined;
142
+ components?: unknown[] | undefined;
143
143
  sticky?: boolean | undefined;
144
144
  }>>;
145
145
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -177,6 +177,7 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
177
177
  distribution: number[];
178
178
  traffic: number;
179
179
  components: ({
180
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
180
181
  baseline: {
181
182
  id: string;
182
183
  hidden: boolean;
@@ -185,7 +186,6 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
185
186
  id: string;
186
187
  hidden: boolean;
187
188
  }[];
188
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
189
189
  } | {
190
190
  type: import("./Config").ComponentTypeEnum.InlineVariable;
191
191
  baseline: {
@@ -214,27 +214,7 @@ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
214
214
  config?: {
215
215
  distribution?: number[] | undefined;
216
216
  traffic?: number | undefined;
217
- components?: ({
218
- baseline: {
219
- id: string;
220
- hidden?: boolean | undefined;
221
- };
222
- variants: {
223
- id: string;
224
- hidden?: boolean | undefined;
225
- }[];
226
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
227
- } | {
228
- type: import("./Config").ComponentTypeEnum.InlineVariable;
229
- baseline: {
230
- value?: unknown;
231
- };
232
- variants: {
233
- value?: unknown;
234
- }[];
235
- key: string;
236
- valueType: import("./Config").InlineVariableComponentValueTypeEnum;
237
- })[] | undefined;
217
+ components?: unknown[] | undefined;
238
218
  sticky?: boolean | undefined;
239
219
  } | undefined;
240
220
  audience?: {
@@ -262,27 +242,7 @@ export declare const Experiment: {
262
242
  config?: {
263
243
  distribution?: number[] | undefined;
264
244
  traffic?: number | undefined;
265
- components?: ({
266
- baseline: {
267
- id: string;
268
- hidden?: boolean | undefined;
269
- };
270
- variants: {
271
- id: string;
272
- hidden?: boolean | undefined;
273
- }[];
274
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
275
- } | {
276
- type: import("./Config").ComponentTypeEnum.InlineVariable;
277
- baseline: {
278
- value?: unknown;
279
- };
280
- variants: {
281
- value?: unknown;
282
- }[];
283
- key: string;
284
- valueType: import("./Config").InlineVariableComponentValueTypeEnum;
285
- })[] | undefined;
245
+ components?: unknown[] | undefined;
286
246
  sticky?: boolean | undefined;
287
247
  } | undefined;
288
248
  audience?: {
@@ -300,6 +260,7 @@ export declare const Experiment: {
300
260
  distribution: number[];
301
261
  traffic: number;
302
262
  components: ({
263
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
303
264
  baseline: {
304
265
  id: string;
305
266
  hidden: boolean;
@@ -308,7 +269,6 @@ export declare const Experiment: {
308
269
  id: string;
309
270
  hidden: boolean;
310
271
  }[];
311
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
312
272
  } | {
313
273
  type: import("./Config").ComponentTypeEnum.InlineVariable;
314
274
  baseline: {
@@ -340,8 +300,8 @@ export declare const Experiment: {
340
300
  config: z.ZodDefault<z.ZodObject<{
341
301
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
342
302
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
343
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
344
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
303
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
304
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
345
305
  baseline: z.ZodObject<{
346
306
  id: z.ZodString;
347
307
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -363,6 +323,7 @@ export declare const Experiment: {
363
323
  hidden?: boolean | undefined;
364
324
  }>, "many">;
365
325
  }, "strip", z.ZodTypeAny, {
326
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
366
327
  baseline: {
367
328
  id: string;
368
329
  hidden: boolean;
@@ -371,8 +332,8 @@ export declare const Experiment: {
371
332
  id: string;
372
333
  hidden: boolean;
373
334
  }[];
374
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
375
335
  }, {
336
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
376
337
  baseline: {
377
338
  id: string;
378
339
  hidden?: boolean | undefined;
@@ -381,7 +342,6 @@ export declare const Experiment: {
381
342
  id: string;
382
343
  hidden?: boolean | undefined;
383
344
  }[];
384
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
385
345
  }>, z.ZodObject<{
386
346
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
387
347
  key: z.ZodString;
@@ -420,12 +380,8 @@ export declare const Experiment: {
420
380
  }[];
421
381
  key: string;
422
382
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
423
- }>]>, "many">>>;
424
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
425
- }, "strip", z.ZodTypeAny, {
426
- distribution: number[];
427
- traffic: number;
428
- components: ({
383
+ }>]>, {
384
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
429
385
  baseline: {
430
386
  id: string;
431
387
  hidden: boolean;
@@ -434,7 +390,6 @@ export declare const Experiment: {
434
390
  id: string;
435
391
  hidden: boolean;
436
392
  }[];
437
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
438
393
  } | {
439
394
  type: import("./Config").ComponentTypeEnum.InlineVariable;
440
395
  baseline: {
@@ -445,32 +400,37 @@ export declare const Experiment: {
445
400
  }[];
446
401
  key: string;
447
402
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
448
- })[];
449
- sticky: boolean;
450
- }, {
451
- distribution?: number[] | undefined;
452
- traffic?: number | undefined;
453
- components?: ({
403
+ }, unknown>, "many">>>;
404
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ distribution: number[];
407
+ traffic: number;
408
+ components: ({
409
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
454
410
  baseline: {
455
411
  id: string;
456
- hidden?: boolean | undefined;
412
+ hidden: boolean;
457
413
  };
458
414
  variants: {
459
415
  id: string;
460
- hidden?: boolean | undefined;
416
+ hidden: boolean;
461
417
  }[];
462
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
463
418
  } | {
464
419
  type: import("./Config").ComponentTypeEnum.InlineVariable;
465
420
  baseline: {
466
- value?: unknown;
421
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
467
422
  };
468
423
  variants: {
469
- value?: unknown;
424
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
470
425
  }[];
471
426
  key: string;
472
427
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
473
- })[] | undefined;
428
+ })[];
429
+ sticky: boolean;
430
+ }, {
431
+ distribution?: number[] | undefined;
432
+ traffic?: number | undefined;
433
+ components?: unknown[] | undefined;
474
434
  sticky?: boolean | undefined;
475
435
  }>>;
476
436
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -505,8 +465,8 @@ export declare const Experiment: {
505
465
  config: z.ZodDefault<z.ZodObject<{
506
466
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
507
467
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
508
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
509
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
468
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
469
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
510
470
  baseline: z.ZodObject<{
511
471
  id: z.ZodString;
512
472
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -528,6 +488,7 @@ export declare const Experiment: {
528
488
  hidden?: boolean | undefined;
529
489
  }>, "many">;
530
490
  }, "strip", z.ZodTypeAny, {
491
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
531
492
  baseline: {
532
493
  id: string;
533
494
  hidden: boolean;
@@ -536,8 +497,8 @@ export declare const Experiment: {
536
497
  id: string;
537
498
  hidden: boolean;
538
499
  }[];
539
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
540
500
  }, {
501
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
541
502
  baseline: {
542
503
  id: string;
543
504
  hidden?: boolean | undefined;
@@ -546,7 +507,6 @@ export declare const Experiment: {
546
507
  id: string;
547
508
  hidden?: boolean | undefined;
548
509
  }[];
549
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
550
510
  }>, z.ZodObject<{
551
511
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
552
512
  key: z.ZodString;
@@ -585,12 +545,8 @@ export declare const Experiment: {
585
545
  }[];
586
546
  key: string;
587
547
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
588
- }>]>, "many">>>;
589
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
590
- }, "strip", z.ZodTypeAny, {
591
- distribution: number[];
592
- traffic: number;
593
- components: ({
548
+ }>]>, {
549
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
594
550
  baseline: {
595
551
  id: string;
596
552
  hidden: boolean;
@@ -599,7 +555,6 @@ export declare const Experiment: {
599
555
  id: string;
600
556
  hidden: boolean;
601
557
  }[];
602
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
603
558
  } | {
604
559
  type: import("./Config").ComponentTypeEnum.InlineVariable;
605
560
  baseline: {
@@ -610,32 +565,37 @@ export declare const Experiment: {
610
565
  }[];
611
566
  key: string;
612
567
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
613
- })[];
614
- sticky: boolean;
615
- }, {
616
- distribution?: number[] | undefined;
617
- traffic?: number | undefined;
618
- components?: ({
568
+ }, unknown>, "many">>>;
569
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ distribution: number[];
572
+ traffic: number;
573
+ components: ({
574
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
619
575
  baseline: {
620
576
  id: string;
621
- hidden?: boolean | undefined;
577
+ hidden: boolean;
622
578
  };
623
579
  variants: {
624
580
  id: string;
625
- hidden?: boolean | undefined;
581
+ hidden: boolean;
626
582
  }[];
627
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
628
583
  } | {
629
584
  type: import("./Config").ComponentTypeEnum.InlineVariable;
630
585
  baseline: {
631
- value?: unknown;
586
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
632
587
  };
633
588
  variants: {
634
- value?: unknown;
589
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
635
590
  }[];
636
591
  key: string;
637
592
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
638
- })[] | undefined;
593
+ })[];
594
+ sticky: boolean;
595
+ }, {
596
+ distribution?: number[] | undefined;
597
+ traffic?: number | undefined;
598
+ components?: unknown[] | undefined;
639
599
  sticky?: boolean | undefined;
640
600
  }>>;
641
601
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -670,8 +630,8 @@ export declare const Experiment: {
670
630
  config: z.ZodDefault<z.ZodObject<{
671
631
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
672
632
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
673
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
674
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
633
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
634
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
675
635
  baseline: z.ZodObject<{
676
636
  id: z.ZodString;
677
637
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -693,6 +653,7 @@ export declare const Experiment: {
693
653
  hidden?: boolean | undefined;
694
654
  }>, "many">;
695
655
  }, "strip", z.ZodTypeAny, {
656
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
696
657
  baseline: {
697
658
  id: string;
698
659
  hidden: boolean;
@@ -701,8 +662,8 @@ export declare const Experiment: {
701
662
  id: string;
702
663
  hidden: boolean;
703
664
  }[];
704
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
705
665
  }, {
666
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
706
667
  baseline: {
707
668
  id: string;
708
669
  hidden?: boolean | undefined;
@@ -711,7 +672,6 @@ export declare const Experiment: {
711
672
  id: string;
712
673
  hidden?: boolean | undefined;
713
674
  }[];
714
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
715
675
  }>, z.ZodObject<{
716
676
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
717
677
  key: z.ZodString;
@@ -750,12 +710,8 @@ export declare const Experiment: {
750
710
  }[];
751
711
  key: string;
752
712
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
753
- }>]>, "many">>>;
754
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
755
- }, "strip", z.ZodTypeAny, {
756
- distribution: number[];
757
- traffic: number;
758
- components: ({
713
+ }>]>, {
714
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
759
715
  baseline: {
760
716
  id: string;
761
717
  hidden: boolean;
@@ -764,7 +720,6 @@ export declare const Experiment: {
764
720
  id: string;
765
721
  hidden: boolean;
766
722
  }[];
767
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
768
723
  } | {
769
724
  type: import("./Config").ComponentTypeEnum.InlineVariable;
770
725
  baseline: {
@@ -775,32 +730,37 @@ export declare const Experiment: {
775
730
  }[];
776
731
  key: string;
777
732
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
778
- })[];
779
- sticky: boolean;
780
- }, {
781
- distribution?: number[] | undefined;
782
- traffic?: number | undefined;
783
- components?: ({
733
+ }, unknown>, "many">>>;
734
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ distribution: number[];
737
+ traffic: number;
738
+ components: ({
739
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
784
740
  baseline: {
785
741
  id: string;
786
- hidden?: boolean | undefined;
742
+ hidden: boolean;
787
743
  };
788
744
  variants: {
789
745
  id: string;
790
- hidden?: boolean | undefined;
746
+ hidden: boolean;
791
747
  }[];
792
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
793
748
  } | {
794
749
  type: import("./Config").ComponentTypeEnum.InlineVariable;
795
750
  baseline: {
796
- value?: unknown;
751
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
797
752
  };
798
753
  variants: {
799
- value?: unknown;
754
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
800
755
  }[];
801
756
  key: string;
802
757
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
803
- })[] | undefined;
758
+ })[];
759
+ sticky: boolean;
760
+ }, {
761
+ distribution?: number[] | undefined;
762
+ traffic?: number | undefined;
763
+ components?: unknown[] | undefined;
804
764
  sticky?: boolean | undefined;
805
765
  }>>;
806
766
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -836,8 +796,8 @@ export declare const Experiment: {
836
796
  config: z.ZodDefault<z.ZodObject<{
837
797
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
838
798
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
839
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
840
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
799
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
800
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
841
801
  baseline: z.ZodObject<{
842
802
  id: z.ZodString;
843
803
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -859,6 +819,7 @@ export declare const Experiment: {
859
819
  hidden?: boolean | undefined;
860
820
  }>, "many">;
861
821
  }, "strip", z.ZodTypeAny, {
822
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
862
823
  baseline: {
863
824
  id: string;
864
825
  hidden: boolean;
@@ -867,8 +828,8 @@ export declare const Experiment: {
867
828
  id: string;
868
829
  hidden: boolean;
869
830
  }[];
870
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
871
831
  }, {
832
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
872
833
  baseline: {
873
834
  id: string;
874
835
  hidden?: boolean | undefined;
@@ -877,7 +838,6 @@ export declare const Experiment: {
877
838
  id: string;
878
839
  hidden?: boolean | undefined;
879
840
  }[];
880
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
881
841
  }>, z.ZodObject<{
882
842
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
883
843
  key: z.ZodString;
@@ -916,12 +876,8 @@ export declare const Experiment: {
916
876
  }[];
917
877
  key: string;
918
878
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
919
- }>]>, "many">>>;
920
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
921
- }, "strip", z.ZodTypeAny, {
922
- distribution: number[];
923
- traffic: number;
924
- components: ({
879
+ }>]>, {
880
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
925
881
  baseline: {
926
882
  id: string;
927
883
  hidden: boolean;
@@ -930,7 +886,6 @@ export declare const Experiment: {
930
886
  id: string;
931
887
  hidden: boolean;
932
888
  }[];
933
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
934
889
  } | {
935
890
  type: import("./Config").ComponentTypeEnum.InlineVariable;
936
891
  baseline: {
@@ -941,32 +896,37 @@ export declare const Experiment: {
941
896
  }[];
942
897
  key: string;
943
898
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
944
- })[];
945
- sticky: boolean;
946
- }, {
947
- distribution?: number[] | undefined;
948
- traffic?: number | undefined;
949
- components?: ({
899
+ }, unknown>, "many">>>;
900
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ distribution: number[];
903
+ traffic: number;
904
+ components: ({
905
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
950
906
  baseline: {
951
907
  id: string;
952
- hidden?: boolean | undefined;
908
+ hidden: boolean;
953
909
  };
954
910
  variants: {
955
911
  id: string;
956
- hidden?: boolean | undefined;
912
+ hidden: boolean;
957
913
  }[];
958
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
959
914
  } | {
960
915
  type: import("./Config").ComponentTypeEnum.InlineVariable;
961
916
  baseline: {
962
- value?: unknown;
917
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
963
918
  };
964
919
  variants: {
965
- value?: unknown;
920
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
966
921
  }[];
967
922
  key: string;
968
923
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
969
- })[] | undefined;
924
+ })[];
925
+ sticky: boolean;
926
+ }, {
927
+ distribution?: number[] | undefined;
928
+ traffic?: number | undefined;
929
+ components?: unknown[] | undefined;
970
930
  sticky?: boolean | undefined;
971
931
  }>>;
972
932
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1001,8 +961,8 @@ export declare const Experiment: {
1001
961
  config: z.ZodDefault<z.ZodObject<{
1002
962
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1003
963
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1004
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1005
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
964
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
965
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1006
966
  baseline: z.ZodObject<{
1007
967
  id: z.ZodString;
1008
968
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -1024,6 +984,7 @@ export declare const Experiment: {
1024
984
  hidden?: boolean | undefined;
1025
985
  }>, "many">;
1026
986
  }, "strip", z.ZodTypeAny, {
987
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1027
988
  baseline: {
1028
989
  id: string;
1029
990
  hidden: boolean;
@@ -1032,8 +993,8 @@ export declare const Experiment: {
1032
993
  id: string;
1033
994
  hidden: boolean;
1034
995
  }[];
1035
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1036
996
  }, {
997
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1037
998
  baseline: {
1038
999
  id: string;
1039
1000
  hidden?: boolean | undefined;
@@ -1042,7 +1003,6 @@ export declare const Experiment: {
1042
1003
  id: string;
1043
1004
  hidden?: boolean | undefined;
1044
1005
  }[];
1045
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1046
1006
  }>, z.ZodObject<{
1047
1007
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1048
1008
  key: z.ZodString;
@@ -1081,12 +1041,8 @@ export declare const Experiment: {
1081
1041
  }[];
1082
1042
  key: string;
1083
1043
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1084
- }>]>, "many">>>;
1085
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1086
- }, "strip", z.ZodTypeAny, {
1087
- distribution: number[];
1088
- traffic: number;
1089
- components: ({
1044
+ }>]>, {
1045
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1090
1046
  baseline: {
1091
1047
  id: string;
1092
1048
  hidden: boolean;
@@ -1095,7 +1051,6 @@ export declare const Experiment: {
1095
1051
  id: string;
1096
1052
  hidden: boolean;
1097
1053
  }[];
1098
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1099
1054
  } | {
1100
1055
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1101
1056
  baseline: {
@@ -1106,32 +1061,37 @@ export declare const Experiment: {
1106
1061
  }[];
1107
1062
  key: string;
1108
1063
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1109
- })[];
1110
- sticky: boolean;
1111
- }, {
1112
- distribution?: number[] | undefined;
1113
- traffic?: number | undefined;
1114
- components?: ({
1064
+ }, unknown>, "many">>>;
1065
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ distribution: number[];
1068
+ traffic: number;
1069
+ components: ({
1070
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1115
1071
  baseline: {
1116
1072
  id: string;
1117
- hidden?: boolean | undefined;
1073
+ hidden: boolean;
1118
1074
  };
1119
1075
  variants: {
1120
1076
  id: string;
1121
- hidden?: boolean | undefined;
1077
+ hidden: boolean;
1122
1078
  }[];
1123
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1124
1079
  } | {
1125
1080
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1126
1081
  baseline: {
1127
- value?: unknown;
1082
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1128
1083
  };
1129
1084
  variants: {
1130
- value?: unknown;
1085
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1131
1086
  }[];
1132
1087
  key: string;
1133
1088
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1134
- })[] | undefined;
1089
+ })[];
1090
+ sticky: boolean;
1091
+ }, {
1092
+ distribution?: number[] | undefined;
1093
+ traffic?: number | undefined;
1094
+ components?: unknown[] | undefined;
1135
1095
  sticky?: boolean | undefined;
1136
1096
  }>>;
1137
1097
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1166,8 +1126,8 @@ export declare const Experiment: {
1166
1126
  config: z.ZodDefault<z.ZodObject<{
1167
1127
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1168
1128
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1169
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1170
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
1129
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1130
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1171
1131
  baseline: z.ZodObject<{
1172
1132
  id: z.ZodString;
1173
1133
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -1189,6 +1149,7 @@ export declare const Experiment: {
1189
1149
  hidden?: boolean | undefined;
1190
1150
  }>, "many">;
1191
1151
  }, "strip", z.ZodTypeAny, {
1152
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1192
1153
  baseline: {
1193
1154
  id: string;
1194
1155
  hidden: boolean;
@@ -1197,8 +1158,8 @@ export declare const Experiment: {
1197
1158
  id: string;
1198
1159
  hidden: boolean;
1199
1160
  }[];
1200
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1201
1161
  }, {
1162
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1202
1163
  baseline: {
1203
1164
  id: string;
1204
1165
  hidden?: boolean | undefined;
@@ -1207,7 +1168,6 @@ export declare const Experiment: {
1207
1168
  id: string;
1208
1169
  hidden?: boolean | undefined;
1209
1170
  }[];
1210
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1211
1171
  }>, z.ZodObject<{
1212
1172
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1213
1173
  key: z.ZodString;
@@ -1246,12 +1206,8 @@ export declare const Experiment: {
1246
1206
  }[];
1247
1207
  key: string;
1248
1208
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1249
- }>]>, "many">>>;
1250
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1251
- }, "strip", z.ZodTypeAny, {
1252
- distribution: number[];
1253
- traffic: number;
1254
- components: ({
1209
+ }>]>, {
1210
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1255
1211
  baseline: {
1256
1212
  id: string;
1257
1213
  hidden: boolean;
@@ -1260,7 +1216,6 @@ export declare const Experiment: {
1260
1216
  id: string;
1261
1217
  hidden: boolean;
1262
1218
  }[];
1263
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1264
1219
  } | {
1265
1220
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1266
1221
  baseline: {
@@ -1271,32 +1226,37 @@ export declare const Experiment: {
1271
1226
  }[];
1272
1227
  key: string;
1273
1228
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1274
- })[];
1275
- sticky: boolean;
1276
- }, {
1277
- distribution?: number[] | undefined;
1278
- traffic?: number | undefined;
1279
- components?: ({
1229
+ }, unknown>, "many">>>;
1230
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ distribution: number[];
1233
+ traffic: number;
1234
+ components: ({
1235
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1280
1236
  baseline: {
1281
1237
  id: string;
1282
- hidden?: boolean | undefined;
1238
+ hidden: boolean;
1283
1239
  };
1284
1240
  variants: {
1285
1241
  id: string;
1286
- hidden?: boolean | undefined;
1242
+ hidden: boolean;
1287
1243
  }[];
1288
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1289
1244
  } | {
1290
1245
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1291
1246
  baseline: {
1292
- value?: unknown;
1247
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1293
1248
  };
1294
1249
  variants: {
1295
- value?: unknown;
1250
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1296
1251
  }[];
1297
1252
  key: string;
1298
1253
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1299
- })[] | undefined;
1254
+ })[];
1255
+ sticky: boolean;
1256
+ }, {
1257
+ distribution?: number[] | undefined;
1258
+ traffic?: number | undefined;
1259
+ components?: unknown[] | undefined;
1300
1260
  sticky?: boolean | undefined;
1301
1261
  }>>;
1302
1262
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1331,8 +1291,8 @@ export declare const Experiment: {
1331
1291
  config: z.ZodDefault<z.ZodObject<{
1332
1292
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1333
1293
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1334
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1335
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
1294
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1295
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1336
1296
  baseline: z.ZodObject<{
1337
1297
  id: z.ZodString;
1338
1298
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -1354,6 +1314,7 @@ export declare const Experiment: {
1354
1314
  hidden?: boolean | undefined;
1355
1315
  }>, "many">;
1356
1316
  }, "strip", z.ZodTypeAny, {
1317
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1357
1318
  baseline: {
1358
1319
  id: string;
1359
1320
  hidden: boolean;
@@ -1362,8 +1323,8 @@ export declare const Experiment: {
1362
1323
  id: string;
1363
1324
  hidden: boolean;
1364
1325
  }[];
1365
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1366
1326
  }, {
1327
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1367
1328
  baseline: {
1368
1329
  id: string;
1369
1330
  hidden?: boolean | undefined;
@@ -1372,7 +1333,6 @@ export declare const Experiment: {
1372
1333
  id: string;
1373
1334
  hidden?: boolean | undefined;
1374
1335
  }[];
1375
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1376
1336
  }>, z.ZodObject<{
1377
1337
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1378
1338
  key: z.ZodString;
@@ -1411,12 +1371,8 @@ export declare const Experiment: {
1411
1371
  }[];
1412
1372
  key: string;
1413
1373
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1414
- }>]>, "many">>>;
1415
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1416
- }, "strip", z.ZodTypeAny, {
1417
- distribution: number[];
1418
- traffic: number;
1419
- components: ({
1374
+ }>]>, {
1375
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1420
1376
  baseline: {
1421
1377
  id: string;
1422
1378
  hidden: boolean;
@@ -1425,7 +1381,6 @@ export declare const Experiment: {
1425
1381
  id: string;
1426
1382
  hidden: boolean;
1427
1383
  }[];
1428
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1429
1384
  } | {
1430
1385
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1431
1386
  baseline: {
@@ -1436,32 +1391,37 @@ export declare const Experiment: {
1436
1391
  }[];
1437
1392
  key: string;
1438
1393
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1439
- })[];
1440
- sticky: boolean;
1441
- }, {
1442
- distribution?: number[] | undefined;
1443
- traffic?: number | undefined;
1444
- components?: ({
1394
+ }, unknown>, "many">>>;
1395
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ distribution: number[];
1398
+ traffic: number;
1399
+ components: ({
1400
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1445
1401
  baseline: {
1446
1402
  id: string;
1447
- hidden?: boolean | undefined;
1403
+ hidden: boolean;
1448
1404
  };
1449
1405
  variants: {
1450
1406
  id: string;
1451
- hidden?: boolean | undefined;
1407
+ hidden: boolean;
1452
1408
  }[];
1453
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1454
1409
  } | {
1455
1410
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1456
1411
  baseline: {
1457
- value?: unknown;
1412
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1458
1413
  };
1459
1414
  variants: {
1460
- value?: unknown;
1415
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1461
1416
  }[];
1462
1417
  key: string;
1463
1418
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1464
- })[] | undefined;
1419
+ })[];
1420
+ sticky: boolean;
1421
+ }, {
1422
+ distribution?: number[] | undefined;
1423
+ traffic?: number | undefined;
1424
+ components?: unknown[] | undefined;
1465
1425
  sticky?: boolean | undefined;
1466
1426
  }>>;
1467
1427
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1496,8 +1456,8 @@ export declare const Experiment: {
1496
1456
  config: z.ZodDefault<z.ZodObject<{
1497
1457
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1498
1458
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1499
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1500
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
1459
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1460
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1501
1461
  baseline: z.ZodObject<{
1502
1462
  id: z.ZodString;
1503
1463
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -1519,6 +1479,7 @@ export declare const Experiment: {
1519
1479
  hidden?: boolean | undefined;
1520
1480
  }>, "many">;
1521
1481
  }, "strip", z.ZodTypeAny, {
1482
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1522
1483
  baseline: {
1523
1484
  id: string;
1524
1485
  hidden: boolean;
@@ -1527,8 +1488,8 @@ export declare const Experiment: {
1527
1488
  id: string;
1528
1489
  hidden: boolean;
1529
1490
  }[];
1530
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1531
1491
  }, {
1492
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1532
1493
  baseline: {
1533
1494
  id: string;
1534
1495
  hidden?: boolean | undefined;
@@ -1537,7 +1498,6 @@ export declare const Experiment: {
1537
1498
  id: string;
1538
1499
  hidden?: boolean | undefined;
1539
1500
  }[];
1540
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1541
1501
  }>, z.ZodObject<{
1542
1502
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1543
1503
  key: z.ZodString;
@@ -1576,12 +1536,8 @@ export declare const Experiment: {
1576
1536
  }[];
1577
1537
  key: string;
1578
1538
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1579
- }>]>, "many">>>;
1580
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1581
- }, "strip", z.ZodTypeAny, {
1582
- distribution: number[];
1583
- traffic: number;
1584
- components: ({
1539
+ }>]>, {
1540
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1585
1541
  baseline: {
1586
1542
  id: string;
1587
1543
  hidden: boolean;
@@ -1590,7 +1546,6 @@ export declare const Experiment: {
1590
1546
  id: string;
1591
1547
  hidden: boolean;
1592
1548
  }[];
1593
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1594
1549
  } | {
1595
1550
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1596
1551
  baseline: {
@@ -1601,32 +1556,37 @@ export declare const Experiment: {
1601
1556
  }[];
1602
1557
  key: string;
1603
1558
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1604
- })[];
1605
- sticky: boolean;
1606
- }, {
1607
- distribution?: number[] | undefined;
1608
- traffic?: number | undefined;
1609
- components?: ({
1559
+ }, unknown>, "many">>>;
1560
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ distribution: number[];
1563
+ traffic: number;
1564
+ components: ({
1565
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1610
1566
  baseline: {
1611
1567
  id: string;
1612
- hidden?: boolean | undefined;
1568
+ hidden: boolean;
1613
1569
  };
1614
1570
  variants: {
1615
1571
  id: string;
1616
- hidden?: boolean | undefined;
1572
+ hidden: boolean;
1617
1573
  }[];
1618
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1619
1574
  } | {
1620
1575
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1621
1576
  baseline: {
1622
- value?: unknown;
1577
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1623
1578
  };
1624
1579
  variants: {
1625
- value?: unknown;
1580
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1626
1581
  }[];
1627
1582
  key: string;
1628
1583
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1629
- })[] | undefined;
1584
+ })[];
1585
+ sticky: boolean;
1586
+ }, {
1587
+ distribution?: number[] | undefined;
1588
+ traffic?: number | undefined;
1589
+ components?: unknown[] | undefined;
1630
1590
  sticky?: boolean | undefined;
1631
1591
  }>>;
1632
1592
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1665,6 +1625,7 @@ export declare const Experiment: {
1665
1625
  distribution: number[];
1666
1626
  traffic: number;
1667
1627
  components: ({
1628
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1668
1629
  baseline: {
1669
1630
  id: string;
1670
1631
  hidden: boolean;
@@ -1673,7 +1634,6 @@ export declare const Experiment: {
1673
1634
  id: string;
1674
1635
  hidden: boolean;
1675
1636
  }[];
1676
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1677
1637
  } | {
1678
1638
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1679
1639
  baseline: {
@@ -1705,6 +1665,7 @@ export declare const Experiment: {
1705
1665
  distribution: number[];
1706
1666
  traffic: number;
1707
1667
  components: ({
1668
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1708
1669
  baseline: {
1709
1670
  id: string;
1710
1671
  hidden: boolean;
@@ -1713,7 +1674,6 @@ export declare const Experiment: {
1713
1674
  id: string;
1714
1675
  hidden: boolean;
1715
1676
  }[];
1716
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1717
1677
  } | {
1718
1678
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1719
1679
  baseline: {
@@ -1743,27 +1703,7 @@ export declare const Experiment: {
1743
1703
  config?: {
1744
1704
  distribution?: number[] | undefined;
1745
1705
  traffic?: number | undefined;
1746
- components?: ({
1747
- baseline: {
1748
- id: string;
1749
- hidden?: boolean | undefined;
1750
- };
1751
- variants: {
1752
- id: string;
1753
- hidden?: boolean | undefined;
1754
- }[];
1755
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1756
- } | {
1757
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1758
- baseline: {
1759
- value?: unknown;
1760
- };
1761
- variants: {
1762
- value?: unknown;
1763
- }[];
1764
- key: string;
1765
- valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1766
- })[] | undefined;
1706
+ components?: unknown[] | undefined;
1767
1707
  sticky?: boolean | undefined;
1768
1708
  } | undefined;
1769
1709
  audience?: {
@@ -1780,8 +1720,8 @@ export declare const Experiment: {
1780
1720
  config: z.ZodDefault<z.ZodObject<{
1781
1721
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1782
1722
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1783
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1784
- type: z.ZodOptional<z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>>;
1723
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1724
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1785
1725
  baseline: z.ZodObject<{
1786
1726
  id: z.ZodString;
1787
1727
  hidden: z.ZodDefault<z.ZodBoolean>;
@@ -1803,6 +1743,7 @@ export declare const Experiment: {
1803
1743
  hidden?: boolean | undefined;
1804
1744
  }>, "many">;
1805
1745
  }, "strip", z.ZodTypeAny, {
1746
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1806
1747
  baseline: {
1807
1748
  id: string;
1808
1749
  hidden: boolean;
@@ -1811,8 +1752,8 @@ export declare const Experiment: {
1811
1752
  id: string;
1812
1753
  hidden: boolean;
1813
1754
  }[];
1814
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1815
1755
  }, {
1756
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1816
1757
  baseline: {
1817
1758
  id: string;
1818
1759
  hidden?: boolean | undefined;
@@ -1821,7 +1762,6 @@ export declare const Experiment: {
1821
1762
  id: string;
1822
1763
  hidden?: boolean | undefined;
1823
1764
  }[];
1824
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1825
1765
  }>, z.ZodObject<{
1826
1766
  type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1827
1767
  key: z.ZodString;
@@ -1860,12 +1800,8 @@ export declare const Experiment: {
1860
1800
  }[];
1861
1801
  key: string;
1862
1802
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1863
- }>]>, "many">>>;
1864
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1865
- }, "strip", z.ZodTypeAny, {
1866
- distribution: number[];
1867
- traffic: number;
1868
- components: ({
1803
+ }>]>, {
1804
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1869
1805
  baseline: {
1870
1806
  id: string;
1871
1807
  hidden: boolean;
@@ -1874,7 +1810,6 @@ export declare const Experiment: {
1874
1810
  id: string;
1875
1811
  hidden: boolean;
1876
1812
  }[];
1877
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1878
1813
  } | {
1879
1814
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1880
1815
  baseline: {
@@ -1885,32 +1820,37 @@ export declare const Experiment: {
1885
1820
  }[];
1886
1821
  key: string;
1887
1822
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1888
- })[];
1889
- sticky: boolean;
1890
- }, {
1891
- distribution?: number[] | undefined;
1892
- traffic?: number | undefined;
1893
- components?: ({
1823
+ }, unknown>, "many">>>;
1824
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ distribution: number[];
1827
+ traffic: number;
1828
+ components: ({
1829
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1894
1830
  baseline: {
1895
1831
  id: string;
1896
- hidden?: boolean | undefined;
1832
+ hidden: boolean;
1897
1833
  };
1898
1834
  variants: {
1899
1835
  id: string;
1900
- hidden?: boolean | undefined;
1836
+ hidden: boolean;
1901
1837
  }[];
1902
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1903
1838
  } | {
1904
1839
  type: import("./Config").ComponentTypeEnum.InlineVariable;
1905
1840
  baseline: {
1906
- value?: unknown;
1841
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1907
1842
  };
1908
1843
  variants: {
1909
- value?: unknown;
1844
+ value: string | import("dist/packages/sdks/shared/src").SerializableObject;
1910
1845
  }[];
1911
1846
  key: string;
1912
1847
  valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1913
- })[] | undefined;
1848
+ })[];
1849
+ sticky: boolean;
1850
+ }, {
1851
+ distribution?: number[] | undefined;
1852
+ traffic?: number | undefined;
1853
+ components?: unknown[] | undefined;
1914
1854
  sticky?: boolean | undefined;
1915
1855
  }>>;
1916
1856
  audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1947,27 +1887,7 @@ export declare const Experiment: {
1947
1887
  config?: {
1948
1888
  distribution?: number[] | undefined;
1949
1889
  traffic?: number | undefined;
1950
- components?: ({
1951
- baseline: {
1952
- id: string;
1953
- hidden?: boolean | undefined;
1954
- };
1955
- variants: {
1956
- id: string;
1957
- hidden?: boolean | undefined;
1958
- }[];
1959
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1960
- } | {
1961
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1962
- baseline: {
1963
- value?: unknown;
1964
- };
1965
- variants: {
1966
- value?: unknown;
1967
- }[];
1968
- key: string;
1969
- valueType: import("./Config").InlineVariableComponentValueTypeEnum;
1970
- })[] | undefined;
1890
+ components?: unknown[] | undefined;
1971
1891
  sticky?: boolean | undefined;
1972
1892
  } | undefined;
1973
1893
  audience?: {
@@ -1986,6 +1906,7 @@ export declare const Experiment: {
1986
1906
  distribution: number[];
1987
1907
  traffic: number;
1988
1908
  components: ({
1909
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1989
1910
  baseline: {
1990
1911
  id: string;
1991
1912
  hidden: boolean;
@@ -1994,7 +1915,6 @@ export declare const Experiment: {
1994
1915
  id: string;
1995
1916
  hidden: boolean;
1996
1917
  }[];
1997
- type?: import("./Config").ComponentTypeEnum.EntryReplacement | undefined;
1998
1918
  } | {
1999
1919
  type: import("./Config").ComponentTypeEnum.InlineVariable;
2000
1920
  baseline: {