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