@ninetailed/experience.js-utils 4.2.3 → 4.3.0-beta.2

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.
@@ -1,11 +1,19 @@
1
1
  import { Reference } from '@ninetailed/experience.js';
2
2
  import { z } from 'zod';
3
3
  import { ExperienceSchema } from './Experience';
4
- export declare const ExperimentSchema: z.ZodObject<z.extendShape<{
4
+ export declare const ExperimentSchema: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  name: z.ZodString;
7
7
  description: z.ZodOptional<z.ZodString>;
8
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
8
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
11
+ id: z.ZodString;
12
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
13
+ id: z.ZodString;
14
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
15
+ id: z.ZodString;
16
+ }, z.ZodUnknown, "strip">[], unknown>>;
9
17
  config: z.ZodDefault<z.ZodObject<{
10
18
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
11
19
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -74,42 +82,22 @@ export declare const ExperimentSchema: z.ZodObject<z.extendShape<{
74
82
  name: z.ZodOptional<z.ZodString>;
75
83
  description: z.ZodOptional<z.ZodString>;
76
84
  }, "strip", z.ZodTypeAny, {
77
- name?: string | undefined;
78
- description?: string | undefined;
79
85
  id: string;
80
- }, {
81
86
  name?: string | undefined;
82
87
  description?: string | undefined;
83
- id: string;
84
- }>>>;
85
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
86
- id: z.ZodString;
87
- }, "strip", z.ZodUnknown, {
88
- [x: string]: unknown;
89
- id: string;
90
88
  }, {
91
- [x: string]: unknown;
92
- id: string;
93
- }>, "many">, {
94
- [x: string]: unknown;
95
89
  id: string;
96
- }[], unknown>>;
97
- }, {
98
- type: z.ZodString;
99
- }>, "strip", z.ZodTypeAny, {
100
- description?: string | undefined;
101
- audience?: {
102
90
  name?: string | undefined;
103
91
  description?: string | undefined;
104
- id: string;
105
- } | null | undefined;
92
+ }>>>;
93
+ type: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
106
95
  id: string;
107
96
  name: string;
108
97
  type: string;
109
- variants: {
110
- [x: string]: unknown;
111
- id: string;
112
- }[];
98
+ variants: z.objectOutputType<{
99
+ id: z.ZodString;
100
+ }, z.ZodUnknown, "strip">[];
113
101
  config: {
114
102
  distribution: number[];
115
103
  traffic: number;
@@ -123,7 +111,16 @@ export declare const ExperimentSchema: z.ZodObject<z.extendShape<{
123
111
  }[];
124
112
  }[];
125
113
  };
114
+ description?: string | undefined;
115
+ audience?: {
116
+ id: string;
117
+ name?: string | undefined;
118
+ description?: string | undefined;
119
+ } | null | undefined;
126
120
  }, {
121
+ id: string;
122
+ name: string;
123
+ type: string;
127
124
  description?: string | undefined;
128
125
  variants?: unknown;
129
126
  config?: {
@@ -140,13 +137,10 @@ export declare const ExperimentSchema: z.ZodObject<z.extendShape<{
140
137
  }[] | undefined;
141
138
  } | undefined;
142
139
  audience?: {
140
+ id: string;
143
141
  name?: string | undefined;
144
142
  description?: string | undefined;
145
- id: string;
146
143
  } | null | undefined;
147
- id: string;
148
- name: string;
149
- type: string;
150
144
  }>;
151
145
  type ExperimentInput = z.input<typeof ExperimentSchema>;
152
146
  export type ExperimentLike<Variant extends Reference = Reference> = Omit<ExperimentInput, 'variants'> & {
@@ -159,6 +153,9 @@ export type Experiment<Variant extends Reference = Reference> = Omit<ExperimentO
159
153
  export declare const Experiment: {
160
154
  parse: <T extends Reference>(input: ExperimentLike<T>) => Experiment<T>;
161
155
  safeParse: <T_1 extends Reference>(input: ExperimentLike<T_1>) => z.SafeParseError<{
156
+ id: string;
157
+ name: string;
158
+ type: string;
162
159
  description?: string | undefined;
163
160
  variants?: unknown;
164
161
  config?: {
@@ -175,22 +172,13 @@ export declare const Experiment: {
175
172
  }[] | undefined;
176
173
  } | undefined;
177
174
  audience?: {
175
+ id: string;
178
176
  name?: string | undefined;
179
177
  description?: string | undefined;
180
- id: string;
181
178
  } | null | undefined;
182
- id: string;
183
- name: string;
184
- type: string;
185
179
  }> | {
186
180
  data: {
187
181
  variants: T_1[];
188
- description?: string | undefined;
189
- audience?: {
190
- name?: string | undefined;
191
- description?: string | undefined;
192
- id: string;
193
- } | null | undefined;
194
182
  id: string;
195
183
  name: string;
196
184
  type: string;
@@ -207,14 +195,28 @@ export declare const Experiment: {
207
195
  }[];
208
196
  }[];
209
197
  };
198
+ description?: string | undefined;
199
+ audience?: {
200
+ id: string;
201
+ name?: string | undefined;
202
+ description?: string | undefined;
203
+ } | null | undefined;
210
204
  };
211
205
  success: true;
212
206
  };
