@ninetailed/experience.js-utils 7.6.0 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,6 +143,7 @@ export declare const ExperienceSchema: z.ZodObject<{
143
143
  name: string;
144
144
  type: string;
145
145
  description?: string | undefined;
146
+ variants?: unknown;
146
147
  config?: {
147
148
  distribution?: number[] | undefined;
148
149
  traffic?: number | undefined;
@@ -162,7 +163,6 @@ export declare const ExperienceSchema: z.ZodObject<{
162
163
  name?: string | undefined;
163
164
  description?: string | undefined;
164
165
  } | null | undefined;
165
- variants?: unknown;
166
166
  }>;
167
167
  type ExperienceInput = z.input<typeof ExperienceSchema>;
168
168
  export type ExperienceLike<Variant extends Reference = Reference> = Omit<ExperienceInput, 'variants'> & {
@@ -179,6 +179,7 @@ export declare const Experience: {
179
179
  name: string;
180
180
  type: string;
181
181
  description?: string | undefined;
182
+ variants?: unknown;
182
183
  config?: {
183
184
  distribution?: number[] | undefined;
184
185
  traffic?: number | undefined;
@@ -198,7 +199,6 @@ export declare const Experience: {
198
199
  name?: string | undefined;
199
200
  description?: string | undefined;
200
201
  } | null | undefined;
201
- variants?: unknown;
202
202
  }> | {
203
203
  data: {
204
204
  variants: T_1[];
@@ -227,6 +227,7 @@ export declare const Experience: {
227
227
  } | null | undefined;
228
228
  };
229
229
  success: true;
230
+ error?: undefined;
230
231
  };
231
232
  nonstrict: () => z.ZodObject<{
232
233
  id: z.ZodString;
@@ -562,7 +563,7 @@ export declare const Experience: {
562
563
  id: z.ZodString;
563
564
  }, z.ZodUnknown, "strip">[], unknown>>;
564
565
  }, z.ZodTypeAny, "passthrough">>;
565
- augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<Omit<{
566
+ augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => z.ZodObject<z.objectUtil.extendShape<{
566
567
  id: z.ZodString;
567
568
  /**
568
569
  * The name of the experience (Short Text)
@@ -673,7 +674,7 @@ export declare const Experience: {
673
674
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
674
675
  id: z.ZodString;
675
676
  }, z.ZodUnknown, "strip">[], unknown>>;
676
- }, keyof Augmentation> & Augmentation extends infer T_2 ? { [k in keyof T_2]: (Omit<{
677
+ }, Augmentation>, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<{
677
678
  id: z.ZodString;
678
679
  /**
679
680
  * The name of the experience (Short Text)
@@ -784,7 +785,7 @@ export declare const Experience: {
784
785
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
785
786
  id: z.ZodString;
786
787
  }, z.ZodUnknown, "strip">[], unknown>>;
787
- }, keyof Augmentation> & Augmentation)[k]; } : never, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Omit<{
788
+ }, Augmentation>>> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<z.objectUtil.extendShape<{
788
789
  id: z.ZodString;
789
790
  /**
790
791
  * The name of the experience (Short Text)
@@ -895,7 +896,7 @@ export declare const Experience: {
895
896
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
896
897
  id: z.ZodString;
897
898
  }, z.ZodUnknown, "strip">[], unknown>>;
898
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
899
+ }, Augmentation>>>[k]; } : never, z.baseObjectInputType<z.objectUtil.extendShape<{
899
900
  id: z.ZodString;
900
901
  /**
901
902
  * The name of the experience (Short Text)
@@ -1006,7 +1007,7 @@ export declare const Experience: {
1006
1007
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1007
1008
  id: z.ZodString;
1008
1009
  }, z.ZodUnknown, "strip">[], unknown>>;
1009
- }, keyof Augmentation> & Augmentation)[k_2]; } : never>, (z.baseObjectOutputType<Omit<{
1010
+ }, Augmentation>> extends infer T_3 ? { [k_1 in keyof T_3]: z.baseObjectInputType<z.objectUtil.extendShape<{
1010
1011
  id: z.ZodString;
1011
1012
  /**
1012
1013
  * The name of the experience (Short Text)
@@ -1117,45 +1118,18 @@ export declare const Experience: {
1117
1118
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1118
1119
  id: z.ZodString;
1119
1120
  }, z.ZodUnknown, "strip">[], unknown>>;
1120
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1121
- id: z.ZodString;
1122
- /**
1123
- * The name of the experience (Short Text)
1124
- */
1125
- name: z.ZodString;
1126
- /**
1127
- * The description of the experience (Short Text)
1128
- */
1129
- description: z.ZodOptional<z.ZodString>;
1130
- /**
1131
- * The type if the experience (nt_experiment | nt_personalization)
1132
- */
1133
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1134
- /**
1135
- * The config of the experience (JSON)
1136
- */
1137
- config: z.ZodDefault<z.ZodObject<{
1138
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1139
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1140
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1141
- baseline: z.ZodObject<{
1142
- id: z.ZodDefault<z.ZodString>;
1143
- }, "strip", z.ZodTypeAny, {
1144
- id: string;
1145
- }, {
1146
- id?: string | undefined;
1147
- }>;
1148
- variants: z.ZodArray<z.ZodObject<{
1149
- id: z.ZodDefault<z.ZodString>;
1150
- hidden: z.ZodDefault<z.ZodBoolean>;
1151
- }, "strip", z.ZodTypeAny, {
1152
- id: string;
1153
- hidden: boolean;
1154
- }, {
1155
- id?: string | undefined;
1156
- hidden?: boolean | undefined;
1157
- }>, "many">;
1158
- }, "strip", z.ZodTypeAny, {
1121
+ }, Augmentation>>[k_1]; } : never>;
1122
+ _type: {
1123
+ id: string;
1124
+ name: string;
1125
+ type: string;
1126
+ variants: z.objectOutputType<{
1127
+ id: z.ZodString;
1128
+ }, z.ZodUnknown, "strip">[];
1129
+ config: {
1130
+ distribution: number[];
1131
+ traffic: number;
1132
+ components: {
1159
1133
  baseline: {
1160
1134
  id: string;
1161
1135
  };
@@ -1163,17 +1137,24 @@ export declare const Experience: {
1163
1137
  id: string;
1164
1138
  hidden: boolean;
1165
1139
  }[];
1166
- }, {
1167
- baseline: {
1168
- id?: string | undefined;
1169
- };
1170
- variants: {
1171
- id?: string | undefined;
1172
- hidden?: boolean | undefined;
1173
- }[];
1174
- }>, "many">>>;
1175
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1176
- }, "strip", z.ZodTypeAny, {
1140
+ }[];
1141
+ sticky: boolean;
1142
+ };
1143
+ description?: string | undefined;
1144
+ audience?: {
1145
+ id: string;
1146
+ name?: string | undefined;
1147
+ description?: string | undefined;
1148
+ } | null | undefined;
1149
+ };
1150
+ _output: {
1151
+ id: string;
1152
+ name: string;
1153
+ type: string;
1154
+ variants: z.objectOutputType<{
1155
+ id: z.ZodString;
1156
+ }, z.ZodUnknown, "strip">[];
1157
+ config: {
1177
1158
  distribution: number[];
1178
1159
  traffic: number;
1179
1160
  components: {
@@ -1186,7 +1167,21 @@ export declare const Experience: {
1186
1167
  }[];
1187
1168
  }[];
1188
1169
  sticky: boolean;
1189
- }, {
1170
+ };
1171
+ description?: string | undefined;
1172
+ audience?: {
1173
+ id: string;
1174
+ name?: string | undefined;
1175
+ description?: string | undefined;
1176
+ } | null | undefined;
1177
+ };
1178
+ _input: {
1179
+ id: string;
1180
+ name: string;
1181
+ type: string;
1182
+ description?: string | undefined;
1183
+ variants?: unknown;
1184
+ config?: {
1190
1185
  distribution?: number[] | undefined;
1191
1186
  traffic?: number | undefined;
1192
1187
  components?: {
@@ -1199,36 +1194,14 @@ export declare const Experience: {
1199
1194
  }[];
1200
1195
  }[] | undefined;
1201
1196
  sticky?: boolean | undefined;
1202
- }>>;
1203
- /**
1204
- * The audience of the experience (Audience)
1205
- */
1206
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1207
- id: z.ZodString;
1208
- name: z.ZodOptional<z.ZodString>;
1209
- description: z.ZodOptional<z.ZodString>;
1210
- }, "strip", z.ZodTypeAny, {
1211
- id: string;
1212
- name?: string | undefined;
1213
- description?: string | undefined;
1214
- }, {
1197
+ } | undefined;
1198
+ audience?: {
1215
1199
  id: string;
1216
1200
  name?: string | undefined;
1217
1201
  description?: string | undefined;
1218
- }>>>;
1219
- /**
1220
- * All used variants of the experience (References to other Content Types)
1221
- */
1222
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1223
- id: z.ZodString;
1224
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1225
- id: z.ZodString;
1226
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1227
- id: z.ZodString;
1228
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1229
- id: z.ZodString;
1230
- }, z.ZodUnknown, "strip">[], unknown>>;
1231
- }, keyof Augmentation> & Augmentation)[k_2]; } : never> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends z.baseObjectOutputType<Omit<{
1202
+ } | null | undefined;
1203
+ };
1204
+ _def: z.ZodObjectDef<{
1232
1205
  id: z.ZodString;
1233
1206
  /**
1234
1207
  * The name of the experience (Short Text)
@@ -1339,76 +1312,14 @@ export declare const Experience: {
1339
1312
  }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1340
1313
  id: z.ZodString;
1341
1314
  }, z.ZodUnknown, "strip">[], unknown>>;
1342
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1343
- id: z.ZodString;
1344
- /**
1345
- * The name of the experience (Short Text)
1346
- */
1347
- name: z.ZodString;
1348
- /**
1349
- * The description of the experience (Short Text)
1350
- */
1351
- description: z.ZodOptional<z.ZodString>;
1352
- /**
1353
- * The type if the experience (nt_experiment | nt_personalization)
1354
- */
1355
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1356
- /**
1357
- * The config of the experience (JSON)
1358
- */
1359
- config: z.ZodDefault<z.ZodObject<{
1360
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1361
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1362
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
- baseline: z.ZodObject<{
1364
- id: z.ZodDefault<z.ZodString>;
1365
- }, "strip", z.ZodTypeAny, {
1366
- id: string;
1367
- }, {
1368
- id?: string | undefined;
1369
- }>;
1370
- variants: z.ZodArray<z.ZodObject<{
1371
- id: z.ZodDefault<z.ZodString>;
1372
- hidden: z.ZodDefault<z.ZodBoolean>;
1373
- }, "strip", z.ZodTypeAny, {
1374
- id: string;
1375
- hidden: boolean;
1376
- }, {
1377
- id?: string | undefined;
1378
- hidden?: boolean | undefined;
1379
- }>, "many">;
1380
- }, "strip", z.ZodTypeAny, {
1381
- baseline: {
1382
- id: string;
1383
- };
1384
- variants: {
1385
- id: string;
1386
- hidden: boolean;
1387
- }[];
1388
- }, {
1389
- baseline: {
1390
- id?: string | undefined;
1391
- };
1392
- variants: {
1393
- id?: string | undefined;
1394
- hidden?: boolean | undefined;
1395
- }[];
1396
- }>, "many">>>;
1397
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1398
- }, "strip", z.ZodTypeAny, {
1399
- distribution: number[];
1400
- traffic: number;
1401
- components: {
1402
- baseline: {
1403
- id: string;
1404
- };
1405
- variants: {
1406
- id: string;
1407
- hidden: boolean;
1408
- }[];
1409
- }[];
1410
- sticky: boolean;
1411
- }, {
1315
+ }, "strip", z.ZodTypeAny>;
1316
+ spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
1317
+ id: string;
1318
+ name: string;
1319
+ type: string;
1320
+ description?: string | undefined;
1321
+ variants?: unknown;
1322
+ config?: {
1412
1323
  distribution?: number[] | undefined;
1413
1324
  traffic?: number | undefined;
1414
1325
  components?: {
@@ -1421,1365 +1332,12 @@ export declare const Experience: {
1421
1332
  }[];
1422
1333
  }[] | undefined;
1423
1334
  sticky?: boolean | undefined;
1424
- }>>;
1425
- /**
1426
- * The audience of the experience (Audience)
1427
- */
1428
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1429
- id: z.ZodString;
1430
- name: z.ZodOptional<z.ZodString>;
1431
- description: z.ZodOptional<z.ZodString>;
1432
- }, "strip", z.ZodTypeAny, {
1433
- id: string;
1434
- name?: string | undefined;
1435
- description?: string | undefined;
1436
- }, {
1437
- id: string;
1438
- name?: string | undefined;
1439
- description?: string | undefined;
1440
- }>>>;
1441
- /**
1442
- * All used variants of the experience (References to other Content Types)
1443
- */
1444
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1445
- id: z.ZodString;
1446
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1447
- id: z.ZodString;
1448
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1449
- id: z.ZodString;
1450
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1451
- id: z.ZodString;
1452
- }, z.ZodUnknown, "strip">[], unknown>>;
1453
- }, keyof Augmentation> & Augmentation)[k_2]; } : never>[k_3] ? never : k_3; } : never)[keyof Augmentation | Exclude<"id", keyof Augmentation> | Exclude<"name", keyof Augmentation> | Exclude<"description", keyof Augmentation> | Exclude<"type", keyof Augmentation> | Exclude<"variants", keyof Augmentation> | Exclude<"config", keyof Augmentation> | Exclude<"audience", keyof Augmentation>]> extends infer T_3 ? { [k_1 in keyof T_3]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Omit<{
1454
- id: z.ZodString;
1455
- /**
1456
- * The name of the experience (Short Text)
1457
- */
1458
- name: z.ZodString;
1459
- /**
1460
- * The description of the experience (Short Text)
1461
- */
1462
- description: z.ZodOptional<z.ZodString>;
1463
- /**
1464
- * The type if the experience (nt_experiment | nt_personalization)
1465
- */
1466
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1467
- /**
1468
- * The config of the experience (JSON)
1469
- */
1470
- config: z.ZodDefault<z.ZodObject<{
1471
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1472
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1473
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1474
- baseline: z.ZodObject<{
1475
- id: z.ZodDefault<z.ZodString>;
1476
- }, "strip", z.ZodTypeAny, {
1477
- id: string;
1478
- }, {
1479
- id?: string | undefined;
1480
- }>;
1481
- variants: z.ZodArray<z.ZodObject<{
1482
- id: z.ZodDefault<z.ZodString>;
1483
- hidden: z.ZodDefault<z.ZodBoolean>;
1484
- }, "strip", z.ZodTypeAny, {
1485
- id: string;
1486
- hidden: boolean;
1487
- }, {
1488
- id?: string | undefined;
1489
- hidden?: boolean | undefined;
1490
- }>, "many">;
1491
- }, "strip", z.ZodTypeAny, {
1492
- baseline: {
1493
- id: string;
1494
- };
1495
- variants: {
1496
- id: string;
1497
- hidden: boolean;
1498
- }[];
1499
- }, {
1500
- baseline: {
1501
- id?: string | undefined;
1502
- };
1503
- variants: {
1504
- id?: string | undefined;
1505
- hidden?: boolean | undefined;
1506
- }[];
1507
- }>, "many">>>;
1508
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1509
- }, "strip", z.ZodTypeAny, {
1510
- distribution: number[];
1511
- traffic: number;
1512
- components: {
1513
- baseline: {
1514
- id: string;
1515
- };
1516
- variants: {
1517
- id: string;
1518
- hidden: boolean;
1519
- }[];
1520
- }[];
1521
- sticky: boolean;
1522
- }, {
1523
- distribution?: number[] | undefined;
1524
- traffic?: number | undefined;
1525
- components?: {
1526
- baseline: {
1527
- id?: string | undefined;
1528
- };
1529
- variants: {
1530
- id?: string | undefined;
1531
- hidden?: boolean | undefined;
1532
- }[];
1533
- }[] | undefined;
1534
- sticky?: boolean | undefined;
1535
- }>>;
1536
- /**
1537
- * The audience of the experience (Audience)
1538
- */
1539
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1540
- id: z.ZodString;
1541
- name: z.ZodOptional<z.ZodString>;
1542
- description: z.ZodOptional<z.ZodString>;
1543
- }, "strip", z.ZodTypeAny, {
1544
- id: string;
1545
- name?: string | undefined;
1546
- description?: string | undefined;
1547
- }, {
1548
- id: string;
1549
- name?: string | undefined;
1550
- description?: string | undefined;
1551
- }>>>;
1552
- /**
1553
- * All used variants of the experience (References to other Content Types)
1554
- */
1555
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1556
- id: z.ZodString;
1557
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1558
- id: z.ZodString;
1559
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1560
- id: z.ZodString;
1561
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1562
- id: z.ZodString;
1563
- }, z.ZodUnknown, "strip">[], unknown>>;
1564
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1565
- id: z.ZodString;
1566
- /**
1567
- * The name of the experience (Short Text)
1568
- */
1569
- name: z.ZodString;
1570
- /**
1571
- * The description of the experience (Short Text)
1572
- */
1573
- description: z.ZodOptional<z.ZodString>;
1574
- /**
1575
- * The type if the experience (nt_experiment | nt_personalization)
1576
- */
1577
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1578
- /**
1579
- * The config of the experience (JSON)
1580
- */
1581
- config: z.ZodDefault<z.ZodObject<{
1582
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1583
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1584
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1585
- baseline: z.ZodObject<{
1586
- id: z.ZodDefault<z.ZodString>;
1587
- }, "strip", z.ZodTypeAny, {
1588
- id: string;
1589
- }, {
1590
- id?: string | undefined;
1591
- }>;
1592
- variants: z.ZodArray<z.ZodObject<{
1593
- id: z.ZodDefault<z.ZodString>;
1594
- hidden: z.ZodDefault<z.ZodBoolean>;
1595
- }, "strip", z.ZodTypeAny, {
1596
- id: string;
1597
- hidden: boolean;
1598
- }, {
1599
- id?: string | undefined;
1600
- hidden?: boolean | undefined;
1601
- }>, "many">;
1602
- }, "strip", z.ZodTypeAny, {
1603
- baseline: {
1604
- id: string;
1605
- };
1606
- variants: {
1607
- id: string;
1608
- hidden: boolean;
1609
- }[];
1610
- }, {
1611
- baseline: {
1612
- id?: string | undefined;
1613
- };
1614
- variants: {
1615
- id?: string | undefined;
1616
- hidden?: boolean | undefined;
1617
- }[];
1618
- }>, "many">>>;
1619
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1620
- }, "strip", z.ZodTypeAny, {
1621
- distribution: number[];
1622
- traffic: number;
1623
- components: {
1624
- baseline: {
1625
- id: string;
1626
- };
1627
- variants: {
1628
- id: string;
1629
- hidden: boolean;
1630
- }[];
1631
- }[];
1632
- sticky: boolean;
1633
- }, {
1634
- distribution?: number[] | undefined;
1635
- traffic?: number | undefined;
1636
- components?: {
1637
- baseline: {
1638
- id?: string | undefined;
1639
- };
1640
- variants: {
1641
- id?: string | undefined;
1642
- hidden?: boolean | undefined;
1643
- }[];
1644
- }[] | undefined;
1645
- sticky?: boolean | undefined;
1646
- }>>;
1647
- /**
1648
- * The audience of the experience (Audience)
1649
- */
1650
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1651
- id: z.ZodString;
1652
- name: z.ZodOptional<z.ZodString>;
1653
- description: z.ZodOptional<z.ZodString>;
1654
- }, "strip", z.ZodTypeAny, {
1655
- id: string;
1656
- name?: string | undefined;
1657
- description?: string | undefined;
1658
- }, {
1659
- id: string;
1660
- name?: string | undefined;
1661
- description?: string | undefined;
1662
- }>>>;
1663
- /**
1664
- * All used variants of the experience (References to other Content Types)
1665
- */
1666
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1667
- id: z.ZodString;
1668
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1669
- id: z.ZodString;
1670
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1671
- id: z.ZodString;
1672
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1673
- id: z.ZodString;
1674
- }, z.ZodUnknown, "strip">[], unknown>>;
1675
- }, keyof Augmentation> & Augmentation)[k_2]; } : never>, (z.baseObjectOutputType<Omit<{
1676
- id: z.ZodString;
1677
- /**
1678
- * The name of the experience (Short Text)
1679
- */
1680
- name: z.ZodString;
1681
- /**
1682
- * The description of the experience (Short Text)
1683
- */
1684
- description: z.ZodOptional<z.ZodString>;
1685
- /**
1686
- * The type if the experience (nt_experiment | nt_personalization)
1687
- */
1688
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1689
- /**
1690
- * The config of the experience (JSON)
1691
- */
1692
- config: z.ZodDefault<z.ZodObject<{
1693
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1694
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1695
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1696
- baseline: z.ZodObject<{
1697
- id: z.ZodDefault<z.ZodString>;
1698
- }, "strip", z.ZodTypeAny, {
1699
- id: string;
1700
- }, {
1701
- id?: string | undefined;
1702
- }>;
1703
- variants: z.ZodArray<z.ZodObject<{
1704
- id: z.ZodDefault<z.ZodString>;
1705
- hidden: z.ZodDefault<z.ZodBoolean>;
1706
- }, "strip", z.ZodTypeAny, {
1707
- id: string;
1708
- hidden: boolean;
1709
- }, {
1710
- id?: string | undefined;
1711
- hidden?: boolean | undefined;
1712
- }>, "many">;
1713
- }, "strip", z.ZodTypeAny, {
1714
- baseline: {
1715
- id: string;
1716
- };
1717
- variants: {
1718
- id: string;
1719
- hidden: boolean;
1720
- }[];
1721
- }, {
1722
- baseline: {
1723
- id?: string | undefined;
1724
- };
1725
- variants: {
1726
- id?: string | undefined;
1727
- hidden?: boolean | undefined;
1728
- }[];
1729
- }>, "many">>>;
1730
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1731
- }, "strip", z.ZodTypeAny, {
1732
- distribution: number[];
1733
- traffic: number;
1734
- components: {
1735
- baseline: {
1736
- id: string;
1737
- };
1738
- variants: {
1739
- id: string;
1740
- hidden: boolean;
1741
- }[];
1742
- }[];
1743
- sticky: boolean;
1744
- }, {
1745
- distribution?: number[] | undefined;
1746
- traffic?: number | undefined;
1747
- components?: {
1748
- baseline: {
1749
- id?: string | undefined;
1750
- };
1751
- variants: {
1752
- id?: string | undefined;
1753
- hidden?: boolean | undefined;
1754
- }[];
1755
- }[] | undefined;
1756
- sticky?: boolean | undefined;
1757
- }>>;
1758
- /**
1759
- * The audience of the experience (Audience)
1760
- */
1761
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1762
- id: z.ZodString;
1763
- name: z.ZodOptional<z.ZodString>;
1764
- description: z.ZodOptional<z.ZodString>;
1765
- }, "strip", z.ZodTypeAny, {
1766
- id: string;
1767
- name?: string | undefined;
1768
- description?: string | undefined;
1769
- }, {
1770
- id: string;
1771
- name?: string | undefined;
1772
- description?: string | undefined;
1773
- }>>>;
1774
- /**
1775
- * All used variants of the experience (References to other Content Types)
1776
- */
1777
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1778
- id: z.ZodString;
1779
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1780
- id: z.ZodString;
1781
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1782
- id: z.ZodString;
1783
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1784
- id: z.ZodString;
1785
- }, z.ZodUnknown, "strip">[], unknown>>;
1786
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
1787
- id: z.ZodString;
1788
- /**
1789
- * The name of the experience (Short Text)
1790
- */
1791
- name: z.ZodString;
1792
- /**
1793
- * The description of the experience (Short Text)
1794
- */
1795
- description: z.ZodOptional<z.ZodString>;
1796
- /**
1797
- * The type if the experience (nt_experiment | nt_personalization)
1798
- */
1799
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1800
- /**
1801
- * The config of the experience (JSON)
1802
- */
1803
- config: z.ZodDefault<z.ZodObject<{
1804
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1805
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1806
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1807
- baseline: z.ZodObject<{
1808
- id: z.ZodDefault<z.ZodString>;
1809
- }, "strip", z.ZodTypeAny, {
1810
- id: string;
1811
- }, {
1812
- id?: string | undefined;
1813
- }>;
1814
- variants: z.ZodArray<z.ZodObject<{
1815
- id: z.ZodDefault<z.ZodString>;
1816
- hidden: z.ZodDefault<z.ZodBoolean>;
1817
- }, "strip", z.ZodTypeAny, {
1818
- id: string;
1819
- hidden: boolean;
1820
- }, {
1821
- id?: string | undefined;
1822
- hidden?: boolean | undefined;
1823
- }>, "many">;
1824
- }, "strip", z.ZodTypeAny, {
1825
- baseline: {
1826
- id: string;
1827
- };
1828
- variants: {
1829
- id: string;
1830
- hidden: boolean;
1831
- }[];
1832
- }, {
1833
- baseline: {
1834
- id?: string | undefined;
1835
- };
1836
- variants: {
1837
- id?: string | undefined;
1838
- hidden?: boolean | undefined;
1839
- }[];
1840
- }>, "many">>>;
1841
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1842
- }, "strip", z.ZodTypeAny, {
1843
- distribution: number[];
1844
- traffic: number;
1845
- components: {
1846
- baseline: {
1847
- id: string;
1848
- };
1849
- variants: {
1850
- id: string;
1851
- hidden: boolean;
1852
- }[];
1853
- }[];
1854
- sticky: boolean;
1855
- }, {
1856
- distribution?: number[] | undefined;
1857
- traffic?: number | undefined;
1858
- components?: {
1859
- baseline: {
1860
- id?: string | undefined;
1861
- };
1862
- variants: {
1863
- id?: string | undefined;
1864
- hidden?: boolean | undefined;
1865
- }[];
1866
- }[] | undefined;
1867
- sticky?: boolean | undefined;
1868
- }>>;
1869
- /**
1870
- * The audience of the experience (Audience)
1871
- */
1872
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1873
- id: z.ZodString;
1874
- name: z.ZodOptional<z.ZodString>;
1875
- description: z.ZodOptional<z.ZodString>;
1876
- }, "strip", z.ZodTypeAny, {
1877
- id: string;
1878
- name?: string | undefined;
1879
- description?: string | undefined;
1880
- }, {
1881
- id: string;
1882
- name?: string | undefined;
1883
- description?: string | undefined;
1884
- }>>>;
1885
- /**
1886
- * All used variants of the experience (References to other Content Types)
1887
- */
1888
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
1889
- id: z.ZodString;
1890
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1891
- id: z.ZodString;
1892
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1893
- id: z.ZodString;
1894
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
1895
- id: z.ZodString;
1896
- }, z.ZodUnknown, "strip">[], unknown>>;
1897
- }, keyof Augmentation> & Augmentation)[k_2]; } : never> extends infer T_5 extends object ? { [k_3 in keyof T_5]: undefined extends z.baseObjectOutputType<Omit<{
1898
- id: z.ZodString;
1899
- /**
1900
- * The name of the experience (Short Text)
1901
- */
1902
- name: z.ZodString;
1903
- /**
1904
- * The description of the experience (Short Text)
1905
- */
1906
- description: z.ZodOptional<z.ZodString>;
1907
- /**
1908
- * The type if the experience (nt_experiment | nt_personalization)
1909
- */
1910
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
1911
- /**
1912
- * The config of the experience (JSON)
1913
- */
1914
- config: z.ZodDefault<z.ZodObject<{
1915
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1916
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1917
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1918
- baseline: z.ZodObject<{
1919
- id: z.ZodDefault<z.ZodString>;
1920
- }, "strip", z.ZodTypeAny, {
1921
- id: string;
1922
- }, {
1923
- id?: string | undefined;
1924
- }>;
1925
- variants: z.ZodArray<z.ZodObject<{
1926
- id: z.ZodDefault<z.ZodString>;
1927
- hidden: z.ZodDefault<z.ZodBoolean>;
1928
- }, "strip", z.ZodTypeAny, {
1929
- id: string;
1930
- hidden: boolean;
1931
- }, {
1932
- id?: string | undefined;
1933
- hidden?: boolean | undefined;
1934
- }>, "many">;
1935
- }, "strip", z.ZodTypeAny, {
1936
- baseline: {
1937
- id: string;
1938
- };
1939
- variants: {
1940
- id: string;
1941
- hidden: boolean;
1942
- }[];
1943
- }, {
1944
- baseline: {
1945
- id?: string | undefined;
1946
- };
1947
- variants: {
1948
- id?: string | undefined;
1949
- hidden?: boolean | undefined;
1950
- }[];
1951
- }>, "many">>>;
1952
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1953
- }, "strip", z.ZodTypeAny, {
1954
- distribution: number[];
1955
- traffic: number;
1956
- components: {
1957
- baseline: {
1958
- id: string;
1959
- };
1960
- variants: {
1961
- id: string;
1962
- hidden: boolean;
1963
- }[];
1964
- }[];
1965
- sticky: boolean;
1966
- }, {
1967
- distribution?: number[] | undefined;
1968
- traffic?: number | undefined;
1969
- components?: {
1970
- baseline: {
1971
- id?: string | undefined;
1972
- };
1973
- variants: {
1974
- id?: string | undefined;
1975
- hidden?: boolean | undefined;
1976
- }[];
1977
- }[] | undefined;
1978
- sticky?: boolean | undefined;
1979
- }>>;
1980
- /**
1981
- * The audience of the experience (Audience)
1982
- */
1983
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1984
- id: z.ZodString;
1985
- name: z.ZodOptional<z.ZodString>;
1986
- description: z.ZodOptional<z.ZodString>;
1987
- }, "strip", z.ZodTypeAny, {
1988
- id: string;
1989
- name?: string | undefined;
1990
- description?: string | undefined;
1991
- }, {
1992
- id: string;
1993
- name?: string | undefined;
1994
- description?: string | undefined;
1995
- }>>>;
1996
- /**
1997
- * All used variants of the experience (References to other Content Types)
1998
- */
1999
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2000
- id: z.ZodString;
2001
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2002
- id: z.ZodString;
2003
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2004
- id: z.ZodString;
2005
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2006
- id: z.ZodString;
2007
- }, z.ZodUnknown, "strip">[], unknown>>;
2008
- }, keyof Augmentation> & Augmentation extends infer T_4 ? { [k_2 in keyof T_4]: (Omit<{
2009
- id: z.ZodString;
2010
- /**
2011
- * The name of the experience (Short Text)
2012
- */
2013
- name: z.ZodString;
2014
- /**
2015
- * The description of the experience (Short Text)
2016
- */
2017
- description: z.ZodOptional<z.ZodString>;
2018
- /**
2019
- * The type if the experience (nt_experiment | nt_personalization)
2020
- */
2021
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2022
- /**
2023
- * The config of the experience (JSON)
2024
- */
2025
- config: z.ZodDefault<z.ZodObject<{
2026
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2027
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2028
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2029
- baseline: z.ZodObject<{
2030
- id: z.ZodDefault<z.ZodString>;
2031
- }, "strip", z.ZodTypeAny, {
2032
- id: string;
2033
- }, {
2034
- id?: string | undefined;
2035
- }>;
2036
- variants: z.ZodArray<z.ZodObject<{
2037
- id: z.ZodDefault<z.ZodString>;
2038
- hidden: z.ZodDefault<z.ZodBoolean>;
2039
- }, "strip", z.ZodTypeAny, {
2040
- id: string;
2041
- hidden: boolean;
2042
- }, {
2043
- id?: string | undefined;
2044
- hidden?: boolean | undefined;
2045
- }>, "many">;
2046
- }, "strip", z.ZodTypeAny, {
2047
- baseline: {
2048
- id: string;
2049
- };
2050
- variants: {
2051
- id: string;
2052
- hidden: boolean;
2053
- }[];
2054
- }, {
2055
- baseline: {
2056
- id?: string | undefined;
2057
- };
2058
- variants: {
2059
- id?: string | undefined;
2060
- hidden?: boolean | undefined;
2061
- }[];
2062
- }>, "many">>>;
2063
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2064
- }, "strip", z.ZodTypeAny, {
2065
- distribution: number[];
2066
- traffic: number;
2067
- components: {
2068
- baseline: {
2069
- id: string;
2070
- };
2071
- variants: {
2072
- id: string;
2073
- hidden: boolean;
2074
- }[];
2075
- }[];
2076
- sticky: boolean;
2077
- }, {
2078
- distribution?: number[] | undefined;
2079
- traffic?: number | undefined;
2080
- components?: {
2081
- baseline: {
2082
- id?: string | undefined;
2083
- };
2084
- variants: {
2085
- id?: string | undefined;
2086
- hidden?: boolean | undefined;
2087
- }[];
2088
- }[] | undefined;
2089
- sticky?: boolean | undefined;
2090
- }>>;
2091
- /**
2092
- * The audience of the experience (Audience)
2093
- */
2094
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2095
- id: z.ZodString;
2096
- name: z.ZodOptional<z.ZodString>;
2097
- description: z.ZodOptional<z.ZodString>;
2098
- }, "strip", z.ZodTypeAny, {
2099
- id: string;
2100
- name?: string | undefined;
2101
- description?: string | undefined;
2102
- }, {
2103
- id: string;
2104
- name?: string | undefined;
2105
- description?: string | undefined;
2106
- }>>>;
2107
- /**
2108
- * All used variants of the experience (References to other Content Types)
2109
- */
2110
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2111
- id: z.ZodString;
2112
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2113
- id: z.ZodString;
2114
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2115
- id: z.ZodString;
2116
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2117
- id: z.ZodString;
2118
- }, z.ZodUnknown, "strip">[], unknown>>;
2119
- }, keyof Augmentation> & Augmentation)[k_2]; } : never>[k_3] ? never : k_3; } : never)[keyof Augmentation | Exclude<"id", keyof Augmentation> | Exclude<"name", keyof Augmentation> | Exclude<"description", keyof Augmentation> | Exclude<"type", keyof Augmentation> | Exclude<"variants", keyof Augmentation> | Exclude<"config", keyof Augmentation> | Exclude<"audience", keyof Augmentation>]>[k_1]; } : never, z.baseObjectInputType<Omit<{
2120
- id: z.ZodString;
2121
- /**
2122
- * The name of the experience (Short Text)
2123
- */
2124
- name: z.ZodString;
2125
- /**
2126
- * The description of the experience (Short Text)
2127
- */
2128
- description: z.ZodOptional<z.ZodString>;
2129
- /**
2130
- * The type if the experience (nt_experiment | nt_personalization)
2131
- */
2132
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2133
- /**
2134
- * The config of the experience (JSON)
2135
- */
2136
- config: z.ZodDefault<z.ZodObject<{
2137
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2138
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2139
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2140
- baseline: z.ZodObject<{
2141
- id: z.ZodDefault<z.ZodString>;
2142
- }, "strip", z.ZodTypeAny, {
2143
- id: string;
2144
- }, {
2145
- id?: string | undefined;
2146
- }>;
2147
- variants: z.ZodArray<z.ZodObject<{
2148
- id: z.ZodDefault<z.ZodString>;
2149
- hidden: z.ZodDefault<z.ZodBoolean>;
2150
- }, "strip", z.ZodTypeAny, {
2151
- id: string;
2152
- hidden: boolean;
2153
- }, {
2154
- id?: string | undefined;
2155
- hidden?: boolean | undefined;
2156
- }>, "many">;
2157
- }, "strip", z.ZodTypeAny, {
2158
- baseline: {
2159
- id: string;
2160
- };
2161
- variants: {
2162
- id: string;
2163
- hidden: boolean;
2164
- }[];
2165
- }, {
2166
- baseline: {
2167
- id?: string | undefined;
2168
- };
2169
- variants: {
2170
- id?: string | undefined;
2171
- hidden?: boolean | undefined;
2172
- }[];
2173
- }>, "many">>>;
2174
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2175
- }, "strip", z.ZodTypeAny, {
2176
- distribution: number[];
2177
- traffic: number;
2178
- components: {
2179
- baseline: {
2180
- id: string;
2181
- };
2182
- variants: {
2183
- id: string;
2184
- hidden: boolean;
2185
- }[];
2186
- }[];
2187
- sticky: boolean;
2188
- }, {
2189
- distribution?: number[] | undefined;
2190
- traffic?: number | undefined;
2191
- components?: {
2192
- baseline: {
2193
- id?: string | undefined;
2194
- };
2195
- variants: {
2196
- id?: string | undefined;
2197
- hidden?: boolean | undefined;
2198
- }[];
2199
- }[] | undefined;
2200
- sticky?: boolean | undefined;
2201
- }>>;
2202
- /**
2203
- * The audience of the experience (Audience)
2204
- */
2205
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2206
- id: z.ZodString;
2207
- name: z.ZodOptional<z.ZodString>;
2208
- description: z.ZodOptional<z.ZodString>;
2209
- }, "strip", z.ZodTypeAny, {
2210
- id: string;
2211
- name?: string | undefined;
2212
- description?: string | undefined;
2213
- }, {
2214
- id: string;
2215
- name?: string | undefined;
2216
- description?: string | undefined;
2217
- }>>>;
2218
- /**
2219
- * All used variants of the experience (References to other Content Types)
2220
- */
2221
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2222
- id: z.ZodString;
2223
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2224
- id: z.ZodString;
2225
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2226
- id: z.ZodString;
2227
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2228
- id: z.ZodString;
2229
- }, z.ZodUnknown, "strip">[], unknown>>;
2230
- }, keyof Augmentation> & Augmentation extends infer T_7 ? { [k_5 in keyof T_7]: (Omit<{
2231
- id: z.ZodString;
2232
- /**
2233
- * The name of the experience (Short Text)
2234
- */
2235
- name: z.ZodString;
2236
- /**
2237
- * The description of the experience (Short Text)
2238
- */
2239
- description: z.ZodOptional<z.ZodString>;
2240
- /**
2241
- * The type if the experience (nt_experiment | nt_personalization)
2242
- */
2243
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2244
- /**
2245
- * The config of the experience (JSON)
2246
- */
2247
- config: z.ZodDefault<z.ZodObject<{
2248
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2249
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2250
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2251
- baseline: z.ZodObject<{
2252
- id: z.ZodDefault<z.ZodString>;
2253
- }, "strip", z.ZodTypeAny, {
2254
- id: string;
2255
- }, {
2256
- id?: string | undefined;
2257
- }>;
2258
- variants: z.ZodArray<z.ZodObject<{
2259
- id: z.ZodDefault<z.ZodString>;
2260
- hidden: z.ZodDefault<z.ZodBoolean>;
2261
- }, "strip", z.ZodTypeAny, {
2262
- id: string;
2263
- hidden: boolean;
2264
- }, {
2265
- id?: string | undefined;
2266
- hidden?: boolean | undefined;
2267
- }>, "many">;
2268
- }, "strip", z.ZodTypeAny, {
2269
- baseline: {
2270
- id: string;
2271
- };
2272
- variants: {
2273
- id: string;
2274
- hidden: boolean;
2275
- }[];
2276
- }, {
2277
- baseline: {
2278
- id?: string | undefined;
2279
- };
2280
- variants: {
2281
- id?: string | undefined;
2282
- hidden?: boolean | undefined;
2283
- }[];
2284
- }>, "many">>>;
2285
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2286
- }, "strip", z.ZodTypeAny, {
2287
- distribution: number[];
2288
- traffic: number;
2289
- components: {
2290
- baseline: {
2291
- id: string;
2292
- };
2293
- variants: {
2294
- id: string;
2295
- hidden: boolean;
2296
- }[];
2297
- }[];
2298
- sticky: boolean;
2299
- }, {
2300
- distribution?: number[] | undefined;
2301
- traffic?: number | undefined;
2302
- components?: {
2303
- baseline: {
2304
- id?: string | undefined;
2305
- };
2306
- variants: {
2307
- id?: string | undefined;
2308
- hidden?: boolean | undefined;
2309
- }[];
2310
- }[] | undefined;
2311
- sticky?: boolean | undefined;
2312
- }>>;
2313
- /**
2314
- * The audience of the experience (Audience)
2315
- */
2316
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2317
- id: z.ZodString;
2318
- name: z.ZodOptional<z.ZodString>;
2319
- description: z.ZodOptional<z.ZodString>;
2320
- }, "strip", z.ZodTypeAny, {
2321
- id: string;
2322
- name?: string | undefined;
2323
- description?: string | undefined;
2324
- }, {
2325
- id: string;
2326
- name?: string | undefined;
2327
- description?: string | undefined;
2328
- }>>>;
2329
- /**
2330
- * All used variants of the experience (References to other Content Types)
2331
- */
2332
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2333
- id: z.ZodString;
2334
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2335
- id: z.ZodString;
2336
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2337
- id: z.ZodString;
2338
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2339
- id: z.ZodString;
2340
- }, z.ZodUnknown, "strip">[], unknown>>;
2341
- }, keyof Augmentation> & Augmentation)[k_5]; } : never> extends infer T_6 ? { [k_4 in keyof T_6]: z.baseObjectInputType<Omit<{
2342
- id: z.ZodString;
2343
- /**
2344
- * The name of the experience (Short Text)
2345
- */
2346
- name: z.ZodString;
2347
- /**
2348
- * The description of the experience (Short Text)
2349
- */
2350
- description: z.ZodOptional<z.ZodString>;
2351
- /**
2352
- * The type if the experience (nt_experiment | nt_personalization)
2353
- */
2354
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2355
- /**
2356
- * The config of the experience (JSON)
2357
- */
2358
- config: z.ZodDefault<z.ZodObject<{
2359
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2360
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2361
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2362
- baseline: z.ZodObject<{
2363
- id: z.ZodDefault<z.ZodString>;
2364
- }, "strip", z.ZodTypeAny, {
2365
- id: string;
2366
- }, {
2367
- id?: string | undefined;
2368
- }>;
2369
- variants: z.ZodArray<z.ZodObject<{
2370
- id: z.ZodDefault<z.ZodString>;
2371
- hidden: z.ZodDefault<z.ZodBoolean>;
2372
- }, "strip", z.ZodTypeAny, {
2373
- id: string;
2374
- hidden: boolean;
2375
- }, {
2376
- id?: string | undefined;
2377
- hidden?: boolean | undefined;
2378
- }>, "many">;
2379
- }, "strip", z.ZodTypeAny, {
2380
- baseline: {
2381
- id: string;
2382
- };
2383
- variants: {
2384
- id: string;
2385
- hidden: boolean;
2386
- }[];
2387
- }, {
2388
- baseline: {
2389
- id?: string | undefined;
2390
- };
2391
- variants: {
2392
- id?: string | undefined;
2393
- hidden?: boolean | undefined;
2394
- }[];
2395
- }>, "many">>>;
2396
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2397
- }, "strip", z.ZodTypeAny, {
2398
- distribution: number[];
2399
- traffic: number;
2400
- components: {
2401
- baseline: {
2402
- id: string;
2403
- };
2404
- variants: {
2405
- id: string;
2406
- hidden: boolean;
2407
- }[];
2408
- }[];
2409
- sticky: boolean;
2410
- }, {
2411
- distribution?: number[] | undefined;
2412
- traffic?: number | undefined;
2413
- components?: {
2414
- baseline: {
2415
- id?: string | undefined;
2416
- };
2417
- variants: {
2418
- id?: string | undefined;
2419
- hidden?: boolean | undefined;
2420
- }[];
2421
- }[] | undefined;
2422
- sticky?: boolean | undefined;
2423
- }>>;
2424
- /**
2425
- * The audience of the experience (Audience)
2426
- */
2427
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2428
- id: z.ZodString;
2429
- name: z.ZodOptional<z.ZodString>;
2430
- description: z.ZodOptional<z.ZodString>;
2431
- }, "strip", z.ZodTypeAny, {
2432
- id: string;
2433
- name?: string | undefined;
2434
- description?: string | undefined;
2435
- }, {
2436
- id: string;
2437
- name?: string | undefined;
2438
- description?: string | undefined;
2439
- }>>>;
2440
- /**
2441
- * All used variants of the experience (References to other Content Types)
2442
- */
2443
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2444
- id: z.ZodString;
2445
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2446
- id: z.ZodString;
2447
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2448
- id: z.ZodString;
2449
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2450
- id: z.ZodString;
2451
- }, z.ZodUnknown, "strip">[], unknown>>;
2452
- }, keyof Augmentation> & Augmentation extends infer T_7 ? { [k_5 in keyof T_7]: (Omit<{
2453
- id: z.ZodString;
2454
- /**
2455
- * The name of the experience (Short Text)
2456
- */
2457
- name: z.ZodString;
2458
- /**
2459
- * The description of the experience (Short Text)
2460
- */
2461
- description: z.ZodOptional<z.ZodString>;
2462
- /**
2463
- * The type if the experience (nt_experiment | nt_personalization)
2464
- */
2465
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2466
- /**
2467
- * The config of the experience (JSON)
2468
- */
2469
- config: z.ZodDefault<z.ZodObject<{
2470
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2471
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2472
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2473
- baseline: z.ZodObject<{
2474
- id: z.ZodDefault<z.ZodString>;
2475
- }, "strip", z.ZodTypeAny, {
2476
- id: string;
2477
- }, {
2478
- id?: string | undefined;
2479
- }>;
2480
- variants: z.ZodArray<z.ZodObject<{
2481
- id: z.ZodDefault<z.ZodString>;
2482
- hidden: z.ZodDefault<z.ZodBoolean>;
2483
- }, "strip", z.ZodTypeAny, {
2484
- id: string;
2485
- hidden: boolean;
2486
- }, {
2487
- id?: string | undefined;
2488
- hidden?: boolean | undefined;
2489
- }>, "many">;
2490
- }, "strip", z.ZodTypeAny, {
2491
- baseline: {
2492
- id: string;
2493
- };
2494
- variants: {
2495
- id: string;
2496
- hidden: boolean;
2497
- }[];
2498
- }, {
2499
- baseline: {
2500
- id?: string | undefined;
2501
- };
2502
- variants: {
2503
- id?: string | undefined;
2504
- hidden?: boolean | undefined;
2505
- }[];
2506
- }>, "many">>>;
2507
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2508
- }, "strip", z.ZodTypeAny, {
2509
- distribution: number[];
2510
- traffic: number;
2511
- components: {
2512
- baseline: {
2513
- id: string;
2514
- };
2515
- variants: {
2516
- id: string;
2517
- hidden: boolean;
2518
- }[];
2519
- }[];
2520
- sticky: boolean;
2521
- }, {
2522
- distribution?: number[] | undefined;
2523
- traffic?: number | undefined;
2524
- components?: {
2525
- baseline: {
2526
- id?: string | undefined;
2527
- };
2528
- variants: {
2529
- id?: string | undefined;
2530
- hidden?: boolean | undefined;
2531
- }[];
2532
- }[] | undefined;
2533
- sticky?: boolean | undefined;
2534
- }>>;
2535
- /**
2536
- * The audience of the experience (Audience)
2537
- */
2538
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2539
- id: z.ZodString;
2540
- name: z.ZodOptional<z.ZodString>;
2541
- description: z.ZodOptional<z.ZodString>;
2542
- }, "strip", z.ZodTypeAny, {
2543
- id: string;
2544
- name?: string | undefined;
2545
- description?: string | undefined;
2546
- }, {
2547
- id: string;
2548
- name?: string | undefined;
2549
- description?: string | undefined;
2550
- }>>>;
2551
- /**
2552
- * All used variants of the experience (References to other Content Types)
2553
- */
2554
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2555
- id: z.ZodString;
2556
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2557
- id: z.ZodString;
2558
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2559
- id: z.ZodString;
2560
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2561
- id: z.ZodString;
2562
- }, z.ZodUnknown, "strip">[], unknown>>;
2563
- }, keyof Augmentation> & Augmentation)[k_5]; } : never>[k_4]; } : never>;
2564
- _type: {
2565
- id: string;
2566
- name: string;
2567
- type: string;
2568
- variants: z.objectOutputType<{
2569
- id: z.ZodString;
2570
- }, z.ZodUnknown, "strip">[];
2571
- config: {
2572
- distribution: number[];
2573
- traffic: number;
2574
- components: {
2575
- baseline: {
2576
- id: string;
2577
- };
2578
- variants: {
2579
- id: string;
2580
- hidden: boolean;
2581
- }[];
2582
- }[];
2583
- sticky: boolean;
2584
- };
2585
- description?: string | undefined;
2586
- audience?: {
2587
- id: string;
2588
- name?: string | undefined;
2589
- description?: string | undefined;
2590
- } | null | undefined;
2591
- };
2592
- _output: {
2593
- id: string;
2594
- name: string;
2595
- type: string;
2596
- variants: z.objectOutputType<{
2597
- id: z.ZodString;
2598
- }, z.ZodUnknown, "strip">[];
2599
- config: {
2600
- distribution: number[];
2601
- traffic: number;
2602
- components: {
2603
- baseline: {
2604
- id: string;
2605
- };
2606
- variants: {
2607
- id: string;
2608
- hidden: boolean;
2609
- }[];
2610
- }[];
2611
- sticky: boolean;
2612
- };
2613
- description?: string | undefined;
2614
- audience?: {
2615
- id: string;
2616
- name?: string | undefined;
2617
- description?: string | undefined;
2618
- } | null | undefined;
2619
- };
2620
- _input: {
2621
- id: string;
2622
- name: string;
2623
- type: string;
2624
- description?: string | undefined;
2625
- config?: {
2626
- distribution?: number[] | undefined;
2627
- traffic?: number | undefined;
2628
- components?: {
2629
- baseline: {
2630
- id?: string | undefined;
2631
- };
2632
- variants: {
2633
- id?: string | undefined;
2634
- hidden?: boolean | undefined;
2635
- }[];
2636
- }[] | undefined;
2637
- sticky?: boolean | undefined;
2638
- } | undefined;
2639
- audience?: {
2640
- id: string;
2641
- name?: string | undefined;
2642
- description?: string | undefined;
2643
- } | null | undefined;
2644
- variants?: unknown;
2645
- };
2646
- _def: z.ZodObjectDef<{
2647
- id: z.ZodString;
2648
- /**
2649
- * The name of the experience (Short Text)
2650
- */
2651
- name: z.ZodString;
2652
- /**
2653
- * The description of the experience (Short Text)
2654
- */
2655
- description: z.ZodOptional<z.ZodString>;
2656
- /**
2657
- * The type if the experience (nt_experiment | nt_personalization)
2658
- */
2659
- type: z.ZodUnion<[z.ZodString, z.ZodString]>;
2660
- /**
2661
- * The config of the experience (JSON)
2662
- */
2663
- config: z.ZodDefault<z.ZodObject<{
2664
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2665
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2666
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2667
- baseline: z.ZodObject<{
2668
- id: z.ZodDefault<z.ZodString>;
2669
- }, "strip", z.ZodTypeAny, {
2670
- id: string;
2671
- }, {
2672
- id?: string | undefined;
2673
- }>;
2674
- variants: z.ZodArray<z.ZodObject<{
2675
- id: z.ZodDefault<z.ZodString>;
2676
- hidden: z.ZodDefault<z.ZodBoolean>;
2677
- }, "strip", z.ZodTypeAny, {
2678
- id: string;
2679
- hidden: boolean;
2680
- }, {
2681
- id?: string | undefined;
2682
- hidden?: boolean | undefined;
2683
- }>, "many">;
2684
- }, "strip", z.ZodTypeAny, {
2685
- baseline: {
2686
- id: string;
2687
- };
2688
- variants: {
2689
- id: string;
2690
- hidden: boolean;
2691
- }[];
2692
- }, {
2693
- baseline: {
2694
- id?: string | undefined;
2695
- };
2696
- variants: {
2697
- id?: string | undefined;
2698
- hidden?: boolean | undefined;
2699
- }[];
2700
- }>, "many">>>;
2701
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2702
- }, "strip", z.ZodTypeAny, {
2703
- distribution: number[];
2704
- traffic: number;
2705
- components: {
2706
- baseline: {
2707
- id: string;
2708
- };
2709
- variants: {
2710
- id: string;
2711
- hidden: boolean;
2712
- }[];
2713
- }[];
2714
- sticky: boolean;
2715
- }, {
2716
- distribution?: number[] | undefined;
2717
- traffic?: number | undefined;
2718
- components?: {
2719
- baseline: {
2720
- id?: string | undefined;
2721
- };
2722
- variants: {
2723
- id?: string | undefined;
2724
- hidden?: boolean | undefined;
2725
- }[];
2726
- }[] | undefined;
2727
- sticky?: boolean | undefined;
2728
- }>>;
2729
- /**
2730
- * The audience of the experience (Audience)
2731
- */
2732
- audience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2733
- id: z.ZodString;
2734
- name: z.ZodOptional<z.ZodString>;
2735
- description: z.ZodOptional<z.ZodString>;
2736
- }, "strip", z.ZodTypeAny, {
2737
- id: string;
2738
- name?: string | undefined;
2739
- description?: string | undefined;
2740
- }, {
2741
- id: string;
2742
- name?: string | undefined;
2743
- description?: string | undefined;
2744
- }>>>;
2745
- /**
2746
- * All used variants of the experience (References to other Content Types)
2747
- */
2748
- variants: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
2749
- id: z.ZodString;
2750
- }, "strip", z.ZodUnknown, z.objectOutputType<{
2751
- id: z.ZodString;
2752
- }, z.ZodUnknown, "strip">, z.objectInputType<{
2753
- id: z.ZodString;
2754
- }, z.ZodUnknown, "strip">>, "many">, z.objectOutputType<{
2755
- id: z.ZodString;
2756
- }, z.ZodUnknown, "strip">[], unknown>>;
2757
- }, "strip", z.ZodTypeAny>;
2758
- spa: (data: unknown, params?: Partial<z.ParseParams> | undefined) => Promise<z.SafeParseReturnType<{
2759
- id: string;
2760
- name: string;
2761
- type: string;
2762
- description?: string | undefined;
2763
- config?: {
2764
- distribution?: number[] | undefined;
2765
- traffic?: number | undefined;
2766
- components?: {
2767
- baseline: {
2768
- id?: string | undefined;
2769
- };
2770
- variants: {
2771
- id?: string | undefined;
2772
- hidden?: boolean | undefined;
2773
- }[];
2774
- }[] | undefined;
2775
- sticky?: boolean | undefined;
2776
- } | undefined;
2777
- audience?: {
1335
+ } | undefined;
1336
+ audience?: {
2778
1337
  id: string;
2779
1338
  name?: string | undefined;
2780
1339
  description?: string | undefined;
2781
1340
  } | null | undefined;
2782
- variants?: unknown;
2783
1341
  }, {
2784
1342
  id: string;
2785
1343
  name: string;