@revturbine/sdk 0.7.11 → 0.7.13

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
@@ -3042,8 +3042,22 @@ declare const LocalizedTextSchema: z.ZodObject<{
3042
3042
  }, z.core.$strict>;
3043
3043
  /**
3044
3044
  * The bounded value space for filter defaults and fixed filters: scalars,
3045
- * scalar lists, a date-range preset, or a numeric range. Deliberately not
3046
- * `unknown` — every persisted value must be JSON-plain and enumerable.
3045
+ * scalar lists, a date-range preset, an explicit date range, or a numeric
3046
+ * range. Deliberately not `unknown` — every persisted value must be
3047
+ * JSON-plain and enumerable.
3048
+ *
3049
+ * The explicit date-range variant (`type: 'date_range'`) exists precisely
3050
+ * because `z.array(FilterScalar)` (the scalar-list variant, used for
3051
+ * multi-select) is structurally indistinguishable from a two-element date
3052
+ * array — `["2026-06-01","2026-08-27"]` reads equally well as "either of
3053
+ * these two dates" or "the range between them" with no way to tell which
3054
+ * was meant (plan 226 REQ-5). A tagged shape removes the ambiguity at the
3055
+ * type level instead of leaving every consumer to re-derive the same
3056
+ * "is this array actually a range?" heuristic. The bare-array encoding
3057
+ * remains valid here (REQ-9): existing saved-view documents and URLs
3058
+ * already use it, and this is a strictly additive union member, not a
3059
+ * replacement — decoders should prefer the tagged shape going forward and
3060
+ * treat a bare two-date array as a legacy range for read compatibility.
3047
3061
  */
3048
3062
  declare const AnalyticsFilterValueSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodObject<{
3049
3063
  preset: z.ZodString;
@@ -3058,7 +3072,29 @@ declare const AnalyticsFilterValueSchema: z.ZodUnion<readonly [z.ZodUnion<readon
3058
3072
  }, z.core.$strict>, z.ZodObject<{
3059
3073
  min: z.ZodOptional<z.ZodNumber>;
3060
3074
  max: z.ZodOptional<z.ZodNumber>;
3075
+ }, z.core.$strict>, z.ZodObject<{
3076
+ type: z.ZodLiteral<"date_range">;
3077
+ start: z.ZodString;
3078
+ end: z.ZodString;
3061
3079
  }, z.core.$strict>]>;
3080
+ /** Discriminant for the explicit date-range variant above. */
3081
+ declare const ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE: "date_range";
3082
+ interface AnalyticsDateRangeFilterValue {
3083
+ type: typeof ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE;
3084
+ start: string;
3085
+ end: string;
3086
+ }
3087
+ /** Guard distinguishing the tagged date-range shape from every other
3088
+ * `AnalyticsFilterValue` variant (including the legacy bare-array range and
3089
+ * a same-shaped multi-select list) — the type-safe alternative to each
3090
+ * consumer re-deriving "is this array/object actually a date range?". */
3091
+ declare function isAnalyticsDateRangeFilterValue(value: unknown): value is AnalyticsDateRangeFilterValue;
3092
+ /** Guard for the legacy bare two-element-array date-range encoding
3093
+ * (`["2026-06-01","2026-08-27"]`) that predates the tagged shape above —
3094
+ * distinguishes it from a same-shaped multi-select scalar list by requiring
3095
+ * both entries to look like ISO dates, matching every existing decoder's
3096
+ * heuristic (plan 226 REQ-5's rule-of-three consolidation target). */
3097
+ declare function isLegacyDateRangeArray(value: unknown): value is [string, string];
3062
3098
  declare const AnalyticsSemanticFilterSchema: z.ZodObject<{
3063
3099
  dimension: z.ZodString;
3064
3100
  operator: z.ZodEnum<{
@@ -3086,6 +3122,10 @@ declare const AnalyticsSemanticFilterSchema: z.ZodObject<{
3086
3122
  }, z.core.$strict>, z.ZodObject<{
3087
3123
  min: z.ZodOptional<z.ZodNumber>;
3088
3124
  max: z.ZodOptional<z.ZodNumber>;
3125
+ }, z.core.$strict>, z.ZodObject<{
3126
+ type: z.ZodLiteral<"date_range">;
3127
+ start: z.ZodString;
3128
+ end: z.ZodString;
3089
3129
  }, z.core.$strict>]>>;
3090
3130
  }, z.core.$strict>;
3091
3131
  /**
@@ -3288,6 +3328,113 @@ declare const AnalyticsCatalogMetricSchema: z.ZodObject<{
3288
3328
  billing_unit: "billing_unit";
3289
3329
  organization: "organization";
3290
3330
  }>>;
3331
+ numerator_metric: z.ZodOptional<z.ZodString>;
3332
+ denominator_metric: z.ZodOptional<z.ZodString>;
3333
+ derivation: z.ZodOptional<z.ZodObject<{
3334
+ kind: z.ZodEnum<{
3335
+ derived: "derived";
3336
+ observed: "observed";
3337
+ unavailable: "unavailable";
3338
+ }>;
3339
+ input_origin: z.ZodEnum<{
3340
+ none: "none";
3341
+ platform: "platform";
3342
+ customer_authored: "customer_authored";
3343
+ mixed: "mixed";
3344
+ }>;
3345
+ ingested_events: z.ZodArray<z.ZodString>;
3346
+ ingested_datasources: z.ZodOptional<z.ZodArray<z.ZodString>>;
3347
+ carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3348
+ note: z.ZodOptional<z.ZodString>;
3349
+ }, z.core.$strip>>;
3350
+ deprecation: z.ZodOptional<z.ZodObject<{
3351
+ deprecated: z.ZodBoolean;
3352
+ replaced_by: z.ZodOptional<z.ZodString>;
3353
+ }, z.core.$strip>>;
3354
+ }, z.core.$strip>;
3355
+ /**
3356
+ * Validated catalog metric — adds the structural check that ratio
3357
+ * composition refs travel with (and only with) `statistical_type: 'ratio'`:
3358
+ * a ratio metric MUST name both `numerator_metric` and `denominator_metric`,
3359
+ * and any other (or absent) statistical type MUST NOT carry either ref.
3360
+ *
3361
+ * The canonical `AnalyticsCatalogMetricSchema` stays a plain `z.ZodObject`
3362
+ * so OpenAPI / JSON Schema generation keeps working (same split as
3363
+ * `EntitlementRuleValidatedSchema`); use this schema wherever catalog
3364
+ * metrics are authored or generated.
3365
+ */
3366
+ declare const AnalyticsCatalogMetricValidatedSchema: z.ZodObject<{
3367
+ id: z.ZodString;
3368
+ label: z.ZodString;
3369
+ description: z.ZodOptional<z.ZodString>;
3370
+ when_to_use: z.ZodOptional<z.ZodString>;
3371
+ do_not_use_for: z.ZodOptional<z.ZodString>;
3372
+ value_type: z.ZodEnum<{
3373
+ string: "string";
3374
+ number: "number";
3375
+ boolean: "boolean";
3376
+ date: "date";
3377
+ currency: "currency";
3378
+ datetime: "datetime";
3379
+ percent: "percent";
3380
+ }>;
3381
+ format: z.ZodOptional<z.ZodObject<{
3382
+ type: z.ZodEnum<{
3383
+ number: "number";
3384
+ currency: "currency";
3385
+ duration: "duration";
3386
+ percent: "percent";
3387
+ }>;
3388
+ decimals: z.ZodOptional<z.ZodNumber>;
3389
+ compact: z.ZodOptional<z.ZodBoolean>;
3390
+ }, z.core.$strict>>;
3391
+ source_scope: z.ZodOptional<z.ZodEnum<{
3392
+ total: "total";
3393
+ revturbine_tracked: "revturbine_tracked";
3394
+ revturbine_influenced: "revturbine_influenced";
3395
+ }>>;
3396
+ direction: z.ZodOptional<z.ZodEnum<{
3397
+ increase: "increase";
3398
+ decrease: "decrease";
3399
+ neutral: "neutral";
3400
+ }>>;
3401
+ statistical_type: z.ZodOptional<z.ZodEnum<{
3402
+ count: "count";
3403
+ ratio: "ratio";
3404
+ binary: "binary";
3405
+ continuous: "continuous";
3406
+ revenue: "revenue";
3407
+ }>>;
3408
+ aggregation_semantics: z.ZodOptional<z.ZodEnum<{
3409
+ additive: "additive";
3410
+ semi_additive: "semi_additive";
3411
+ non_additive: "non_additive";
3412
+ }>>;
3413
+ preferred_analysis_unit: z.ZodOptional<z.ZodEnum<{
3414
+ account: "account";
3415
+ user: "user";
3416
+ billing_unit: "billing_unit";
3417
+ organization: "organization";
3418
+ }>>;
3419
+ numerator_metric: z.ZodOptional<z.ZodString>;
3420
+ denominator_metric: z.ZodOptional<z.ZodString>;
3421
+ derivation: z.ZodOptional<z.ZodObject<{
3422
+ kind: z.ZodEnum<{
3423
+ derived: "derived";
3424
+ observed: "observed";
3425
+ unavailable: "unavailable";
3426
+ }>;
3427
+ input_origin: z.ZodEnum<{
3428
+ none: "none";
3429
+ platform: "platform";
3430
+ customer_authored: "customer_authored";
3431
+ mixed: "mixed";
3432
+ }>;
3433
+ ingested_events: z.ZodArray<z.ZodString>;
3434
+ ingested_datasources: z.ZodOptional<z.ZodArray<z.ZodString>>;
3435
+ carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3436
+ note: z.ZodOptional<z.ZodString>;
3437
+ }, z.core.$strip>>;
3291
3438
  deprecation: z.ZodOptional<z.ZodObject<{
3292
3439
  deprecated: z.ZodBoolean;
3293
3440
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -3328,6 +3475,16 @@ declare const AnalyticsCatalogConceptSchema: z.ZodObject<{
3328
3475
  revturbine_influenced: "revturbine_influenced";
3329
3476
  }>;
3330
3477
  coverage_metric: z.ZodOptional<z.ZodString>;
3478
+ dimension_groundings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3479
+ kind: z.ZodEnum<{
3480
+ derived: "derived";
3481
+ stamped: "stamped";
3482
+ membership_join: "membership_join";
3483
+ config_join: "config_join";
3484
+ }>;
3485
+ source: z.ZodString;
3486
+ note: z.ZodOptional<z.ZodString>;
3487
+ }, z.core.$strip>>>;
3331
3488
  deprecation: z.ZodOptional<z.ZodObject<{
3332
3489
  deprecated: z.ZodBoolean;
3333
3490
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -3383,6 +3540,10 @@ declare const AnalyticsViewQuerySchema: z.ZodObject<{
3383
3540
  }, z.core.$strict>, z.ZodObject<{
3384
3541
  min: z.ZodOptional<z.ZodNumber>;
3385
3542
  max: z.ZodOptional<z.ZodNumber>;
3543
+ }, z.core.$strict>, z.ZodObject<{
3544
+ type: z.ZodLiteral<"date_range">;
3545
+ start: z.ZodString;
3546
+ end: z.ZodString;
3386
3547
  }, z.core.$strict>]>>;
3387
3548
  }, z.core.$strict>>>;
3388
3549
  compare: z.ZodOptional<z.ZodEnum<{
@@ -3646,6 +3807,10 @@ declare const AnalyticsViewFilterSchema: z.ZodObject<{
3646
3807
  }, z.core.$strict>, z.ZodObject<{
3647
3808
  min: z.ZodOptional<z.ZodNumber>;
3648
3809
  max: z.ZodOptional<z.ZodNumber>;
3810
+ }, z.core.$strict>, z.ZodObject<{
3811
+ type: z.ZodLiteral<"date_range">;
3812
+ start: z.ZodString;
3813
+ end: z.ZodString;
3649
3814
  }, z.core.$strict>]>>;
3650
3815
  required: z.ZodDefault<z.ZodBoolean>;
3651
3816
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -3724,6 +3889,10 @@ declare const AnalyticsViewBlockSchema: z.ZodObject<{
3724
3889
  }, z.core.$strict>, z.ZodObject<{
3725
3890
  min: z.ZodOptional<z.ZodNumber>;
3726
3891
  max: z.ZodOptional<z.ZodNumber>;
3892
+ }, z.core.$strict>, z.ZodObject<{
3893
+ type: z.ZodLiteral<"date_range">;
3894
+ start: z.ZodString;
3895
+ end: z.ZodString;
3727
3896
  }, z.core.$strict>]>>;
3728
3897
  }, z.core.$strict>>>;
3729
3898
  compare: z.ZodOptional<z.ZodEnum<{
@@ -3964,6 +4133,10 @@ declare const AnalyticsViewSchema: z.ZodObject<{
3964
4133
  }, z.core.$strict>, z.ZodObject<{
3965
4134
  min: z.ZodOptional<z.ZodNumber>;
3966
4135
  max: z.ZodOptional<z.ZodNumber>;
4136
+ }, z.core.$strict>, z.ZodObject<{
4137
+ type: z.ZodLiteral<"date_range">;
4138
+ start: z.ZodString;
4139
+ end: z.ZodString;
3967
4140
  }, z.core.$strict>]>>;
3968
4141
  required: z.ZodDefault<z.ZodBoolean>;
3969
4142
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -4042,6 +4215,10 @@ declare const AnalyticsViewSchema: z.ZodObject<{
4042
4215
  }, z.core.$strict>, z.ZodObject<{
4043
4216
  min: z.ZodOptional<z.ZodNumber>;
4044
4217
  max: z.ZodOptional<z.ZodNumber>;
4218
+ }, z.core.$strict>, z.ZodObject<{
4219
+ type: z.ZodLiteral<"date_range">;
4220
+ start: z.ZodString;
4221
+ end: z.ZodString;
4045
4222
  }, z.core.$strict>]>>;
4046
4223
  }, z.core.$strict>>>;
4047
4224
  compare: z.ZodOptional<z.ZodEnum<{
@@ -4257,6 +4434,10 @@ declare const AnalyticsViewFilterDraftSchema: z.ZodObject<{
4257
4434
  }, z.core.$strict>, z.ZodObject<{
4258
4435
  min: z.ZodOptional<z.ZodNumber>;
4259
4436
  max: z.ZodOptional<z.ZodNumber>;
4437
+ }, z.core.$strict>, z.ZodObject<{
4438
+ type: z.ZodLiteral<"date_range">;
4439
+ start: z.ZodString;
4440
+ end: z.ZodString;
4260
4441
  }, z.core.$strict>]>>;
4261
4442
  required: z.ZodOptional<z.ZodBoolean>;
4262
4443
  pinned: z.ZodOptional<z.ZodBoolean>;
@@ -4323,6 +4504,10 @@ declare const AnalyticsViewBlockDraftSchema: z.ZodObject<{
4323
4504
  }, z.core.$strict>, z.ZodObject<{
4324
4505
  min: z.ZodOptional<z.ZodNumber>;
4325
4506
  max: z.ZodOptional<z.ZodNumber>;
4507
+ }, z.core.$strict>, z.ZodObject<{
4508
+ type: z.ZodLiteral<"date_range">;
4509
+ start: z.ZodString;
4510
+ end: z.ZodString;
4326
4511
  }, z.core.$strict>]>>;
4327
4512
  }, z.core.$strict>>>;
4328
4513
  compare: z.ZodOptional<z.ZodEnum<{
@@ -4515,6 +4700,10 @@ declare const AnalyticsViewDraftSchema: z.ZodObject<{
4515
4700
  }, z.core.$strict>, z.ZodObject<{
4516
4701
  min: z.ZodOptional<z.ZodNumber>;
4517
4702
  max: z.ZodOptional<z.ZodNumber>;
4703
+ }, z.core.$strict>, z.ZodObject<{
4704
+ type: z.ZodLiteral<"date_range">;
4705
+ start: z.ZodString;
4706
+ end: z.ZodString;
4518
4707
  }, z.core.$strict>]>>;
4519
4708
  required: z.ZodOptional<z.ZodBoolean>;
4520
4709
  pinned: z.ZodOptional<z.ZodBoolean>;
@@ -4586,6 +4775,10 @@ declare const AnalyticsViewDraftSchema: z.ZodObject<{
4586
4775
  }, z.core.$strict>, z.ZodObject<{
4587
4776
  min: z.ZodOptional<z.ZodNumber>;
4588
4777
  max: z.ZodOptional<z.ZodNumber>;
4778
+ }, z.core.$strict>, z.ZodObject<{
4779
+ type: z.ZodLiteral<"date_range">;
4780
+ start: z.ZodString;
4781
+ end: z.ZodString;
4589
4782
  }, z.core.$strict>]>>;
4590
4783
  }, z.core.$strict>>>;
4591
4784
  compare: z.ZodOptional<z.ZodEnum<{
@@ -4855,6 +5048,10 @@ declare const AnalyticsResultMetaSchema: z.ZodObject<{
4855
5048
  }, z.core.$strict>, z.ZodObject<{
4856
5049
  min: z.ZodOptional<z.ZodNumber>;
4857
5050
  max: z.ZodOptional<z.ZodNumber>;
5051
+ }, z.core.$strict>, z.ZodObject<{
5052
+ type: z.ZodLiteral<"date_range">;
5053
+ start: z.ZodString;
5054
+ end: z.ZodString;
4858
5055
  }, z.core.$strict>]>>;
4859
5056
  }, z.core.$strict>>>;
4860
5057
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -4926,6 +5123,10 @@ declare const AnalyticsResultSchema: z.ZodObject<{
4926
5123
  }, z.core.$strict>, z.ZodObject<{
4927
5124
  min: z.ZodOptional<z.ZodNumber>;
4928
5125
  max: z.ZodOptional<z.ZodNumber>;
5126
+ }, z.core.$strict>, z.ZodObject<{
5127
+ type: z.ZodLiteral<"date_range">;
5128
+ start: z.ZodString;
5129
+ end: z.ZodString;
4929
5130
  }, z.core.$strict>]>>;
4930
5131
  }, z.core.$strict>>>;
4931
5132
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -5042,6 +5243,10 @@ declare const AnalyticsViewRevisionSchema: z.ZodObject<{
5042
5243
  }, z.core.$strict>, z.ZodObject<{
5043
5244
  min: z.ZodOptional<z.ZodNumber>;
5044
5245
  max: z.ZodOptional<z.ZodNumber>;
5246
+ }, z.core.$strict>, z.ZodObject<{
5247
+ type: z.ZodLiteral<"date_range">;
5248
+ start: z.ZodString;
5249
+ end: z.ZodString;
5045
5250
  }, z.core.$strict>]>>;
