Create an instance of the Node SDK with merged defaults.
Partial Node-specific configuration. Any eventBuilder fields provided are merged with Node's defaults.
ReadonlyanalyticsStateless analytics product.
ReadonlyapiShared Optimization API client instance.
ReadonlyconfigResolved core configuration (minus any name metadata).
ReadonlyeventShared event builder instance.
ReadonlyinterceptorsReadonlypersonalizationStateless personalization product.
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.
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.
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.
Typically corresponds to the index of the selected PersonalizationConfig entry.
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 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.
OptionalduplicationScope: stringOptional string used to scope duplication used in Stateful implementations
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.
OptionalduplicationScope: stringOptional string used to scope duplication used in Stateful implementations
A promise that resolves when processing completes.
Node-specific Optimization SDK built on CoreStateless.
Remarks
This class adapts the stateless Optimization Core for Node runtimes by applying environment-appropriate defaults (e.g., server channel, Node SDK library metadata). No analytics or personalization behavior is modified— only configuration defaults differ.
Example