@revturbine/sdk 0.2.79 → 0.2.80

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
@@ -12926,6 +12926,8 @@ declare class RevTurbineCustomerSdk {
12926
12926
  * session so a render loop can never flood the channel.
12927
12927
  */
12928
12928
  private readonly emittedResolutionDiagnostics;
12929
+ /** Session dedup for {@link reportSdkError}, keyed by `reason`. */
12930
+ private readonly emittedSdkErrors;
12929
12931
  private static readonly RESOLUTION_DIAGNOSTIC_SESSION_CAP;
12930
12932
  /**
12931
12933
  * Gate for `resolution_failure` diagnostics (plan 144 TASK-21). Honors BOTH
@@ -12947,6 +12949,25 @@ declare class RevTurbineCustomerSdk {
12947
12949
  * `(reason, primary handle)` for the session and capped.
12948
12950
  */
12949
12951
  private emitResolutionFailure;
12952
+ /**
12953
+ * Report that the SDK itself failed (plan 182 TASK-5).
12954
+ *
12955
+ * `sdk_error` was declared in the meta taxonomy with no emitter. This is the
12956
+ * "the SDK malfunctioned" signal — distinct from `resolution_failure`, which
12957
+ * means a *decision* produced nothing. It rides the same anonymous
12958
+ * `events_sdk_meta` lane: no tenant, no user, no placement identity.
12959
+ *
12960
+ * Deduped on `reason` for the session and capped, mirroring
12961
+ * {@link emitResolutionFailure} — an SDK failing inside a render loop must
12962
+ * not become a telemetry flood. Best-effort and never throwing: this is
12963
+ * called from `catch` blocks, so it must not manufacture a second failure.
12964
+ *
12965
+ * @param reason Stable, categorical cause (e.g. `provider_init_failed`) —
12966
+ * what dashboards group by.
12967
+ * @param message Human-readable detail for triage, sent on the same footing
12968
+ * as `sdk_validation_warning`'s message, which already ships on this lane.
12969
+ */
12970
+ reportSdkError(reason: string, message?: string): void;
12950
12971
  /** Fire the one anonymous `sdk_init` adoption beacon at startup. */
12951
12972
  private emitSdkInitTelemetry;
12952
12973
  /**