5046
5251
  required: z.ZodDefault<z.ZodBoolean>;
5047
5252
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -5120,6 +5325,10 @@ declare const AnalyticsViewRevisionSchema: z.ZodObject<{
5120
5325
  }, z.core.$strict>, z.ZodObject<{
5121
5326
  min: z.ZodOptional<z.ZodNumber>;
5122
5327
  max: z.ZodOptional<z.ZodNumber>;
5328
+ }, z.core.$strict>, z.ZodObject<{
5329
+ type: z.ZodLiteral<"date_range">;
5330
+ start: z.ZodString;
5331
+ end: z.ZodString;
5123
5332
  }, z.core.$strict>]>>;
5124
5333
  }, z.core.$strict>>>;
5125
5334
  compare: z.ZodOptional<z.ZodEnum<{
@@ -5400,6 +5609,16 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5400
5609
  revturbine_influenced: "revturbine_influenced";
5401
5610
  }>;
5402
5611
  coverage_metric: z.ZodOptional<z.ZodString>;
5612
+ dimension_groundings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5613
+ kind: z.ZodEnum<{
5614
+ derived: "derived";
5615
+ stamped: "stamped";
5616
+ membership_join: "membership_join";
5617
+ config_join: "config_join";
5618
+ }>;
5619
+ source: z.ZodString;
5620
+ note: z.ZodOptional<z.ZodString>;
5621
+ }, z.core.$strip>>>;
5403
5622
  deprecation: z.ZodOptional<z.ZodObject<{
5404
5623
  deprecated: z.ZodBoolean;
5405
5624
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -5522,6 +5741,25 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5522
5741
  billing_unit: "billing_unit";
5523
5742
  organization: "organization";
5524
5743
  }>>;