213
- nonstrict: () => z.ZodObject<z.extendShape<{
207
+ nonstrict: () => z.ZodObject<{
214
208
  id: z.ZodString;
215
209
  name: z.ZodString;
216
210
  description: z.ZodOptional<z.ZodString>;
217
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
211
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
214
+ id: z.ZodString;
215
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
216
+ id: z.ZodString;
217
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
218
+ id: z.ZodString;
219
+ }, z.ZodUnknown, "strip">[], unknown>>;
218
220
  config: z.ZodDefault<z.ZodObject<{
219
221
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
220
222
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -283,43 +285,67 @@ export declare const Experiment: {
283
285
  name: z.ZodOptional<z.ZodString>;
284
286
  description: z.ZodOptional<z.ZodString>;
285
287
  }, "strip", z.ZodTypeAny, {
288
+ id: string;
286
289
  name?: string | undefined;
287
290
  description?: string | undefined;
288
- id: string;
289
291
  }, {
292
+ id: string;
290
293
  name?: string | undefined;
291
294
  description?: string | undefined;
292
- id: string;
293
295
  }>>>;
296
+ type: z.ZodString;
297
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
298
+ id: z.ZodString;
299
+ name: z.ZodString;
300
+ description: z.ZodOptional<z.ZodString>;
294
301
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
295
302
  id: z.ZodString;
296
- }, "strip", z.ZodUnknown, {
297
- [x: string]: unknown;
298
- id: string;
299
- }, {
300
- [x: string]: unknown;
301
- id: string;
302
- }>, "many">, {
303
- [x: string]: unknown;
304
- id: string;
305
- }[], unknown>>;
306
- }, {
307
- type: z.ZodString;
308
- }>, "passthrough", z.ZodTypeAny, {
309
- description?: string | undefined;
310
- audience?: {
311
- name?: string | undefined;
312
- description?: string | undefined;
313
- id: string;
314
- } | null | undefined;
315
- id: string;
316
- name: string;
317
- type: string;
318
- variants: {
319
- [x: string]: unknown;
320
- id: string;
321
- }[];
322
- config: {
303
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
304
+ id: z.ZodString;
305
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
306
+ id: z.ZodString;
307
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
308
+ id: z.ZodString;
309
+ }, z.ZodUnknown, "strip">[], unknown>>;
310
+ config: z.ZodDefault<z.ZodObject<{
311
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
312
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
313
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
314
+ baseline: z.ZodObject<{
315
+ id: z.ZodDefault<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ id: string;
318
+ }, {
319
+ id?: string | undefined;
320
+ }>;
321
+ variants: z.ZodArray<z.ZodObject<{
322
+ id: z.ZodDefault<z.ZodString>;
323
+ hidden: z.ZodDefault<z.ZodBoolean>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ id: string;
326
+ hidden: boolean;
327
+ }, {
328
+ id?: string | undefined;
329
+ hidden?: boolean | undefined;
330
+ }>, "many">;
331
+ }, "strip", z.ZodTypeAny, {
332
+ baseline: {
333
+ id: string;
334
+ };
335
+ variants: {
336
+ id: string;
337
+ hidden: boolean;
338
+ }[];
339
+ }, {
340
+ baseline: {
341
+ id?: string | undefined;
342
+ };
343
+ variants: {
344
+ id?: string | undefined;
345
+ hidden?: boolean | undefined;
346
+ }[];
347
+ }>, "many">>>;
348
+ }, "strip", z.ZodTypeAny, {
323
349
  distribution: number[];
324
350
  traffic: number;
325
351
  components: {
@@ -331,11 +357,7 @@ export declare const Experiment: {
331
357
  hidden: boolean;
332
358
  }[];
333
359
  }[];
334
- };
335
- }, {
336
- description?: string | undefined;
337
- variants?: unknown;
338
- config?: {
360
+ }, {
339
361
  distribution?: number[] | undefined;
340
362
  traffic?: number | undefined;
341
363
  components?: {
@@ -347,21 +369,34 @@ export declare const Experiment: {
347
369
  hidden?: boolean | undefined;
348
370
  }[];
349
371
  }[] | undefined;
350
- } | undefined;
351
- audience?: {
372
+ }>>;
373
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
374
+ id: z.ZodString;
375
+ name: z.ZodOptional<z.ZodString>;
376
+ description: z.ZodOptional<z.ZodString>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ id: string;
352
379
  name?: string | undefined;
353
380
  description?: string | undefined;
381
+ }, {
354
382
  id: string;
355
- } | null | undefined;
356
- id: string;
357
- name: string;
358
- type: string;
359
- }>;
360
- augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.extendShape<z.extendShape<{
383
+ name?: string | undefined;
384
+ description?: string | undefined;
385
+ }>>>;
386
+ type: z.ZodString;
387
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
361
388
  id: z.ZodString;
362
389
  name: z.ZodString;
363
390
  description: z.ZodOptional<z.ZodString>;
