@contentful/optimization-api-client 2.2.0 → 2.2.2
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/THIRD_PARTY_NOTICES.txt +1 -1
- package/dist/api-schemas.cjs +5 -5
- package/dist/api-schemas.cjs.map +1 -1
- package/dist/api-schemas.d.cts +41 -562
- package/dist/api-schemas.d.mts +41 -562
- package/dist/api-schemas.d.ts +41 -562
- package/dist/api-schemas.mjs +5 -5
- package/dist/api-schemas.mjs.map +1 -1
- package/dist/guards.d.cts +0 -30
- package/dist/guards.d.mts +0 -30
- package/dist/guards.d.ts +0 -30
- package/dist/index.d.cts +9 -140
- package/dist/index.d.mts +9 -140
- package/dist/index.d.ts +9 -140
- package/package.json +2 -2
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>>>;
|
|
@@ -356,7 +354,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
356
354
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
357
355
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
358
356
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
359
|
-
viewDurationMs: z.
|
|
357
|
+
viewDurationMs: z.ZodMiniInt;
|
|
360
358
|
viewId: z.ZodMiniString<string>;
|
|
361
359
|
anonymousId: z.ZodMiniString<string>;
|
|
362
360
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -605,9 +603,6 @@ declare type BatchExperienceEventArray = z.infer<typeof BatchExperienceEventArra
|
|
|
605
603
|
* @public
|
|
606
604
|
*/
|
|
607
605
|
declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
608
|
-
/**
|
|
609
|
-
* Profiles evaluated or affected by the batch experience request.
|
|
610
|
-
*/
|
|
611
606
|
profiles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
612
607
|
id: z.ZodMiniString<string>;
|
|
613
608
|
stableId: z.ZodMiniString<string>;
|
|
@@ -662,19 +657,9 @@ declare type BatchExperienceResponseData = z.infer<typeof BatchExperienceRespons
|
|
|
662
657
|
* @public
|
|
663
658
|
*/
|
|
664
659
|
declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
665
|
-
/**
|
|
666
|
-
* Partial profile information used to associate events with a user.
|
|
667
|
-
*
|
|
668
|
-
* @see {@link PartialProfile}
|
|
669
|
-
*/
|
|
670
660
|
profile: z.ZodMiniObject<{
|
|
671
661
|
id: z.ZodMiniString<string>;
|
|
672
662
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>;
|
|
673
|
-
/**
|
|
674
|
-
* Insights events to record for this profile.
|
|
675
|
-
*
|
|
676
|
-
* @see {@link InsightsEventArray}
|
|
677
|
-
*/
|
|
678
663
|
events: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
679
664
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
680
665
|
context: z.ZodMiniObject<{
|
|
@@ -913,9 +898,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
913
898
|
entityId: z.ZodMiniString<string>;
|
|
914
899
|
entityKind: z.ZodMiniEnum<{
|
|
915
900
|
Experience: "Experience";
|
|
916
|
-
|
|
917
|
-
InlineFragment: "InlineFragment";
|
|
918
|
-
InlineComponent: "InlineComponent";
|
|
901
|
+
ExperienceFragment: "ExperienceFragment";
|
|
919
902
|
}>;
|
|
920
903
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
921
904
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -926,7 +909,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
926
909
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
927
910
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
928
911
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
929
|
-
viewDurationMs: z.
|
|
912
|
+
viewDurationMs: z.ZodMiniInt;
|
|
930
913
|
viewId: z.ZodMiniString<string>;
|
|
931
914
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
932
915
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -985,9 +968,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
985
968
|
entityId: z.ZodMiniString<string>;
|
|
986
969
|
entityKind: z.ZodMiniEnum<{
|
|
987
970
|
Experience: "Experience";
|
|
988
|
-
|
|
989
|
-
InlineFragment: "InlineFragment";
|
|
990
|
-
InlineComponent: "InlineComponent";
|
|
971
|
+
ExperienceFragment: "ExperienceFragment";
|
|
991
972
|
}>;
|
|
992
973
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
993
974
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1055,9 +1036,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1055
1036
|
entityId: z.ZodMiniString<string>;
|
|
1056
1037
|
entityKind: z.ZodMiniEnum<{
|
|
1057
1038
|
Experience: "Experience";
|
|
1058
|
-
|
|
1059
|
-
InlineFragment: "InlineFragment";
|
|
1060
|
-
InlineComponent: "InlineComponent";
|
|
1039
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1061
1040
|
}>;
|
|
1062
1041
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1063
1042
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1068,7 +1047,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1068
1047
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1069
1048
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1070
1049
|
type: z.ZodMiniLiteral<"exo_node_hover">;
|
|
1071
|
-
hoverDurationMs: z.
|
|
1050
|
+
hoverDurationMs: z.ZodMiniInt;
|
|
1072
1051
|
hoverId: z.ZodMiniString<string>;
|
|
1073
1052
|
}, z.core.$strip>], "type">>;
|
|
1074
1053
|
}, z.core.$strip>>;
|
|
@@ -1100,16 +1079,7 @@ export declare interface BatchUpdateProfileParams {
|
|
|
1100
1079
|
declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1101
1080
|
key: z.ZodMiniString<string>;
|
|
1102
1081
|
meta: z.ZodMiniObject<{
|
|
1103
|
-
/**
|
|
1104
|
-
* Identifier of the personalization or experiment experience.
|
|
1105
|
-
*/
|
|
1106
1082
|
experienceId: z.ZodMiniString<string>;
|
|
1107
|
-
/**
|
|
1108
|
-
* Index of the variant within the experience configuration.
|
|
1109
|
-
*
|
|
1110
|
-
* @remarks
|
|
1111
|
-
* Typically corresponds to the array index in the experience's distribution.
|
|
1112
|
-
*/
|
|
1113
1083
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1114
1084
|
}, z.core.$strip>;
|
|
1115
1085
|
type: z.ZodMiniLiteral<"Variable">;
|
|
@@ -1118,13 +1088,7 @@ declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
1118
1088
|
id: z.ZodMiniString<string>;
|
|
1119
1089
|
variantId: z.ZodMiniString<string>;
|
|
1120
1090
|
meta: z.ZodMiniObject<{
|
|
1121
|
-
/**
|
|
1122
|
-
* Identifier of the optimization that produced this change.
|
|
1123
|
-
*/
|
|
1124
1091
|
optimizationId: z.ZodMiniString<string>;
|
|
1125
|
-
/**
|
|
1126
|
-
* Index of the variant within the optimization's distribution.
|
|
1127
|
-
*/
|
|
1128
1092
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1129
1093
|
}, z.core.$strip>;
|
|
1130
1094
|
type: z.ZodMiniLiteral<"Experience">;
|
|
@@ -1132,13 +1096,7 @@ declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
1132
1096
|
id: z.ZodMiniString<string>;
|
|
1133
1097
|
variantId: z.ZodMiniString<string>;
|
|
1134
1098
|
meta: z.ZodMiniObject<{
|
|
1135
|
-
/**
|
|
1136
|
-
* Identifier of the optimization that produced this change.
|
|
1137
|
-
*/
|
|
1138
1099
|
optimizationId: z.ZodMiniString<string>;
|
|
1139
|
-
/**
|
|
1140
|
-
* Index of the variant within the optimization's distribution.
|
|
1141
|
-
*/
|
|
1142
1100
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1143
1101
|
}, z.core.$strip>;
|
|
1144
1102
|
type: z.ZodMiniLiteral<"Fragment">;
|
|
@@ -1535,9 +1493,6 @@ export declare interface ExperienceApiClientRequestOptions {
|
|
|
1535
1493
|
* @public
|
|
1536
1494
|
*/
|
|
1537
1495
|
declare const ExperienceData: z.ZodMiniObject<{
|
|
1538
|
-
/**
|
|
1539
|
-
* Profile associated with the evaluated events.
|
|
1540
|
-
*/
|
|
1541
1496
|
profile: z.ZodMiniObject<{
|
|
1542
1497
|
id: z.ZodMiniString<string>;
|
|
1543
1498
|
stableId: z.ZodMiniString<string>;
|
|
@@ -1574,22 +1529,12 @@ declare const ExperienceData: z.ZodMiniObject<{
|
|
|
1574
1529
|
averageSessionLength: z.ZodMiniNumber<number>;
|
|
1575
1530
|
}, z.core.$strip>;
|
|
1576
1531
|
}, z.core.$strip>;
|
|
1577
|
-
/**
|
|
1578
|
-
* Selected experiences and variants for the profile.
|
|
1579
|
-
*
|
|
1580
|
-
* @see {@link SelectedOptimizationArray}
|
|
1581
|
-
*/
|
|
1582
1532
|
experiences: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1583
1533
|
experienceId: z.ZodMiniString<string>;
|
|
1584
1534
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1585
1535
|
variants: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1586
1536
|
sticky: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniBoolean<boolean>>>;
|
|
1587
1537
|
}, z.core.$strip>>;
|
|
1588
|
-
/**
|
|
1589
|
-
* Used for Custom Flags.
|
|
1590
|
-
*
|
|
1591
|
-
* @see {@link ChangeArray}
|
|
1592
|
-
*/
|
|
1593
1538
|
changes: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1594
1539
|
key: z.ZodMiniString<string>;
|
|
1595
1540
|
meta: z.ZodMiniObject<{
|
|
@@ -1747,9 +1692,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1747
1692
|
entityId: z.ZodMiniString<string>;
|
|
1748
1693
|
entityKind: z.ZodMiniEnum<{
|
|
1749
1694
|
Experience: "Experience";
|
|
1750
|
-
|
|
1751
|
-
InlineFragment: "InlineFragment";
|
|
1752
|
-
InlineComponent: "InlineComponent";
|
|
1695
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1753
1696
|
}>;
|
|
1754
1697
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1755
1698
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1760,7 +1703,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1760
1703
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1761
1704
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1762
1705
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
1763
|
-
viewDurationMs: z.
|
|
1706
|
+
viewDurationMs: z.ZodMiniInt;
|
|
1764
1707
|
viewId: z.ZodMiniString<string>;
|
|
1765
1708
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1766
1709
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -2061,57 +2004,17 @@ export declare interface FetchMethodCallbackOptions {
|
|
|
2061
2004
|
* @public
|
|
2062
2005
|
*/
|
|
2063
2006
|
declare const GeoLocation: z.ZodMiniObject<{
|
|
2064
|
-
/**
|
|
2065
|
-
* Geographical coordinates for the location.
|
|
2066
|
-
*/
|
|
2067
2007
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2068
|
-
/**
|
|
2069
|
-
* Latitude component of the coordinates.
|
|
2070
|
-
*/
|
|
2071
2008
|
latitude: z.ZodMiniNumber<number>;
|
|
2072
|
-
/**
|
|
2073
|
-
* Longitude component of the coordinates.
|
|
2074
|
-
*/
|
|
2075
2009
|
longitude: z.ZodMiniNumber<number>;
|
|
2076
2010
|
}, z.core.$strip>>;
|
|
2077
|
-
/**
|
|
2078
|
-
* City name associated with the location.
|
|
2079
|
-
*/
|
|
2080
2011
|
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2081
|
-
/**
|
|
2082
|
-
* Postal or ZIP code associated with the location.
|
|
2083
|
-
*/
|
|
2084
2012
|
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2085
|
-
/**
|
|
2086
|
-
* Region or state name associated with the location.
|
|
2087
|
-
*/
|
|
2088
2013
|
region: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2089
|
-
/**
|
|
2090
|
-
* Region or state code associated with the location.
|
|
2091
|
-
*/
|
|
2092
2014
|
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2093
|
-
/**
|
|
2094
|
-
* Country name associated with the location.
|
|
2095
|
-
*/
|
|
2096
2015
|
country: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2097
|
-
/**
|
|
2098
|
-
* Country code associated with the location.
|
|
2099
|
-
*
|
|
2100
|
-
* @remarks
|
|
2101
|
-
* Validated to exactly COUNTRY_CODE_LENGTH characters, typically
|
|
2102
|
-
* an ISO 3166-1 alpha-2 code.
|
|
2103
|
-
*/
|
|
2104
2016
|
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2105
|
-
/**
|
|
2106
|
-
* Continent name associated with the location.
|
|
2107
|
-
*/
|
|
2108
2017
|
continent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2109
|
-
/**
|
|
2110
|
-
* Time zone identifier associated with the location.
|
|
2111
|
-
*
|
|
2112
|
-
* @remarks
|
|
2113
|
-
* Typically an IANA time zone string (e.g., `"Europe/Berlin"`).
|
|
2114
|
-
*/
|
|
2115
2018
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2116
2019
|
}, z.core.$strip>;
|
|
2117
2020
|
|
|
@@ -2322,34 +2225,9 @@ export declare interface RetryFetchMethodOptions extends BaseFetchMethodOptions
|
|
|
2322
2225
|
* @public
|
|
2323
2226
|
*/
|
|
2324
2227
|
declare const SelectedOptimizationArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
2325
|
-
/**
|
|
2326
|
-
* Identifier of the personalization or experiment experience.
|
|
2327
|
-
*/
|
|
2328
2228
|
experienceId: z.ZodMiniString<string>;
|
|
2329
|
-
/**
|
|
2330
|
-
* Index of the selected variant within the experience configuration.
|
|
2331
|
-
*
|
|
2332
|
-
* @remarks
|
|
2333
|
-
* Typically corresponds to the index of the selected `OptimizationConfig` entry.
|
|
2334
|
-
*/
|
|
2335
2229
|
variantIndex: z.ZodMiniNumber<number>;
|
|
2336
|
-
/**
|
|
2337
|
-
* Mapping of baseline entry IDs to their selected variant entry IDs.
|
|
2338
|
-
*
|
|
2339
|
-
* @remarks
|
|
2340
|
-
* The keys are component identifiers and the values are the
|
|
2341
|
-
* identifiers of the selected variant for that component.
|
|
2342
|
-
*/
|
|
2343
2230
|
variants: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
2344
|
-
/**
|
|
2345
|
-
* Indicates whether this optimization selection is sticky for the user.
|
|
2346
|
-
*
|
|
2347
|
-
* @defaultValue false
|
|
2348
|
-
*
|
|
2349
|
-
* @remarks
|
|
2350
|
-
* Reuse sticky selections on subsequent requests for the same user rather
|
|
2351
|
-
* than re-allocating a new variant.
|
|
2352
|
-
*/
|
|
2353
2231
|
sticky: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniBoolean<boolean>>>;
|
|
2354
2232
|
}, z.core.$strip>>;
|
|
2355
2233
|
|
|
@@ -2420,16 +2298,7 @@ export declare interface UpsertProfileParams extends CreateProfileParams {
|
|
|
2420
2298
|
declare const VariableChange: z.ZodMiniObject<{
|
|
2421
2299
|
key: z.ZodMiniString<string>;
|
|
2422
2300
|
meta: z.ZodMiniObject<{
|
|
2423
|
-
/**
|
|
2424
|
-
* Identifier of the personalization or experiment experience.
|
|
2425
|
-
*/
|
|
2426
2301
|
experienceId: z.ZodMiniString<string>;
|
|
2427
|
-
/**
|
|
2428
|
-
* Index of the variant within the experience configuration.
|
|
2429
|
-
*
|
|
2430
|
-
* @remarks
|
|
2431
|
-
* Typically corresponds to the array index in the experience's distribution.
|
|
2432
|
-
*/
|
|
2433
2302
|
variantIndex: z.ZodMiniNumber<number>;
|
|
2434
2303
|
}, z.core.$strip>;
|
|
2435
2304
|
type: z.ZodMiniLiteral<"Variable">;
|
package/dist/index.d.mts
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>>>;
|
|
@@ -356,7 +354,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
356
354
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
357
355
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
358
356
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
359
|
-
viewDurationMs: z.
|
|
357
|
+
viewDurationMs: z.ZodMiniInt;
|
|
360
358
|
viewId: z.ZodMiniString<string>;
|
|
361
359
|
anonymousId: z.ZodMiniString<string>;
|
|
362
360
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -605,9 +603,6 @@ declare type BatchExperienceEventArray = z.infer<typeof BatchExperienceEventArra
|
|
|
605
603
|
* @public
|
|
606
604
|
*/
|
|
607
605
|
declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
608
|
-
/**
|
|
609
|
-
* Profiles evaluated or affected by the batch experience request.
|
|
610
|
-
*/
|
|
611
606
|
profiles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
612
607
|
id: z.ZodMiniString<string>;
|
|
613
608
|
stableId: z.ZodMiniString<string>;
|
|
@@ -662,19 +657,9 @@ declare type BatchExperienceResponseData = z.infer<typeof BatchExperienceRespons
|
|
|
662
657
|
* @public
|
|
663
658
|
*/
|
|
664
659
|
declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
665
|
-
/**
|
|
666
|
-
* Partial profile information used to associate events with a user.
|
|
667
|
-
*
|
|
668
|
-
* @see {@link PartialProfile}
|
|
669
|
-
*/
|
|
670
660
|
profile: z.ZodMiniObject<{
|
|
671
661
|
id: z.ZodMiniString<string>;
|
|
672
662
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>;
|
|
673
|
-
/**
|
|
674
|
-
* Insights events to record for this profile.
|
|
675
|
-
*
|
|
676
|
-
* @see {@link InsightsEventArray}
|
|
677
|
-
*/
|
|
678
663
|
events: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
679
664
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
680
665
|
context: z.ZodMiniObject<{
|
|
@@ -913,9 +898,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
913
898
|
entityId: z.ZodMiniString<string>;
|
|
914
899
|
entityKind: z.ZodMiniEnum<{
|
|
915
900
|
Experience: "Experience";
|
|
916
|
-
|
|
917
|
-
InlineFragment: "InlineFragment";
|
|
918
|
-
InlineComponent: "InlineComponent";
|
|
901
|
+
ExperienceFragment: "ExperienceFragment";
|
|
919
902
|
}>;
|
|
920
903
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
921
904
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -926,7 +909,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
926
909
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
927
910
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
928
911
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
929
|
-
viewDurationMs: z.
|
|
912
|
+
viewDurationMs: z.ZodMiniInt;
|
|
930
913
|
viewId: z.ZodMiniString<string>;
|
|
931
914
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
932
915
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -985,9 +968,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
985
968
|
entityId: z.ZodMiniString<string>;
|
|
986
969
|
entityKind: z.ZodMiniEnum<{
|
|
987
970
|
Experience: "Experience";
|
|
988
|
-
|
|
989
|
-
InlineFragment: "InlineFragment";
|
|
990
|
-
InlineComponent: "InlineComponent";
|
|
971
|
+
ExperienceFragment: "ExperienceFragment";
|
|
991
972
|
}>;
|
|
992
973
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
993
974
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1055,9 +1036,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1055
1036
|
entityId: z.ZodMiniString<string>;
|
|
1056
1037
|
entityKind: z.ZodMiniEnum<{
|
|
1057
1038
|
Experience: "Experience";
|
|
1058
|
-
|
|
1059
|
-
InlineFragment: "InlineFragment";
|
|
1060
|
-
InlineComponent: "InlineComponent";
|
|
1039
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1061
1040
|
}>;
|
|
1062
1041
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1063
1042
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1068,7 +1047,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1068
1047
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1069
1048
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1070
1049
|
type: z.ZodMiniLiteral<"exo_node_hover">;
|
|
1071
|
-
hoverDurationMs: z.
|
|
1050
|
+
hoverDurationMs: z.ZodMiniInt;
|
|
1072
1051
|
hoverId: z.ZodMiniString<string>;
|
|
1073
1052
|
}, z.core.$strip>], "type">>;
|
|
1074
1053
|
}, z.core.$strip>>;
|
|
@@ -1100,16 +1079,7 @@ export declare interface BatchUpdateProfileParams {
|
|
|
1100
1079
|
declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1101
1080
|
key: z.ZodMiniString<string>;
|
|
1102
1081
|
meta: z.ZodMiniObject<{
|
|
1103
|
-
/**
|
|
1104
|
-
* Identifier of the personalization or experiment experience.
|
|
1105
|
-
*/
|
|
1106
1082
|
experienceId: z.ZodMiniString<string>;
|
|
1107
|
-
/**
|
|
1108
|
-
* Index of the variant within the experience configuration.
|
|
1109
|
-
*
|
|
1110
|
-
* @remarks
|
|
1111
|
-
* Typically corresponds to the array index in the experience's distribution.
|
|
1112
|
-
*/
|
|
1113
1083
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1114
1084
|
}, z.core.$strip>;
|
|
1115
1085
|
type: z.ZodMiniLiteral<"Variable">;
|
|
@@ -1118,13 +1088,7 @@ declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
1118
1088
|
id: z.ZodMiniString<string>;
|
|
1119
1089
|
variantId: z.ZodMiniString<string>;
|
|
1120
1090
|
meta: z.ZodMiniObject<{
|
|
1121
|
-
/**
|
|
1122
|
-
* Identifier of the optimization that produced this change.
|
|
1123
|
-
*/
|
|
1124
1091
|
optimizationId: z.ZodMiniString<string>;
|
|
1125
|
-
/**
|
|
1126
|
-
* Index of the variant within the optimization's distribution.
|
|
1127
|
-
*/
|
|
1128
1092
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1129
1093
|
}, z.core.$strip>;
|
|
1130
1094
|
type: z.ZodMiniLiteral<"Experience">;
|
|
@@ -1132,13 +1096,7 @@ declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
1132
1096
|
id: z.ZodMiniString<string>;
|
|
1133
1097
|
variantId: z.ZodMiniString<string>;
|
|
1134
1098
|
meta: z.ZodMiniObject<{
|
|
1135
|
-
/**
|
|
1136
|
-
* Identifier of the optimization that produced this change.
|
|
1137
|
-
*/
|
|
1138
1099
|
optimizationId: z.ZodMiniString<string>;
|
|
1139
|
-
/**
|
|
1140
|
-
* Index of the variant within the optimization's distribution.
|
|
1141
|
-
*/
|
|
1142
1100
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1143
1101
|
}, z.core.$strip>;
|
|
1144
1102
|
type: z.ZodMiniLiteral<"Fragment">;
|
|
@@ -1535,9 +1493,6 @@ export declare interface ExperienceApiClientRequestOptions {
|
|
|
1535
1493
|
* @public
|
|
1536
1494
|
*/
|
|
1537
1495
|
declare const ExperienceData: z.ZodMiniObject<{
|
|
1538
|
-
/**
|
|
1539
|
-
* Profile associated with the evaluated events.
|
|
1540
|
-
*/
|
|
1541
1496
|
profile: z.ZodMiniObject<{
|
|
1542
1497
|
id: z.ZodMiniString<string>;
|
|
1543
1498
|
stableId: z.ZodMiniString<string>;
|
|
@@ -1574,22 +1529,12 @@ declare const ExperienceData: z.ZodMiniObject<{
|
|
|
1574
1529
|
averageSessionLength: z.ZodMiniNumber<number>;
|
|
1575
1530
|
}, z.core.$strip>;
|
|
1576
1531
|
}, z.core.$strip>;
|
|
1577
|
-
/**
|
|
1578
|
-
* Selected experiences and variants for the profile.
|
|
1579
|
-
*
|
|
1580
|
-
* @see {@link SelectedOptimizationArray}
|
|
1581
|
-
*/
|
|
1582
1532
|
experiences: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1583
1533
|
experienceId: z.ZodMiniString<string>;
|
|
1584
1534
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1585
1535
|
variants: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1586
1536
|
sticky: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniBoolean<boolean>>>;
|
|
1587
1537
|
}, z.core.$strip>>;
|
|
1588
|
-
/**
|
|
1589
|
-
* Used for Custom Flags.
|
|
1590
|
-
*
|
|
1591
|
-
* @see {@link ChangeArray}
|
|
1592
|
-
*/
|
|
1593
1538
|
changes: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1594
1539
|
key: z.ZodMiniString<string>;
|
|
1595
1540
|
meta: z.ZodMiniObject<{
|
|
@@ -1747,9 +1692,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1747
1692
|
entityId: z.ZodMiniString<string>;
|
|
1748
1693
|
entityKind: z.ZodMiniEnum<{
|
|
1749
1694
|
Experience: "Experience";
|
|
1750
|
-
|
|
1751
|
-
InlineFragment: "InlineFragment";
|
|
1752
|
-
InlineComponent: "InlineComponent";
|
|
1695
|
+
ExperienceFragment: "ExperienceFragment";
|
|
1753
1696
|
}>;
|
|
1754
1697
|
entityKindId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1755
1698
|
entryIds: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -1760,7 +1703,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1760
1703
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1761
1704
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1762
1705
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
1763
|
-
viewDurationMs: z.
|
|
1706
|
+
viewDurationMs: z.ZodMiniInt;
|
|
1764
1707
|
viewId: z.ZodMiniString<string>;
|
|
1765
1708
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1766
1709
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -2061,57 +2004,17 @@ export declare interface FetchMethodCallbackOptions {
|
|
|
2061
2004
|
* @public
|
|
2062
2005
|
*/
|
|
2063
2006
|
declare const GeoLocation: z.ZodMiniObject<{
|
|
2064
|
-
/**
|
|
2065
|
-
* Geographical coordinates for the location.
|
|
2066
|
-
*/
|
|
2067
2007
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2068
|
-
/**
|
|
2069
|
-
* Latitude component of the coordinates.
|
|
2070
|
-
*/
|
|
2071
2008
|
latitude: z.ZodMiniNumber<number>;
|
|
2072
|
-
/**
|
|
2073
|
-
* Longitude component of the coordinates.
|
|
2074
|
-
*/
|
|
2075
2009
|
longitude: z.ZodMiniNumber<number>;
|
|
2076
2010
|
}, z.core.$strip>>;
|
|
2077
|
-
/**
|
|
2078
|
-
* City name associated with the location.
|
|
2079
|
-
*/
|
|
2080
2011
|
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2081
|
-
/**
|
|
2082
|
-
* Postal or ZIP code associated with the location.
|
|
2083
|
-
*/
|
|
2084
2012
|
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2085
|
-
/**
|
|
2086
|
-
* Region or state name associated with the location.
|
|
2087
|
-
*/
|
|
2088
2013
|
region: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2089
|
-
/**
|
|
2090
|
-
* Region or state code associated with the location.
|
|
2091
|
-
*/
|
|
2092
2014
|
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2093
|
-
/**
|
|
2094
|
-
* Country name associated with the location.
|
|
2095
|
-
*/
|
|
2096
2015
|
country: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2097
|
-
/**
|
|
2098
|
-
* Country code associated with the location.
|
|
2099
|
-
*
|
|
2100
|
-
* @remarks
|
|
2101
|
-
* Validated to exactly COUNTRY_CODE_LENGTH characters, typically
|
|
2102
|
-
* an ISO 3166-1 alpha-2 code.
|
|
2103
|
-
*/
|
|
2104
2016
|
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2105
|
-
/**
|
|
2106
|
-
* Continent name associated with the location.
|
|
2107
|
-
*/
|
|
2108
2017
|
continent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2109
|
-
/**
|
|
2110
|
-
* Time zone identifier associated with the location.
|
|
2111
|
-
*
|
|
2112
|
-
* @remarks
|
|
2113
|
-
* Typically an IANA time zone string (e.g., `"Europe/Berlin"`).
|
|
2114
|
-
*/
|
|
2115
2018
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2116
2019
|
}, z.core.$strip>;
|
|
2117
2020
|
|
|
@@ -2322,34 +2225,9 @@ export declare interface RetryFetchMethodOptions extends BaseFetchMethodOptions
|
|
|
2322
2225
|
* @public
|
|
2323
2226
|
*/
|
|
2324
2227
|
declare const SelectedOptimizationArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
2325
|
-
/**
|
|
2326
|
-
* Identifier of the personalization or experiment experience.
|
|
2327
|
-
*/
|
|
2328
2228
|
experienceId: z.ZodMiniString<string>;
|
|
2329
|
-
/**
|
|
2330
|
-
* Index of the selected variant within the experience configuration.
|
|
2331
|
-
*
|
|
2332
|
-
* @remarks
|
|
2333
|
-
* Typically corresponds to the index of the selected `OptimizationConfig` entry.
|
|
2334
|
-
*/
|
|
2335
2229
|
variantIndex: z.ZodMiniNumber<number>;
|
|
2336
|
-
/**
|
|
2337
|
-
* Mapping of baseline entry IDs to their selected variant entry IDs.
|
|
2338
|
-
*
|
|
2339
|
-
* @remarks
|
|
2340
|
-
* The keys are component identifiers and the values are the
|
|
2341
|
-
* identifiers of the selected variant for that component.
|
|
2342
|
-
*/
|
|
2343
2230
|
variants: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
2344
|
-
/**
|
|
2345
|
-
* Indicates whether this optimization selection is sticky for the user.
|
|
2346
|
-
*
|
|
2347
|
-
* @defaultValue false
|
|
2348
|
-
*
|
|
2349
|
-
* @remarks
|
|
2350
|
-
* Reuse sticky selections on subsequent requests for the same user rather
|
|
2351
|
-
* than re-allocating a new variant.
|
|
2352
|
-
*/
|
|
2353
2231
|
sticky: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniBoolean<boolean>>>;
|
|
2354
2232
|
}, z.core.$strip>>;
|
|
2355
2233
|
|
|
@@ -2420,16 +2298,7 @@ export declare interface UpsertProfileParams extends CreateProfileParams {
|
|
|
2420
2298
|
declare const VariableChange: z.ZodMiniObject<{
|
|
2421
2299
|
key: z.ZodMiniString<string>;
|
|
2422
2300
|
meta: z.ZodMiniObject<{
|
|
2423
|
-
/**
|
|
2424
|
-
* Identifier of the personalization or experiment experience.
|
|
2425
|
-
*/
|
|
2426
2301
|
experienceId: z.ZodMiniString<string>;
|
|
2427
|
-
/**
|
|
2428
|
-
* Index of the variant within the experience configuration.
|
|
2429
|
-
*
|
|
2430
|
-
* @remarks
|
|
2431
|
-
* Typically corresponds to the array index in the experience's distribution.
|
|
2432
|
-
*/
|
|
2433
2302
|
variantIndex: z.ZodMiniNumber<number>;
|
|
2434
2303
|
}, z.core.$strip>;
|
|
2435
2304
|
type: z.ZodMiniLiteral<"Variable">;
|