5744
+ numerator_metric: z.ZodOptional<z.ZodString>;
5745
+ denominator_metric: z.ZodOptional<z.ZodString>;
5746
+ derivation: z.ZodOptional<z.ZodObject<{
5747
+ kind: z.ZodEnum<{
5748
+ derived: "derived";
5749
+ observed: "observed";
5750
+ unavailable: "unavailable";
5751
+ }>;
5752
+ input_origin: z.ZodEnum<{
5753
+ none: "none";
5754
+ platform: "platform";
5755
+ customer_authored: "customer_authored";
5756
+ mixed: "mixed";
5757
+ }>;
5758
+ ingested_events: z.ZodArray<z.ZodString>;
5759
+ ingested_datasources: z.ZodOptional<z.ZodArray<z.ZodString>>;
5760
+ carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
5761
+ note: z.ZodOptional<z.ZodString>;
5762
+ }, z.core.$strip>>;
5525
5763
  deprecation: z.ZodOptional<z.ZodObject<{
5526
5764
  deprecated: z.ZodBoolean;
5527
5765
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -5883,6 +6121,33 @@ interface AnalyticsCatalogView {
5883
6121
  metricsFor(conceptId: string): AnalyticsCatalogMetric$1[];
5884
6122
  /** The annotation-kind vocabulary this catalog carries, sorted by kind. */
5885
6123
  listAnnotationKinds(): AnalyticsCatalogAnnotationKind$1[];
6124
+ /**
6125
+ * The derived data products one INGESTED EVENT feeds, sorted by metric id.
6126
+ *
6127
+ * The question this answers is the one nobody could answer before: "a tenant
6128
+ * emits `gate_evaluated` — what lights up?" and, read backwards, "this chart
6129
+ * is empty, which event is missing?" Pass a platform event name from the
6130
+ * taxonomy or a datasource name; both sides of a metric's declared inputs
6131
+ * are indexed.
6132
+ */
6133
+ metricsFromIngestedSource(sourceName: string): AnalyticsCatalogMetric$1[];
6134
+ /**
6135
+ * Every ingested event and datasource the catalog reads, sorted. The set of
6136
+ * inputs the product depends on — useful for asking what a new tenant must
6137
+ * emit before its analytics are populated.
6138
+ */
6139
+ listIngestedSources(): string[];
6140
+ /**
6141
+ * The metrics one Tinybird pipe carries, sorted by metric id (plan 228
6142
+ * TASK-3). "Carries" is pipe-allowlist truth — the pipe accepts and serves
6143
+ * the metric id — not a claim that rows exist for it (a carried metric with
6144
+ * derivation.kind='unavailable' is exactly the carried-but-dark state the
6145
+ * register surfaces). This is the read the web execution layer derives its
6146
+ * pipe allowlists from, replacing hand-maintained Record maps.
6147
+ */
6148
+ metricsForPipe(pipeName: string): AnalyticsCatalogMetric$1[];
6149
+ /** Every pipe name any metric declares carriage on, sorted. */
6150
+ listCarryingPipes(): string[];
5886
6151
  }
5887
6152
  declare function createInMemoryAnalyticsCatalog(data: unknown): AnalyticsCatalogView;
5888
6153
  /**
@@ -6050,6 +6315,10 @@ declare const AnalyticsFilterStateSchema: z.ZodObject<{
6050
6315
  }, z.core.$strict>, z.ZodObject<{
6051
6316
  min: z.ZodOptional<z.ZodNumber>;
6052
6317
  max: z.ZodOptional<z.ZodNumber>;
6318
+ }, z.core.$strict>, z.ZodObject<{
6319
+ type: z.ZodLiteral<"date_range">;
6320
+ start: z.ZodString;
6321
+ end: z.ZodString;
6053
6322
  }, z.core.$strict>]>>;
6054
6323
  }, z.core.$strict>;
6055
6324
  /**
@@ -6136,6 +6405,10 @@ declare const AnalyticsQueryRequestSchema: z.ZodObject<{
6136
6405
  }, z.core.$strict>, z.ZodObject<{
6137
6406
  min: z.ZodOptional<z.ZodNumber>;
6138
6407
  max: z.ZodOptional<z.ZodNumber>;
6408
+ }, z.core.$strict>, z.ZodObject<{
6409
+ type: z.ZodLiteral<"date_range">;
6410
+ start: z.ZodString;
6411
+ end: z.ZodString;
6139
6412
  }, z.core.$strict>]>>;
6140
6413
  }, z.core.$strict>>>;
6141
6414
  overrides: z.ZodOptional<z.ZodObject<{
@@ -6259,6 +6532,10 @@ declare const AnalyticsBlockResultSchema: z.ZodObject<{
6259
6532
  }, z.core.$strict>, z.ZodObject<{
6260
6533
  min: z.ZodOptional<z.ZodNumber>;
6261
6534
  max: z.ZodOptional<z.ZodNumber>;
6535
+ }, z.core.$strict>, z.ZodObject<{
6536
+ type: z.ZodLiteral<"date_range">;
6537
+ start: z.ZodString;
6538
+ end: z.ZodString;
6262
6539
  }, z.core.$strict>]>>;
6263
6540
  }, z.core.$strict>>>;
6264
6541
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -6338,6 +6615,10 @@ declare const AnalyticsQueryResponseSchema: z.ZodObject<{
6338
6615
  }, z.core.$strict>, z.ZodObject<{
6339
6616
  min: z.ZodOptional<z.ZodNumber>;
6340
6617
  max: z.ZodOptional<z.ZodNumber>;
6618
+ }, z.core.$strict>, z.ZodObject<{
6619
+ type: z.ZodLiteral<"date_range">;
6620
+ start: z.ZodString;
6621
+ end: z.ZodString;
6341
6622
  }, z.core.$strict>]>>;
6342
6623
  }, z.core.$strict>>>;
6343
6624
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -6423,9 +6704,9 @@ declare const GrowthSignalSeriesSchema: z.ZodObject<{
6423
6704
  /** Normalized output of a GrowthSignalProvider. */
6424
6705
  declare const GrowthSignalBundleSchema: z.ZodObject<{
6425
6706
  availability: z.ZodEnum<{
6707
+ unavailable: "unavailable";
6426
6708
  available: "available";
6427
6709
  stale: "stale";
6428
- unavailable: "unavailable";
6429
6710
  unsupported: "unsupported";
6430
6711
  partial: "partial";
6431
6712
  }>;
@@ -6583,20 +6864,20 @@ declare const OpportunityCandidateSchema: z.ZodObject<{
6583
6864
 
6584
6865
  declare const EventSourceSchema: z.ZodEnum<{
6585
6866
  system: "system";
6867
+ workflow: "workflow";
6586
6868
  clickstream: "clickstream";
6587
6869
  telemetry: "telemetry";
6588
6870
  sdk: "sdk";
6589
- workflow: "workflow";
6590
6871
  }>;
6591
6872
  declare const EventEnvelopeSchema: z.ZodObject<{
6592
6873
  id: z.ZodString;
6593
6874
  event_type: z.ZodString;
6594
6875
  source: z.ZodDefault<z.ZodEnum<{
6595
6876
  system: "system";
6877
+ workflow: "workflow";
6596
6878
  clickstream: "clickstream";
6597
6879
  telemetry: "telemetry";
6598
6880
  sdk: "sdk";
6599
- workflow: "workflow";
6600
6881
  }>>;
6601
6882
  tenant_id: z.ZodOptional<z.ZodString>;
6602
6883
  user_id: z.ZodOptional<z.ZodString>;
@@ -6611,10 +6892,10 @@ declare const IngestedEventSchema: z.ZodObject<{
6611
6892
  event_type: z.ZodString;
6612
6893
  source: z.ZodDefault<z.ZodEnum<{
6613
6894
  system: "system";
6895
+ workflow: "workflow";
6614
6896
  clickstream: "clickstream";
6615
6897
  telemetry: "telemetry";
6616
6898
  sdk: "sdk";
6617
- workflow: "workflow";
6618
6899
  }>>;
6619
6900
  tenant_id: z.ZodOptional<z.ZodString>;
6620
6901
  user_id: z.ZodOptional<z.ZodString>;
@@ -6669,12 +6950,102 @@ declare const TreatmentInteractionInputSchema: z.ZodObject<{
6669
6950
  test: z.ZodOptional<z.ZodBoolean>;
6670
6951
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6671
6952
  }, z.core.$strip>;
6953
+ /**
6954
+ * Batch ceiling for `/api/events/interactions`, mirroring the clickstream
6955
+ * batch bound so both ingest surfaces refuse at the same size.
6956
+ */
6957
+ declare const MAX_TREATMENT_INTERACTIONS_PER_BATCH = 500;
6958
+ /**
6959
+ * The array wire shape for treatment interactions.
6960
+ *
6961
+ * The SDK's `flushInteractionQueue` sends a bare {@link TreatmentInteractionInputSchema}
6962
+ * when one interaction is queued and this array when two or more are. Only the
6963
+ * bare shape was ever declared, so the route parsed only that — every
6964
+ * multi-item flush 422'd and its interactions were lost (plan 232). Declaring
6965
+ * the array here makes the batch bound and the item shape one definition that
6966
+ * the route and the SDK both consume, so the two cannot drift apart silently
6967
+ * again; a wire-contract test asserts the exact bodies the SDK builds parse
6968
+ * against {@link TreatmentInteractionRequestSchema}.
6969
+ */
6970
+ declare const TreatmentInteractionBatchSchema: z.ZodArray<z.ZodObject<{
6971
+ user_id: z.ZodString;
6972
+ placement_id: z.ZodString;
6973
+ treatment_id: z.ZodOptional<z.ZodString>;
6974
+ surface_slot_id: z.ZodOptional<z.ZodString>;
6975
+ surface_template_id: z.ZodOptional<z.ZodString>;
6976
+ payload_id: z.ZodOptional<z.ZodString>;
6977
+ interaction_type: z.ZodEnum<{
6978
+ dismiss: "dismiss";
6979
+ impression: "impression";
6980
+ remind_me_later: "remind_me_later";
6981
+ cta_clicked: "cta_clicked";
6982
+ cta_completed: "cta_completed";
6983
+ suppress: "suppress";
6984
+ }>;
6985
+ interaction_at: z.ZodOptional<z.ZodString>;
6986
+ message_block_handle: z.ZodOptional<z.ZodString>;
6987
+ message_block_id: z.ZodOptional<z.ZodString>;
6988
+ experiment_id: z.ZodOptional<z.ZodString>;
6989
+ variant_key: z.ZodOptional<z.ZodString>;
6990
+ test: z.ZodOptional<z.ZodBoolean>;
6991
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6992
+ }, z.core.$strip>>;
6993
+ /**
6994
+ * Either wire shape, as the route accepts them. This is what the OpenAPI
6995
+ * request body declares, so a generated client can send either without
6996
+ * reaching past the contract.
6997
+ */
6998
+ declare const TreatmentInteractionRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
6999
+ user_id: z.ZodString;
7000
+ placement_id: z.ZodString;
7001
+ treatment_id: z.ZodOptional<z.ZodString>;
7002
+ surface_slot_id: z.ZodOptional<z.ZodString>;
7003
+ surface_template_id: z.ZodOptional<z.ZodString>;
7004
+ payload_id: z.ZodOptional<z.ZodString>;
7005
+ interaction_type: z.ZodEnum<{
7006
+ dismiss: "dismiss";
7007
+ impression: "impression";
7008
+ remind_me_later: "remind_me_later";
7009
+ cta_clicked: "cta_clicked";
7010
+ cta_completed: "cta_completed";
7011
+ suppress: "suppress";
7012
+ }>;
7013
+ interaction_at: z.ZodOptional<z.ZodString>;
7014
+ message_block_handle: z.ZodOptional<z.ZodString>;
7015
+ message_block_id: z.ZodOptional<z.ZodString>;
7016
+ experiment_id: z.ZodOptional<z.ZodString>;
7017
+ variant_key: z.ZodOptional<z.ZodString>;
7018
+ test: z.ZodOptional<z.ZodBoolean>;
7019
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7020
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
7021
+ user_id: z.ZodString;
7022
+ placement_id: z.ZodString;
7023
+ treatment_id: z.ZodOptional<z.ZodString>;
7024
+ surface_slot_id: z.ZodOptional<z.ZodString>;
7025
+ surface_template_id: z.ZodOptional<z.ZodString>;
7026
+ payload_id: z.ZodOptional<z.ZodString>;
7027
+ interaction_type: z.ZodEnum<{
7028
+ dismiss: "dismiss";
7029
+ impression: "impression";
7030
+ remind_me_later: "remind_me_later";
7031
+ cta_clicked: "cta_clicked";
7032
+ cta_completed: "cta_completed";
7033
+ suppress: "suppress";
7034
+ }>;
7035
+ interaction_at: z.ZodOptional<z.ZodString>;
7036
+ message_block_handle: z.ZodOptional<z.ZodString>;
7037
+ message_block_id: z.ZodOptional<z.ZodString>;
7038
+ experiment_id: z.ZodOptional<z.ZodString>;
7039
+ variant_key: z.ZodOptional<z.ZodString>;
7040
+ test: z.ZodOptional<z.ZodBoolean>;
7041
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7042
+ }, z.core.$strip>>]>;
6672
7043
  declare const TriggerEventTypeSchema: z.ZodEnum<{
6673
7044
  payment_failed: "payment_failed";
6674
7045
  feature_gated: "feature_gated";
7046
+ trial_expired: "trial_expired";
6675
7047
  trial_midpoint: "trial_midpoint";
6676
7048
  trial_expiring: "trial_expiring";
6677
- trial_expired: "trial_expired";
6678
7049
  usage_limit_approaching: "usage_limit_approaching";
6679
7050
  usage_limit_reached: "usage_limit_reached";
6680
7051
  credit_balance_low: "credit_balance_low";
@@ -6721,17 +7092,17 @@ declare const ControlPlaneEventTypeSchema: z.ZodEnum<{
6721
7092
  cli_signed_up: "cli_signed_up";
6722
7093
  cli_signed_in: "cli_signed_in";
6723
7094
  cli_command_executed: "cli_command_executed";
6724
- changeset_submitted: "changeset_submitted";
6725
- changeset_approved: "changeset_approved";
6726
- changeset_rejected: "changeset_rejected";
6727
- changeset_deployed: "changeset_deployed";
6728
- changeset_launched: "changeset_launched";
6729
- changeset_parked: "changeset_parked";
6730
- changeset_resumed: "changeset_resumed";
6731
- changeset_discarded: "changeset_discarded";
6732
- changeset_archived: "changeset_archived";
6733
- config_imported: "config_imported";
6734
- config_exported: "config_exported";
7095
+ playbook_version_submitted: "playbook_version_submitted";
7096
+ playbook_version_approved: "playbook_version_approved";
7097
+ playbook_version_rejected: "playbook_version_rejected";
7098
+ playbook_version_deployed: "playbook_version_deployed";
7099
+ playbook_version_launched: "playbook_version_launched";
7100
+ playbook_version_parked: "playbook_version_parked";
7101
+ playbook_version_resumed: "playbook_version_resumed";
7102
+ playbook_version_discarded: "playbook_version_discarded";
7103
+ playbook_version_archived: "playbook_version_archived";
7104
+ playbook_imported: "playbook_imported";
7105
+ playbook_exported: "playbook_exported";
6735
7106
  entity_created: "entity_created";
6736
7107
  entity_updated: "entity_updated";
6737
7108
  entity_deleted: "entity_deleted";
@@ -6744,17 +7115,17 @@ declare const ControlPlaneSemanticEventSchema: z.ZodObject<{
6744
7115
  cli_signed_up: "cli_signed_up";
6745
7116
  cli_signed_in: "cli_signed_in";
6746
7117
  cli_command_executed: "cli_command_executed";
6747
- changeset_submitted: "changeset_submitted";
6748
- changeset_approved: "changeset_approved";
6749
- changeset_rejected: "changeset_rejected";
6750
- changeset_deployed: "changeset_deployed";
6751
- changeset_launched: "changeset_launched";
6752
- changeset_parked: "changeset_parked";
6753
- changeset_resumed: "changeset_resumed";
6754
- changeset_discarded: "changeset_discarded";
6755
- changeset_archived: "changeset_archived";
6756
- config_imported: "config_imported";
6757
- config_exported: "config_exported";
7118
+ playbook_version_submitted: "playbook_version_submitted";
7119
+ playbook_version_approved: "playbook_version_approved";
7120
+ playbook_version_rejected: "playbook_version_rejected";
7121
+ playbook_version_deployed: "playbook_version_deployed";
7122
+ playbook_version_launched: "playbook_version_launched";
7123
+ playbook_version_parked: "playbook_version_parked";
7124
+ playbook_version_resumed: "playbook_version_resumed";
7125
+ playbook_version_discarded: "playbook_version_discarded";
7126
+ playbook_version_archived: "playbook_version_archived";
7127
+ playbook_imported: "playbook_imported";
7128
+ playbook_exported: "playbook_exported";
6758
7129
  entity_created: "entity_created";
6759
7130
  entity_updated: "entity_updated";
6760
7131
  entity_deleted: "entity_deleted";
@@ -6770,10 +7141,10 @@ declare const EventSearchParamsSchema: z.ZodObject<{
6770
7141
  q: z.ZodOptional<z.ZodString>;
6771
7142
  source: z.ZodOptional<z.ZodEnum<{
6772
7143
  system: "system";
7144
+ workflow: "workflow";
6773
7145
  clickstream: "clickstream";
6774
7146
  telemetry: "telemetry";
6775
7147
  sdk: "sdk";
6776
- workflow: "workflow";
6777
7148
  }>>;
6778
7149
  event_type: z.ZodOptional<z.ZodString>;
6779
7150
  from: z.ZodOptional<z.ZodString>;
@@ -6828,9 +7199,9 @@ declare const TrackEventSchema: z.ZodObject<{
6828
7199
  tenant_id: z.ZodOptional<z.ZodString>;
6829
7200
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6830
7201
  origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7202
+ derived: "derived";
6831
7203
  explicit: "explicit";
6832
7204
  automatic: "automatic";
6833
- derived: "derived";
6834
7205
  raw: "raw";
6835
7206
  }>>>;
6836
7207
  playbook_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6854,9 +7225,9 @@ declare const TrackIngestBatchSchema: z.ZodObject<{
6854
7225
  tenant_id: z.ZodOptional<z.ZodString>;
6855
7226
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6856
7227
  origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7228
+ derived: "derived";
6857
7229
  explicit: "explicit";
6858
7230
  automatic: "automatic";
6859
- derived: "derived";
6860
7231
  raw: "raw";
6861
7232
  }>>>;
6862
7233
  playbook_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7057,16 +7428,24 @@ declare const EventTaxonomySchema: z.ZodObject<{
7057
7428
  * Control-plane events, emitted by revturbine-web itself (plan 112).
7058
7429
  * `source` (system vs workflow) is a separate axis carried on the event.
7059
7430
  */
7060
- declare const CONTROL_PLANE_EVENT_NAMES: readonly ["web_signed_up", "web_signed_in", "cli_signed_up", "cli_signed_in", "cli_command_executed", "changeset_submitted", "changeset_approved", "changeset_rejected", "changeset_deployed", "changeset_launched", "changeset_parked", "changeset_resumed", "changeset_discarded", "changeset_archived", "config_imported", "config_exported", "entity_created", "entity_updated", "entity_deleted", "web_api_error"];
7431
+ declare const CONTROL_PLANE_EVENT_NAMES: readonly ["web_signed_up", "web_signed_in", "cli_signed_up", "cli_signed_in", "cli_command_executed", "playbook_version_submitted", "playbook_version_approved", "playbook_version_rejected", "playbook_version_deployed", "playbook_version_launched", "playbook_version_parked", "playbook_version_resumed", "playbook_version_discarded", "playbook_version_archived", "playbook_imported", "playbook_exported", "entity_created", "entity_updated", "entity_deleted", "web_api_error"];
7061
7432
  /**
7062
7433
  * SDK-automatic client events with fixed names. Prefix-family members
7063
7434
  * (`engagement_*`) are NOT listed here — see {@link EVENT_PREFIX_FAMILIES}.
7064
7435
  */
7065
- declare const SDK_CLIENT_EVENT_NAMES: readonly ["placement_resolved", "placement_rendered", "placement_exposed", "placement_outcome", "placement_interaction", "gate_evaluated", "gate_attempted", "gate_allowed", "gate_denied", "slot_evaluated", "slot_filled", "slot_empty", "slot_suppressed", "slot_error", "segment_enrolled", "segment_unenrolled", "user_context_observed", "page_view"];
7436
+ declare const SDK_CLIENT_EVENT_NAMES: readonly ["placement_resolved", "placement_rendered", "placement_exposed", "placement_outcome", "placement_interaction", "gate_evaluated", "gate_attempted", "gate_allowed", "gate_denied", "slot_evaluated", "slot_filled", "slot_empty", "slot_suppressed", "slot_error", "segment_enrolled", "segment_unenrolled", "experiment_assigned", "user_context_observed", "clickstream_page_view", "account_created", "user_signed_up", "onboarding_completed", "account_activated", "product_used", "value_realized", "usage_recorded", "plan_viewed", "promotion_applied", "promotion_converted"];
7066
7437
  /**
7067
7438
  * Anonymous SDK telemetry on the keyless meta lane (plan 95/144). These carry
7068
7439
  * no tenant and no user context, so they are `internal` by construction.
7069
7440
  */
7441
+ /**
7442
+ * Server-produced derived observations (plan 228 TASK-2 audit). Not emitted by
7443
+ * the client SDK — written by producers that aggregate facts into windowed
7444
+ * metric observations (today: the Growth Lab loader; tomorrow: any in-engine
7445
+ * aggregator). Declared so the parity scan and every reader can SEE the name;
7446
+ * excluded from the sdk_client emit-parity direction by surface.
7447
+ */
7448
+ declare const SDK_SERVER_EVENT_NAMES: readonly ["growth_signal_observed"];
7070
7449
  declare const SDK_META_EVENT_NAMES: readonly ["sdk_init", "sdk_error", "sdk_validation_warning", "resolution_failure"];
7071
7450
  /**
7072
7451
  * Product signals revturbine-web emits about ITSELF, through the customer
@@ -7082,14 +7461,32 @@ declare const SDK_META_EVENT_NAMES: readonly ["sdk_init", "sdk_error", "sdk_vali
7082
7461
  * from `ControlPlaneEventType`; a name on both lanes double-counts one
7083
7462
  * operator action.
7084
7463
  *
7085
- * They are `control_plane` by SURFACE — they originate in revturbine-web — and
7086
- * so are excluded from the SDK's two-directional parity scan, which is scoped
7087
- * to `sdk_client`. That is correct: no SDK emit site produces them, and
7088
- * declaring them as SDK-emitted would manufacture exactly the
7089
- * declared-but-never-emitted defect that scan exists to catch.
7464
+ * SURFACE (plan 228 TASK-5 dogfood ruling): `sdk_client`, reclassified from
7465
+ * `control_plane`. These are generic product-usage telemetry any tenant's
7466
+ * app could legitimately report about itself through the SDK's typed emit
7467
+ * surface — "RevTurbine's own vocabulary" was never load-bearing for them,
7468
+ * unlike the CP proper (auth, playbook-version lifecycle, entity CRUD),
7469
+ * which stays structurally unforgeable. revturbine-web swaps its `track()`
7470
+ * call sites to `emitPlatformEvent` at its next SDK pin bump; until then
7471
+ * its emissions ride the generic lane of a pre-namespacing SDK and land
7472
+ * raw, exactly as before.
7090
7473
  */
7091
7474
  declare const DOGFOOD_CLIENT_EVENT_NAMES: readonly ["area_viewed", "feature_gated"];
7092
- type EventName = (typeof CONTROL_PLANE_EVENT_NAMES)[number] | (typeof DOGFOOD_CLIENT_EVENT_NAMES)[number] | (typeof SDK_CLIENT_EVENT_NAMES)[number] | (typeof SDK_META_EVENT_NAMES)[number];
7475
+ /**
7476
+ * Billing lifecycle events (plan 228 R-2). Dual-source BY CONTRACT: the Stripe
7477
+ * webhook processor translates `stripe_event_type` onto these names, AND the
7478
+ * SDK exposes a typed emit path for each under the same payload schema — so a
7479
+ * tenant on a different biller (or none) produces identical facts. The surface
7480
+ * is `webhook_derived` because that is the historically-primary producer; it
7481
+ * does NOT mean webhook-only, and the emit↔taxonomy parity scan includes these
7482
+ * on the SDK side.
7483
+ *
7484
+ * Every payload carries `billing_ref` — the producer-minted idempotency key
7485
+ * that makes a Stripe delivery and an SDK emission of the same commercial fact
7486
+ * collapse to one row (the identity key, consumed by datasource derivation).
7487
+ */
7488
+ declare const WEBHOOK_DERIVED_EVENT_NAMES: readonly ["subscription_started", "subscription_renewed", "subscription_expanded", "subscription_canceled", "trial_started", "trial_converted", "trial_expired", "payment_succeeded", "payment_failed"];
7489
+ type EventName = (typeof CONTROL_PLANE_EVENT_NAMES)[number] | (typeof DOGFOOD_CLIENT_EVENT_NAMES)[number] | (typeof SDK_CLIENT_EVENT_NAMES)[number] | (typeof SDK_SERVER_EVENT_NAMES)[number] | (typeof SDK_META_EVENT_NAMES)[number] | (typeof WEBHOOK_DERIVED_EVENT_NAMES)[number];
7093
7490
  /**
7094
7491
  * Names the SDK classifies as platform-automatic for ORIGIN tagging without
7095
7492
  * emitting them itself. `impression` is the clearest case: it is an
@@ -7131,9 +7528,744 @@ declare const PLATFORM_EVENT_TAXONOMY: {
7131
7528
  };
7132
7529
  /** Every platform-emitted event name, for the cross-repo parity assertion. */
7133
7530
  declare const PLATFORM_EMITTED_EVENT_NAMES: readonly string[];
7531
+ /**
7532
+ * Namespace a customer-supplied event name that collides with platform
7533
+ * vocabulary (plan 228 TASK-4). The generic `track()` lane — SDK and
7534
+ * `/api/track` ingest alike — runs every ALREADY-NORMALIZED name through
7535
+ * this, so platform events are unforgeable from the untyped path: a
7536
+ * customer's `track('gate_attempted')` lands as `clickstream_gate_attempted`
7537
+ * while the typed emit surface sends `gate_attempted` raw.
7538
+ *
7539
+ * Derived from the taxonomy, not a hardcoded switch, so a name added to the
7540
+ * taxonomy is protected the moment it exists. Names already carrying the
7541
+ * `clickstream_` namespace pass through — `clickstream_page_view` IS the
7542
+ * platform name for the generic page-view alias (wire truth), and the guard
7543
+ * also makes the function idempotent.
7544
+ */
7545
+ declare function namespacePlatformCollision(normalizedName: string): string;
7134
7546
  /** Names exempt from the declared-but-never-emitted parity direction. */
7135
7547
  declare const DEPRECATED_EVENT_NAMES: readonly string[];
7136
7548
 
7549
+ /**
7550
+ * Per-event payload contracts (plan 228 REQ-1) — one Zod schema for EVERY
7551
+ * taxonomy event, plus the identity key that makes two emissions the same
7552
+ * fact.
7553
+ *
7554
+ * Before this file, event NAMES were declared (plan 181) but payloads were
7555
+ * untyped bags: `EventEnvelopeSchema.payload` is `z.record(z.string(),
7556
+ * z.unknown())`, and each contract lived only in the body of its emit site.
7557
+ * That is how R-10 shipped — `emitGateEvaluated`'s property set existed
7558
+ * nowhere a validator, a reader, or a simulator could check against, so a
7559
+ * double-wrapped payload validated fine and read as empty everywhere.
7560
+ *
7561
+ * Every schema below is transcribed from a VERIFIED producer, not designed at
7562
+ * a desk: the control-plane shapes from revturbine-web's `emitControlPlaneEvent`
7563
+ * call sites, the SDK client shapes from `web-sdk/customer-side.ts` +
7564
+ * `controllers.ts` emit sites, the meta-lane shapes from the
7565
+ * `events_sdk_meta` / `events_sdk_diagnostics` datasource columns they land
7566
+ * in. The billing band (plan 228 R-2) is the one designed-first set — it is
7567
+ * NEW vocabulary, dual-source by contract (Stripe webhook processor and typed
7568
+ * SDK emit share these schemas), and its fields exist to ground the catalog
7569
+ * dimensions REQ-11 names (`commercial.plan`, `commercial.billing_period`,
7570
+ * `trial.rule`).
7571
+ *
7572
+ * Three deliberate contract decisions:
7573
+ *
7574
+ * - **Loose objects.** REQ-9's evolution policy is additive-only, and its
7575
+ * reader half is that a validator built against schema rev N accepts a
7576
+ * payload from rev N+1. `z.looseObject` preserves unknown keys instead of
7577
+ * stripping or rejecting them — an old ingest never mangles a newer
7578
+ * producer's additive field.
7579
+ * - **Identity keys are part of the contract.** `identity` names the payload
7580
+ * fields that make two emissions the same fact; `'event_id'` means the
7581
+ * envelope-level id is the only identity (the common case for telemetry).
7582
+ * Datasource sorting keys and dedup discriminators DERIVE from this
7583
+ * (REQ-4) — the `experiment_assignments` partition-key near-miss is why
7584
+ * keys are declared here rather than chosen per datasource.
7585
+ * - **Classification rides every field** (house `DataClassification` meta),
7586
+ * so PII handling derives from the contract; `pii-redact` remains
7587
+ * defense-in-depth, not the source of truth.
7588
+ */
7589
+
7590
+ type PlatformEventName = (typeof CONTROL_PLANE_EVENT_NAMES)[number] | (typeof DOGFOOD_CLIENT_EVENT_NAMES)[number] | (typeof SDK_CLIENT_EVENT_NAMES)[number] | (typeof SDK_SERVER_EVENT_NAMES)[number] | (typeof SDK_META_EVENT_NAMES)[number] | (typeof WEBHOOK_DERIVED_EVENT_NAMES)[number];
7591
+ interface EventPayloadContract {
7592
+ /** The payload's Zod schema — loose, additive-tolerant (REQ-9). */
7593
+ schema: z.ZodType;
7594
+ /**
7595
+ * Payload fields that make two emissions the same fact. `['event_id']`
7596
+ * means the envelope id is the only identity (plain telemetry). Datasource
7597
+ * sorting keys and dedup discriminators derive from this (REQ-4).
7598
+ */
7599
+ identity: readonly string[];
7600
+ }
7601
+ /**
7602
+ * Total over every taxonomy name — adding an event in `taxonomy.ts` without a
7603
+ * payload contract here is a COMPILE error, and the parity test holds the
7604
+ * reverse direction.
7605
+ *
7606
+ * Declared with `satisfies` rather than an annotation so each entry keeps its
7607
+ * SPECIFIC schema type: `EventPayloadInput<'gate_evaluated'>` resolves to the
7608
+ * gate payload's input shape, which is what the SDK's typed emit surface
7609
+ * infers its per-event parameter types from (plan 228 TASK-4).
7610
+ */
7611
+ declare const EVENT_PAYLOAD_CONTRACTS: {
7612
+ readonly web_signed_up: {
7613
+ readonly schema: z.ZodObject<{
7614
+ control_plane_source: z.ZodEnum<{
7615
+ system: "system";
7616
+ workflow: "workflow";
7617
+ }>;
7618
+ }, z.core.$loose>;
7619
+ readonly identity: readonly ["event_id"];
7620
+ };
7621
+ readonly web_signed_in: {
7622
+ readonly schema: z.ZodObject<{
7623
+ control_plane_source: z.ZodEnum<{
7624
+ system: "system";
7625
+ workflow: "workflow";
7626
+ }>;
7627
+ }, z.core.$loose>;
7628
+ readonly identity: readonly ["event_id"];
7629
+ };
7630
+ readonly cli_signed_up: {
7631
+ readonly schema: z.ZodObject<{
7632
+ control_plane_source: z.ZodEnum<{
7633
+ system: "system";
7634
+ workflow: "workflow";
7635
+ }>;
7636
+ }, z.core.$loose>;
7637
+ readonly identity: readonly ["event_id"];
7638
+ };
7639
+ readonly cli_signed_in: {
7640
+ readonly schema: z.ZodObject<{
7641
+ control_plane_source: z.ZodEnum<{
7642
+ system: "system";
7643
+ workflow: "workflow";
7644
+ }>;
7645
+ }, z.core.$loose>;
7646
+ readonly identity: readonly ["event_id"];
7647
+ };
7648
+ readonly cli_command_executed: {
7649
+ readonly schema: z.ZodObject<{
7650
+ command: z.ZodString;
7651
+ control_plane_source: z.ZodEnum<{
7652
+ system: "system";
7653
+ workflow: "workflow";
7654
+ }>;
7655
+ }, z.core.$loose>;
7656
+ readonly identity: readonly ["event_id"];
7657
+ };
7658
+ readonly playbook_version_submitted: {
7659
+ readonly schema: z.ZodObject<{
7660
+ playbook_version_id: z.ZodString;
7661
+ control_plane_source: z.ZodEnum<{
7662
+ system: "system";
7663
+ workflow: "workflow";
7664
+ }>;
7665
+ }, z.core.$loose>;
7666
+ readonly identity: readonly ["event_id"];
7667
+ };
7668
+ readonly playbook_version_approved: {
7669
+ readonly schema: z.ZodObject<{
7670
+ playbook_version_id: z.ZodString;
7671
+ control_plane_source: z.ZodEnum<{
7672
+ system: "system";
7673
+ workflow: "workflow";
7674
+ }>;
7675
+ }, z.core.$loose>;
7676
+ readonly identity: readonly ["event_id"];
7677
+ };
7678
+ readonly playbook_version_rejected: {
7679
+ readonly schema: z.ZodObject<{
7680
+ playbook_version_id: z.ZodString;
7681
+ control_plane_source: z.ZodEnum<{
7682
+ system: "system";
7683
+ workflow: "workflow";
7684
+ }>;
7685
+ }, z.core.$loose>;
7686
+ readonly identity: readonly ["event_id"];
7687
+ };
7688
+ readonly playbook_version_deployed: {
7689
+ readonly schema: z.ZodObject<{
7690
+ playbook_version_id: z.ZodString;
7691
+ control_plane_source: z.ZodEnum<{
7692
+ system: "system";
7693
+ workflow: "workflow";
7694
+ }>;
7695
+ }, z.core.$loose>;
7696
+ readonly identity: readonly ["event_id"];
7697
+ };
7698
+ readonly playbook_version_launched: {
7699
+ readonly schema: z.ZodObject<{
7700
+ playbook_version_id: z.ZodString;
7701
+ control_plane_source: z.ZodEnum<{
7702
+ system: "system";
7703
+ workflow: "workflow";
7704
+ }>;
7705
+ }, z.core.$loose>;
7706
+ readonly identity: readonly ["event_id"];
7707
+ };
7708
+ readonly playbook_version_parked: {
7709
+ readonly schema: z.ZodObject<{
7710
+ playbook_version_id: z.ZodString;
7711
+ control_plane_source: z.ZodEnum<{
7712
+ system: "system";
7713
+ workflow: "workflow";
7714
+ }>;
7715
+ }, z.core.$loose>;
7716
+ readonly identity: readonly ["event_id"];
7717
+ };
7718
+ readonly playbook_version_resumed: {
7719
+ readonly schema: z.ZodObject<{
7720
+ playbook_version_id: z.ZodString;
7721
+ control_plane_source: z.ZodEnum<{
7722
+ system: "system";
7723
+ workflow: "workflow";
7724
+ }>;
7725
+ }, z.core.$loose>;
7726
+ readonly identity: readonly ["event_id"];
7727
+ };
7728
+ readonly playbook_version_discarded: {
7729
+ readonly schema: z.ZodObject<{
7730
+ playbook_version_id: z.ZodString;
7731
+ control_plane_source: z.ZodEnum<{
7732
+ system: "system";
7733
+ workflow: "workflow";
7734
+ }>;
7735
+ }, z.core.$loose>;
7736
+ readonly identity: readonly ["event_id"];
7737
+ };
7738
+ readonly playbook_version_archived: {
7739
+ readonly schema: z.ZodObject<{
7740
+ playbook_version_id: z.ZodString;
7741
+ control_plane_source: z.ZodEnum<{
7742
+ system: "system";
7743
+ workflow: "workflow";
7744
+ }>;
7745
+ }, z.core.$loose>;
7746
+ readonly identity: readonly ["event_id"];
7747
+ };
7748
+ readonly playbook_imported: {
7749
+ readonly schema: z.ZodObject<{
7750
+ playbook_version_id: z.ZodString;
7751
+ control_plane_source: z.ZodEnum<{
7752
+ system: "system";
7753
+ workflow: "workflow";
7754
+ }>;
7755
+ }, z.core.$loose>;
7756
+ readonly identity: readonly ["event_id"];
7757
+ };
7758
+ readonly playbook_exported: {
7759
+ readonly schema: z.ZodObject<{
7760
+ control_plane_source: z.ZodEnum<{
7761
+ system: "system";
7762
+ workflow: "workflow";
7763
+ }>;
7764
+ }, z.core.$loose>;
7765
+ readonly identity: readonly ["event_id"];
7766
+ };
7767
+ readonly entity_created: {
7768
+ readonly schema: z.ZodObject<{
7769
+ resource: z.ZodString;
7770
+ resource_id: z.ZodOptional<z.ZodString>;
7771
+ control_plane_source: z.ZodEnum<{
7772
+ system: "system";
7773
+ workflow: "workflow";
7774
+ }>;
7775
+ }, z.core.$loose>;
7776
+ readonly identity: readonly ["event_id"];
7777
+ };
7778
+ readonly entity_updated: {
7779
+ readonly schema: z.ZodObject<{
7780
+ resource: z.ZodString;
7781
+ resource_id: z.ZodOptional<z.ZodString>;
7782
+ control_plane_source: z.ZodEnum<{
7783
+ system: "system";
7784
+ workflow: "workflow";
7785
+ }>;
7786
+ }, z.core.$loose>;
7787
+ readonly identity: readonly ["event_id"];
7788
+ };
7789
+ readonly entity_deleted: {
7790
+ readonly schema: z.ZodObject<{
7791
+ resource: z.ZodString;
7792
+ resource_id: z.ZodOptional<z.ZodString>;
7793
+ control_plane_source: z.ZodEnum<{
7794
+ system: "system";
7795
+ workflow: "workflow";
7796
+ }>;
7797
+ }, z.core.$loose>;
7798
+ readonly identity: readonly ["event_id"];
7799
+ };
7800
+ readonly web_api_error: {
7801
+ readonly schema: z.ZodObject<{
7802
+ request_id: z.ZodString;
7803
+ status: z.ZodNumber;
7804
+ route: z.ZodOptional<z.ZodString>;
7805
+ method: z.ZodOptional<z.ZodString>;
7806
+ error_code: z.ZodOptional<z.ZodString>;
7807
+ control_plane_source: z.ZodEnum<{
7808
+ system: "system";
7809
+ workflow: "workflow";
7810
+ }>;
7811
+ }, z.core.$loose>;
7812
+ readonly identity: readonly ["event_id"];
7813
+ };
7814
+ readonly area_viewed: {
7815
+ readonly schema: z.ZodObject<{
7816
+ area: z.ZodString;
7817
+ }, z.core.$loose>;
7818
+ readonly identity: readonly ["event_id"];
7819
+ };
7820
+ readonly feature_gated: {
7821
+ readonly schema: z.ZodObject<{
7822
+ pathname: z.ZodNullable<z.ZodString>;
7823
+ reason: z.ZodString;
7824
+ }, z.core.$loose>;
7825
+ readonly identity: readonly ["event_id"];
7826
+ };
7827
+ readonly placement_resolved: {
7828
+ readonly schema: z.ZodObject<{
7829
+ placement_id: z.ZodString;
7830
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7831
+ payload_id: z.ZodNullable<z.ZodString>;
7832
+ decision_id: z.ZodNullable<z.ZodString>;
7833
+ decision_source: z.ZodNullable<z.ZodString>;
7834
+ }, z.core.$loose>;
7835
+ readonly identity: readonly ["event_id"];
7836
+ };
7837
+ readonly placement_rendered: {
7838
+ readonly schema: z.ZodObject<{
7839
+ placement_id: z.ZodString;
7840
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7841
+ payload_id: z.ZodNullable<z.ZodString>;
7842
+ decision_id: z.ZodNullable<z.ZodString>;
7843
+ decision_source: z.ZodNullable<z.ZodString>;
7844
+ }, z.core.$loose>;
7845
+ readonly identity: readonly ["event_id"];
7846
+ };
7847
+ readonly placement_exposed: {
7848
+ readonly schema: z.ZodObject<{
7849
+ exposure_basis: z.ZodOptional<z.ZodString>;
7850
+ placement_id: z.ZodString;
7851
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7852
+ payload_id: z.ZodNullable<z.ZodString>;
7853
+ decision_id: z.ZodNullable<z.ZodString>;
7854
+ decision_source: z.ZodNullable<z.ZodString>;
7855
+ }, z.core.$loose>;
7856
+ readonly identity: readonly ["event_id"];
7857
+ };
7858
+ readonly placement_outcome: {
7859
+ readonly schema: z.ZodObject<{
7860
+ outcome: z.ZodString;
7861
+ cta_target: z.ZodNullable<z.ZodString>;
7862
+ placement_id: z.ZodString;
7863
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7864
+ payload_id: z.ZodNullable<z.ZodString>;
7865
+ decision_id: z.ZodNullable<z.ZodString>;
7866
+ decision_source: z.ZodNullable<z.ZodString>;
7867
+ }, z.core.$loose>;
7868
+ readonly identity: readonly ["event_id"];
7869
+ };
7870
+ readonly placement_interaction: {
7871
+ readonly schema: z.ZodObject<{
7872
+ interaction_type: z.ZodString;
7873
+ placement_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7874
+ payload_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7875
+ decision_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7876
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7877
+ action_type: z.ZodOptional<z.ZodString>;
7878
+ action_success: z.ZodOptional<z.ZodBoolean>;
7879
+ interaction_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7880
+ remind_after_seconds: z.ZodOptional<z.ZodNumber>;
7881
+ }, z.core.$loose>;
7882
+ readonly identity: readonly ["event_id"];
7883
+ };
7884
+ readonly gate_evaluated: {
7885
+ readonly schema: z.ZodObject<{
7886
+ entitlement_handle: z.ZodString;
7887
+ outcome: z.ZodEnum<{
7888
+ allowed: "allowed";
7889
+ limited: "limited";
7890
+ denied: "denied";
7891
+ }>;
7892
+ gated: z.ZodBoolean;
7893
+ reason: z.ZodNullable<z.ZodString>;
7894
+ limit: z.ZodNullable<z.ZodNumber>;
7895
+ used: z.ZodNullable<z.ZodNumber>;
7896
+ remaining: z.ZodNullable<z.ZodNumber>;
7897
+ }, z.core.$loose>;
7898
+ readonly identity: readonly ["event_id"];
7899
+ };
7900
+ readonly gate_attempted: {
7901
+ readonly schema: z.ZodObject<{
7902
+ entitlement_handle: z.ZodString;
7903
+ }, z.core.$loose>;
7904
+ readonly identity: readonly ["event_id"];
7905
+ };
7906
+ readonly gate_allowed: {
7907
+ readonly schema: z.ZodObject<{
7908
+ entitlement_handle: z.ZodString;
7909
+ }, z.core.$loose>;
7910
+ readonly identity: readonly ["event_id"];
7911
+ };
7912
+ readonly gate_denied: {
7913
+ readonly schema: z.ZodObject<{
7914
+ entitlement_handle: z.ZodString;
7915
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7916
+ }, z.core.$loose>;
7917
+ readonly identity: readonly ["event_id"];
7918
+ };
7919
+ readonly slot_evaluated: {
7920
+ readonly schema: z.ZodObject<{
7921
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7922
+ slot_name: z.ZodNullable<z.ZodString>;
7923
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7924
+ template_id: z.ZodNullable<z.ZodString>;
7925
+ surface_type: z.ZodNullable<z.ZodString>;
7926
+ category: z.ZodNullable<z.ZodString>;
7927
+ decision_source: z.ZodNullable<z.ZodString>;
7928
+ reason_codes: z.ZodArray<z.ZodString>;
7929
+ decision_id: z.ZodNullable<z.ZodString>;
7930
+ }, z.core.$loose>;
7931
+ readonly identity: readonly ["event_id"];
7932
+ };
7933
+ readonly slot_filled: {
7934
+ readonly schema: z.ZodObject<{
7935
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7936
+ slot_name: z.ZodNullable<z.ZodString>;
7937
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7938
+ template_id: z.ZodNullable<z.ZodString>;
7939
+ surface_type: z.ZodNullable<z.ZodString>;
7940
+ category: z.ZodNullable<z.ZodString>;
7941
+ decision_source: z.ZodNullable<z.ZodString>;
7942
+ reason_codes: z.ZodArray<z.ZodString>;
7943
+ decision_id: z.ZodNullable<z.ZodString>;
7944
+ }, z.core.$loose>;
7945
+ readonly identity: readonly ["event_id"];
7946
+ };
7947
+ readonly slot_empty: {
7948
+ readonly schema: z.ZodObject<{
7949
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7950
+ slot_name: z.ZodNullable<z.ZodString>;
7951
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7952
+ template_id: z.ZodNullable<z.ZodString>;
7953
+ surface_type: z.ZodNullable<z.ZodString>;
7954
+ category: z.ZodNullable<z.ZodString>;
7955
+ decision_source: z.ZodNullable<z.ZodString>;
7956
+ reason_codes: z.ZodArray<z.ZodString>;
7957
+ decision_id: z.ZodNullable<z.ZodString>;
7958
+ }, z.core.$loose>;
7959
+ readonly identity: readonly ["event_id"];
7960
+ };
7961
+ readonly slot_suppressed: {
7962
+ readonly schema: z.ZodObject<{
7963
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7964
+ slot_name: z.ZodNullable<z.ZodString>;
7965
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7966
+ template_id: z.ZodNullable<z.ZodString>;
7967
+ surface_type: z.ZodNullable<z.ZodString>;
7968
+ category: z.ZodNullable<z.ZodString>;
7969
+ decision_source: z.ZodNullable<z.ZodString>;
7970
+ reason_codes: z.ZodArray<z.ZodString>;
7971
+ decision_id: z.ZodNullable<z.ZodString>;
7972
+ }, z.core.$loose>;
7973
+ readonly identity: readonly ["event_id"];
7974
+ };
7975
+ readonly slot_error: {
7976
+ readonly schema: z.ZodObject<{
7977
+ message: z.ZodOptional<z.ZodString>;
7978
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7979
+ slot_name: z.ZodNullable<z.ZodString>;
7980
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7981
+ template_id: z.ZodNullable<z.ZodString>;
7982
+ surface_type: z.ZodNullable<z.ZodString>;
7983
+ category: z.ZodNullable<z.ZodString>;
7984
+ decision_source: z.ZodNullable<z.ZodString>;
7985
+ reason_codes: z.ZodArray<z.ZodString>;
7986
+ decision_id: z.ZodNullable<z.ZodString>;
7987
+ }, z.core.$loose>;
7988
+ readonly identity: readonly ["event_id"];
7989
+ };
7990
+ readonly segment_enrolled: {
7991
+ readonly schema: z.ZodObject<{
7992
+ segment_id: z.ZodString;
7993
+ user_id: z.ZodNullable<z.ZodString>;
7994
+ }, z.core.$loose>;
7995
+ readonly identity: readonly ["event_id"];
7996
+ };
7997
+ readonly segment_unenrolled: {
7998
+ readonly schema: z.ZodObject<{
7999
+ segment_id: z.ZodString;
8000
+ user_id: z.ZodNullable<z.ZodString>;
8001
+ }, z.core.$loose>;
8002
+ readonly identity: readonly ["event_id"];
8003
+ };
8004
+ readonly experiment_assigned: {
8005
+ readonly schema: z.ZodObject<{
8006
+ schema_version: z.ZodNumber;
8007
+ assignment_id: z.ZodString;
8008
+ experiment_id: z.ZodString;
8009
+ experiment_version: z.ZodNumber;
8010
+ variant_key: z.ZodString;
8011
+ assignment_unit: z.ZodEnum<{
8012
+ account: "account";
8013
+ user: "user";
8014
+ billing_unit: "billing_unit";
8015
+ organization: "organization";
8016
+ }>;
8017
+ subject_id: z.ZodString;
8018
+ assigned_at: z.ZodString;
8019
+ provider_handle: z.ZodOptional<z.ZodString>;
8020
+ provider_revision: z.ZodOptional<z.ZodString>;
8021
+ }, z.core.$loose>;
8022
+ readonly identity: readonly ["assignment_id"];
8023
+ };
8024
+ readonly user_context_observed: {
8025
+ readonly schema: z.ZodObject<{
8026
+ context_fields: z.ZodArray<z.ZodString>;
8027
+ }, z.core.$loose>;
8028
+ readonly identity: readonly ["event_id"];
8029
+ };
8030
+ readonly clickstream_page_view: {
8031
+ readonly schema: z.ZodObject<{
8032
+ mode: z.ZodOptional<z.ZodString>;
8033
+ runtime_mode: z.ZodOptional<z.ZodString>;
8034
+ source: z.ZodOptional<z.ZodString>;
8035
+ }, z.core.$loose>;
8036
+ readonly identity: readonly ["event_id"];
8037
+ };
8038
+ readonly account_created: {
8039
+ readonly schema: z.ZodObject<{
8040
+ acquisition_source: z.ZodOptional<z.ZodString>;
8041
+ }, z.core.$loose>;
8042
+ readonly identity: readonly ["event_id"];
8043
+ };
8044
+ readonly user_signed_up: {
8045
+ readonly schema: z.ZodObject<{
8046
+ acquisition_source: z.ZodOptional<z.ZodString>;
8047
+ }, z.core.$loose>;
8048
+ readonly identity: readonly ["event_id"];
8049
+ };
8050
+ readonly onboarding_completed: {
8051
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8052
+ readonly identity: readonly ["event_id"];
8053
+ };
8054
+ readonly account_activated: {
8055
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8056
+ readonly identity: readonly ["event_id"];
8057
+ };
8058
+ readonly product_used: {
8059
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8060
+ readonly identity: readonly ["event_id"];
8061
+ };
8062
+ readonly value_realized: {
8063
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8064
+ readonly identity: readonly ["event_id"];
8065
+ };
8066
+ readonly usage_recorded: {
8067
+ readonly schema: z.ZodObject<{
8068
+ metered_units: z.ZodNumber;
8069
+ included_allowance: z.ZodNumber;
8070
+ utilization: z.ZodNumber;
8071
+ }, z.core.$loose>;
8072
+ readonly identity: readonly ["event_id"];
8073
+ };
8074
+ readonly plan_viewed: {
8075
+ readonly schema: z.ZodObject<{
8076
+ plan_handle: z.ZodString;
8077
+ entry_tier: z.ZodOptional<z.ZodBoolean>;
8078
+ }, z.core.$loose>;
8079
+ readonly identity: readonly ["event_id"];
8080
+ };
8081
+ readonly promotion_applied: {
8082
+ readonly schema: z.ZodObject<{
8083
+ promotion_handle: z.ZodString;
8084
+ plan_handle: z.ZodOptional<z.ZodString>;
8085
+ }, z.core.$loose>;
8086
+ readonly identity: readonly ["event_id"];
8087
+ };
8088
+ readonly promotion_converted: {
8089
+ readonly schema: z.ZodObject<{
8090
+ promotion_handle: z.ZodString;
8091
+ full_price: z.ZodOptional<z.ZodBoolean>;
8092
+ plan_handle: z.ZodOptional<z.ZodString>;
8093
+ }, z.core.$loose>;
8094
+ readonly identity: readonly ["event_id"];
8095
+ };
8096
+ readonly growth_signal_observed: {
8097
+ readonly schema: z.ZodObject<{
8098
+ metric: z.ZodString;
8099
+ dimension_key: z.ZodString;
8100
+ dimension_value: z.ZodString;
8101
+ window_start: z.ZodString;
8102
+ window_end: z.ZodString;
8103
+ value: z.ZodNumber;
8104
+ numerator: z.ZodOptional<z.ZodNumber>;
8105
+ denominator: z.ZodOptional<z.ZodNumber>;
8106
+ sample_size: z.ZodOptional<z.ZodNumber>;
8107
+ }, z.core.$loose>;
8108
+ readonly identity: readonly ["event_id"];
8109
+ };
8110
+ readonly sdk_init: {
8111
+ readonly schema: z.ZodObject<{
8112
+ config_hash_id: z.ZodOptional<z.ZodString>;
8113
+ sdk_version: z.ZodOptional<z.ZodString>;
8114
+ runtime_mode: z.ZodOptional<z.ZodString>;
8115
+ schema_version: z.ZodOptional<z.ZodString>;
8116
+ bundle_version: z.ZodOptional<z.ZodString>;
8117
+ config_shape: z.ZodOptional<z.ZodString>;
8118
+ }, z.core.$loose>;
8119
+ readonly identity: readonly ["event_id"];
8120
+ };
8121
+ readonly sdk_error: {
8122
+ readonly schema: z.ZodObject<{
8123
+ message: z.ZodString;
8124
+ config_hash_id: z.ZodOptional<z.ZodString>;
8125
+ sdk_version: z.ZodOptional<z.ZodString>;
8126
+ }, z.core.$loose>;
8127
+ readonly identity: readonly ["event_id"];
8128
+ };
8129
+ readonly sdk_validation_warning: {
8130
+ readonly schema: z.ZodObject<{
8131
+ message: z.ZodString;
8132
+ config_hash_id: z.ZodOptional<z.ZodString>;
8133
+ sdk_version: z.ZodOptional<z.ZodString>;
8134
+ }, z.core.$loose>;
8135
+ readonly identity: readonly ["event_id"];
8136
+ };
8137
+ readonly resolution_failure: {
8138
+ readonly schema: z.ZodObject<{
8139
+ reason: z.ZodString;
8140
+ placement_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8141
+ slot_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8142
+ surface: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8143
+ plan_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8144
+ entitlement_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8145
+ message: z.ZodOptional<z.ZodString>;
8146
+ config_hash_id: z.ZodOptional<z.ZodString>;
8147
+ }, z.core.$loose>;
8148
+ readonly identity: readonly ["event_id"];
8149
+ };
8150
+ readonly subscription_started: {
8151
+ readonly schema: z.ZodObject<{
8152
+ billing_period: z.ZodString;
8153
+ amount_cents: z.ZodNumber;
8154
+ currency: z.ZodString;
8155
+ billing_ref: z.ZodString;
8156
+ plan_handle: z.ZodString;
8157
+ }, z.core.$loose>;
8158
+ readonly identity: readonly ["billing_ref"];
8159
+ };
8160
+ readonly subscription_renewed: {
8161
+ readonly schema: z.ZodObject<{
8162
+ billing_period: z.ZodString;
8163
+ amount_cents: z.ZodNumber;
8164
+ currency: z.ZodString;
8165
+ billing_ref: z.ZodString;
8166
+ plan_handle: z.ZodString;
8167
+ }, z.core.$loose>;
8168
+ readonly identity: readonly ["billing_ref"];
8169
+ };
8170
+ readonly subscription_expanded: {
8171
+ readonly schema: z.ZodObject<{
8172
+ previous_plan_handle: z.ZodOptional<z.ZodString>;
8173
+ delta_cents: z.ZodOptional<z.ZodNumber>;
8174
+ self_serve: z.ZodOptional<z.ZodBoolean>;
8175
+ billing_period: z.ZodString;
8176
+ amount_cents: z.ZodNumber;
8177
+ currency: z.ZodString;
8178
+ billing_ref: z.ZodString;
8179
+ plan_handle: z.ZodString;
8180
+ }, z.core.$loose>;
8181
+ readonly identity: readonly ["billing_ref"];
8182
+ };
8183
+ readonly subscription_canceled: {
8184
+ readonly schema: z.ZodObject<{
8185
+ reason: z.ZodOptional<z.ZodString>;
8186
+ billing_ref: z.ZodString;
8187
+ plan_handle: z.ZodString;
8188
+ }, z.core.$loose>;
8189
+ readonly identity: readonly ["billing_ref"];
8190
+ };
8191
+ readonly trial_started: {
8192
+ readonly schema: z.ZodObject<{
8193
+ trial_rule_handle: z.ZodString;
8194
+ ends_at: z.ZodString;
8195
+ billing_ref: z.ZodString;
8196
+ plan_handle: z.ZodString;
8197
+ }, z.core.$loose>;
8198
+ readonly identity: readonly ["billing_ref"];
8199
+ };
8200
+ readonly trial_converted: {
8201
+ readonly schema: z.ZodObject<{
8202
+ trial_rule_handle: z.ZodString;
8203
+ billing_period: z.ZodString;
8204
+ amount_cents: z.ZodNumber;
8205
+ currency: z.ZodString;
8206
+ billing_ref: z.ZodString;
8207
+ plan_handle: z.ZodString;
8208
+ }, z.core.$loose>;
8209
+ readonly identity: readonly ["billing_ref"];
8210
+ };
8211
+ readonly trial_expired: {
8212
+ readonly schema: z.ZodObject<{
8213
+ trial_rule_handle: z.ZodString;
8214
+ billing_ref: z.ZodString;
8215
+ plan_handle: z.ZodString;
8216
+ }, z.core.$loose>;
8217
+ readonly identity: readonly ["billing_ref"];
8218
+ };
8219
+ readonly payment_succeeded: {
8220
+ readonly schema: z.ZodObject<{
8221
+ billing_ref: z.ZodString;
8222
+ amount_cents: z.ZodNumber;
8223
+ currency: z.ZodString;
8224
+ plan_handle: z.ZodOptional<z.ZodString>;
8225
+ }, z.core.$loose>;
8226
+ readonly identity: readonly ["billing_ref"];
8227
+ };
8228
+ readonly payment_failed: {
8229
+ readonly schema: z.ZodObject<{
8230
+ billing_ref: z.ZodString;
8231
+ reason: z.ZodString;
8232
+ amount_cents: z.ZodOptional<z.ZodNumber>;
8233
+ currency: z.ZodOptional<z.ZodString>;
8234
+ plan_handle: z.ZodOptional<z.ZodString>;
8235
+ }, z.core.$loose>;
8236
+ readonly identity: readonly ["billing_ref"];
8237
+ };
8238
+ };
8239
+ /** The contracts map with per-event schema types preserved (plan 228 TASK-4). */
8240
+ type EventPayloadContractMap = typeof EVENT_PAYLOAD_CONTRACTS;
8241
+ /**
8242
+ * The input (pre-parse) payload shape for one platform event, inferred from
8243
+ * its contract schema. The SDK's typed emit surface takes exactly this per
8244
+ * event name, so the emit API cannot drift from the contract it validates
8245
+ * against.
8246
+ */
8247
+ type EventPayloadInput<K extends PlatformEventName> = z.input<EventPayloadContractMap[K]['schema']>;
8248
+ /**
8249
+ * Every contracted event name, sorted in UTF-16 code-unit order (the default
8250
+ * string sort — deliberately NOT localeCompare, per the single-canonicalizer
8251
+ * rule; names are lowercase snake_case ASCII, where the two orders coincide,
8252
+ * but the manifest must never depend on a locale).
8253
+ */
8254
+ declare const EVENT_PAYLOAD_EVENT_NAMES: readonly string[];
8255
+ /**
8256
+ * Validate a payload against its event's contract. Unknown events are a
8257
+ * structured failure, not an exception — `/api/track` routes those (and
8258
+ * schema violations) to the REQ-10 quarantine lane rather than dropping.
8259
+ */
8260
+ declare function validateEventPayload(eventName: string, payload: unknown): {
8261
+ ok: true;
8262
+ payload: Record<string, unknown>;
8263
+ } | {
8264
+ ok: false;
8265
+ reason: 'unknown_event' | 'schema_violation';
8266
+ detail?: string;
8267
+ };
8268
+
7137
8269
  /**
7138
8270
  * Trial schemas — free trial rules, reverse trial rules, and trial instances.
7139
8271
  */
@@ -8742,8 +9874,8 @@ declare const ExperimentSchema: z.ZodObject<{
8742
9874
  provider_handle: z.ZodString;
8743
9875
  capability: z.ZodLiteral<"experiment_assignment">;
8744
9876
  allocation_mode: z.ZodEnum<{
8745
- managed: "managed";
8746
9877
  observed: "observed";
9878
+ managed: "managed";
8747
9879
  }>;
8748
9880
  }, z.core.$strip>>;
8749
9881
  evidence_provider_binding: z.ZodOptional<z.ZodObject<{
@@ -13958,9 +15090,9 @@ declare const ProviderConnectionSchema: z.ZodObject<{
13958
15090
  credential_reference: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13959
15091
  environment_id: z.ZodDefault<z.ZodString>;
13960
15092
  health_state: z.ZodDefault<z.ZodEnum<{
15093
+ unavailable: "unavailable";
13961
15094
  available: "available";
13962
15095
  stale: "stale";
13963
- unavailable: "unavailable";
13964
15096
  unsupported: "unsupported";
13965
15097
  partial: "partial";
13966
15098
  }>>;
@@ -14515,9 +15647,9 @@ declare const ProviderCapabilitySchema: z.ZodEnum<{
14515
15647
  * configuration error rather than an outage.
14516
15648
  */
14517
15649
  declare const ProviderAvailabilitySchema: z.ZodEnum<{
15650
+ unavailable: "unavailable";
14518
15651
  available: "available";
14519
15652
  stale: "stale";
14520
- unavailable: "unavailable";
14521
15653
  unsupported: "unsupported";
14522
15654
  partial: "partial";
14523
15655
  }>;
@@ -14596,6 +15728,7 @@ type AnalyticsCatalogConcept = z.infer<typeof AnalyticsCatalogConceptSchema>;
14596
15728
  type AnalyticsCatalogDeprecation = z.infer<typeof AnalyticsCatalogDeprecationSchema>;
14597
15729
  type AnalyticsCatalogDimension = z.infer<typeof AnalyticsCatalogDimensionSchema>;
14598
15730
  type AnalyticsCatalogMetric = z.infer<typeof AnalyticsCatalogMetricSchema>;
15731
+ type AnalyticsCatalogMetricValidated = z.infer<typeof AnalyticsCatalogMetricValidatedSchema>;
14599
15732
  type AnalyticsCatalogProvenanceKind = z.infer<typeof AnalyticsCatalogProvenanceKindSchema>;
14600
15733
  type AnalyticsCatalogProvenance = z.infer<typeof AnalyticsCatalogProvenanceSchema>;
14601
15734
  type AnalyticsCatalog = z.infer<typeof AnalyticsCatalogSchema>;
@@ -14903,7 +16036,9 @@ type TenantStatus = z.infer<typeof TenantStatusSchema>;
14903
16036
  type Theme = z.infer<typeof ThemeSchema>;
14904
16037
  type TrackEvent = z.infer<typeof TrackEventSchema>;
14905
16038
  type TrackIngestBatch = z.infer<typeof TrackIngestBatchSchema>;
16039
+ type TreatmentInteractionBatch = z.infer<typeof TreatmentInteractionBatchSchema>;
14906
16040
  type TreatmentInteractionInput = z.infer<typeof TreatmentInteractionInputSchema>;
16041
+ type TreatmentInteractionRequest = z.infer<typeof TreatmentInteractionRequestSchema>;
14907
16042
  type TreatmentInteractionType = z.infer<typeof TreatmentInteractionTypeSchema>;
14908
16043
  type TrendFeatures = z.infer<typeof TrendFeaturesSchema>;
14909
16044
  type TrialEligibilityScope = z.infer<typeof TrialEligibilityScopeSchema>;
@@ -16848,6 +17983,84 @@ declare class LocalRuntime {
16848
17983
  private deriveEntitlementFromConfig;
16849
17984
  }
16850
17985
 
17986
+ /**
17987
+ * Assignment-fact carriage (plan 224 TASK-8, war-games spec §9.1).
17988
+ *
17989
+ * The `experiment_assigned` clickstream event is the assignment plane's source
17990
+ * of truth: one fact per (experiment_handle, experiment_version, subject) when
17991
+ * the resolved assignment snapshot enrolls a subject. The snapshot itself
17992
+ * (`ExperimentVariantSelection`) deliberately carries handles only — the
17993
+ * canonical experiment VERSION is not part of the runtime assignment contract
17994
+ * (assignment spec §8: the version travels separately in telemetry). This
17995
+ * module is that separate channel: a declaration that binds an experiment
17996
+ * handle to the canonical version (`Experiment.sequence`) and assignment unit
17997
+ * the fact must carry.
17998
+ *
17999
+ * Declaration-gated by design, mirroring the taxonomy's own discipline: an
18000
+ * assignment with no declaration emits NO fact rather than a fact with a
18001
+ * fabricated version — a wrong (handle, version) join key poisons SRM, which
18002
+ * is worse than a missing row. Unenrolled subjects also emit nothing:
18003
+ * not-enrolled is absence (assignment spec §4), never an `enrolled: false`
18004
+ * fact.
18005
+ */
18006
+
18007
+ /** One supported canonical experiment assignment unit (war-games spec §9.1). */
18008
+ type AssignmentFactUnit = NonNullable<Experiment['assignment_unit']>;
18009
+ /**
18010
+ * Binds one experiment handle to the canonical-version metadata its
18011
+ * `experiment_assigned` assignment facts must carry (plan 224, spec §9.1).
18012
+ *
18013
+ * Supply these either through
18014
+ * `RevTurbineInitOptions.experimentAssignmentFacts` (works for ANY assignment
18015
+ * source, external adapters included) or — for the native provider — via
18016
+ * `CanonicalExperimentAllocation.sequence`, which derives a declaration
18017
+ * automatically. An assigned experiment with no declaration emits no fact.
18018
+ */
18019
+ interface ExperimentAssignmentFactDeclaration {
18020
+ /** Canonical experiment handle the declaration applies to. */
18021
+ experimentHandle: string;
18022
+ /**
18023
+ * Canonical experiment version — the `Experiment.sequence` of the version
18024
+ * whose allocation is live. Integer ≥ 1; the fact's (handle, version) pair
18025
+ * is the SRM join key, so this must be the real canonical version, never a
18026
+ * guess.
18027
+ */
18028
+ experimentVersion: number;
18029
+ /**
18030
+ * Unit the subject identifier represents. Defaults to `'user'`, matching
18031
+ * the native provider's default.
18032
+ */
18033
+ assignmentUnit?: AssignmentFactUnit;
18034
+ /**
18035
+ * Stable subject identifier for the declared unit. A function is re-read on
18036
+ * every emission so a later identity change takes effect; a bare string
18037
+ * pins one subject. When omitted, the SDK's user-context `id` is used.
18038
+ * With no resolvable subject there is no fact — absent beats wrong.
18039
+ */
18040
+ subject?: string | (() => string | undefined | null);
18041
+ }
18042
+ /**
18043
+ * Optional carrier surface for assignment-fact metadata on an experiment
18044
+ * provider. The native provider implements it when its allocations carry
18045
+ * `sequence`; the SDK harvests declarations from every registered experiment
18046
+ * provider that exposes it.
18047
+ */
18048
+ interface ExperimentAssignmentFactMetadataCarrier {
18049
+ /** Declarations describing the canonical versions this provider allocates. */
18050
+ readonly assignmentFactDeclarations?: readonly ExperimentAssignmentFactDeclaration[];
18051
+ }
18052
+ /**
18053
+ * Defensively validate one declaration from a plain-JS caller. The SDK is
18054
+ * exposed as `window.RevTurbine`, so shapes are checked, never assumed.
18055
+ */
18056
+ declare function isExperimentAssignmentFactDeclaration(value: unknown): value is ExperimentAssignmentFactDeclaration;
18057
+ /**
18058
+ * Harvest valid assignment-fact declarations from providers exposing the
18059
+ * {@link ExperimentAssignmentFactMetadataCarrier} surface. Later sources win
18060
+ * on a duplicate handle, so pass the most authoritative source last.
18061
+ */
18062
+ declare function collectAssignmentFactDeclarations(sources: ReadonlyArray<object | undefined>, explicit?: readonly ExperimentAssignmentFactDeclaration[]): ReadonlyMap<string, ExperimentAssignmentFactDeclaration>;
18063
+
16851
18064
  /**
16852
18065
  * Branding resolution for the RevTurbine SDK (plan 118 TASK-20).
16853
18066
  *
@@ -16936,10 +18149,10 @@ declare function resolveBranding(input?: BrandingResolutionInput): ResolvedBrand
16936
18149
  /**
16937
18150
  * Control-plane semantic events (plan 112).
16938
18151
  *
16939
- * A typed layer over the SDK's generic event emit path for RevTurbine's OWN
16940
- * control-plane activity — web/CLI auth, change-set lifecycle, config, and
16941
- * product-entity actions. This is the "dogfood" surface: RevTurbine emits its
16942
- * product usage through the same SDK a customer uses.
18152
+ * A typed layer over the SDK's raw event emit path for RevTurbine's OWN
18153
+ * control-plane activity — web/CLI auth, playbook-version lifecycle, playbook
18154
+ * transfer, and product-entity actions. This is the "dogfood" surface:
18155
+ * RevTurbine emits its product usage through the same SDK a customer uses.
16943
18156
  *
16944
18157
  * The taxonomy itself is the canonical `ControlPlaneEventType` /
16945
18158
  * `ControlPlaneEventSource` enums from `@revt-eng/schema`; this module adds the
@@ -16957,7 +18170,8 @@ declare function resolveBranding(input?: BrandingResolutionInput): ResolvedBrand
16957
18170
  /**
16958
18171
  * Canonical source classification for every control-plane event type — mirrors
16959
18172
  * the scaffold taxonomy. `system` covers identity/auth + CLI command telemetry;
16960
- * `workflow` covers change-set lifecycle, config, and product-entity actions.
18173
+ * `workflow` covers playbook-version lifecycle, playbook transfer, and
18174
+ * product-entity actions.
16961
18175
  *
16962
18176
  * Typed as a total `Record`, so adding a new `ControlPlaneEventType` in scaffold
16963
18177
  * without classifying it here is a compile error.
@@ -18203,6 +19417,23 @@ interface RevTurbineInitOptions {
18203
19417
  domainProviders?: AnyDomainProvider[];
18204
19418
  /** Maximum time for one client experiment provider resolution. Default: 5000ms. */
18205
19419
  experimentProviderTimeoutMs?: number;
19420
+ /**
19421
+ * Canonical-version declarations for `experiment_assigned` assignment facts
19422
+ * (plan 224, war-games spec §9.1).
19423
+ *
19424
+ * The assignment fact's (experiment handle, experiment version) pair is the
19425
+ * SRM join key, and the runtime assignment snapshot deliberately carries
19426
+ * handles only — so a fact is emitted **only** for experiments declared
19427
+ * here (or via `CanonicalExperimentAllocation.sequence` on the native
19428
+ * provider, which declares automatically). Works for ANY assignment source:
19429
+ * native bucketer, external adapters (GrowthBook, Optimizely, custom), and
19430
+ * caller-supplied `user.experiments` assignments alike. An assigned
19431
+ * experiment with no declaration emits no fact rather than one with a
19432
+ * fabricated version; unenrolled subjects emit nothing — not-enrolled is
19433
+ * absence. Entries here override a provider-derived declaration for the
19434
+ * same handle.
19435
+ */
19436
+ experimentAssignmentFacts?: readonly ExperimentAssignmentFactDeclaration[];
18206
19437
  /** Optional UI path resolver map used by `validateUiPathResolvers()`. */
18207
19438
  uiPathResolvers?: RevTurbineUiPathResolverMap;
18208
19439
  /**
@@ -18346,7 +19577,14 @@ interface RevTurbineEndpointOverrides {
18346
19577
  /** Keyless anonymous SDK telemetry endpoint (`POST /api/sdk/meta`). */
18347
19578
  ingestSdkMeta: string;
18348
19579
  touchpointTransition: string;
18349
- legacyInteractions: string;
19580
+ /**
19581
+ * @deprecated Ignored since plan 232. This pointed at a fallback the SDK
19582
+ * retried when the interactions POST failed — against a route the app does
19583
+ * not serve, with the internal queue shape rather than the wire shape, so it
19584
+ * could only ever 404. Setting it has no effect; the key remains so an
19585
+ * existing integration that passes it still compiles.
19586
+ */
19587
+ legacyInteractions?: string;
18350
19588
  placementTypes: string;
18351
19589
  surfaceSlots: string;
18352
19590
  }
@@ -18748,6 +19986,31 @@ type RevTurbineTriggerPayload = TrialTriggerPayload | UsageTriggerPayload | Feat
18748
19986
  */
18749
19987
  declare function createSemanticEvent(eventType: string, payload: SdkEventProperties, options?: RevTurbineEventOptions): RevTurbineSemanticEvent;
18750
19988
 
19989
+ /**
19990
+ * Every event name on the taxonomy's `control_plane` surface — emitted via
19991
+ * {@link RevTurbineCustomerSdk.trackControlPlaneEvent}, never the platform
19992
+ * surface. The TYPE is the CP ingest enum; the runtime set below derives
19993
+ * from the taxonomy's surface field, so a scaffold surface reclassification
19994
+ * (plan 228's dogfood ruling moved `area_viewed`/`feature_gated` OUT of
19995
+ * this surface) flows through on a pin bump with no SDK edit.
19996
+ */
19997
+ type ControlPlaneEventName = (typeof CONTROL_PLANE_EVENT_NAMES)[number];
19998
+ /**
19999
+ * Every platform event the typed emit surface accepts: the full taxonomy
20000
+ * MINUS the control-plane surface (structural exclusion — the CP has its own
20001
+ * typed path with source classification, and a customer emitting
20002
+ * `playbook_version_deployed` would be forging RevTurbine's own product
20003
+ * telemetry). Includes the R-2 billing vocabulary: billing facts consumed
20004
+ * from Stripe must be equally emittable first-party (plan 228 R-1).
20005
+ */
20006
+ type EmittablePlatformEventName = Exclude<PlatformEventName, ControlPlaneEventName>;
20007
+ /**
20008
+ * Runtime mirror of {@link EmittablePlatformEventName}, derived from the
20009
+ * payload-contract map so the emit surface and the taxonomy cannot drift —
20010
+ * the parity test asserts this set plus the control-plane surface IS the
20011
+ * taxonomy.
20012
+ */
20013
+ declare const EMITTABLE_PLATFORM_EVENT_NAMES: readonly string[];
18751
20014
  /**
18752
20015
  * The core RevTurbine customer-facing SDK.
18753
20016
  *
@@ -18756,7 +20019,9 @@ declare function createSemanticEvent(eventType: string, payload: SdkEventPropert
18756
20019
  * - **Placements** — `registerPlacement()`, `getPlacementDecision()`, `getPlacement()`
18757
20020
  * - **Entitlements** — `checkEntitlement()`, `updateUsage()`
18758
20021
  * - **Trials** — `getTrialStatus()`
18759
- * - **Events** — `capture()`, `trackEvent()`, `emitSemantic()`
20022
+ * - **Events** — `track()` / `capture()` (generic lane; platform-name
20023
+ * collisions are namespaced), `emitPlatformEvent()` (typed platform lane,
20024
+ * contract-validated payloads)
18760
20025
  * - **Interactions** — `trackTreatmentInteraction()`, `dismiss()`, `convert()`
18761
20026
  * - **Context** — `setUserContext()`, `setPageContext()`, `refreshPageContext()`
18762
20027
  *
@@ -18831,8 +20096,19 @@ declare class RevTurbineCustomerSdk {
18831
20096
  private readonly syncedSurfaceSlotIds;
18832
20097
  private userContext;
18833
20098
  private contextRevision;
20099
+ private assignmentFactDeclarationsByHandle;
20100
+ private readonly emittedAssignmentFactKeys;
20101
+ private emittedAssignmentFactRevision?;
18834
20102
  private providerResolutionController;
18835
20103
  private lastEffectiveContext?;
20104
+ /**
20105
+ * The effective segment memberships from the most recent provider
20106
+ * resolution — resolved provider segments ∪ locally evaluated segments.
20107
+ * Stamped onto every event envelope as `segment_ids`, exactly as
20108
+ * `experiment_assignments` is stamped (plan 228 TASK-4 / REQ-11a), so
20109
+ * segment cuts read as-of-event truth instead of requiring a config join.
20110
+ */
20111
+ private lastEffectiveSegmentIds;
18836
20112
  private pageContext;
18837
20113
  /**
18838
20114
  * Secure per-user client token (`rt_client_`, plan 157). Minted by the
@@ -18932,6 +20208,19 @@ declare class RevTurbineCustomerSdk {
18932
20208
  getExperimentVariant(experimentHandle: string): Promise<ExperimentVariantSelection>;
18933
20209
  /** Return the immutable ephemeral context currently entering local evaluation. */
18934
20210
  getEffectiveUserContext(): Promise<Readonly<RevTurbineUserContext>>;
20211
+ /**
20212
+ * Emit `experiment_assigned` assignment facts for the resolved snapshot
20213
+ * (plan 224 TASK-8, war-games spec §9.1). One fact per (experiment handle,
20214
+ * experiment version, subject), declaration-gated and deduped per context
20215
+ * revision: re-resolution within one revision emits nothing new, and a new
20216
+ * revision re-emits the same idempotent `assignment_id`, which collapses in
20217
+ * storage. Only `status: 'assigned'` selections emit — an unenrolled
20218
+ * subject is absence (assignment spec §4), and provider failures
20219
+ * (`unavailable` / `unsupported` / `not_assigned`) never fabricate a fact.
20220
+ */
20221
+ private emitExperimentAssignmentFacts;
20222
+ /** Hash and emit one assignment fact; best-effort, never throws into the app. */
20223
+ private emitExperimentAssignmentFact;
18935
20224
  private markAllSegmentsDirty;
18936
20225
  private markSegmentsDirtyForFields;
18937
20226
  private toSegmentEvaluationTraits;
@@ -19271,6 +20560,34 @@ declare class RevTurbineCustomerSdk {
19271
20560
  */
19272
20561
  getTelemetryCounters(): TelemetryCounters;
19273
20562
  capture(eventName: string, properties: SdkEventProperties, options?: RevTurbineEventOptions): Promise<void>;
20563
+ /**
20564
+ * Emit a typed platform event (plan 228 TASK-4).
20565
+ *
20566
+ * The sanctioned first-party path for every platform event OUTSIDE the
20567
+ * control plane — SDK lifecycle, gates, placements, milestones, growth
20568
+ * signals, and the R-2 billing vocabulary (a billing fact consumed from
20569
+ * Stripe is equally emittable here; the ingest path dedupes on the
20570
+ * contract's identity keys, e.g. `billing_ref`). The payload parameter type
20571
+ * is inferred from the event's payload contract, so the API cannot drift
20572
+ * from the schema the payload is validated against.
20573
+ *
20574
+ * The name is sent RAW — no `clickstream_*` namespacing — which is exactly
20575
+ * what distinguishes this from {@link track}: the generic lane namespaces
20576
+ * platform collisions, the typed lane IS the platform.
20577
+ *
20578
+ * In development/test builds the payload is validated against its contract
20579
+ * at emit time; a violation emits an `sdk_validation_warning` alongside
20580
+ * (never a throw — telemetry must not break the host app). Production
20581
+ * builds skip validation; the ingest boundary re-validates authoritatively.
20582
+ */
20583
+ emitPlatformEvent<K extends EmittablePlatformEventName>(eventName: K, payload: EventPayloadInput<K>, options?: RevTurbineEventOptions): Promise<void>;
20584
+ /**
20585
+ * Emit an `sdk_validation_warning` conforming to its own payload contract
20586
+ * (`message` is the contract's required field; `reason` rides along for
20587
+ * pre-228 consumers). Fire-and-forget — never throws into the host app.
20588
+ */
20589
+ private emitSdkWarning;
20590
+ private captureRaw;
19274
20591
  /**
19275
20592
  * Emit a typed control-plane semantic event (plan 112).
19276
20593
  *
@@ -19294,7 +20611,7 @@ declare class RevTurbineCustomerSdk {
19294
20611
  * @example
19295
20612
  * ```ts
19296
20613
  * sdk.identify('operator_42', { account_id: 'tn_acme' });
19297
- * await sdk.trackControlPlaneEvent('changeset_deployed', { change_set_id: 'cs_9' });
20614
+ * await sdk.trackControlPlaneEvent('playbook_version_deployed', { change_set_id: 'cs_9' });
19298
20615
  * ```
19299
20616
  */
19300
20617
  trackControlPlaneEvent(eventType: ControlPlaneEventType, payload?: SdkEventProperties, options?: RevTurbineEventOptions): Promise<void>;
@@ -19320,6 +20637,36 @@ declare class RevTurbineCustomerSdk {
19320
20637
  * instance (e.g. SPA unmount) to avoid a dangling interval/listeners.
19321
20638
  */
19322
20639
  dispose(): void;
20640
+ /**
20641
+ * Emit a semantic event through the GENERIC string lane.
20642
+ *
20643
+ * Since plan 228 TASK-4 this is a customer-lane API, not a platform one: it
20644
+ * rides {@link capture}, so a name colliding with platform vocabulary is
20645
+ * namespaced `clickstream_*` — platform events cannot be forged from here.
20646
+ * The SDK's own platform emissions use {@link emitPlatformEvent}, whose
20647
+ * payloads are typed and contract-validated.
20648
+ *
20649
+ * The fields are passed to {@link capture} DIRECTLY, exactly as a customer's
20650
+ * own `capture(name, {...})` call would. Anything else double-wraps them.
20651
+ *
20652
+ * This used to send `{semantic: true, payload: fields}`. The wire mapping
20653
+ * already stores an envelope's properties under the key `payload`, so that
20654
+ * inner wrapper landed the fields at `properties.payload.payload.<field>` in
20655
+ * `events_clickstream` — one level deeper than every `capture()` event and
20656
+ * than the canonical carrier this SDK documents. Readers that followed the
20657
+ * documented shape (`user_context_fields`, any analytics pipe) found nothing
20658
+ * on a semantic event, which is why gate telemetry was invisible to the
20659
+ * entitlement metrics despite being emitted correctly.
20660
+ *
20661
+ * The `semantic: true` marker went with it: it was written here and read
20662
+ * nowhere in the SDK, the web app, or any pipe. It marked nothing and cost a
20663
+ * whole nesting level.
20664
+ *
20665
+ * `liftClickstreamFields` / `pickClickstreamField` are unaffected — they
20666
+ * resolve top-level first and fall back to the nested bag, so they read the
20667
+ * fields either way. Only the STORED JSON changes shape, and it changes to
20668
+ * the shape everything else already expects.
20669
+ */
19323
20670
  emitSemantic(eventType: string, payload: SdkEventProperties, options?: RevTurbineEventOptions): Promise<void>;
19324
20671
  /**
19325
20672
  * Optimized routine to evaluate segment membership and usage thresholds.
@@ -19432,6 +20779,20 @@ declare class RevTurbineCustomerSdk {
19432
20779
  bootstrapPlacementDecisions(inputs: RevTurbinePlacementDecisionInput[]): Promise<void>;
19433
20780
  private updateInteractionState;
19434
20781
  private flushInteractionQueue;
20782
+ /**
20783
+ * Re-queue a failed interaction flush and make the failure VISIBLE.
20784
+ *
20785
+ * This used to retry against a legacy path that does not exist in the app,
20786
+ * with the internal queue shape rather than the wire shape — so a failure
20787
+ * produced a silent 404, the batch went back on the queue, and it was
20788
+ * discarded at page unload with nothing recorded anywhere. That is how a
20789
+ * whole class of dropped presentations stayed invisible (plan 232).
20790
+ *
20791
+ * Re-queuing is still right — a transient failure should retry on the next
20792
+ * flush — but it is now paired with a counter and a diagnostic, so a
20793
+ * persistent failure is observable instead of merely quiet.
20794
+ */
20795
+ private failInteractionFlush;
19435
20796
  trackTreatmentInteraction(input: RevTurbineTreatmentInteractionInput): Promise<void>;
19436
20797
  getPlacementContent(placementId: string, request?: JsonObject): Promise<RevTurbinePlacementContent>;
19437
20798
  /**
@@ -19723,10 +21084,22 @@ declare class RevTurbineCustomerSdk {
19723
21084
  * name to {@link RevTurbineTriggerEvent} and attaches standard context
19724
21085
  * (user_id, plan, timestamp) automatically.
19725
21086
  *
21087
+ * **Three trigger names land namespaced on the wire.** This rides the
21088
+ * generic emit lane, which prefixes `clickstream_` to any name the platform
21089
+ * taxonomy already declares — the rule that stops a client forging a
21090
+ * first-party fact by naming an event after one. `trial_expired`,
21091
+ * `payment_failed` and `feature_gated` collide, so they are stored as
21092
+ * `clickstream_trial_expired`, `clickstream_payment_failed` and
21093
+ * `clickstream_feature_gated`. Query those names, not the raw ones. The
21094
+ * remaining triggers are unaffected, and the platform's own versions of the
21095
+ * three are emitted first-party through the typed surface. Pinned by
21096
+ * `trigger-namespacing-parity.test.ts` (plan 231 REQ-4).
21097
+ *
19726
21098
  * @example
19727
21099
  * ```ts
19728
21100
  * await sdk.emitTrigger('usage_limit_approaching', { usage_percent: 85, threshold: 80 });
19729
21101
  * await sdk.emitTrigger('trial_expiring', { days_remaining: 2 });
21102
+ * // stored as `clickstream_feature_gated` — see the collision note above
19730
21103
  * await sdk.emitTrigger('feature_gated', { feature: 'advanced_automation' });
19731
21104
  * ```
19732
21105
  */
@@ -21341,7 +22714,7 @@ interface paths {
21341
22714
  };
21342
22715
  get?: never;
21343
22716
  put?: never;
21344
- /** Record a placement treatment interaction */
22717
+ /** Record one placement treatment interaction, or a batch of them */
21345
22718
  post: operations["recordTreatmentInteraction"];
21346
22719
  delete?: never;
21347
22720
  options?: never;
@@ -21726,7 +23099,7 @@ interface components {
21726
23099
  filter_id: components["schemas"]["Anon_a42d262cd3ca_1"];
21727
23100
  value: components["schemas"]["Anon_caed89591949"];
21728
23101
  };
21729
- AnalyticsFilterValue: components["schemas"]["Anon_ac51ea83ce2a"] | components["schemas"]["Anon_0c21718d6f50"] | components["schemas"]["Anon_f84cd6df4c09"] | components["schemas"]["Anon_6dcff20eb273"];
23102
+ AnalyticsFilterValue: components["schemas"]["Anon_ac51ea83ce2a"] | components["schemas"]["Anon_0c21718d6f50"] | components["schemas"]["Anon_f84cd6df4c09"] | components["schemas"]["Anon_6dcff20eb273"] | components["schemas"]["Anon_883e390a065a"];
21730
23103
  /** @enum {string} */
21731
23104
  AnalyticsPeriodCompareMode: "none" | "previous_period" | "previous_year" | "custom_period";
21732
23105
  AnalyticsQueryOverrides: {
@@ -21848,6 +23221,7 @@ interface components {
21848
23221
  content_ui_paths: components["schemas"]["Anon_274ba4ca49d5_6"];
21849
23222
  surface_templates: components["schemas"]["Anon_274ba4ca49d5_7"];
21850
23223
  };
23224
+ TreatmentInteractionRequest: components["schemas"]["TreatmentInteractionInput"] | components["schemas"]["TreatmentInteractionBatch"];
21851
23225
  TreatmentInteractionInput: {
21852
23226
  user_id: components["schemas"]["Anon_761f976a1da1_2"];
21853
23227
  placement_id: components["schemas"]["Anon_57796118d046_18"];
@@ -21866,6 +23240,7 @@ interface components {
21866
23240
  };
21867
23241
  /** @enum {string} */
21868
23242
  TreatmentInteractionType: "impression" | "dismiss" | "remind_me_later" | "cta_clicked" | "cta_completed" | "suppress";
23243
+ TreatmentInteractionBatch: components["schemas"]["TreatmentInteractionInput"][];
21869
23244
  WebhookEventLog: {
21870
23245
  id: components["schemas"]["Anon_fb248bf5a9f7"];
21871
23246
  created_at: components["schemas"]["Anon_be3e2585472d"];
@@ -22753,6 +24128,14 @@ interface components {
22753
24128
  };
22754
24129
  Anon_cddf8275afa1_4: number;
22755
24130
  Anon_cddf8275afa1_5: number;
24131
+ Anon_883e390a065a: {
24132
+ /** @constant */
24133
+ type: "date_range";
24134
+ /** Format: date */
24135
+ start: string;
24136
+ /** Format: date */
24137
+ end: string;
24138
+ };
22756
24139
  Anon_f7f72b156db3: components["schemas"]["AnalyticsQueryOverrides"];
22757
24140
  Anon_84d5ba8ffc25: components["schemas"]["AnalyticsTimeGrain"];
22758
24141
  Anon_7e61734f9a3b: components["schemas"]["AnalyticsCompareMode"];
@@ -24300,8 +25683,16 @@ interface components {
24300
25683
  query_families: components["schemas"]["Anon_54e2154d1e2d"];
24301
25684
  source_scope: components["schemas"]["Anon_a3ffad10d15c_5"];
24302
25685
  coverage_metric?: components["schemas"]["Anon_473e554f0735_16"];
25686
+ dimension_groundings?: components["schemas"]["Anon_7cdcf9f62dcd"];
24303
25687
  deprecation?: components["schemas"]["Anon_8f09b448c37f"];
24304
25688
  };
25689
+ AnalyticsDimensionGrounding: {
25690
+ kind: components["schemas"]["Anon_02276af6fec4"];
25691
+ source: components["schemas"]["Anon_872e58432369_4"];
25692
+ note?: components["schemas"]["Anon_ac655a3e6b9f"];
25693
+ };
25694
+ /** @enum {string} */
25695
+ AnalyticsDimensionGroundingKind: "stamped" | "membership_join" | "config_join" | "derived";
24305
25696
  AnalyticsCatalogDeprecation: {
24306
25697
  deprecated: components["schemas"]["Anon_a2b04841bdf1_1"];
24307
25698
  replaced_by?: components["schemas"]["Anon_473e554f0735_17"];
@@ -24344,6 +25735,9 @@ interface components {
24344
25735
  statistical_type?: components["schemas"]["Anon_34eccd68143e"];
24345
25736
  aggregation_semantics?: components["schemas"]["Anon_6a4e149367f5"];
24346
25737
  preferred_analysis_unit?: components["schemas"]["Anon_612059bf001c_6"];
25738
+ numerator_metric?: components["schemas"]["Anon_473e554f0735_20"];
25739
+ denominator_metric?: components["schemas"]["Anon_473e554f0735_21"];
25740
+ derivation?: components["schemas"]["Anon_22c006ff8d66"];
24347
25741
  deprecation?: components["schemas"]["Anon_8f09b448c37f_2"];
24348
25742
  };
24349
25743
  /** @enum {string} */
@@ -24354,6 +25748,18 @@ interface components {
24354
25748
  AnalyticsMetricStatisticalType: "binary" | "count" | "continuous" | "ratio" | "revenue";
24355
25749
  /** @enum {string} */
24356
25750
  AnalyticsMetricAggregationSemantics: "additive" | "semi_additive" | "non_additive";
25751
+ AnalyticsMetricDerivation: {
25752
+ kind: components["schemas"]["Anon_a1d7a3ac66b8"];
25753
+ input_origin: components["schemas"]["Anon_8a96081932e9"];
25754
+ ingested_events: components["schemas"]["Anon_304a69e72d83"];
25755
+ ingested_datasources?: components["schemas"]["Anon_6411eaf2b1b5"];
25756
+ carried_by?: components["schemas"]["Anon_04b033dd40a9"];
25757
+ note?: components["schemas"]["Anon_1e68bee50f0f"];
25758
+ };
25759
+ /** @enum {string} */
25760
+ AnalyticsMetricDerivationKind: "derived" | "observed" | "unavailable";
25761
+ /** @enum {string} */
25762
+ AnalyticsIngestedInputOrigin: "platform" | "customer_authored" | "mixed" | "none";
24357
25763
  AnalyticsCatalogAnnotationKind: {
24358
25764
  kind: components["schemas"]["Anon_7ed6fcd5ece3"];
24359
25765
  label: components["schemas"]["Anon_cd76cef95ac8_4"];
@@ -24367,7 +25773,7 @@ interface components {
24367
25773
  AnalyticsAnnotationMarker: "point" | "region";
24368
25774
  AnalyticsCatalogSearchResult: {
24369
25775
  catalog_version: components["schemas"]["Anon_0c649f0987df_4"];
24370
- query: components["schemas"]["Anon_872e58432369_4"];
25776
+ query: components["schemas"]["Anon_872e58432369_5"];
24371
25777
  entries: components["schemas"]["Anon_57df4039d087"];
24372
25778
  };
24373
25779
  AnalyticsAgentCatalogEntry: {
@@ -24408,7 +25814,7 @@ interface components {
24408
25814
  result: components["schemas"]["Anon_56fff7881fad"];
24409
25815
  };
24410
25816
  AnalyticsResultField: {
24411
- id: components["schemas"]["Anon_473e554f0735_20"];
25817
+ id: components["schemas"]["Anon_473e554f0735_22"];
24412
25818
  type: components["schemas"]["Anon_65ce7e0d8aee_2"];
24413
25819
  nullable: components["schemas"]["Anon_a2b04841bdf1_2"];
24414
25820
  };
@@ -24423,7 +25829,7 @@ interface components {
24423
25829
  };
24424
25830
  AnalyticsResultMeta: {
24425
25831
  query_hash: components["schemas"]["Anon_4e975b8486b2_1"];
24426
- concept: components["schemas"]["Anon_473e554f0735_21"];
25832
+ concept: components["schemas"]["Anon_473e554f0735_23"];
24427
25833
  analytical_unit: components["schemas"]["Anon_612059bf001c_7"];
24428
25834
  source_scope: components["schemas"]["Anon_a3ffad10d15c_8"];
24429
25835
  coverage?: components["schemas"]["Anon_46875cb51ec3"];
@@ -24542,7 +25948,7 @@ interface components {
24542
25948
  created_at: components["schemas"]["Anon_be3e2585472d_2"];
24543
25949
  updated_at: components["schemas"]["Anon_be3e2585472d_3"];
24544
25950
  tenant_id: components["schemas"]["Anon_fb248bf5a9f7_10"];
24545
- workspace_name: components["schemas"]["Anon_872e58432369_5"];
25951
+ workspace_name: components["schemas"]["Anon_872e58432369_6"];
24546
25952
  support_email: components["schemas"]["Anon_7dbd1de5e9ee"];
24547
25953
  timezone: components["schemas"]["Anon_c44ee03a9c5e"];
24548
25954
  default_currency: components["schemas"]["Anon_64586219ef83_1"];
@@ -24570,7 +25976,7 @@ interface components {
24570
25976
  updated_at: components["schemas"]["Anon_be3e2585472d_3"];
24571
25977
  tenant_id: components["schemas"]["Anon_fb248bf5a9f7_10"];
24572
25978
  step_key: components["schemas"]["Anon_3b8fc1cd9e8b_26"];
24573
- label: components["schemas"]["Anon_872e58432369_6"];
25979
+ label: components["schemas"]["Anon_872e58432369_7"];
24574
25980
  done: components["schemas"]["Anon_062d958a93c4_25"];
24575
25981
  completed_at: components["schemas"]["Anon_24a0ac3f017b_4"];
24576
25982
  };
@@ -24601,7 +26007,7 @@ interface components {
24601
26007
  sequence: components["schemas"]["Anon_ffffc3c874cb_1"];
24602
26008
  base_sequence: components["schemas"]["Anon_71a2fb329804_1"];
24603
26009
  handle: components["schemas"]["Anon_2457cccd64aa_12"];
24604
- identifier: components["schemas"]["Anon_872e58432369_7"];
26010
+ identifier: components["schemas"]["Anon_872e58432369_8"];
24605
26011
  identifier_type: components["schemas"]["Anon_b07a1e0dbc7b"];
24606
26012
  note: components["schemas"]["Anon_519dcb817ac7"];
24607
26013
  added_by: components["schemas"]["Anon_127eb78cd9c0_12"];
@@ -26019,6 +27425,14 @@ interface components {
26019
27425
  };
26020
27426
  Anon_cddf8275afa1_17: number;
26021
27427
  Anon_cddf8275afa1_18: number;
27428
+ Anon_883e390a065a_1: {
27429
+ /** @constant */
27430
+ type: "date_range";
27431
+ /** Format: date */
27432
+ start: string;
27433
+ /** Format: date */
27434
+ end: string;
27435
+ };
26022
27436
  /** @default false */
26023
27437
  Anon_062d958a93c4_18: components["schemas"]["Anon_7cb541e84f22_68"];
26024
27438
  Anon_7cb541e84f22_68: boolean;
@@ -26208,6 +27622,14 @@ interface components {
26208
27622
  Anon_54e2154d1e2d: components["schemas"]["AnalyticsQueryFamily"][];
26209
27623
  Anon_a3ffad10d15c_5: components["schemas"]["AnalyticsSourceScope"];
26210
27624
  Anon_473e554f0735_16: components["schemas"]["Anon_c8d24748191b_1"];
27625
+ Anon_7cdcf9f62dcd: components["schemas"]["Anon_ebc742463bcd"];
27626
+ Anon_ebc742463bcd: {
27627
+ [key: string]: components["schemas"]["AnalyticsDimensionGrounding"];
27628
+ };
27629
+ Anon_02276af6fec4: components["schemas"]["AnalyticsDimensionGroundingKind"];
27630
+ Anon_872e58432369_4: string;
27631
+ Anon_ac655a3e6b9f: components["schemas"]["Anon_800d95542a20"];
27632
+ Anon_800d95542a20: string;
26211
27633
  Anon_8f09b448c37f: components["schemas"]["AnalyticsCatalogDeprecation"];
26212
27634
  Anon_a2b04841bdf1_1: boolean;
26213
27635
  Anon_473e554f0735_17: components["schemas"]["Anon_c8d24748191b_1"];
@@ -26250,6 +27672,21 @@ interface components {
26250
27672
  Anon_34eccd68143e: components["schemas"]["AnalyticsMetricStatisticalType"];
26251
27673
  Anon_6a4e149367f5: components["schemas"]["AnalyticsMetricAggregationSemantics"];
26252
27674
  Anon_612059bf001c_6: components["schemas"]["AnalyticsAnalyticalUnit"];
27675
+ Anon_473e554f0735_20: components["schemas"]["Anon_c8d24748191b_1"];
27676
+ Anon_473e554f0735_21: components["schemas"]["Anon_c8d24748191b_1"];
27677
+ Anon_22c006ff8d66: components["schemas"]["AnalyticsMetricDerivation"];
27678
+ Anon_a1d7a3ac66b8: components["schemas"]["AnalyticsMetricDerivationKind"];
27679
+ Anon_8a96081932e9: components["schemas"]["AnalyticsIngestedInputOrigin"];
27680
+ Anon_304a69e72d83: components["schemas"]["Anon_64fcdc575ad5"][];
27681
+ Anon_64fcdc575ad5: string;
27682
+ Anon_6411eaf2b1b5: components["schemas"]["Anon_d36735de5e00"];
27683
+ Anon_d36735de5e00: components["schemas"]["Anon_64fcdc575ad5_1"][];
27684
+ Anon_64fcdc575ad5_1: string;
27685
+ Anon_04b033dd40a9: components["schemas"]["Anon_c6d8e2b09e6d"];
27686
+ Anon_c6d8e2b09e6d: components["schemas"]["Anon_64fcdc575ad5_2"][];
27687
+ Anon_64fcdc575ad5_2: string;
27688
+ Anon_1e68bee50f0f: components["schemas"]["Anon_45ca91dbcd70"];
27689
+ Anon_45ca91dbcd70: string;
26253
27690
  Anon_8f09b448c37f_2: components["schemas"]["AnalyticsCatalogDeprecation"];
26254
27691
  Anon_203017ce4604: components["schemas"]["Anon_d9dbfa5954cd"];
26255
27692
  Anon_d9dbfa5954cd: components["schemas"]["AnalyticsCatalogAnnotationKind"][];
@@ -26259,7 +27696,7 @@ interface components {
26259
27696
  Anon_8783ccc02cda: components["schemas"]["AnalyticsAnnotationSource"];
26260
27697
  Anon_85e861e36da5: components["schemas"]["AnalyticsAnnotationMarker"];
26261
27698
  Anon_0c649f0987df_4: string;
26262
- Anon_872e58432369_4: string;
27699
+ Anon_872e58432369_5: string;
26263
27700
  Anon_57df4039d087: components["schemas"]["AnalyticsAgentCatalogEntry"][];
26264
27701
  Anon_53c09eaf03ab_7: components["schemas"]["AnalyticsSemanticIdOutput"];
26265
27702
  Anon_33085dabcc5b: components["schemas"]["AnalyticsAgentCatalogEntryKind"];
@@ -26300,12 +27737,12 @@ interface components {
26300
27737
  [key: string]: unknown;
26301
27738
  };
26302
27739
  Anon_0bd5ae84ded2: components["schemas"]["AnalyticsResultField"][];
26303
- Anon_473e554f0735_20: components["schemas"]["Anon_c8d24748191b_1"];
27740
+ Anon_473e554f0735_22: components["schemas"]["Anon_c8d24748191b_1"];
26304
27741
  Anon_65ce7e0d8aee_2: components["schemas"]["AnalyticsFieldType"];
26305
27742
  Anon_a2b04841bdf1_2: boolean;
26306
27743
  Anon_de5c7379be05: components["schemas"]["AnalyticsResultMeta"];
26307
27744
  Anon_4e975b8486b2_1: string;
26308
- Anon_473e554f0735_21: components["schemas"]["Anon_c8d24748191b_1"];
27745
+ Anon_473e554f0735_23: components["schemas"]["Anon_c8d24748191b_1"];
26309
27746
  Anon_612059bf001c_7: components["schemas"]["AnalyticsAnalyticalUnit"];
26310
27747
  Anon_a3ffad10d15c_8: components["schemas"]["AnalyticsSourceScope"];
26311
27748
  Anon_46875cb51ec3: components["schemas"]["AnalyticsCoverage"];
@@ -26456,7 +27893,7 @@ interface components {
26456
27893
  /** @default true */
26457
27894
  Anon_493deecc809a_15: components["schemas"]["Anon_7cb541e84f22_77"];
26458
27895
  Anon_7cb541e84f22_77: boolean;
26459
- Anon_872e58432369_5: string;
27896
+ Anon_872e58432369_6: string;
26460
27897
  /** @default null */
26461
27898
  Anon_7dbd1de5e9ee: components["schemas"]["Anon_39a43881005e_2"];
26462
27899
  Anon_39a43881005e_2: string | null;
@@ -26499,7 +27936,7 @@ interface components {
26499
27936
  Anon_062d958a93c4_24: components["schemas"]["Anon_7cb541e84f22_79"];
26500
27937
  Anon_7cb541e84f22_79: boolean;
26501
27938
  Anon_3b8fc1cd9e8b_26: string;
26502
- Anon_872e58432369_6: string;
27939
+ Anon_872e58432369_7: string;
26503
27940
  /** @default false */
26504
27941
  Anon_062d958a93c4_25: components["schemas"]["Anon_7cb541e84f22_80"];
26505
27942
  Anon_7cb541e84f22_80: boolean;
@@ -26526,7 +27963,7 @@ interface components {
26526
27963
  /** Format: date-time */
26527
27964
  Anon_be3e2585472d_10: string;
26528
27965
  Anon_2457cccd64aa_12: components["schemas"]["Anon_0eb2e3b6e08c_3"];
26529
- Anon_872e58432369_7: string;
27966
+ Anon_872e58432369_8: string;
26530
27967
  /** @default user_id */
26531
27968
  Anon_b07a1e0dbc7b: components["schemas"]["PlacementTestUserIdentifierType"];
26532
27969
  /** @default null */
@@ -27033,7 +28470,7 @@ interface components {
27033
28470
  id: components["schemas"]["Anon_57796118d046_59"];
27034
28471
  label?: components["schemas"]["Anon_4e04ec5cc4e6_16"];
27035
28472
  };
27036
- AnalyticsFilterValueOutput: components["schemas"]["Anon_ac51ea83ce2a_1"] | components["schemas"]["Anon_0c21718d6f50_1"] | components["schemas"]["Anon_f84cd6df4c09_1"] | components["schemas"]["Anon_6dcff20eb273_1"];
28473
+ AnalyticsFilterValueOutput: components["schemas"]["Anon_ac51ea83ce2a_1"] | components["schemas"]["Anon_0c21718d6f50_1"] | components["schemas"]["Anon_f84cd6df4c09_1"] | components["schemas"]["Anon_6dcff20eb273_1"] | components["schemas"]["Anon_883e390a065a_1"];
27037
28474
  AnalyticsCompareSegmentOutput: {
27038
28475
  dimension: components["schemas"]["Anon_473e554f0735_4"];
27039
28476
  baseline: components["schemas"]["Anon_dce4d091369d_2"];
@@ -28939,7 +30376,7 @@ interface operations {
28939
30376
  };
28940
30377
  requestBody: {
28941
30378
  content: {
28942
- "application/json": components["schemas"]["TreatmentInteractionInput"];
30379
+ "application/json": components["schemas"]["TreatmentInteractionRequest"];
28943
30380
  };
28944
30381
  };
28945
30382
  responses: {
@@ -29209,6 +30646,16 @@ interface CanonicalExperimentAllocation {
29209
30646
  /** Unit represented by the stable subject identifier; defaults to `user`. */
29210
30647
  assignment_unit?: Experiment['assignment_unit'];
29211
30648
  variants: ReadonlyArray<Pick<Experiment['variants'][number], 'variant_id' | 'weight'>>;
30649
+ /**
30650
+ * Canonical experiment version — the `Experiment.sequence` this allocation
30651
+ * was taken from (plan 224, war-games spec §9.1). When present, the native
30652
+ * provider derives an {@link ExperimentAssignmentFactDeclaration} so
30653
+ * assignments emit the `experiment_assigned` assignment fact with the real
30654
+ * (handle, version) SRM join key. When absent, assignment still works but
30655
+ * no fact is emitted for this experiment — a fact with a fabricated
30656
+ * version is worse than a missing one.
30657
+ */
30658
+ sequence?: Experiment['sequence'];
29212
30659
  }
29213
30660
  /** One supported canonical experiment assignment unit. */
29214
30661
  type NativeExperimentAssignmentUnit = NonNullable<Experiment['assignment_unit']>;
@@ -29256,7 +30703,7 @@ declare function adaptExperimentVersionToBucketer(experiment: CanonicalExperimen
29256
30703
  * Build the native assignment provider whose allocation authority is the
29257
30704
  * canonical Experiment version rather than duplicated SDK configuration.
29258
30705
  */
29259
- declare function createNativeExperimentAssignmentProvider(options: NativeExperimentAssignmentOptions): ExperimentAssignmentProvider;
30706
+ declare function createNativeExperimentAssignmentProvider(options: NativeExperimentAssignmentOptions): ExperimentAssignmentProvider & ExperimentAssignmentFactMetadataCarrier;
29260
30707
  /**
29261
30708
  * Build the built-in bucketer. Register it explicitly to switch it on:
29262
30709
  *
@@ -31339,5 +32786,5 @@ declare function RevTurbineThemeProvider({ theme, children }: RevTurbineThemePro
31339
32786
  */
31340
32787
  declare function useRevTurbineTheme(): RevTurbineTheme;
31341
32788
 
31342
- export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, AccessGateSurfaceSlot, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AgentConnectorSlot as AgentConnectorComponent, AgentConnectorSlot, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BannerSlot as BannerComponent, BannerFrame, BannerSlot, BannerSurface, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, ButtonSlot as ButtonComponent, ButtonSlot, ButtonSurface, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, CliSlot as CliComponent, CliSlot, ClientContextSchema, ClientSafe, CohortMonthSchema, CompactCircularGauge, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CreditBalanceSlot as CreditBalanceComponent, CreditBalanceSlot, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CtaResolverRegistry, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_TEMPLATE_COMPONENT_TYPES, DEFAULT_THEME, DEPRECATED_EVENT_NAMES, DOGFOOD_CLIENT_EVENT_NAMES, DataClassification, DecisionEngine, DecisionOnly, DefaultTemplateIdsSchema, DescriptionField, DetectorRequirementsSchema, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, ENTITLEMENT_STATUS_VALUES, EVENT_PREFIX_FAMILIES, EmailPreviewSlot as EmailPreviewComponent, EmailPreviewSlot, EnforcementActionSchema, EnforcementModeSchema, EngagementArea, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, EvidenceRequirementSchema, ExperimentAnalysisConfigSchema, ExperimentAnalysisConfigVersionError, ExperimentAnalysisDefinitionSchema, ExperimentAnalysisResultRecordSchema, ExperimentAnalysisResultSchema, ExperimentAssignmentFactSchema, ExperimentAssignmentSourceSchema, ExperimentDecisionFindingCodeSchema, ExperimentDecisionPolicySchema, ExperimentDecisionPolicyVersionError, ExperimentDecisionRecordSchema, ExperimentDecisionTypeSchema, ExperimentEvidenceSchema, ExperimentEvidenceSnapshotSchema, ExperimentHealthSchema, ExperimentMetricEvidencePlanSchema, ExperimentMetricResultSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, ExperimentVariantTargetSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FAMILY_RENDER_COMPATIBILITY, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FIXTURE_ANALYTICS_CATALOG, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FixedSurfaceSlot, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FullPageSlot as FullPageComponent, FullPageSlot, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, AccessGateSurfaceSlot as Gate, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, InPageSlot as InPageComponent, InPageSlot, InPageSurface, IngestedEventSchema, InlineCardPlacement, InlineEmbedSlot as InlineEmbedComponent, InlineEmbedSlot, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MessageSurfaceSlot, MetadataField, MeteringConfigSchema, ModalSlot as ModalComponent, ModalFrame, ModalSlot, ModalSurface, NameField, NullableDatetimeField, ObservationMaturitySchema, OnboardingChecklistSchema, OnboardingStateSchema, OpportunityCandidateSchema, OpportunityEvidenceSchema, OpportunityInterpretationSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLATFORM_EMITTED_EVENT_NAMES, PLATFORM_EVENT_TAXONOMY, PLAYBOOK_FORMAT_VERSION, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, Placement, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionInspector, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementRenderer, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, PushPreviewSlot as PushPreviewComponent, PushPreviewSlot, QuotaMeterSlot as QuotaMeterComponent, QuotaMeterFrame, QuotaMeterSlot, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, SurfaceSlotComponent as RTSlot, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineProvider, RevTurbineServer, RevTurbineThemeProvider, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentDimensionSchema, SegmentSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, SurfaceSlotComponent as Slot, SmsPreviewSlot as SmsPreviewComponent, SmsPreviewSlot, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotComponent, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TelemetryScope, TelemetryScopeContext, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, ToastSlot as ToastComponent, ToastSlot, ToastSurface, TooltipSlot as TooltipComponent, TooltipSlot, Track, TrackEventSchema, TrackIngestBatchSchema, TrackOnView, TreatmentInteractionInputSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserProfile, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, bridgeUiPathResolversIntoRegistry, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, categorizeActionError, changelogPaths, clearPersistedTheme, collectPersistedSchemas, collectVersionedConfigEntities, compileAnalyticsDraft, composeEffectiveExperimentContext, configPaths, contentPaths, createAnalyticsProvider, createBasicExperimentProvider, createChainedPlacementRequest, createCompositeExperimentProvider, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createFixtureAnalyticsCatalog, createHydrationProviders, createInMemoryAnalyticsCatalog, createLocalRuntimeConfig, createNativeExperimentAssignmentProvider, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, customerPaths, defaultRenderForQuery, defineUiPathResolvers, deriveLocalTrialStatusFromInstance, derivePlacementPersonalizationTokens, deriveReverseTrialGrants, dispatchCtaClick, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultCtaResolverRegistry, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isBrowser, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, registerBuiltinSlotTypes, registerBuiltinSnoozeResolver, registerCtaResolver, registerServerActionResolvers, requireSchemaFacets, resetDefaultCtaResolverRegistry, resetDefaultRegistry, resolveBranding, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unregisterCtaResolver, useAddons, useCan, useEntitlement, useGatedAction, usePlacement, usePlacementPersonalization, usePlans, useRevTurbine, useRevTurbineTheme, useSurfaceSlot, useTelemetryProps, useTelemetryScope, useTrack, useTrackedAction, useUsageSnapshot, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validatePlacementThresholdWarnings };
31343
- export type { AccessGateCheck, AccessGateSurfaceSlotProps, ActionErrorCategory, ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, AgentConnectorSlotProps as AgentConnectorComponentProps, AgentConnectorSlotProps, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BannerSlotProps as BannerComponentProps, BannerFrameProps, BannerSlotProps, BannerSurfaceProps, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, ButtonSlotProps as ButtonComponentProps, ButtonSlotProps, ButtonSurfaceProps, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, CliSlotProps as CliComponentProps, CliSlotProps, ClientContext, CohortMonth, CompactCircularGaugeProps, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CreditBalanceSlotProps as CreditBalanceComponentProps, CreditBalanceSlotProps, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, CtaResolver, CtaResolverContext, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EnforcementAction, EnforcementMode, EngagementAreaProps, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventIngestBatch, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, EvidenceRequirement, Exact, Experiment, ExperimentAnalysisConfig, ExperimentAnalysisDefinition, ExperimentAnalysisResult, ExperimentAnalysisResultRecord, ExperimentAssignmentFact, ExperimentAssignmentProvider, ExperimentAssignmentSource, ExperimentDecisionFindingCode, ExperimentDecisionPolicy, ExperimentDecisionRecord, ExperimentDecisionType, ExperimentEvidence, ExperimentEvidenceSnapshot, ExperimentHealth, ExperimentMetricEvidencePlan, ExperimentMetricResult, ExperimentProvider, ExperimentProviderState, ExperimentStatus, ExperimentType, ExperimentVariant, ExperimentVariantNonAssignmentReason, ExperimentVariantSelection, ExperimentVariantTarget, Playbook as ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FixedSurfaceSlotProps, FlagValueType, FreeTrialRule, FreeTrialSettings, FullPageSlotProps as FullPageComponentProps, FullPageSlotProps, FunnelStep, AccessGateSurfaceSlotProps as GateProps, GatedAction, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, InPageSlotProps as InPageComponentProps, InPageSlotProps, InPageSurfaceProps, IngestWriteScope, IngestedEvent, InlineCardPlacementProps, InlineEmbedSlotProps as InlineEmbedComponentProps, InlineEmbedSlotProps, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MessageSurfaceSlotProps, MessageSurfaceSlotRef, MessageTriggerType, MeteringConfig, ModalSlotProps as ModalComponentProps, ModalFrameProps, ModalLayout, ModalSlotProps, ModalSurfaceProps, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionInspectorProps, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementProps, PlacementRendererProps, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookStrict, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, QuotaMeterSlotProps as QuotaMeterComponentProps, QuotaMeterFrameProps, QuotaMeterSlotProps, SurfaceSlotComponentProps as RTSlotProps, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, Playbook as RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineProviderProps, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, ServerActionContext, ServerActionHandler, ServerActionMap, ServerActionResult, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserContext, ServerUserContextSnapshot, Severity, SurfaceSlotComponentProps as SlotProps, StaticPlacementResolverOptions, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StudioSurfaceType, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceSlotCategory, SurfaceSlotComponentProps, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TelemetryScopeProps, TelemetryScopeValue, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, ToastSlotProps as ToastComponentProps, ToastSlotProps, ToastSurfaceProps, TooltipSlotProps as TooltipComponentProps, TooltipSlotProps, TrackEvent, TrackFn, TrackIngestBatch, TrackOnViewProps, TrackOptions, TrackProps, TrackPurpose, TrackedAction, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionInput, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UseAddonsResult, UseCanResult, UseEntitlementOptions, UseEntitlementResult, UsePlacementOptions, UsePlacementPersonalizationOptions, UsePlacementResult, UsePlansResult, UseSurfaceSlotOptions, UseSurfaceSlotResult, UseUsageSnapshotResult, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserProfileProps, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookEventLog, WebhookEventSource, WebhookEventStatus };
32789
+ export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, AccessGateSurfaceSlot, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AgentConnectorSlot as AgentConnectorComponent, AgentConnectorSlot, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogMetricValidatedSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BannerSlot as BannerComponent, BannerFrame, BannerSlot, BannerSurface, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, ButtonSlot as ButtonComponent, ButtonSlot, ButtonSurface, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, CliSlot as CliComponent, CliSlot, ClientContextSchema, ClientSafe, CohortMonthSchema, CompactCircularGauge, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CreditBalanceSlot as CreditBalanceComponent, CreditBalanceSlot, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CtaResolverRegistry, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_TEMPLATE_COMPONENT_TYPES, DEFAULT_THEME, DEPRECATED_EVENT_NAMES, DOGFOOD_CLIENT_EVENT_NAMES, DataClassification, DecisionEngine, DecisionOnly, DefaultTemplateIdsSchema, DescriptionField, DetectorRequirementsSchema, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EMITTABLE_PLATFORM_EVENT_NAMES, ENTITLEMENT_STATUS_VALUES, EVENT_PAYLOAD_CONTRACTS, EVENT_PAYLOAD_EVENT_NAMES, EVENT_PREFIX_FAMILIES, EmailPreviewSlot as EmailPreviewComponent, EmailPreviewSlot, EnforcementActionSchema, EnforcementModeSchema, EngagementArea, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, EvidenceRequirementSchema, ExperimentAnalysisConfigSchema, ExperimentAnalysisConfigVersionError, ExperimentAnalysisDefinitionSchema, ExperimentAnalysisResultRecordSchema, ExperimentAnalysisResultSchema, ExperimentAssignmentFactSchema, ExperimentAssignmentSourceSchema, ExperimentDecisionFindingCodeSchema, ExperimentDecisionPolicySchema, ExperimentDecisionPolicyVersionError, ExperimentDecisionRecordSchema, ExperimentDecisionTypeSchema, ExperimentEvidenceSchema, ExperimentEvidenceSnapshotSchema, ExperimentHealthSchema, ExperimentMetricEvidencePlanSchema, ExperimentMetricResultSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, ExperimentVariantTargetSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FAMILY_RENDER_COMPATIBILITY, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FIXTURE_ANALYTICS_CATALOG, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FixedSurfaceSlot, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FullPageSlot as FullPageComponent, FullPageSlot, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, AccessGateSurfaceSlot as Gate, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, InPageSlot as InPageComponent, InPageSlot, InPageSurface, IngestedEventSchema, InlineCardPlacement, InlineEmbedSlot as InlineEmbedComponent, InlineEmbedSlot, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MessageSurfaceSlot, MetadataField, MeteringConfigSchema, ModalSlot as ModalComponent, ModalFrame, ModalSlot, ModalSurface, NameField, NullableDatetimeField, ObservationMaturitySchema, OnboardingChecklistSchema, OnboardingStateSchema, OpportunityCandidateSchema, OpportunityEvidenceSchema, OpportunityInterpretationSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLATFORM_EMITTED_EVENT_NAMES, PLATFORM_EVENT_TAXONOMY, PLAYBOOK_FORMAT_VERSION, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, Placement, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionInspector, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementRenderer, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, PushPreviewSlot as PushPreviewComponent, PushPreviewSlot, QuotaMeterSlot as QuotaMeterComponent, QuotaMeterFrame, QuotaMeterSlot, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, SurfaceSlotComponent as RTSlot, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineProvider, RevTurbineServer, RevTurbineThemeProvider, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SDK_SERVER_EVENT_NAMES, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentDimensionSchema, SegmentSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, SurfaceSlotComponent as Slot, SmsPreviewSlot as SmsPreviewComponent, SmsPreviewSlot, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotComponent, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TelemetryScope, TelemetryScopeContext, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, ToastSlot as ToastComponent, ToastSlot, ToastSurface, TooltipSlot as TooltipComponent, TooltipSlot, Track, TrackEventSchema, TrackIngestBatchSchema, TrackOnView, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserProfile, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WEBHOOK_DERIVED_EVENT_NAMES, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, bridgeUiPathResolversIntoRegistry, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, categorizeActionError, changelogPaths, clearPersistedTheme, collectAssignmentFactDeclarations, collectPersistedSchemas, collectVersionedConfigEntities, compileAnalyticsDraft, composeEffectiveExperimentContext, configPaths, contentPaths, createAnalyticsProvider, createBasicExperimentProvider, createChainedPlacementRequest, createCompositeExperimentProvider, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createFixtureAnalyticsCatalog, createHydrationProviders, createInMemoryAnalyticsCatalog, createLocalRuntimeConfig, createNativeExperimentAssignmentProvider, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, customerPaths, defaultRenderForQuery, defineUiPathResolvers, deriveLocalTrialStatusFromInstance, derivePlacementPersonalizationTokens, deriveReverseTrialGrants, dispatchCtaClick, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultCtaResolverRegistry, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isAnalyticsDateRangeFilterValue, isBrowser, isExperimentAssignmentFactDeclaration, isLegacyDateRangeArray, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, namespacePlatformCollision, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, registerBuiltinSlotTypes, registerBuiltinSnoozeResolver, registerCtaResolver, registerServerActionResolvers, requireSchemaFacets, resetDefaultCtaResolverRegistry, resetDefaultRegistry, resolveBranding, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unregisterCtaResolver, useAddons, useCan, useEntitlement, useGatedAction, usePlacement, usePlacementPersonalization, usePlans, useRevTurbine, useRevTurbineTheme, useSurfaceSlot, useTelemetryProps, useTelemetryScope, useTrack, useTrackedAction, useUsageSnapshot, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateEventPayload, validatePlacementThresholdWarnings };
32790
+ export type { AccessGateCheck, AccessGateSurfaceSlotProps, ActionErrorCategory, ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, AgentConnectorSlotProps as AgentConnectorComponentProps, AgentConnectorSlotProps, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BannerSlotProps as BannerComponentProps, BannerFrameProps, BannerSlotProps, BannerSurfaceProps, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, ButtonSlotProps as ButtonComponentProps, ButtonSlotProps, ButtonSurfaceProps, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, CliSlotProps as CliComponentProps, CliSlotProps, ClientContext, CohortMonth, CompactCircularGaugeProps, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CreditBalanceSlotProps as CreditBalanceComponentProps, CreditBalanceSlotProps, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, CtaResolver, CtaResolverContext, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, EngagementAreaProps, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, EvidenceRequirement, Exact, Experiment, ExperimentAnalysisConfig, ExperimentAnalysisDefinition, ExperimentAnalysisResult, ExperimentAnalysisResultRecord, ExperimentAssignmentFact, ExperimentAssignmentFactDeclaration, ExperimentAssignmentFactMetadataCarrier, ExperimentAssignmentProvider, ExperimentAssignmentSource, ExperimentDecisionFindingCode, ExperimentDecisionPolicy, ExperimentDecisionRecord, ExperimentDecisionType, ExperimentEvidence, ExperimentEvidenceSnapshot, ExperimentHealth, ExperimentMetricEvidencePlan, ExperimentMetricResult, ExperimentProvider, ExperimentProviderState, ExperimentStatus, ExperimentType, ExperimentVariant, ExperimentVariantNonAssignmentReason, ExperimentVariantSelection, ExperimentVariantTarget, Playbook as ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FixedSurfaceSlotProps, FlagValueType, FreeTrialRule, FreeTrialSettings, FullPageSlotProps as FullPageComponentProps, FullPageSlotProps, FunnelStep, AccessGateSurfaceSlotProps as GateProps, GatedAction, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, InPageSlotProps as InPageComponentProps, InPageSlotProps, InPageSurfaceProps, IngestWriteScope, IngestedEvent, InlineCardPlacementProps, InlineEmbedSlotProps as InlineEmbedComponentProps, InlineEmbedSlotProps, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MessageSurfaceSlotProps, MessageSurfaceSlotRef, MessageTriggerType, MeteringConfig, ModalSlotProps as ModalComponentProps, ModalFrameProps, ModalLayout, ModalSlotProps, ModalSurfaceProps, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionInspectorProps, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementProps, PlacementRendererProps, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookStrict, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, QuotaMeterSlotProps as QuotaMeterComponentProps, QuotaMeterFrameProps, QuotaMeterSlotProps, SurfaceSlotComponentProps as RTSlotProps, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, Playbook as RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineProviderProps, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, ServerActionContext, ServerActionHandler, ServerActionMap, ServerActionResult, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserContext, ServerUserContextSnapshot, Severity, SurfaceSlotComponentProps as SlotProps, StaticPlacementResolverOptions, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StudioSurfaceType, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceSlotCategory, SurfaceSlotComponentProps, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TelemetryScopeProps, TelemetryScopeValue, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, ToastSlotProps as ToastComponentProps, ToastSlotProps, ToastSurfaceProps, TooltipSlotProps as TooltipComponentProps, TooltipSlotProps, TrackEvent, TrackFn, TrackIngestBatch, TrackOnViewProps, TrackOptions, TrackProps, TrackPurpose, TrackedAction, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UseAddonsResult, UseCanResult, UseEntitlementOptions, UseEntitlementResult, UsePlacementOptions, UsePlacementPersonalizationOptions, UsePlacementResult, UsePlansResult, UseSurfaceSlotOptions, UseSurfaceSlotResult, UseUsageSnapshotResult, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserProfileProps, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookEventLog, WebhookEventSource, WebhookEventStatus };