364
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
391
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
392
+ id: z.ZodString;
393
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
394
+ id: z.ZodString;
395
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
396
+ id: z.ZodString;
397
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
398
+ id: z.ZodString;
399
+ }, z.ZodUnknown, "strip">[], unknown>>;
365
400
  config: z.ZodDefault<z.ZodObject<{
366
401
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
367
402
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -430,33 +465,29 @@ export declare const Experiment: {
430
465
  name: z.ZodOptional<z.ZodString>;
431
466
  description: z.ZodOptional<z.ZodString>;
432
467
  }, "strip", z.ZodTypeAny, {
468
+ id: string;
433
469
  name?: string | undefined;
434
470
  description?: string | undefined;
435
- id: string;
436
471
  }, {
472
+ id: string;
437
473
  name?: string | undefined;
438
474
  description?: string | undefined;
439
- id: string;
440
475
  }>>>;
441
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
442
- id: z.ZodString;
443
- }, "strip", z.ZodUnknown, {
444
- [x: string]: unknown;
445
- id: string;
446
- }, {
447
- [x: string]: unknown;
448
- id: string;
449
- }>, "many">, {
450
- [x: string]: unknown;
451
- id: string;
452
- }[], unknown>>;
453
- }, {
454
476
  type: z.ZodString;
455
- }>, Augmentation>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
477
+ }, z.ZodTypeAny, "passthrough">>;
478
+ augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<Omit<{
456
479
  id: z.ZodString;
457
480
  name: z.ZodString;
458
481
  description: z.ZodOptional<z.ZodString>;
459
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
482
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
483
+ id: z.ZodString;
484
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
485
+ id: z.ZodString;
486
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
487
+ id: z.ZodString;
488
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
489
+ id: z.ZodString;
490
+ }, z.ZodUnknown, "strip">[], unknown>>;
460
491
  config: z.ZodDefault<z.ZodObject<{
461
492
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
462
493
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -525,33 +556,28 @@ export declare const Experiment: {
525
556
  name: z.ZodOptional<z.ZodString>;
526
557
  description: z.ZodOptional<z.ZodString>;
527
558
  }, "strip", z.ZodTypeAny, {
559
+ id: string;
528
560
  name?: string | undefined;
529
561
  description?: string | undefined;
530
- id: string;
531
562
  }, {
563
+ id: string;
532
564
  name?: string | undefined;
533
565
  description?: string | undefined;
534
- id: string;
535
566
  }>>>;
536
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
537
- id: z.ZodString;
538
- }, "strip", z.ZodUnknown, {
539
- [x: string]: unknown;
540
- id: string;
541
- }, {
542
- [x: string]: unknown;
543
- id: string;
544
- }>, "many">, {
545
- [x: string]: unknown;
546
- id: string;
547
- }[], unknown>>;
548
- }, {
549
567
  type: z.ZodString;
550
- }>, Augmentation> extends infer T_3 extends z.ZodRawShape ? { [k_1 in keyof T_3]: z.extendShape<z.extendShape<{
568
+ }, keyof Augmentation> & Augmentation extends infer T_2 ? { [k in keyof T_2]: (Omit<{
551
569
  id: z.ZodString;
552
570
  name: z.ZodString;
553
571
  description: z.ZodOptional<z.ZodString>;
554
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
572
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
573
+ id: z.ZodString;
574
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
575
+ id: z.ZodString;
576
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
577
+ id: z.ZodString;
578
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
579
+ id: z.ZodString;
580
+ }, z.ZodUnknown, "strip">[], unknown>>;
555
581
  config: z.ZodDefault<z.ZodObject<{
556
582
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
557
583
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -620,33 +646,28 @@ export declare const Experiment: {
620
646
  name: z.ZodOptional<z.ZodString>;
621
647
  description: z.ZodOptional<z.ZodString>;
622
648
  }, "strip", z.ZodTypeAny, {
649
+ id: string;
623
650
  name?: string | undefined;
624
651
  description?: string | undefined;
625
- id: string;
626
652
  }, {
653
+ id: string;
627
654
  name?: string | undefined;
628
655
  description?: string | undefined;
629
- id: string;
630
656
  }>>>;
631
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
632
- id: z.ZodString;
633
- }, "strip", z.ZodUnknown, {
634
- [x: string]: unknown;
635
- id: string;
636
- }, {
637
- [x: string]: unknown;
638
- id: string;
639
- }>, "many">, {
640
- [x: string]: unknown;
641
- id: string;
642
- }[], unknown>>;
643
- }, {
644
657
  type: z.ZodString;
645
- }>, Augmentation>[k_1]["_output"]; } : never> extends infer T_2 extends object ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
658
+ }, keyof Augmentation> & Augmentation)[k]; } : never, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Omit<{
646
659
  id: z.ZodString;
647
660
  name: z.ZodString;
648
661
  description: z.ZodOptional<z.ZodString>;
649
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
662
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
663
+ id: z.ZodString;
664
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
665
+ id: z.ZodString;
666
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
667
+ id: z.ZodString;
668
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
669
+ id: z.ZodString;
670
+ }, z.ZodUnknown, "strip">[], unknown>>;
650
671
  config: z.ZodDefault<z.ZodObject<{
651
672
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
652
673
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -715,33 +736,28 @@ export declare const Experiment: {
715
736
  name: z.ZodOptional<z.ZodString>;
716
737
  description: z.ZodOptional<z.ZodString>;
717
738
  }, "strip", z.ZodTypeAny, {
739
+ id: string;
718
740
  name?: string | undefined;
719
741
  description?: string | undefined;
720
- id: string;
721
742
  }, {
743
+ id: string;
722
744
  name?: string | undefined;
723
745
  description?: string | undefined;
724
- id: string;
725
746
  }>>>;
726
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
727
- id: z.ZodString;
728
- }, "strip", z.ZodUnknown, {
729
- [x: string]: unknown;
730
- id: string;
731
- }, {
732
- [x: string]: unknown;
733
- id: string;
734
- }>, "many">, {
735
- [x: string]: unknown;
736
- id: string;
737
- }[], unknown>>;
738
- }, {
739
747
  type: z.ZodString;
740
- }>, Augmentation> extends infer T_3 extends z.ZodRawShape ? { [k_1 in keyof T_3]: z.extendShape<z.extendShape<{
748
+ }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
741
749
  id: z.ZodString;
742
750
  name: z.ZodString;
743
751
  description: z.ZodOptional<z.ZodString>;
744
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
752
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
753
+ id: z.ZodString;
754
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
755
+ id: z.ZodString;
756
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
757
+ id: z.ZodString;
758
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
759
+ id: z.ZodString;
760
+ }, z.ZodUnknown, "strip">[], unknown>>;
745
761
  config: z.ZodDefault<z.ZodObject<{
746
762
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
747
763
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -810,33 +826,28 @@ export declare const Experiment: {
810
826
  name: z.ZodOptional<z.ZodString>;
811
827
  description: z.ZodOptional<z.ZodString>;
812
828
  }, "strip", z.ZodTypeAny, {
829
+ id: string;
813
830
  name?: string | undefined;
814
831
  description?: string | undefined;
815
- id: string;
816
832
  }, {
833
+ id: string;
817
834
  name?: string | undefined;
818
835
  description?: string | undefined;
819
- id: string;
820
836
  }>>>;
821
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
822
- id: z.ZodString;
823
- }, "strip", z.ZodUnknown, {
824
- [x: string]: unknown;
825
- id: string;
826
- }, {
827
- [x: string]: unknown;
828
- id: string;
829
- }>, "many">, {
830
- [x: string]: unknown;
831
- id: string;
832
- }[], unknown>>;
833
- }, {
834
837
  type: z.ZodString;
835
- }>, Augmentation>[k_1]["_output"]; } : never>[k]; } : never, z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
838
+ }, keyof Augmentation> & Augmentation)[k_2]; } : never>, (z.baseObjectOutputType<Omit<{
836
839
  id: z.ZodString;
837
840
  name: z.ZodString;
838
841
  description: z.ZodOptional<z.ZodString>;
839
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
842
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
843
+ id: z.ZodString;
844
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
845
+ id: z.ZodString;
846
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
847
+ id: z.ZodString;
848
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
849
+ id: z.ZodString;
850
+ }, z.ZodUnknown, "strip">[], unknown>>;
840
851
  config: z.ZodDefault<z.ZodObject<{
841
852
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
842
853
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -905,33 +916,118 @@ export declare const Experiment: {
905
916
  name: z.ZodOptional<z.ZodString>;
906
917
  description: z.ZodOptional<z.ZodString>;
907
918
  }, "strip", z.ZodTypeAny, {
919
+ id: string;
908
920
  name?: string | undefined;
909
921
  description?: string | undefined;
910
- id: string;
911
922
  }, {
923
+ id: string;
912
924
  name?: string | undefined;
913
925
  description?: string | undefined;
914
- id: string;
915
926
  }>>>;
927
+ type: z.ZodString;
928
+ }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
929
+ id: z.ZodString;
930
+ name: z.ZodString;
931
+ description: z.ZodOptional<z.ZodString>;
916
932
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
917
933
  id: z.ZodString;
918
- }, "strip", z.ZodUnknown, {
919
- [x: string]: unknown;
920
- id: string;
934
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
935
+ id: z.ZodString;
936
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
937
+ id: z.ZodString;
938
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
939
+ id: z.ZodString;
940
+ }, z.ZodUnknown, "strip">[], unknown>>;
941
+ config: z.ZodDefault<z.ZodObject<{
942
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
943
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
944
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
945
+ baseline: z.ZodObject<{
946
+ id: z.ZodDefault<z.ZodString>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ id: string;
949
+ }, {
950
+ id?: string | undefined;
951
+ }>;
952
+ variants: z.ZodArray<z.ZodObject<{
953
+ id: z.ZodDefault<z.ZodString>;
954
+ hidden: z.ZodDefault<z.ZodBoolean>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ id: string;
957
+ hidden: boolean;
958
+ }, {
959
+ id?: string | undefined;
960
+ hidden?: boolean | undefined;
961
+ }>, "many">;
962
+ }, "strip", z.ZodTypeAny, {
963
+ baseline: {
964
+ id: string;
965
+ };
966
+ variants: {
967
+ id: string;
968
+ hidden: boolean;
969
+ }[];
970
+ }, {
971
+ baseline: {
972
+ id?: string | undefined;
973
+ };
974
+ variants: {
975
+ id?: string | undefined;
976
+ hidden?: boolean | undefined;
977
+ }[];
978
+ }>, "many">>>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ distribution: number[];
981
+ traffic: number;
982
+ components: {
983
+ baseline: {
984
+ id: string;
985
+ };
986
+ variants: {
987
+ id: string;
988
+ hidden: boolean;
989
+ }[];
990
+ }[];
921
991
  }, {
922
- [x: string]: unknown;
992
+ distribution?: number[] | undefined;
993
+ traffic?: number | undefined;
994
+ components?: {
995
+ baseline: {
996
+ id?: string | undefined;
997
+ };
998
+ variants: {
999
+ id?: string | undefined;
1000
+ hidden?: boolean | undefined;
1001
+ }[];
1002
+ }[] | undefined;
1003
+ }>>;
1004
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1005
+ id: z.ZodString;
1006
+ name: z.ZodOptional<z.ZodString>;
1007
+ description: z.ZodOptional<z.ZodString>;
1008
+ }, "strip", z.ZodTypeAny, {
923
1009
  id: string;
924
- }>, "many">, {
925
- [x: string]: unknown;
1010
+ name?: string | undefined;
1011
+ description?: string | undefined;
1012
+ }, {
926
1013
  id: string;
927
- }[], unknown>>;
928
- }, {
1014
+ name?: string | undefined;
1015
+ description?: string | undefined;
1016
+ }>>>;
929
1017
  type: z.ZodString;
