@contentful/optimization-api-client 2.2.0 → 2.2.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.
- package/README.md +8 -7
- package/dist/api-schemas.cjs +1 -3
- package/dist/api-schemas.cjs.map +1 -1
- package/dist/api-schemas.d.cts +24 -70
- package/dist/api-schemas.d.mts +24 -70
- package/dist/api-schemas.d.ts +24 -70
- package/dist/api-schemas.mjs +1 -3
- package/dist/api-schemas.mjs.map +1 -1
- package/dist/index.d.cts +5 -15
- package/dist/index.d.mts +5 -15
- package/dist/index.d.ts +5 -15
- package/package.json +1 -1
package/dist/api-schemas.d.ts
CHANGED
|
@@ -157,9 +157,7 @@ export declare const BatchExperienceEvent: z.ZodMiniDiscriminatedUnion<[z.ZodMin
|
|
|
157
157
|
entityId: z.ZodMiniString<string>;
|
|
158
158
|
entityKind: z.ZodMiniEnum<{
|
|
159
159
|
Experience: "Experience";
|
|
160
|
-
|
|
161
|
-
InlineFragment: "InlineFragment";
|
|
162
|
-
InlineComponent: "InlineComponent";
|
|
160
|
+
ExperienceFragment: "ExperienceFragment";
|
|
163
161
|
}>;
|
|
164
162
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
165
163
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -533,9 +531,7 @@ export declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscrimi
|
|
|
533
531
|
entityId: z.ZodMiniString<string>;
|
|
534
532
|
entityKind: z.ZodMiniEnum<{
|
|
535
533
|
Experience: "Experience";
|
|
536
|
-
|
|
537
|
-
InlineFragment: "InlineFragment";
|
|
538
|
-
InlineComponent: "InlineComponent";
|
|
534
|
+
ExperienceFragment: "ExperienceFragment";
|
|
539
535
|
}>;
|
|
540
536
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
541
537
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -918,9 +914,7 @@ export declare const BatchExperienceRequestData: z.ZodMiniObject<{
|
|
|
918
914
|
entityId: z.ZodMiniString<string>;
|
|
919
915
|
entityKind: z.ZodMiniEnum<{
|
|
920
916
|
Experience: "Experience";
|
|
921
|
-
|
|
922
|
-
InlineFragment: "InlineFragment";
|
|
923
|
-
InlineComponent: "InlineComponent";
|
|
917
|
+
ExperienceFragment: "ExperienceFragment";
|
|
924
918
|
}>;
|
|
925
919
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
926
920
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1558,9 +1552,7 @@ export declare const BatchInsightsEvent: z.ZodMiniObject<{
|
|
|
1558
1552
|
entityId: z.ZodMiniString<string>;
|
|
1559
1553
|
entityKind: z.ZodMiniEnum<{
|
|
1560
1554
|
Experience: "Experience";
|
|
1561
|
-
|
|
1562
|
-
InlineFragment: "InlineFragment";
|
|
1563
|
-
InlineComponent: "InlineComponent";
|
|
1555
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1564
1556
|
}>;
|
|
1565
1557
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1566
1558
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1630,9 +1622,7 @@ export declare const BatchInsightsEvent: z.ZodMiniObject<{
|
|
|
1630
1622
|
entityId: z.ZodMiniString<string>;
|
|
1631
1623
|
entityKind: z.ZodMiniEnum<{
|
|
1632
1624
|
Experience: "Experience";
|
|
1633
|
-
|
|
1634
|
-
InlineFragment: "InlineFragment";
|
|
1635
|
-
InlineComponent: "InlineComponent";
|
|
1625
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1636
1626
|
}>;
|
|
1637
1627
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1638
1628
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1700,9 +1690,7 @@ export declare const BatchInsightsEvent: z.ZodMiniObject<{
|
|
|
1700
1690
|
entityId: z.ZodMiniString<string>;
|
|
1701
1691
|
entityKind: z.ZodMiniEnum<{
|
|
1702
1692
|
Experience: "Experience";
|
|
1703
|
-
|
|
1704
|
-
InlineFragment: "InlineFragment";
|
|
1705
|
-
InlineComponent: "InlineComponent";
|
|
1693
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1706
1694
|
}>;
|
|
1707
1695
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1708
1696
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1985,9 +1973,7 @@ export declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1985
1973
|
entityId: z.ZodMiniString<string>;
|
|
1986
1974
|
entityKind: z.ZodMiniEnum<{
|
|
1987
1975
|
Experience: "Experience";
|
|
1988
|
-
|
|
1989
|
-
InlineFragment: "InlineFragment";
|
|
1990
|
-
InlineComponent: "InlineComponent";
|
|
1976
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1991
1977
|
}>;
|
|
1992
1978
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1993
1979
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -2057,9 +2043,7 @@ export declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
2057
2043
|
entityId: z.ZodMiniString<string>;
|
|
2058
2044
|
entityKind: z.ZodMiniEnum<{
|
|
2059
2045
|
Experience: "Experience";
|
|
2060
|
-
|
|
2061
|
-
InlineFragment: "InlineFragment";
|
|
2062
|
-
InlineComponent: "InlineComponent";
|
|
2046
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2063
2047
|
}>;
|
|
2064
2048
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2065
2049
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -2127,9 +2111,7 @@ export declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
2127
2111
|
entityId: z.ZodMiniString<string>;
|
|
2128
2112
|
entityKind: z.ZodMiniEnum<{
|
|
2129
2113
|
Experience: "Experience";
|
|
2130
|
-
|
|
2131
|
-
InlineFragment: "InlineFragment";
|
|
2132
|
-
InlineComponent: "InlineComponent";
|
|
2114
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2133
2115
|
}>;
|
|
2134
2116
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2135
2117
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -2329,8 +2311,8 @@ export declare const ChangeBase: z.ZodMiniObject<{
|
|
|
2329
2311
|
*/
|
|
2330
2312
|
type: z.ZodMiniUnion<readonly [z.ZodMiniEnum<{
|
|
2331
2313
|
Experience: "Experience";
|
|
2332
|
-
Fragment: "Fragment";
|
|
2333
2314
|
Variable: "Variable";
|
|
2315
|
+
Fragment: "Fragment";
|
|
2334
2316
|
}>, z.ZodMiniString<string>]>;
|
|
2335
2317
|
/**
|
|
2336
2318
|
* Metadata describing the originating experience and variant index.
|
|
@@ -2566,9 +2548,7 @@ export declare const ExoClickEvent: z.ZodMiniObject<{
|
|
|
2566
2548
|
entityId: z.ZodMiniString<string>;
|
|
2567
2549
|
entityKind: z.ZodMiniEnum<{
|
|
2568
2550
|
Experience: "Experience";
|
|
2569
|
-
|
|
2570
|
-
InlineFragment: "InlineFragment";
|
|
2571
|
-
InlineComponent: "InlineComponent";
|
|
2551
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2572
2552
|
}>;
|
|
2573
2553
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2574
2554
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -2595,9 +2575,7 @@ export declare type ExoClickEvent = z.infer<typeof ExoClickEvent>;
|
|
|
2595
2575
|
*/
|
|
2596
2576
|
export declare const ExoEntityKind: z.ZodMiniEnum<{
|
|
2597
2577
|
Experience: "Experience";
|
|
2598
|
-
|
|
2599
|
-
InlineFragment: "InlineFragment";
|
|
2600
|
-
InlineComponent: "InlineComponent";
|
|
2578
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2601
2579
|
}>;
|
|
2602
2580
|
|
|
2603
2581
|
/**
|
|
@@ -2669,9 +2647,7 @@ export declare const ExoEventProperties: z.ZodMiniObject<{
|
|
|
2669
2647
|
entityId: z.ZodMiniString<string>;
|
|
2670
2648
|
entityKind: z.ZodMiniEnum<{
|
|
2671
2649
|
Experience: "Experience";
|
|
2672
|
-
|
|
2673
|
-
InlineFragment: "InlineFragment";
|
|
2674
|
-
InlineComponent: "InlineComponent";
|
|
2650
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2675
2651
|
}>;
|
|
2676
2652
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2677
2653
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -2752,9 +2728,7 @@ export declare const ExoHoverEvent: z.ZodMiniObject<{
|
|
|
2752
2728
|
entityId: z.ZodMiniString<string>;
|
|
2753
2729
|
entityKind: z.ZodMiniEnum<{
|
|
2754
2730
|
Experience: "Experience";
|
|
2755
|
-
|
|
2756
|
-
InlineFragment: "InlineFragment";
|
|
2757
|
-
InlineComponent: "InlineComponent";
|
|
2731
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2758
2732
|
}>;
|
|
2759
2733
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2760
2734
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -2838,9 +2812,7 @@ export declare const ExoViewEvent: z.ZodMiniObject<{
|
|
|
2838
2812
|
entityId: z.ZodMiniString<string>;
|
|
2839
2813
|
entityKind: z.ZodMiniEnum<{
|
|
2840
2814
|
Experience: "Experience";
|
|
2841
|
-
|
|
2842
|
-
InlineFragment: "InlineFragment";
|
|
2843
|
-
InlineComponent: "InlineComponent";
|
|
2815
|
+
ExperienceFragment: "ExperienceFragment";
|
|
2844
2816
|
}>;
|
|
2845
2817
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2846
2818
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -3116,9 +3088,7 @@ export declare const ExperienceEvent: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObje
|
|
|
3116
3088
|
entityId: z.ZodMiniString<string>;
|
|
3117
3089
|
entityKind: z.ZodMiniEnum<{
|
|
3118
3090
|
Experience: "Experience";
|
|
3119
|
-
|
|
3120
|
-
InlineFragment: "InlineFragment";
|
|
3121
|
-
InlineComponent: "InlineComponent";
|
|
3091
|
+
ExperienceFragment: "ExperienceFragment";
|
|
3122
3092
|
}>;
|
|
3123
3093
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
3124
3094
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -3486,9 +3456,7 @@ export declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminated
|
|
|
3486
3456
|
entityId: z.ZodMiniString<string>;
|
|
3487
3457
|
entityKind: z.ZodMiniEnum<{
|
|
3488
3458
|
Experience: "Experience";
|
|
3489
|
-
|
|
3490
|
-
InlineFragment: "InlineFragment";
|
|
3491
|
-
InlineComponent: "InlineComponent";
|
|
3459
|
+
ExperienceFragment: "ExperienceFragment";
|
|
3492
3460
|
}>;
|
|
3493
3461
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
3494
3462
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -3874,9 +3842,7 @@ export declare const ExperienceRequestData: z.ZodMiniObject<{
|
|
|
3874
3842
|
entityId: z.ZodMiniString<string>;
|
|
3875
3843
|
entityKind: z.ZodMiniEnum<{
|
|
3876
3844
|
Experience: "Experience";
|
|
3877
|
-
|
|
3878
|
-
InlineFragment: "InlineFragment";
|
|
3879
|
-
InlineComponent: "InlineComponent";
|
|
3845
|
+
ExperienceFragment: "ExperienceFragment";
|
|
3880
3846
|
}>;
|
|
3881
3847
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
3882
3848
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -4800,9 +4766,7 @@ export declare const InsightsEvent: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
4800
4766
|
entityId: z.ZodMiniString<string>;
|
|
4801
4767
|
entityKind: z.ZodMiniEnum<{
|
|
4802
4768
|
Experience: "Experience";
|
|
4803
|
-
|
|
4804
|
-
InlineFragment: "InlineFragment";
|
|
4805
|
-
InlineComponent: "InlineComponent";
|
|
4769
|
+
ExperienceFragment: "ExperienceFragment";
|
|
4806
4770
|
}>;
|
|
4807
4771
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
4808
4772
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -4872,9 +4836,7 @@ export declare const InsightsEvent: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
4872
4836
|
entityId: z.ZodMiniString<string>;
|
|
4873
4837
|
entityKind: z.ZodMiniEnum<{
|
|
4874
4838
|
Experience: "Experience";
|
|
4875
|
-
|
|
4876
|
-
InlineFragment: "InlineFragment";
|
|
4877
|
-
InlineComponent: "InlineComponent";
|
|
4839
|
+
ExperienceFragment: "ExperienceFragment";
|
|
4878
4840
|
}>;
|
|
4879
4841
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
4880
4842
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -4942,9 +4904,7 @@ export declare const InsightsEvent: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject
|
|
|
4942
4904
|
entityId: z.ZodMiniString<string>;
|
|
4943
4905
|
entityKind: z.ZodMiniEnum<{
|
|
4944
4906
|
Experience: "Experience";
|
|
4945
|
-
|
|
4946
|
-
InlineFragment: "InlineFragment";
|
|
4947
|
-
InlineComponent: "InlineComponent";
|
|
4907
|
+
ExperienceFragment: "ExperienceFragment";
|
|
4948
4908
|
}>;
|
|
4949
4909
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
4950
4910
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -5209,9 +5169,7 @@ export declare const InsightsEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
5209
5169
|
entityId: z.ZodMiniString<string>;
|
|
5210
5170
|
entityKind: z.ZodMiniEnum<{
|
|
5211
5171
|
Experience: "Experience";
|
|
5212
|
-
|
|
5213
|
-
InlineFragment: "InlineFragment";
|
|
5214
|
-
InlineComponent: "InlineComponent";
|
|
5172
|
+
ExperienceFragment: "ExperienceFragment";
|
|
5215
5173
|
}>;
|
|
5216
5174
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5217
5175
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -5281,9 +5239,7 @@ export declare const InsightsEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
5281
5239
|
entityId: z.ZodMiniString<string>;
|
|
5282
5240
|
entityKind: z.ZodMiniEnum<{
|
|
5283
5241
|
Experience: "Experience";
|
|
5284
|
-
|
|
5285
|
-
InlineFragment: "InlineFragment";
|
|
5286
|
-
InlineComponent: "InlineComponent";
|
|
5242
|
+
ExperienceFragment: "ExperienceFragment";
|
|
5287
5243
|
}>;
|
|
5288
5244
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5289
5245
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -5351,9 +5307,7 @@ export declare const InsightsEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
5351
5307
|
entityId: z.ZodMiniString<string>;
|
|
5352
5308
|
entityKind: z.ZodMiniEnum<{
|
|
5353
5309
|
Experience: "Experience";
|
|
5354
|
-
|
|
5355
|
-
InlineFragment: "InlineFragment";
|
|
5356
|
-
InlineComponent: "InlineComponent";
|
|
5310
|
+
ExperienceFragment: "ExperienceFragment";
|
|
5357
5311
|
}>;
|
|
5358
5312
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5359
5313
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
package/dist/api-schemas.mjs
CHANGED
|
@@ -75,9 +75,7 @@ const UniversalEventProperties = __rspack_external_zod_mini_edc6895a.object({
|
|
|
75
75
|
});
|
|
76
76
|
const ExoEntityKind = __rspack_external_zod_mini_edc6895a["enum"]([
|
|
77
77
|
'Experience',
|
|
78
|
-
'
|
|
79
|
-
'InlineFragment',
|
|
80
|
-
'InlineComponent'
|
|
78
|
+
'ExperienceFragment'
|
|
81
79
|
]);
|
|
82
80
|
const ExoEventProperties = __rspack_external_zod_mini_edc6895a.extend(UniversalEventProperties, {
|
|
83
81
|
entityId: __rspack_external_zod_mini_edc6895a.string(),
|
package/dist/api-schemas.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-schemas.mjs","sources":["../src/schemas/experience/event/properties/App.ts","../src/schemas/experience/event/properties/Campaign.ts","../src/schemas/experience/event/properties/Channel.ts","../src/schemas/experience/event/properties/Dictionary.ts","../src/schemas/experience/event/properties/GeoLocation.ts","../src/schemas/experience/event/properties/Library.ts","../src/schemas/experience/event/properties/Page.ts","../src/schemas/experience/event/properties/Properties.ts","../src/schemas/experience/event/properties/Screen.ts","../src/schemas/experience/event/properties/Traits.ts","../src/schemas/experience/event/UniversalEventProperties.ts","../src/schemas/experience/event/ExoEventProperties.ts","../src/schemas/experience/event/ExoViewEvent.ts","../src/schemas/experience/event/IdentifyEvent.ts","../src/schemas/experience/event/PageViewEvent.ts","../src/schemas/experience/event/ScreenViewEvent.ts","../src/schemas/experience/event/TrackEvent.ts","../src/schemas/experience/event/InteractionEventProperties.ts","../src/schemas/experience/event/ViewEvent.ts","../src/schemas/experience/event/BatchExperienceEvent.ts","../src/schemas/experience/event/ExperienceEvent.ts","../src/schemas/experience/ExperienceRequest.ts","../src/schemas/experience/BatchExperienceRequest.ts","../src/schemas/experience/profile/properties/SessionStatistics.ts","../src/schemas/experience/profile/Profile.ts","../src/schemas/experience/ResponseEnvelope.ts","../src/schemas/experience/BatchExperienceResponse.ts","../src/schemas/experience/change/Change.ts","../src/schemas/experience/optimization/SelectedOptimization.ts","../src/schemas/experience/ExperienceResponse.ts","../src/schemas/insights/event/ClickEvent.ts","../src/schemas/insights/event/ExoClickEvent.ts","../src/schemas/insights/event/ExoHoverEvent.ts","../src/schemas/insights/event/HoverEvent.ts","../src/schemas/insights/event/InsightsEvent.ts","../src/schemas/insights/event/BatchInsightsEvent.ts","../src/schemas/validation/parseWithFriendlyError.ts"],"sourcesContent":["import * as z from 'zod/mini'\n\n/**\n * Zod schema describing app-level properties.\n *\n * @remarks\n * These properties typically describe the application that is emitting\n * analytics events, such as its name and version.\n *\n * The entire object is optional; when omitted, no app context is attached.\n *\n * @public\n */\nexport const App = z.optional(\n z.object({\n /**\n * Name of the application.\n */\n name: z.string(),\n\n /**\n * Version of the application.\n */\n version: z.string(),\n }),\n)\n\n/**\n * TypeScript type inferred from {@link App}.\n *\n * @public\n */\nexport type App = z.infer<typeof App>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing campaign attribution properties.\n *\n * @remarks\n * These fields typically mirror UTM parameters used for marketing campaigns.\n *\n * @public\n */\nexport const Campaign = z.object({\n /**\n * Name of the campaign (e.g., `utm_campaign`).\n */\n name: z.optional(z.string()),\n\n /**\n * Campaign source (e.g., `utm_source`).\n */\n source: z.optional(z.string()),\n\n /**\n * Campaign medium (e.g., `utm_medium`).\n */\n medium: z.optional(z.string()),\n\n /**\n * Campaign term (e.g., `utm_term`).\n */\n term: z.optional(z.string()),\n\n /**\n * Campaign content (e.g., `utm_content`).\n */\n content: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link Campaign}.\n *\n * @public\n */\nexport type Campaign = z.infer<typeof Campaign>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing the analytics channel.\n *\n * @remarks\n * Indicates the execution environment where the event originated.\n *\n * - `'mobile'` — Events from native or hybrid mobile apps.\n * - `'server'` — Events emitted from backend/server-side code.\n * - `'web'` — Events from web browsers or web-based clients.\n *\n * @public\n */\nexport const Channel = z.union([z.literal('mobile'), z.literal('server'), z.literal('web')])\n\n/**\n * TypeScript type inferred from {@link Channel}.\n *\n * @public\n */\nexport type Channel = z.infer<typeof Channel>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing a string-to-string dictionary.\n *\n * @remarks\n * Commonly used for query parameters or other small key–value maps.\n *\n * @public\n */\nexport const Dictionary = z.record(z.string(), z.string())\n\n/**\n * TypeScript type inferred from {@link Dictionary}.\n *\n * @public\n */\nexport type Dictionary = z.infer<typeof Dictionary>\n","import * as z from 'zod/mini'\n\n/**\n * Length (in characters) of the expected country code.\n *\n * @remarks\n * Typically corresponds to ISO 3166-1 alpha-2 country codes.\n *\n * @internal\n */\nconst COUNTRY_CODE_LENGTH = 2\n\n/**\n * Zod schema describing geographical coordinates.\n *\n * @remarks\n * Latitude and longitude are expressed in decimal degrees.\n *\n * @internal\n */\nconst Coordinates = z.object({\n /**\n * Latitude component of the coordinates.\n */\n latitude: z.number(),\n\n /**\n * Longitude component of the coordinates.\n */\n longitude: z.number(),\n})\n\n/**\n * Zod schema describing geo-location properties for an event or singular profile request.\n *\n * @remarks\n * All properties are optional and can be derived from IP or device data.\n *\n * @public\n */\nexport const GeoLocation = z.object({\n /**\n * Geographical coordinates for the location.\n */\n coordinates: z.optional(Coordinates),\n\n /**\n * City name associated with the location.\n */\n city: z.optional(z.string()),\n\n /**\n * Postal or ZIP code associated with the location.\n */\n postalCode: z.optional(z.string()),\n\n /**\n * Region or state name associated with the location.\n */\n region: z.optional(z.string()),\n\n /**\n * Region or state code associated with the location.\n */\n regionCode: z.optional(z.string()),\n\n /**\n * Country name associated with the location.\n */\n country: z.optional(z.string()),\n\n /**\n * Country code associated with the location.\n *\n * @remarks\n * Validated to exactly COUNTRY_CODE_LENGTH characters, typically\n * an ISO 3166-1 alpha-2 code.\n */\n countryCode: z.optional(z.string().check(z.length(COUNTRY_CODE_LENGTH))),\n\n /**\n * Continent name associated with the location.\n */\n continent: z.optional(z.string()),\n\n /**\n * Time zone identifier associated with the location.\n *\n * @remarks\n * Typically an IANA time zone string (e.g., `\"Europe/Berlin\"`).\n */\n timezone: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link GeoLocation}.\n *\n * @public\n */\nexport type GeoLocation = z.infer<typeof GeoLocation>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing analytics library metadata.\n *\n * @remarks\n * Identifies the client library that produced the event.\n *\n * @public\n */\nexport const Library = z.object({\n /**\n * Name of the SDK/library (e.g., `\"@contentful/optimization-web\"`).\n */\n name: z.string(),\n\n /**\n * Version of the analytics library.\n */\n version: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link Library}.\n *\n * @public\n */\nexport type Library = z.infer<typeof Library>\n","import * as z from 'zod/mini'\nimport { Dictionary } from './Dictionary'\n\n/**\n * Zod schema describing Web page-level properties for events.\n *\n * @remarks\n * The base object describes standard page attributes, while additional\n * JSON properties can be present due to the use of `z.catchall`.\n *\n * @public\n */\nexport const Page = z.catchall(\n z.object({\n /**\n * Path component of the page URL (e.g., `/products/123`).\n */\n path: z.string(),\n\n /**\n * Parsed query parameters for the page.\n */\n query: Dictionary,\n\n /**\n * Referrer URL that led to the current page.\n */\n referrer: z.string(),\n\n /**\n * Raw search string including the leading `?` (e.g., `\"?q=test\"`).\n */\n search: z.string(),\n\n /**\n * Title of the page as seen by the user.\n */\n title: z.optional(z.string()),\n\n /**\n * Full URL of the page.\n */\n url: z.string(),\n }),\n z.json(),\n)\n\n/**\n * TypeScript type inferred from {@link Page}.\n *\n * @public\n */\nexport type Page = z.infer<typeof Page>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing a generic collection of event properties.\n *\n * @remarks\n * Represents an arbitrary JSON-serializable map from string keys to values.\n *\n * @public\n */\nexport const Properties = z.record(z.string(), z.json())\n\n/**\n * TypeScript type inferred from {@link Properties}.\n *\n * @public\n */\nexport type Properties = z.infer<typeof Properties>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing screen-level properties for events.\n *\n * @remarks\n * The base object describes standard screen attributes, while additional\n * JSON properties can be present due to the use of `z.catchall`.\n *\n * @public\n */\nexport const Screen = z.catchall(\n z.object({\n /**\n * Name or label for the screen.\n */\n name: z.string(),\n }),\n z.json(),\n)\n\n/**\n * TypeScript type inferred from {@link Screen}.\n *\n * @public\n */\nexport type Screen = z.infer<typeof Screen>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing user traits / identity properties.\n *\n * @remarks\n * Represents an arbitrary JSON-serializable map from string keys to values.\n * Common traits can include `name`, `plan`, and custom attributes.\n *\n * @public\n */\nexport const Traits = z.record(z.string(), z.json())\n\n/**\n * TypeScript type inferred from {@link Traits}.\n *\n * @public\n */\nexport type Traits = z.infer<typeof Traits>\n","import * as z from 'zod/mini'\nimport { App, Campaign, Channel, GeoLocation, Library, Page, Screen } from './properties'\n\n/**\n * Zod schema describing universal event context properties shared by all\n * analytics events.\n *\n * @remarks\n * The `page` and `screen` properties are optional, but we recommend omitting\n * them for event types that are not `page` or `screen`.\n *\n * @public\n */\nexport const UniversalEventContext = z.object({\n /**\n * Application-level metadata.\n */\n app: App,\n\n /**\n * Campaign attribution metadata.\n */\n campaign: Campaign,\n\n /**\n * GDPR-related consent information.\n */\n gdpr: z.object({\n /**\n * Indicates whether the user has given consent.\n */\n isConsentGiven: z.boolean(),\n }),\n\n /**\n * Analytics library metadata.\n */\n library: Library,\n\n /**\n * Locale identifier of the event (e.g., `\"en-US\"`).\n */\n locale: z.string(),\n\n /**\n * Optional geo-location information associated with the event.\n */\n location: z.optional(GeoLocation),\n\n /**\n * User agent string of the client, if available.\n */\n userAgent: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link UniversalEventContext}.\n *\n * @public\n */\nexport type UniversalEventContext = z.infer<typeof UniversalEventContext>\n\n/**\n * Zod schema describing universal properties shared by all analytics events.\n *\n * @remarks\n * These properties capture common metadata such as channel, context,\n * timestamps, and user identifiers.\n *\n * @public\n */\nexport const UniversalEventProperties = z.object({\n /**\n * Channel from which the event originated.\n *\n * @see {@link Channel}\n */\n channel: Channel,\n\n /**\n * Context object carrying environment and client metadata.\n */\n context: z.extend(UniversalEventContext, {\n page: z.optional(Page),\n screen: z.optional(Screen),\n }),\n\n /**\n * Unique identifier for this message.\n *\n * @remarks\n * Used to deduplicate events across retries and transports.\n */\n messageId: z.string(),\n\n /**\n * Timestamp when the event originally occurred.\n *\n * @remarks\n * ISO 8601 datetime string.\n */\n originalTimestamp: z.iso.datetime(),\n\n /**\n * Timestamp when the event payload was sent.\n *\n * @remarks\n * ISO 8601 datetime string.\n */\n sentAt: z.iso.datetime(),\n\n /**\n * Timestamp when the event was recorded or processed.\n *\n * @remarks\n * ISO 8601 datetime string.\n */\n timestamp: z.iso.datetime(),\n\n /**\n * Identifier of the authenticated user, if known.\n */\n userId: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link UniversalEventProperties}.\n *\n * @public\n */\nexport type UniversalEventProperties = z.infer<typeof UniversalEventProperties>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\n\n/**\n * Zod schema describing the supported kinds of ExO entities.\n *\n * @public\n */\nexport const ExoEntityKind = z.enum(['Experience', 'Fragment', 'InlineFragment', 'InlineComponent'])\n\n/**\n * TypeScript type inferred from {@link ExoEntityKind}.\n *\n * @public\n */\nexport type ExoEntityKind = z.infer<typeof ExoEntityKind>\n\n/**\n * Zod schema describing properties shared by ExO interaction events.\n *\n * @public\n */\nexport const ExoEventProperties = z.extend(UniversalEventProperties, {\n /** Identifier of the rendered ExO entity. */\n entityId: z.string(),\n\n /** Kind of ExO entity represented by this event. */\n entityKind: ExoEntityKind,\n\n /** Optional identifier of the entity's concrete content kind. */\n entityKindId: z.optional(z.string()),\n\n /** Contentful entry identifiers rendered by the entity. */\n entryIds: z.optional(z.array(z.string())),\n\n /** Identifier of the optimization that selected the entity variant, when available. */\n optimizationId: z.optional(z.string()),\n\n /** Parameter values used to render the entity. */\n parameters: z.optional(z.record(z.string(), z.json())),\n\n /** Identifier of the containing experience, when the entity is nested. */\n parentExperienceId: z.optional(z.string()),\n\n /** Selected variant of the root experience, or `default` for its baseline. Omitted on the experience itself. */\n parentVariantId: z.optional(z.string()),\n\n /** Identifier of the selected entity variant, when available. */\n variantId: z.optional(z.string()),\n\n /** Index of the selected variant when available. */\n variantIndex: z.optional(z.number()),\n})\n\n/**\n * TypeScript type inferred from {@link ExoEventProperties}.\n *\n * @public\n */\nexport type ExoEventProperties = z.infer<typeof ExoEventProperties>\n","import * as z from 'zod/mini'\nimport { ExoEventProperties } from './ExoEventProperties'\n\n/**\n * Zod schema describing an `exo_node_view` event.\n *\n * @public\n */\nexport const ExoViewEvent = z.extend(ExoEventProperties, {\n type: z.literal('exo_node_view'),\n viewDurationMs: z.int().check(z.minimum(0)),\n viewId: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link ExoViewEvent}.\n *\n * @public\n */\nexport type ExoViewEvent = z.infer<typeof ExoViewEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\nimport { Traits } from './properties/Traits'\n\n/**\n * Zod schema describing an `identify` event.\n *\n * @remarks\n * Identify events attach user traits to a known identity.\n *\n * Extends {@link UniversalEventProperties} with a `traits` payload.\n *\n * @public\n */\nexport const IdentifyEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is an identify event.\n */\n type: z.literal('identify'),\n\n /**\n * Traits describing the user.\n *\n * @see {@link Traits}\n */\n traits: Traits,\n})\n\n/**\n * TypeScript type inferred from {@link IdentifyEvent}.\n *\n * @public\n */\nexport type IdentifyEvent = z.infer<typeof IdentifyEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventContext, UniversalEventProperties } from './UniversalEventProperties'\nimport { Page } from './properties'\n\n/**\n * Zod schema describing event context properties specific to page events.\n *\n * @public\n */\nexport const PageEventContext = z.extend(UniversalEventContext, {\n /**\n * Page context for events that occur within a web page.\n */\n page: Page,\n})\n\n/**\n * TypeScript type inferred from {@link PageEventContext}.\n *\n * @public\n */\nexport type PageEventContext = z.infer<typeof PageEventContext>\n\n/**\n * Zod schema describing a `page` view event.\n *\n * @remarks\n * Page view events track visits to web pages and associated context.\n *\n * Extends {@link UniversalEventProperties} with optional `name` and\n * page-level {@link Page} properties.\n *\n * @public\n */\nexport const PageViewEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is a page view.\n */\n type: z.literal('page'),\n\n /**\n * Optional name for the page.\n *\n * @remarks\n * Useful when the logical page name differs from the URL or title.\n */\n name: z.optional(z.string()),\n\n /**\n * Page-level properties such as URL, path, and referrer.\n */\n properties: Page,\n\n /**\n * Override the context property of {@link UniversalEventProperties}\n * with a page-specific context.\n */\n context: PageEventContext,\n})\n\n/**\n * TypeScript type inferred from {@link PageViewEvent}.\n *\n * @public\n */\nexport type PageViewEvent = z.infer<typeof PageViewEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventContext, UniversalEventProperties } from './UniversalEventProperties'\nimport { Properties, Screen } from './properties'\n\n/**\n * Zod schema describing event context properties specific to screen events.\n *\n * @public\n */\nexport const ScreenEventContext = z.extend(UniversalEventContext, {\n /**\n * Screen context for events that occur within a mobile or TV application.\n */\n screen: Screen,\n})\n\n/**\n * TypeScript type inferred from {@link ScreenEventContext}.\n *\n * @public\n */\nexport type ScreenEventContext = z.infer<typeof ScreenEventContext>\n\n/**\n * Zod schema describing a `screen` view event.\n *\n * @remarks\n * Screen view events are typically used by mobile or TV applications\n * to track navigation between screens.\n *\n * Extends {@link UniversalEventProperties}.\n *\n * @public\n */\nexport const ScreenViewEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is a screen view.\n */\n type: z.literal('screen'),\n\n /**\n * Name of the screen being viewed.\n */\n name: z.string(),\n\n /**\n * Optional properties describing the screen context.\n *\n * @see {@link Properties}\n */\n properties: z.optional(Properties),\n\n /**\n * Override the context property of {@link UniversalEventProperties}\n * with a screen-specific context.\n */\n context: ScreenEventContext,\n})\n\n/**\n * TypeScript type inferred from {@link ScreenViewEvent}.\n *\n * @public\n */\nexport type ScreenViewEvent = z.infer<typeof ScreenViewEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\nimport { Properties } from './properties'\n\n/**\n * Zod schema describing a custom `track` event.\n *\n * @remarks\n * Track events capture arbitrary user actions that do not fit into\n * the more specific event types (page, screen, identify, etc.).\n *\n * Extends {@link UniversalEventProperties}.\n *\n * @public\n */\nexport const TrackEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is a track event.\n */\n type: z.literal('track'),\n\n /**\n * Name of the event being tracked.\n */\n event: z.string(),\n\n /**\n * Additional properties describing the event.\n */\n properties: Properties,\n})\n\n/**\n * TypeScript type inferred from {@link TrackEvent}.\n *\n * @public\n */\nexport type TrackEvent = z.infer<typeof TrackEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\n\n/**\n * Zod schema describing shared interaction event properties.\n *\n * @public\n */\nexport const InteractionEventProperties = z.extend(UniversalEventProperties, {\n /**\n * Type of tracked optimization target for the interaction event.\n *\n * - `'Entry'` — A content entry.\n * - `'Variable'` — A Custom Flag or other variable-backed optimization target.\n */\n componentType: z.union([z.literal('Entry'), z.literal('Variable')]),\n\n /**\n * Contentful entry ID or flag key corresponding to the interaction.\n */\n componentId: z.string(),\n\n /**\n * Identifier of the experience that rendered this entry or flag.\n *\n * @remarks\n * Optional; interactions can occur outside of a specific experiment/personalization.\n */\n experienceId: z.optional(z.string()),\n\n /**\n * Index of the variant associated with this interaction.\n *\n * @remarks\n * Typically corresponds to the index of the selected optimization entry.\n */\n variantIndex: z.number(),\n})\n\n/**\n * TypeScript type inferred from {@link InteractionEventProperties}.\n *\n * @public\n */\nexport type InteractionEventProperties = z.infer<typeof InteractionEventProperties>\n","import * as z from 'zod/mini'\nimport { InteractionEventProperties } from './InteractionEventProperties'\n\n/**\n * Zod schema describing a `component` view event used for entry and flag exposure tracking.\n *\n * @remarks\n * These events track exposure of entries and variable-backed optimization\n * targets within an optimized experience.\n *\n * Extends {@link InteractionEventProperties}.\n *\n * @public\n */\nexport const ViewEvent = z.extend(InteractionEventProperties, {\n /**\n * Discriminator indicating that this is an entry or flag view event.\n */\n type: z.literal('component'),\n /**\n * Monotonically increasing visible duration for the active view.\n *\n * @remarks\n * This value is updated and re-emitted while the same view remains active.\n */\n viewDurationMs: z.optional(z.number()),\n /**\n * UUID identifying a single active view session.\n *\n * @remarks\n * Multiple events emitted for the same active view share this identifier.\n */\n viewId: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link ViewEvent}.\n *\n * @public\n */\nexport type ViewEvent = z.infer<typeof ViewEvent>\n","import * as z from 'zod/mini'\nimport { ExoViewEvent } from './ExoViewEvent'\nimport { IdentifyEvent } from './IdentifyEvent'\nimport { PageViewEvent } from './PageViewEvent'\nimport { ScreenViewEvent } from './ScreenViewEvent'\nimport { TrackEvent } from './TrackEvent'\nimport { ViewEvent } from './ViewEvent'\n\n/**\n * Partial schema capturing an anonymous identifier.\n *\n * @remarks\n * This object is merged into each event type in a batch to associate the\n * event with an `anonymousId`.\n *\n * @internal\n */\nconst Anon = { anonymousId: z.string() }\n\n/**\n * Zod schema describing each valid Experience API event within a batch.\n *\n * @remarks\n * This is a discriminated union on the `type` field that supports all event\n * types used in batch ingestion, each extended with an `anonymousId`.\n *\n * @public\n */\nexport const BatchExperienceEvent = z.discriminatedUnion('type', [\n z.extend(ViewEvent, Anon),\n z.extend(ExoViewEvent, Anon),\n z.extend(IdentifyEvent, Anon),\n z.extend(PageViewEvent, Anon),\n z.extend(ScreenViewEvent, Anon),\n z.extend(TrackEvent, Anon),\n])\n\n/**\n * TypeScript type inferred from {@link BatchExperienceEvent}.\n *\n * @public\n */\nexport type BatchExperienceEvent = z.infer<typeof BatchExperienceEvent>\n\n/**\n * Zod schema describing an array of {@link BatchExperienceEvent} items.\n *\n * @public\n */\nexport const BatchExperienceEventArray = z.array(BatchExperienceEvent)\n\n/**\n * TypeScript type inferred from {@link BatchExperienceEventArray}.\n *\n * @public\n */\nexport type BatchExperienceEventArray = z.infer<typeof BatchExperienceEventArray>\n","import * as z from 'zod/mini'\nimport { ExoViewEvent } from './ExoViewEvent'\nimport { IdentifyEvent } from './IdentifyEvent'\nimport { PageViewEvent } from './PageViewEvent'\nimport { ScreenViewEvent } from './ScreenViewEvent'\nimport { TrackEvent } from './TrackEvent'\nimport { ViewEvent } from './ViewEvent'\n\n/**\n * Zod schema describing any supported Experience API event.\n *\n * @remarks\n * This discriminated union aggregates all event types used by the\n * personalization/experience tracking system.\n *\n * @public\n */\nexport const ExperienceEvent = z.discriminatedUnion('type', [\n ViewEvent,\n ExoViewEvent,\n IdentifyEvent,\n PageViewEvent,\n ScreenViewEvent,\n TrackEvent,\n])\n\n/**\n * TypeScript type inferred from {@link ExperienceEvent}.\n *\n * @public\n */\nexport type ExperienceEvent = z.infer<typeof ExperienceEvent>\n\n/**\n * Union of all possible `type` values for {@link ExperienceEvent}.\n *\n * @public\n */\nexport type ExperienceEventType = ExperienceEvent['type']\n\n/**\n * Zod schema describing an array of {@link ExperienceEvent} items.\n *\n * @public\n */\nexport const ExperienceEventArray = z.array(ExperienceEvent)\n\n/**\n * TypeScript type inferred from {@link ExperienceEventArray}.\n *\n * @public\n */\nexport type ExperienceEventArray = z.infer<typeof ExperienceEventArray>\n","import * as z from 'zod/mini'\nimport { ExperienceEventArray } from './event'\nimport { GeoLocation } from './event/properties/GeoLocation'\n\n/**\n * Zod schema describing optional configuration for an experience request.\n *\n * @remarks\n * These options configure feature flags and the request location default when\n * evaluating experiences through singular profile requests.\n *\n * @public\n */\nexport const ExperienceRequestOptions = z.object({\n /**\n * Features or capabilities to enable for this request.\n */\n features: z.optional(z.array(z.string())),\n\n /**\n * Location default for singular profile requests. Event `context.location` fields override it.\n */\n location: z.optional(GeoLocation),\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceRequestOptions}.\n *\n * @public\n */\nexport type ExperienceRequestOptions = z.infer<typeof ExperienceRequestOptions>\n\n/**\n * Zod schema describing the data payload for an experience request.\n *\n * @remarks\n * Contains the list of events to be evaluated plus optional request\n * configuration.\n *\n * @public\n */\nexport const ExperienceRequestData = z.object({\n /**\n * Experience events for the Experience API to evaluate.\n *\n * @remarks\n * Must contain at least one event.\n */\n events: ExperienceEventArray.check(z.minLength(1)),\n\n /**\n * Optional configuration for this experience request.\n */\n options: z.optional(ExperienceRequestOptions),\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceRequestData}.\n *\n * @public\n */\nexport type ExperienceRequestData = z.infer<typeof ExperienceRequestData>\n","import * as z from 'zod/mini'\nimport { BatchExperienceEventArray } from './event'\nimport { ExperienceRequestOptions } from './ExperienceRequest'\n\n/**\n * Zod schema describing the data payload for a batch experience request.\n *\n * @remarks\n * Batch events require an `anonymousId` on each event and must contain at\n * least one event.\n */\nexport const BatchExperienceRequestData = z.object({\n /**\n * Batch experience events for the Experience API to evaluate.\n *\n * @remarks\n * Must contain at least one event.\n */\n events: BatchExperienceEventArray.check(z.minLength(1)),\n\n /**\n * Optional feature configuration. Batch locations belong in each event's `context.location`.\n */\n options: z.optional(z.omit(ExperienceRequestOptions, { location: true })),\n})\n\n/**\n * TypeScript type inferred from {@link BatchExperienceRequestData}.\n */\nexport type BatchExperienceRequestData = z.infer<typeof BatchExperienceRequestData>\n","import * as z from 'zod/mini'\nimport { Page } from '../../event/properties'\n\n/**\n * Zod schema describing aggregated statistics for a user session.\n *\n * @remarks\n * Captures both per-session metrics (such as `activeSessionLength`) and\n * aggregate metrics (such as `averageSessionLength`) for a given profile.\n *\n * @public\n */\nexport const SessionStatistics = z.object({\n /**\n * Unique identifier for this session statistics record.\n */\n id: z.string(),\n\n /**\n * Indicates whether the visitor has been seen before.\n *\n * @remarks\n * `true` typically means the visitor has at least one prior session.\n */\n isReturningVisitor: z.boolean(),\n\n /**\n * Landing page for the session.\n *\n * @remarks\n * Represents the first page the user visited in this session.\n *\n * @see {@link Page}\n */\n landingPage: Page,\n\n /**\n * Number of sessions associated with this profile or identifier.\n *\n * @remarks\n * Often used in combination with `SessionStatistics.averageSessionLength`.\n */\n count: z.number(),\n\n /**\n * Duration of the active session.\n */\n activeSessionLength: z.number(),\n\n /**\n * Average session duration across all sessions represented by this record.\n *\n * @remarks\n * The unit must match `SessionStatistics.activeSessionLength`.\n */\n averageSessionLength: z.number(),\n})\n\n/**\n * TypeScript type inferred from {@link SessionStatistics}.\n *\n * @public\n */\nexport type SessionStatistics = z.infer<typeof SessionStatistics>\n","import * as z from 'zod/mini'\nimport { GeoLocation } from '../event/properties'\nimport { Traits } from '../event/properties/Traits'\nimport { SessionStatistics } from './properties'\n\n/**\n * Zod schema describing a full user profile as received from the Experience API.\n *\n * @remarks\n * Represents the server-side view of a profile, including identifiers,\n * traits, audiences, location, and session statistics.\n *\n * @public\n */\nexport const Profile = z.object({\n /**\n * Primary identifier of the profile.\n */\n id: z.string(),\n\n /**\n * Stable, long-lived identifier of the profile.\n *\n * @remarks\n * Intended to remain constant across sessions and devices when possible.\n * Usually equal to `id`.\n */\n stableId: z.string(),\n\n /**\n * Random value associated with the profile.\n *\n * @remarks\n * Often used for deterministic bucketing (e.g., in experiments).\n */\n random: z.number(),\n\n /**\n * List of audience identifiers that this profile belongs to.\n */\n audiences: z.array(z.string()),\n\n /**\n * Traits describing the profile (user-level attributes).\n *\n * @see {@link Traits}\n */\n traits: Traits,\n\n /**\n * Geo-location information associated with the profile.\n *\n * @see {@link GeoLocation}\n */\n location: GeoLocation,\n\n /**\n * Aggregated session statistics for the profile.\n *\n * @see {@link SessionStatistics}\n */\n session: SessionStatistics,\n})\n\n/**\n * TypeScript type inferred from {@link Profile}.\n *\n * @public\n */\nexport type Profile = z.infer<typeof Profile>\n\n/**\n * Zod schema describing a partial profile payload used for sending events\n * to the Experience & Insights APIs.\n *\n * @remarks\n * This schema enforces the presence of an `id` field and allows additional\n * JSON-serializable properties via `z.catchall`.\n *\n * @public\n */\nexport const PartialProfile = z.catchall(\n z.object({\n /**\n * Identifier of the profile.\n *\n * @remarks\n * Used to associate events with an existing profile.\n */\n id: z.string(),\n }),\n z.json(),\n)\n\n/**\n * TypeScript type inferred from {@link PartialProfile}.\n *\n * @public\n */\nexport type PartialProfile = z.infer<typeof PartialProfile>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing the common envelope structure of responses\n * from the Experience API.\n *\n * @remarks\n * Concrete responses extend this schema and refine the `data` property\n * to a more specific shape.\n *\n * @public\n */\nexport const ResponseEnvelope = z.object({\n /**\n * Response payload.\n *\n * @remarks\n * The base schema uses an empty object; specific responses extend this\n * with more detailed structures.\n */\n data: z.object(),\n\n /**\n * Human-readable message accompanying the response.\n */\n message: z.string(),\n\n /**\n * Error details, or `null` when the request succeeded.\n */\n error: z.nullable(z.object({ code: z.string() })),\n})\n\n/**\n * TypeScript type inferred from {@link ResponseEnvelope}.\n *\n * @public\n */\nexport type ResponseEnvelope = z.infer<typeof ResponseEnvelope>\n","import * as z from 'zod/mini'\nimport { Profile } from './profile'\nimport { ResponseEnvelope } from './ResponseEnvelope'\n\n/**\n * Zod schema describing the `data` property of a batch experience response.\n *\n * @remarks\n * A batch request can return zero or more profiles. When no profiles are\n * returned, `profiles` can be omitted or an empty array.\n *\n * @public\n */\nexport const BatchExperienceResponseData = z.object({\n /**\n * Profiles evaluated or affected by the batch experience request.\n */\n profiles: z.optional(z.array(Profile)),\n})\n\n/**\n * TypeScript type inferred from {@link BatchExperienceResponseData}.\n *\n * @public\n */\nexport type BatchExperienceResponseData = z.infer<typeof BatchExperienceResponseData>\n\n/**\n * Zod schema describing a batch experience response from the Experience API.\n *\n * @remarks\n * Extends {@link ResponseEnvelope} with {@link BatchExperienceResponseData} as the\n * `data` payload.\n *\n * @public\n */\nexport const BatchExperienceResponse = z.extend(ResponseEnvelope, {\n data: BatchExperienceResponseData,\n})\n\n/**\n * TypeScript type inferred from {@link BatchExperienceResponse}.\n *\n * @public\n */\nexport type BatchExperienceResponse = z.infer<typeof BatchExperienceResponse>\n","import * as z from 'zod/mini'\n\n/**\n * Enumeration of supported change types.\n *\n * @public\n */\nexport const ChangeType = ['Variable', 'Experience', 'Fragment'] as const\n\n/**\n * Zod schema describing the base shape for a change.\n *\n * @remarks\n * This base is extended by specific change types such as {@link VariableChange}.\n *\n * @internal\n */\nexport const ChangeBase = z.object({\n /**\n * Key identifying the subject of the change.\n */\n key: z.string(),\n\n /**\n * Discriminator for the change type.\n *\n * @remarks\n * Can be one of {@link ChangeType} or an arbitrary string for unknown types.\n */\n type: z.union([z.enum(ChangeType), z.string()]),\n\n /**\n * Metadata describing the originating experience and variant index.\n */\n meta: z.object({\n /**\n * Identifier of the personalization or experiment experience.\n */\n experienceId: z.string(),\n\n /**\n * Index of the variant within the experience configuration.\n *\n * @remarks\n * Typically corresponds to the array index in the experience's distribution.\n */\n variantIndex: z.number(),\n }),\n})\n\n/**\n * Zod schema for the allowed value types of a variable change.\n *\n * @remarks\n * Supports primitives and JSON objects keyed by strings.\n *\n * @public\n */\nexport const VariableChangeValue = z.union([\n z.string(),\n z.boolean(),\n z.null(),\n z.number(),\n z.record(z.string(), z.json()),\n])\n\n/**\n * Zod schema representing an unknown change type.\n *\n * @remarks\n * This can be used to handle forward-compatible change payloads where\n * the `type` is not recognized.\n *\n * @public\n */\nexport const UnknownChange = z.extend(ChangeBase, {\n /**\n * Unconstrained change type string.\n */\n type: z.string(),\n\n /**\n * Payload for the change value, with unknown structure.\n */\n value: z.unknown(),\n})\n\n/**\n * TypeScript type inferred from {@link UnknownChange}.\n *\n * @public\n */\nexport type UnknownChange = z.infer<typeof UnknownChange>\n\n/**\n * Zod schema representing a change whose type is `'Variable'`.\n *\n * @remarks\n * The `value` must conform to {@link VariableChangeValue}.\n *\n * @public\n */\nexport const VariableChange = z.extend(ChangeBase, {\n /**\n * Discriminator for a variable change.\n */\n type: z.literal('Variable'),\n\n /**\n * New value for the variable identified by `ChangeBase.key`.\n */\n value: VariableChangeValue,\n})\n\n/**\n * TypeScript type inferred from {@link VariableChange}.\n *\n * @public\n */\nexport type VariableChange = z.infer<typeof VariableChange>\n\n/**\n * Zod schema describing the base shape shared by entity-based changes\n * ({@link ExperienceChange} and {@link FragmentChange}).\n *\n * @internal\n */\nexport const EntityChangeBase = z.object({\n /**\n * Identifier of the entity affected by the change.\n */\n id: z.string(),\n\n /**\n * Identifier of the selected variant.\n */\n variantId: z.string(),\n\n /**\n * Metadata describing the originating optimization and variant index.\n */\n meta: z.object({\n /**\n * Identifier of the optimization that produced this change.\n */\n optimizationId: z.string(),\n\n /**\n * Index of the variant within the optimization's distribution.\n */\n variantIndex: z.number(),\n }),\n})\n\n/**\n * Zod schema representing a change whose type is `'Experience'`.\n *\n * @public\n */\nexport const ExperienceChange = z.extend(EntityChangeBase, {\n /**\n * Discriminator for an experience change.\n */\n type: z.literal('Experience'),\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceChange}.\n *\n * @public\n */\nexport type ExperienceChange = z.infer<typeof ExperienceChange>\n\n/**\n * Zod schema representing a change whose type is `'Fragment'`.\n *\n * @public\n */\nexport const FragmentChange = z.extend(EntityChangeBase, {\n /**\n * Discriminator for a fragment change.\n */\n type: z.literal('Fragment'),\n})\n\n/**\n * TypeScript type inferred from {@link FragmentChange}.\n *\n * @public\n */\nexport type FragmentChange = z.infer<typeof FragmentChange>\n\n/**\n * JSON value type inferred from {@link z.json}.\n *\n * @remarks\n * Represents any JSON-serializable value.\n *\n * @public\n */\nexport type Json = z.infer<typeof z.json>\n\n/**\n * Map of Custom Flag keys to JSON values.\n *\n * @public\n */\nexport type Flags = Record<string, Json>\n\n/**\n * Union of supported change types.\n *\n * @public\n */\nexport const Change = z.discriminatedUnion('type', [\n VariableChange,\n ExperienceChange,\n FragmentChange,\n])\n\n/**\n * TypeScript type inferred from {@link Change}.\n *\n * @public\n */\nexport type Change = z.infer<typeof Change>\n\n/**\n * Zod schema representing an array of {@link Change} items.\n *\n * @public\n */\nexport const ChangeArray = z.array(Change)\n\n/**\n * TypeScript type inferred from {@link ChangeArray}.\n *\n * @public\n */\nexport type ChangeArray = z.infer<typeof ChangeArray>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing a selected optimization outcome for a user.\n *\n * @remarks\n * Represents the result of choosing a specific variant for a given\n * experience, along with additional metadata such as whether the\n * selection is sticky.\n *\n * @public\n */\nexport const SelectedOptimization = z.object({\n /**\n * Identifier of the personalization or experiment experience.\n */\n experienceId: z.string(),\n\n /**\n * Index of the selected variant within the experience configuration.\n *\n * @remarks\n * Typically corresponds to the index of the selected `OptimizationConfig` entry.\n */\n variantIndex: z.number(),\n\n /**\n * Mapping of baseline entry IDs to their selected variant entry IDs.\n *\n * @remarks\n * The keys are component identifiers and the values are the\n * identifiers of the selected variant for that component.\n */\n variants: z.record(z.string(), z.string()),\n\n /**\n * Indicates whether this optimization selection is sticky for the user.\n *\n * @defaultValue false\n *\n * @remarks\n * Reuse sticky selections on subsequent requests for the same user rather\n * than re-allocating a new variant.\n */\n sticky: z.optional(z.prefault(z.boolean(), false)),\n})\n\n/**\n * TypeScript type inferred from {@link SelectedOptimization}.\n *\n * @public\n */\nexport type SelectedOptimization = z.infer<typeof SelectedOptimization>\n\n/**\n * Zod schema describing an array of {@link SelectedOptimization} items.\n *\n * @remarks\n * Useful when multiple experiences are evaluated at once.\n *\n * @public\n */\nexport const SelectedOptimizationArray = z.array(SelectedOptimization)\n\n/**\n * TypeScript type inferred from {@link SelectedOptimizationArray}.\n *\n * @public\n */\nexport type SelectedOptimizationArray = z.infer<typeof SelectedOptimizationArray>\n","import * as z from 'zod/mini'\nimport { ChangeArray } from './change'\nimport { SelectedOptimizationArray } from './optimization'\nimport { Profile } from './profile'\nimport { ResponseEnvelope } from './ResponseEnvelope'\n\n/**\n * Zod schema describing the `data` payload of a standard Experience API response.\n *\n * @remarks\n * Contains the evaluated profile, selected optimizations, and computed\n * changes to apply on the client.\n *\n * @public\n */\nexport const ExperienceData = z.object({\n /**\n * Profile associated with the evaluated events.\n */\n profile: Profile,\n\n /**\n * Selected experiences and variants for the profile.\n *\n * @see {@link SelectedOptimizationArray}\n */\n experiences: SelectedOptimizationArray,\n\n /**\n * Used for Custom Flags.\n *\n * @see {@link ChangeArray}\n */\n changes: ChangeArray,\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceData}.\n *\n * @public\n */\nexport type ExperienceData = z.infer<typeof ExperienceData>\n\n/**\n * Zod schema describing a full Experience API response.\n *\n * @remarks\n * Extends {@link ResponseEnvelope} with {@link ExperienceData} as the `data` payload.\n *\n * @public\n */\nexport const ExperienceResponse = z.extend(ResponseEnvelope, { data: ExperienceData })\n\n/**\n * TypeScript type inferred from {@link ExperienceResponse}.\n *\n * @public\n */\nexport type ExperienceResponse = z.infer<typeof ExperienceResponse>\n\n/**\n * Optimization data shape used for compatibility outside the API adapter.\n *\n * @remarks\n * This type mirrors {@link ExperienceData} but replaces the `experiences`\n * field with `selectedOptimizations` while preserving the rest of the structure.\n *\n * @public\n */\nexport type OptimizationData = Omit<ExperienceData, 'experiences'> & {\n /**\n * Selected optimizations for the profile.\n */\n selectedOptimizations: SelectedOptimizationArray\n}\n","import * as z from 'zod/mini'\nimport { InteractionEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing a `component_click` event used for entry click tracking.\n *\n * @remarks\n * These events track click interactions for entries within an optimized\n * experience.\n *\n * Extends {@link InteractionEventProperties}.\n *\n * @public\n */\nexport const ClickEvent = z.extend(InteractionEventProperties, {\n /**\n * Discriminator indicating that this is an entry click event.\n */\n type: z.literal('component_click'),\n})\n\n/**\n * TypeScript type inferred from {@link ClickEvent}.\n *\n * @public\n */\nexport type ClickEvent = z.infer<typeof ClickEvent>\n","import * as z from 'zod/mini'\nimport { ExoEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing an `exo_node_click` event.\n *\n * @public\n */\nexport const ExoClickEvent = z.extend(ExoEventProperties, {\n type: z.literal('exo_node_click'),\n})\n\n/**\n * TypeScript type inferred from {@link ExoClickEvent}.\n *\n * @public\n */\nexport type ExoClickEvent = z.infer<typeof ExoClickEvent>\n","import * as z from 'zod/mini'\nimport { ExoEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing an `exo_node_hover` event.\n *\n * @public\n */\nexport const ExoHoverEvent = z.extend(ExoEventProperties, {\n type: z.literal('exo_node_hover'),\n hoverDurationMs: z.int().check(z.minimum(0)),\n hoverId: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link ExoHoverEvent}.\n *\n * @public\n */\nexport type ExoHoverEvent = z.infer<typeof ExoHoverEvent>\n","import * as z from 'zod/mini'\nimport { InteractionEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing a `component_hover` event used for entry hover tracking.\n *\n * @remarks\n * These events track hover interactions for entries within an optimized\n * experience.\n *\n * Extends {@link InteractionEventProperties}.\n *\n * @public\n */\nexport const HoverEvent = z.extend(InteractionEventProperties, {\n /**\n * Discriminator indicating that this is an entry hover event.\n */\n type: z.literal('component_hover'),\n /**\n * Monotonically increasing hover duration for the active hover.\n *\n * @remarks\n * This value is updated and re-emitted while the same hover remains active.\n */\n hoverDurationMs: z.number(),\n /**\n * UUID identifying a single active hover session.\n *\n * @remarks\n * Multiple events emitted for the same active hover share this identifier.\n */\n hoverId: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link HoverEvent}.\n *\n * @public\n */\nexport type HoverEvent = z.infer<typeof HoverEvent>\n","import * as z from 'zod/mini'\nimport { ExoViewEvent, ViewEvent } from '../../experience/event'\nimport { ClickEvent } from './ClickEvent'\nimport { ExoClickEvent } from './ExoClickEvent'\nimport { ExoHoverEvent } from './ExoHoverEvent'\nimport { HoverEvent } from './HoverEvent'\n\n/**\n * Zod schema describing an Insights event.\n *\n * @remarks\n * Insights events include legacy component interactions and ExO node\n * interactions.\n *\n * @public\n */\nexport const InsightsEvent = z.discriminatedUnion('type', [\n ViewEvent,\n ClickEvent,\n HoverEvent,\n ExoViewEvent,\n ExoClickEvent,\n ExoHoverEvent,\n])\n\n/**\n * TypeScript type inferred from {@link InsightsEvent}.\n *\n * @public\n */\nexport type InsightsEvent = z.infer<typeof InsightsEvent>\n\n/**\n * Union of all possible `type` values for {@link InsightsEvent}.\n *\n * @public\n */\nexport type InsightsEventType = InsightsEvent['type']\n\n/**\n * Zod schema describing an array of {@link InsightsEvent} items.\n *\n * @public\n */\nexport const InsightsEventArray = z.array(InsightsEvent)\n\n/**\n * TypeScript type inferred from {@link InsightsEventArray}.\n *\n * @public\n */\nexport type InsightsEventArray = z.infer<typeof InsightsEventArray>\n","import * as z from 'zod/mini'\nimport { PartialProfile } from '../../experience/profile'\nimport { InsightsEventArray } from './InsightsEvent'\n\n/**\n * Zod schema describing a batched Insights event payload.\n *\n * @remarks\n * Combines a {@link PartialProfile} with one or more Insights events\n * to be sent to the Contentful Insights API.\n *\n * @public\n */\nexport const BatchInsightsEvent = z.object({\n /**\n * Partial profile information used to associate events with a user.\n *\n * @see {@link PartialProfile}\n */\n profile: PartialProfile,\n\n /**\n * Insights events to record for this profile.\n *\n * @see {@link InsightsEventArray}\n */\n events: InsightsEventArray,\n})\n\n/**\n * TypeScript type inferred from {@link BatchInsightsEvent}.\n *\n * @public\n */\nexport type BatchInsightsEvent = z.infer<typeof BatchInsightsEvent>\n\n/**\n * Zod schema describing an array of {@link BatchInsightsEvent} items.\n *\n * @remarks\n * Useful when sending multiple profile/event batches in a single request.\n *\n * @public\n */\nexport const BatchInsightsEventArray = z.array(BatchInsightsEvent)\n\n/**\n * TypeScript type inferred from {@link BatchInsightsEventArray}.\n *\n * @public\n */\nexport type BatchInsightsEventArray = z.infer<typeof BatchInsightsEventArray>\n","import * as z from 'zod/mini'\nimport en from 'zod/v4/locales/en.js'\n\nz.config(en())\n\nexport function parseWithFriendlyError<T extends z.ZodMiniType>(\n schema: T,\n data: unknown,\n): z.output<T> {\n const result = schema.safeParse(data)\n if (result.success) return result.data\n\n throw new Error(z.prettifyError(result.error))\n}\n"],"names":["App","z","Campaign","Channel","Dictionary","COUNTRY_CODE_LENGTH","Coordinates","GeoLocation","Library","Page","Properties","Screen","Traits","UniversalEventContext","UniversalEventProperties","ExoEntityKind","ExoEventProperties","ExoViewEvent","IdentifyEvent","PageEventContext","PageViewEvent","ScreenEventContext","ScreenViewEvent","TrackEvent","InteractionEventProperties","ViewEvent","Anon","BatchExperienceEvent","BatchExperienceEventArray","ExperienceEvent","ExperienceEventArray","ExperienceRequestOptions","ExperienceRequestData","BatchExperienceRequestData","SessionStatistics","Profile","PartialProfile","ResponseEnvelope","BatchExperienceResponseData","BatchExperienceResponse","ChangeType","ChangeBase","VariableChangeValue","UnknownChange","VariableChange","EntityChangeBase","ExperienceChange","FragmentChange","Change","ChangeArray","SelectedOptimization","SelectedOptimizationArray","ExperienceData","ExperienceResponse","ClickEvent","ExoClickEvent","ExoHoverEvent","HoverEvent","InsightsEvent","InsightsEventArray","BatchInsightsEvent","BatchInsightsEventArray","en","parseWithFriendlyError","schema","data","result","Error"],"mappings":";;AAaO,MAAMA,MAAMC,oCAAAA,QAAU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OAAS,CAAC;AAClB;ACFO,MAAMuD,gBAAgBvD,oCAAAA,MAAQ,CAACe,oBAAoB;IACxD,MAAMf,oCAAAA,OAAS,CAAC;IAChB,iBAAiBA,oCAAAA,GAAK,GAAG,KAAK,CAACA,oCAAAA,OAAS,CAAC;IACzC,SAASA,oCAAAA,MAAQ;AACnB;ACEO,MAAMwD,aAAaxD,oCAAAA,MAAQ,CAACuB,4BAA4B;IAI7D,MAAMvB,oCAAAA,OAAS,CAAC;IAOhB,iBAAiBA,oCAAAA,MAAQ;IAOzB,SAASA,oCAAAA,MAAQ;AACnB;ACjBO,MAAMyD,gBAAgBzD,oCAAAA,kBAAoB,CAAC,QAAQ;IACxDwB;IACA6B;IACAG;IACAxC;IACAsC;IACAC;CACD;AAqBM,MAAMG,qBAAqB1D,oCAAAA,KAAO,CAACyD;AC/BnC,MAAME,qBAAqB3D,oCAAAA,MAAQ,CAAC;IAMzC,SAASmC;IAOT,QAAQuB;AACV;AAiBO,MAAME,0BAA0B5D,oCAAAA,KAAO,CAAC2D;ACzC/C3D,oCAAAA,MAAQ,CAAC6D;AAEF,SAASC,uBACdC,MAAS,EACTC,IAAa;IAEb,MAAMC,SAASF,OAAO,SAAS,CAACC;IAChC,IAAIC,OAAO,OAAO,EAAE,OAAOA,OAAO,IAAI;IAEtC,MAAM,IAAIC,MAAMlE,oCAAAA,aAAe,CAACiE,OAAO,KAAK;AAC9C"}
|
|
1
|
+
{"version":3,"file":"api-schemas.mjs","sources":["../src/schemas/experience/event/properties/App.ts","../src/schemas/experience/event/properties/Campaign.ts","../src/schemas/experience/event/properties/Channel.ts","../src/schemas/experience/event/properties/Dictionary.ts","../src/schemas/experience/event/properties/GeoLocation.ts","../src/schemas/experience/event/properties/Library.ts","../src/schemas/experience/event/properties/Page.ts","../src/schemas/experience/event/properties/Properties.ts","../src/schemas/experience/event/properties/Screen.ts","../src/schemas/experience/event/properties/Traits.ts","../src/schemas/experience/event/UniversalEventProperties.ts","../src/schemas/experience/event/ExoEventProperties.ts","../src/schemas/experience/event/ExoViewEvent.ts","../src/schemas/experience/event/IdentifyEvent.ts","../src/schemas/experience/event/PageViewEvent.ts","../src/schemas/experience/event/ScreenViewEvent.ts","../src/schemas/experience/event/TrackEvent.ts","../src/schemas/experience/event/InteractionEventProperties.ts","../src/schemas/experience/event/ViewEvent.ts","../src/schemas/experience/event/BatchExperienceEvent.ts","../src/schemas/experience/event/ExperienceEvent.ts","../src/schemas/experience/ExperienceRequest.ts","../src/schemas/experience/BatchExperienceRequest.ts","../src/schemas/experience/profile/properties/SessionStatistics.ts","../src/schemas/experience/profile/Profile.ts","../src/schemas/experience/ResponseEnvelope.ts","../src/schemas/experience/BatchExperienceResponse.ts","../src/schemas/experience/change/Change.ts","../src/schemas/experience/optimization/SelectedOptimization.ts","../src/schemas/experience/ExperienceResponse.ts","../src/schemas/insights/event/ClickEvent.ts","../src/schemas/insights/event/ExoClickEvent.ts","../src/schemas/insights/event/ExoHoverEvent.ts","../src/schemas/insights/event/HoverEvent.ts","../src/schemas/insights/event/InsightsEvent.ts","../src/schemas/insights/event/BatchInsightsEvent.ts","../src/schemas/validation/parseWithFriendlyError.ts"],"sourcesContent":["import * as z from 'zod/mini'\n\n/**\n * Zod schema describing app-level properties.\n *\n * @remarks\n * These properties typically describe the application that is emitting\n * analytics events, such as its name and version.\n *\n * The entire object is optional; when omitted, no app context is attached.\n *\n * @public\n */\nexport const App = z.optional(\n z.object({\n /**\n * Name of the application.\n */\n name: z.string(),\n\n /**\n * Version of the application.\n */\n version: z.string(),\n }),\n)\n\n/**\n * TypeScript type inferred from {@link App}.\n *\n * @public\n */\nexport type App = z.infer<typeof App>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing campaign attribution properties.\n *\n * @remarks\n * These fields typically mirror UTM parameters used for marketing campaigns.\n *\n * @public\n */\nexport const Campaign = z.object({\n /**\n * Name of the campaign (e.g., `utm_campaign`).\n */\n name: z.optional(z.string()),\n\n /**\n * Campaign source (e.g., `utm_source`).\n */\n source: z.optional(z.string()),\n\n /**\n * Campaign medium (e.g., `utm_medium`).\n */\n medium: z.optional(z.string()),\n\n /**\n * Campaign term (e.g., `utm_term`).\n */\n term: z.optional(z.string()),\n\n /**\n * Campaign content (e.g., `utm_content`).\n */\n content: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link Campaign}.\n *\n * @public\n */\nexport type Campaign = z.infer<typeof Campaign>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing the analytics channel.\n *\n * @remarks\n * Indicates the execution environment where the event originated.\n *\n * - `'mobile'` — Events from native or hybrid mobile apps.\n * - `'server'` — Events emitted from backend/server-side code.\n * - `'web'` — Events from web browsers or web-based clients.\n *\n * @public\n */\nexport const Channel = z.union([z.literal('mobile'), z.literal('server'), z.literal('web')])\n\n/**\n * TypeScript type inferred from {@link Channel}.\n *\n * @public\n */\nexport type Channel = z.infer<typeof Channel>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing a string-to-string dictionary.\n *\n * @remarks\n * Commonly used for query parameters or other small key–value maps.\n *\n * @public\n */\nexport const Dictionary = z.record(z.string(), z.string())\n\n/**\n * TypeScript type inferred from {@link Dictionary}.\n *\n * @public\n */\nexport type Dictionary = z.infer<typeof Dictionary>\n","import * as z from 'zod/mini'\n\n/**\n * Length (in characters) of the expected country code.\n *\n * @remarks\n * Typically corresponds to ISO 3166-1 alpha-2 country codes.\n *\n * @internal\n */\nconst COUNTRY_CODE_LENGTH = 2\n\n/**\n * Zod schema describing geographical coordinates.\n *\n * @remarks\n * Latitude and longitude are expressed in decimal degrees.\n *\n * @internal\n */\nconst Coordinates = z.object({\n /**\n * Latitude component of the coordinates.\n */\n latitude: z.number(),\n\n /**\n * Longitude component of the coordinates.\n */\n longitude: z.number(),\n})\n\n/**\n * Zod schema describing geo-location properties for an event or singular profile request.\n *\n * @remarks\n * All properties are optional and can be derived from IP or device data.\n *\n * @public\n */\nexport const GeoLocation = z.object({\n /**\n * Geographical coordinates for the location.\n */\n coordinates: z.optional(Coordinates),\n\n /**\n * City name associated with the location.\n */\n city: z.optional(z.string()),\n\n /**\n * Postal or ZIP code associated with the location.\n */\n postalCode: z.optional(z.string()),\n\n /**\n * Region or state name associated with the location.\n */\n region: z.optional(z.string()),\n\n /**\n * Region or state code associated with the location.\n */\n regionCode: z.optional(z.string()),\n\n /**\n * Country name associated with the location.\n */\n country: z.optional(z.string()),\n\n /**\n * Country code associated with the location.\n *\n * @remarks\n * Validated to exactly COUNTRY_CODE_LENGTH characters, typically\n * an ISO 3166-1 alpha-2 code.\n */\n countryCode: z.optional(z.string().check(z.length(COUNTRY_CODE_LENGTH))),\n\n /**\n * Continent name associated with the location.\n */\n continent: z.optional(z.string()),\n\n /**\n * Time zone identifier associated with the location.\n *\n * @remarks\n * Typically an IANA time zone string (e.g., `\"Europe/Berlin\"`).\n */\n timezone: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link GeoLocation}.\n *\n * @public\n */\nexport type GeoLocation = z.infer<typeof GeoLocation>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing analytics library metadata.\n *\n * @remarks\n * Identifies the client library that produced the event.\n *\n * @public\n */\nexport const Library = z.object({\n /**\n * Name of the SDK/library (e.g., `\"@contentful/optimization-web\"`).\n */\n name: z.string(),\n\n /**\n * Version of the analytics library.\n */\n version: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link Library}.\n *\n * @public\n */\nexport type Library = z.infer<typeof Library>\n","import * as z from 'zod/mini'\nimport { Dictionary } from './Dictionary'\n\n/**\n * Zod schema describing Web page-level properties for events.\n *\n * @remarks\n * The base object describes standard page attributes, while additional\n * JSON properties can be present due to the use of `z.catchall`.\n *\n * @public\n */\nexport const Page = z.catchall(\n z.object({\n /**\n * Path component of the page URL (e.g., `/products/123`).\n */\n path: z.string(),\n\n /**\n * Parsed query parameters for the page.\n */\n query: Dictionary,\n\n /**\n * Referrer URL that led to the current page.\n */\n referrer: z.string(),\n\n /**\n * Raw search string including the leading `?` (e.g., `\"?q=test\"`).\n */\n search: z.string(),\n\n /**\n * Title of the page as seen by the user.\n */\n title: z.optional(z.string()),\n\n /**\n * Full URL of the page.\n */\n url: z.string(),\n }),\n z.json(),\n)\n\n/**\n * TypeScript type inferred from {@link Page}.\n *\n * @public\n */\nexport type Page = z.infer<typeof Page>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing a generic collection of event properties.\n *\n * @remarks\n * Represents an arbitrary JSON-serializable map from string keys to values.\n *\n * @public\n */\nexport const Properties = z.record(z.string(), z.json())\n\n/**\n * TypeScript type inferred from {@link Properties}.\n *\n * @public\n */\nexport type Properties = z.infer<typeof Properties>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing screen-level properties for events.\n *\n * @remarks\n * The base object describes standard screen attributes, while additional\n * JSON properties can be present due to the use of `z.catchall`.\n *\n * @public\n */\nexport const Screen = z.catchall(\n z.object({\n /**\n * Name or label for the screen.\n */\n name: z.string(),\n }),\n z.json(),\n)\n\n/**\n * TypeScript type inferred from {@link Screen}.\n *\n * @public\n */\nexport type Screen = z.infer<typeof Screen>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing user traits / identity properties.\n *\n * @remarks\n * Represents an arbitrary JSON-serializable map from string keys to values.\n * Common traits can include `name`, `plan`, and custom attributes.\n *\n * @public\n */\nexport const Traits = z.record(z.string(), z.json())\n\n/**\n * TypeScript type inferred from {@link Traits}.\n *\n * @public\n */\nexport type Traits = z.infer<typeof Traits>\n","import * as z from 'zod/mini'\nimport { App, Campaign, Channel, GeoLocation, Library, Page, Screen } from './properties'\n\n/**\n * Zod schema describing universal event context properties shared by all\n * analytics events.\n *\n * @remarks\n * The `page` and `screen` properties are optional, but we recommend omitting\n * them for event types that are not `page` or `screen`.\n *\n * @public\n */\nexport const UniversalEventContext = z.object({\n /**\n * Application-level metadata.\n */\n app: App,\n\n /**\n * Campaign attribution metadata.\n */\n campaign: Campaign,\n\n /**\n * GDPR-related consent information.\n */\n gdpr: z.object({\n /**\n * Indicates whether the user has given consent.\n */\n isConsentGiven: z.boolean(),\n }),\n\n /**\n * Analytics library metadata.\n */\n library: Library,\n\n /**\n * Locale identifier of the event (e.g., `\"en-US\"`).\n */\n locale: z.string(),\n\n /**\n * Optional geo-location information associated with the event.\n */\n location: z.optional(GeoLocation),\n\n /**\n * User agent string of the client, if available.\n */\n userAgent: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link UniversalEventContext}.\n *\n * @public\n */\nexport type UniversalEventContext = z.infer<typeof UniversalEventContext>\n\n/**\n * Zod schema describing universal properties shared by all analytics events.\n *\n * @remarks\n * These properties capture common metadata such as channel, context,\n * timestamps, and user identifiers.\n *\n * @public\n */\nexport const UniversalEventProperties = z.object({\n /**\n * Channel from which the event originated.\n *\n * @see {@link Channel}\n */\n channel: Channel,\n\n /**\n * Context object carrying environment and client metadata.\n */\n context: z.extend(UniversalEventContext, {\n page: z.optional(Page),\n screen: z.optional(Screen),\n }),\n\n /**\n * Unique identifier for this message.\n *\n * @remarks\n * Used to deduplicate events across retries and transports.\n */\n messageId: z.string(),\n\n /**\n * Timestamp when the event originally occurred.\n *\n * @remarks\n * ISO 8601 datetime string.\n */\n originalTimestamp: z.iso.datetime(),\n\n /**\n * Timestamp when the event payload was sent.\n *\n * @remarks\n * ISO 8601 datetime string.\n */\n sentAt: z.iso.datetime(),\n\n /**\n * Timestamp when the event was recorded or processed.\n *\n * @remarks\n * ISO 8601 datetime string.\n */\n timestamp: z.iso.datetime(),\n\n /**\n * Identifier of the authenticated user, if known.\n */\n userId: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link UniversalEventProperties}.\n *\n * @public\n */\nexport type UniversalEventProperties = z.infer<typeof UniversalEventProperties>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\n\n/**\n * Zod schema describing the supported kinds of ExO entities.\n *\n * @public\n */\nexport const ExoEntityKind = z.enum(['Experience', 'ExperienceFragment'])\n\n/**\n * TypeScript type inferred from {@link ExoEntityKind}.\n *\n * @public\n */\nexport type ExoEntityKind = z.infer<typeof ExoEntityKind>\n\n/**\n * Zod schema describing properties shared by ExO interaction events.\n *\n * @public\n */\nexport const ExoEventProperties = z.extend(UniversalEventProperties, {\n /** Identifier of the rendered ExO entity. */\n entityId: z.string(),\n\n /** Kind of ExO entity represented by this event. */\n entityKind: ExoEntityKind,\n\n /** Optional identifier of the entity's concrete content kind. */\n entityKindId: z.optional(z.string()),\n\n /** Contentful entry identifiers rendered by the entity. */\n entryIds: z.optional(z.array(z.string())),\n\n /** Identifier of the optimization that selected the entity variant, when available. */\n optimizationId: z.optional(z.string()),\n\n /** Parameter values used to render the entity. */\n parameters: z.optional(z.record(z.string(), z.json())),\n\n /** Identifier of the containing experience, when the entity is nested. */\n parentExperienceId: z.optional(z.string()),\n\n /** Selected variant of the root experience, or `default` for its baseline. Omitted on the experience itself. */\n parentVariantId: z.optional(z.string()),\n\n /** Identifier of the selected entity variant, when available. */\n variantId: z.optional(z.string()),\n\n /** Index of the selected variant when available. */\n variantIndex: z.optional(z.number()),\n})\n\n/**\n * TypeScript type inferred from {@link ExoEventProperties}.\n *\n * @public\n */\nexport type ExoEventProperties = z.infer<typeof ExoEventProperties>\n","import * as z from 'zod/mini'\nimport { ExoEventProperties } from './ExoEventProperties'\n\n/**\n * Zod schema describing an `exo_node_view` event.\n *\n * @public\n */\nexport const ExoViewEvent = z.extend(ExoEventProperties, {\n type: z.literal('exo_node_view'),\n viewDurationMs: z.int().check(z.minimum(0)),\n viewId: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link ExoViewEvent}.\n *\n * @public\n */\nexport type ExoViewEvent = z.infer<typeof ExoViewEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\nimport { Traits } from './properties/Traits'\n\n/**\n * Zod schema describing an `identify` event.\n *\n * @remarks\n * Identify events attach user traits to a known identity.\n *\n * Extends {@link UniversalEventProperties} with a `traits` payload.\n *\n * @public\n */\nexport const IdentifyEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is an identify event.\n */\n type: z.literal('identify'),\n\n /**\n * Traits describing the user.\n *\n * @see {@link Traits}\n */\n traits: Traits,\n})\n\n/**\n * TypeScript type inferred from {@link IdentifyEvent}.\n *\n * @public\n */\nexport type IdentifyEvent = z.infer<typeof IdentifyEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventContext, UniversalEventProperties } from './UniversalEventProperties'\nimport { Page } from './properties'\n\n/**\n * Zod schema describing event context properties specific to page events.\n *\n * @public\n */\nexport const PageEventContext = z.extend(UniversalEventContext, {\n /**\n * Page context for events that occur within a web page.\n */\n page: Page,\n})\n\n/**\n * TypeScript type inferred from {@link PageEventContext}.\n *\n * @public\n */\nexport type PageEventContext = z.infer<typeof PageEventContext>\n\n/**\n * Zod schema describing a `page` view event.\n *\n * @remarks\n * Page view events track visits to web pages and associated context.\n *\n * Extends {@link UniversalEventProperties} with optional `name` and\n * page-level {@link Page} properties.\n *\n * @public\n */\nexport const PageViewEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is a page view.\n */\n type: z.literal('page'),\n\n /**\n * Optional name for the page.\n *\n * @remarks\n * Useful when the logical page name differs from the URL or title.\n */\n name: z.optional(z.string()),\n\n /**\n * Page-level properties such as URL, path, and referrer.\n */\n properties: Page,\n\n /**\n * Override the context property of {@link UniversalEventProperties}\n * with a page-specific context.\n */\n context: PageEventContext,\n})\n\n/**\n * TypeScript type inferred from {@link PageViewEvent}.\n *\n * @public\n */\nexport type PageViewEvent = z.infer<typeof PageViewEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventContext, UniversalEventProperties } from './UniversalEventProperties'\nimport { Properties, Screen } from './properties'\n\n/**\n * Zod schema describing event context properties specific to screen events.\n *\n * @public\n */\nexport const ScreenEventContext = z.extend(UniversalEventContext, {\n /**\n * Screen context for events that occur within a mobile or TV application.\n */\n screen: Screen,\n})\n\n/**\n * TypeScript type inferred from {@link ScreenEventContext}.\n *\n * @public\n */\nexport type ScreenEventContext = z.infer<typeof ScreenEventContext>\n\n/**\n * Zod schema describing a `screen` view event.\n *\n * @remarks\n * Screen view events are typically used by mobile or TV applications\n * to track navigation between screens.\n *\n * Extends {@link UniversalEventProperties}.\n *\n * @public\n */\nexport const ScreenViewEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is a screen view.\n */\n type: z.literal('screen'),\n\n /**\n * Name of the screen being viewed.\n */\n name: z.string(),\n\n /**\n * Optional properties describing the screen context.\n *\n * @see {@link Properties}\n */\n properties: z.optional(Properties),\n\n /**\n * Override the context property of {@link UniversalEventProperties}\n * with a screen-specific context.\n */\n context: ScreenEventContext,\n})\n\n/**\n * TypeScript type inferred from {@link ScreenViewEvent}.\n *\n * @public\n */\nexport type ScreenViewEvent = z.infer<typeof ScreenViewEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\nimport { Properties } from './properties'\n\n/**\n * Zod schema describing a custom `track` event.\n *\n * @remarks\n * Track events capture arbitrary user actions that do not fit into\n * the more specific event types (page, screen, identify, etc.).\n *\n * Extends {@link UniversalEventProperties}.\n *\n * @public\n */\nexport const TrackEvent = z.extend(UniversalEventProperties, {\n /**\n * Discriminator indicating that this event is a track event.\n */\n type: z.literal('track'),\n\n /**\n * Name of the event being tracked.\n */\n event: z.string(),\n\n /**\n * Additional properties describing the event.\n */\n properties: Properties,\n})\n\n/**\n * TypeScript type inferred from {@link TrackEvent}.\n *\n * @public\n */\nexport type TrackEvent = z.infer<typeof TrackEvent>\n","import * as z from 'zod/mini'\nimport { UniversalEventProperties } from './UniversalEventProperties'\n\n/**\n * Zod schema describing shared interaction event properties.\n *\n * @public\n */\nexport const InteractionEventProperties = z.extend(UniversalEventProperties, {\n /**\n * Type of tracked optimization target for the interaction event.\n *\n * - `'Entry'` — A content entry.\n * - `'Variable'` — A Custom Flag or other variable-backed optimization target.\n */\n componentType: z.union([z.literal('Entry'), z.literal('Variable')]),\n\n /**\n * Contentful entry ID or flag key corresponding to the interaction.\n */\n componentId: z.string(),\n\n /**\n * Identifier of the experience that rendered this entry or flag.\n *\n * @remarks\n * Optional; interactions can occur outside of a specific experiment/personalization.\n */\n experienceId: z.optional(z.string()),\n\n /**\n * Index of the variant associated with this interaction.\n *\n * @remarks\n * Typically corresponds to the index of the selected optimization entry.\n */\n variantIndex: z.number(),\n})\n\n/**\n * TypeScript type inferred from {@link InteractionEventProperties}.\n *\n * @public\n */\nexport type InteractionEventProperties = z.infer<typeof InteractionEventProperties>\n","import * as z from 'zod/mini'\nimport { InteractionEventProperties } from './InteractionEventProperties'\n\n/**\n * Zod schema describing a `component` view event used for entry and flag exposure tracking.\n *\n * @remarks\n * These events track exposure of entries and variable-backed optimization\n * targets within an optimized experience.\n *\n * Extends {@link InteractionEventProperties}.\n *\n * @public\n */\nexport const ViewEvent = z.extend(InteractionEventProperties, {\n /**\n * Discriminator indicating that this is an entry or flag view event.\n */\n type: z.literal('component'),\n /**\n * Monotonically increasing visible duration for the active view.\n *\n * @remarks\n * This value is updated and re-emitted while the same view remains active.\n */\n viewDurationMs: z.optional(z.number()),\n /**\n * UUID identifying a single active view session.\n *\n * @remarks\n * Multiple events emitted for the same active view share this identifier.\n */\n viewId: z.optional(z.string()),\n})\n\n/**\n * TypeScript type inferred from {@link ViewEvent}.\n *\n * @public\n */\nexport type ViewEvent = z.infer<typeof ViewEvent>\n","import * as z from 'zod/mini'\nimport { ExoViewEvent } from './ExoViewEvent'\nimport { IdentifyEvent } from './IdentifyEvent'\nimport { PageViewEvent } from './PageViewEvent'\nimport { ScreenViewEvent } from './ScreenViewEvent'\nimport { TrackEvent } from './TrackEvent'\nimport { ViewEvent } from './ViewEvent'\n\n/**\n * Partial schema capturing an anonymous identifier.\n *\n * @remarks\n * This object is merged into each event type in a batch to associate the\n * event with an `anonymousId`.\n *\n * @internal\n */\nconst Anon = { anonymousId: z.string() }\n\n/**\n * Zod schema describing each valid Experience API event within a batch.\n *\n * @remarks\n * This is a discriminated union on the `type` field that supports all event\n * types used in batch ingestion, each extended with an `anonymousId`.\n *\n * @public\n */\nexport const BatchExperienceEvent = z.discriminatedUnion('type', [\n z.extend(ViewEvent, Anon),\n z.extend(ExoViewEvent, Anon),\n z.extend(IdentifyEvent, Anon),\n z.extend(PageViewEvent, Anon),\n z.extend(ScreenViewEvent, Anon),\n z.extend(TrackEvent, Anon),\n])\n\n/**\n * TypeScript type inferred from {@link BatchExperienceEvent}.\n *\n * @public\n */\nexport type BatchExperienceEvent = z.infer<typeof BatchExperienceEvent>\n\n/**\n * Zod schema describing an array of {@link BatchExperienceEvent} items.\n *\n * @public\n */\nexport const BatchExperienceEventArray = z.array(BatchExperienceEvent)\n\n/**\n * TypeScript type inferred from {@link BatchExperienceEventArray}.\n *\n * @public\n */\nexport type BatchExperienceEventArray = z.infer<typeof BatchExperienceEventArray>\n","import * as z from 'zod/mini'\nimport { ExoViewEvent } from './ExoViewEvent'\nimport { IdentifyEvent } from './IdentifyEvent'\nimport { PageViewEvent } from './PageViewEvent'\nimport { ScreenViewEvent } from './ScreenViewEvent'\nimport { TrackEvent } from './TrackEvent'\nimport { ViewEvent } from './ViewEvent'\n\n/**\n * Zod schema describing any supported Experience API event.\n *\n * @remarks\n * This discriminated union aggregates all event types used by the\n * personalization/experience tracking system.\n *\n * @public\n */\nexport const ExperienceEvent = z.discriminatedUnion('type', [\n ViewEvent,\n ExoViewEvent,\n IdentifyEvent,\n PageViewEvent,\n ScreenViewEvent,\n TrackEvent,\n])\n\n/**\n * TypeScript type inferred from {@link ExperienceEvent}.\n *\n * @public\n */\nexport type ExperienceEvent = z.infer<typeof ExperienceEvent>\n\n/**\n * Union of all possible `type` values for {@link ExperienceEvent}.\n *\n * @public\n */\nexport type ExperienceEventType = ExperienceEvent['type']\n\n/**\n * Zod schema describing an array of {@link ExperienceEvent} items.\n *\n * @public\n */\nexport const ExperienceEventArray = z.array(ExperienceEvent)\n\n/**\n * TypeScript type inferred from {@link ExperienceEventArray}.\n *\n * @public\n */\nexport type ExperienceEventArray = z.infer<typeof ExperienceEventArray>\n","import * as z from 'zod/mini'\nimport { ExperienceEventArray } from './event'\nimport { GeoLocation } from './event/properties/GeoLocation'\n\n/**\n * Zod schema describing optional configuration for an experience request.\n *\n * @remarks\n * These options configure feature flags and the request location default when\n * evaluating experiences through singular profile requests.\n *\n * @public\n */\nexport const ExperienceRequestOptions = z.object({\n /**\n * Features or capabilities to enable for this request.\n */\n features: z.optional(z.array(z.string())),\n\n /**\n * Location default for singular profile requests. Event `context.location` fields override it.\n */\n location: z.optional(GeoLocation),\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceRequestOptions}.\n *\n * @public\n */\nexport type ExperienceRequestOptions = z.infer<typeof ExperienceRequestOptions>\n\n/**\n * Zod schema describing the data payload for an experience request.\n *\n * @remarks\n * Contains the list of events to be evaluated plus optional request\n * configuration.\n *\n * @public\n */\nexport const ExperienceRequestData = z.object({\n /**\n * Experience events for the Experience API to evaluate.\n *\n * @remarks\n * Must contain at least one event.\n */\n events: ExperienceEventArray.check(z.minLength(1)),\n\n /**\n * Optional configuration for this experience request.\n */\n options: z.optional(ExperienceRequestOptions),\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceRequestData}.\n *\n * @public\n */\nexport type ExperienceRequestData = z.infer<typeof ExperienceRequestData>\n","import * as z from 'zod/mini'\nimport { BatchExperienceEventArray } from './event'\nimport { ExperienceRequestOptions } from './ExperienceRequest'\n\n/**\n * Zod schema describing the data payload for a batch experience request.\n *\n * @remarks\n * Batch events require an `anonymousId` on each event and must contain at\n * least one event.\n */\nexport const BatchExperienceRequestData = z.object({\n /**\n * Batch experience events for the Experience API to evaluate.\n *\n * @remarks\n * Must contain at least one event.\n */\n events: BatchExperienceEventArray.check(z.minLength(1)),\n\n /**\n * Optional feature configuration. Batch locations belong in each event's `context.location`.\n */\n options: z.optional(z.omit(ExperienceRequestOptions, { location: true })),\n})\n\n/**\n * TypeScript type inferred from {@link BatchExperienceRequestData}.\n */\nexport type BatchExperienceRequestData = z.infer<typeof BatchExperienceRequestData>\n","import * as z from 'zod/mini'\nimport { Page } from '../../event/properties'\n\n/**\n * Zod schema describing aggregated statistics for a user session.\n *\n * @remarks\n * Captures both per-session metrics (such as `activeSessionLength`) and\n * aggregate metrics (such as `averageSessionLength`) for a given profile.\n *\n * @public\n */\nexport const SessionStatistics = z.object({\n /**\n * Unique identifier for this session statistics record.\n */\n id: z.string(),\n\n /**\n * Indicates whether the visitor has been seen before.\n *\n * @remarks\n * `true` typically means the visitor has at least one prior session.\n */\n isReturningVisitor: z.boolean(),\n\n /**\n * Landing page for the session.\n *\n * @remarks\n * Represents the first page the user visited in this session.\n *\n * @see {@link Page}\n */\n landingPage: Page,\n\n /**\n * Number of sessions associated with this profile or identifier.\n *\n * @remarks\n * Often used in combination with `SessionStatistics.averageSessionLength`.\n */\n count: z.number(),\n\n /**\n * Duration of the active session.\n */\n activeSessionLength: z.number(),\n\n /**\n * Average session duration across all sessions represented by this record.\n *\n * @remarks\n * The unit must match `SessionStatistics.activeSessionLength`.\n */\n averageSessionLength: z.number(),\n})\n\n/**\n * TypeScript type inferred from {@link SessionStatistics}.\n *\n * @public\n */\nexport type SessionStatistics = z.infer<typeof SessionStatistics>\n","import * as z from 'zod/mini'\nimport { GeoLocation } from '../event/properties'\nimport { Traits } from '../event/properties/Traits'\nimport { SessionStatistics } from './properties'\n\n/**\n * Zod schema describing a full user profile as received from the Experience API.\n *\n * @remarks\n * Represents the server-side view of a profile, including identifiers,\n * traits, audiences, location, and session statistics.\n *\n * @public\n */\nexport const Profile = z.object({\n /**\n * Primary identifier of the profile.\n */\n id: z.string(),\n\n /**\n * Stable, long-lived identifier of the profile.\n *\n * @remarks\n * Intended to remain constant across sessions and devices when possible.\n * Usually equal to `id`.\n */\n stableId: z.string(),\n\n /**\n * Random value associated with the profile.\n *\n * @remarks\n * Often used for deterministic bucketing (e.g., in experiments).\n */\n random: z.number(),\n\n /**\n * List of audience identifiers that this profile belongs to.\n */\n audiences: z.array(z.string()),\n\n /**\n * Traits describing the profile (user-level attributes).\n *\n * @see {@link Traits}\n */\n traits: Traits,\n\n /**\n * Geo-location information associated with the profile.\n *\n * @see {@link GeoLocation}\n */\n location: GeoLocation,\n\n /**\n * Aggregated session statistics for the profile.\n *\n * @see {@link SessionStatistics}\n */\n session: SessionStatistics,\n})\n\n/**\n * TypeScript type inferred from {@link Profile}.\n *\n * @public\n */\nexport type Profile = z.infer<typeof Profile>\n\n/**\n * Zod schema describing a partial profile payload used for sending events\n * to the Experience & Insights APIs.\n *\n * @remarks\n * This schema enforces the presence of an `id` field and allows additional\n * JSON-serializable properties via `z.catchall`.\n *\n * @public\n */\nexport const PartialProfile = z.catchall(\n z.object({\n /**\n * Identifier of the profile.\n *\n * @remarks\n * Used to associate events with an existing profile.\n */\n id: z.string(),\n }),\n z.json(),\n)\n\n/**\n * TypeScript type inferred from {@link PartialProfile}.\n *\n * @public\n */\nexport type PartialProfile = z.infer<typeof PartialProfile>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing the common envelope structure of responses\n * from the Experience API.\n *\n * @remarks\n * Concrete responses extend this schema and refine the `data` property\n * to a more specific shape.\n *\n * @public\n */\nexport const ResponseEnvelope = z.object({\n /**\n * Response payload.\n *\n * @remarks\n * The base schema uses an empty object; specific responses extend this\n * with more detailed structures.\n */\n data: z.object(),\n\n /**\n * Human-readable message accompanying the response.\n */\n message: z.string(),\n\n /**\n * Error details, or `null` when the request succeeded.\n */\n error: z.nullable(z.object({ code: z.string() })),\n})\n\n/**\n * TypeScript type inferred from {@link ResponseEnvelope}.\n *\n * @public\n */\nexport type ResponseEnvelope = z.infer<typeof ResponseEnvelope>\n","import * as z from 'zod/mini'\nimport { Profile } from './profile'\nimport { ResponseEnvelope } from './ResponseEnvelope'\n\n/**\n * Zod schema describing the `data` property of a batch experience response.\n *\n * @remarks\n * A batch request can return zero or more profiles. When no profiles are\n * returned, `profiles` can be omitted or an empty array.\n *\n * @public\n */\nexport const BatchExperienceResponseData = z.object({\n /**\n * Profiles evaluated or affected by the batch experience request.\n */\n profiles: z.optional(z.array(Profile)),\n})\n\n/**\n * TypeScript type inferred from {@link BatchExperienceResponseData}.\n *\n * @public\n */\nexport type BatchExperienceResponseData = z.infer<typeof BatchExperienceResponseData>\n\n/**\n * Zod schema describing a batch experience response from the Experience API.\n *\n * @remarks\n * Extends {@link ResponseEnvelope} with {@link BatchExperienceResponseData} as the\n * `data` payload.\n *\n * @public\n */\nexport const BatchExperienceResponse = z.extend(ResponseEnvelope, {\n data: BatchExperienceResponseData,\n})\n\n/**\n * TypeScript type inferred from {@link BatchExperienceResponse}.\n *\n * @public\n */\nexport type BatchExperienceResponse = z.infer<typeof BatchExperienceResponse>\n","import * as z from 'zod/mini'\n\n/**\n * Enumeration of supported change types.\n *\n * @public\n */\nexport const ChangeType = ['Variable', 'Experience', 'Fragment'] as const\n\n/**\n * Zod schema describing the base shape for a change.\n *\n * @remarks\n * This base is extended by specific change types such as {@link VariableChange}.\n *\n * @internal\n */\nexport const ChangeBase = z.object({\n /**\n * Key identifying the subject of the change.\n */\n key: z.string(),\n\n /**\n * Discriminator for the change type.\n *\n * @remarks\n * Can be one of {@link ChangeType} or an arbitrary string for unknown types.\n */\n type: z.union([z.enum(ChangeType), z.string()]),\n\n /**\n * Metadata describing the originating experience and variant index.\n */\n meta: z.object({\n /**\n * Identifier of the personalization or experiment experience.\n */\n experienceId: z.string(),\n\n /**\n * Index of the variant within the experience configuration.\n *\n * @remarks\n * Typically corresponds to the array index in the experience's distribution.\n */\n variantIndex: z.number(),\n }),\n})\n\n/**\n * Zod schema for the allowed value types of a variable change.\n *\n * @remarks\n * Supports primitives and JSON objects keyed by strings.\n *\n * @public\n */\nexport const VariableChangeValue = z.union([\n z.string(),\n z.boolean(),\n z.null(),\n z.number(),\n z.record(z.string(), z.json()),\n])\n\n/**\n * Zod schema representing an unknown change type.\n *\n * @remarks\n * This can be used to handle forward-compatible change payloads where\n * the `type` is not recognized.\n *\n * @public\n */\nexport const UnknownChange = z.extend(ChangeBase, {\n /**\n * Unconstrained change type string.\n */\n type: z.string(),\n\n /**\n * Payload for the change value, with unknown structure.\n */\n value: z.unknown(),\n})\n\n/**\n * TypeScript type inferred from {@link UnknownChange}.\n *\n * @public\n */\nexport type UnknownChange = z.infer<typeof UnknownChange>\n\n/**\n * Zod schema representing a change whose type is `'Variable'`.\n *\n * @remarks\n * The `value` must conform to {@link VariableChangeValue}.\n *\n * @public\n */\nexport const VariableChange = z.extend(ChangeBase, {\n /**\n * Discriminator for a variable change.\n */\n type: z.literal('Variable'),\n\n /**\n * New value for the variable identified by `ChangeBase.key`.\n */\n value: VariableChangeValue,\n})\n\n/**\n * TypeScript type inferred from {@link VariableChange}.\n *\n * @public\n */\nexport type VariableChange = z.infer<typeof VariableChange>\n\n/**\n * Zod schema describing the base shape shared by entity-based changes\n * ({@link ExperienceChange} and {@link FragmentChange}).\n *\n * @internal\n */\nexport const EntityChangeBase = z.object({\n /**\n * Identifier of the entity affected by the change.\n */\n id: z.string(),\n\n /**\n * Identifier of the selected variant.\n */\n variantId: z.string(),\n\n /**\n * Metadata describing the originating optimization and variant index.\n */\n meta: z.object({\n /**\n * Identifier of the optimization that produced this change.\n */\n optimizationId: z.string(),\n\n /**\n * Index of the variant within the optimization's distribution.\n */\n variantIndex: z.number(),\n }),\n})\n\n/**\n * Zod schema representing a change whose type is `'Experience'`.\n *\n * @public\n */\nexport const ExperienceChange = z.extend(EntityChangeBase, {\n /**\n * Discriminator for an experience change.\n */\n type: z.literal('Experience'),\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceChange}.\n *\n * @public\n */\nexport type ExperienceChange = z.infer<typeof ExperienceChange>\n\n/**\n * Zod schema representing a change whose type is `'Fragment'`.\n *\n * @public\n */\nexport const FragmentChange = z.extend(EntityChangeBase, {\n /**\n * Discriminator for a fragment change.\n */\n type: z.literal('Fragment'),\n})\n\n/**\n * TypeScript type inferred from {@link FragmentChange}.\n *\n * @public\n */\nexport type FragmentChange = z.infer<typeof FragmentChange>\n\n/**\n * JSON value type inferred from {@link z.json}.\n *\n * @remarks\n * Represents any JSON-serializable value.\n *\n * @public\n */\nexport type Json = z.infer<typeof z.json>\n\n/**\n * Map of Custom Flag keys to JSON values.\n *\n * @public\n */\nexport type Flags = Record<string, Json>\n\n/**\n * Union of supported change types.\n *\n * @public\n */\nexport const Change = z.discriminatedUnion('type', [\n VariableChange,\n ExperienceChange,\n FragmentChange,\n])\n\n/**\n * TypeScript type inferred from {@link Change}.\n *\n * @public\n */\nexport type Change = z.infer<typeof Change>\n\n/**\n * Zod schema representing an array of {@link Change} items.\n *\n * @public\n */\nexport const ChangeArray = z.array(Change)\n\n/**\n * TypeScript type inferred from {@link ChangeArray}.\n *\n * @public\n */\nexport type ChangeArray = z.infer<typeof ChangeArray>\n","import * as z from 'zod/mini'\n\n/**\n * Zod schema describing a selected optimization outcome for a user.\n *\n * @remarks\n * Represents the result of choosing a specific variant for a given\n * experience, along with additional metadata such as whether the\n * selection is sticky.\n *\n * @public\n */\nexport const SelectedOptimization = z.object({\n /**\n * Identifier of the personalization or experiment experience.\n */\n experienceId: z.string(),\n\n /**\n * Index of the selected variant within the experience configuration.\n *\n * @remarks\n * Typically corresponds to the index of the selected `OptimizationConfig` entry.\n */\n variantIndex: z.number(),\n\n /**\n * Mapping of baseline entry IDs to their selected variant entry IDs.\n *\n * @remarks\n * The keys are component identifiers and the values are the\n * identifiers of the selected variant for that component.\n */\n variants: z.record(z.string(), z.string()),\n\n /**\n * Indicates whether this optimization selection is sticky for the user.\n *\n * @defaultValue false\n *\n * @remarks\n * Reuse sticky selections on subsequent requests for the same user rather\n * than re-allocating a new variant.\n */\n sticky: z.optional(z.prefault(z.boolean(), false)),\n})\n\n/**\n * TypeScript type inferred from {@link SelectedOptimization}.\n *\n * @public\n */\nexport type SelectedOptimization = z.infer<typeof SelectedOptimization>\n\n/**\n * Zod schema describing an array of {@link SelectedOptimization} items.\n *\n * @remarks\n * Useful when multiple experiences are evaluated at once.\n *\n * @public\n */\nexport const SelectedOptimizationArray = z.array(SelectedOptimization)\n\n/**\n * TypeScript type inferred from {@link SelectedOptimizationArray}.\n *\n * @public\n */\nexport type SelectedOptimizationArray = z.infer<typeof SelectedOptimizationArray>\n","import * as z from 'zod/mini'\nimport { ChangeArray } from './change'\nimport { SelectedOptimizationArray } from './optimization'\nimport { Profile } from './profile'\nimport { ResponseEnvelope } from './ResponseEnvelope'\n\n/**\n * Zod schema describing the `data` payload of a standard Experience API response.\n *\n * @remarks\n * Contains the evaluated profile, selected optimizations, and computed\n * changes to apply on the client.\n *\n * @public\n */\nexport const ExperienceData = z.object({\n /**\n * Profile associated with the evaluated events.\n */\n profile: Profile,\n\n /**\n * Selected experiences and variants for the profile.\n *\n * @see {@link SelectedOptimizationArray}\n */\n experiences: SelectedOptimizationArray,\n\n /**\n * Used for Custom Flags.\n *\n * @see {@link ChangeArray}\n */\n changes: ChangeArray,\n})\n\n/**\n * TypeScript type inferred from {@link ExperienceData}.\n *\n * @public\n */\nexport type ExperienceData = z.infer<typeof ExperienceData>\n\n/**\n * Zod schema describing a full Experience API response.\n *\n * @remarks\n * Extends {@link ResponseEnvelope} with {@link ExperienceData} as the `data` payload.\n *\n * @public\n */\nexport const ExperienceResponse = z.extend(ResponseEnvelope, { data: ExperienceData })\n\n/**\n * TypeScript type inferred from {@link ExperienceResponse}.\n *\n * @public\n */\nexport type ExperienceResponse = z.infer<typeof ExperienceResponse>\n\n/**\n * Optimization data shape used for compatibility outside the API adapter.\n *\n * @remarks\n * This type mirrors {@link ExperienceData} but replaces the `experiences`\n * field with `selectedOptimizations` while preserving the rest of the structure.\n *\n * @public\n */\nexport type OptimizationData = Omit<ExperienceData, 'experiences'> & {\n /**\n * Selected optimizations for the profile.\n */\n selectedOptimizations: SelectedOptimizationArray\n}\n","import * as z from 'zod/mini'\nimport { InteractionEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing a `component_click` event used for entry click tracking.\n *\n * @remarks\n * These events track click interactions for entries within an optimized\n * experience.\n *\n * Extends {@link InteractionEventProperties}.\n *\n * @public\n */\nexport const ClickEvent = z.extend(InteractionEventProperties, {\n /**\n * Discriminator indicating that this is an entry click event.\n */\n type: z.literal('component_click'),\n})\n\n/**\n * TypeScript type inferred from {@link ClickEvent}.\n *\n * @public\n */\nexport type ClickEvent = z.infer<typeof ClickEvent>\n","import * as z from 'zod/mini'\nimport { ExoEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing an `exo_node_click` event.\n *\n * @public\n */\nexport const ExoClickEvent = z.extend(ExoEventProperties, {\n type: z.literal('exo_node_click'),\n})\n\n/**\n * TypeScript type inferred from {@link ExoClickEvent}.\n *\n * @public\n */\nexport type ExoClickEvent = z.infer<typeof ExoClickEvent>\n","import * as z from 'zod/mini'\nimport { ExoEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing an `exo_node_hover` event.\n *\n * @public\n */\nexport const ExoHoverEvent = z.extend(ExoEventProperties, {\n type: z.literal('exo_node_hover'),\n hoverDurationMs: z.int().check(z.minimum(0)),\n hoverId: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link ExoHoverEvent}.\n *\n * @public\n */\nexport type ExoHoverEvent = z.infer<typeof ExoHoverEvent>\n","import * as z from 'zod/mini'\nimport { InteractionEventProperties } from '../../experience/event'\n\n/**\n * Zod schema describing a `component_hover` event used for entry hover tracking.\n *\n * @remarks\n * These events track hover interactions for entries within an optimized\n * experience.\n *\n * Extends {@link InteractionEventProperties}.\n *\n * @public\n */\nexport const HoverEvent = z.extend(InteractionEventProperties, {\n /**\n * Discriminator indicating that this is an entry hover event.\n */\n type: z.literal('component_hover'),\n /**\n * Monotonically increasing hover duration for the active hover.\n *\n * @remarks\n * This value is updated and re-emitted while the same hover remains active.\n */\n hoverDurationMs: z.number(),\n /**\n * UUID identifying a single active hover session.\n *\n * @remarks\n * Multiple events emitted for the same active hover share this identifier.\n */\n hoverId: z.string(),\n})\n\n/**\n * TypeScript type inferred from {@link HoverEvent}.\n *\n * @public\n */\nexport type HoverEvent = z.infer<typeof HoverEvent>\n","import * as z from 'zod/mini'\nimport { ExoViewEvent, ViewEvent } from '../../experience/event'\nimport { ClickEvent } from './ClickEvent'\nimport { ExoClickEvent } from './ExoClickEvent'\nimport { ExoHoverEvent } from './ExoHoverEvent'\nimport { HoverEvent } from './HoverEvent'\n\n/**\n * Zod schema describing an Insights event.\n *\n * @remarks\n * Insights events include legacy component interactions and ExO node\n * interactions.\n *\n * @public\n */\nexport const InsightsEvent = z.discriminatedUnion('type', [\n ViewEvent,\n ClickEvent,\n HoverEvent,\n ExoViewEvent,\n ExoClickEvent,\n ExoHoverEvent,\n])\n\n/**\n * TypeScript type inferred from {@link InsightsEvent}.\n *\n * @public\n */\nexport type InsightsEvent = z.infer<typeof InsightsEvent>\n\n/**\n * Union of all possible `type` values for {@link InsightsEvent}.\n *\n * @public\n */\nexport type InsightsEventType = InsightsEvent['type']\n\n/**\n * Zod schema describing an array of {@link InsightsEvent} items.\n *\n * @public\n */\nexport const InsightsEventArray = z.array(InsightsEvent)\n\n/**\n * TypeScript type inferred from {@link InsightsEventArray}.\n *\n * @public\n */\nexport type InsightsEventArray = z.infer<typeof InsightsEventArray>\n","import * as z from 'zod/mini'\nimport { PartialProfile } from '../../experience/profile'\nimport { InsightsEventArray } from './InsightsEvent'\n\n/**\n * Zod schema describing a batched Insights event payload.\n *\n * @remarks\n * Combines a {@link PartialProfile} with one or more Insights events\n * to be sent to the Contentful Insights API.\n *\n * @public\n */\nexport const BatchInsightsEvent = z.object({\n /**\n * Partial profile information used to associate events with a user.\n *\n * @see {@link PartialProfile}\n */\n profile: PartialProfile,\n\n /**\n * Insights events to record for this profile.\n *\n * @see {@link InsightsEventArray}\n */\n events: InsightsEventArray,\n})\n\n/**\n * TypeScript type inferred from {@link BatchInsightsEvent}.\n *\n * @public\n */\nexport type BatchInsightsEvent = z.infer<typeof BatchInsightsEvent>\n\n/**\n * Zod schema describing an array of {@link BatchInsightsEvent} items.\n *\n * @remarks\n * Useful when sending multiple profile/event batches in a single request.\n *\n * @public\n */\nexport const BatchInsightsEventArray = z.array(BatchInsightsEvent)\n\n/**\n * TypeScript type inferred from {@link BatchInsightsEventArray}.\n *\n * @public\n */\nexport type BatchInsightsEventArray = z.infer<typeof BatchInsightsEventArray>\n","import * as z from 'zod/mini'\nimport en from 'zod/v4/locales/en.js'\n\nz.config(en())\n\nexport function parseWithFriendlyError<T extends z.ZodMiniType>(\n schema: T,\n data: unknown,\n): z.output<T> {\n const result = schema.safeParse(data)\n if (result.success) return result.data\n\n throw new Error(z.prettifyError(result.error))\n}\n"],"names":["App","z","Campaign","Channel","Dictionary","COUNTRY_CODE_LENGTH","Coordinates","GeoLocation","Library","Page","Properties","Screen","Traits","UniversalEventContext","UniversalEventProperties","ExoEntityKind","ExoEventProperties","ExoViewEvent","IdentifyEvent","PageEventContext","PageViewEvent","ScreenEventContext","ScreenViewEvent","TrackEvent","InteractionEventProperties","ViewEvent","Anon","BatchExperienceEvent","BatchExperienceEventArray","ExperienceEvent","ExperienceEventArray","ExperienceRequestOptions","ExperienceRequestData","BatchExperienceRequestData","SessionStatistics","Profile","PartialProfile","ResponseEnvelope","BatchExperienceResponseData","BatchExperienceResponse","ChangeType","ChangeBase","VariableChangeValue","UnknownChange","VariableChange","EntityChangeBase","ExperienceChange","FragmentChange","Change","ChangeArray","SelectedOptimization","SelectedOptimizationArray","ExperienceData","ExperienceResponse","ClickEvent","ExoClickEvent","ExoHoverEvent","HoverEvent","InsightsEvent","InsightsEventArray","BatchInsightsEvent","BatchInsightsEventArray","en","parseWithFriendlyError","schema","data","result","Error"],"mappings":";;AAaO,MAAMA,MAAMC,oCAAAA,QAAU,CAC3BA,oCAAAA,MAAQ,CAAC;IAIP,MAAMA,oCAAAA,MAAQ;IAKd,SAASA,oCAAAA,MAAQ;AACnB;ACdK,MAAMC,WAAWD,oCAAAA,MAAQ,CAAC;IAI/B,MAAMA,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OAAS,CAAC;IACzC,SAASA,oCAAAA,MAAQ;AACnB;ACEO,MAAMwD,aAAaxD,oCAAAA,MAAQ,CAACuB,4BAA4B;IAI7D,MAAMvB,oCAAAA,OAAS,CAAC;IAOhB,iBAAiBA,oCAAAA,MAAQ;IAOzB,SAASA,oCAAAA,MAAQ;AACnB;ACjBO,MAAMyD,gBAAgBzD,oCAAAA,kBAAoB,CAAC,QAAQ;IACxDwB;IACA6B;IACAG;IACAxC;IACAsC;IACAC;CACD;AAqBM,MAAMG,qBAAqB1D,oCAAAA,KAAO,CAACyD;AC/BnC,MAAME,qBAAqB3D,oCAAAA,MAAQ,CAAC;IAMzC,SAASmC;IAOT,QAAQuB;AACV;AAiBO,MAAME,0BAA0B5D,oCAAAA,KAAO,CAAC2D;ACzC/C3D,oCAAAA,MAAQ,CAAC6D;AAEF,SAASC,uBACdC,MAAS,EACTC,IAAa;IAEb,MAAMC,SAASF,OAAO,SAAS,CAACC;IAChC,IAAIC,OAAO,OAAO,EAAE,OAAOA,OAAO,IAAI;IAEtC,MAAM,IAAIC,MAAMlE,oCAAAA,aAAe,CAACiE,OAAO,KAAK;AAC9C"}
|
package/dist/index.d.cts
CHANGED
|
@@ -343,9 +343,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
343
343
|
entityId: z.ZodMiniString<string>;
|
|
344
344
|
entityKind: z.ZodMiniEnum<{
|
|
345
345
|
Experience: "Experience";
|
|
346
|
-
|
|
347
|
-
InlineFragment: "InlineFragment";
|
|
348
|
-
InlineComponent: "InlineComponent";
|
|
346
|
+
ExperienceFragment: "ExperienceFragment";
|
|
349
347
|
}>;
|
|
350
348
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
351
349
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -913,9 +911,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
913
911
|
entityId: z.ZodMiniString<string>;
|
|
914
912
|
entityKind: z.ZodMiniEnum<{
|
|
915
913
|
Experience: "Experience";
|
|
916
|
-
|
|
917
|
-
InlineFragment: "InlineFragment";
|
|
918
|
-
InlineComponent: "InlineComponent";
|
|
914
|
+
ExperienceFragment: "ExperienceFragment";
|
|
919
915
|
}>;
|
|
920
916
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
921
917
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -985,9 +981,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
985
981
|
entityId: z.ZodMiniString<string>;
|
|
986
982
|
entityKind: z.ZodMiniEnum<{
|
|
987
983
|
Experience: "Experience";
|
|
988
|
-
|
|
989
|
-
InlineFragment: "InlineFragment";
|
|
990
|
-
InlineComponent: "InlineComponent";
|
|
984
|
+
ExperienceFragment: "ExperienceFragment";
|
|
991
985
|
}>;
|
|
992
986
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
993
987
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1055,9 +1049,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1055
1049
|
entityId: z.ZodMiniString<string>;
|
|
1056
1050
|
entityKind: z.ZodMiniEnum<{
|
|
1057
1051
|
Experience: "Experience";
|
|
1058
|
-
|
|
1059
|
-
InlineFragment: "InlineFragment";
|
|
1060
|
-
InlineComponent: "InlineComponent";
|
|
1052
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1061
1053
|
}>;
|
|
1062
1054
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1063
1055
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1747,9 +1739,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1747
1739
|
entityId: z.ZodMiniString<string>;
|
|
1748
1740
|
entityKind: z.ZodMiniEnum<{
|
|
1749
1741
|
Experience: "Experience";
|
|
1750
|
-
|
|
1751
|
-
InlineFragment: "InlineFragment";
|
|
1752
|
-
InlineComponent: "InlineComponent";
|
|
1742
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1753
1743
|
}>;
|
|
1754
1744
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1755
1745
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|