Create a stateless core. Product instances share the same API client and event builder configured in CoreBase.
Stateless Core configuration.
Protected_Stateless analytics product.
Protected_Stateless personalization product.
ReadonlyapiShared Optimization API client instance.
ReadonlyconfigResolved core configuration (minus any name metadata).
ReadonlyeventShared event builder instance.
ReadonlyinterceptorsLifecycle interceptors for events and state updates.
Static resolver for evaluating personalized custom flags.
Build a flattened map of flag keys to values from a change list.
Optionalchanges: {The change list returned by the optimization service.
Key identifying the subject of the change.
Metadata describing the originating experience and variant index.
Identifier of the personalization or experiment experience.
Index of the variant within the experience configuration.
Discriminator for a variable change.
New value for the variable identified by ChangeBase.key.
A map of flag keys to their resolved values.
Static resolver that returns values sourced from a user profile based on a Contentful Merge Tag entry.
Look up a merge-tag value from a profile using normalized selectors.
Merge-tag identifier.
Optionalprofile: {Profile from which to resolve the value.
List of audience identifiers that this profile currently belongs to.
Primary identifier of the profile.
Geo-location information associated with the profile.
Optionalcity?: stringCity name associated with the location.
Optionalcontinent?: stringContinent name associated with the location.
Optionalcoordinates?: { latitude: number; longitude: number }Geographical coordinates for the location.
Latitude component of the coordinates.
Longitude component of the coordinates.
Optionalcountry?: stringCountry name associated with the location.
OptionalcountryCode?: stringCountry code associated with the location.
OptionalpostalCode?: stringPostal or ZIP code associated with the location.
Optionalregion?: stringRegion or state name associated with the location.
OptionalregionCode?: stringRegion or state code associated with the location.
Optionaltimezone?: stringTime zone identifier associated with the location.
Random value associated with the profile.
Aggregated session statistics for the profile.
Duration of the active session.
Average session duration across all sessions represented by this record.
The unit should match SessionStatistics.activeSessionLength.
Number of sessions associated with this profile or identifier.
Often used in combination with SessionStatistics.averageSessionLength.
Unique identifier for this session statistics record.
Indicates whether the visitor has been seen before.
Landing page for the session.
Path component of the page URL (e.g., /products/123).
Parsed query parameters for the page.
Referrer URL that led to the current page.
Raw search string including the leading ? (e.g., "?q=test").
Optionaltitle?: stringTitle of the page as seen by the user.
Full URL of the page.
Stable, long-lived identifier of the profile.
Traits describing the profile (user-level attributes).
A stringified primitive if found; otherwise undefined.
Generate a list of candidate selectors for a merge-tag ID.
Merge-tag identifier (segments separated by _).
Array of dot-path selectors to try against a profile.
Resolve the display value for a merge-tag entry using the provided profile,
falling back to the entry's configured nt_fallback when necessary.
The merge-tag entry to resolve.
Optionalnt_fallback?: stringFallback value to use when the merge tag cannot be resolved.
Internal identifier of the merge tag.
Human-readable name of the merge tag.
Contentful metadata, including tags.
System fields extended to constrain the content type to nt_mergetag.
Optionalprofile: {Optional profile used for lookup.
List of audience identifiers that this profile currently belongs to.
Primary identifier of the profile.
Geo-location information associated with the profile.
Optionalcity?: stringCity name associated with the location.
Optionalcontinent?: stringContinent name associated with the location.
Optionalcoordinates?: { latitude: number; longitude: number }Geographical coordinates for the location.
Latitude component of the coordinates.
Longitude component of the coordinates.
Optionalcountry?: stringCountry name associated with the location.
OptionalcountryCode?: stringCountry code associated with the location.
OptionalpostalCode?: stringPostal or ZIP code associated with the location.
Optionalregion?: stringRegion or state name associated with the location.
OptionalregionCode?: stringRegion or state code associated with the location.
Optionaltimezone?: stringTime zone identifier associated with the location.
Random value associated with the profile.
Aggregated session statistics for the profile.
Duration of the active session.
Average session duration across all sessions represented by this record.
The unit should match SessionStatistics.activeSessionLength.
Number of sessions associated with this profile or identifier.
Often used in combination with SessionStatistics.averageSessionLength.
Unique identifier for this session statistics record.
Indicates whether the visitor has been seen before.
Landing page for the session.
Path component of the page URL (e.g., /products/123).
Parsed query parameters for the page.
Referrer URL that led to the current page.
Raw search string including the leading ? (e.g., "?q=test").
Optionaltitle?: stringTitle of the page as seen by the user.
Full URL of the page.
Stable, long-lived identifier of the profile.
Traits describing the profile (user-level attributes).
The resolved string, or undefined if the entry is invalid and no
fallback is available.
Static resolver for personalized Contentful entries (e.g., entry variants targeted to a profile audience).
Find the personalization entry corresponding to one of the selected experiences.
Object containing the baseline personalized entry and the selections.
When true, skip type/shape validation for perf.
The matching PersonalizationEntry, or undefined if not found/invalid.
Optionalnt_audience?: The audience of the personalization (Audience).
The configuration of a PersonalizationEntry (JSON).
Accepts null or an explicit PersonalizationConfig and converts
falsy/undefined values into a default configuration.
Optionalnt_description?: string | nullThe description of the personalization (Short Text).
The personalization/experience ID related to this personalization entry.
The name of the personalization (Short Text).
The type of the personalization (nt_experiment | nt_personalization).
Optionalnt_variants?: Entry[]All used variants of the personalization (Contentful references to other Content Types).
Contentful metadata, including tags.
System-managed properties describing the entry.
Look up the selection metadata for a specific personalization entry.
Object with the target personalization entry and selections.
When true, skip type checks.
The matching SelectedPersonalization, if present.
Identifier of the personalization or experiment experience.
Optionalsticky?: booleanIndicates whether this personalization selection is sticky for the user.
Index of the selected variant within the experience configuration.
Mapping of baseline entry IDs to their selected variant entry IDs.
Get the replacement variant config for the given selection index.
Baseline entry, personalization entry, and 1‑based variant index.
When true, skip type checks.
The EntryReplacementVariant for the component, if any.
Indicates whether this variant is hidden from allocation/traffic.
Unique identifier for the variant.
Resolve the concrete Contentful entry that corresponds to a selected variant.
Entry skeleton type.
Chain modifiers.
Locale code.
Personalization entry and selected variant.
When true, skip type checks.
The resolved entry typed as Entry or undefined.
Get the value of a custom flag derived from a set of optimization changes.
The flag key to resolve.
Optionalchanges: {Optional change list to resolve from.
Key identifying the subject of the change.
Metadata describing the originating experience and variant index.
Identifier of the personalization or experiment experience.
Index of the variant within the experience configuration.
Discriminator for a variable change.
New value for the variable identified by ChangeBase.key.
The resolved JSON value for the flag if available.
Get all resolved custom flags derived from a set of optimization changes.
Optionalchanges: {Optional change list to resolve from.
Key identifying the subject of the change.
Metadata describing the originating experience and variant index.
Identifier of the personalization or experiment experience.
Index of the variant within the experience configuration.
Discriminator for a variable change.
New value for the variable identified by ChangeBase.key.
The resolved custom flag map.
Resolve a merge-tag value from the given entry node and profile.
The merge-tag entry node to resolve.
Optionalnt_fallback?: stringFallback value to use when the merge tag cannot be resolved.
Internal identifier of the merge tag.
Human-readable name of the merge tag.
Contentful metadata, including tags.
System fields extended to constrain the content type to nt_mergetag.
Optionalprofile: {Optional profile used for value lookup.
List of audience identifiers that this profile currently belongs to.
Primary identifier of the profile.
Geo-location information associated with the profile.
Optionalcity?: stringCity name associated with the location.
Optionalcontinent?: stringContinent name associated with the location.
Optionalcoordinates?: { latitude: number; longitude: number }Geographical coordinates for the location.
Latitude component of the coordinates.
Longitude component of the coordinates.
Optionalcountry?: stringCountry name associated with the location.
OptionalcountryCode?: stringCountry code associated with the location.
OptionalpostalCode?: stringPostal or ZIP code associated with the location.
Optionalregion?: stringRegion or state name associated with the location.
OptionalregionCode?: stringRegion or state code associated with the location.
Optionaltimezone?: stringTime zone identifier associated with the location.
Random value associated with the profile.
Aggregated session statistics for the profile.
Duration of the active session.
Average session duration across all sessions represented by this record.
The unit should match SessionStatistics.activeSessionLength.
Number of sessions associated with this profile or identifier.
Often used in combination with SessionStatistics.averageSessionLength.
Unique identifier for this session statistics record.
Indicates whether the visitor has been seen before.
Landing page for the session.
Path component of the page URL (e.g., /products/123).
Parsed query parameters for the page.
Referrer URL that led to the current page.
Raw search string including the leading ? (e.g., "?q=test").
Optionaltitle?: stringTitle of the page as seen by the user.
Full URL of the page.
Stable, long-lived identifier of the profile.
Traits describing the profile (user-level attributes).
The resolved value (typically a string) or undefined if not found.
Convenience wrapper for sending an identify event via personalization.
Identify builder arguments.
The resulting OptimizationData for the identified user.
Convenience wrapper for sending a page event via personalization.
Page view builder arguments.
The evaluated OptimizationData for this page view.
Resolve a Contentful entry to the appropriate personalized variant (or return the baseline entry if no matching variant is selected).
Entry skeleton type.
Locale code.
The baseline entry to resolve.
Optionalpersonalizations: {Optional selection array for the current profile.
Identifier of the personalization or experiment experience.
Optionalsticky?: booleanIndicates whether this personalization selection is sticky for the user.
Index of the selected variant within the experience configuration.
Mapping of baseline entry IDs to their selected variant entry IDs.
ResolvedData containing the resolved entry and personalization metadata (if any).
Resolve a Contentful entry to the appropriate personalized variant (or return the baseline entry if no matching variant is selected).
Entry skeleton type.
Chain modifiers.
Locale code.
The baseline entry to resolve.
Optionalpersonalizations: {Optional selection array for the current profile.
Identifier of the personalization or experiment experience.
Optionalsticky?: booleanIndicates whether this personalization selection is sticky for the user.
Index of the selected variant within the experience configuration.
Mapping of baseline entry IDs to their selected variant entry IDs.
ResolvedData containing the resolved entry and personalization metadata (if any).
Convenience wrapper for sending a screen event via personalization.
Screen view builder arguments.
The evaluated OptimizationData for this screen view.
Convenience wrapper for sending a custom track event via personalization.
Track builder arguments.
The evaluated OptimizationData for this event.
Track a component click via analytics.
Component click builder arguments.
A promise that resolves when processing completes.
Track a component hover via analytics.
Component hover builder arguments.
A promise that resolves when processing completes.
Track a component view in both personalization and analytics.
Component view builder arguments. When payload.sticky is
true, the event will also be sent via personalization as a sticky
component view.
A promise that resolves when all delegated calls complete.
Track a feature flag view via analytics.
Component view builder arguments used to build the flag view event.
A promise that resolves when processing completes.
Core runtime that constructs product instances for stateless environments.
See
CoreBase