@ninetailed/experience.js-utils 7.6.0 → 7.6.1

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,19 +1,11 @@
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<{
4
+ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
5
5
  id: z.ZodString;
6
6
  name: z.ZodString;
7
7
  description: z.ZodOptional<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>>;
8
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
17
9
  config: z.ZodDefault<z.ZodObject<{
18
10
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
19
11
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -93,8 +85,18 @@ export declare const ExperimentSchema: z.ZodObject<{
93
85
  name?: string | undefined;
94
86
  description?: string | undefined;
95
87
  }>>>;
88
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
89
+ id: z.ZodString;
90
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
91
+ id: z.ZodString;
92
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
93
+ id: z.ZodString;
94
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
95
+ id: z.ZodString;
96
+ }, z.ZodUnknown, "strip">[], unknown>>;
97
+ }, {
96
98
  type: z.ZodString;
97
- }, "strip", z.ZodTypeAny, {
99
+ }>, "strip", z.ZodTypeAny, {
98
100
  id: string;
99
101
  name: string;
100
102
  type: string;
@@ -210,20 +212,13 @@ export declare const Experiment: {
210
212
  } | null | undefined;
211
213
  };
212
214
  success: true;
215
+ error?: undefined;
213
216
  };
214
- nonstrict: () => z.ZodObject<{
217
+ nonstrict: () => z.ZodObject<z.objectUtil.extendShape<{
215
218
  id: z.ZodString;
216
219
  name: z.ZodString;
217
220
  description: z.ZodOptional<z.ZodString>;
218
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
219
- id: z.ZodString;
220
- }, "strip", z.ZodUnknown, z.objectOutputType<{
221
- id: z.ZodString;
222
- }, z.ZodUnknown, "strip">, z.objectInputType<{
223
- id: z.ZodString;
224
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
225
- id: z.ZodString;
226
- }, z.ZodUnknown, "strip">[], unknown>>;
221
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
227
222
  config: z.ZodDefault<z.ZodObject<{
228
223
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
229
224
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -303,11 +298,6 @@ export declare const Experiment: {
303
298
  name?: string | undefined;
304
299
  description?: string | undefined;
305
300
  }>>>;
306
- type: z.ZodString;
307
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
308
- id: z.ZodString;
309
- name: z.ZodString;
310
- description: z.ZodOptional<z.ZodString>;
311
301
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
312
302
  id: z.ZodString;
313
303
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -317,6 +307,13 @@ export declare const Experiment: {
317
307
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
318
308
  id: z.ZodString;
319
309
  }, z.ZodUnknown, "strip">[], unknown>>;
310
+ }, {
311
+ type: z.ZodString;
312
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
313
+ id: z.ZodString;
314
+ name: z.ZodString;
315
+ description: z.ZodOptional<z.ZodString>;
316
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
320
317
  config: z.ZodDefault<z.ZodObject<{
321
318
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
322
319
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -396,11 +393,6 @@ export declare const Experiment: {
396
393
  name?: string | undefined;
397
394
  description?: string | undefined;
398
395
  }>>>;
399
- type: z.ZodString;
400
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
401
- id: z.ZodString;
402
- name: z.ZodString;
403
- description: z.ZodOptional<z.ZodString>;
404
396
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
405
397
  id: z.ZodString;
406
398
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -410,6 +402,13 @@ export declare const Experiment: {
410
402
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
411
403
  id: z.ZodString;
412
404
  }, z.ZodUnknown, "strip">[], unknown>>;
405
+ }, {
406
+ type: z.ZodString;
407
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
408
+ id: z.ZodString;
409
+ name: z.ZodString;
410
+ description: z.ZodOptional<z.ZodString>;
411
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
413
412
  config: z.ZodDefault<z.ZodObject<{
414
413
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
415
414
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -489,12 +488,6 @@ export declare const Experiment: {
489
488
  name?: string | undefined;
490
489
  description?: string | undefined;
491
490
  }>>>;
492
- type: z.ZodString;
493
- }, z.ZodTypeAny, "passthrough">>;
494
- augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<Omit<{
495
- id: z.ZodString;
496
- name: z.ZodString;
497
- description: z.ZodOptional<z.ZodString>;
498
491
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
499
492
  id: z.ZodString;
500
493
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -504,6 +497,14 @@ export declare const Experiment: {
504
497
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
505
498
  id: z.ZodString;
506
499
  }, z.ZodUnknown, "strip">[], unknown>>;
500
+ }, {
501
+ type: z.ZodString;
502
+ }>, z.ZodTypeAny, "passthrough">>;
503
+ augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
504
+ id: z.ZodString;
505
+ name: z.ZodString;
506
+ description: z.ZodOptional<z.ZodString>;
507
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
507
508
  config: z.ZodDefault<z.ZodObject<{
508
509
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
509
510
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -583,11 +584,6 @@ export declare const Experiment: {
583
584
  name?: string | undefined;
584
585
  description?: string | undefined;
585
586
  }>>>;
586
- type: z.ZodString;
587
- }, keyof Augmentation> & Augmentation extends infer T_2 ? { [k in keyof T_2]: (Omit<{
588
- id: z.ZodString;
589
- name: z.ZodString;
590
- description: z.ZodOptional<z.ZodString>;
591
587
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
592
588
  id: z.ZodString;
593
589
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -597,6 +593,13 @@ export declare const Experiment: {
597
593
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
598
594
  id: z.ZodString;
599
595
  }, z.ZodUnknown, "strip">[], unknown>>;
596
+ }, {
597
+ type: z.ZodString;
598
+ }>, Augmentation>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
599
+ id: z.ZodString;
600
+ name: z.ZodString;
601
+ description: z.ZodOptional<z.ZodString>;
602
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
600
603
  config: z.ZodDefault<z.ZodObject<{
601
604
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
602
605
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -676,11 +679,6 @@ export declare const Experiment: {
676
679
  name?: string | undefined;
677
680
  description?: string | undefined;
678
681
  }>>>;
679
- type: z.ZodString;
680
- }, keyof Augmentation> & Augmentation)[k]; } : never, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Omit<{
681
- id: z.ZodString;
682
- name: z.ZodString;
683
- description: z.ZodOptional<z.ZodString>;
684
682
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
685
683
  id: z.ZodString;
686
684
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -690,6 +688,13 @@ export declare const Experiment: {
690
688
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
691
689
  id: z.ZodString;
692
690
  }, z.ZodUnknown, "strip">[], unknown>>;
691
+ }, {
692
+ type: z.ZodString;
693
+ }>, Augmentation>>> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
694
+ id: z.ZodString;
695
+ name: z.ZodString;
696
+ description: z.ZodOptional<z.ZodString>;
697
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
693
698
  config: z.ZodDefault<z.ZodObject<{
694
699
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
695
700
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -769,11 +774,6 @@ export declare const Experiment: {
769
774
  name?: string | undefined;
770
775
  description?: string | undefined;
771
776
  }>>>;
772
- type: z.ZodString;
773
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
774
- id: z.ZodString;
775
- name: z.ZodString;
776
- description: z.ZodOptional<z.ZodString>;
777
777
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
778
778
  id: z.ZodString;
779
779
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -783,6 +783,13 @@ export declare const Experiment: {
783
783
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
784
784
  id: z.ZodString;
785
785
  }, z.ZodUnknown, "strip">[], unknown>>;
786
+ }, {
787
+ type: z.ZodString;
788
+ }>, Augmentation>>>[k]; } : never, z.baseObjectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
789
+ id: z.ZodString;
790
+ name: z.ZodString;
791
+ description: z.ZodOptional<z.ZodString>;
792
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
786
793
  config: z.ZodDefault<z.ZodObject<{
787
794
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
788
795
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -862,11 +869,6 @@ export declare const Experiment: {
862
869
  name?: string | undefined;
863
870
  description?: string | undefined;
864
871
  }>>>;
865
- type: z.ZodString;
866
- }, keyof Augmentation> & Augmentation)[k_2]; } : never>, (z.baseObjectOutputType<Omit<{
867
- id: z.ZodString;
868
- name: z.ZodString;
869
- description: z.ZodOptional<z.ZodString>;
870
872
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
871
873
  id: z.ZodString;
872
874
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -876,6 +878,13 @@ export declare const Experiment: {
876
878
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
877
879
  id: z.ZodString;
878
880
  }, z.ZodUnknown, "strip">[], unknown>>;
881
+ }, {
882
+ type: z.ZodString;
883
+ }>, Augmentation>> extends infer T_3 ? { [k_1 in keyof T_3]: z.baseObjectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
884
+ id: z.ZodString;
885
+ name: z.ZodString;
886
+ description: z.ZodOptional<z.ZodString>;
887
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
879
888
  config: z.ZodDefault<z.ZodObject<{
880
889
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
881
890
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -955,11 +964,6 @@ export declare const Experiment: {
955
964
  name?: string | undefined;
956
965
  description?: string | undefined;
957
966
  }>>>;
958
- type: z.ZodString;
959
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
960
- id: z.ZodString;
961
- name: z.ZodString;
962
- description: z.ZodOptional<z.ZodString>;
963
967
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
964
968
  id: z.ZodString;
965
969
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -969,28 +973,20 @@ export declare const Experiment: {
969
973
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
970
974
  id: z.ZodString;
971
975
  }, z.ZodUnknown, "strip">[], unknown>>;
972
- config: z.ZodDefault<z.ZodObject<{
973
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
974
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
975
- components: z.ZodDefault<z.ZodOptional<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, {
976
+ }, {
977
+ type: z.ZodString;
978
+ }>, Augmentation>>[k_1]; } : never>;
979
+ _type: {
980
+ id: string;
981
+ name: string;
982
+ type: string;
983
+ variants: z.objectOutputType<{
984
+ id: z.ZodString;
985
+ }, z.ZodUnknown, "strip">[];
986
+ config: {
987
+ distribution: number[];
988
+ traffic: number;
989
+ components: {
994
990
  baseline: {
995
991
  id: string;
996
992
  };
@@ -998,17 +994,24 @@ export declare const Experiment: {
998
994
  id: string;
999
995
  hidden: boolean;
1000
996
  }[];
1001
- }, {
1002
- baseline: {
1003
- id?: string | undefined;
1004
- };
1005
- variants: {
1006
- id?: string | undefined;
1007
- hidden?: boolean | undefined;
1008
- }[];
1009
- }>, "many">>>;
1010
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1011
- }, "strip", z.ZodTypeAny, {
997
+ }[];
998
+ sticky: boolean;
999
+ };
1000
+ description?: string | undefined;
1001
+ audience?: {
1002
+ id: string;
1003
+ name?: string | undefined;
1004
+ description?: string | undefined;
1005
+ } | null | undefined;
1006
+ };
1007
+ _output: {
1008
+ id: string;
1009
+ name: string;
1010
+ type: string;
1011
+ variants: z.objectOutputType<{
1012
+ id: z.ZodString;
1013
+ }, z.ZodUnknown, "strip">[];
1014
+ config: {
1012
1015
  distribution: number[];
1013
1016
  traffic: number;
1014
1017
  components: {
@@ -1021,7 +1024,21 @@ export declare const Experiment: {
1021
1024
  }[];
1022
1025
  }[];
1023
1026
  sticky: boolean;
1024
- }, {
1027
+ };
1028
+ description?: string | undefined;
1029
+ audience?: {
1030
+ id: string;
1031
+ name?: string | undefined;
1032
+ description?: string | undefined;
1033
+ } | null | undefined;
1034
+ };
1035
+ _input: {
1036
+ id: string;
1037
+ name: string;
1038
+ type: string;
1039
+ description?: string | undefined;
1040
+ variants?: unknown;
1041
+ config?: {
1025
1042
  distribution?: number[] | undefined;
1026
1043
  traffic?: number | undefined;
1027
1044
  components?: {
@@ -1034,34 +1051,18 @@ export declare const Experiment: {
1034
1051
  }[];
1035
1052
  }[] | undefined;
1036
1053
  sticky?: boolean | undefined;
1037
- }>>;
1038
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1039
- id: z.ZodString;
1040
- name: z.ZodOptional<z.ZodString>;
1041
- description: z.ZodOptional<z.ZodString>;
1042
- }, "strip", z.ZodTypeAny, {
1043
- id: string;
1044
- name?: string | undefined;
1045
- description?: string | undefined;
1046
- }, {
1054
+ } | undefined;
1055
+ audience?: {
1047
1056
  id: string;
1048
1057
  name?: string | undefined;
1049
1058
  description?: string | undefined;
1050
- }>>>;
1051
- type: z.ZodString;
1052
- }, keyof Augmentation> & Augmentation)[k_2]; } : never> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends z.baseObjectOutputType<Omit<{
1059
+ } | null | undefined;
1060
+ };
1061
+ _def: z.ZodObjectDef<z.objectUtil.extendShape<{
1053
1062
  id: z.ZodString;
1054
1063
  name: z.ZodString;
1055
1064
  description: z.ZodOptional<z.ZodString>;
1056
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1057
- id: z.ZodString;
1058
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1059
- id: z.ZodString;
1060
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1061
- id: z.ZodString;
1062
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1063
- id: z.ZodString;
1064
- }, z.ZodUnknown, "strip">[], unknown>>;
1065
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1065
1066
  config: z.ZodDefault<z.ZodObject<{
1066
1067
  distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1067
1068
  traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1141,11 +1142,6 @@ export declare const Experiment: {
1141
1142
  name?: string | undefined;
1142
1143
  description?: string | undefined;
1143
1144
  }>>>;
1144
- type: z.ZodString;
1145
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1146
- id: z.ZodString;
1147
- name: z.ZodString;
1148
- description: z.ZodOptional<z.ZodString>;
1149
1145
  variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1150
1146
  id: z.ZodString;
1151
1147
  }, "strip", z.ZodUnknown, z.objectOutputType<{
@@ -1155,1193 +1151,9 @@ export declare const Experiment: {
1155
1151
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1156
1152
  id: z.ZodString;
1157
1153
  }, z.ZodUnknown, "strip">[], unknown>>;
1158
- config: z.ZodDefault<z.ZodObject<{
1159
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1160
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1161
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1162
- baseline: z.ZodObject<{
1163
- id: z.ZodDefault<z.ZodString>;
1164
- }, "strip", z.ZodTypeAny, {
1165
- id: string;
1166
- }, {
1167
- id?: string | undefined;
1168
- }>;
1169
- variants: z.ZodArray<z.ZodObject<{
1170
- id: z.ZodDefault<z.ZodString>;
1171
- hidden: z.ZodDefault<z.ZodBoolean>;
1172
- }, "strip", z.ZodTypeAny, {
1173
- id: string;
1174
- hidden: boolean;
1175
- }, {
1176
- id?: string | undefined;
1177
- hidden?: boolean | undefined;
1178
- }>, "many">;
1179
- }, "strip", z.ZodTypeAny, {
1180
- baseline: {
1181
- id: string;
1182
- };
1183
- variants: {
1184
- id: string;
1185
- hidden: boolean;
1186
- }[];
1187
- }, {
1188
- baseline: {
1189
- id?: string | undefined;
1190
- };
1191
- variants: {
1192
- id?: string | undefined;
1193
- hidden?: boolean | undefined;
1194
- }[];
1195
- }>, "many">>>;
1196
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1197
- }, "strip", z.ZodTypeAny, {
1198
- distribution: number[];
1199
- traffic: number;
1200
- components: {
1201
- baseline: {
1202
- id: string;
1203
- };
1204
- variants: {
1205
- id: string;
1206
- hidden: boolean;
1207
- }[];
1208
- }[];
1209
- sticky: boolean;
1210
- }, {
1211
- distribution?: number[] | undefined;
1212
- traffic?: number | undefined;
1213
- components?: {
1214
- baseline: {
1215
- id?: string | undefined;
1216
- };
1217
- variants: {
1218
- id?: string | undefined;
1219
- hidden?: boolean | undefined;
1220
- }[];
1221
- }[] | undefined;
1222
- sticky?: boolean | undefined;
1223
- }>>;
1224
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1225
- id: z.ZodString;
1226
- name: z.ZodOptional<z.ZodString>;
1227
- description: z.ZodOptional<z.ZodString>;
1228
- }, "strip", z.ZodTypeAny, {
1229
- id: string;
1230
- name?: string | undefined;
1231
- description?: string | undefined;
1232
- }, {
1233
- id: string;
1234
- name?: string | undefined;
1235
- description?: string | undefined;
1236
- }>>>;
1237
- type: z.ZodString;
1238
- }, 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<{
1239
- id: z.ZodString;
1240
- name: z.ZodString;
1241
- description: z.ZodOptional<z.ZodString>;
1242
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1243
- id: z.ZodString;
1244
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1245
- id: z.ZodString;
1246
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1247
- id: z.ZodString;
1248
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1249
- id: z.ZodString;
1250
- }, z.ZodUnknown, "strip">[], unknown>>;
1251
- config: z.ZodDefault<z.ZodObject<{
1252
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1253
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1254
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1255
- baseline: z.ZodObject<{
1256
- id: z.ZodDefault<z.ZodString>;
1257
- }, "strip", z.ZodTypeAny, {
1258
- id: string;
1259
- }, {
1260
- id?: string | undefined;
1261
- }>;
1262
- variants: z.ZodArray<z.ZodObject<{
1263
- id: z.ZodDefault<z.ZodString>;
1264
- hidden: z.ZodDefault<z.ZodBoolean>;
1265
- }, "strip", z.ZodTypeAny, {
1266
- id: string;
1267
- hidden: boolean;
1268
- }, {
1269
- id?: string | undefined;
1270
- hidden?: boolean | undefined;
1271
- }>, "many">;
1272
- }, "strip", z.ZodTypeAny, {
1273
- baseline: {
1274
- id: string;
1275
- };
1276
- variants: {
1277
- id: string;
1278
- hidden: boolean;
1279
- }[];
1280
- }, {
1281
- baseline: {
1282
- id?: string | undefined;
1283
- };
1284
- variants: {
1285
- id?: string | undefined;
1286
- hidden?: boolean | undefined;
1287
- }[];
1288
- }>, "many">>>;
1289
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1290
- }, "strip", z.ZodTypeAny, {
1291
- distribution: number[];
1292
- traffic: number;
1293
- components: {
1294
- baseline: {
1295
- id: string;
1296
- };
1297
- variants: {
1298
- id: string;
1299
- hidden: boolean;
1300
- }[];
1301
- }[];
1302
- sticky: boolean;
1303
- }, {
1304
- distribution?: number[] | undefined;
1305
- traffic?: number | undefined;
1306
- components?: {
1307
- baseline: {
1308
- id?: string | undefined;
1309
- };
1310
- variants: {
1311
- id?: string | undefined;
1312
- hidden?: boolean | undefined;
1313
- }[];
1314
- }[] | undefined;
1315
- sticky?: boolean | undefined;
1316
- }>>;
1317
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1318
- id: z.ZodString;
1319
- name: z.ZodOptional<z.ZodString>;
1320
- description: z.ZodOptional<z.ZodString>;
1321
- }, "strip", z.ZodTypeAny, {
1322
- id: string;
1323
- name?: string | undefined;
1324
- description?: string | undefined;
1325
- }, {
1326
- id: string;
1327
- name?: string | undefined;
1328
- description?: string | undefined;
1329
- }>>>;
1330
- type: z.ZodString;
1331
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1332
- id: z.ZodString;
1333
- name: z.ZodString;
1334
- description: z.ZodOptional<z.ZodString>;
1335
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1336
- id: z.ZodString;
1337
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1338
- id: z.ZodString;
1339
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1340
- id: z.ZodString;
1341
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1342
- id: z.ZodString;
1343
- }, z.ZodUnknown, "strip">[], unknown>>;
1344
- config: z.ZodDefault<z.ZodObject<{
1345
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1346
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1347
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1348
- baseline: z.ZodObject<{
1349
- id: z.ZodDefault<z.ZodString>;
1350
- }, "strip", z.ZodTypeAny, {
1351
- id: string;
1352
- }, {
1353
- id?: string | undefined;
1354
- }>;
1355
- variants: z.ZodArray<z.ZodObject<{
1356
- id: z.ZodDefault<z.ZodString>;
1357
- hidden: z.ZodDefault<z.ZodBoolean>;
1358
- }, "strip", z.ZodTypeAny, {
1359
- id: string;
1360
- hidden: boolean;
1361
- }, {
1362
- id?: string | undefined;
1363
- hidden?: boolean | undefined;
1364
- }>, "many">;
1365
- }, "strip", z.ZodTypeAny, {
1366
- baseline: {
1367
- id: string;
1368
- };
1369
- variants: {
1370
- id: string;
1371
- hidden: boolean;
1372
- }[];
1373
- }, {
1374
- baseline: {
1375
- id?: string | undefined;
1376
- };
1377
- variants: {
1378
- id?: string | undefined;
1379
- hidden?: boolean | undefined;
1380
- }[];
1381
- }>, "many">>>;
1382
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1383
- }, "strip", z.ZodTypeAny, {
1384
- distribution: number[];
1385
- traffic: number;
1386
- components: {
1387
- baseline: {
1388
- id: string;
1389
- };
1390
- variants: {
1391
- id: string;
1392
- hidden: boolean;
1393
- }[];
1394
- }[];
1395
- sticky: boolean;
1396
- }, {
1397
- distribution?: number[] | undefined;
1398
- traffic?: number | undefined;
1399
- components?: {
1400
- baseline: {
1401
- id?: string | undefined;
1402
- };
1403
- variants: {
1404
- id?: string | undefined;
1405
- hidden?: boolean | undefined;
1406
- }[];
1407
- }[] | undefined;
1408
- sticky?: boolean | undefined;
1409
- }>>;
1410
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1411
- id: z.ZodString;
1412
- name: z.ZodOptional<z.ZodString>;
1413
- description: z.ZodOptional<z.ZodString>;
1414
- }, "strip", z.ZodTypeAny, {
1415
- id: string;
1416
- name?: string | undefined;
1417
- description?: string | undefined;
1418
- }, {
1419
- id: string;
1420
- name?: string | undefined;
1421
- description?: string | undefined;
1422
- }>>>;
1423
- type: z.ZodString;
1424
- }, keyof Augmentation> & Augmentation)[k_2]; } : never>, (z.baseObjectOutputType<Omit<{
1425
- id: z.ZodString;
1426
- name: z.ZodString;
1427
- description: z.ZodOptional<z.ZodString>;
1428
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1429
- id: z.ZodString;
1430
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1431
- id: z.ZodString;
1432
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1433
- id: z.ZodString;
1434
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1435
- id: z.ZodString;
1436
- }, z.ZodUnknown, "strip">[], unknown>>;
1437
- config: z.ZodDefault<z.ZodObject<{
1438
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1439
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1440
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1441
- baseline: z.ZodObject<{
1442
- id: z.ZodDefault<z.ZodString>;
1443
- }, "strip", z.ZodTypeAny, {
1444
- id: string;
1445
- }, {
1446
- id?: string | undefined;
1447
- }>;
1448
- variants: z.ZodArray<z.ZodObject<{
1449
- id: z.ZodDefault<z.ZodString>;
1450
- hidden: z.ZodDefault<z.ZodBoolean>;
1451
- }, "strip", z.ZodTypeAny, {
1452
- id: string;
1453
- hidden: boolean;
1454
- }, {
1455
- id?: string | undefined;
1456
- hidden?: boolean | undefined;
1457
- }>, "many">;
1458
- }, "strip", z.ZodTypeAny, {
1459
- baseline: {
1460
- id: string;
1461
- };
1462
- variants: {
1463
- id: string;
1464
- hidden: boolean;
1465
- }[];
1466
- }, {
1467
- baseline: {
1468
- id?: string | undefined;
1469
- };
1470
- variants: {
1471
- id?: string | undefined;
1472
- hidden?: boolean | undefined;
1473
- }[];
1474
- }>, "many">>>;
1475
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1476
- }, "strip", z.ZodTypeAny, {
1477
- distribution: number[];
1478
- traffic: number;
1479
- components: {
1480
- baseline: {
1481
- id: string;
1482
- };
1483
- variants: {
1484
- id: string;
1485
- hidden: boolean;
1486
- }[];
1487
- }[];
1488
- sticky: boolean;
1489
- }, {
1490
- distribution?: number[] | undefined;
1491
- traffic?: number | undefined;
1492
- components?: {
1493
- baseline: {
1494
- id?: string | undefined;
1495
- };
1496
- variants: {
1497
- id?: string | undefined;
1498
- hidden?: boolean | undefined;
1499
- }[];
1500
- }[] | undefined;
1501
- sticky?: boolean | undefined;
1502
- }>>;
1503
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1504
- id: z.ZodString;
1505
- name: z.ZodOptional<z.ZodString>;
1506
- description: z.ZodOptional<z.ZodString>;
1507
- }, "strip", z.ZodTypeAny, {
1508
- id: string;
1509
- name?: string | undefined;
1510
- description?: string | undefined;
1511
- }, {
1512
- id: string;
1513
- name?: string | undefined;
1514
- description?: string | undefined;
1515
- }>>>;
1516
- type: z.ZodString;
1517
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1518
- id: z.ZodString;
1519
- name: z.ZodString;
1520
- description: z.ZodOptional<z.ZodString>;
1521
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1522
- id: z.ZodString;
1523
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1524
- id: z.ZodString;
1525
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1526
- id: z.ZodString;
1527
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1528
- id: z.ZodString;
1529
- }, z.ZodUnknown, "strip">[], unknown>>;
1530
- config: z.ZodDefault<z.ZodObject<{
1531
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1532
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1533
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1534
- baseline: z.ZodObject<{
1535
- id: z.ZodDefault<z.ZodString>;
1536
- }, "strip", z.ZodTypeAny, {
1537
- id: string;
1538
- }, {
1539
- id?: string | undefined;
1540
- }>;
1541
- variants: z.ZodArray<z.ZodObject<{
1542
- id: z.ZodDefault<z.ZodString>;
1543
- hidden: z.ZodDefault<z.ZodBoolean>;
1544
- }, "strip", z.ZodTypeAny, {
1545
- id: string;
1546
- hidden: boolean;
1547
- }, {
1548
- id?: string | undefined;
1549
- hidden?: boolean | undefined;
1550
- }>, "many">;
1551
- }, "strip", z.ZodTypeAny, {
1552
- baseline: {
1553
- id: string;
1554
- };
1555
- variants: {
1556
- id: string;
1557
- hidden: boolean;
1558
- }[];
1559
- }, {
1560
- baseline: {
1561
- id?: string | undefined;
1562
- };
1563
- variants: {
1564
- id?: string | undefined;
1565
- hidden?: boolean | undefined;
1566
- }[];
1567
- }>, "many">>>;
1568
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1569
- }, "strip", z.ZodTypeAny, {
1570
- distribution: number[];
1571
- traffic: number;
1572
- components: {
1573
- baseline: {
1574
- id: string;
1575
- };
1576
- variants: {
1577
- id: string;
1578
- hidden: boolean;
1579
- }[];
1580
- }[];
1581
- sticky: boolean;
1582
- }, {
1583
- distribution?: number[] | undefined;
1584
- traffic?: number | undefined;
1585
- components?: {
1586
- baseline: {
1587
- id?: string | undefined;
1588
- };
1589
- variants: {
1590
- id?: string | undefined;
1591
- hidden?: boolean | undefined;
1592
- }[];
1593
- }[] | undefined;
1594
- sticky?: boolean | undefined;
1595
- }>>;
1596
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1597
- id: z.ZodString;
1598
- name: z.ZodOptional<z.ZodString>;
1599
- description: z.ZodOptional<z.ZodString>;
1600
- }, "strip", z.ZodTypeAny, {
1601
- id: string;
1602
- name?: string | undefined;
1603
- description?: string | undefined;
1604
- }, {
1605
- id: string;
1606
- name?: string | undefined;
1607
- description?: string | undefined;
1608
- }>>>;
1609
- type: z.ZodString;
1610
- }, keyof Augmentation> & Augmentation)[k_2]; } : never> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends z.baseObjectOutputType<Omit<{
1611
- id: z.ZodString;
1612
- name: z.ZodString;
1613
- description: z.ZodOptional<z.ZodString>;
1614
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1615
- id: z.ZodString;
1616
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1617
- id: z.ZodString;
1618
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1619
- id: z.ZodString;
1620
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1621
- id: z.ZodString;
1622
- }, z.ZodUnknown, "strip">[], unknown>>;
1623
- config: z.ZodDefault<z.ZodObject<{
1624
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1625
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1626
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1627
- baseline: z.ZodObject<{
1628
- id: z.ZodDefault<z.ZodString>;
1629
- }, "strip", z.ZodTypeAny, {
1630
- id: string;
1631
- }, {
1632
- id?: string | undefined;
1633
- }>;
1634
- variants: z.ZodArray<z.ZodObject<{
1635
- id: z.ZodDefault<z.ZodString>;
1636
- hidden: z.ZodDefault<z.ZodBoolean>;
1637
- }, "strip", z.ZodTypeAny, {
1638
- id: string;
1639
- hidden: boolean;
1640
- }, {
1641
- id?: string | undefined;
1642
- hidden?: boolean | undefined;
1643
- }>, "many">;
1644
- }, "strip", z.ZodTypeAny, {
1645
- baseline: {
1646
- id: string;
1647
- };
1648
- variants: {
1649
- id: string;
1650
- hidden: boolean;
1651
- }[];
1652
- }, {
1653
- baseline: {
1654
- id?: string | undefined;
1655
- };
1656
- variants: {
1657
- id?: string | undefined;
1658
- hidden?: boolean | undefined;
1659
- }[];
1660
- }>, "many">>>;
1661
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1662
- }, "strip", z.ZodTypeAny, {
1663
- distribution: number[];
1664
- traffic: number;
1665
- components: {
1666
- baseline: {
1667
- id: string;
1668
- };
1669
- variants: {
1670
- id: string;
1671
- hidden: boolean;
1672
- }[];
1673
- }[];
1674
- sticky: boolean;
1675
- }, {
1676
- distribution?: number[] | undefined;
1677
- traffic?: number | undefined;
1678
- components?: {
1679
- baseline: {
1680
- id?: string | undefined;
1681
- };
1682
- variants: {
1683
- id?: string | undefined;
1684
- hidden?: boolean | undefined;
1685
- }[];
1686
- }[] | undefined;
1687
- sticky?: boolean | undefined;
1688
- }>>;
1689
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1690
- id: z.ZodString;
1691
- name: z.ZodOptional<z.ZodString>;
1692
- description: z.ZodOptional<z.ZodString>;
1693
- }, "strip", z.ZodTypeAny, {
1694
- id: string;
1695
- name?: string | undefined;
1696
- description?: string | undefined;
1697
- }, {
1698
- id: string;
1699
- name?: string | undefined;
1700
- description?: string | undefined;
1701
- }>>>;
1702
- type: z.ZodString;
1703
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1704
- id: z.ZodString;
1705
- name: z.ZodString;
1706
- description: z.ZodOptional<z.ZodString>;
1707
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1708
- id: z.ZodString;
1709
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1710
- id: z.ZodString;
1711
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1712
- id: z.ZodString;
1713
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1714
- id: z.ZodString;
1715
- }, z.ZodUnknown, "strip">[], unknown>>;
1716
- config: z.ZodDefault<z.ZodObject<{
1717
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1718
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1719
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1720
- baseline: z.ZodObject<{
1721
- id: z.ZodDefault<z.ZodString>;
1722
- }, "strip", z.ZodTypeAny, {
1723
- id: string;
1724
- }, {
1725
- id?: string | undefined;
1726
- }>;
1727
- variants: z.ZodArray<z.ZodObject<{
1728
- id: z.ZodDefault<z.ZodString>;
1729
- hidden: z.ZodDefault<z.ZodBoolean>;
1730
- }, "strip", z.ZodTypeAny, {
1731
- id: string;
1732
- hidden: boolean;
1733
- }, {
1734
- id?: string | undefined;
1735
- hidden?: boolean | undefined;
1736
- }>, "many">;
1737
- }, "strip", z.ZodTypeAny, {
1738
- baseline: {
1739
- id: string;
1740
- };
1741
- variants: {
1742
- id: string;
1743
- hidden: boolean;
1744
- }[];
1745
- }, {
1746
- baseline: {
1747
- id?: string | undefined;
1748
- };
1749
- variants: {
1750
- id?: string | undefined;
1751
- hidden?: boolean | undefined;
1752
- }[];
1753
- }>, "many">>>;
1754
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1755
- }, "strip", z.ZodTypeAny, {
1756
- distribution: number[];
1757
- traffic: number;
1758
- components: {
1759
- baseline: {
1760
- id: string;
1761
- };
1762
- variants: {
1763
- id: string;
1764
- hidden: boolean;
1765
- }[];
1766
- }[];
1767
- sticky: boolean;
1768
- }, {
1769
- distribution?: number[] | undefined;
1770
- traffic?: number | undefined;
1771
- components?: {
1772
- baseline: {
1773
- id?: string | undefined;
1774
- };
1775
- variants: {
1776
- id?: string | undefined;
1777
- hidden?: boolean | undefined;
1778
- }[];
1779
- }[] | undefined;
1780
- sticky?: boolean | undefined;
1781
- }>>;
1782
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1783
- id: z.ZodString;
1784
- name: z.ZodOptional<z.ZodString>;
1785
- description: z.ZodOptional<z.ZodString>;
1786
- }, "strip", z.ZodTypeAny, {
1787
- id: string;
1788
- name?: string | undefined;
1789
- description?: string | undefined;
1790
- }, {
1791
- id: string;
1792
- name?: string | undefined;
1793
- description?: string | undefined;
1794
- }>>>;
1795
- type: z.ZodString;
1796
- }, 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<{
1797
- id: z.ZodString;
1798
- name: z.ZodString;
1799
- description: z.ZodOptional<z.ZodString>;
1800
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1801
- id: z.ZodString;
1802
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1803
- id: z.ZodString;
1804
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1805
- id: z.ZodString;
1806
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1807
- id: z.ZodString;
1808
- }, z.ZodUnknown, "strip">[], unknown>>;
1809
- config: z.ZodDefault<z.ZodObject<{
1810
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1811
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1812
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1813
- baseline: z.ZodObject<{
1814
- id: z.ZodDefault<z.ZodString>;
1815
- }, "strip", z.ZodTypeAny, {
1816
- id: string;
1817
- }, {
1818
- id?: string | undefined;
1819
- }>;
1820
- variants: z.ZodArray<z.ZodObject<{
1821
- id: z.ZodDefault<z.ZodString>;
1822
- hidden: z.ZodDefault<z.ZodBoolean>;
1823
- }, "strip", z.ZodTypeAny, {
1824
- id: string;
1825
- hidden: boolean;
1826
- }, {
1827
- id?: string | undefined;
1828
- hidden?: boolean | undefined;
1829
- }>, "many">;
1830
- }, "strip", z.ZodTypeAny, {
1831
- baseline: {
1832
- id: string;
1833
- };
1834
- variants: {
1835
- id: string;
1836
- hidden: boolean;
1837
- }[];
1838
- }, {
1839
- baseline: {
1840
- id?: string | undefined;
1841
- };
1842
- variants: {
1843
- id?: string | undefined;
1844
- hidden?: boolean | undefined;
1845
- }[];
1846
- }>, "many">>>;
1847
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1848
- }, "strip", z.ZodTypeAny, {
1849
- distribution: number[];
1850
- traffic: number;
1851
- components: {
1852
- baseline: {
1853
- id: string;
1854
- };
1855
- variants: {
1856
- id: string;
1857
- hidden: boolean;
1858
- }[];
1859
- }[];
1860
- sticky: boolean;
1861
- }, {
1862
- distribution?: number[] | undefined;
1863
- traffic?: number | undefined;
1864
- components?: {
1865
- baseline: {
1866
- id?: string | undefined;
1867
- };
1868
- variants: {
1869
- id?: string | undefined;
1870
- hidden?: boolean | undefined;
1871
- }[];
1872
- }[] | undefined;
1873
- sticky?: boolean | undefined;
1874
- }>>;
1875
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1876
- id: z.ZodString;
1877
- name: z.ZodOptional<z.ZodString>;
1878
- description: z.ZodOptional<z.ZodString>;
1879
- }, "strip", z.ZodTypeAny, {
1880
- id: string;
1881
- name?: string | undefined;
1882
- description?: string | undefined;
1883
- }, {
1884
- id: string;
1885
- name?: string | undefined;
1886
- description?: string | undefined;
1887
- }>>>;
1888
- type: z.ZodString;
1889
- }, keyof Augmentation> & Augmentation extends infer T_7 ? { [k_5 in keyof T_7]: (Omit<{
1890
- id: z.ZodString;
1891
- name: z.ZodString;
1892
- description: z.ZodOptional<z.ZodString>;
1893
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1894
- id: z.ZodString;
1895
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1896
- id: z.ZodString;
1897
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1898
- id: z.ZodString;
1899
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1900
- id: z.ZodString;
1901
- }, z.ZodUnknown, "strip">[], unknown>>;
1902
- config: z.ZodDefault<z.ZodObject<{
1903
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1904
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1905
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1906
- baseline: z.ZodObject<{
1907
- id: z.ZodDefault<z.ZodString>;
1908
- }, "strip", z.ZodTypeAny, {
1909
- id: string;
1910
- }, {
1911
- id?: string | undefined;
1912
- }>;
1913
- variants: z.ZodArray<z.ZodObject<{
1914
- id: z.ZodDefault<z.ZodString>;
1915
- hidden: z.ZodDefault<z.ZodBoolean>;
1916
- }, "strip", z.ZodTypeAny, {
1917
- id: string;
1918
- hidden: boolean;
1919
- }, {
1920
- id?: string | undefined;
1921
- hidden?: boolean | undefined;
1922
- }>, "many">;
1923
- }, "strip", z.ZodTypeAny, {
1924
- baseline: {
1925
- id: string;
1926
- };
1927
- variants: {
1928
- id: string;
1929
- hidden: boolean;
1930
- }[];
1931
- }, {
1932
- baseline: {
1933
- id?: string | undefined;
1934
- };
1935
- variants: {
1936
- id?: string | undefined;
1937
- hidden?: boolean | undefined;
1938
- }[];
1939
- }>, "many">>>;
1940
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1941
- }, "strip", z.ZodTypeAny, {
1942
- distribution: number[];
1943
- traffic: number;
1944
- components: {
1945
- baseline: {
1946
- id: string;
1947
- };
1948
- variants: {
1949
- id: string;
1950
- hidden: boolean;
1951
- }[];
1952
- }[];
1953
- sticky: boolean;
1954
- }, {
1955
- distribution?: number[] | undefined;
1956
- traffic?: number | undefined;
1957
- components?: {
1958
- baseline: {
1959
- id?: string | undefined;
1960
- };
1961
- variants: {
1962
- id?: string | undefined;
1963
- hidden?: boolean | undefined;
1964
- }[];
1965
- }[] | undefined;
1966
- sticky?: boolean | undefined;
1967
- }>>;
1968
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1969
- id: z.ZodString;
1970
- name: z.ZodOptional<z.ZodString>;
1971
- description: z.ZodOptional<z.ZodString>;
1972
- }, "strip", z.ZodTypeAny, {
1973
- id: string;
1974
- name?: string | undefined;
1975
- description?: string | undefined;
1976
- }, {
1977
- id: string;
1978
- name?: string | undefined;
1979
- description?: string | undefined;
1980
- }>>>;
1981
- type: z.ZodString;
1982
- }, keyof Augmentation> & Augmentation)[k_5]; } : never> extends infer T_6 ? { [k_4 in keyof T_6]: z.baseObjectInputType<Omit<{
1983
- id: z.ZodString;
1984
- name: z.ZodString;
1985
- description: z.ZodOptional<z.ZodString>;
1986
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1987
- id: z.ZodString;
1988
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1989
- id: z.ZodString;
1990
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1991
- id: z.ZodString;
1992
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1993
- id: z.ZodString;
1994
- }, z.ZodUnknown, "strip">[], unknown>>;
1995
- config: z.ZodDefault<z.ZodObject<{
1996
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1997
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1998
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1999
- baseline: z.ZodObject<{
2000
- id: z.ZodDefault<z.ZodString>;
2001
- }, "strip", z.ZodTypeAny, {
2002
- id: string;
2003
- }, {
2004
- id?: string | undefined;
2005
- }>;
2006
- variants: z.ZodArray<z.ZodObject<{
2007
- id: z.ZodDefault<z.ZodString>;
2008
- hidden: z.ZodDefault<z.ZodBoolean>;
2009
- }, "strip", z.ZodTypeAny, {
2010
- id: string;
2011
- hidden: boolean;
2012
- }, {
2013
- id?: string | undefined;
2014
- hidden?: boolean | undefined;
2015
- }>, "many">;
2016
- }, "strip", z.ZodTypeAny, {
2017
- baseline: {
2018
- id: string;
2019
- };
2020
- variants: {
2021
- id: string;
2022
- hidden: boolean;
2023
- }[];
2024
- }, {
2025
- baseline: {
2026
- id?: string | undefined;
2027
- };
2028
- variants: {
2029
- id?: string | undefined;
2030
- hidden?: boolean | undefined;
2031
- }[];
2032
- }>, "many">>>;
2033
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2034
- }, "strip", z.ZodTypeAny, {
2035
- distribution: number[];
2036
- traffic: number;
2037
- components: {
2038
- baseline: {
2039
- id: string;
2040
- };
2041
- variants: {
2042
- id: string;
2043
- hidden: boolean;
2044
- }[];
2045
- }[];
2046
- sticky: boolean;
2047
- }, {
2048
- distribution?: number[] | undefined;
2049
- traffic?: number | undefined;
2050
- components?: {
2051
- baseline: {
2052
- id?: string | undefined;
2053
- };
2054
- variants: {
2055
- id?: string | undefined;
2056
- hidden?: boolean | undefined;
2057
- }[];
2058
- }[] | undefined;
2059
- sticky?: boolean | undefined;
2060
- }>>;
2061
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2062
- id: z.ZodString;
2063
- name: z.ZodOptional<z.ZodString>;
2064
- description: z.ZodOptional<z.ZodString>;
2065
- }, "strip", z.ZodTypeAny, {
2066
- id: string;
2067
- name?: string | undefined;
2068
- description?: string | undefined;
2069
- }, {
2070
- id: string;
2071
- name?: string | undefined;
2072
- description?: string | undefined;
2073
- }>>>;
2074
- type: z.ZodString;
2075
- }, keyof Augmentation> & Augmentation extends infer T_7 ? { [k_5 in keyof T_7]: (Omit<{
2076
- id: z.ZodString;
2077
- name: z.ZodString;
2078
- description: z.ZodOptional<z.ZodString>;
2079
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2080
- id: z.ZodString;
2081
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2082
- id: z.ZodString;
2083
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2084
- id: z.ZodString;
2085
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2086
- id: z.ZodString;
2087
- }, z.ZodUnknown, "strip">[], unknown>>;
2088
- config: z.ZodDefault<z.ZodObject<{
2089
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2090
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2091
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2092
- baseline: z.ZodObject<{
2093
- id: z.ZodDefault<z.ZodString>;
2094
- }, "strip", z.ZodTypeAny, {
2095
- id: string;
2096
- }, {
2097
- id?: string | undefined;
2098
- }>;
2099
- variants: z.ZodArray<z.ZodObject<{
2100
- id: z.ZodDefault<z.ZodString>;
2101
- hidden: z.ZodDefault<z.ZodBoolean>;
2102
- }, "strip", z.ZodTypeAny, {
2103
- id: string;
2104
- hidden: boolean;
2105
- }, {
2106
- id?: string | undefined;
2107
- hidden?: boolean | undefined;
2108
- }>, "many">;
2109
- }, "strip", z.ZodTypeAny, {
2110
- baseline: {
2111
- id: string;
2112
- };
2113
- variants: {
2114
- id: string;
2115
- hidden: boolean;
2116
- }[];
2117
- }, {
2118
- baseline: {
2119
- id?: string | undefined;
2120
- };
2121
- variants: {
2122
- id?: string | undefined;
2123
- hidden?: boolean | undefined;
2124
- }[];
2125
- }>, "many">>>;
2126
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2127
- }, "strip", z.ZodTypeAny, {
2128
- distribution: number[];
2129
- traffic: number;
2130
- components: {
2131
- baseline: {
2132
- id: string;
2133
- };
2134
- variants: {
2135
- id: string;
2136
- hidden: boolean;
2137
- }[];
2138
- }[];
2139
- sticky: boolean;
2140
- }, {
2141
- distribution?: number[] | undefined;
2142
- traffic?: number | undefined;
2143
- components?: {
2144
- baseline: {
2145
- id?: string | undefined;
2146
- };
2147
- variants: {
2148
- id?: string | undefined;
2149
- hidden?: boolean | undefined;
2150
- }[];
2151
- }[] | undefined;
2152
- sticky?: boolean | undefined;
2153
- }>>;
2154
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2155
- id: z.ZodString;
2156
- name: z.ZodOptional<z.ZodString>;
2157
- description: z.ZodOptional<z.ZodString>;
2158
- }, "strip", z.ZodTypeAny, {
2159
- id: string;
2160
- name?: string | undefined;
2161
- description?: string | undefined;
2162
- }, {
2163
- id: string;
2164
- name?: string | undefined;
2165
- description?: string | undefined;
2166
- }>>>;
2167
- type: z.ZodString;
2168
- }, keyof Augmentation> & Augmentation)[k_5]; } : never>[k_4]; } : never>;
2169
- _type: {
2170
- id: string;
2171
- name: string;
2172
- type: string;
2173
- variants: z.objectOutputType<{
2174
- id: z.ZodString;
2175
- }, z.ZodUnknown, "strip">[];
2176
- config: {
2177
- distribution: number[];
2178
- traffic: number;
2179
- components: {
2180
- baseline: {
2181
- id: string;
2182
- };
2183
- variants: {
2184
- id: string;
2185
- hidden: boolean;
2186
- }[];
2187
- }[];
2188
- sticky: boolean;
2189
- };
2190
- description?: string | undefined;
2191
- audience?: {
2192
- id: string;
2193
- name?: string | undefined;
2194
- description?: string | undefined;
2195
- } | null | undefined;
2196
- };
2197
- _output: {
2198
- id: string;
2199
- name: string;
2200
- type: string;
2201
- variants: z.objectOutputType<{
2202
- id: z.ZodString;
2203
- }, z.ZodUnknown, "strip">[];
2204
- config: {
2205
- distribution: number[];
2206
- traffic: number;
2207
- components: {
2208
- baseline: {
2209
- id: string;
2210
- };
2211
- variants: {
2212
- id: string;
2213
- hidden: boolean;
2214
- }[];
2215
- }[];
2216
- sticky: boolean;
2217
- };
2218
- description?: string | undefined;
2219
- audience?: {
2220
- id: string;
2221
- name?: string | undefined;
2222
- description?: string | undefined;
2223
- } | null | undefined;
2224
- };
2225
- _input: {
2226
- id: string;
2227
- name: string;
2228
- type: string;
2229
- description?: string | undefined;
2230
- variants?: unknown;
2231
- config?: {
2232
- distribution?: number[] | undefined;
2233
- traffic?: number | undefined;
2234
- components?: {
2235
- baseline: {
2236
- id?: string | undefined;
2237
- };
2238
- variants: {
2239
- id?: string | undefined;
2240
- hidden?: boolean | undefined;
2241
- }[];
2242
- }[] | undefined;
2243
- sticky?: boolean | undefined;
2244
- } | undefined;
2245
- audience?: {
2246
- id: string;
2247
- name?: string | undefined;
2248
- description?: string | undefined;
2249
- } | null | undefined;
2250
- };
2251
- _def: z.ZodObjectDef<{
2252
- id: z.ZodString;
2253
- name: z.ZodString;
2254
- description: z.ZodOptional<z.ZodString>;
2255
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2256
- id: z.ZodString;
2257
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2258
- id: z.ZodString;
2259
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2260
- id: z.ZodString;
2261
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2262
- id: z.ZodString;
2263
- }, z.ZodUnknown, "strip">[], unknown>>;
2264
- config: z.ZodDefault<z.ZodObject<{
2265
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2266
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2267
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2268
- baseline: z.ZodObject<{
2269
- id: z.ZodDefault<z.ZodString>;
2270
- }, "strip", z.ZodTypeAny, {
2271
- id: string;
2272
- }, {
2273
- id?: string | undefined;
2274
- }>;
2275
- variants: z.ZodArray<z.ZodObject<{
2276
- id: z.ZodDefault<z.ZodString>;
2277
- hidden: z.ZodDefault<z.ZodBoolean>;
2278
- }, "strip", z.ZodTypeAny, {
2279
- id: string;
2280
- hidden: boolean;
2281
- }, {
2282
- id?: string | undefined;
2283
- hidden?: boolean | undefined;
2284
- }>, "many">;
2285
- }, "strip", z.ZodTypeAny, {
2286
- baseline: {
2287
- id: string;
2288
- };
2289
- variants: {
2290
- id: string;
2291
- hidden: boolean;
2292
- }[];
2293
- }, {
2294
- baseline: {
2295
- id?: string | undefined;
2296
- };
2297
- variants: {
2298
- id?: string | undefined;
2299
- hidden?: boolean | undefined;
2300
- }[];
2301
- }>, "many">>>;
2302
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2303
- }, "strip", z.ZodTypeAny, {
2304
- distribution: number[];
2305
- traffic: number;
2306
- components: {
2307
- baseline: {
2308
- id: string;
2309
- };
2310
- variants: {
2311
- id: string;
2312
- hidden: boolean;
2313
- }[];
2314
- }[];
2315
- sticky: boolean;
2316
- }, {
2317
- distribution?: number[] | undefined;
2318
- traffic?: number | undefined;
2319
- components?: {
2320
- baseline: {
2321
- id?: string | undefined;
2322
- };
2323
- variants: {
2324
- id?: string | undefined;
2325
- hidden?: boolean | undefined;
2326
- }[];
2327
- }[] | undefined;
2328
- sticky?: boolean | undefined;
2329
- }>>;
2330
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2331
- id: z.ZodString;
2332
- name: z.ZodOptional<z.ZodString>;
2333
- description: z.ZodOptional<z.ZodString>;
2334
- }, "strip", z.ZodTypeAny, {
2335
- id: string;
2336
- name?: string | undefined;
2337
- description?: string | undefined;
2338
- }, {
2339
- id: string;
2340
- name?: string | undefined;
2341
- description?: string | undefined;
2342
- }>>>;
1154
+ }, {
2343
1155
  type: z.ZodString;
2344
- }, "strip", z.ZodTypeAny>;
1156
+ }>, "strip", z.ZodTypeAny>;
2345
1157
  spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
2346
1158
  id: string;
2347
1159
  name: string;