930
- }>, Augmentation> extends infer T_5 extends z.ZodRawShape ? { [k_3 in keyof T_5]: z.extendShape<z.extendShape<{
1018
+ }, keyof Augmentation> & Augmentation)[k_2]; } : never> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends z.baseObjectOutputType<Omit<{
931
1019
  id: z.ZodString;
932
1020
  name: z.ZodString;
933
1021
  description: z.ZodOptional<z.ZodString>;
934
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1022
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1023
+ id: z.ZodString;
1024
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1025
+ id: z.ZodString;
1026
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1027
+ id: z.ZodString;
1028
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1029
+ id: z.ZodString;
1030
+ }, z.ZodUnknown, "strip">[], unknown>>;
935
1031
  config: z.ZodDefault<z.ZodObject<{
936
1032
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
937
1033
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1000,33 +1096,28 @@ export declare const Experiment: {
1000
1096
  name: z.ZodOptional<z.ZodString>;
1001
1097
  description: z.ZodOptional<z.ZodString>;
1002
1098
  }, "strip", z.ZodTypeAny, {
1099
+ id: string;
1003
1100
  name?: string | undefined;
1004
1101
  description?: string | undefined;
1005
- id: string;
1006
1102
  }, {
1103
+ id: string;
1007
1104
  name?: string | undefined;
1008
1105
  description?: string | undefined;
1009
- id: string;
1010
1106
  }>>>;
1011
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1012
- id: z.ZodString;
1013
- }, "strip", z.ZodUnknown, {
1014
- [x: string]: unknown;
1015
- id: string;
1016
- }, {
1017
- [x: string]: unknown;
1018
- id: string;
1019
- }>, "many">, {
1020
- [x: string]: unknown;
1021
- id: string;
1022
- }[], unknown>>;
1023
- }, {
1024
1107
  type: z.ZodString;
1025
- }>, Augmentation>[k_3]["_input"]; } : never> extends infer T_4 extends object ? { [k_2 in keyof T_4]: z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
1108
+ }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1026
1109
  id: z.ZodString;
1027
1110
  name: z.ZodString;
1028
1111
  description: z.ZodOptional<z.ZodString>;
