@ninetailed/experience.js-utils 7.20.5 → 7.20.6

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,1939 +1,1939 @@
1
- import { Reference } from '@ninetailed/experience.js';
2
- import { z } from 'zod';
3
- import { ExperienceSchema } from './Experience';
4
- export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
5
- id: z.ZodString;
6
- name: z.ZodString;
7
- description: z.ZodOptional<z.ZodString>;
8
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
9
- config: z.ZodDefault<z.ZodObject<{
10
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
11
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
14
- baseline: z.ZodObject<{
15
- id: z.ZodString;
16
- hidden: z.ZodDefault<z.ZodBoolean>;
17
- }, "strip", z.ZodTypeAny, {
18
- id: string;
19
- hidden: boolean;
20
- }, {
21
- id: string;
22
- hidden?: boolean | undefined;
23
- }>;
24
- variants: z.ZodArray<z.ZodObject<{
25
- id: z.ZodString;
26
- hidden: z.ZodDefault<z.ZodBoolean>;
27
- }, "strip", z.ZodTypeAny, {
28
- id: string;
29
- hidden: boolean;
30
- }, {
31
- id: string;
32
- hidden?: boolean | undefined;
33
- }>, "many">;
34
- }, "strip", z.ZodTypeAny, {
35
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
36
- baseline: {
37
- id: string;
38
- hidden: boolean;
39
- };
40
- variants: {
41
- id: string;
42
- hidden: boolean;
43
- }[];
44
- }, {
45
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
46
- baseline: {
47
- id: string;
48
- hidden?: boolean | undefined;
49
- };
50
- variants: {
51
- id: string;
52
- hidden?: boolean | undefined;
53
- }[];
54
- }>, z.ZodObject<{
55
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
56
- key: z.ZodString;
57
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
58
- baseline: z.ZodObject<{
59
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
60
- }, "strip", z.ZodTypeAny, {
61
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
62
- }, {
63
- value?: unknown;
64
- }>;
65
- variants: z.ZodArray<z.ZodObject<{
66
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
67
- }, "strip", z.ZodTypeAny, {
68
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
69
- }, {
70
- value?: unknown;
71
- }>, "many">;
72
- }, "strip", z.ZodTypeAny, {
73
- type: import("./Config").ComponentTypeEnum.InlineVariable;
74
- baseline: {
75
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
76
- };
77
- variants: {
78
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
79
- }[];
80
- key: string;
81
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
82
- }, {
83
- type: import("./Config").ComponentTypeEnum.InlineVariable;
84
- baseline: {
85
- value?: unknown;
86
- };
87
- variants: {
88
- value?: unknown;
89
- }[];
90
- key: string;
91
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
92
- }>]>, {
93
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
94
- baseline: {
95
- id: string;
96
- hidden: boolean;
97
- };
98
- variants: {
99
- id: string;
100
- hidden: boolean;
101
- }[];
102
- } | {
103
- type: import("./Config").ComponentTypeEnum.InlineVariable;
104
- baseline: {
105
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
106
- };
107
- variants: {
108
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
109
- }[];
110
- key: string;
111
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
112
- }, unknown>, "many">>>;
113
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
- }, "strip", z.ZodTypeAny, {
115
- distribution: number[];
116
- traffic: number;
117
- components: ({
118
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
119
- baseline: {
120
- id: string;
121
- hidden: boolean;
122
- };
123
- variants: {
124
- id: string;
125
- hidden: boolean;
126
- }[];
127
- } | {
128
- type: import("./Config").ComponentTypeEnum.InlineVariable;
129
- baseline: {
130
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
131
- };
132
- variants: {
133
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
134
- }[];
135
- key: string;
136
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
137
- })[];
138
- sticky: boolean;
139
- }, {
140
- distribution?: number[] | undefined;
141
- traffic?: number | undefined;
142
- components?: unknown[] | undefined;
143
- sticky?: boolean | undefined;
144
- }>>;
145
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
146
- id: z.ZodString;
147
- name: z.ZodOptional<z.ZodString>;
148
- description: z.ZodOptional<z.ZodString>;
149
- }, "strip", z.ZodTypeAny, {
150
- id: string;
151
- name?: string | undefined;
152
- description?: string | undefined;
153
- }, {
154
- id: string;
155
- name?: string | undefined;
156
- description?: string | undefined;
157
- }>>>;
158
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
159
- id: z.ZodString;
160
- }, "strip", z.ZodUnknown, z.objectOutputType<{
161
- id: z.ZodString;
162
- }, z.ZodUnknown, "strip">, z.objectInputType<{
163
- id: z.ZodString;
164
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
165
- id: z.ZodString;
166
- }, z.ZodUnknown, "strip">[], unknown>>;
167
- }, {
168
- type: z.ZodString;
169
- }>, "strip", z.ZodTypeAny, {
170
- id: string;
171
- name: string;
172
- type: string;
173
- variants: z.objectOutputType<{
174
- id: z.ZodString;
175
- }, z.ZodUnknown, "strip">[];
176
- config: {
177
- distribution: number[];
178
- traffic: number;
179
- components: ({
180
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
181
- baseline: {
182
- id: string;
183
- hidden: boolean;
184
- };
185
- variants: {
186
- id: string;
187
- hidden: boolean;
188
- }[];
189
- } | {
190
- type: import("./Config").ComponentTypeEnum.InlineVariable;
191
- baseline: {
192
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
193
- };
194
- variants: {
195
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
196
- }[];
197
- key: string;
198
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
199
- })[];
200
- sticky: boolean;
201
- };
202
- description?: string | undefined;
203
- audience?: {
204
- id: string;
205
- name?: string | undefined;
206
- description?: string | undefined;
207
- } | null | undefined;
208
- }, {
209
- id: string;
210
- name: string;
211
- type: string;
212
- description?: string | undefined;
213
- variants?: unknown;
214
- config?: {
215
- distribution?: number[] | undefined;
216
- traffic?: number | undefined;
217
- components?: unknown[] | undefined;
218
- sticky?: boolean | undefined;
219
- } | undefined;
220
- audience?: {
221
- id: string;
222
- name?: string | undefined;
223
- description?: string | undefined;
224
- } | null | undefined;
225
- }>;
226
- type ExperimentInput = z.input<typeof ExperimentSchema>;
227
- export type ExperimentLike<Variant extends Reference = Reference> = Omit<ExperimentInput, 'variants'> & {
228
- variants: Variant[];
229
- };
230
- type ExperimentOutput = z.infer<typeof ExperienceSchema>;
231
- export type Experiment<Variant extends Reference = Reference> = Omit<ExperimentOutput, 'variants'> & {
232
- variants: Variant[];
233
- };
234
- export declare const Experiment: {
235
- parse: <T extends Reference>(input: ExperimentLike<T>) => Experiment<T>;
236
- safeParse: <T_1 extends Reference>(input: ExperimentLike<T_1>) => z.SafeParseError<{
237
- id: string;
238
- name: string;
239
- type: string;
240
- description?: string | undefined;
241
- variants?: unknown;
242
- config?: {
243
- distribution?: number[] | undefined;
244
- traffic?: number | undefined;
245
- components?: unknown[] | undefined;
246
- sticky?: boolean | undefined;
247
- } | undefined;
248
- audience?: {
249
- id: string;
250
- name?: string | undefined;
251
- description?: string | undefined;
252
- } | null | undefined;
253
- }> | {
254
- data: {
255
- variants: T_1[];
256
- id: string;
257
- name: string;
258
- type: string;
259
- config: {
260
- distribution: number[];
261
- traffic: number;
262
- components: ({
263
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
264
- baseline: {
265
- id: string;
266
- hidden: boolean;
267
- };
268
- variants: {
269
- id: string;
270
- hidden: boolean;
271
- }[];
272
- } | {
273
- type: import("./Config").ComponentTypeEnum.InlineVariable;
274
- baseline: {
275
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
276
- };
277
- variants: {
278
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
279
- }[];
280
- key: string;
281
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
282
- })[];
283
- sticky: boolean;
284
- };
285
- description?: string | undefined;
286
- audience?: {
287
- id: string;
288
- name?: string | undefined;
289
- description?: string | undefined;
290
- } | null | undefined;
291
- };
292
- success: true;
293
- error?: undefined;
294
- };
295
- nonstrict: () => z.ZodObject<z.objectUtil.extendShape<{
296
- id: z.ZodString;
297
- name: z.ZodString;
298
- description: z.ZodOptional<z.ZodString>;
299
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
300
- config: z.ZodDefault<z.ZodObject<{
301
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
302
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
303
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
304
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
305
- baseline: z.ZodObject<{
306
- id: z.ZodString;
307
- hidden: z.ZodDefault<z.ZodBoolean>;
308
- }, "strip", z.ZodTypeAny, {
309
- id: string;
310
- hidden: boolean;
311
- }, {
312
- id: string;
313
- hidden?: boolean | undefined;
314
- }>;
315
- variants: z.ZodArray<z.ZodObject<{
316
- id: z.ZodString;
317
- hidden: z.ZodDefault<z.ZodBoolean>;
318
- }, "strip", z.ZodTypeAny, {
319
- id: string;
320
- hidden: boolean;
321
- }, {
322
- id: string;
323
- hidden?: boolean | undefined;
324
- }>, "many">;
325
- }, "strip", z.ZodTypeAny, {
326
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
327
- baseline: {
328
- id: string;
329
- hidden: boolean;
330
- };
331
- variants: {
332
- id: string;
333
- hidden: boolean;
334
- }[];
335
- }, {
336
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
337
- baseline: {
338
- id: string;
339
- hidden?: boolean | undefined;
340
- };
341
- variants: {
342
- id: string;
343
- hidden?: boolean | undefined;
344
- }[];
345
- }>, z.ZodObject<{
346
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
347
- key: z.ZodString;
348
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
349
- baseline: z.ZodObject<{
350
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
351
- }, "strip", z.ZodTypeAny, {
352
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
353
- }, {
354
- value?: unknown;
355
- }>;
356
- variants: z.ZodArray<z.ZodObject<{
357
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
358
- }, "strip", z.ZodTypeAny, {
359
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
360
- }, {
361
- value?: unknown;
362
- }>, "many">;
363
- }, "strip", z.ZodTypeAny, {
364
- type: import("./Config").ComponentTypeEnum.InlineVariable;
365
- baseline: {
366
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
367
- };
368
- variants: {
369
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
370
- }[];
371
- key: string;
372
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
373
- }, {
374
- type: import("./Config").ComponentTypeEnum.InlineVariable;
375
- baseline: {
376
- value?: unknown;
377
- };
378
- variants: {
379
- value?: unknown;
380
- }[];
381
- key: string;
382
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
383
- }>]>, {
384
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
385
- baseline: {
386
- id: string;
387
- hidden: boolean;
388
- };
389
- variants: {
390
- id: string;
391
- hidden: boolean;
392
- }[];
393
- } | {
394
- type: import("./Config").ComponentTypeEnum.InlineVariable;
395
- baseline: {
396
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
397
- };
398
- variants: {
399
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
400
- }[];
401
- key: string;
402
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
403
- }, unknown>, "many">>>;
404
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
405
- }, "strip", z.ZodTypeAny, {
406
- distribution: number[];
407
- traffic: number;
408
- components: ({
409
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
410
- baseline: {
411
- id: string;
412
- hidden: boolean;
413
- };
414
- variants: {
415
- id: string;
416
- hidden: boolean;
417
- }[];
418
- } | {
419
- type: import("./Config").ComponentTypeEnum.InlineVariable;
420
- baseline: {
421
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
422
- };
423
- variants: {
424
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
425
- }[];
426
- key: string;
427
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
428
- })[];
429
- sticky: boolean;
430
- }, {
431
- distribution?: number[] | undefined;
432
- traffic?: number | undefined;
433
- components?: unknown[] | undefined;
434
- sticky?: boolean | undefined;
435
- }>>;
436
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
437
- id: z.ZodString;
438
- name: z.ZodOptional<z.ZodString>;
439
- description: z.ZodOptional<z.ZodString>;
440
- }, "strip", z.ZodTypeAny, {
441
- id: string;
442
- name?: string | undefined;
443
- description?: string | undefined;
444
- }, {
445
- id: string;
446
- name?: string | undefined;
447
- description?: string | undefined;
448
- }>>>;
449
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
450
- id: z.ZodString;
451
- }, "strip", z.ZodUnknown, z.objectOutputType<{
452
- id: z.ZodString;
453
- }, z.ZodUnknown, "strip">, z.objectInputType<{
454
- id: z.ZodString;
455
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
456
- id: z.ZodString;
457
- }, z.ZodUnknown, "strip">[], unknown>>;
458
- }, {
459
- type: z.ZodString;
460
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
461
- id: z.ZodString;
462
- name: z.ZodString;
463
- description: z.ZodOptional<z.ZodString>;
464
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
465
- config: z.ZodDefault<z.ZodObject<{
466
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
467
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
468
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
469
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
470
- baseline: z.ZodObject<{
471
- id: z.ZodString;
472
- hidden: z.ZodDefault<z.ZodBoolean>;
473
- }, "strip", z.ZodTypeAny, {
474
- id: string;
475
- hidden: boolean;
476
- }, {
477
- id: string;
478
- hidden?: boolean | undefined;
479
- }>;
480
- variants: z.ZodArray<z.ZodObject<{
481
- id: z.ZodString;
482
- hidden: z.ZodDefault<z.ZodBoolean>;
483
- }, "strip", z.ZodTypeAny, {
484
- id: string;
485
- hidden: boolean;
486
- }, {
487
- id: string;
488
- hidden?: boolean | undefined;
489
- }>, "many">;
490
- }, "strip", z.ZodTypeAny, {
491
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
492
- baseline: {
493
- id: string;
494
- hidden: boolean;
495
- };
496
- variants: {
497
- id: string;
498
- hidden: boolean;
499
- }[];
500
- }, {
501
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
502
- baseline: {
503
- id: string;
504
- hidden?: boolean | undefined;
505
- };
506
- variants: {
507
- id: string;
508
- hidden?: boolean | undefined;
509
- }[];
510
- }>, z.ZodObject<{
511
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
512
- key: z.ZodString;
513
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
514
- baseline: z.ZodObject<{
515
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
516
- }, "strip", z.ZodTypeAny, {
517
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
518
- }, {
519
- value?: unknown;
520
- }>;
521
- variants: z.ZodArray<z.ZodObject<{
522
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
523
- }, "strip", z.ZodTypeAny, {
524
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
525
- }, {
526
- value?: unknown;
527
- }>, "many">;
528
- }, "strip", z.ZodTypeAny, {
529
- type: import("./Config").ComponentTypeEnum.InlineVariable;
530
- baseline: {
531
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
532
- };
533
- variants: {
534
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
535
- }[];
536
- key: string;
537
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
538
- }, {
539
- type: import("./Config").ComponentTypeEnum.InlineVariable;
540
- baseline: {
541
- value?: unknown;
542
- };
543
- variants: {
544
- value?: unknown;
545
- }[];
546
- key: string;
547
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
548
- }>]>, {
549
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
550
- baseline: {
551
- id: string;
552
- hidden: boolean;
553
- };
554
- variants: {
555
- id: string;
556
- hidden: boolean;
557
- }[];
558
- } | {
559
- type: import("./Config").ComponentTypeEnum.InlineVariable;
560
- baseline: {
561
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
562
- };
563
- variants: {
564
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
565
- }[];
566
- key: string;
567
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
568
- }, unknown>, "many">>>;
569
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
570
- }, "strip", z.ZodTypeAny, {
571
- distribution: number[];
572
- traffic: number;
573
- components: ({
574
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
575
- baseline: {
576
- id: string;
577
- hidden: boolean;
578
- };
579
- variants: {
580
- id: string;
581
- hidden: boolean;
582
- }[];
583
- } | {
584
- type: import("./Config").ComponentTypeEnum.InlineVariable;
585
- baseline: {
586
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
587
- };
588
- variants: {
589
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
590
- }[];
591
- key: string;
592
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
593
- })[];
594
- sticky: boolean;
595
- }, {
596
- distribution?: number[] | undefined;
597
- traffic?: number | undefined;
598
- components?: unknown[] | undefined;
599
- sticky?: boolean | undefined;
600
- }>>;
601
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
602
- id: z.ZodString;
603
- name: z.ZodOptional<z.ZodString>;
604
- description: z.ZodOptional<z.ZodString>;
605
- }, "strip", z.ZodTypeAny, {
606
- id: string;
607
- name?: string | undefined;
608
- description?: string | undefined;
609
- }, {
610
- id: string;
611
- name?: string | undefined;
612
- description?: string | undefined;
613
- }>>>;
614
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
615
- id: z.ZodString;
616
- }, "strip", z.ZodUnknown, z.objectOutputType<{
617
- id: z.ZodString;
618
- }, z.ZodUnknown, "strip">, z.objectInputType<{
619
- id: z.ZodString;
620
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
621
- id: z.ZodString;
622
- }, z.ZodUnknown, "strip">[], unknown>>;
623
- }, {
624
- type: z.ZodString;
625
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
626
- id: z.ZodString;
627
- name: z.ZodString;
628
- description: z.ZodOptional<z.ZodString>;
629
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
- config: z.ZodDefault<z.ZodObject<{
631
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
632
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
633
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
634
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
635
- baseline: z.ZodObject<{
636
- id: z.ZodString;
637
- hidden: z.ZodDefault<z.ZodBoolean>;
638
- }, "strip", z.ZodTypeAny, {
639
- id: string;
640
- hidden: boolean;
641
- }, {
642
- id: string;
643
- hidden?: boolean | undefined;
644
- }>;
645
- variants: z.ZodArray<z.ZodObject<{
646
- id: z.ZodString;
647
- hidden: z.ZodDefault<z.ZodBoolean>;
648
- }, "strip", z.ZodTypeAny, {
649
- id: string;
650
- hidden: boolean;
651
- }, {
652
- id: string;
653
- hidden?: boolean | undefined;
654
- }>, "many">;
655
- }, "strip", z.ZodTypeAny, {
656
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
657
- baseline: {
658
- id: string;
659
- hidden: boolean;
660
- };
661
- variants: {
662
- id: string;
663
- hidden: boolean;
664
- }[];
665
- }, {
666
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
667
- baseline: {
668
- id: string;
669
- hidden?: boolean | undefined;
670
- };
671
- variants: {
672
- id: string;
673
- hidden?: boolean | undefined;
674
- }[];
675
- }>, z.ZodObject<{
676
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
677
- key: z.ZodString;
678
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
679
- baseline: z.ZodObject<{
680
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
681
- }, "strip", z.ZodTypeAny, {
682
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
683
- }, {
684
- value?: unknown;
685
- }>;
686
- variants: z.ZodArray<z.ZodObject<{
687
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
688
- }, "strip", z.ZodTypeAny, {
689
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
690
- }, {
691
- value?: unknown;
692
- }>, "many">;
693
- }, "strip", z.ZodTypeAny, {
694
- type: import("./Config").ComponentTypeEnum.InlineVariable;
695
- baseline: {
696
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
697
- };
698
- variants: {
699
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
700
- }[];
701
- key: string;
702
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
703
- }, {
704
- type: import("./Config").ComponentTypeEnum.InlineVariable;
705
- baseline: {
706
- value?: unknown;
707
- };
708
- variants: {
709
- value?: unknown;
710
- }[];
711
- key: string;
712
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
713
- }>]>, {
714
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
715
- baseline: {
716
- id: string;
717
- hidden: boolean;
718
- };
719
- variants: {
720
- id: string;
721
- hidden: boolean;
722
- }[];
723
- } | {
724
- type: import("./Config").ComponentTypeEnum.InlineVariable;
725
- baseline: {
726
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
727
- };
728
- variants: {
729
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
730
- }[];
731
- key: string;
732
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
733
- }, unknown>, "many">>>;
734
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
735
- }, "strip", z.ZodTypeAny, {
736
- distribution: number[];
737
- traffic: number;
738
- components: ({
739
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
740
- baseline: {
741
- id: string;
742
- hidden: boolean;
743
- };
744
- variants: {
745
- id: string;
746
- hidden: boolean;
747
- }[];
748
- } | {
749
- type: import("./Config").ComponentTypeEnum.InlineVariable;
750
- baseline: {
751
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
752
- };
753
- variants: {
754
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
755
- }[];
756
- key: string;
757
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
758
- })[];
759
- sticky: boolean;
760
- }, {
761
- distribution?: number[] | undefined;
762
- traffic?: number | undefined;
763
- components?: unknown[] | undefined;
764
- sticky?: boolean | undefined;
765
- }>>;
766
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
767
- id: z.ZodString;
768
- name: z.ZodOptional<z.ZodString>;
769
- description: z.ZodOptional<z.ZodString>;
770
- }, "strip", z.ZodTypeAny, {
771
- id: string;
772
- name?: string | undefined;
773
- description?: string | undefined;
774
- }, {
775
- id: string;
776
- name?: string | undefined;
777
- description?: string | undefined;
778
- }>>>;
779
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
780
- id: z.ZodString;
781
- }, "strip", z.ZodUnknown, z.objectOutputType<{
782
- id: z.ZodString;
783
- }, z.ZodUnknown, "strip">, z.objectInputType<{
784
- id: z.ZodString;
785
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
786
- id: z.ZodString;
787
- }, z.ZodUnknown, "strip">[], unknown>>;
788
- }, {
789
- type: z.ZodString;
790
- }>, z.ZodTypeAny, "passthrough">>;
791
- augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
792
- id: z.ZodString;
793
- name: z.ZodString;
794
- description: z.ZodOptional<z.ZodString>;
795
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
796
- config: z.ZodDefault<z.ZodObject<{
797
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
798
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
799
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
800
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
801
- baseline: z.ZodObject<{
802
- id: z.ZodString;
803
- hidden: z.ZodDefault<z.ZodBoolean>;
804
- }, "strip", z.ZodTypeAny, {
805
- id: string;
806
- hidden: boolean;
807
- }, {
808
- id: string;
809
- hidden?: boolean | undefined;
810
- }>;
811
- variants: z.ZodArray<z.ZodObject<{
812
- id: z.ZodString;
813
- hidden: z.ZodDefault<z.ZodBoolean>;
814
- }, "strip", z.ZodTypeAny, {
815
- id: string;
816
- hidden: boolean;
817
- }, {
818
- id: string;
819
- hidden?: boolean | undefined;
820
- }>, "many">;
821
- }, "strip", z.ZodTypeAny, {
822
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
823
- baseline: {
824
- id: string;
825
- hidden: boolean;
826
- };
827
- variants: {
828
- id: string;
829
- hidden: boolean;
830
- }[];
831
- }, {
832
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
833
- baseline: {
834
- id: string;
835
- hidden?: boolean | undefined;
836
- };
837
- variants: {
838
- id: string;
839
- hidden?: boolean | undefined;
840
- }[];
841
- }>, z.ZodObject<{
842
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
843
- key: z.ZodString;
844
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
845
- baseline: z.ZodObject<{
846
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
847
- }, "strip", z.ZodTypeAny, {
848
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
849
- }, {
850
- value?: unknown;
851
- }>;
852
- variants: z.ZodArray<z.ZodObject<{
853
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
854
- }, "strip", z.ZodTypeAny, {
855
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
856
- }, {
857
- value?: unknown;
858
- }>, "many">;
859
- }, "strip", z.ZodTypeAny, {
860
- type: import("./Config").ComponentTypeEnum.InlineVariable;
861
- baseline: {
862
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
863
- };
864
- variants: {
865
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
866
- }[];
867
- key: string;
868
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
869
- }, {
870
- type: import("./Config").ComponentTypeEnum.InlineVariable;
871
- baseline: {
872
- value?: unknown;
873
- };
874
- variants: {
875
- value?: unknown;
876
- }[];
877
- key: string;
878
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
879
- }>]>, {
880
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
881
- baseline: {
882
- id: string;
883
- hidden: boolean;
884
- };
885
- variants: {
886
- id: string;
887
- hidden: boolean;
888
- }[];
889
- } | {
890
- type: import("./Config").ComponentTypeEnum.InlineVariable;
891
- baseline: {
892
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
893
- };
894
- variants: {
895
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
896
- }[];
897
- key: string;
898
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
899
- }, unknown>, "many">>>;
900
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
901
- }, "strip", z.ZodTypeAny, {
902
- distribution: number[];
903
- traffic: number;
904
- components: ({
905
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
906
- baseline: {
907
- id: string;
908
- hidden: boolean;
909
- };
910
- variants: {
911
- id: string;
912
- hidden: boolean;
913
- }[];
914
- } | {
915
- type: import("./Config").ComponentTypeEnum.InlineVariable;
916
- baseline: {
917
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
918
- };
919
- variants: {
920
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
921
- }[];
922
- key: string;
923
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
924
- })[];
925
- sticky: boolean;
926
- }, {
927
- distribution?: number[] | undefined;
928
- traffic?: number | undefined;
929
- components?: unknown[] | undefined;
930
- sticky?: boolean | undefined;
931
- }>>;
932
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
933
- id: z.ZodString;
934
- name: z.ZodOptional<z.ZodString>;
935
- description: z.ZodOptional<z.ZodString>;
936
- }, "strip", z.ZodTypeAny, {
937
- id: string;
938
- name?: string | undefined;
939
- description?: string | undefined;
940
- }, {
941
- id: string;
942
- name?: string | undefined;
943
- description?: string | undefined;
944
- }>>>;
945
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
946
- id: z.ZodString;
947
- }, "strip", z.ZodUnknown, z.objectOutputType<{
948
- id: z.ZodString;
949
- }, z.ZodUnknown, "strip">, z.objectInputType<{
950
- id: z.ZodString;
951
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
952
- id: z.ZodString;
953
- }, z.ZodUnknown, "strip">[], unknown>>;
954
- }, {
955
- type: z.ZodString;
956
- }>, Augmentation>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
957
- id: z.ZodString;
958
- name: z.ZodString;
959
- description: z.ZodOptional<z.ZodString>;
960
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
961
- config: z.ZodDefault<z.ZodObject<{
962
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
963
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
964
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
965
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
966
- baseline: z.ZodObject<{
967
- id: z.ZodString;
968
- hidden: z.ZodDefault<z.ZodBoolean>;
969
- }, "strip", z.ZodTypeAny, {
970
- id: string;
971
- hidden: boolean;
972
- }, {
973
- id: string;
974
- hidden?: boolean | undefined;
975
- }>;
976
- variants: z.ZodArray<z.ZodObject<{
977
- id: z.ZodString;
978
- hidden: z.ZodDefault<z.ZodBoolean>;
979
- }, "strip", z.ZodTypeAny, {
980
- id: string;
981
- hidden: boolean;
982
- }, {
983
- id: string;
984
- hidden?: boolean | undefined;
985
- }>, "many">;
986
- }, "strip", z.ZodTypeAny, {
987
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
988
- baseline: {
989
- id: string;
990
- hidden: boolean;
991
- };
992
- variants: {
993
- id: string;
994
- hidden: boolean;
995
- }[];
996
- }, {
997
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
998
- baseline: {
999
- id: string;
1000
- hidden?: boolean | undefined;
1001
- };
1002
- variants: {
1003
- id: string;
1004
- hidden?: boolean | undefined;
1005
- }[];
1006
- }>, z.ZodObject<{
1007
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1008
- key: z.ZodString;
1009
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1010
- baseline: z.ZodObject<{
1011
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1012
- }, "strip", z.ZodTypeAny, {
1013
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1014
- }, {
1015
- value?: unknown;
1016
- }>;
1017
- variants: z.ZodArray<z.ZodObject<{
1018
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1019
- }, "strip", z.ZodTypeAny, {
1020
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1021
- }, {
1022
- value?: unknown;
1023
- }>, "many">;
1024
- }, "strip", z.ZodTypeAny, {
1025
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1026
- baseline: {
1027
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1028
- };
1029
- variants: {
1030
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1031
- }[];
1032
- key: string;
1033
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1034
- }, {
1035
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1036
- baseline: {
1037
- value?: unknown;
1038
- };
1039
- variants: {
1040
- value?: unknown;
1041
- }[];
1042
- key: string;
1043
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1044
- }>]>, {
1045
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1046
- baseline: {
1047
- id: string;
1048
- hidden: boolean;
1049
- };
1050
- variants: {
1051
- id: string;
1052
- hidden: boolean;
1053
- }[];
1054
- } | {
1055
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1056
- baseline: {
1057
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1058
- };
1059
- variants: {
1060
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1061
- }[];
1062
- key: string;
1063
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1064
- }, unknown>, "many">>>;
1065
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1066
- }, "strip", z.ZodTypeAny, {
1067
- distribution: number[];
1068
- traffic: number;
1069
- components: ({
1070
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1071
- baseline: {
1072
- id: string;
1073
- hidden: boolean;
1074
- };
1075
- variants: {
1076
- id: string;
1077
- hidden: boolean;
1078
- }[];
1079
- } | {
1080
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1081
- baseline: {
1082
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1083
- };
1084
- variants: {
1085
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1086
- }[];
1087
- key: string;
1088
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1089
- })[];
1090
- sticky: boolean;
1091
- }, {
1092
- distribution?: number[] | undefined;
1093
- traffic?: number | undefined;
1094
- components?: unknown[] | undefined;
1095
- sticky?: boolean | undefined;
1096
- }>>;
1097
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1098
- id: z.ZodString;
1099
- name: z.ZodOptional<z.ZodString>;
1100
- description: z.ZodOptional<z.ZodString>;
1101
- }, "strip", z.ZodTypeAny, {
1102
- id: string;
1103
- name?: string | undefined;
1104
- description?: string | undefined;
1105
- }, {
1106
- id: string;
1107
- name?: string | undefined;
1108
- description?: string | undefined;
1109
- }>>>;
1110
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1111
- id: z.ZodString;
1112
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1113
- id: z.ZodString;
1114
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1115
- id: z.ZodString;
1116
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1117
- id: z.ZodString;
1118
- }, z.ZodUnknown, "strip">[], unknown>>;
1119
- }, {
1120
- type: z.ZodString;
1121
- }>, Augmentation>>> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1122
- id: z.ZodString;
1123
- name: z.ZodString;
1124
- description: z.ZodOptional<z.ZodString>;
1125
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1126
- config: z.ZodDefault<z.ZodObject<{
1127
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1128
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1129
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1130
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1131
- baseline: z.ZodObject<{
1132
- id: z.ZodString;
1133
- hidden: z.ZodDefault<z.ZodBoolean>;
1134
- }, "strip", z.ZodTypeAny, {
1135
- id: string;
1136
- hidden: boolean;
1137
- }, {
1138
- id: string;
1139
- hidden?: boolean | undefined;
1140
- }>;
1141
- variants: z.ZodArray<z.ZodObject<{
1142
- id: z.ZodString;
1143
- hidden: z.ZodDefault<z.ZodBoolean>;
1144
- }, "strip", z.ZodTypeAny, {
1145
- id: string;
1146
- hidden: boolean;
1147
- }, {
1148
- id: string;
1149
- hidden?: boolean | undefined;
1150
- }>, "many">;
1151
- }, "strip", z.ZodTypeAny, {
1152
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1153
- baseline: {
1154
- id: string;
1155
- hidden: boolean;
1156
- };
1157
- variants: {
1158
- id: string;
1159
- hidden: boolean;
1160
- }[];
1161
- }, {
1162
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1163
- baseline: {
1164
- id: string;
1165
- hidden?: boolean | undefined;
1166
- };
1167
- variants: {
1168
- id: string;
1169
- hidden?: boolean | undefined;
1170
- }[];
1171
- }>, z.ZodObject<{
1172
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1173
- key: z.ZodString;
1174
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1175
- baseline: z.ZodObject<{
1176
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1177
- }, "strip", z.ZodTypeAny, {
1178
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1179
- }, {
1180
- value?: unknown;
1181
- }>;
1182
- variants: z.ZodArray<z.ZodObject<{
1183
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1184
- }, "strip", z.ZodTypeAny, {
1185
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1186
- }, {
1187
- value?: unknown;
1188
- }>, "many">;
1189
- }, "strip", z.ZodTypeAny, {
1190
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1191
- baseline: {
1192
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1193
- };
1194
- variants: {
1195
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1196
- }[];
1197
- key: string;
1198
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1199
- }, {
1200
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1201
- baseline: {
1202
- value?: unknown;
1203
- };
1204
- variants: {
1205
- value?: unknown;
1206
- }[];
1207
- key: string;
1208
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1209
- }>]>, {
1210
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1211
- baseline: {
1212
- id: string;
1213
- hidden: boolean;
1214
- };
1215
- variants: {
1216
- id: string;
1217
- hidden: boolean;
1218
- }[];
1219
- } | {
1220
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1221
- baseline: {
1222
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1223
- };
1224
- variants: {
1225
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1226
- }[];
1227
- key: string;
1228
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1229
- }, unknown>, "many">>>;
1230
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1231
- }, "strip", z.ZodTypeAny, {
1232
- distribution: number[];
1233
- traffic: number;
1234
- components: ({
1235
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1236
- baseline: {
1237
- id: string;
1238
- hidden: boolean;
1239
- };
1240
- variants: {
1241
- id: string;
1242
- hidden: boolean;
1243
- }[];
1244
- } | {
1245
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1246
- baseline: {
1247
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1248
- };
1249
- variants: {
1250
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1251
- }[];
1252
- key: string;
1253
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1254
- })[];
1255
- sticky: boolean;
1256
- }, {
1257
- distribution?: number[] | undefined;
1258
- traffic?: number | undefined;
1259
- components?: unknown[] | undefined;
1260
- sticky?: boolean | undefined;
1261
- }>>;
1262
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1263
- id: z.ZodString;
1264
- name: z.ZodOptional<z.ZodString>;
1265
- description: z.ZodOptional<z.ZodString>;
1266
- }, "strip", z.ZodTypeAny, {
1267
- id: string;
1268
- name?: string | undefined;
1269
- description?: string | undefined;
1270
- }, {
1271
- id: string;
1272
- name?: string | undefined;
1273
- description?: string | undefined;
1274
- }>>>;
1275
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1276
- id: z.ZodString;
1277
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1278
- id: z.ZodString;
1279
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1280
- id: z.ZodString;
1281
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1282
- id: z.ZodString;
1283
- }, z.ZodUnknown, "strip">[], unknown>>;
1284
- }, {
1285
- type: z.ZodString;
1286
- }>, Augmentation>>>[k]; } : never, z.baseObjectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1287
- id: z.ZodString;
1288
- name: z.ZodString;
1289
- description: z.ZodOptional<z.ZodString>;
1290
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1291
- config: z.ZodDefault<z.ZodObject<{
1292
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1293
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1294
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1295
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1296
- baseline: z.ZodObject<{
1297
- id: z.ZodString;
1298
- hidden: z.ZodDefault<z.ZodBoolean>;
1299
- }, "strip", z.ZodTypeAny, {
1300
- id: string;
1301
- hidden: boolean;
1302
- }, {
1303
- id: string;
1304
- hidden?: boolean | undefined;
1305
- }>;
1306
- variants: z.ZodArray<z.ZodObject<{
1307
- id: z.ZodString;
1308
- hidden: z.ZodDefault<z.ZodBoolean>;
1309
- }, "strip", z.ZodTypeAny, {
1310
- id: string;
1311
- hidden: boolean;
1312
- }, {
1313
- id: string;
1314
- hidden?: boolean | undefined;
1315
- }>, "many">;
1316
- }, "strip", z.ZodTypeAny, {
1317
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1318
- baseline: {
1319
- id: string;
1320
- hidden: boolean;
1321
- };
1322
- variants: {
1323
- id: string;
1324
- hidden: boolean;
1325
- }[];
1326
- }, {
1327
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1328
- baseline: {
1329
- id: string;
1330
- hidden?: boolean | undefined;
1331
- };
1332
- variants: {
1333
- id: string;
1334
- hidden?: boolean | undefined;
1335
- }[];
1336
- }>, z.ZodObject<{
1337
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1338
- key: z.ZodString;
1339
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1340
- baseline: z.ZodObject<{
1341
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1342
- }, "strip", z.ZodTypeAny, {
1343
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1344
- }, {
1345
- value?: unknown;
1346
- }>;
1347
- variants: z.ZodArray<z.ZodObject<{
1348
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1349
- }, "strip", z.ZodTypeAny, {
1350
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1351
- }, {
1352
- value?: unknown;
1353
- }>, "many">;
1354
- }, "strip", z.ZodTypeAny, {
1355
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1356
- baseline: {
1357
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1358
- };
1359
- variants: {
1360
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1361
- }[];
1362
- key: string;
1363
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1364
- }, {
1365
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1366
- baseline: {
1367
- value?: unknown;
1368
- };
1369
- variants: {
1370
- value?: unknown;
1371
- }[];
1372
- key: string;
1373
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1374
- }>]>, {
1375
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1376
- baseline: {
1377
- id: string;
1378
- hidden: boolean;
1379
- };
1380
- variants: {
1381
- id: string;
1382
- hidden: boolean;
1383
- }[];
1384
- } | {
1385
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1386
- baseline: {
1387
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1388
- };
1389
- variants: {
1390
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1391
- }[];
1392
- key: string;
1393
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1394
- }, unknown>, "many">>>;
1395
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1396
- }, "strip", z.ZodTypeAny, {
1397
- distribution: number[];
1398
- traffic: number;
1399
- components: ({
1400
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1401
- baseline: {
1402
- id: string;
1403
- hidden: boolean;
1404
- };
1405
- variants: {
1406
- id: string;
1407
- hidden: boolean;
1408
- }[];
1409
- } | {
1410
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1411
- baseline: {
1412
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1413
- };
1414
- variants: {
1415
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1416
- }[];
1417
- key: string;
1418
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1419
- })[];
1420
- sticky: boolean;
1421
- }, {
1422
- distribution?: number[] | undefined;
1423
- traffic?: number | undefined;
1424
- components?: unknown[] | undefined;
1425
- sticky?: boolean | undefined;
1426
- }>>;
1427
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1428
- id: z.ZodString;
1429
- name: z.ZodOptional<z.ZodString>;
1430
- description: z.ZodOptional<z.ZodString>;
1431
- }, "strip", z.ZodTypeAny, {
1432
- id: string;
1433
- name?: string | undefined;
1434
- description?: string | undefined;
1435
- }, {
1436
- id: string;
1437
- name?: string | undefined;
1438
- description?: string | undefined;
1439
- }>>>;
1440
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1441
- id: z.ZodString;
1442
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1443
- id: z.ZodString;
1444
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1445
- id: z.ZodString;
1446
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1447
- id: z.ZodString;
1448
- }, z.ZodUnknown, "strip">[], unknown>>;
1449
- }, {
1450
- type: z.ZodString;
1451
- }>, Augmentation>> extends infer T_3 ? { [k_1 in keyof T_3]: z.baseObjectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1452
- id: z.ZodString;
1453
- name: z.ZodString;
1454
- description: z.ZodOptional<z.ZodString>;
1455
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1456
- config: z.ZodDefault<z.ZodObject<{
1457
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1458
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1459
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1460
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1461
- baseline: z.ZodObject<{
1462
- id: z.ZodString;
1463
- hidden: z.ZodDefault<z.ZodBoolean>;
1464
- }, "strip", z.ZodTypeAny, {
1465
- id: string;
1466
- hidden: boolean;
1467
- }, {
1468
- id: string;
1469
- hidden?: boolean | undefined;
1470
- }>;
1471
- variants: z.ZodArray<z.ZodObject<{
1472
- id: z.ZodString;
1473
- hidden: z.ZodDefault<z.ZodBoolean>;
1474
- }, "strip", z.ZodTypeAny, {
1475
- id: string;
1476
- hidden: boolean;
1477
- }, {
1478
- id: string;
1479
- hidden?: boolean | undefined;
1480
- }>, "many">;
1481
- }, "strip", z.ZodTypeAny, {
1482
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1483
- baseline: {
1484
- id: string;
1485
- hidden: boolean;
1486
- };
1487
- variants: {
1488
- id: string;
1489
- hidden: boolean;
1490
- }[];
1491
- }, {
1492
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1493
- baseline: {
1494
- id: string;
1495
- hidden?: boolean | undefined;
1496
- };
1497
- variants: {
1498
- id: string;
1499
- hidden?: boolean | undefined;
1500
- }[];
1501
- }>, z.ZodObject<{
1502
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1503
- key: z.ZodString;
1504
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1505
- baseline: z.ZodObject<{
1506
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1507
- }, "strip", z.ZodTypeAny, {
1508
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1509
- }, {
1510
- value?: unknown;
1511
- }>;
1512
- variants: z.ZodArray<z.ZodObject<{
1513
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1514
- }, "strip", z.ZodTypeAny, {
1515
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1516
- }, {
1517
- value?: unknown;
1518
- }>, "many">;
1519
- }, "strip", z.ZodTypeAny, {
1520
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1521
- baseline: {
1522
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1523
- };
1524
- variants: {
1525
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1526
- }[];
1527
- key: string;
1528
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1529
- }, {
1530
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1531
- baseline: {
1532
- value?: unknown;
1533
- };
1534
- variants: {
1535
- value?: unknown;
1536
- }[];
1537
- key: string;
1538
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1539
- }>]>, {
1540
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1541
- baseline: {
1542
- id: string;
1543
- hidden: boolean;
1544
- };
1545
- variants: {
1546
- id: string;
1547
- hidden: boolean;
1548
- }[];
1549
- } | {
1550
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1551
- baseline: {
1552
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1553
- };
1554
- variants: {
1555
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1556
- }[];
1557
- key: string;
1558
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1559
- }, unknown>, "many">>>;
1560
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1561
- }, "strip", z.ZodTypeAny, {
1562
- distribution: number[];
1563
- traffic: number;
1564
- components: ({
1565
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1566
- baseline: {
1567
- id: string;
1568
- hidden: boolean;
1569
- };
1570
- variants: {
1571
- id: string;
1572
- hidden: boolean;
1573
- }[];
1574
- } | {
1575
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1576
- baseline: {
1577
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1578
- };
1579
- variants: {
1580
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1581
- }[];
1582
- key: string;
1583
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1584
- })[];
1585
- sticky: boolean;
1586
- }, {
1587
- distribution?: number[] | undefined;
1588
- traffic?: number | undefined;
1589
- components?: unknown[] | undefined;
1590
- sticky?: boolean | undefined;
1591
- }>>;
1592
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1593
- id: z.ZodString;
1594
- name: z.ZodOptional<z.ZodString>;
1595
- description: z.ZodOptional<z.ZodString>;
1596
- }, "strip", z.ZodTypeAny, {
1597
- id: string;
1598
- name?: string | undefined;
1599
- description?: string | undefined;
1600
- }, {
1601
- id: string;
1602
- name?: string | undefined;
1603
- description?: string | undefined;
1604
- }>>>;
1605
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1606
- id: z.ZodString;
1607
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1608
- id: z.ZodString;
1609
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1610
- id: z.ZodString;
1611
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1612
- id: z.ZodString;
1613
- }, z.ZodUnknown, "strip">[], unknown>>;
1614
- }, {
1615
- type: z.ZodString;
1616
- }>, Augmentation>>[k_1]; } : never>;
1617
- _type: {
1618
- id: string;
1619
- name: string;
1620
- type: string;
1621
- variants: z.objectOutputType<{
1622
- id: z.ZodString;
1623
- }, z.ZodUnknown, "strip">[];
1624
- config: {
1625
- distribution: number[];
1626
- traffic: number;
1627
- components: ({
1628
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1629
- baseline: {
1630
- id: string;
1631
- hidden: boolean;
1632
- };
1633
- variants: {
1634
- id: string;
1635
- hidden: boolean;
1636
- }[];
1637
- } | {
1638
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1639
- baseline: {
1640
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1641
- };
1642
- variants: {
1643
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1644
- }[];
1645
- key: string;
1646
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1647
- })[];
1648
- sticky: boolean;
1649
- };
1650
- description?: string | undefined;
1651
- audience?: {
1652
- id: string;
1653
- name?: string | undefined;
1654
- description?: string | undefined;
1655
- } | null | undefined;
1656
- };
1657
- _output: {
1658
- id: string;
1659
- name: string;
1660
- type: string;
1661
- variants: z.objectOutputType<{
1662
- id: z.ZodString;
1663
- }, z.ZodUnknown, "strip">[];
1664
- config: {
1665
- distribution: number[];
1666
- traffic: number;
1667
- components: ({
1668
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1669
- baseline: {
1670
- id: string;
1671
- hidden: boolean;
1672
- };
1673
- variants: {
1674
- id: string;
1675
- hidden: boolean;
1676
- }[];
1677
- } | {
1678
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1679
- baseline: {
1680
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1681
- };
1682
- variants: {
1683
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1684
- }[];
1685
- key: string;
1686
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1687
- })[];
1688
- sticky: boolean;
1689
- };
1690
- description?: string | undefined;
1691
- audience?: {
1692
- id: string;
1693
- name?: string | undefined;
1694
- description?: string | undefined;
1695
- } | null | undefined;
1696
- };
1697
- _input: {
1698
- id: string;
1699
- name: string;
1700
- type: string;
1701
- description?: string | undefined;
1702
- variants?: unknown;
1703
- config?: {
1704
- distribution?: number[] | undefined;
1705
- traffic?: number | undefined;
1706
- components?: unknown[] | undefined;
1707
- sticky?: boolean | undefined;
1708
- } | undefined;
1709
- audience?: {
1710
- id: string;
1711
- name?: string | undefined;
1712
- description?: string | undefined;
1713
- } | null | undefined;
1714
- };
1715
- _def: z.ZodObjectDef<z.objectUtil.extendShape<{
1716
- id: z.ZodString;
1717
- name: z.ZodString;
1718
- description: z.ZodOptional<z.ZodString>;
1719
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1720
- config: z.ZodDefault<z.ZodObject<{
1721
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1722
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1723
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1724
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1725
- baseline: z.ZodObject<{
1726
- id: z.ZodString;
1727
- hidden: z.ZodDefault<z.ZodBoolean>;
1728
- }, "strip", z.ZodTypeAny, {
1729
- id: string;
1730
- hidden: boolean;
1731
- }, {
1732
- id: string;
1733
- hidden?: boolean | undefined;
1734
- }>;
1735
- variants: z.ZodArray<z.ZodObject<{
1736
- id: z.ZodString;
1737
- hidden: z.ZodDefault<z.ZodBoolean>;
1738
- }, "strip", z.ZodTypeAny, {
1739
- id: string;
1740
- hidden: boolean;
1741
- }, {
1742
- id: string;
1743
- hidden?: boolean | undefined;
1744
- }>, "many">;
1745
- }, "strip", z.ZodTypeAny, {
1746
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1747
- baseline: {
1748
- id: string;
1749
- hidden: boolean;
1750
- };
1751
- variants: {
1752
- id: string;
1753
- hidden: boolean;
1754
- }[];
1755
- }, {
1756
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1757
- baseline: {
1758
- id: string;
1759
- hidden?: boolean | undefined;
1760
- };
1761
- variants: {
1762
- id: string;
1763
- hidden?: boolean | undefined;
1764
- }[];
1765
- }>, z.ZodObject<{
1766
- type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1767
- key: z.ZodString;
1768
- valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1769
- baseline: z.ZodObject<{
1770
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1771
- }, "strip", z.ZodTypeAny, {
1772
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1773
- }, {
1774
- value?: unknown;
1775
- }>;
1776
- variants: z.ZodArray<z.ZodObject<{
1777
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1778
- }, "strip", z.ZodTypeAny, {
1779
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1780
- }, {
1781
- value?: unknown;
1782
- }>, "many">;
1783
- }, "strip", z.ZodTypeAny, {
1784
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1785
- baseline: {
1786
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1787
- };
1788
- variants: {
1789
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1790
- }[];
1791
- key: string;
1792
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1793
- }, {
1794
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1795
- baseline: {
1796
- value?: unknown;
1797
- };
1798
- variants: {
1799
- value?: unknown;
1800
- }[];
1801
- key: string;
1802
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1803
- }>]>, {
1804
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1805
- baseline: {
1806
- id: string;
1807
- hidden: boolean;
1808
- };
1809
- variants: {
1810
- id: string;
1811
- hidden: boolean;
1812
- }[];
1813
- } | {
1814
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1815
- baseline: {
1816
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1817
- };
1818
- variants: {
1819
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1820
- }[];
1821
- key: string;
1822
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1823
- }, unknown>, "many">>>;
1824
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1825
- }, "strip", z.ZodTypeAny, {
1826
- distribution: number[];
1827
- traffic: number;
1828
- components: ({
1829
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1830
- baseline: {
1831
- id: string;
1832
- hidden: boolean;
1833
- };
1834
- variants: {
1835
- id: string;
1836
- hidden: boolean;
1837
- }[];
1838
- } | {
1839
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1840
- baseline: {
1841
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1842
- };
1843
- variants: {
1844
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1845
- }[];
1846
- key: string;
1847
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1848
- })[];
1849
- sticky: boolean;
1850
- }, {
1851
- distribution?: number[] | undefined;
1852
- traffic?: number | undefined;
1853
- components?: unknown[] | undefined;
1854
- sticky?: boolean | undefined;
1855
- }>>;
1856
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1857
- id: z.ZodString;
1858
- name: z.ZodOptional<z.ZodString>;
1859
- description: z.ZodOptional<z.ZodString>;
1860
- }, "strip", z.ZodTypeAny, {
1861
- id: string;
1862
- name?: string | undefined;
1863
- description?: string | undefined;
1864
- }, {
1865
- id: string;
1866
- name?: string | undefined;
1867
- description?: string | undefined;
1868
- }>>>;
1869
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1870
- id: z.ZodString;
1871
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1872
- id: z.ZodString;
1873
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1874
- id: z.ZodString;
1875
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1876
- id: z.ZodString;
1877
- }, z.ZodUnknown, "strip">[], unknown>>;
1878
- }, {
1879
- type: z.ZodString;
1880
- }>, "strip", z.ZodTypeAny>;
1881
- spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
1882
- id: string;
1883
- name: string;
1884
- type: string;
1885
- description?: string | undefined;
1886
- variants?: unknown;
1887
- config?: {
1888
- distribution?: number[] | undefined;
1889
- traffic?: number | undefined;
1890
- components?: unknown[] | undefined;
1891
- sticky?: boolean | undefined;
1892
- } | undefined;
1893
- audience?: {
1894
- id: string;
1895
- name?: string | undefined;
1896
- description?: string | undefined;
1897
- } | null | undefined;
1898
- }, {
1899
- id: string;
1900
- name: string;
1901
- type: string;
1902
- variants: z.objectOutputType<{
1903
- id: z.ZodString;
1904
- }, z.ZodUnknown, "strip">[];
1905
- config: {
1906
- distribution: number[];
1907
- traffic: number;
1908
- components: ({
1909
- type: import("./Config").ComponentTypeEnum.EntryReplacement;
1910
- baseline: {
1911
- id: string;
1912
- hidden: boolean;
1913
- };
1914
- variants: {
1915
- id: string;
1916
- hidden: boolean;
1917
- }[];
1918
- } | {
1919
- type: import("./Config").ComponentTypeEnum.InlineVariable;
1920
- baseline: {
1921
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1922
- };
1923
- variants: {
1924
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1925
- }[];
1926
- key: string;
1927
- valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1928
- })[];
1929
- sticky: boolean;
1930
- };
1931
- description?: string | undefined;
1932
- audience?: {
1933
- id: string;
1934
- name?: string | undefined;
1935
- description?: string | undefined;
1936
- } | null | undefined;
1937
- }>>;
1938
- };
1939
- export {};
1
+ import { Reference } from '@ninetailed/experience.js-shared';
2
+ import { z } from 'zod';
3
+ import { ExperienceSchema } from './Experience';
4
+ export declare const ExperimentSchema: z.ZodObject<z.objectUtil.extendShape<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
9
+ config: z.ZodDefault<z.ZodObject<{
10
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
11
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
13
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
14
+ baseline: z.ZodObject<{
15
+ id: z.ZodString;
16
+ hidden: z.ZodDefault<z.ZodBoolean>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ hidden: boolean;
20
+ }, {
21
+ id: string;
22
+ hidden?: boolean | undefined;
23
+ }>;
24
+ variants: z.ZodArray<z.ZodObject<{
25
+ id: z.ZodString;
26
+ hidden: z.ZodDefault<z.ZodBoolean>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ id: string;
29
+ hidden: boolean;
30
+ }, {
31
+ id: string;
32
+ hidden?: boolean | undefined;
33
+ }>, "many">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
36
+ baseline: {
37
+ id: string;
38
+ hidden: boolean;
39
+ };
40
+ variants: {
41
+ id: string;
42
+ hidden: boolean;
43
+ }[];
44
+ }, {
45
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
46
+ baseline: {
47
+ id: string;
48
+ hidden?: boolean | undefined;
49
+ };
50
+ variants: {
51
+ id: string;
52
+ hidden?: boolean | undefined;
53
+ }[];
54
+ }>, z.ZodObject<{
55
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
56
+ key: z.ZodString;
57
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
58
+ baseline: z.ZodObject<{
59
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
62
+ }, {
63
+ value?: unknown;
64
+ }>;
65
+ variants: z.ZodArray<z.ZodObject<{
66
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
69
+ }, {
70
+ value?: unknown;
71
+ }>, "many">;
72
+ }, "strip", z.ZodTypeAny, {
73
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
74
+ baseline: {
75
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
76
+ };
77
+ variants: {
78
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
79
+ }[];
80
+ key: string;
81
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
82
+ }, {
83
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
84
+ baseline: {
85
+ value?: unknown;
86
+ };
87
+ variants: {
88
+ value?: unknown;
89
+ }[];
90
+ key: string;
91
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
92
+ }>]>, {
93
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
94
+ baseline: {
95
+ id: string;
96
+ hidden: boolean;
97
+ };
98
+ variants: {
99
+ id: string;
100
+ hidden: boolean;
101
+ }[];
102
+ } | {
103
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
104
+ baseline: {
105
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
106
+ };
107
+ variants: {
108
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
109
+ }[];
110
+ key: string;
111
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
112
+ }, unknown>, "many">>>;
113
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ distribution: number[];
116
+ traffic: number;
117
+ components: ({
118
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
119
+ baseline: {
120
+ id: string;
121
+ hidden: boolean;
122
+ };
123
+ variants: {
124
+ id: string;
125
+ hidden: boolean;
126
+ }[];
127
+ } | {
128
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
129
+ baseline: {
130
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
131
+ };
132
+ variants: {
133
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
134
+ }[];
135
+ key: string;
136
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
137
+ })[];
138
+ sticky: boolean;
139
+ }, {
140
+ distribution?: number[] | undefined;
141
+ traffic?: number | undefined;
142
+ components?: unknown[] | undefined;
143
+ sticky?: boolean | undefined;
144
+ }>>;
145
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
146
+ id: z.ZodString;
147
+ name: z.ZodOptional<z.ZodString>;
148
+ description: z.ZodOptional<z.ZodString>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ id: string;
151
+ name?: string | undefined;
152
+ description?: string | undefined;
153
+ }, {
154
+ id: string;
155
+ name?: string | undefined;
156
+ description?: string | undefined;
157
+ }>>>;
158
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
159
+ id: z.ZodString;
160
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
161
+ id: z.ZodString;
162
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
163
+ id: z.ZodString;
164
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
165
+ id: z.ZodString;
166
+ }, z.ZodUnknown, "strip">[], unknown>>;
167
+ }, {
168
+ type: z.ZodString;
169
+ }>, "strip", z.ZodTypeAny, {
170
+ id: string;
171
+ name: string;
172
+ type: string;
173
+ variants: z.objectOutputType<{
174
+ id: z.ZodString;
175
+ }, z.ZodUnknown, "strip">[];
176
+ config: {
177
+ distribution: number[];
178
+ traffic: number;
179
+ components: ({
180
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
181
+ baseline: {
182
+ id: string;
183
+ hidden: boolean;
184
+ };
185
+ variants: {
186
+ id: string;
187
+ hidden: boolean;
188
+ }[];
189
+ } | {
190
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
191
+ baseline: {
192
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
193
+ };
194
+ variants: {
195
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
196
+ }[];
197
+ key: string;
198
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
199
+ })[];
200
+ sticky: boolean;
201
+ };
202
+ description?: string | undefined;
203
+ audience?: {
204
+ id: string;
205
+ name?: string | undefined;
206
+ description?: string | undefined;
207
+ } | null | undefined;
208
+ }, {
209
+ id: string;
210
+ name: string;
211
+ type: string;
212
+ description?: string | undefined;
213
+ variants?: unknown;
214
+ config?: {
215
+ distribution?: number[] | undefined;
216
+ traffic?: number | undefined;
217
+ components?: unknown[] | undefined;
218
+ sticky?: boolean | undefined;
219
+ } | undefined;
220
+ audience?: {
221
+ id: string;
222
+ name?: string | undefined;
223
+ description?: string | undefined;
224
+ } | null | undefined;
225
+ }>;
226
+ type ExperimentInput = z.input<typeof ExperimentSchema>;
227
+ export type ExperimentLike<Variant extends Reference = Reference> = Omit<ExperimentInput, 'variants'> & {
228
+ variants: Variant[];
229
+ };
230
+ type ExperimentOutput = z.infer<typeof ExperienceSchema>;
231
+ export type Experiment<Variant extends Reference = Reference> = Omit<ExperimentOutput, 'variants'> & {
232
+ variants: Variant[];
233
+ };
234
+ export declare const Experiment: {
235
+ parse: <T extends Reference>(input: ExperimentLike<T>) => Experiment<T>;
236
+ safeParse: <T extends Reference>(input: ExperimentLike<T>) => z.SafeParseError<{
237
+ id: string;
238
+ name: string;
239
+ type: string;
240
+ description?: string | undefined;
241
+ variants?: unknown;
242
+ config?: {
243
+ distribution?: number[] | undefined;
244
+ traffic?: number | undefined;
245
+ components?: unknown[] | undefined;
246
+ sticky?: boolean | undefined;
247
+ } | undefined;
248
+ audience?: {
249
+ id: string;
250
+ name?: string | undefined;
251
+ description?: string | undefined;
252
+ } | null | undefined;
253
+ }> | {
254
+ data: {
255
+ variants: T[];
256
+ id: string;
257
+ name: string;
258
+ type: string;
259
+ config: {
260
+ distribution: number[];
261
+ traffic: number;
262
+ components: ({
263
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
264
+ baseline: {
265
+ id: string;
266
+ hidden: boolean;
267
+ };
268
+ variants: {
269
+ id: string;
270
+ hidden: boolean;
271
+ }[];
272
+ } | {
273
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
274
+ baseline: {
275
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
276
+ };
277
+ variants: {
278
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
279
+ }[];
280
+ key: string;
281
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
282
+ })[];
283
+ sticky: boolean;
284
+ };
285
+ description?: string | undefined;
286
+ audience?: {
287
+ id: string;
288
+ name?: string | undefined;
289
+ description?: string | undefined;
290
+ } | null | undefined;
291
+ };
292
+ success: true;
293
+ error?: undefined;
294
+ };
295
+ nonstrict: () => z.ZodObject<z.objectUtil.extendShape<{
296
+ id: z.ZodString;
297
+ name: z.ZodString;
298
+ description: z.ZodOptional<z.ZodString>;
299
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
300
+ config: z.ZodDefault<z.ZodObject<{
301
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
302
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
303
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
304
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
305
+ baseline: z.ZodObject<{
306
+ id: z.ZodString;
307
+ hidden: z.ZodDefault<z.ZodBoolean>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ id: string;
310
+ hidden: boolean;
311
+ }, {
312
+ id: string;
313
+ hidden?: boolean | undefined;
314
+ }>;
315
+ variants: z.ZodArray<z.ZodObject<{
316
+ id: z.ZodString;
317
+ hidden: z.ZodDefault<z.ZodBoolean>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ id: string;
320
+ hidden: boolean;
321
+ }, {
322
+ id: string;
323
+ hidden?: boolean | undefined;
324
+ }>, "many">;
325
+ }, "strip", z.ZodTypeAny, {
326
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
327
+ baseline: {
328
+ id: string;
329
+ hidden: boolean;
330
+ };
331
+ variants: {
332
+ id: string;
333
+ hidden: boolean;
334
+ }[];
335
+ }, {
336
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
337
+ baseline: {
338
+ id: string;
339
+ hidden?: boolean | undefined;
340
+ };
341
+ variants: {
342
+ id: string;
343
+ hidden?: boolean | undefined;
344
+ }[];
345
+ }>, z.ZodObject<{
346
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
347
+ key: z.ZodString;
348
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
349
+ baseline: z.ZodObject<{
350
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
353
+ }, {
354
+ value?: unknown;
355
+ }>;
356
+ variants: z.ZodArray<z.ZodObject<{
357
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
360
+ }, {
361
+ value?: unknown;
362
+ }>, "many">;
363
+ }, "strip", z.ZodTypeAny, {
364
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
365
+ baseline: {
366
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
367
+ };
368
+ variants: {
369
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
370
+ }[];
371
+ key: string;
372
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
373
+ }, {
374
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
375
+ baseline: {
376
+ value?: unknown;
377
+ };
378
+ variants: {
379
+ value?: unknown;
380
+ }[];
381
+ key: string;
382
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
383
+ }>]>, {
384
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
385
+ baseline: {
386
+ id: string;
387
+ hidden: boolean;
388
+ };
389
+ variants: {
390
+ id: string;
391
+ hidden: boolean;
392
+ }[];
393
+ } | {
394
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
395
+ baseline: {
396
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
397
+ };
398
+ variants: {
399
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
400
+ }[];
401
+ key: string;
402
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
403
+ }, unknown>, "many">>>;
404
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ distribution: number[];
407
+ traffic: number;
408
+ components: ({
409
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
410
+ baseline: {
411
+ id: string;
412
+ hidden: boolean;
413
+ };
414
+ variants: {
415
+ id: string;
416
+ hidden: boolean;
417
+ }[];
418
+ } | {
419
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
420
+ baseline: {
421
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
422
+ };
423
+ variants: {
424
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
425
+ }[];
426
+ key: string;
427
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
428
+ })[];
429
+ sticky: boolean;
430
+ }, {
431
+ distribution?: number[] | undefined;
432
+ traffic?: number | undefined;
433
+ components?: unknown[] | undefined;
434
+ sticky?: boolean | undefined;
435
+ }>>;
436
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
437
+ id: z.ZodString;
438
+ name: z.ZodOptional<z.ZodString>;
439
+ description: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ id: string;
442
+ name?: string | undefined;
443
+ description?: string | undefined;
444
+ }, {
445
+ id: string;
446
+ name?: string | undefined;
447
+ description?: string | undefined;
448
+ }>>>;
449
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
450
+ id: z.ZodString;
451
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
452
+ id: z.ZodString;
453
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
454
+ id: z.ZodString;
455
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
456
+ id: z.ZodString;
457
+ }, z.ZodUnknown, "strip">[], unknown>>;
458
+ }, {
459
+ type: z.ZodString;
460
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
461
+ id: z.ZodString;
462
+ name: z.ZodString;
463
+ description: z.ZodOptional<z.ZodString>;
464
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
465
+ config: z.ZodDefault<z.ZodObject<{
466
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
467
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
468
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
469
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
470
+ baseline: z.ZodObject<{
471
+ id: z.ZodString;
472
+ hidden: z.ZodDefault<z.ZodBoolean>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ id: string;
475
+ hidden: boolean;
476
+ }, {
477
+ id: string;
478
+ hidden?: boolean | undefined;
479
+ }>;
480
+ variants: z.ZodArray<z.ZodObject<{
481
+ id: z.ZodString;
482
+ hidden: z.ZodDefault<z.ZodBoolean>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ id: string;
485
+ hidden: boolean;
486
+ }, {
487
+ id: string;
488
+ hidden?: boolean | undefined;
489
+ }>, "many">;
490
+ }, "strip", z.ZodTypeAny, {
491
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
492
+ baseline: {
493
+ id: string;
494
+ hidden: boolean;
495
+ };
496
+ variants: {
497
+ id: string;
498
+ hidden: boolean;
499
+ }[];
500
+ }, {
501
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
502
+ baseline: {
503
+ id: string;
504
+ hidden?: boolean | undefined;
505
+ };
506
+ variants: {
507
+ id: string;
508
+ hidden?: boolean | undefined;
509
+ }[];
510
+ }>, z.ZodObject<{
511
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
512
+ key: z.ZodString;
513
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
514
+ baseline: z.ZodObject<{
515
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
518
+ }, {
519
+ value?: unknown;
520
+ }>;
521
+ variants: z.ZodArray<z.ZodObject<{
522
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
525
+ }, {
526
+ value?: unknown;
527
+ }>, "many">;
528
+ }, "strip", z.ZodTypeAny, {
529
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
530
+ baseline: {
531
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
532
+ };
533
+ variants: {
534
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
535
+ }[];
536
+ key: string;
537
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
538
+ }, {
539
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
540
+ baseline: {
541
+ value?: unknown;
542
+ };
543
+ variants: {
544
+ value?: unknown;
545
+ }[];
546
+ key: string;
547
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
548
+ }>]>, {
549
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
550
+ baseline: {
551
+ id: string;
552
+ hidden: boolean;
553
+ };
554
+ variants: {
555
+ id: string;
556
+ hidden: boolean;
557
+ }[];
558
+ } | {
559
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
560
+ baseline: {
561
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
562
+ };
563
+ variants: {
564
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
565
+ }[];
566
+ key: string;
567
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
568
+ }, unknown>, "many">>>;
569
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ distribution: number[];
572
+ traffic: number;
573
+ components: ({
574
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
575
+ baseline: {
576
+ id: string;
577
+ hidden: boolean;
578
+ };
579
+ variants: {
580
+ id: string;
581
+ hidden: boolean;
582
+ }[];
583
+ } | {
584
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
585
+ baseline: {
586
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
587
+ };
588
+ variants: {
589
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
590
+ }[];
591
+ key: string;
592
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
593
+ })[];
594
+ sticky: boolean;
595
+ }, {
596
+ distribution?: number[] | undefined;
597
+ traffic?: number | undefined;
598
+ components?: unknown[] | undefined;
599
+ sticky?: boolean | undefined;
600
+ }>>;
601
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
602
+ id: z.ZodString;
603
+ name: z.ZodOptional<z.ZodString>;
604
+ description: z.ZodOptional<z.ZodString>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ id: string;
607
+ name?: string | undefined;
608
+ description?: string | undefined;
609
+ }, {
610
+ id: string;
611
+ name?: string | undefined;
612
+ description?: string | undefined;
613
+ }>>>;
614
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
615
+ id: z.ZodString;
616
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
617
+ id: z.ZodString;
618
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
619
+ id: z.ZodString;
620
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
621
+ id: z.ZodString;
622
+ }, z.ZodUnknown, "strip">[], unknown>>;
623
+ }, {
624
+ type: z.ZodString;
625
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
626
+ id: z.ZodString;
627
+ name: z.ZodString;
628
+ description: z.ZodOptional<z.ZodString>;
629
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
630
+ config: z.ZodDefault<z.ZodObject<{
631
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
632
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
633
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
634
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
635
+ baseline: z.ZodObject<{
636
+ id: z.ZodString;
637
+ hidden: z.ZodDefault<z.ZodBoolean>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ id: string;
640
+ hidden: boolean;
641
+ }, {
642
+ id: string;
643
+ hidden?: boolean | undefined;
644
+ }>;
645
+ variants: z.ZodArray<z.ZodObject<{
646
+ id: z.ZodString;
647
+ hidden: z.ZodDefault<z.ZodBoolean>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ id: string;
650
+ hidden: boolean;
651
+ }, {
652
+ id: string;
653
+ hidden?: boolean | undefined;
654
+ }>, "many">;
655
+ }, "strip", z.ZodTypeAny, {
656
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
657
+ baseline: {
658
+ id: string;
659
+ hidden: boolean;
660
+ };
661
+ variants: {
662
+ id: string;
663
+ hidden: boolean;
664
+ }[];
665
+ }, {
666
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
667
+ baseline: {
668
+ id: string;
669
+ hidden?: boolean | undefined;
670
+ };
671
+ variants: {
672
+ id: string;
673
+ hidden?: boolean | undefined;
674
+ }[];
675
+ }>, z.ZodObject<{
676
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
677
+ key: z.ZodString;
678
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
679
+ baseline: z.ZodObject<{
680
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
683
+ }, {
684
+ value?: unknown;
685
+ }>;
686
+ variants: z.ZodArray<z.ZodObject<{
687
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
690
+ }, {
691
+ value?: unknown;
692
+ }>, "many">;
693
+ }, "strip", z.ZodTypeAny, {
694
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
695
+ baseline: {
696
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
697
+ };
698
+ variants: {
699
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
700
+ }[];
701
+ key: string;
702
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
703
+ }, {
704
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
705
+ baseline: {
706
+ value?: unknown;
707
+ };
708
+ variants: {
709
+ value?: unknown;
710
+ }[];
711
+ key: string;
712
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
713
+ }>]>, {
714
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
715
+ baseline: {
716
+ id: string;
717
+ hidden: boolean;
718
+ };
719
+ variants: {
720
+ id: string;
721
+ hidden: boolean;
722
+ }[];
723
+ } | {
724
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
725
+ baseline: {
726
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
727
+ };
728
+ variants: {
729
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
730
+ }[];
731
+ key: string;
732
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
733
+ }, unknown>, "many">>>;
734
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ distribution: number[];
737
+ traffic: number;
738
+ components: ({
739
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
740
+ baseline: {
741
+ id: string;
742
+ hidden: boolean;
743
+ };
744
+ variants: {
745
+ id: string;
746
+ hidden: boolean;
747
+ }[];
748
+ } | {
749
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
750
+ baseline: {
751
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
752
+ };
753
+ variants: {
754
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
755
+ }[];
756
+ key: string;
757
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
758
+ })[];
759
+ sticky: boolean;
760
+ }, {
761
+ distribution?: number[] | undefined;
762
+ traffic?: number | undefined;
763
+ components?: unknown[] | undefined;
764
+ sticky?: boolean | undefined;
765
+ }>>;
766
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
767
+ id: z.ZodString;
768
+ name: z.ZodOptional<z.ZodString>;
769
+ description: z.ZodOptional<z.ZodString>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ id: string;
772
+ name?: string | undefined;
773
+ description?: string | undefined;
774
+ }, {
775
+ id: string;
776
+ name?: string | undefined;
777
+ description?: string | undefined;
778
+ }>>>;
779
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
780
+ id: z.ZodString;
781
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
782
+ id: z.ZodString;
783
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
784
+ id: z.ZodString;
785
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
786
+ id: z.ZodString;
787
+ }, z.ZodUnknown, "strip">[], unknown>>;
788
+ }, {
789
+ type: z.ZodString;
790
+ }>, z.ZodTypeAny, "passthrough">>;
791
+ augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
792
+ id: z.ZodString;
793
+ name: z.ZodString;
794
+ description: z.ZodOptional<z.ZodString>;
795
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
796
+ config: z.ZodDefault<z.ZodObject<{
797
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
798
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
799
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
800
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
801
+ baseline: z.ZodObject<{
802
+ id: z.ZodString;
803
+ hidden: z.ZodDefault<z.ZodBoolean>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ id: string;
806
+ hidden: boolean;
807
+ }, {
808
+ id: string;
809
+ hidden?: boolean | undefined;
810
+ }>;
811
+ variants: z.ZodArray<z.ZodObject<{
812
+ id: z.ZodString;
813
+ hidden: z.ZodDefault<z.ZodBoolean>;
814
+ }, "strip", z.ZodTypeAny, {
815
+ id: string;
816
+ hidden: boolean;
817
+ }, {
818
+ id: string;
819
+ hidden?: boolean | undefined;
820
+ }>, "many">;
821
+ }, "strip", z.ZodTypeAny, {
822
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
823
+ baseline: {
824
+ id: string;
825
+ hidden: boolean;
826
+ };
827
+ variants: {
828
+ id: string;
829
+ hidden: boolean;
830
+ }[];
831
+ }, {
832
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
833
+ baseline: {
834
+ id: string;
835
+ hidden?: boolean | undefined;
836
+ };
837
+ variants: {
838
+ id: string;
839
+ hidden?: boolean | undefined;
840
+ }[];
841
+ }>, z.ZodObject<{
842
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
843
+ key: z.ZodString;
844
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
845
+ baseline: z.ZodObject<{
846
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
847
+ }, "strip", z.ZodTypeAny, {
848
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
849
+ }, {
850
+ value?: unknown;
851
+ }>;
852
+ variants: z.ZodArray<z.ZodObject<{
853
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
856
+ }, {
857
+ value?: unknown;
858
+ }>, "many">;
859
+ }, "strip", z.ZodTypeAny, {
860
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
861
+ baseline: {
862
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
863
+ };
864
+ variants: {
865
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
866
+ }[];
867
+ key: string;
868
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
869
+ }, {
870
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
871
+ baseline: {
872
+ value?: unknown;
873
+ };
874
+ variants: {
875
+ value?: unknown;
876
+ }[];
877
+ key: string;
878
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
879
+ }>]>, {
880
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
881
+ baseline: {
882
+ id: string;
883
+ hidden: boolean;
884
+ };
885
+ variants: {
886
+ id: string;
887
+ hidden: boolean;
888
+ }[];
889
+ } | {
890
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
891
+ baseline: {
892
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
893
+ };
894
+ variants: {
895
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
896
+ }[];
897
+ key: string;
898
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
899
+ }, unknown>, "many">>>;
900
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ distribution: number[];
903
+ traffic: number;
904
+ components: ({
905
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
906
+ baseline: {
907
+ id: string;
908
+ hidden: boolean;
909
+ };
910
+ variants: {
911
+ id: string;
912
+ hidden: boolean;
913
+ }[];
914
+ } | {
915
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
916
+ baseline: {
917
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
918
+ };
919
+ variants: {
920
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
921
+ }[];
922
+ key: string;
923
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
924
+ })[];
925
+ sticky: boolean;
926
+ }, {
927
+ distribution?: number[] | undefined;
928
+ traffic?: number | undefined;
929
+ components?: unknown[] | undefined;
930
+ sticky?: boolean | undefined;
931
+ }>>;
932
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
933
+ id: z.ZodString;
934
+ name: z.ZodOptional<z.ZodString>;
935
+ description: z.ZodOptional<z.ZodString>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ id: string;
938
+ name?: string | undefined;
939
+ description?: string | undefined;
940
+ }, {
941
+ id: string;
942
+ name?: string | undefined;
943
+ description?: string | undefined;
944
+ }>>>;
945
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
946
+ id: z.ZodString;
947
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
948
+ id: z.ZodString;
949
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
950
+ id: z.ZodString;
951
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
952
+ id: z.ZodString;
953
+ }, z.ZodUnknown, "strip">[], unknown>>;
954
+ }, {
955
+ type: z.ZodString;
956
+ }>, Augmentation>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
957
+ id: z.ZodString;
958
+ name: z.ZodString;
959
+ description: z.ZodOptional<z.ZodString>;
960
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
961
+ config: z.ZodDefault<z.ZodObject<{
962
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
963
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
964
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
965
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
966
+ baseline: z.ZodObject<{
967
+ id: z.ZodString;
968
+ hidden: z.ZodDefault<z.ZodBoolean>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ id: string;
971
+ hidden: boolean;
972
+ }, {
973
+ id: string;
974
+ hidden?: boolean | undefined;
975
+ }>;
976
+ variants: z.ZodArray<z.ZodObject<{
977
+ id: z.ZodString;
978
+ hidden: z.ZodDefault<z.ZodBoolean>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ id: string;
981
+ hidden: boolean;
982
+ }, {
983
+ id: string;
984
+ hidden?: boolean | undefined;
985
+ }>, "many">;
986
+ }, "strip", z.ZodTypeAny, {
987
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
988
+ baseline: {
989
+ id: string;
990
+ hidden: boolean;
991
+ };
992
+ variants: {
993
+ id: string;
994
+ hidden: boolean;
995
+ }[];
996
+ }, {
997
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
998
+ baseline: {
999
+ id: string;
1000
+ hidden?: boolean | undefined;
1001
+ };
1002
+ variants: {
1003
+ id: string;
1004
+ hidden?: boolean | undefined;
1005
+ }[];
1006
+ }>, z.ZodObject<{
1007
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1008
+ key: z.ZodString;
1009
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1010
+ baseline: z.ZodObject<{
1011
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1014
+ }, {
1015
+ value?: unknown;
1016
+ }>;
1017
+ variants: z.ZodArray<z.ZodObject<{
1018
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1021
+ }, {
1022
+ value?: unknown;
1023
+ }>, "many">;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1026
+ baseline: {
1027
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1028
+ };
1029
+ variants: {
1030
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1031
+ }[];
1032
+ key: string;
1033
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1034
+ }, {
1035
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1036
+ baseline: {
1037
+ value?: unknown;
1038
+ };
1039
+ variants: {
1040
+ value?: unknown;
1041
+ }[];
1042
+ key: string;
1043
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1044
+ }>]>, {
1045
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1046
+ baseline: {
1047
+ id: string;
1048
+ hidden: boolean;
1049
+ };
1050
+ variants: {
1051
+ id: string;
1052
+ hidden: boolean;
1053
+ }[];
1054
+ } | {
1055
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1056
+ baseline: {
1057
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1058
+ };
1059
+ variants: {
1060
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1061
+ }[];
1062
+ key: string;
1063
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1064
+ }, unknown>, "many">>>;
1065
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ distribution: number[];
1068
+ traffic: number;
1069
+ components: ({
1070
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1071
+ baseline: {
1072
+ id: string;
1073
+ hidden: boolean;
1074
+ };
1075
+ variants: {
1076
+ id: string;
1077
+ hidden: boolean;
1078
+ }[];
1079
+ } | {
1080
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1081
+ baseline: {
1082
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1083
+ };
1084
+ variants: {
1085
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1086
+ }[];
1087
+ key: string;
1088
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1089
+ })[];
1090
+ sticky: boolean;
1091
+ }, {
1092
+ distribution?: number[] | undefined;
1093
+ traffic?: number | undefined;
1094
+ components?: unknown[] | undefined;
1095
+ sticky?: boolean | undefined;
1096
+ }>>;
1097
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1098
+ id: z.ZodString;
1099
+ name: z.ZodOptional<z.ZodString>;
1100
+ description: z.ZodOptional<z.ZodString>;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ id: string;
1103
+ name?: string | undefined;
1104
+ description?: string | undefined;
1105
+ }, {
1106
+ id: string;
1107
+ name?: string | undefined;
1108
+ description?: string | undefined;
1109
+ }>>>;
1110
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1111
+ id: z.ZodString;
1112
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1113
+ id: z.ZodString;
1114
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1115
+ id: z.ZodString;
1116
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1117
+ id: z.ZodString;
1118
+ }, z.ZodUnknown, "strip">[], unknown>>;
1119
+ }, {
1120
+ type: z.ZodString;
1121
+ }>, Augmentation>>> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1122
+ id: z.ZodString;
1123
+ name: z.ZodString;
1124
+ description: z.ZodOptional<z.ZodString>;
1125
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1126
+ config: z.ZodDefault<z.ZodObject<{
1127
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1128
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1129
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1130
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1131
+ baseline: z.ZodObject<{
1132
+ id: z.ZodString;
1133
+ hidden: z.ZodDefault<z.ZodBoolean>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ id: string;
1136
+ hidden: boolean;
1137
+ }, {
1138
+ id: string;
1139
+ hidden?: boolean | undefined;
1140
+ }>;
1141
+ variants: z.ZodArray<z.ZodObject<{
1142
+ id: z.ZodString;
1143
+ hidden: z.ZodDefault<z.ZodBoolean>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ id: string;
1146
+ hidden: boolean;
1147
+ }, {
1148
+ id: string;
1149
+ hidden?: boolean | undefined;
1150
+ }>, "many">;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1153
+ baseline: {
1154
+ id: string;
1155
+ hidden: boolean;
1156
+ };
1157
+ variants: {
1158
+ id: string;
1159
+ hidden: boolean;
1160
+ }[];
1161
+ }, {
1162
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1163
+ baseline: {
1164
+ id: string;
1165
+ hidden?: boolean | undefined;
1166
+ };
1167
+ variants: {
1168
+ id: string;
1169
+ hidden?: boolean | undefined;
1170
+ }[];
1171
+ }>, z.ZodObject<{
1172
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1173
+ key: z.ZodString;
1174
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1175
+ baseline: z.ZodObject<{
1176
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1179
+ }, {
1180
+ value?: unknown;
1181
+ }>;
1182
+ variants: z.ZodArray<z.ZodObject<{
1183
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1186
+ }, {
1187
+ value?: unknown;
1188
+ }>, "many">;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1191
+ baseline: {
1192
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1193
+ };
1194
+ variants: {
1195
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1196
+ }[];
1197
+ key: string;
1198
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1199
+ }, {
1200
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1201
+ baseline: {
1202
+ value?: unknown;
1203
+ };
1204
+ variants: {
1205
+ value?: unknown;
1206
+ }[];
1207
+ key: string;
1208
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1209
+ }>]>, {
1210
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1211
+ baseline: {
1212
+ id: string;
1213
+ hidden: boolean;
1214
+ };
1215
+ variants: {
1216
+ id: string;
1217
+ hidden: boolean;
1218
+ }[];
1219
+ } | {
1220
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1221
+ baseline: {
1222
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1223
+ };
1224
+ variants: {
1225
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1226
+ }[];
1227
+ key: string;
1228
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1229
+ }, unknown>, "many">>>;
1230
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ distribution: number[];
1233
+ traffic: number;
1234
+ components: ({
1235
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1236
+ baseline: {
1237
+ id: string;
1238
+ hidden: boolean;
1239
+ };
1240
+ variants: {
1241
+ id: string;
1242
+ hidden: boolean;
1243
+ }[];
1244
+ } | {
1245
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1246
+ baseline: {
1247
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1248
+ };
1249
+ variants: {
1250
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1251
+ }[];
1252
+ key: string;
1253
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1254
+ })[];
1255
+ sticky: boolean;
1256
+ }, {
1257
+ distribution?: number[] | undefined;
1258
+ traffic?: number | undefined;
1259
+ components?: unknown[] | undefined;
1260
+ sticky?: boolean | undefined;
1261
+ }>>;
1262
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1263
+ id: z.ZodString;
1264
+ name: z.ZodOptional<z.ZodString>;
1265
+ description: z.ZodOptional<z.ZodString>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ id: string;
1268
+ name?: string | undefined;
1269
+ description?: string | undefined;
1270
+ }, {
1271
+ id: string;
1272
+ name?: string | undefined;
1273
+ description?: string | undefined;
1274
+ }>>>;
1275
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1276
+ id: z.ZodString;
1277
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1278
+ id: z.ZodString;
1279
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1280
+ id: z.ZodString;
1281
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1282
+ id: z.ZodString;
1283
+ }, z.ZodUnknown, "strip">[], unknown>>;
1284
+ }, {
1285
+ type: z.ZodString;
1286
+ }>, Augmentation>>>[k]; } : never, z.baseObjectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1287
+ id: z.ZodString;
1288
+ name: z.ZodString;
1289
+ description: z.ZodOptional<z.ZodString>;
1290
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1291
+ config: z.ZodDefault<z.ZodObject<{
1292
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1293
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1294
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1295
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1296
+ baseline: z.ZodObject<{
1297
+ id: z.ZodString;
1298
+ hidden: z.ZodDefault<z.ZodBoolean>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ id: string;
1301
+ hidden: boolean;
1302
+ }, {
1303
+ id: string;
1304
+ hidden?: boolean | undefined;
1305
+ }>;
1306
+ variants: z.ZodArray<z.ZodObject<{
1307
+ id: z.ZodString;
1308
+ hidden: z.ZodDefault<z.ZodBoolean>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ id: string;
1311
+ hidden: boolean;
1312
+ }, {
1313
+ id: string;
1314
+ hidden?: boolean | undefined;
1315
+ }>, "many">;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1318
+ baseline: {
1319
+ id: string;
1320
+ hidden: boolean;
1321
+ };
1322
+ variants: {
1323
+ id: string;
1324
+ hidden: boolean;
1325
+ }[];
1326
+ }, {
1327
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1328
+ baseline: {
1329
+ id: string;
1330
+ hidden?: boolean | undefined;
1331
+ };
1332
+ variants: {
1333
+ id: string;
1334
+ hidden?: boolean | undefined;
1335
+ }[];
1336
+ }>, z.ZodObject<{
1337
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1338
+ key: z.ZodString;
1339
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1340
+ baseline: z.ZodObject<{
1341
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1344
+ }, {
1345
+ value?: unknown;
1346
+ }>;
1347
+ variants: z.ZodArray<z.ZodObject<{
1348
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1351
+ }, {
1352
+ value?: unknown;
1353
+ }>, "many">;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1356
+ baseline: {
1357
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1358
+ };
1359
+ variants: {
1360
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1361
+ }[];
1362
+ key: string;
1363
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1364
+ }, {
1365
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1366
+ baseline: {
1367
+ value?: unknown;
1368
+ };
1369
+ variants: {
1370
+ value?: unknown;
1371
+ }[];
1372
+ key: string;
1373
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1374
+ }>]>, {
1375
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1376
+ baseline: {
1377
+ id: string;
1378
+ hidden: boolean;
1379
+ };
1380
+ variants: {
1381
+ id: string;
1382
+ hidden: boolean;
1383
+ }[];
1384
+ } | {
1385
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1386
+ baseline: {
1387
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1388
+ };
1389
+ variants: {
1390
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1391
+ }[];
1392
+ key: string;
1393
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1394
+ }, unknown>, "many">>>;
1395
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ distribution: number[];
1398
+ traffic: number;
1399
+ components: ({
1400
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1401
+ baseline: {
1402
+ id: string;
1403
+ hidden: boolean;
1404
+ };
1405
+ variants: {
1406
+ id: string;
1407
+ hidden: boolean;
1408
+ }[];
1409
+ } | {
1410
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1411
+ baseline: {
1412
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1413
+ };
1414
+ variants: {
1415
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1416
+ }[];
1417
+ key: string;
1418
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1419
+ })[];
1420
+ sticky: boolean;
1421
+ }, {
1422
+ distribution?: number[] | undefined;
1423
+ traffic?: number | undefined;
1424
+ components?: unknown[] | undefined;
1425
+ sticky?: boolean | undefined;
1426
+ }>>;
1427
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ name: z.ZodOptional<z.ZodString>;
1430
+ description: z.ZodOptional<z.ZodString>;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ id: string;
1433
+ name?: string | undefined;
1434
+ description?: string | undefined;
1435
+ }, {
1436
+ id: string;
1437
+ name?: string | undefined;
1438
+ description?: string | undefined;
1439
+ }>>>;
1440
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1441
+ id: z.ZodString;
1442
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1443
+ id: z.ZodString;
1444
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1445
+ id: z.ZodString;
1446
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1447
+ id: z.ZodString;
1448
+ }, z.ZodUnknown, "strip">[], unknown>>;
1449
+ }, {
1450
+ type: z.ZodString;
1451
+ }>, Augmentation>> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1452
+ id: z.ZodString;
1453
+ name: z.ZodString;
1454
+ description: z.ZodOptional<z.ZodString>;
1455
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1456
+ config: z.ZodDefault<z.ZodObject<{
1457
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1458
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1459
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1460
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1461
+ baseline: z.ZodObject<{
1462
+ id: z.ZodString;
1463
+ hidden: z.ZodDefault<z.ZodBoolean>;
1464
+ }, "strip", z.ZodTypeAny, {
1465
+ id: string;
1466
+ hidden: boolean;
1467
+ }, {
1468
+ id: string;
1469
+ hidden?: boolean | undefined;
1470
+ }>;
1471
+ variants: z.ZodArray<z.ZodObject<{
1472
+ id: z.ZodString;
1473
+ hidden: z.ZodDefault<z.ZodBoolean>;
1474
+ }, "strip", z.ZodTypeAny, {
1475
+ id: string;
1476
+ hidden: boolean;
1477
+ }, {
1478
+ id: string;
1479
+ hidden?: boolean | undefined;
1480
+ }>, "many">;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1483
+ baseline: {
1484
+ id: string;
1485
+ hidden: boolean;
1486
+ };
1487
+ variants: {
1488
+ id: string;
1489
+ hidden: boolean;
1490
+ }[];
1491
+ }, {
1492
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1493
+ baseline: {
1494
+ id: string;
1495
+ hidden?: boolean | undefined;
1496
+ };
1497
+ variants: {
1498
+ id: string;
1499
+ hidden?: boolean | undefined;
1500
+ }[];
1501
+ }>, z.ZodObject<{
1502
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1503
+ key: z.ZodString;
1504
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1505
+ baseline: z.ZodObject<{
1506
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1509
+ }, {
1510
+ value?: unknown;
1511
+ }>;
1512
+ variants: z.ZodArray<z.ZodObject<{
1513
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1514
+ }, "strip", z.ZodTypeAny, {
1515
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1516
+ }, {
1517
+ value?: unknown;
1518
+ }>, "many">;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1521
+ baseline: {
1522
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1523
+ };
1524
+ variants: {
1525
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1526
+ }[];
1527
+ key: string;
1528
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1529
+ }, {
1530
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1531
+ baseline: {
1532
+ value?: unknown;
1533
+ };
1534
+ variants: {
1535
+ value?: unknown;
1536
+ }[];
1537
+ key: string;
1538
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1539
+ }>]>, {
1540
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1541
+ baseline: {
1542
+ id: string;
1543
+ hidden: boolean;
1544
+ };
1545
+ variants: {
1546
+ id: string;
1547
+ hidden: boolean;
1548
+ }[];
1549
+ } | {
1550
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1551
+ baseline: {
1552
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1553
+ };
1554
+ variants: {
1555
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1556
+ }[];
1557
+ key: string;
1558
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1559
+ }, unknown>, "many">>>;
1560
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ distribution: number[];
1563
+ traffic: number;
1564
+ components: ({
1565
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1566
+ baseline: {
1567
+ id: string;
1568
+ hidden: boolean;
1569
+ };
1570
+ variants: {
1571
+ id: string;
1572
+ hidden: boolean;
1573
+ }[];
1574
+ } | {
1575
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1576
+ baseline: {
1577
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1578
+ };
1579
+ variants: {
1580
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1581
+ }[];
1582
+ key: string;
1583
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1584
+ })[];
1585
+ sticky: boolean;
1586
+ }, {
1587
+ distribution?: number[] | undefined;
1588
+ traffic?: number | undefined;
1589
+ components?: unknown[] | undefined;
1590
+ sticky?: boolean | undefined;
1591
+ }>>;
1592
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1593
+ id: z.ZodString;
1594
+ name: z.ZodOptional<z.ZodString>;
1595
+ description: z.ZodOptional<z.ZodString>;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ id: string;
1598
+ name?: string | undefined;
1599
+ description?: string | undefined;
1600
+ }, {
1601
+ id: string;
1602
+ name?: string | undefined;
1603
+ description?: string | undefined;
1604
+ }>>>;
1605
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1606
+ id: z.ZodString;
1607
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1608
+ id: z.ZodString;
1609
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1610
+ id: z.ZodString;
1611
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1612
+ id: z.ZodString;
1613
+ }, z.ZodUnknown, "strip">[], unknown>>;
1614
+ }, {
1615
+ type: z.ZodString;
1616
+ }>, Augmentation>>[k_1]; } : never>;
1617
+ _type: {
1618
+ id: string;
1619
+ name: string;
1620
+ type: string;
1621
+ variants: z.objectOutputType<{
1622
+ id: z.ZodString;
1623
+ }, z.ZodUnknown, "strip">[];
1624
+ config: {
1625
+ distribution: number[];
1626
+ traffic: number;
1627
+ components: ({
1628
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1629
+ baseline: {
1630
+ id: string;
1631
+ hidden: boolean;
1632
+ };
1633
+ variants: {
1634
+ id: string;
1635
+ hidden: boolean;
1636
+ }[];
1637
+ } | {
1638
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1639
+ baseline: {
1640
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1641
+ };
1642
+ variants: {
1643
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1644
+ }[];
1645
+ key: string;
1646
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1647
+ })[];
1648
+ sticky: boolean;
1649
+ };
1650
+ description?: string | undefined;
1651
+ audience?: {
1652
+ id: string;
1653
+ name?: string | undefined;
1654
+ description?: string | undefined;
1655
+ } | null | undefined;
1656
+ };
1657
+ _output: {
1658
+ id: string;
1659
+ name: string;
1660
+ type: string;
1661
+ variants: z.objectOutputType<{
1662
+ id: z.ZodString;
1663
+ }, z.ZodUnknown, "strip">[];
1664
+ config: {
1665
+ distribution: number[];
1666
+ traffic: number;
1667
+ components: ({
1668
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1669
+ baseline: {
1670
+ id: string;
1671
+ hidden: boolean;
1672
+ };
1673
+ variants: {
1674
+ id: string;
1675
+ hidden: boolean;
1676
+ }[];
1677
+ } | {
1678
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1679
+ baseline: {
1680
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1681
+ };
1682
+ variants: {
1683
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1684
+ }[];
1685
+ key: string;
1686
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1687
+ })[];
1688
+ sticky: boolean;
1689
+ };
1690
+ description?: string | undefined;
1691
+ audience?: {
1692
+ id: string;
1693
+ name?: string | undefined;
1694
+ description?: string | undefined;
1695
+ } | null | undefined;
1696
+ };
1697
+ _input: {
1698
+ id: string;
1699
+ name: string;
1700
+ type: string;
1701
+ description?: string | undefined;
1702
+ variants?: unknown;
1703
+ config?: {
1704
+ distribution?: number[] | undefined;
1705
+ traffic?: number | undefined;
1706
+ components?: unknown[] | undefined;
1707
+ sticky?: boolean | undefined;
1708
+ } | undefined;
1709
+ audience?: {
1710
+ id: string;
1711
+ name?: string | undefined;
1712
+ description?: string | undefined;
1713
+ } | null | undefined;
1714
+ };
1715
+ _def: z.ZodObjectDef<z.objectUtil.extendShape<{
1716
+ id: z.ZodString;
1717
+ name: z.ZodString;
1718
+ description: z.ZodOptional<z.ZodString>;
1719
+ type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1720
+ config: z.ZodDefault<z.ZodObject<{
1721
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1722
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1723
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1724
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.EntryReplacement>;
1725
+ baseline: z.ZodObject<{
1726
+ id: z.ZodString;
1727
+ hidden: z.ZodDefault<z.ZodBoolean>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ id: string;
1730
+ hidden: boolean;
1731
+ }, {
1732
+ id: string;
1733
+ hidden?: boolean | undefined;
1734
+ }>;
1735
+ variants: z.ZodArray<z.ZodObject<{
1736
+ id: z.ZodString;
1737
+ hidden: z.ZodDefault<z.ZodBoolean>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ id: string;
1740
+ hidden: boolean;
1741
+ }, {
1742
+ id: string;
1743
+ hidden?: boolean | undefined;
1744
+ }>, "many">;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1747
+ baseline: {
1748
+ id: string;
1749
+ hidden: boolean;
1750
+ };
1751
+ variants: {
1752
+ id: string;
1753
+ hidden: boolean;
1754
+ }[];
1755
+ }, {
1756
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1757
+ baseline: {
1758
+ id: string;
1759
+ hidden?: boolean | undefined;
1760
+ };
1761
+ variants: {
1762
+ id: string;
1763
+ hidden?: boolean | undefined;
1764
+ }[];
1765
+ }>, z.ZodObject<{
1766
+ type: z.ZodLiteral<import("./Config").ComponentTypeEnum.InlineVariable>;
1767
+ key: z.ZodString;
1768
+ valueType: z.ZodNativeEnum<typeof import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum>;
1769
+ baseline: z.ZodObject<{
1770
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1773
+ }, {
1774
+ value?: unknown;
1775
+ }>;
1776
+ variants: z.ZodArray<z.ZodObject<{
1777
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1780
+ }, {
1781
+ value?: unknown;
1782
+ }>, "many">;
1783
+ }, "strip", z.ZodTypeAny, {
1784
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1785
+ baseline: {
1786
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1787
+ };
1788
+ variants: {
1789
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1790
+ }[];
1791
+ key: string;
1792
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1793
+ }, {
1794
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1795
+ baseline: {
1796
+ value?: unknown;
1797
+ };
1798
+ variants: {
1799
+ value?: unknown;
1800
+ }[];
1801
+ key: string;
1802
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1803
+ }>]>, {
1804
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1805
+ baseline: {
1806
+ id: string;
1807
+ hidden: boolean;
1808
+ };
1809
+ variants: {
1810
+ id: string;
1811
+ hidden: boolean;
1812
+ }[];
1813
+ } | {
1814
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1815
+ baseline: {
1816
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1817
+ };
1818
+ variants: {
1819
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1820
+ }[];
1821
+ key: string;
1822
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1823
+ }, unknown>, "many">>>;
1824
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ distribution: number[];
1827
+ traffic: number;
1828
+ components: ({
1829
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1830
+ baseline: {
1831
+ id: string;
1832
+ hidden: boolean;
1833
+ };
1834
+ variants: {
1835
+ id: string;
1836
+ hidden: boolean;
1837
+ }[];
1838
+ } | {
1839
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1840
+ baseline: {
1841
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1842
+ };
1843
+ variants: {
1844
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1845
+ }[];
1846
+ key: string;
1847
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1848
+ })[];
1849
+ sticky: boolean;
1850
+ }, {
1851
+ distribution?: number[] | undefined;
1852
+ traffic?: number | undefined;
1853
+ components?: unknown[] | undefined;
1854
+ sticky?: boolean | undefined;
1855
+ }>>;
1856
+ audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1857
+ id: z.ZodString;
1858
+ name: z.ZodOptional<z.ZodString>;
1859
+ description: z.ZodOptional<z.ZodString>;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ id: string;
1862
+ name?: string | undefined;
1863
+ description?: string | undefined;
1864
+ }, {
1865
+ id: string;
1866
+ name?: string | undefined;
1867
+ description?: string | undefined;
1868
+ }>>>;
1869
+ variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1870
+ id: z.ZodString;
1871
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1872
+ id: z.ZodString;
1873
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1874
+ id: z.ZodString;
1875
+ }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1876
+ id: z.ZodString;
1877
+ }, z.ZodUnknown, "strip">[], unknown>>;
1878
+ }, {
1879
+ type: z.ZodString;
1880
+ }>, "strip", z.ZodTypeAny>;
1881
+ spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
1882
+ id: string;
1883
+ name: string;
1884
+ type: string;
1885
+ description?: string | undefined;
1886
+ variants?: unknown;
1887
+ config?: {
1888
+ distribution?: number[] | undefined;
1889
+ traffic?: number | undefined;
1890
+ components?: unknown[] | undefined;
1891
+ sticky?: boolean | undefined;
1892
+ } | undefined;
1893
+ audience?: {
1894
+ id: string;
1895
+ name?: string | undefined;
1896
+ description?: string | undefined;
1897
+ } | null | undefined;
1898
+ }, {
1899
+ id: string;
1900
+ name: string;
1901
+ type: string;
1902
+ variants: z.objectOutputType<{
1903
+ id: z.ZodString;
1904
+ }, z.ZodUnknown, "strip">[];
1905
+ config: {
1906
+ distribution: number[];
1907
+ traffic: number;
1908
+ components: ({
1909
+ type: import("./Config").ComponentTypeEnum.EntryReplacement;
1910
+ baseline: {
1911
+ id: string;
1912
+ hidden: boolean;
1913
+ };
1914
+ variants: {
1915
+ id: string;
1916
+ hidden: boolean;
1917
+ }[];
1918
+ } | {
1919
+ type: import("./Config").ComponentTypeEnum.InlineVariable;
1920
+ baseline: {
1921
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1922
+ };
1923
+ variants: {
1924
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
1925
+ }[];
1926
+ key: string;
1927
+ valueType: import("@ninetailed/experience.js-shared").InlineVariableComponentValueTypeEnum;
1928
+ })[];
1929
+ sticky: boolean;
1930
+ };
1931
+ description?: string | undefined;
1932
+ audience?: {
1933
+ id: string;
1934
+ name?: string | undefined;
1935
+ description?: string | undefined;
1936
+ } | null | undefined;
1937
+ }>>;
1938
+ };
1939
+ export {};