@revturbine/sdk 0.2.71 → 0.2.72

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
@@ -2152,6 +2152,9 @@ declare const ClientContextSchema: z.ZodObject<{
2152
2152
  }>>>;
2153
2153
  provider_subscription_id: z.ZodOptional<z.ZodString>;
2154
2154
  }, z.core.$strip>>;
2155
+ plan: z.ZodOptional<z.ZodObject<{
2156
+ handle: z.ZodOptional<z.ZodString>;
2157
+ }, z.core.$strip>>;
2155
2158
  capabilities: z.ZodOptional<z.ZodObject<{
2156
2159
  can_upgrade: z.ZodOptional<z.ZodBoolean>;
2157
2160
  can_manage_billing: z.ZodOptional<z.ZodBoolean>;
@@ -2995,6 +2998,7 @@ declare const SdkMetaEventTypeSchema: z.ZodEnum<{
2995
2998
  sdk_init: "sdk_init";
2996
2999
  sdk_error: "sdk_error";
2997
3000
  sdk_validation_warning: "sdk_validation_warning";
3001
+ resolution_failure: "resolution_failure";
2998
3002
  }>;
2999
3003
  declare const SdkConfigShapeSchema: z.ZodObject<{
3000
3004
  plans: z.ZodNumber;
@@ -3011,6 +3015,7 @@ declare const SdkMetaEventSchema: z.ZodObject<{
3011
3015
  sdk_init: "sdk_init";
3012
3016
  sdk_error: "sdk_error";
3013
3017
  sdk_validation_warning: "sdk_validation_warning";
3018
+ resolution_failure: "resolution_failure";
3014
3019
  }>;
3015
3020
  occurred_at: z.ZodString;
3016
3021
  request_id: z.ZodOptional<z.ZodString>;
@@ -3030,6 +3035,12 @@ declare const SdkMetaEventSchema: z.ZodObject<{
3030
3035
  surface_templates: z.ZodNumber;
3031
3036
  }, z.core.$strip>>;
3032
3037
  message: z.ZodOptional<z.ZodString>;
3038
+ reason: z.ZodOptional<z.ZodString>;
3039
+ placement_handle: z.ZodOptional<z.ZodString>;
3040
+ slot_handle: z.ZodOptional<z.ZodString>;
3041
+ surface: z.ZodOptional<z.ZodString>;
3042
+ plan_handle: z.ZodOptional<z.ZodString>;
3043
+ entitlement_handle: z.ZodOptional<z.ZodString>;
3033
3044
  }, z.core.$strip>;
3034
3045
  declare const SdkMetaIngestBatchSchema: z.ZodObject<{
3035
3046
  events: z.ZodArray<z.ZodObject<{
@@ -3037,6 +3048,7 @@ declare const SdkMetaIngestBatchSchema: z.ZodObject<{
3037
3048
  sdk_init: "sdk_init";
3038
3049
  sdk_error: "sdk_error";
3039
3050
  sdk_validation_warning: "sdk_validation_warning";
3051
+ resolution_failure: "resolution_failure";
3040
3052
  }>;
3041
3053
  occurred_at: z.ZodString;
3042
3054
  request_id: z.ZodOptional<z.ZodString>;
@@ -3056,6 +3068,12 @@ declare const SdkMetaIngestBatchSchema: z.ZodObject<{
3056
3068
  surface_templates: z.ZodNumber;
3057
3069
  }, z.core.$strip>>;
3058
3070
  message: z.ZodOptional<z.ZodString>;
3071
+ reason: z.ZodOptional<z.ZodString>;
3072
+ placement_handle: z.ZodOptional<z.ZodString>;
3073
+ slot_handle: z.ZodOptional<z.ZodString>;
3074
+ surface: z.ZodOptional<z.ZodString>;
3075
+ plan_handle: z.ZodOptional<z.ZodString>;
3076
+ entitlement_handle: z.ZodOptional<z.ZodString>;
3059
3077
  }, z.core.$strip>>;
3060
3078
  }, z.core.$strip>;
3061
3079
  declare const eventPaths: ZodOpenApiPathsObject;
@@ -12851,6 +12869,33 @@ declare class RevTurbineCustomerSdk {
12851
12869
  private warnPiiRedactedOnce;
12852
12870
  /** True when keyless anonymous telemetry should fire (REQ-4 conditions). */
12853
12871
  private anonymousTelemetryActive;
12872
+ /**
12873
+ * Session-scoped dedup for `resolution_failure` diagnostics (plan 144 Q-4
12874
+ * disposition): one emit per `(reason, primary handle)` pair, capped per
12875
+ * session so a render loop can never flood the channel.
12876
+ */
12877
+ private readonly emittedResolutionDiagnostics;
12878
+ private static readonly RESOLUTION_DIAGNOSTIC_SESSION_CAP;
12879
+ /**
12880
+ * Gate for `resolution_failure` diagnostics (plan 144 TASK-21). Honors BOTH
12881
+ * opt-outs (124 Q-6, decided 2026-08-12): either `anonymousTelemetry: false`
12882
+ * or `analytics: false` silences diagnostics — the most conservative
12883
+ * reading, so no privacy-minded install is surprised by a new emission.
12884
+ * Unlike {@link anonymousTelemetryActive} there is NO keyless requirement:
12885
+ * keyed production installs emit diagnostics too (124 Q-7). `previewMode`
12886
+ * (docs/playground renders) still suppresses, and the channel is
12887
+ * browser-only for now (server-side diagnostics are a named follow-up).
12888
+ */
12889
+ private diagnosticTelemetryActive;
12890
+ /**
12891
+ * Emit one `resolution_failure` diagnostic (plan 144 TASK-21 — the plan-124
12892
+ * "silent failure" channel): a placement that resolved to the fallback, or
12893
+ * an entitlement denied for infrastructure reasons, becomes observable on
12894
+ * the keyless meta channel. Field values are author-defined handles and
12895
+ * closed reason codes only (TASK-20 allow-list); deduped per
12896
+ * `(reason, primary handle)` for the session and capped.
12897
+ */
12898
+ private emitResolutionFailure;
12854
12899
  /** Fire the one anonymous `sdk_init` adoption beacon at startup. */
12855
12900
  private emitSdkInitTelemetry;
12856
12901
  /**
@@ -12864,6 +12909,14 @@ declare class RevTurbineCustomerSdk {
12864
12909
  * non-throwing. Stamps SDK/schema versions + a one-way hashed config id.
12865
12910
  */
12866
12911
  private emitAnonMeta;
12912
+ /**
12913
+ * Ungated build + POST of one allowlisted meta event — the shared tail of
12914
+ * {@link emitAnonMeta} (keyless adoption beacons, which stay gated on
12915
+ * keyless installs) and the `resolution_failure` diagnostics (plan 144
12916
+ * TASK-21), which are deliberately NOT keyless-only — keyed production
12917
+ * installs emit them too (plan 124 Q-7). Callers gate; this never throws.
12918
+ */
12919
+ private postAnonMeta;
12867
12920
  /** One-time info notice that keyless telemetry is active + how to disable it (REQ-8b). */
12868
12921
  private showAnonTelemetryNoticeOnce;
12869
12922
  private sendEvents;
@@ -15174,9 +15227,15 @@ interface components {
15174
15227
  bundle_version?: components["schemas"]["Anon_e17de468dbc9_4"];
15175
15228
  config_shape?: components["schemas"]["Anon_a070b8adf29f"];
15176
15229
  message?: components["schemas"]["Anon_7e1c99abdd77_2"];
15230
+ reason?: components["schemas"]["Anon_e17de468dbc9_5"];
15231
+ placement_handle?: components["schemas"]["Anon_e17de468dbc9_6"];
15232
+ slot_handle?: components["schemas"]["Anon_e17de468dbc9_7"];
15233
+ surface?: components["schemas"]["Anon_e17de468dbc9_8"];
15234
+ plan_handle?: components["schemas"]["Anon_e17de468dbc9_9"];
15235
+ entitlement_handle?: components["schemas"]["Anon_e17de468dbc9_10"];
15177
15236
  };
15178
15237
  /** @enum {string} */
15179
- SdkMetaEventType: "sdk_init" | "sdk_error" | "sdk_validation_warning";
15238
+ SdkMetaEventType: "sdk_init" | "sdk_error" | "sdk_validation_warning" | "resolution_failure";
15180
15239
  SdkConfigShape: {
15181
15240
  plans: components["schemas"]["Anon_274ba4ca49d5"];
15182
15241
  entitlements: components["schemas"]["Anon_274ba4ca49d5_1"];
@@ -16007,6 +16066,18 @@ interface components {
16007
16066
  Anon_274ba4ca49d5_7: number;
16008
16067
  Anon_7e1c99abdd77_2: components["schemas"]["Anon_373775e26848_4"];
16009
16068
  Anon_373775e26848_4: string;
16069
+ Anon_e17de468dbc9_5: components["schemas"]["Anon_520c691f88f7_5"];
16070
+ Anon_520c691f88f7_5: string;
16071
+ Anon_e17de468dbc9_6: components["schemas"]["Anon_520c691f88f7_6"];
16072
+ Anon_520c691f88f7_6: string;
16073
+ Anon_e17de468dbc9_7: components["schemas"]["Anon_520c691f88f7_7"];
16074
+ Anon_520c691f88f7_7: string;
16075
+ Anon_e17de468dbc9_8: components["schemas"]["Anon_520c691f88f7_8"];
16076
+ Anon_520c691f88f7_8: string;
16077
+ Anon_e17de468dbc9_9: components["schemas"]["Anon_520c691f88f7_9"];
16078
+ Anon_520c691f88f7_9: string;
16079
+ Anon_e17de468dbc9_10: components["schemas"]["Anon_520c691f88f7_10"];
16080
+ Anon_520c691f88f7_10: string;
16010
16081
  Anon_761f976a1da1_2: string;
16011
16082
  Anon_57796118d046_19: string;
16012
16083
  Anon_4e04ec5cc4e6_4: components["schemas"]["Anon_9ac136edb99a_9"];