1029
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1112
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1115
+ id: z.ZodString;
1116
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1117
+ id: z.ZodString;
1118
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1119
+ id: z.ZodString;
1120
+ }, z.ZodUnknown, "strip">[], unknown>>;
1030
1121
  config: z.ZodDefault<z.ZodObject<{
1031
1122
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1032
1123
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1095,33 +1186,28 @@ export declare const Experiment: {
1095
1186
  name: z.ZodOptional<z.ZodString>;
1096
1187
  description: z.ZodOptional<z.ZodString>;
1097
1188
  }, "strip", z.ZodTypeAny, {
1189
+ id: string;
1098
1190
  name?: string | undefined;
1099
1191
  description?: string | undefined;
1100
- id: string;
1101
1192
  }, {
1193
+ id: string;
1102
1194
  name?: string | undefined;
1103
1195
  description?: string | undefined;
1104
- id: string;
1105
1196
  }>>>;
1106
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1107
- id: z.ZodString;
1108
- }, "strip", z.ZodUnknown, {
1109
- [x: string]: unknown;
1110
- id: string;
1111
- }, {
1112
- [x: string]: unknown;
1113
- id: string;
1114
- }>, "many">, {
1115
- [x: string]: unknown;
1116
- id: string;
1117
- }[], unknown>>;
1118
- }, {
1119
1197
  type: z.ZodString;
1120
- }>, Augmentation> extends infer T_5 extends z.ZodRawShape ? { [k_3 in keyof T_5]: z.extendShape<z.extendShape<{
1198
+ }, keyof Augmentation> & Augmentation)[k_2]; } : never>[k_3] ? never : k_3; } : never)[keyof Augmentation | Exclude<"id", keyof Augmentation> | Exclude<"name", keyof Augmentation> | Exclude<"description", keyof Augmentation> | Exclude<"type", keyof Augmentation> | Exclude<"variants", keyof Augmentation> | Exclude<"config", keyof Augmentation> | Exclude<"audience", keyof Augmentation>]> extends infer T_3 ? { [k_1 in keyof T_3]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Omit<{
1121
1199
  id: z.ZodString;
1122
1200
  name: z.ZodString;
1123
1201
  description: z.ZodOptional<z.ZodString>;
1124
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1202
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1203
+ id: z.ZodString;
1204
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1205
+ id: z.ZodString;
1206
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1207
+ id: z.ZodString;
1208
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1209
+ id: z.ZodString;
1210
+ }, z.ZodUnknown, "strip">[], unknown>>;
1125
1211
  config: z.ZodDefault<z.ZodObject<{
1126
1212
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1127
1213
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1190,34 +1276,28 @@ export declare const Experiment: {
1190
1276
  name: z.ZodOptional<z.ZodString>;
1191
1277
  description: z.ZodOptional<z.ZodString>;
1192
1278
  }, "strip", z.ZodTypeAny, {
1279
+ id: string;
1193
1280
  name?: string | undefined;
1194
1281
  description?: string | undefined;
1195
- id: string;
1196
1282
  }, {
1283
+ id: string;
1197
1284
  name?: string | undefined;
1198
1285
  description?: string | undefined;
1199
- id: string;
1200
1286
  }>>>;
1201
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1202
- id: z.ZodString;
1203
- }, "strip", z.ZodUnknown, {
1204
- [x: string]: unknown;
1205
- id: string;
1206
- }, {
1207
- [x: string]: unknown;
1208
- id: string;
1209
- }>, "many">, {
1210
- [x: string]: unknown;
1211
- id: string;
1212
- }[], unknown>>;
1213
- }, {
1214
1287
  type: z.ZodString;
1215
- }>, Augmentation>[k_3]["_input"]; } : never>[k_2]; } : never>;
1216
- extend: <Augmentation_1 extends z.ZodRawShape>(augmentation: Augmentation_1) => z.ZodObject<z.extendShape<z.extendShape<{
1288
+ }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1217
1289
  id: z.ZodString;
1218
1290
  name: z.ZodString;
1219
1291
  description: z.ZodOptional<z.ZodString>;
