@revturbine/sdk 0.2.77 → 0.2.78

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/dist/index.d.ts CHANGED
@@ -14038,6 +14038,19 @@ declare class SdkSession {
14038
14038
  can(handle: string, context?: RevTurbineEntitlementContext): Promise<EntitlementResult>;
14039
14039
  /** Track a custom event. */
14040
14040
  trackEvent(name: string, data?: Record<string, JsonObject[string]>): Promise<void>;
14041
+ /**
14042
+ * Track an event — the advertised alias of {@link trackEvent}, first-class
14043
+ * on the session facade so headless code carries the full telemetry surface
14044
+ * (plan 179 ruling, Kent 2026-08-13). Powers analytics, frequency caps,
14045
+ * attribution, and experiments.
14046
+ */
14047
+ track(name: string, data?: Record<string, JsonObject[string]>): Promise<void>;
14048
+ /**
14049
+ * Flush buffered events immediately. Headless processes are often
14050
+ * short-lived (scripts, jobs, edge handlers) — call this before exit so
14051
+ * buffered `track()` events aren't lost with the process.
14052
+ */
14053
+ flushEvents(): Promise<void>;
14041
14054
  }
14042
14055
  /**
14043
14056
  * Create a fully-initialized SDK session.