@ninetailed/experience.js-utils 3.0.1-beta.3 → 3.0.2-beta.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.
@@ -1,5 +1,6 @@
1
+ import { Reference } from '@ninetailed/experience.js';
1
2
  import { z } from 'zod';
2
- export declare const Experience: z.ZodObject<{
3
+ export declare const ExperienceSchema: z.ZodObject<{
3
4
  id: z.ZodString;
4
5
  /**
5
6
  * The name of the experience (Short Text)
@@ -8,7 +9,7 @@ export declare const Experience: z.ZodObject<{
8
9
  /**
9
10
  * The type if the experience (nt_experiment | nt_personalization)
10
11
  */
11
- type: z.ZodUnion<[z.ZodLiteral<"nt_experiment">, z.ZodLiteral<"nt_personalization">]>;
12
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
12
13
  /**
13
14
  * The config of the experience (JSON)
14
15
  */
@@ -90,23 +91,25 @@ export declare const Experience: z.ZodObject<{
90
91
  */
91
92
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
92
93
  id: z.ZodString;
93
- }, "passthrough", z.ZodTypeAny, {
94
+ }, "strip", z.ZodUnknown, {
95
+ [x: string]: unknown;
94
96
  id: string;
95
97
  }, {
98
+ [x: string]: unknown;
96
99
  id: string;
97
100
  }>, "many">, {
101
+ [x: string]: unknown;
98
102
  id: string;
99
- }[], {
100
- id: string;
101
- }[]>>;
103
+ }[], unknown>>;
102
104
  }, "strip", z.ZodTypeAny, {
103
105
  audience?: {
104
106
  id: string;
105
107
  } | null | undefined;
106
108
  id: string;
107
109
  name: string;
108
- type: "nt_experiment" | "nt_personalization";
110
+ type: string;
109
111
  variants: {
112
+ [x: string]: unknown;
110
113
  id: string;
111
114
  }[];
112
115
  config: {
@@ -123,9 +126,7 @@ export declare const Experience: z.ZodObject<{
123
126
  }[];
124
127
  };
125
128
  }, {
126
- variants?: {
127
- id: string;
128
- }[] | undefined;
129
+ variants?: unknown;
129
130
  config?: {
130
131
  distribution?: number[] | undefined;
131
132
  traffic?: number | undefined;
@@ -144,6 +145,2250 @@ export declare const Experience: z.ZodObject<{
144
145
  } | null | undefined;
145
146
  id: string;
146
147
  name: string;
147
- type: "nt_experiment" | "nt_personalization";
148
+ type: string;
148
149
  }>;
149
- export declare type Experience = z.infer<typeof Experience>;
150
+ declare type ExperienceInput = z.input<typeof ExperienceSchema>;
151
+ export declare type ExperienceLike<Variant extends Reference = Reference> = Omit<ExperienceInput, 'variants'> & {
152
+ variants: Variant[];
153
+ };
154
+ declare type ExperienceOutput = z.infer<typeof ExperienceSchema>;
155
+ export declare type Experience<Variant extends Reference = Reference> = Omit<ExperienceOutput, 'variants'> & {
156
+ variants: Variant[];
157
+ };
158
+ export declare const Experience: {
159
+ parse: <T extends Reference>(input: ExperienceLike<T>) => Experience<T>;
160
+ safeParse: <T_1 extends Reference>(input: ExperienceLike<T_1>) => z.SafeParseError<{
161
+ variants?: unknown;
162
+ config?: {
163
+ distribution?: number[] | undefined;
164
+ traffic?: number | undefined;
165
+ components?: {
166
+ baseline: {
167
+ id?: string | undefined;
168
+ };
169
+ variants: {
170
+ id?: string | undefined;
171
+ hidden?: boolean | undefined;
172
+ }[];
173
+ }[] | undefined;
174
+ } | undefined;
175
+ audience?: {
176
+ id: string;
177
+ } | null | undefined;
178
+ id: string;
179
+ name: string;
180
+ type: string;
181
+ }> | {
182
+ data: {
183
+ variants: T_1[];
184
+ audience?: {
185
+ id: string;
186
+ } | null | undefined;
187
+ id: string;
188
+ name: string;
189
+ type: string;
190
+ config: {
191
+ distribution: number[];
192
+ traffic: number;
193
+ components: {
194
+ baseline: {
195
+ id: string;
196
+ };
197
+ variants: {
198
+ id: string;
199
+ hidden: boolean;
200
+ }[];
201
+ }[];
202
+ };
203
+ };
204
+ success: true;
205
+ };
206
+ nonstrict: () => z.ZodObject<{
207
+ id: z.ZodString;
208
+ /**
209
+ * The name of the experience (Short Text)
210
+ */
211
+ name: z.ZodString;
212
+ /**
213
+ * The type if the experience (nt_experiment | nt_personalization)
214
+ */
215
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
216
+ /**
217
+ * The config of the experience (JSON)
218
+ */
219
+ config: z.ZodDefault<z.ZodObject<{
220
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
221
+ traffic: z.ZodDefault<z.ZodNumber>;
222
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
223
+ baseline: z.ZodObject<{
224
+ id: z.ZodDefault<z.ZodString>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ id: string;
227
+ }, {
228
+ id?: string | undefined;
229
+ }>;
230
+ variants: z.ZodArray<z.ZodObject<{
231
+ id: z.ZodDefault<z.ZodString>;
232
+ hidden: z.ZodDefault<z.ZodBoolean>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ id: string;
235
+ hidden: boolean;
236
+ }, {
237
+ id?: string | undefined;
238
+ hidden?: boolean | undefined;
239
+ }>, "many">;
240
+ }, "strip", z.ZodTypeAny, {
241
+ baseline: {
242
+ id: string;
243
+ };
244
+ variants: {
245
+ id: string;
246
+ hidden: boolean;
247
+ }[];
248
+ }, {
249
+ baseline: {
250
+ id?: string | undefined;
251
+ };
252
+ variants: {
253
+ id?: string | undefined;
254
+ hidden?: boolean | undefined;
255
+ }[];
256
+ }>, "many">>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ distribution: number[];
259
+ traffic: number;
260
+ components: {
261
+ baseline: {
262
+ id: string;
263
+ };
264
+ variants: {
265
+ id: string;
266
+ hidden: boolean;
267
+ }[];
268
+ }[];
269
+ }, {
270
+ distribution?: number[] | undefined;
271
+ traffic?: number | undefined;
272
+ components?: {
273
+ baseline: {
274
+ id?: string | undefined;
275
+ };
276
+ variants: {
277
+ id?: string | undefined;
278
+ hidden?: boolean | undefined;
279
+ }[];
280
+ }[] | undefined;
281
+ }>>;
282
+ /**
283
+ * The audience of the experience (Audience)
284
+ */
285
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
286
+ id: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ id: string;
289
+ }, {
290
+ id: string;
291
+ }>>>;
292
+ /**
293
+ * All used variants of the experience (References to other Content Types)
294
+ */
295
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
296
+ id: z.ZodString;
297
+ }, "strip", z.ZodUnknown, {
298
+ [x: string]: unknown;
299
+ id: string;
300
+ }, {
301
+ [x: string]: unknown;
302
+ id: string;
303
+ }>, "many">, {
304
+ [x: string]: unknown;
305
+ id: string;
306
+ }[], unknown>>;
307
+ }, "passthrough", z.ZodTypeAny, {
308
+ audience?: {
309
+ id: string;
310
+ } | null | undefined;
311
+ id: string;
312
+ name: string;
313
+ type: string;
314
+ variants: {
315
+ [x: string]: unknown;
316
+ id: string;
317
+ }[];
318
+ config: {
319
+ distribution: number[];
320
+ traffic: number;
321
+ components: {
322
+ baseline: {
323
+ id: string;
324
+ };
325
+ variants: {
326
+ id: string;
327
+ hidden: boolean;
328
+ }[];
329
+ }[];
330
+ };
331
+ }, {
332
+ variants?: unknown;
333
+ config?: {
334
+ distribution?: number[] | undefined;
335
+ traffic?: number | undefined;
336
+ components?: {
337
+ baseline: {
338
+ id?: string | undefined;
339
+ };
340
+ variants: {
341
+ id?: string | undefined;
342
+ hidden?: boolean | undefined;
343
+ }[];
344
+ }[] | undefined;
345
+ } | undefined;
346
+ audience?: {
347
+ id: string;
348
+ } | null | undefined;
349
+ id: string;
350
+ name: string;
351
+ type: string;
352
+ }>;
353
+ augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.extendShape<{
354
+ id: z.ZodString;
355
+ /**
356
+ * The name of the experience (Short Text)
357
+ */
358
+ name: z.ZodString;
359
+ /**
360
+ * The type if the experience (nt_experiment | nt_personalization)
361
+ */
362
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
363
+ /**
364
+ * The config of the experience (JSON)
365
+ */
366
+ config: z.ZodDefault<z.ZodObject<{
367
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
368
+ traffic: z.ZodDefault<z.ZodNumber>;
369
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
370
+ baseline: z.ZodObject<{
371
+ id: z.ZodDefault<z.ZodString>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ id: string;
374
+ }, {
375
+ id?: string | undefined;
376
+ }>;
377
+ variants: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodDefault<z.ZodString>;
379
+ hidden: z.ZodDefault<z.ZodBoolean>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ id: string;
382
+ hidden: boolean;
383
+ }, {
384
+ id?: string | undefined;
385
+ hidden?: boolean | undefined;
386
+ }>, "many">;
387
+ }, "strip", z.ZodTypeAny, {
388
+ baseline: {
389
+ id: string;
390
+ };
391
+ variants: {
392
+ id: string;
393
+ hidden: boolean;
394
+ }[];
395
+ }, {
396
+ baseline: {
397
+ id?: string | undefined;
398
+ };
399
+ variants: {
400
+ id?: string | undefined;
401
+ hidden?: boolean | undefined;
402
+ }[];
403
+ }>, "many">>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ distribution: number[];
406
+ traffic: number;
407
+ components: {
408
+ baseline: {
409
+ id: string;
410
+ };
411
+ variants: {
412
+ id: string;
413
+ hidden: boolean;
414
+ }[];
415
+ }[];
416
+ }, {
417
+ distribution?: number[] | undefined;
418
+ traffic?: number | undefined;
419
+ components?: {
420
+ baseline: {
421
+ id?: string | undefined;
422
+ };
423
+ variants: {
424
+ id?: string | undefined;
425
+ hidden?: boolean | undefined;
426
+ }[];
427
+ }[] | undefined;
428
+ }>>;
429
+ /**
430
+ * The audience of the experience (Audience)
431
+ */
432
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
433
+ id: z.ZodString;
434
+ }, "strip", z.ZodTypeAny, {
435
+ id: string;
436
+ }, {
437
+ id: string;
438
+ }>>>;
439
+ /**
440
+ * All used variants of the experience (References to other Content Types)
441
+ */
442
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
443
+ id: z.ZodString;
444
+ }, "strip", z.ZodUnknown, {
445
+ [x: string]: unknown;
446
+ id: string;
447
+ }, {
448
+ [x: string]: unknown;
449
+ id: string;
450
+ }>, "many">, {
451
+ [x: string]: unknown;
452
+ id: string;
453
+ }[], unknown>>;
454
+ }, Augmentation>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.extendShape<{
455
+ id: z.ZodString;
456
+ /**
457
+ * The name of the experience (Short Text)
458
+ */
459
+ name: z.ZodString;
460
+ /**
461
+ * The type if the experience (nt_experiment | nt_personalization)
462
+ */
463
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
464
+ /**
465
+ * The config of the experience (JSON)
466
+ */
467
+ config: z.ZodDefault<z.ZodObject<{
468
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
469
+ traffic: z.ZodDefault<z.ZodNumber>;
470
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
471
+ baseline: z.ZodObject<{
472
+ id: z.ZodDefault<z.ZodString>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ id: string;
475
+ }, {
476
+ id?: string | undefined;
477
+ }>;
478
+ variants: z.ZodArray<z.ZodObject<{
479
+ id: z.ZodDefault<z.ZodString>;
480
+ hidden: z.ZodDefault<z.ZodBoolean>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ id: string;
483
+ hidden: boolean;
484
+ }, {
485
+ id?: string | undefined;
486
+ hidden?: boolean | undefined;
487
+ }>, "many">;
488
+ }, "strip", z.ZodTypeAny, {
489
+ baseline: {
490
+ id: string;
491
+ };
492
+ variants: {
493
+ id: string;
494
+ hidden: boolean;
495
+ }[];
496
+ }, {
497
+ baseline: {
498
+ id?: string | undefined;
499
+ };
500
+ variants: {
501
+ id?: string | undefined;
502
+ hidden?: boolean | undefined;
503
+ }[];
504
+ }>, "many">>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ distribution: number[];
507
+ traffic: number;
508
+ components: {
509
+ baseline: {
510
+ id: string;
511
+ };
512
+ variants: {
513
+ id: string;
514
+ hidden: boolean;
515
+ }[];
516
+ }[];
517
+ }, {
518
+ distribution?: number[] | undefined;
519
+ traffic?: number | undefined;
520
+ components?: {
521
+ baseline: {
522
+ id?: string | undefined;
523
+ };
524
+ variants: {
525
+ id?: string | undefined;
526
+ hidden?: boolean | undefined;
527
+ }[];
528
+ }[] | undefined;
529
+ }>>;
530
+ /**
531
+ * The audience of the experience (Audience)
532
+ */
533
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
534
+ id: z.ZodString;
535
+ }, "strip", z.ZodTypeAny, {
536
+ id: string;
537
+ }, {
538
+ id: string;
539
+ }>>>;
540
+ /**
541
+ * All used variants of the experience (References to other Content Types)
542
+ */
543
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
544
+ id: z.ZodString;
545
+ }, "strip", z.ZodUnknown, {
546
+ [x: string]: unknown;
547
+ id: string;
548
+ }, {
549
+ [x: string]: unknown;
550
+ id: string;
551
+ }>, "many">, {
552
+ [x: string]: unknown;
553
+ id: string;
554
+ }[], unknown>>;
555
+ }, Augmentation> extends infer T_3 extends z.ZodRawShape ? { [k_1 in keyof T_3]: z.extendShape<{
556
+ id: z.ZodString;
557
+ /**
558
+ * The name of the experience (Short Text)
559
+ */
560
+ name: z.ZodString;
561
+ /**
562
+ * The type if the experience (nt_experiment | nt_personalization)
563
+ */
564
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
565
+ /**
566
+ * The config of the experience (JSON)
567
+ */
568
+ config: z.ZodDefault<z.ZodObject<{
569
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
570
+ traffic: z.ZodDefault<z.ZodNumber>;
571
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
572
+ baseline: z.ZodObject<{
573
+ id: z.ZodDefault<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ id: string;
576
+ }, {
577
+ id?: string | undefined;
578
+ }>;
579
+ variants: z.ZodArray<z.ZodObject<{
580
+ id: z.ZodDefault<z.ZodString>;
581
+ hidden: z.ZodDefault<z.ZodBoolean>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ id: string;
584
+ hidden: boolean;
585
+ }, {
586
+ id?: string | undefined;
587
+ hidden?: boolean | undefined;
588
+ }>, "many">;
589
+ }, "strip", z.ZodTypeAny, {
590
+ baseline: {
591
+ id: string;
592
+ };
593
+ variants: {
594
+ id: string;
595
+ hidden: boolean;
596
+ }[];
597
+ }, {
598
+ baseline: {
599
+ id?: string | undefined;
600
+ };
601
+ variants: {
602
+ id?: string | undefined;
603
+ hidden?: boolean | undefined;
604
+ }[];
605
+ }>, "many">>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ distribution: number[];
608
+ traffic: number;
609
+ components: {
610
+ baseline: {
611
+ id: string;
612
+ };
613
+ variants: {
614
+ id: string;
615
+ hidden: boolean;
616
+ }[];
617
+ }[];
618
+ }, {
619
+ distribution?: number[] | undefined;
620
+ traffic?: number | undefined;
621
+ components?: {
622
+ baseline: {
623
+ id?: string | undefined;
624
+ };
625
+ variants: {
626
+ id?: string | undefined;
627
+ hidden?: boolean | undefined;
628
+ }[];
629
+ }[] | undefined;
630
+ }>>;
631
+ /**
632
+ * The audience of the experience (Audience)
633
+ */
634
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
635
+ id: z.ZodString;
636
+ }, "strip", z.ZodTypeAny, {
637
+ id: string;
638
+ }, {
639
+ id: string;
640
+ }>>>;
641
+ /**
642
+ * All used variants of the experience (References to other Content Types)
643
+ */
644
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
645
+ id: z.ZodString;
646
+ }, "strip", z.ZodUnknown, {
647
+ [x: string]: unknown;
648
+ id: string;
649
+ }, {
650
+ [x: string]: unknown;
651
+ id: string;
652
+ }>, "many">, {
653
+ [x: string]: unknown;
654
+ id: string;
655
+ }[], unknown>>;
656
+ }, Augmentation>[k_1]["_output"]; } : never> extends infer T_2 extends object ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks<z.extendShape<{
657
+ id: z.ZodString;
658
+ /**
659
+ * The name of the experience (Short Text)
660
+ */
661
+ name: z.ZodString;
662
+ /**
663
+ * The type if the experience (nt_experiment | nt_personalization)
664
+ */
665
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
666
+ /**
667
+ * The config of the experience (JSON)
668
+ */
669
+ config: z.ZodDefault<z.ZodObject<{
670
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
671
+ traffic: z.ZodDefault<z.ZodNumber>;
672
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
673
+ baseline: z.ZodObject<{
674
+ id: z.ZodDefault<z.ZodString>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ id: string;
677
+ }, {
678
+ id?: string | undefined;
679
+ }>;
680
+ variants: z.ZodArray<z.ZodObject<{
681
+ id: z.ZodDefault<z.ZodString>;
682
+ hidden: z.ZodDefault<z.ZodBoolean>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ id: string;
685
+ hidden: boolean;
686
+ }, {
687
+ id?: string | undefined;
688
+ hidden?: boolean | undefined;
689
+ }>, "many">;
690
+ }, "strip", z.ZodTypeAny, {
691
+ baseline: {
692
+ id: string;
693
+ };
694
+ variants: {
695
+ id: string;
696
+ hidden: boolean;
697
+ }[];
698
+ }, {
699
+ baseline: {
700
+ id?: string | undefined;
701
+ };
702
+ variants: {
703
+ id?: string | undefined;
704
+ hidden?: boolean | undefined;
705
+ }[];
706
+ }>, "many">>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ distribution: number[];
709
+ traffic: number;
710
+ components: {
711
+ baseline: {
712
+ id: string;
713
+ };
714
+ variants: {
715
+ id: string;
716
+ hidden: boolean;
717
+ }[];
718
+ }[];
719
+ }, {
720
+ distribution?: number[] | undefined;
721
+ traffic?: number | undefined;
722
+ components?: {
723
+ baseline: {
724
+ id?: string | undefined;
725
+ };
726
+ variants: {
727
+ id?: string | undefined;
728
+ hidden?: boolean | undefined;
729
+ }[];
730
+ }[] | undefined;
731
+ }>>;
732
+ /**
733
+ * The audience of the experience (Audience)
734
+ */
735
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
736
+ id: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ id: string;
739
+ }, {
740
+ id: string;
741
+ }>>>;
742
+ /**
743
+ * All used variants of the experience (References to other Content Types)
744
+ */
745
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
746
+ id: z.ZodString;
747
+ }, "strip", z.ZodUnknown, {
748
+ [x: string]: unknown;
749
+ id: string;
750
+ }, {
751
+ [x: string]: unknown;
752
+ id: string;
753
+ }>, "many">, {
754
+ [x: string]: unknown;
755
+ id: string;
756
+ }[], unknown>>;
757
+ }, Augmentation> extends infer T_3 extends z.ZodRawShape ? { [k_1 in keyof T_3]: z.extendShape<{
758
+ id: z.ZodString;
759
+ /**
760
+ * The name of the experience (Short Text)
761
+ */
762
+ name: z.ZodString;
763
+ /**
764
+ * The type if the experience (nt_experiment | nt_personalization)
765
+ */
766
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
767
+ /**
768
+ * The config of the experience (JSON)
769
+ */
770
+ config: z.ZodDefault<z.ZodObject<{
771
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
772
+ traffic: z.ZodDefault<z.ZodNumber>;
773
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
774
+ baseline: z.ZodObject<{
775
+ id: z.ZodDefault<z.ZodString>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ id: string;
778
+ }, {
779
+ id?: string | undefined;
780
+ }>;
781
+ variants: z.ZodArray<z.ZodObject<{
782
+ id: z.ZodDefault<z.ZodString>;
783
+ hidden: z.ZodDefault<z.ZodBoolean>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ id: string;
786
+ hidden: boolean;
787
+ }, {
788
+ id?: string | undefined;
789
+ hidden?: boolean | undefined;
790
+ }>, "many">;
791
+ }, "strip", z.ZodTypeAny, {
792
+ baseline: {
793
+ id: string;
794
+ };
795
+ variants: {
796
+ id: string;
797
+ hidden: boolean;
798
+ }[];
799
+ }, {
800
+ baseline: {
801
+ id?: string | undefined;
802
+ };
803
+ variants: {
804
+ id?: string | undefined;
805
+ hidden?: boolean | undefined;
806
+ }[];
807
+ }>, "many">>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ distribution: number[];
810
+ traffic: number;
811
+ components: {
812
+ baseline: {
813
+ id: string;
814
+ };
815
+ variants: {
816
+ id: string;
817
+ hidden: boolean;
818
+ }[];
819
+ }[];
820
+ }, {
821
+ distribution?: number[] | undefined;
822
+ traffic?: number | undefined;
823
+ components?: {
824
+ baseline: {
825
+ id?: string | undefined;
826
+ };
827
+ variants: {
828
+ id?: string | undefined;
829
+ hidden?: boolean | undefined;
830
+ }[];
831
+ }[] | undefined;
832
+ }>>;
833
+ /**
834
+ * The audience of the experience (Audience)
835
+ */
836
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
837
+ id: z.ZodString;
838
+ }, "strip", z.ZodTypeAny, {
839
+ id: string;
840
+ }, {
841
+ id: string;
842
+ }>>>;
843
+ /**
844
+ * All used variants of the experience (References to other Content Types)
845
+ */
846
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
847
+ id: z.ZodString;
848
+ }, "strip", z.ZodUnknown, {
849
+ [x: string]: unknown;
850
+ id: string;
851
+ }, {
852
+ [x: string]: unknown;
853
+ id: string;
854
+ }>, "many">, {
855
+ [x: string]: unknown;
856
+ id: string;
857
+ }[], unknown>>;
858
+ }, Augmentation>[k_1]["_output"]; } : never>[k]; } : never, z.objectUtil.addQuestionMarks<z.extendShape<{
859
+ id: z.ZodString;
860
+ /**
861
+ * The name of the experience (Short Text)
862
+ */
863
+ name: z.ZodString;
864
+ /**
865
+ * The type if the experience (nt_experiment | nt_personalization)
866
+ */
867
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
868
+ /**
869
+ * The config of the experience (JSON)
870
+ */
871
+ config: z.ZodDefault<z.ZodObject<{
872
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
873
+ traffic: z.ZodDefault<z.ZodNumber>;
874
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
875
+ baseline: z.ZodObject<{
876
+ id: z.ZodDefault<z.ZodString>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ id: string;
879
+ }, {
880
+ id?: string | undefined;
881
+ }>;
882
+ variants: z.ZodArray<z.ZodObject<{
883
+ id: z.ZodDefault<z.ZodString>;
884
+ hidden: z.ZodDefault<z.ZodBoolean>;
885
+ }, "strip", z.ZodTypeAny, {
886
+ id: string;
887
+ hidden: boolean;
888
+ }, {
889
+ id?: string | undefined;
890
+ hidden?: boolean | undefined;
891
+ }>, "many">;
892
+ }, "strip", z.ZodTypeAny, {
893
+ baseline: {
894
+ id: string;
895
+ };
896
+ variants: {
897
+ id: string;
898
+ hidden: boolean;
899
+ }[];
900
+ }, {
901
+ baseline: {
902
+ id?: string | undefined;
903
+ };
904
+ variants: {
905
+ id?: string | undefined;
906
+ hidden?: boolean | undefined;
907
+ }[];
908
+ }>, "many">>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ distribution: number[];
911
+ traffic: number;
912
+ components: {
913
+ baseline: {
914
+ id: string;
915
+ };
916
+ variants: {
917
+ id: string;
918
+ hidden: boolean;
919
+ }[];
920
+ }[];
921
+ }, {
922
+ distribution?: number[] | undefined;
923
+ traffic?: number | undefined;
924
+ components?: {
925
+ baseline: {
926
+ id?: string | undefined;
927
+ };
928
+ variants: {
929
+ id?: string | undefined;
930
+ hidden?: boolean | undefined;
931
+ }[];
932
+ }[] | undefined;
933
+ }>>;
934
+ /**
935
+ * The audience of the experience (Audience)
936
+ */
937
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
938
+ id: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ id: string;
941
+ }, {
942
+ id: string;
943
+ }>>>;
944
+ /**
945
+ * All used variants of the experience (References to other Content Types)
946
+ */
947
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
948
+ id: z.ZodString;
949
+ }, "strip", z.ZodUnknown, {
950
+ [x: string]: unknown;
951
+ id: string;
952
+ }, {
953
+ [x: string]: unknown;
954
+ id: string;
955
+ }>, "many">, {
956
+ [x: string]: unknown;
957
+ id: string;
958
+ }[], unknown>>;
959
+ }, Augmentation> extends infer T_5 extends z.ZodRawShape ? { [k_3 in keyof T_5]: z.extendShape<{
960
+ id: z.ZodString;
961
+ /**
962
+ * The name of the experience (Short Text)
963
+ */
964
+ name: z.ZodString;
965
+ /**
966
+ * The type if the experience (nt_experiment | nt_personalization)
967
+ */
968
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
969
+ /**
970
+ * The config of the experience (JSON)
971
+ */
972
+ config: z.ZodDefault<z.ZodObject<{
973
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
974
+ traffic: z.ZodDefault<z.ZodNumber>;
975
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
976
+ baseline: z.ZodObject<{
977
+ id: z.ZodDefault<z.ZodString>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ id: string;
980
+ }, {
981
+ id?: string | undefined;
982
+ }>;
983
+ variants: z.ZodArray<z.ZodObject<{
984
+ id: z.ZodDefault<z.ZodString>;
985
+ hidden: z.ZodDefault<z.ZodBoolean>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ id: string;
988
+ hidden: boolean;
989
+ }, {
990
+ id?: string | undefined;
991
+ hidden?: boolean | undefined;
992
+ }>, "many">;
993
+ }, "strip", z.ZodTypeAny, {
994
+ baseline: {
995
+ id: string;
996
+ };
997
+ variants: {
998
+ id: string;
999
+ hidden: boolean;
1000
+ }[];
1001
+ }, {
1002
+ baseline: {
1003
+ id?: string | undefined;
1004
+ };
1005
+ variants: {
1006
+ id?: string | undefined;
1007
+ hidden?: boolean | undefined;
1008
+ }[];
1009
+ }>, "many">>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ distribution: number[];
1012
+ traffic: number;
1013
+ components: {
1014
+ baseline: {
1015
+ id: string;
1016
+ };
1017
+ variants: {
1018
+ id: string;
1019
+ hidden: boolean;
1020
+ }[];
1021
+ }[];
1022
+ }, {
1023
+ distribution?: number[] | undefined;
1024
+ traffic?: number | undefined;
1025
+ components?: {
1026
+ baseline: {
1027
+ id?: string | undefined;
1028
+ };
1029
+ variants: {
1030
+ id?: string | undefined;
1031
+ hidden?: boolean | undefined;
1032
+ }[];
1033
+ }[] | undefined;
1034
+ }>>;
1035
+ /**
1036
+ * The audience of the experience (Audience)
1037
+ */
1038
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1039
+ id: z.ZodString;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ id: string;
1042
+ }, {
1043
+ id: string;
1044
+ }>>>;
1045
+ /**
1046
+ * All used variants of the experience (References to other Content Types)
1047
+ */
1048
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1049
+ id: z.ZodString;
1050
+ }, "strip", z.ZodUnknown, {
1051
+ [x: string]: unknown;
1052
+ id: string;
1053
+ }, {
1054
+ [x: string]: unknown;
1055
+ id: string;
1056
+ }>, "many">, {
1057
+ [x: string]: unknown;
1058
+ id: string;
1059
+ }[], unknown>>;
1060
+ }, Augmentation>[k_3]["_input"]; } : never> extends infer T_4 extends object ? { [k_2 in keyof T_4]: z.objectUtil.addQuestionMarks<z.extendShape<{
1061
+ id: z.ZodString;
1062
+ /**
1063
+ * The name of the experience (Short Text)
1064
+ */
1065
+ name: z.ZodString;
1066
+ /**
1067
+ * The type if the experience (nt_experiment | nt_personalization)
1068
+ */
1069
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1070
+ /**
1071
+ * The config of the experience (JSON)
1072
+ */
1073
+ config: z.ZodDefault<z.ZodObject<{
1074
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1075
+ traffic: z.ZodDefault<z.ZodNumber>;
1076
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1077
+ baseline: z.ZodObject<{
1078
+ id: z.ZodDefault<z.ZodString>;
1079
+ }, "strip", z.ZodTypeAny, {
1080
+ id: string;
1081
+ }, {
1082
+ id?: string | undefined;
1083
+ }>;
1084
+ variants: z.ZodArray<z.ZodObject<{
1085
+ id: z.ZodDefault<z.ZodString>;
1086
+ hidden: z.ZodDefault<z.ZodBoolean>;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ id: string;
1089
+ hidden: boolean;
1090
+ }, {
1091
+ id?: string | undefined;
1092
+ hidden?: boolean | undefined;
1093
+ }>, "many">;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ baseline: {
1096
+ id: string;
1097
+ };
1098
+ variants: {
1099
+ id: string;
1100
+ hidden: boolean;
1101
+ }[];
1102
+ }, {
1103
+ baseline: {
1104
+ id?: string | undefined;
1105
+ };
1106
+ variants: {
1107
+ id?: string | undefined;
1108
+ hidden?: boolean | undefined;
1109
+ }[];
1110
+ }>, "many">>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ distribution: number[];
1113
+ traffic: number;
1114
+ components: {
1115
+ baseline: {
1116
+ id: string;
1117
+ };
1118
+ variants: {
1119
+ id: string;
1120
+ hidden: boolean;
1121
+ }[];
1122
+ }[];
1123
+ }, {
1124
+ distribution?: number[] | undefined;
1125
+ traffic?: number | undefined;
1126
+ components?: {
1127
+ baseline: {
1128
+ id?: string | undefined;
1129
+ };
1130
+ variants: {
1131
+ id?: string | undefined;
1132
+ hidden?: boolean | undefined;
1133
+ }[];
1134
+ }[] | undefined;
1135
+ }>>;
1136
+ /**
1137
+ * The audience of the experience (Audience)
1138
+ */
1139
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1140
+ id: z.ZodString;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ id: string;
1143
+ }, {
1144
+ id: string;
1145
+ }>>>;
1146
+ /**
1147
+ * All used variants of the experience (References to other Content Types)
1148
+ */
1149
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1150
+ id: z.ZodString;
1151
+ }, "strip", z.ZodUnknown, {
1152
+ [x: string]: unknown;
1153
+ id: string;
1154
+ }, {
1155
+ [x: string]: unknown;
1156
+ id: string;
1157
+ }>, "many">, {
1158
+ [x: string]: unknown;
1159
+ id: string;
1160
+ }[], unknown>>;
1161
+ }, Augmentation> extends infer T_5 extends z.ZodRawShape ? { [k_3 in keyof T_5]: z.extendShape<{
1162
+ id: z.ZodString;
1163
+ /**
1164
+ * The name of the experience (Short Text)
1165
+ */
1166
+ name: z.ZodString;
1167
+ /**
1168
+ * The type if the experience (nt_experiment | nt_personalization)
1169
+ */
1170
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1171
+ /**
1172
+ * The config of the experience (JSON)
1173
+ */
1174
+ config: z.ZodDefault<z.ZodObject<{
1175
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1176
+ traffic: z.ZodDefault<z.ZodNumber>;
1177
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1178
+ baseline: z.ZodObject<{
1179
+ id: z.ZodDefault<z.ZodString>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ id: string;
1182
+ }, {
1183
+ id?: string | undefined;
1184
+ }>;
1185
+ variants: z.ZodArray<z.ZodObject<{
1186
+ id: z.ZodDefault<z.ZodString>;
1187
+ hidden: z.ZodDefault<z.ZodBoolean>;
1188
+ }, "strip", z.ZodTypeAny, {
1189
+ id: string;
1190
+ hidden: boolean;
1191
+ }, {
1192
+ id?: string | undefined;
1193
+ hidden?: boolean | undefined;
1194
+ }>, "many">;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ baseline: {
1197
+ id: string;
1198
+ };
1199
+ variants: {
1200
+ id: string;
1201
+ hidden: boolean;
1202
+ }[];
1203
+ }, {
1204
+ baseline: {
1205
+ id?: string | undefined;
1206
+ };
1207
+ variants: {
1208
+ id?: string | undefined;
1209
+ hidden?: boolean | undefined;
1210
+ }[];
1211
+ }>, "many">>;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ distribution: number[];
1214
+ traffic: number;
1215
+ components: {
1216
+ baseline: {
1217
+ id: string;
1218
+ };
1219
+ variants: {
1220
+ id: string;
1221
+ hidden: boolean;
1222
+ }[];
1223
+ }[];
1224
+ }, {
1225
+ distribution?: number[] | undefined;
1226
+ traffic?: number | undefined;
1227
+ components?: {
1228
+ baseline: {
1229
+ id?: string | undefined;
1230
+ };
1231
+ variants: {
1232
+ id?: string | undefined;
1233
+ hidden?: boolean | undefined;
1234
+ }[];
1235
+ }[] | undefined;
1236
+ }>>;
1237
+ /**
1238
+ * The audience of the experience (Audience)
1239
+ */
1240
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1241
+ id: z.ZodString;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ id: string;
1244
+ }, {
1245
+ id: string;
1246
+ }>>>;
1247
+ /**
1248
+ * All used variants of the experience (References to other Content Types)
1249
+ */
1250
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1251
+ id: z.ZodString;
1252
+ }, "strip", z.ZodUnknown, {
1253
+ [x: string]: unknown;
1254
+ id: string;
1255
+ }, {
1256
+ [x: string]: unknown;
1257
+ id: string;
1258
+ }>, "many">, {
1259
+ [x: string]: unknown;
1260
+ id: string;
1261
+ }[], unknown>>;
1262
+ }, Augmentation>[k_3]["_input"]; } : never>[k_2]; } : never>;
1263
+ extend: <Augmentation_1 extends z.ZodRawShape>(augmentation: Augmentation_1) => z.ZodObject<z.extendShape<{
1264
+ id: z.ZodString;
1265
+ /**
1266
+ * The name of the experience (Short Text)
1267
+ */
1268
+ name: z.ZodString;
1269
+ /**
1270
+ * The type if the experience (nt_experiment | nt_personalization)
1271
+ */
1272
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1273
+ /**
1274
+ * The config of the experience (JSON)
1275
+ */
1276
+ config: z.ZodDefault<z.ZodObject<{
1277
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1278
+ traffic: z.ZodDefault<z.ZodNumber>;
1279
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1280
+ baseline: z.ZodObject<{
1281
+ id: z.ZodDefault<z.ZodString>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ id: string;
1284
+ }, {
1285
+ id?: string | undefined;
1286
+ }>;
1287
+ variants: z.ZodArray<z.ZodObject<{
1288
+ id: z.ZodDefault<z.ZodString>;
1289
+ hidden: z.ZodDefault<z.ZodBoolean>;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ id: string;
1292
+ hidden: boolean;
1293
+ }, {
1294
+ id?: string | undefined;
1295
+ hidden?: boolean | undefined;
1296
+ }>, "many">;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ baseline: {
1299
+ id: string;
1300
+ };
1301
+ variants: {
1302
+ id: string;
1303
+ hidden: boolean;
1304
+ }[];
1305
+ }, {
1306
+ baseline: {
1307
+ id?: string | undefined;
1308
+ };
1309
+ variants: {
1310
+ id?: string | undefined;
1311
+ hidden?: boolean | undefined;
1312
+ }[];
1313
+ }>, "many">>;
1314
+ }, "strip", z.ZodTypeAny, {
1315
+ distribution: number[];
1316
+ traffic: number;
1317
+ components: {
1318
+ baseline: {
1319
+ id: string;
1320
+ };
1321
+ variants: {
1322
+ id: string;
1323
+ hidden: boolean;
1324
+ }[];
1325
+ }[];
1326
+ }, {
1327
+ distribution?: number[] | undefined;
1328
+ traffic?: number | undefined;
1329
+ components?: {
1330
+ baseline: {
1331
+ id?: string | undefined;
1332
+ };
1333
+ variants: {
1334
+ id?: string | undefined;
1335
+ hidden?: boolean | undefined;
1336
+ }[];
1337
+ }[] | undefined;
1338
+ }>>;
1339
+ /**
1340
+ * The audience of the experience (Audience)
1341
+ */
1342
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1343
+ id: z.ZodString;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ id: string;
1346
+ }, {
1347
+ id: string;
1348
+ }>>>;
1349
+ /**
1350
+ * All used variants of the experience (References to other Content Types)
1351
+ */
1352
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1353
+ id: z.ZodString;
1354
+ }, "strip", z.ZodUnknown, {
1355
+ [x: string]: unknown;
1356
+ id: string;
1357
+ }, {
1358
+ [x: string]: unknown;
1359
+ id: string;
1360
+ }>, "many">, {
1361
+ [x: string]: unknown;
1362
+ id: string;
1363
+ }[], unknown>>;
1364
+ }, Augmentation_1>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.extendShape<{
1365
+ id: z.ZodString;
1366
+ /**
1367
+ * The name of the experience (Short Text)
1368
+ */
1369
+ name: z.ZodString;
1370
+ /**
1371
+ * The type if the experience (nt_experiment | nt_personalization)
1372
+ */
1373
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1374
+ /**
1375
+ * The config of the experience (JSON)
1376
+ */
1377
+ config: z.ZodDefault<z.ZodObject<{
1378
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1379
+ traffic: z.ZodDefault<z.ZodNumber>;
1380
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1381
+ baseline: z.ZodObject<{
1382
+ id: z.ZodDefault<z.ZodString>;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ id: string;
1385
+ }, {
1386
+ id?: string | undefined;
1387
+ }>;
1388
+ variants: z.ZodArray<z.ZodObject<{
1389
+ id: z.ZodDefault<z.ZodString>;
1390
+ hidden: z.ZodDefault<z.ZodBoolean>;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ id: string;
1393
+ hidden: boolean;
1394
+ }, {
1395
+ id?: string | undefined;
1396
+ hidden?: boolean | undefined;
1397
+ }>, "many">;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ baseline: {
1400
+ id: string;
1401
+ };
1402
+ variants: {
1403
+ id: string;
1404
+ hidden: boolean;
1405
+ }[];
1406
+ }, {
1407
+ baseline: {
1408
+ id?: string | undefined;
1409
+ };
1410
+ variants: {
1411
+ id?: string | undefined;
1412
+ hidden?: boolean | undefined;
1413
+ }[];
1414
+ }>, "many">>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ distribution: number[];
1417
+ traffic: number;
1418
+ components: {
1419
+ baseline: {
1420
+ id: string;
1421
+ };
1422
+ variants: {
1423
+ id: string;
1424
+ hidden: boolean;
1425
+ }[];
1426
+ }[];
1427
+ }, {
1428
+ distribution?: number[] | undefined;
1429
+ traffic?: number | undefined;
1430
+ components?: {
1431
+ baseline: {
1432
+ id?: string | undefined;
1433
+ };
1434
+ variants: {
1435
+ id?: string | undefined;
1436
+ hidden?: boolean | undefined;
1437
+ }[];
1438
+ }[] | undefined;
1439
+ }>>;
1440
+ /**
1441
+ * The audience of the experience (Audience)
1442
+ */
1443
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1444
+ id: z.ZodString;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ id: string;
1447
+ }, {
1448
+ id: string;
1449
+ }>>>;
1450
+ /**
1451
+ * All used variants of the experience (References to other Content Types)
1452
+ */
1453
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1454
+ id: z.ZodString;
1455
+ }, "strip", z.ZodUnknown, {
1456
+ [x: string]: unknown;
1457
+ id: string;
1458
+ }, {
1459
+ [x: string]: unknown;
1460
+ id: string;
1461
+ }>, "many">, {
1462
+ [x: string]: unknown;
1463
+ id: string;
1464
+ }[], unknown>>;
1465
+ }, Augmentation_1> extends infer T_7 extends z.ZodRawShape ? { [k_5 in keyof T_7]: z.extendShape<{
1466
+ id: z.ZodString;
1467
+ /**
1468
+ * The name of the experience (Short Text)
1469
+ */
1470
+ name: z.ZodString;
1471
+ /**
1472
+ * The type if the experience (nt_experiment | nt_personalization)
1473
+ */
1474
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1475
+ /**
1476
+ * The config of the experience (JSON)
1477
+ */
1478
+ config: z.ZodDefault<z.ZodObject<{
1479
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1480
+ traffic: z.ZodDefault<z.ZodNumber>;
1481
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1482
+ baseline: z.ZodObject<{
1483
+ id: z.ZodDefault<z.ZodString>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ id: string;
1486
+ }, {
1487
+ id?: string | undefined;
1488
+ }>;
1489
+ variants: z.ZodArray<z.ZodObject<{
1490
+ id: z.ZodDefault<z.ZodString>;
1491
+ hidden: z.ZodDefault<z.ZodBoolean>;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ id: string;
1494
+ hidden: boolean;
1495
+ }, {
1496
+ id?: string | undefined;
1497
+ hidden?: boolean | undefined;
1498
+ }>, "many">;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ baseline: {
1501
+ id: string;
1502
+ };
1503
+ variants: {
1504
+ id: string;
1505
+ hidden: boolean;
1506
+ }[];
1507
+ }, {
1508
+ baseline: {
1509
+ id?: string | undefined;
1510
+ };
1511
+ variants: {
1512
+ id?: string | undefined;
1513
+ hidden?: boolean | undefined;
1514
+ }[];
1515
+ }>, "many">>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ distribution: number[];
1518
+ traffic: number;
1519
+ components: {
1520
+ baseline: {
1521
+ id: string;
1522
+ };
1523
+ variants: {
1524
+ id: string;
1525
+ hidden: boolean;
1526
+ }[];
1527
+ }[];
1528
+ }, {
1529
+ distribution?: number[] | undefined;
1530
+ traffic?: number | undefined;
1531
+ components?: {
1532
+ baseline: {
1533
+ id?: string | undefined;
1534
+ };
1535
+ variants: {
1536
+ id?: string | undefined;
1537
+ hidden?: boolean | undefined;
1538
+ }[];
1539
+ }[] | undefined;
1540
+ }>>;
1541
+ /**
1542
+ * The audience of the experience (Audience)
1543
+ */
1544
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1545
+ id: z.ZodString;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ id: string;
1548
+ }, {
1549
+ id: string;
1550
+ }>>>;
1551
+ /**
1552
+ * All used variants of the experience (References to other Content Types)
1553
+ */
1554
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1555
+ id: z.ZodString;
1556
+ }, "strip", z.ZodUnknown, {
1557
+ [x: string]: unknown;
1558
+ id: string;
1559
+ }, {
1560
+ [x: string]: unknown;
1561
+ id: string;
1562
+ }>, "many">, {
1563
+ [x: string]: unknown;
1564
+ id: string;
1565
+ }[], unknown>>;
1566
+ }, Augmentation_1>[k_5]["_output"]; } : never> extends infer T_6 extends object ? { [k_4 in keyof T_6]: z.objectUtil.addQuestionMarks<z.extendShape<{
1567
+ id: z.ZodString;
1568
+ /**
1569
+ * The name of the experience (Short Text)
1570
+ */
1571
+ name: z.ZodString;
1572
+ /**
1573
+ * The type if the experience (nt_experiment | nt_personalization)
1574
+ */
1575
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1576
+ /**
1577
+ * The config of the experience (JSON)
1578
+ */
1579
+ config: z.ZodDefault<z.ZodObject<{
1580
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1581
+ traffic: z.ZodDefault<z.ZodNumber>;
1582
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1583
+ baseline: z.ZodObject<{
1584
+ id: z.ZodDefault<z.ZodString>;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ id: string;
1587
+ }, {
1588
+ id?: string | undefined;
1589
+ }>;
1590
+ variants: z.ZodArray<z.ZodObject<{
1591
+ id: z.ZodDefault<z.ZodString>;
1592
+ hidden: z.ZodDefault<z.ZodBoolean>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ id: string;
1595
+ hidden: boolean;
1596
+ }, {
1597
+ id?: string | undefined;
1598
+ hidden?: boolean | undefined;
1599
+ }>, "many">;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ baseline: {
1602
+ id: string;
1603
+ };
1604
+ variants: {
1605
+ id: string;
1606
+ hidden: boolean;
1607
+ }[];
1608
+ }, {
1609
+ baseline: {
1610
+ id?: string | undefined;
1611
+ };
1612
+ variants: {
1613
+ id?: string | undefined;
1614
+ hidden?: boolean | undefined;
1615
+ }[];
1616
+ }>, "many">>;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ distribution: number[];
1619
+ traffic: number;
1620
+ components: {
1621
+ baseline: {
1622
+ id: string;
1623
+ };
1624
+ variants: {
1625
+ id: string;
1626
+ hidden: boolean;
1627
+ }[];
1628
+ }[];
1629
+ }, {
1630
+ distribution?: number[] | undefined;
1631
+ traffic?: number | undefined;
1632
+ components?: {
1633
+ baseline: {
1634
+ id?: string | undefined;
1635
+ };
1636
+ variants: {
1637
+ id?: string | undefined;
1638
+ hidden?: boolean | undefined;
1639
+ }[];
1640
+ }[] | undefined;
1641
+ }>>;
1642
+ /**
1643
+ * The audience of the experience (Audience)
1644
+ */
1645
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1646
+ id: z.ZodString;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ id: string;
1649
+ }, {
1650
+ id: string;
1651
+ }>>>;
1652
+ /**
1653
+ * All used variants of the experience (References to other Content Types)
1654
+ */
1655
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1656
+ id: z.ZodString;
1657
+ }, "strip", z.ZodUnknown, {
1658
+ [x: string]: unknown;
1659
+ id: string;
1660
+ }, {
1661
+ [x: string]: unknown;
1662
+ id: string;
1663
+ }>, "many">, {
1664
+ [x: string]: unknown;
1665
+ id: string;
1666
+ }[], unknown>>;
1667
+ }, Augmentation_1> extends infer T_7 extends z.ZodRawShape ? { [k_5 in keyof T_7]: z.extendShape<{
1668
+ id: z.ZodString;
1669
+ /**
1670
+ * The name of the experience (Short Text)
1671
+ */
1672
+ name: z.ZodString;
1673
+ /**
1674
+ * The type if the experience (nt_experiment | nt_personalization)
1675
+ */
1676
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1677
+ /**
1678
+ * The config of the experience (JSON)
1679
+ */
1680
+ config: z.ZodDefault<z.ZodObject<{
1681
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1682
+ traffic: z.ZodDefault<z.ZodNumber>;
1683
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1684
+ baseline: z.ZodObject<{
1685
+ id: z.ZodDefault<z.ZodString>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ id: string;
1688
+ }, {
1689
+ id?: string | undefined;
1690
+ }>;
1691
+ variants: z.ZodArray<z.ZodObject<{
1692
+ id: z.ZodDefault<z.ZodString>;
1693
+ hidden: z.ZodDefault<z.ZodBoolean>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ id: string;
1696
+ hidden: boolean;
1697
+ }, {
1698
+ id?: string | undefined;
1699
+ hidden?: boolean | undefined;
1700
+ }>, "many">;
1701
+ }, "strip", z.ZodTypeAny, {
1702
+ baseline: {
1703
+ id: string;
1704
+ };
1705
+ variants: {
1706
+ id: string;
1707
+ hidden: boolean;
1708
+ }[];
1709
+ }, {
1710
+ baseline: {
1711
+ id?: string | undefined;
1712
+ };
1713
+ variants: {
1714
+ id?: string | undefined;
1715
+ hidden?: boolean | undefined;
1716
+ }[];
1717
+ }>, "many">>;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ distribution: number[];
1720
+ traffic: number;
1721
+ components: {
1722
+ baseline: {
1723
+ id: string;
1724
+ };
1725
+ variants: {
1726
+ id: string;
1727
+ hidden: boolean;
1728
+ }[];
1729
+ }[];
1730
+ }, {
1731
+ distribution?: number[] | undefined;
1732
+ traffic?: number | undefined;
1733
+ components?: {
1734
+ baseline: {
1735
+ id?: string | undefined;
1736
+ };
1737
+ variants: {
1738
+ id?: string | undefined;
1739
+ hidden?: boolean | undefined;
1740
+ }[];
1741
+ }[] | undefined;
1742
+ }>>;
1743
+ /**
1744
+ * The audience of the experience (Audience)
1745
+ */
1746
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1747
+ id: z.ZodString;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ id: string;
1750
+ }, {
1751
+ id: string;
1752
+ }>>>;
1753
+ /**
1754
+ * All used variants of the experience (References to other Content Types)
1755
+ */
1756
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1757
+ id: z.ZodString;
1758
+ }, "strip", z.ZodUnknown, {
1759
+ [x: string]: unknown;
1760
+ id: string;
1761
+ }, {
1762
+ [x: string]: unknown;
1763
+ id: string;
1764
+ }>, "many">, {
1765
+ [x: string]: unknown;
1766
+ id: string;
1767
+ }[], unknown>>;
1768
+ }, Augmentation_1>[k_5]["_output"]; } : never>[k_4]; } : never, z.objectUtil.addQuestionMarks<z.extendShape<{
1769
+ id: z.ZodString;
1770
+ /**
1771
+ * The name of the experience (Short Text)
1772
+ */
1773
+ name: z.ZodString;
1774
+ /**
1775
+ * The type if the experience (nt_experiment | nt_personalization)
1776
+ */
1777
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1778
+ /**
1779
+ * The config of the experience (JSON)
1780
+ */
1781
+ config: z.ZodDefault<z.ZodObject<{
1782
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1783
+ traffic: z.ZodDefault<z.ZodNumber>;
1784
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1785
+ baseline: z.ZodObject<{
1786
+ id: z.ZodDefault<z.ZodString>;
1787
+ }, "strip", z.ZodTypeAny, {
1788
+ id: string;
1789
+ }, {
1790
+ id?: string | undefined;
1791
+ }>;
1792
+ variants: z.ZodArray<z.ZodObject<{
1793
+ id: z.ZodDefault<z.ZodString>;
1794
+ hidden: z.ZodDefault<z.ZodBoolean>;
1795
+ }, "strip", z.ZodTypeAny, {
1796
+ id: string;
1797
+ hidden: boolean;
1798
+ }, {
1799
+ id?: string | undefined;
1800
+ hidden?: boolean | undefined;
1801
+ }>, "many">;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ baseline: {
1804
+ id: string;
1805
+ };
1806
+ variants: {
1807
+ id: string;
1808
+ hidden: boolean;
1809
+ }[];
1810
+ }, {
1811
+ baseline: {
1812
+ id?: string | undefined;
1813
+ };
1814
+ variants: {
1815
+ id?: string | undefined;
1816
+ hidden?: boolean | undefined;
1817
+ }[];
1818
+ }>, "many">>;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ distribution: number[];
1821
+ traffic: number;
1822
+ components: {
1823
+ baseline: {
1824
+ id: string;
1825
+ };
1826
+ variants: {
1827
+ id: string;
1828
+ hidden: boolean;
1829
+ }[];
1830
+ }[];
1831
+ }, {
1832
+ distribution?: number[] | undefined;
1833
+ traffic?: number | undefined;
1834
+ components?: {
1835
+ baseline: {
1836
+ id?: string | undefined;
1837
+ };
1838
+ variants: {
1839
+ id?: string | undefined;
1840
+ hidden?: boolean | undefined;
1841
+ }[];
1842
+ }[] | undefined;
1843
+ }>>;
1844
+ /**
1845
+ * The audience of the experience (Audience)
1846
+ */
1847
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1848
+ id: z.ZodString;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ id: string;
1851
+ }, {
1852
+ id: string;
1853
+ }>>>;
1854
+ /**
1855
+ * All used variants of the experience (References to other Content Types)
1856
+ */
1857
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1858
+ id: z.ZodString;
1859
+ }, "strip", z.ZodUnknown, {
1860
+ [x: string]: unknown;
1861
+ id: string;
1862
+ }, {
1863
+ [x: string]: unknown;
1864
+ id: string;
1865
+ }>, "many">, {
1866
+ [x: string]: unknown;
1867
+ id: string;
1868
+ }[], unknown>>;
1869
+ }, Augmentation_1> extends infer T_9 extends z.ZodRawShape ? { [k_7 in keyof T_9]: z.extendShape<{
1870
+ id: z.ZodString;
1871
+ /**
1872
+ * The name of the experience (Short Text)
1873
+ */
1874
+ name: z.ZodString;
1875
+ /**
1876
+ * The type if the experience (nt_experiment | nt_personalization)
1877
+ */
1878
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1879
+ /**
1880
+ * The config of the experience (JSON)
1881
+ */
1882
+ config: z.ZodDefault<z.ZodObject<{
1883
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1884
+ traffic: z.ZodDefault<z.ZodNumber>;
1885
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1886
+ baseline: z.ZodObject<{
1887
+ id: z.ZodDefault<z.ZodString>;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ id: string;
1890
+ }, {
1891
+ id?: string | undefined;
1892
+ }>;
1893
+ variants: z.ZodArray<z.ZodObject<{
1894
+ id: z.ZodDefault<z.ZodString>;
1895
+ hidden: z.ZodDefault<z.ZodBoolean>;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ id: string;
1898
+ hidden: boolean;
1899
+ }, {
1900
+ id?: string | undefined;
1901
+ hidden?: boolean | undefined;
1902
+ }>, "many">;
1903
+ }, "strip", z.ZodTypeAny, {
1904
+ baseline: {
1905
+ id: string;
1906
+ };
1907
+ variants: {
1908
+ id: string;
1909
+ hidden: boolean;
1910
+ }[];
1911
+ }, {
1912
+ baseline: {
1913
+ id?: string | undefined;
1914
+ };
1915
+ variants: {
1916
+ id?: string | undefined;
1917
+ hidden?: boolean | undefined;
1918
+ }[];
1919
+ }>, "many">>;
1920
+ }, "strip", z.ZodTypeAny, {
1921
+ distribution: number[];
1922
+ traffic: number;
1923
+ components: {
1924
+ baseline: {
1925
+ id: string;
1926
+ };
1927
+ variants: {
1928
+ id: string;
1929
+ hidden: boolean;
1930
+ }[];
1931
+ }[];
1932
+ }, {
1933
+ distribution?: number[] | undefined;
1934
+ traffic?: number | undefined;
1935
+ components?: {
1936
+ baseline: {
1937
+ id?: string | undefined;
1938
+ };
1939
+ variants: {
1940
+ id?: string | undefined;
1941
+ hidden?: boolean | undefined;
1942
+ }[];
1943
+ }[] | undefined;
1944
+ }>>;
1945
+ /**
1946
+ * The audience of the experience (Audience)
1947
+ */
1948
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1949
+ id: z.ZodString;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ id: string;
1952
+ }, {
1953
+ id: string;
1954
+ }>>>;
1955
+ /**
1956
+ * All used variants of the experience (References to other Content Types)
1957
+ */
1958
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1959
+ id: z.ZodString;
1960
+ }, "strip", z.ZodUnknown, {
1961
+ [x: string]: unknown;
1962
+ id: string;
1963
+ }, {
1964
+ [x: string]: unknown;
1965
+ id: string;
1966
+ }>, "many">, {
1967
+ [x: string]: unknown;
1968
+ id: string;
1969
+ }[], unknown>>;
1970
+ }, Augmentation_1>[k_7]["_input"]; } : never> extends infer T_8 extends object ? { [k_6 in keyof T_8]: z.objectUtil.addQuestionMarks<z.extendShape<{
1971
+ id: z.ZodString;
1972
+ /**
1973
+ * The name of the experience (Short Text)
1974
+ */
1975
+ name: z.ZodString;
1976
+ /**
1977
+ * The type if the experience (nt_experiment | nt_personalization)
1978
+ */
1979
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1980
+ /**
1981
+ * The config of the experience (JSON)
1982
+ */
1983
+ config: z.ZodDefault<z.ZodObject<{
1984
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
1985
+ traffic: z.ZodDefault<z.ZodNumber>;
1986
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
1987
+ baseline: z.ZodObject<{
1988
+ id: z.ZodDefault<z.ZodString>;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ id: string;
1991
+ }, {
1992
+ id?: string | undefined;
1993
+ }>;
1994
+ variants: z.ZodArray<z.ZodObject<{
1995
+ id: z.ZodDefault<z.ZodString>;
1996
+ hidden: z.ZodDefault<z.ZodBoolean>;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ id: string;
1999
+ hidden: boolean;
2000
+ }, {
2001
+ id?: string | undefined;
2002
+ hidden?: boolean | undefined;
2003
+ }>, "many">;
2004
+ }, "strip", z.ZodTypeAny, {
2005
+ baseline: {
2006
+ id: string;
2007
+ };
2008
+ variants: {
2009
+ id: string;
2010
+ hidden: boolean;
2011
+ }[];
2012
+ }, {
2013
+ baseline: {
2014
+ id?: string | undefined;
2015
+ };
2016
+ variants: {
2017
+ id?: string | undefined;
2018
+ hidden?: boolean | undefined;
2019
+ }[];
2020
+ }>, "many">>;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ distribution: number[];
2023
+ traffic: number;
2024
+ components: {
2025
+ baseline: {
2026
+ id: string;
2027
+ };
2028
+ variants: {
2029
+ id: string;
2030
+ hidden: boolean;
2031
+ }[];
2032
+ }[];
2033
+ }, {
2034
+ distribution?: number[] | undefined;
2035
+ traffic?: number | undefined;
2036
+ components?: {
2037
+ baseline: {
2038
+ id?: string | undefined;
2039
+ };
2040
+ variants: {
2041
+ id?: string | undefined;
2042
+ hidden?: boolean | undefined;
2043
+ }[];
2044
+ }[] | undefined;
2045
+ }>>;
2046
+ /**
2047
+ * The audience of the experience (Audience)
2048
+ */
2049
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2050
+ id: z.ZodString;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ id: string;
2053
+ }, {
2054
+ id: string;
2055
+ }>>>;
2056
+ /**
2057
+ * All used variants of the experience (References to other Content Types)
2058
+ */
2059
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2060
+ id: z.ZodString;
2061
+ }, "strip", z.ZodUnknown, {
2062
+ [x: string]: unknown;
2063
+ id: string;
2064
+ }, {
2065
+ [x: string]: unknown;
2066
+ id: string;
2067
+ }>, "many">, {
2068
+ [x: string]: unknown;
2069
+ id: string;
2070
+ }[], unknown>>;
2071
+ }, Augmentation_1> extends infer T_9 extends z.ZodRawShape ? { [k_7 in keyof T_9]: z.extendShape<{
2072
+ id: z.ZodString;
2073
+ /**
2074
+ * The name of the experience (Short Text)
2075
+ */
2076
+ name: z.ZodString;
2077
+ /**
2078
+ * The type if the experience (nt_experiment | nt_personalization)
2079
+ */
2080
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2081
+ /**
2082
+ * The config of the experience (JSON)
2083
+ */
2084
+ config: z.ZodDefault<z.ZodObject<{
2085
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
2086
+ traffic: z.ZodDefault<z.ZodNumber>;
2087
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
2088
+ baseline: z.ZodObject<{
2089
+ id: z.ZodDefault<z.ZodString>;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ id: string;
2092
+ }, {
2093
+ id?: string | undefined;
2094
+ }>;
2095
+ variants: z.ZodArray<z.ZodObject<{
2096
+ id: z.ZodDefault<z.ZodString>;
2097
+ hidden: z.ZodDefault<z.ZodBoolean>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ id: string;
2100
+ hidden: boolean;
2101
+ }, {
2102
+ id?: string | undefined;
2103
+ hidden?: boolean | undefined;
2104
+ }>, "many">;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ baseline: {
2107
+ id: string;
2108
+ };
2109
+ variants: {
2110
+ id: string;
2111
+ hidden: boolean;
2112
+ }[];
2113
+ }, {
2114
+ baseline: {
2115
+ id?: string | undefined;
2116
+ };
2117
+ variants: {
2118
+ id?: string | undefined;
2119
+ hidden?: boolean | undefined;
2120
+ }[];
2121
+ }>, "many">>;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ distribution: number[];
2124
+ traffic: number;
2125
+ components: {
2126
+ baseline: {
2127
+ id: string;
2128
+ };
2129
+ variants: {
2130
+ id: string;
2131
+ hidden: boolean;
2132
+ }[];
2133
+ }[];
2134
+ }, {
2135
+ distribution?: number[] | undefined;
2136
+ traffic?: number | undefined;
2137
+ components?: {
2138
+ baseline: {
2139
+ id?: string | undefined;
2140
+ };
2141
+ variants: {
2142
+ id?: string | undefined;
2143
+ hidden?: boolean | undefined;
2144
+ }[];
2145
+ }[] | undefined;
2146
+ }>>;
2147
+ /**
2148
+ * The audience of the experience (Audience)
2149
+ */
2150
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2151
+ id: z.ZodString;
2152
+ }, "strip", z.ZodTypeAny, {
2153
+ id: string;
2154
+ }, {
2155
+ id: string;
2156
+ }>>>;
2157
+ /**
2158
+ * All used variants of the experience (References to other Content Types)
2159
+ */
2160
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2161
+ id: z.ZodString;
2162
+ }, "strip", z.ZodUnknown, {
2163
+ [x: string]: unknown;
2164
+ id: string;
2165
+ }, {
2166
+ [x: string]: unknown;
2167
+ id: string;
2168
+ }>, "many">, {
2169
+ [x: string]: unknown;
2170
+ id: string;
2171
+ }[], unknown>>;
2172
+ }, Augmentation_1>[k_7]["_input"]; } : never>[k_6]; } : never>;
2173
+ _type: {
2174
+ audience?: {
2175
+ id: string;
2176
+ } | null | undefined;
2177
+ id: string;
2178
+ name: string;
2179
+ type: string;
2180
+ variants: {
2181
+ [x: string]: unknown;
2182
+ id: string;
2183
+ }[];
2184
+ config: {
2185
+ distribution: number[];
2186
+ traffic: number;
2187
+ components: {
2188
+ baseline: {
2189
+ id: string;
2190
+ };
2191
+ variants: {
2192
+ id: string;
2193
+ hidden: boolean;
2194
+ }[];
2195
+ }[];
2196
+ };
2197
+ };
2198
+ _output: {
2199
+ audience?: {
2200
+ id: string;
2201
+ } | null | undefined;
2202
+ id: string;
2203
+ name: string;
2204
+ type: string;
2205
+ variants: {
2206
+ [x: string]: unknown;
2207
+ id: string;
2208
+ }[];
2209
+ config: {
2210
+ distribution: number[];
2211
+ traffic: number;
2212
+ components: {
2213
+ baseline: {
2214
+ id: string;
2215
+ };
2216
+ variants: {
2217
+ id: string;
2218
+ hidden: boolean;
2219
+ }[];
2220
+ }[];
2221
+ };
2222
+ };
2223
+ _input: {
2224
+ variants?: unknown;
2225
+ config?: {
2226
+ distribution?: number[] | undefined;
2227
+ traffic?: number | undefined;
2228
+ components?: {
2229
+ baseline: {
2230
+ id?: string | undefined;
2231
+ };
2232
+ variants: {
2233
+ id?: string | undefined;
2234
+ hidden?: boolean | undefined;
2235
+ }[];
2236
+ }[] | undefined;
2237
+ } | undefined;
2238
+ audience?: {
2239
+ id: string;
2240
+ } | null | undefined;
2241
+ id: string;
2242
+ name: string;
2243
+ type: string;
2244
+ };
2245
+ _def: z.ZodObjectDef<{
2246
+ id: z.ZodString;
2247
+ /**
2248
+ * The name of the experience (Short Text)
2249
+ */
2250
+ name: z.ZodString;
2251
+ /**
2252
+ * The type if the experience (nt_experiment | nt_personalization)
2253
+ */
2254
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2255
+ /**
2256
+ * The config of the experience (JSON)
2257
+ */
2258
+ config: z.ZodDefault<z.ZodObject<{
2259
+ distribution: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
2260
+ traffic: z.ZodDefault<z.ZodNumber>;
2261
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
2262
+ baseline: z.ZodObject<{
2263
+ id: z.ZodDefault<z.ZodString>;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ id: string;
2266
+ }, {
2267
+ id?: string | undefined;
2268
+ }>;
2269
+ variants: z.ZodArray<z.ZodObject<{
2270
+ id: z.ZodDefault<z.ZodString>;
2271
+ hidden: z.ZodDefault<z.ZodBoolean>;
2272
+ }, "strip", z.ZodTypeAny, {
2273
+ id: string;
2274
+ hidden: boolean;
2275
+ }, {
2276
+ id?: string | undefined;
2277
+ hidden?: boolean | undefined;
2278
+ }>, "many">;
2279
+ }, "strip", z.ZodTypeAny, {
2280
+ baseline: {
2281
+ id: string;
2282
+ };
2283
+ variants: {
2284
+ id: string;
2285
+ hidden: boolean;
2286
+ }[];
2287
+ }, {
2288
+ baseline: {
2289
+ id?: string | undefined;
2290
+ };
2291
+ variants: {
2292
+ id?: string | undefined;
2293
+ hidden?: boolean | undefined;
2294
+ }[];
2295
+ }>, "many">>;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ distribution: number[];
2298
+ traffic: number;
2299
+ components: {
2300
+ baseline: {
2301
+ id: string;
2302
+ };
2303
+ variants: {
2304
+ id: string;
2305
+ hidden: boolean;
2306
+ }[];
2307
+ }[];
2308
+ }, {
2309
+ distribution?: number[] | undefined;
2310
+ traffic?: number | undefined;
2311
+ components?: {
2312
+ baseline: {
2313
+ id?: string | undefined;
2314
+ };
2315
+ variants: {
2316
+ id?: string | undefined;
2317
+ hidden?: boolean | undefined;
2318
+ }[];
2319
+ }[] | undefined;
2320
+ }>>;
2321
+ /**
2322
+ * The audience of the experience (Audience)
2323
+ */
2324
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2325
+ id: z.ZodString;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ id: string;
2328
+ }, {
2329
+ id: string;
2330
+ }>>>;
2331
+ /**
2332
+ * All used variants of the experience (References to other Content Types)
2333
+ */
2334
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2335
+ id: z.ZodString;
2336
+ }, "strip", z.ZodUnknown, {
2337
+ [x: string]: unknown;
2338
+ id: string;
2339
+ }, {
2340
+ [x: string]: unknown;
2341
+ id: string;
2342
+ }>, "many">, {
2343
+ [x: string]: unknown;
2344
+ id: string;
2345
+ }[], unknown>>;
2346
+ }, "strip", z.ZodTypeAny>;
2347
+ spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
2348
+ variants?: unknown;
2349
+ config?: {
2350
+ distribution?: number[] | undefined;
2351
+ traffic?: number | undefined;
2352
+ components?: {
2353
+ baseline: {
2354
+ id?: string | undefined;
2355
+ };
2356
+ variants: {
2357
+ id?: string | undefined;
2358
+ hidden?: boolean | undefined;
2359
+ }[];
2360
+ }[] | undefined;
2361
+ } | undefined;
2362
+ audience?: {
2363
+ id: string;
2364
+ } | null | undefined;
2365
+ id: string;
2366
+ name: string;
2367
+ type: string;
2368
+ }, {
2369
+ audience?: {
2370
+ id: string;
2371
+ } | null | undefined;
2372
+ id: string;
2373
+ name: string;
2374
+ type: string;
2375
+ variants: {
2376
+ [x: string]: unknown;
2377
+ id: string;
2378
+ }[];
2379
+ config: {
2380
+ distribution: number[];
2381
+ traffic: number;
2382
+ components: {
2383
+ baseline: {
2384
+ id: string;
2385
+ };
2386
+ variants: {
2387
+ id: string;
2388
+ hidden: boolean;
2389
+ }[];
2390
+ }[];
2391
+ };
2392
+ }>>;
2393
+ };
2394
+ export {};