1220
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1292
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1293
+ id: z.ZodString;
1294
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1295
+ id: z.ZodString;
1296
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1297
+ id: z.ZodString;
1298
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1299
+ id: z.ZodString;
1300
+ }, z.ZodUnknown, "strip">[], unknown>>;
1221
1301
  config: z.ZodDefault<z.ZodObject<{
1222
1302
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1223
1303
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1286,33 +1366,28 @@ export declare const Experiment: {
1286
1366
  name: z.ZodOptional<z.ZodString>;
1287
1367
  description: z.ZodOptional<z.ZodString>;
1288
1368
  }, "strip", z.ZodTypeAny, {
1369
+ id: string;
1289
1370
  name?: string | undefined;
1290
1371
  description?: string | undefined;
1291
- id: string;
1292
1372
  }, {
1373
+ id: string;
1293
1374
  name?: string | undefined;
1294
1375
  description?: string | undefined;
1295
- id: string;
1296
1376
  }>>>;
1297
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1298
- id: z.ZodString;
1299
- }, "strip", z.ZodUnknown, {
1300
- [x: string]: unknown;
1301
- id: string;
1302
- }, {
1303
- [x: string]: unknown;
1304
- id: string;
1305
- }>, "many">, {
1306
- [x: string]: unknown;
1307
- id: string;
1308
- }[], unknown>>;
1309
- }, {
1310
1377
  type: z.ZodString;
1311
- }>, Augmentation_1>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
1378
+ }, keyof Augmentation> & Augmentation)[k_2]; } : never>, (z.baseObjectOutputType<Omit<{
1312
1379
  id: z.ZodString;
1313
1380
  name: z.ZodString;
1314
1381
  description: z.ZodOptional<z.ZodString>;
1315
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1382
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1383
+ id: z.ZodString;
1384
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1385
+ id: z.ZodString;
1386
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1387
+ id: z.ZodString;
1388
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1389
+ id: z.ZodString;
1390
+ }, z.ZodUnknown, "strip">[], unknown>>;
1316
1391
  config: z.ZodDefault<z.ZodObject<{
1317
1392
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1318
1393
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1381,33 +1456,28 @@ export declare const Experiment: {
1381
1456
  name: z.ZodOptional<z.ZodString>;
1382
1457
  description: z.ZodOptional<z.ZodString>;
1383
1458
  }, "strip", z.ZodTypeAny, {
1459
+ id: string;
1384
1460
  name?: string | undefined;
1385
1461
  description?: string | undefined;
1386
- id: string;
1387
1462
  }, {
1463
+ id: string;
1388
1464
  name?: string | undefined;
1389
1465
  description?: string | undefined;
1390
- id: string;
1391
1466
  }>>>;
1392
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1393
- id: z.ZodString;
1394
- }, "strip", z.ZodUnknown, {
1395
- [x: string]: unknown;
1396
- id: string;
1397
- }, {
1398
- [x: string]: unknown;
1399
- id: string;
1400
- }>, "many">, {
1401
- [x: string]: unknown;
1402
- id: string;
1403
- }[], unknown>>;
1404
- }, {
1405
1467
  type: z.ZodString;
1406
- }>, Augmentation_1> extends infer T_7 extends z.ZodRawShape ? { [k_5 in keyof T_7]: z.extendShape<z.extendShape<{
1468
+ }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1407
1469
  id: z.ZodString;
1408
1470
  name: z.ZodString;
1409
1471
  description: z.ZodOptional<z.ZodString>;
1410
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1472
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1473
+ id: z.ZodString;
1474
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1475
+ id: z.ZodString;
1476
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1477
+ id: z.ZodString;
1478
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1479
+ id: z.ZodString;
1480
+ }, z.ZodUnknown, "strip">[], unknown>>;
1411
1481
  config: z.ZodDefault<z.ZodObject<{
1412
1482
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1413
1483
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1476,33 +1546,28 @@ export declare const Experiment: {
1476
1546
  name: z.ZodOptional<z.ZodString>;
1477
1547
  description: z.ZodOptional<z.ZodString>;
1478
1548
  }, "strip", z.ZodTypeAny, {
1549
+ id: string;
1479
1550
  name?: string | undefined;
1480
1551
  description?: string | undefined;
1481
- id: string;
1482
1552
  }, {
1553
+ id: string;
1483
1554
  name?: string | undefined;
1484
1555
  description?: string | undefined;
1485
- id: string;
1486
1556
  }>>>;
1487
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1488
- id: z.ZodString;
1489
- }, "strip", z.ZodUnknown, {
1490
- [x: string]: unknown;
1491
- id: string;
1492
- }, {
1493
- [x: string]: unknown;
1494
- id: string;
1495
- }>, "many">, {
1496
- [x: string]: unknown;
1497
- id: string;
1498
- }[], unknown>>;
1499
- }, {
1500
1557
  type: z.ZodString;
1501
- }>, Augmentation_1>[k_5]["_output"]; } : never> extends infer T_6 extends object ? { [k_4 in keyof T_6]: z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
1558
+ }, keyof Augmentation> & Augmentation)[k_2]; } : never> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends z.baseObjectOutputType<Omit<{
1502
1559
  id: z.ZodString;
1503
1560
  name: z.ZodString;
1504
1561
  description: z.ZodOptional<z.ZodString>;
1505
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1562
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1563
+ id: z.ZodString;
1564
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1565
+ id: z.ZodString;
1566
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1567
+ id: z.ZodString;
1568
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1569
+ id: z.ZodString;
1570
+ }, z.ZodUnknown, "strip">[], unknown>>;
1506
1571
  config: z.ZodDefault<z.ZodObject<{
1507
1572
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1508
1573
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1571,33 +1636,28 @@ export declare const Experiment: {
1571
1636
  name: z.ZodOptional<z.ZodString>;
1572
1637
  description: z.ZodOptional<z.ZodString>;
1573
1638
  }, "strip", z.ZodTypeAny, {
1639
+ id: string;
1574
1640
  name?: string | undefined;
1575
1641
  description?: string | undefined;
1576
- id: string;
1577
1642
  }, {
1643
+ id: string;
1578
1644
  name?: string | undefined;
1579
1645
  description?: string | undefined;
1580
- id: string;
1581
1646
  }>>>;
1582
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1583
- id: z.ZodString;
1584
- }, "strip", z.ZodUnknown, {
1585
- [x: string]: unknown;
1586
- id: string;
1587
- }, {
1588
- [x: string]: unknown;
1589
- id: string;
1590
- }>, "many">, {
1591
- [x: string]: unknown;
1592
- id: string;
1593
- }[], unknown>>;
1594
- }, {
1595
1647
  type: z.ZodString;
1596
- }>, Augmentation_1> extends infer T_7 extends z.ZodRawShape ? { [k_5 in keyof T_7]: z.extendShape<z.extendShape<{
1648
+ }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1597
1649
  id: z.ZodString;
1598
1650
  name: z.ZodString;
1599
1651
  description: z.ZodOptional<z.ZodString>;
1600
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1652
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1653
+ id: z.ZodString;
1654
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1655
+ id: z.ZodString;
1656
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1657
+ id: z.ZodString;
1658
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1659
+ id: z.ZodString;
1660
+ }, z.ZodUnknown, "strip">[], unknown>>;
1601
1661
  config: z.ZodDefault<z.ZodObject<{
1602
1662
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1603
1663
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1666,33 +1726,28 @@ export declare const Experiment: {
1666
1726
  name: z.ZodOptional<z.ZodString>;
1667
1727
  description: z.ZodOptional<z.ZodString>;
1668
1728
  }, "strip", z.ZodTypeAny, {
1729
+ id: string;
1669
1730
  name?: string | undefined;
1670
1731
  description?: string | undefined;
1671
- id: string;
1672
1732
  }, {
1733
+ id: string;
1673
1734
  name?: string | undefined;
1674
1735
  description?: string | undefined;
1675
- id: string;
1676
1736
  }>>>;
1677
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1678
- id: z.ZodString;
1679
- }, "strip", z.ZodUnknown, {
1680
- [x: string]: unknown;
1681
- id: string;
1682
- }, {
1683
- [x: string]: unknown;
1684
- id: string;
1685
- }>, "many">, {
1686
- [x: string]: unknown;
1687
- id: string;
1688
- }[], unknown>>;
1689
- }, {
1690
1737
  type: z.ZodString;
1691
- }>, Augmentation_1>[k_5]["_output"]; } : never>[k_4]; } : never, z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
1738
+ }, keyof Augmentation> & Augmentation)[k_2]; } : never>[k_3] ? never : k_3; } : never)[keyof Augmentation | Exclude<"id", keyof Augmentation> | Exclude<"name", keyof Augmentation> | Exclude<"description", keyof Augmentation> | Exclude<"type", keyof Augmentation> | Exclude<"variants", keyof Augmentation> | Exclude<"config", keyof Augmentation> | Exclude<"audience", keyof Augmentation>]>[k_1]; } : never, z.baseObjectInputType<Omit<{
1692
1739
  id: z.ZodString;
1693
1740
  name: z.ZodString;
1694
1741
  description: z.ZodOptional<z.ZodString>;
1695
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1742
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1743
+ id: z.ZodString;
1744
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1745
+ id: z.ZodString;
1746
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1747
+ id: z.ZodString;
1748
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1749
+ id: z.ZodString;
1750
+ }, z.ZodUnknown, "strip">[], unknown>>;
1696
1751
  config: z.ZodDefault<z.ZodObject<{
1697
1752
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1698
1753
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1761,33 +1816,28 @@ export declare const Experiment: {
1761
1816
  name: z.ZodOptional<z.ZodString>;
1762
1817
  description: z.ZodOptional<z.ZodString>;
1763
1818
  }, "strip", z.ZodTypeAny, {
1819
+ id: string;
1764
1820
  name?: string | undefined;
1765
1821
  description?: string | undefined;
1766
- id: string;
1767
1822
  }, {
1823
+ id: string;
1768
1824
  name?: string | undefined;
1769
1825
  description?: string | undefined;
1770
- id: string;
1771
1826
  }>>>;
1772
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1773
- id: z.ZodString;
1774
- }, "strip", z.ZodUnknown, {
1775
- [x: string]: unknown;
1776
- id: string;
1777
- }, {
1778
- [x: string]: unknown;
1779
- id: string;
1780
- }>, "many">, {
1781
- [x: string]: unknown;
1782
- id: string;
1783
- }[], unknown>>;
1784
- }, {
1785
1827
  type: z.ZodString;
1786
- }>, Augmentation_1> extends infer T_9 extends z.ZodRawShape ? { [k_7 in keyof T_9]: z.extendShape<z.extendShape<{
1828
+ }, keyof Augmentation> & Augmentation extends infer T_7 ? { [k_5 in keyof T_7]: (Omit<{
1787
1829
  id: z.ZodString;
1788
1830
  name: z.ZodString;
1789
1831
  description: z.ZodOptional<z.ZodString>;
1790
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1832
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1833
+ id: z.ZodString;
1834
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1835
+ id: z.ZodString;
1836
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1837
+ id: z.ZodString;
1838
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1839
+ id: z.ZodString;
1840
+ }, z.ZodUnknown, "strip">[], unknown>>;
1791
1841
  config: z.ZodDefault<z.ZodObject<{
1792
1842
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1793
1843
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1856,33 +1906,28 @@ export declare const Experiment: {
1856
1906
  name: z.ZodOptional<z.ZodString>;
1857
1907
  description: z.ZodOptional<z.ZodString>;
1858
1908
  }, "strip", z.ZodTypeAny, {
1909
+ id: string;
1859
1910
  name?: string | undefined;
1860
1911
  description?: string | undefined;
1861
- id: string;
1862
1912
  }, {
1913
+ id: string;
1863
1914
  name?: string | undefined;
1864
1915
  description?: string | undefined;
1865
- id: string;
1866
1916
  }>>>;
1867
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1868
- id: z.ZodString;
1869
- }, "strip", z.ZodUnknown, {
1870
- [x: string]: unknown;
1871
- id: string;
1872
- }, {
1873
- [x: string]: unknown;
1874
- id: string;
1875
- }>, "many">, {
1876
- [x: string]: unknown;
1877
- id: string;
1878
- }[], unknown>>;
1879
- }, {
1880
1917
  type: z.ZodString;
1881
- }>, Augmentation_1>[k_7]["_input"]; } : never> extends infer T_8 extends object ? { [k_6 in keyof T_8]: z.objectUtil.addQuestionMarks<z.extendShape<z.extendShape<{
1918
+ }, keyof Augmentation> & Augmentation)[k_5]; } : never> extends infer T_6 ? { [k_4 in keyof T_6]: z.baseObjectInputType<Omit<{
1882
1919
  id: z.ZodString;
1883
1920
  name: z.ZodString;
1884
1921
  description: z.ZodOptional<z.ZodString>;
1885
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1922
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1923
+ id: z.ZodString;
1924
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1925
+ id: z.ZodString;
1926
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1927
+ id: z.ZodString;
1928
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1929
+ id: z.ZodString;
1930
+ }, z.ZodUnknown, "strip">[], unknown>>;
1886
1931
  config: z.ZodDefault<z.ZodObject<{
1887
1932
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1888
1933
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1951,33 +1996,28 @@ export declare const Experiment: {
1951
1996
  name: z.ZodOptional<z.ZodString>;
1952
1997
  description: z.ZodOptional<z.ZodString>;
1953
1998
  }, "strip", z.ZodTypeAny, {
1999
+ id: string;
1954
2000
  name?: string | undefined;
1955
2001
  description?: string | undefined;
1956
- id: string;
1957
2002
  }, {
2003
+ id: string;
1958
2004
  name?: string | undefined;
1959
2005
  description?: string | undefined;
1960
- id: string;
1961
2006
  }>>>;
1962
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1963
- id: z.ZodString;
1964
- }, "strip", z.ZodUnknown, {
1965
- [x: string]: unknown;
1966
- id: string;
1967
- }, {
1968
- [x: string]: unknown;
1969
- id: string;
1970
- }>, "many">, {
1971
- [x: string]: unknown;
1972
- id: string;
1973
- }[], unknown>>;
1974
- }, {
1975
2007
  type: z.ZodString;
1976
- }>, Augmentation_1> extends infer T_9 extends z.ZodRawShape ? { [k_7 in keyof T_9]: z.extendShape<z.extendShape<{
2008
+ }, keyof Augmentation> & Augmentation extends infer T_7 ? { [k_5 in keyof T_7]: (Omit<{
1977
2009
  id: z.ZodString;
1978
2010
  name: z.ZodString;
1979
2011
  description: z.ZodOptional<z.ZodString>;
1980
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2012
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2013
+ id: z.ZodString;
2014
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2015
+ id: z.ZodString;
2016
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2017
+ id: z.ZodString;
2018
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2019
+ id: z.ZodString;
2020
+ }, z.ZodUnknown, "strip">[], unknown>>;
1981
2021
  config: z.ZodDefault<z.ZodObject<{
1982
2022
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1983
2023
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -2046,43 +2086,23 @@ export declare const Experiment: {
2046
2086
  name: z.ZodOptional<z.ZodString>;
2047
2087
  description: z.ZodOptional<z.ZodString>;
2048
2088
  }, "strip", z.ZodTypeAny, {
2089
+ id: string;
2049
2090
  name?: string | undefined;
2050
2091
  description?: string | undefined;
2051
- id: string;
2052
2092
  }, {
2093
+ id: string;
2053
2094
  name?: string | undefined;
2054
2095
  description?: string | undefined;
2055
- id: string;
2056
2096
  }>>>;
2057
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2058
- id: z.ZodString;
2059
- }, "strip", z.ZodUnknown, {
2060
- [x: string]: unknown;
2061
- id: string;
2062
- }, {
2063
- [x: string]: unknown;
2064
- id: string;
2065
- }>, "many">, {
2066
- [x: string]: unknown;
2067
- id: string;
2068
- }[], unknown>>;
2069
- }, {
2070
2097
  type: z.ZodString;
2071
- }>, Augmentation_1>[k_7]["_input"]; } : never>[k_6]; } : never>;
2098
+ }, keyof Augmentation> & Augmentation)[k_5]; } : never>[k_4]; } : never>;
2072
2099
  _type: {
2073
- description?: string | undefined;
2074
- audience?: {
2075
- name?: string | undefined;
2076
- description?: string | undefined;
2077
- id: string;
2078
- } | null | undefined;
2079
2100
  id: string;
2080
2101
  name: string;
2081
2102
  type: string;
2082
- variants: {
2083
- [x: string]: unknown;
2084
- id: string;
2085
- }[];
2103
+ variants: z.objectOutputType<{
2104
+ id: z.ZodString;
2105
+ }, z.ZodUnknown, "strip">[];
2086
2106
  config: {
2087
2107
  distribution: number[];
2088
2108
  traffic: number;
@@ -2096,21 +2116,20 @@ export declare const Experiment: {
2096
2116
  }[];
2097
2117
  }[];
2098
2118
  };
