@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.
@@ -12833,6 +12833,8 @@ declare class RevTurbineCustomerSdk {
12833
12833
  * session so a render loop can never flood the channel.
12834
12834
  */
12835
12835
  private readonly emittedResolutionDiagnostics;
12836
+ /** Session dedup for {@link reportSdkError}, keyed by `reason`. */
12837
+ private readonly emittedSdkErrors;
12836
12838
  private static readonly RESOLUTION_DIAGNOSTIC_SESSION_CAP;
12837
12839
  /**
12838
12840
  * Gate for `resolution_failure` diagnostics (plan 144 TASK-21). Honors BOTH
@@ -12854,6 +12856,25 @@ declare class RevTurbineCustomerSdk {
12854
12856
  * `(reason, primary handle)` for the session and capped.
12855
12857
  */
12856
12858
  private emitResolutionFailure;
12859
+ /**
12860
+ * Report that the SDK itself failed (plan 182 TASK-5).
12861
+ *
12862
+ * `sdk_error` was declared in the meta taxonomy with no emitter. This is the
12863
+ * "the SDK malfunctioned" signal — distinct from `resolution_failure`, which
12864
+ * means a *decision* produced nothing. It rides the same anonymous
12865
+ * `events_sdk_meta` lane: no tenant, no user, no placement identity.
12866
+ *
12867
+ * Deduped on `reason` for the session and capped, mirroring
12868
+ * {@link emitResolutionFailure} — an SDK failing inside a render loop must
12869
+ * not become a telemetry flood. Best-effort and never throwing: this is
12870
+ * called from `catch` blocks, so it must not manufacture a second failure.
12871
+ *
12872
+ * @param reason Stable, categorical cause (e.g. `provider_init_failed`) —
12873
+ * what dashboards group by.
12874
+ * @param message Human-readable detail for triage, sent on the same footing
12875
+ * as `sdk_validation_warning`'s message, which already ships on this lane.
12876
+ */
12877
+ reportSdkError(reason: string, message?: string): void;
12857
12878
  /** Fire the one anonymous `sdk_init` adoption beacon at startup. */
12858
12879
  private emitSdkInitTelemetry;
12859
12880
  /**