2099
- };
2100
- _output: {
2101
2119
  description?: string | undefined;
2102
2120
  audience?: {
2121
+ id: string;
2103
2122
  name?: string | undefined;
2104
2123
  description?: string | undefined;
2105
- id: string;
2106
2124
  } | null | undefined;
2125
+ };
2126
+ _output: {
2107
2127
  id: string;
2108
2128
  name: string;
2109
2129
  type: string;
2110
- variants: {
2111
- [x: string]: unknown;
2112
- id: string;
2113
- }[];
2130
+ variants: z.objectOutputType<{
2131
+ id: z.ZodString;
2132
+ }, z.ZodUnknown, "strip">[];
2114
2133
  config: {
2115
2134
  distribution: number[];
2116
2135
  traffic: number;
@@ -2124,8 +2143,17 @@ export declare const Experiment: {
2124
2143
  }[];
2125
2144
  }[];
2126
2145
  };
2146
+ description?: string | undefined;
2147
+ audience?: {
2148
+ id: string;
2149
+ name?: string | undefined;
2150
+ description?: string | undefined;
2151
+ } | null | undefined;
2127
2152
  };
2128
2153
  _input: {
2154
+ id: string;
2155
+ name: string;
2156
+ type: string;
2129
2157
  description?: string | undefined;
2130
2158
  variants?: unknown;
2131
2159
  config?: {
@@ -2142,19 +2170,24 @@ export declare const Experiment: {
2142
2170
  }[] | undefined;
2143
2171
  } | undefined;
2144
2172
  audience?: {
2173
+ id: string;
2145
2174
  name?: string | undefined;
2146
2175
  description?: string | undefined;
2147
- id: string;
2148
2176
  } | null | undefined;
2149
- id: string;
2150
- name: string;
2151
- type: string;
2152
2177
  };
2153
- _def: z.ZodObjectDef<z.extendShape<{
2178
+ _def: z.ZodObjectDef<{
2154
2179
  id: z.ZodString;
2155
2180
  name: z.ZodString;
2156
2181
  description: z.ZodOptional<z.ZodString>;
2157
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2182
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2183
+ id: z.ZodString;
2184
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2185
+ id: z.ZodString;
2186
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2187
+ id: z.ZodString;
2188
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2189
+ id: z.ZodString;
2190
+ }, z.ZodUnknown, "strip">[], unknown>>;
2158
2191
  config: z.ZodDefault<z.ZodObject<{
2159
2192
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2160
2193
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -2223,30 +2256,20 @@ export declare const Experiment: {
2223
2256
  name: z.ZodOptional<z.ZodString>;
2224
2257
  description: z.ZodOptional<z.ZodString>;
2225
2258
  }, "strip", z.ZodTypeAny, {
2259
+ id: string;
2226
2260
  name?: string | undefined;
2227
2261
  description?: string | undefined;
2228
- id: string;
2229
2262
  }, {
2263
+ id: string;
2230
2264
  name?: string | undefined;
2231
2265
  description?: string | undefined;
2232
- id: string;
2233
2266
  }>>>;
2234
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2235
- id: z.ZodString;
2236
- }, "strip", z.ZodUnknown, {
2237
- [x: string]: unknown;
2238
- id: string;
2239
- }, {
2240
- [x: string]: unknown;
2241
- id: string;
2242
- }>, "many">, {
2243
- [x: string]: unknown;
2244
- id: string;
2245
- }[], unknown>>;
2246
- }, {
2247
2267
  type: z.ZodString;
2248
- }>, "strip", z.ZodTypeAny>;
2268
+ }, "strip", z.ZodTypeAny>;
2249
2269
  spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
2270
+ id: string;
2271
+ name: string;
2272
+ type: string;
2250
2273
  description?: string | undefined;
2251
2274
  variants?: unknown;
2252
2275
  config?: {
@@ -2263,27 +2286,17 @@ export declare const Experiment: {
2263
2286
  }[] | undefined;
2264
2287
  } | undefined;
2265
2288
  audience?: {
2266
- name?: string | undefined;
2267
- description?: string | undefined;
2268
2289
  id: string;
2269
- } | null | undefined;
2270
- id: string;
2271
- name: string;
2272
- type: string;
2273
- }, {
2274
- description?: string | undefined;
2275
- audience?: {
2276
2290
  name?: string | undefined;
2277
2291
  description?: string | undefined;
2278
- id: string;
2279
2292
  } | null | undefined;
2293
+ }, {
2280
2294
  id: string;
2281
2295
  name: string;
2282
2296
  type: string;
2283
- variants: {
2284
- [x: string]: unknown;
2285
- id: string;
2286
- }[];
2297
+ variants: z.objectOutputType<{
2298
+ id: z.ZodString;
2299
+ }, z.ZodUnknown, "strip">[];
2287
2300
  config: {
2288
2301
  distribution: number[];
2289
2302
  traffic: number;
@@ -2297,6 +2310,12 @@ export declare const Experiment: {
2297
2310
  }[];
2298
2311
  }[];
2299
2312
  };
2313
+ description?: string | undefined;
2314
+ audience?: {
2315
+ id: string;
2316
+ name?: string | undefined;
2317
+ description?: string | undefined;
2318
+ } | null | undefined;
2300
2319
  }>>;
2301
2320
  };
2302
2321
  export {};