@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.
@@ -3040,8 +3040,22 @@ declare const LocalizedTextSchema: z.ZodObject<{
3040
3040
  }, z.core.$strict>;
3041
3041
  /**
3042
3042
  * The bounded value space for filter defaults and fixed filters: scalars,
3043
- * scalar lists, a date-range preset, or a numeric range. Deliberately not
3044
- * `unknown` — every persisted value must be JSON-plain and enumerable.
3043
+ * scalar lists, a date-range preset, an explicit date range, or a numeric
3044
+ * range. Deliberately not `unknown` — every persisted value must be
3045
+ * JSON-plain and enumerable.
3046
+ *
3047
+ * The explicit date-range variant (`type: 'date_range'`) exists precisely
3048
+ * because `z.array(FilterScalar)` (the scalar-list variant, used for
3049
+ * multi-select) is structurally indistinguishable from a two-element date
3050
+ * array — `["2026-06-01","2026-08-27"]` reads equally well as "either of
3051
+ * these two dates" or "the range between them" with no way to tell which
3052
+ * was meant (plan 226 REQ-5). A tagged shape removes the ambiguity at the
3053
+ * type level instead of leaving every consumer to re-derive the same
3054
+ * "is this array actually a range?" heuristic. The bare-array encoding
3055
+ * remains valid here (REQ-9): existing saved-view documents and URLs
3056
+ * already use it, and this is a strictly additive union member, not a
3057
+ * replacement — decoders should prefer the tagged shape going forward and
3058
+ * treat a bare two-date array as a legacy range for read compatibility.
3045
3059
  */
3046
3060
  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<{
3047
3061
  preset: z.ZodString;
@@ -3056,7 +3070,29 @@ declare const AnalyticsFilterValueSchema: z.ZodUnion<readonly [z.ZodUnion<readon
3056
3070
  }, z.core.$strict>, z.ZodObject<{
3057
3071
  min: z.ZodOptional<z.ZodNumber>;
3058
3072
  max: z.ZodOptional<z.ZodNumber>;
3073
+ }, z.core.$strict>, z.ZodObject<{
3074
+ type: z.ZodLiteral<"date_range">;
3075
+ start: z.ZodString;
3076
+ end: z.ZodString;
3059
3077
  }, z.core.$strict>]>;
3078
+ /** Discriminant for the explicit date-range variant above. */
3079
+ declare const ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE: "date_range";
3080
+ interface AnalyticsDateRangeFilterValue {
3081
+ type: typeof ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE;
3082
+ start: string;
3083
+ end: string;
3084
+ }
3085
+ /** Guard distinguishing the tagged date-range shape from every other
3086
+ * `AnalyticsFilterValue` variant (including the legacy bare-array range and
3087
+ * a same-shaped multi-select list) — the type-safe alternative to each
3088
+ * consumer re-deriving "is this array/object actually a date range?". */
3089
+ declare function isAnalyticsDateRangeFilterValue(value: unknown): value is AnalyticsDateRangeFilterValue;
3090
+ /** Guard for the legacy bare two-element-array date-range encoding
3091
+ * (`["2026-06-01","2026-08-27"]`) that predates the tagged shape above —
3092
+ * distinguishes it from a same-shaped multi-select scalar list by requiring
3093
+ * both entries to look like ISO dates, matching every existing decoder's
3094
+ * heuristic (plan 226 REQ-5's rule-of-three consolidation target). */
3095
+ declare function isLegacyDateRangeArray(value: unknown): value is [string, string];
3060
3096
  declare const AnalyticsSemanticFilterSchema: z.ZodObject<{
3061
3097
  dimension: z.ZodString;
3062
3098
  operator: z.ZodEnum<{
@@ -3084,6 +3120,10 @@ declare const AnalyticsSemanticFilterSchema: z.ZodObject<{
3084
3120
  }, z.core.$strict>, z.ZodObject<{
3085
3121
  min: z.ZodOptional<z.ZodNumber>;
3086
3122
  max: z.ZodOptional<z.ZodNumber>;
3123
+ }, z.core.$strict>, z.ZodObject<{
3124
+ type: z.ZodLiteral<"date_range">;
3125
+ start: z.ZodString;
3126
+ end: z.ZodString;
3087
3127
  }, z.core.$strict>]>>;
3088
3128
  }, z.core.$strict>;
3089
3129
  /**
@@ -3286,6 +3326,113 @@ declare const AnalyticsCatalogMetricSchema: z.ZodObject<{
3286
3326
  billing_unit: "billing_unit";
3287
3327
  organization: "organization";
3288
3328
  }>>;
3329
+ numerator_metric: z.ZodOptional<z.ZodString>;
3330
+ denominator_metric: z.ZodOptional<z.ZodString>;
3331
+ derivation: z.ZodOptional<z.ZodObject<{
3332
+ kind: z.ZodEnum<{
3333
+ derived: "derived";
3334
+ observed: "observed";
3335
+ unavailable: "unavailable";
3336
+ }>;
3337
+ input_origin: z.ZodEnum<{
3338
+ none: "none";
3339
+ platform: "platform";
3340
+ customer_authored: "customer_authored";
3341
+ mixed: "mixed";
3342
+ }>;
3343
+ ingested_events: z.ZodArray<z.ZodString>;
3344
+ ingested_datasources: z.ZodOptional<z.ZodArray<z.ZodString>>;
3345
+ carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3346
+ note: z.ZodOptional<z.ZodString>;
3347
+ }, z.core.$strip>>;
3348
+ deprecation: z.ZodOptional<z.ZodObject<{
3349
+ deprecated: z.ZodBoolean;
3350
+ replaced_by: z.ZodOptional<z.ZodString>;
3351
+ }, z.core.$strip>>;
3352
+ }, z.core.$strip>;
3353
+ /**
3354
+ * Validated catalog metric — adds the structural check that ratio
3355
+ * composition refs travel with (and only with) `statistical_type: 'ratio'`:
3356
+ * a ratio metric MUST name both `numerator_metric` and `denominator_metric`,
3357
+ * and any other (or absent) statistical type MUST NOT carry either ref.
3358
+ *
3359
+ * The canonical `AnalyticsCatalogMetricSchema` stays a plain `z.ZodObject`
3360
+ * so OpenAPI / JSON Schema generation keeps working (same split as
3361
+ * `EntitlementRuleValidatedSchema`); use this schema wherever catalog
3362
+ * metrics are authored or generated.
3363
+ */
3364
+ declare const AnalyticsCatalogMetricValidatedSchema: z.ZodObject<{
3365
+ id: z.ZodString;
3366
+ label: z.ZodString;
3367
+ description: z.ZodOptional<z.ZodString>;
3368
+ when_to_use: z.ZodOptional<z.ZodString>;
3369
+ do_not_use_for: z.ZodOptional<z.ZodString>;
3370
+ value_type: z.ZodEnum<{
3371
+ string: "string";
3372
+ number: "number";
3373
+ boolean: "boolean";
3374
+ date: "date";
3375
+ currency: "currency";
3376
+ datetime: "datetime";
3377
+ percent: "percent";
3378
+ }>;
3379
+ format: z.ZodOptional<z.ZodObject<{
3380
+ type: z.ZodEnum<{
3381
+ number: "number";
3382
+ currency: "currency";
3383
+ duration: "duration";
3384
+ percent: "percent";
3385
+ }>;
3386
+ decimals: z.ZodOptional<z.ZodNumber>;
3387
+ compact: z.ZodOptional<z.ZodBoolean>;
3388
+ }, z.core.$strict>>;
3389
+ source_scope: z.ZodOptional<z.ZodEnum<{
3390
+ total: "total";
3391
+ revturbine_tracked: "revturbine_tracked";
3392
+ revturbine_influenced: "revturbine_influenced";
3393
+ }>>;
3394
+ direction: z.ZodOptional<z.ZodEnum<{
3395
+ increase: "increase";
3396
+ decrease: "decrease";
3397
+ neutral: "neutral";
3398
+ }>>;
3399
+ statistical_type: z.ZodOptional<z.ZodEnum<{
3400
+ count: "count";
3401
+ ratio: "ratio";
3402
+ binary: "binary";
3403
+ continuous: "continuous";
3404
+ revenue: "revenue";
3405
+ }>>;
3406
+ aggregation_semantics: z.ZodOptional<z.ZodEnum<{
3407
+ additive: "additive";
3408
+ semi_additive: "semi_additive";
3409
+ non_additive: "non_additive";
3410
+ }>>;
3411
+ preferred_analysis_unit: z.ZodOptional<z.ZodEnum<{
3412
+ account: "account";
3413
+ user: "user";
3414
+ billing_unit: "billing_unit";
3415
+ organization: "organization";
3416
+ }>>;
3417
+ numerator_metric: z.ZodOptional<z.ZodString>;
3418
+ denominator_metric: z.ZodOptional<z.ZodString>;
3419
+ derivation: z.ZodOptional<z.ZodObject<{
3420
+ kind: z.ZodEnum<{
3421
+ derived: "derived";
3422
+ observed: "observed";
3423
+ unavailable: "unavailable";
3424
+ }>;
3425
+ input_origin: z.ZodEnum<{
3426
+ none: "none";
3427
+ platform: "platform";
3428
+ customer_authored: "customer_authored";
3429
+ mixed: "mixed";
3430
+ }>;
3431
+ ingested_events: z.ZodArray<z.ZodString>;
3432
+ ingested_datasources: z.ZodOptional<z.ZodArray<z.ZodString>>;
3433
+ carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3434
+ note: z.ZodOptional<z.ZodString>;
3435
+ }, z.core.$strip>>;
3289
3436
  deprecation: z.ZodOptional<z.ZodObject<{
3290
3437
  deprecated: z.ZodBoolean;
3291
3438
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -3326,6 +3473,16 @@ declare const AnalyticsCatalogConceptSchema: z.ZodObject<{
3326
3473
  revturbine_influenced: "revturbine_influenced";
3327
3474
  }>;
3328
3475
  coverage_metric: z.ZodOptional<z.ZodString>;
3476
+ dimension_groundings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3477
+ kind: z.ZodEnum<{
3478
+ derived: "derived";
3479
+ stamped: "stamped";
3480
+ membership_join: "membership_join";
3481
+ config_join: "config_join";
3482
+ }>;
3483
+ source: z.ZodString;
3484
+ note: z.ZodOptional<z.ZodString>;
3485
+ }, z.core.$strip>>>;
3329
3486
  deprecation: z.ZodOptional<z.ZodObject<{
3330
3487
  deprecated: z.ZodBoolean;
3331
3488
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -3381,6 +3538,10 @@ declare const AnalyticsViewQuerySchema: z.ZodObject<{
3381
3538
  }, z.core.$strict>, z.ZodObject<{
3382
3539
  min: z.ZodOptional<z.ZodNumber>;
3383
3540
  max: z.ZodOptional<z.ZodNumber>;
3541
+ }, z.core.$strict>, z.ZodObject<{
3542
+ type: z.ZodLiteral<"date_range">;
3543
+ start: z.ZodString;
3544
+ end: z.ZodString;
3384
3545
  }, z.core.$strict>]>>;
3385
3546
  }, z.core.$strict>>>;
3386
3547
  compare: z.ZodOptional<z.ZodEnum<{
@@ -3644,6 +3805,10 @@ declare const AnalyticsViewFilterSchema: z.ZodObject<{
3644
3805
  }, z.core.$strict>, z.ZodObject<{
3645
3806
  min: z.ZodOptional<z.ZodNumber>;
3646
3807
  max: z.ZodOptional<z.ZodNumber>;
3808
+ }, z.core.$strict>, z.ZodObject<{
3809
+ type: z.ZodLiteral<"date_range">;
3810
+ start: z.ZodString;
3811
+ end: z.ZodString;
3647
3812
  }, z.core.$strict>]>>;
3648
3813
  required: z.ZodDefault<z.ZodBoolean>;
3649
3814
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -3722,6 +3887,10 @@ declare const AnalyticsViewBlockSchema: z.ZodObject<{
3722
3887
  }, z.core.$strict>, z.ZodObject<{
3723
3888
  min: z.ZodOptional<z.ZodNumber>;
3724
3889
  max: z.ZodOptional<z.ZodNumber>;
3890
+ }, z.core.$strict>, z.ZodObject<{
3891
+ type: z.ZodLiteral<"date_range">;
3892
+ start: z.ZodString;
3893
+ end: z.ZodString;
3725
3894
  }, z.core.$strict>]>>;
3726
3895
  }, z.core.$strict>>>;
3727
3896
  compare: z.ZodOptional<z.ZodEnum<{
@@ -3962,6 +4131,10 @@ declare const AnalyticsViewSchema: z.ZodObject<{
3962
4131
  }, z.core.$strict>, z.ZodObject<{
3963
4132
  min: z.ZodOptional<z.ZodNumber>;
3964
4133
  max: z.ZodOptional<z.ZodNumber>;
4134
+ }, z.core.$strict>, z.ZodObject<{
4135
+ type: z.ZodLiteral<"date_range">;
4136
+ start: z.ZodString;
4137
+ end: z.ZodString;
3965
4138
  }, z.core.$strict>]>>;
3966
4139
  required: z.ZodDefault<z.ZodBoolean>;
3967
4140
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -4040,6 +4213,10 @@ declare const AnalyticsViewSchema: z.ZodObject<{
4040
4213
  }, z.core.$strict>, z.ZodObject<{
4041
4214
  min: z.ZodOptional<z.ZodNumber>;
4042
4215
  max: z.ZodOptional<z.ZodNumber>;
4216
+ }, z.core.$strict>, z.ZodObject<{
4217
+ type: z.ZodLiteral<"date_range">;
4218
+ start: z.ZodString;
4219
+ end: z.ZodString;
4043
4220
  }, z.core.$strict>]>>;
4044
4221
  }, z.core.$strict>>>;
4045
4222
  compare: z.ZodOptional<z.ZodEnum<{
@@ -4255,6 +4432,10 @@ declare const AnalyticsViewFilterDraftSchema: z.ZodObject<{
4255
4432
  }, z.core.$strict>, z.ZodObject<{
4256
4433
  min: z.ZodOptional<z.ZodNumber>;
4257
4434
  max: z.ZodOptional<z.ZodNumber>;
4435
+ }, z.core.$strict>, z.ZodObject<{
4436
+ type: z.ZodLiteral<"date_range">;
4437
+ start: z.ZodString;
4438
+ end: z.ZodString;
4258
4439
  }, z.core.$strict>]>>;
4259
4440
  required: z.ZodOptional<z.ZodBoolean>;
4260
4441
  pinned: z.ZodOptional<z.ZodBoolean>;
@@ -4321,6 +4502,10 @@ declare const AnalyticsViewBlockDraftSchema: z.ZodObject<{
4321
4502
  }, z.core.$strict>, z.ZodObject<{
4322
4503
  min: z.ZodOptional<z.ZodNumber>;
4323
4504
  max: z.ZodOptional<z.ZodNumber>;
4505
+ }, z.core.$strict>, z.ZodObject<{
4506
+ type: z.ZodLiteral<"date_range">;
4507
+ start: z.ZodString;
4508
+ end: z.ZodString;
4324
4509
  }, z.core.$strict>]>>;
4325
4510
  }, z.core.$strict>>>;
4326
4511
  compare: z.ZodOptional<z.ZodEnum<{
@@ -4513,6 +4698,10 @@ declare const AnalyticsViewDraftSchema: z.ZodObject<{
4513
4698
  }, z.core.$strict>, z.ZodObject<{
4514
4699
  min: z.ZodOptional<z.ZodNumber>;
4515
4700
  max: z.ZodOptional<z.ZodNumber>;
4701
+ }, z.core.$strict>, z.ZodObject<{
4702
+ type: z.ZodLiteral<"date_range">;
4703
+ start: z.ZodString;
4704
+ end: z.ZodString;
4516
4705
  }, z.core.$strict>]>>;
4517
4706
  required: z.ZodOptional<z.ZodBoolean>;
4518
4707
  pinned: z.ZodOptional<z.ZodBoolean>;
@@ -4584,6 +4773,10 @@ declare const AnalyticsViewDraftSchema: z.ZodObject<{
4584
4773
  }, z.core.$strict>, z.ZodObject<{
4585
4774
  min: z.ZodOptional<z.ZodNumber>;
4586
4775
  max: z.ZodOptional<z.ZodNumber>;
4776
+ }, z.core.$strict>, z.ZodObject<{
4777
+ type: z.ZodLiteral<"date_range">;
4778
+ start: z.ZodString;
4779
+ end: z.ZodString;
4587
4780
  }, z.core.$strict>]>>;
4588
4781
  }, z.core.$strict>>>;
4589
4782
  compare: z.ZodOptional<z.ZodEnum<{
@@ -4853,6 +5046,10 @@ declare const AnalyticsResultMetaSchema: z.ZodObject<{
4853
5046
  }, z.core.$strict>, z.ZodObject<{
4854
5047
  min: z.ZodOptional<z.ZodNumber>;
4855
5048
  max: z.ZodOptional<z.ZodNumber>;
5049
+ }, z.core.$strict>, z.ZodObject<{
5050
+ type: z.ZodLiteral<"date_range">;
5051
+ start: z.ZodString;
5052
+ end: z.ZodString;
4856
5053
  }, z.core.$strict>]>>;
4857
5054
  }, z.core.$strict>>>;
4858
5055
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -4924,6 +5121,10 @@ declare const AnalyticsResultSchema: z.ZodObject<{
4924
5121
  }, z.core.$strict>, z.ZodObject<{
4925
5122
  min: z.ZodOptional<z.ZodNumber>;
4926
5123
  max: z.ZodOptional<z.ZodNumber>;
5124
+ }, z.core.$strict>, z.ZodObject<{
5125
+ type: z.ZodLiteral<"date_range">;
5126
+ start: z.ZodString;
5127
+ end: z.ZodString;
4927
5128
  }, z.core.$strict>]>>;
4928
5129
  }, z.core.$strict>>>;
4929
5130
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -5040,6 +5241,10 @@ declare const AnalyticsViewRevisionSchema: z.ZodObject<{
5040
5241
  }, z.core.$strict>, z.ZodObject<{
5041
5242
  min: z.ZodOptional<z.ZodNumber>;
5042
5243
  max: z.ZodOptional<z.ZodNumber>;
5244
+ }, z.core.$strict>, z.ZodObject<{
5245
+ type: z.ZodLiteral<"date_range">;
5246
+ start: z.ZodString;
5247
+ end: z.ZodString;
5043
5248
  }, z.core.$strict>]>>;
5044
5249
  required: z.ZodDefault<z.ZodBoolean>;
5045
5250
  pinned: z.ZodDefault<z.ZodBoolean>;
@@ -5118,6 +5323,10 @@ declare const AnalyticsViewRevisionSchema: z.ZodObject<{
5118
5323
  }, z.core.$strict>, z.ZodObject<{
5119
5324
  min: z.ZodOptional<z.ZodNumber>;
5120
5325
  max: z.ZodOptional<z.ZodNumber>;
5326
+ }, z.core.$strict>, z.ZodObject<{
5327
+ type: z.ZodLiteral<"date_range">;
5328
+ start: z.ZodString;
5329
+ end: z.ZodString;
5121
5330
  }, z.core.$strict>]>>;
5122
5331
  }, z.core.$strict>>>;
5123
5332
  compare: z.ZodOptional<z.ZodEnum<{
@@ -5398,6 +5607,16 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5398
5607
  revturbine_influenced: "revturbine_influenced";
5399
5608
  }>;
5400
5609
  coverage_metric: z.ZodOptional<z.ZodString>;
5610
+ dimension_groundings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5611
+ kind: z.ZodEnum<{
5612
+ derived: "derived";
5613
+ stamped: "stamped";
5614
+ membership_join: "membership_join";
5615
+ config_join: "config_join";
5616
+ }>;
5617
+ source: z.ZodString;
5618
+ note: z.ZodOptional<z.ZodString>;
5619
+ }, z.core.$strip>>>;
5401
5620
  deprecation: z.ZodOptional<z.ZodObject<{
5402
5621
  deprecated: z.ZodBoolean;
5403
5622
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -5520,6 +5739,25 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5520
5739
  billing_unit: "billing_unit";
5521
5740
  organization: "organization";
5522
5741
  }>>;
5742
+ numerator_metric: z.ZodOptional<z.ZodString>;
5743
+ denominator_metric: z.ZodOptional<z.ZodString>;
5744
+ derivation: z.ZodOptional<z.ZodObject<{
5745
+ kind: z.ZodEnum<{
5746
+ derived: "derived";
5747
+ observed: "observed";
5748
+ unavailable: "unavailable";
5749
+ }>;
5750
+ input_origin: z.ZodEnum<{
5751
+ none: "none";
5752
+ platform: "platform";
5753
+ customer_authored: "customer_authored";
5754
+ mixed: "mixed";
5755
+ }>;
5756
+ ingested_events: z.ZodArray<z.ZodString>;
5757
+ ingested_datasources: z.ZodOptional<z.ZodArray<z.ZodString>>;
5758
+ carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
5759
+ note: z.ZodOptional<z.ZodString>;
5760
+ }, z.core.$strip>>;
5523
5761
  deprecation: z.ZodOptional<z.ZodObject<{
5524
5762
  deprecated: z.ZodBoolean;
5525
5763
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -5881,6 +6119,33 @@ interface AnalyticsCatalogView {
5881
6119
  metricsFor(conceptId: string): AnalyticsCatalogMetric$1[];
5882
6120
  /** The annotation-kind vocabulary this catalog carries, sorted by kind. */
5883
6121
  listAnnotationKinds(): AnalyticsCatalogAnnotationKind$1[];
6122
+ /**
6123
+ * The derived data products one INGESTED EVENT feeds, sorted by metric id.
6124
+ *
6125
+ * The question this answers is the one nobody could answer before: "a tenant
6126
+ * emits `gate_evaluated` — what lights up?" and, read backwards, "this chart
6127
+ * is empty, which event is missing?" Pass a platform event name from the
6128
+ * taxonomy or a datasource name; both sides of a metric's declared inputs
6129
+ * are indexed.
6130
+ */
6131
+ metricsFromIngestedSource(sourceName: string): AnalyticsCatalogMetric$1[];
6132
+ /**
6133
+ * Every ingested event and datasource the catalog reads, sorted. The set of
6134
+ * inputs the product depends on — useful for asking what a new tenant must
6135
+ * emit before its analytics are populated.
6136
+ */
6137
+ listIngestedSources(): string[];
6138
+ /**
6139
+ * The metrics one Tinybird pipe carries, sorted by metric id (plan 228
6140
+ * TASK-3). "Carries" is pipe-allowlist truth — the pipe accepts and serves
6141
+ * the metric id — not a claim that rows exist for it (a carried metric with
6142
+ * derivation.kind='unavailable' is exactly the carried-but-dark state the
6143
+ * register surfaces). This is the read the web execution layer derives its
6144
+ * pipe allowlists from, replacing hand-maintained Record maps.
6145
+ */
6146
+ metricsForPipe(pipeName: string): AnalyticsCatalogMetric$1[];
6147
+ /** Every pipe name any metric declares carriage on, sorted. */
6148
+ listCarryingPipes(): string[];
5884
6149
  }
5885
6150
  declare function createInMemoryAnalyticsCatalog(data: unknown): AnalyticsCatalogView;
5886
6151
  /**
@@ -6048,6 +6313,10 @@ declare const AnalyticsFilterStateSchema: z.ZodObject<{
6048
6313
  }, z.core.$strict>, z.ZodObject<{
6049
6314
  min: z.ZodOptional<z.ZodNumber>;
6050
6315
  max: z.ZodOptional<z.ZodNumber>;
6316
+ }, z.core.$strict>, z.ZodObject<{
6317
+ type: z.ZodLiteral<"date_range">;
6318
+ start: z.ZodString;
6319
+ end: z.ZodString;
6051
6320
  }, z.core.$strict>]>>;
6052
6321
  }, z.core.$strict>;
6053
6322
  /**
@@ -6134,6 +6403,10 @@ declare const AnalyticsQueryRequestSchema: z.ZodObject<{
6134
6403
  }, z.core.$strict>, z.ZodObject<{
6135
6404
  min: z.ZodOptional<z.ZodNumber>;
6136
6405
  max: z.ZodOptional<z.ZodNumber>;
6406
+ }, z.core.$strict>, z.ZodObject<{
6407
+ type: z.ZodLiteral<"date_range">;
6408
+ start: z.ZodString;
6409
+ end: z.ZodString;
6137
6410
  }, z.core.$strict>]>>;
6138
6411
  }, z.core.$strict>>>;
6139
6412
  overrides: z.ZodOptional<z.ZodObject<{
@@ -6257,6 +6530,10 @@ declare const AnalyticsBlockResultSchema: z.ZodObject<{
6257
6530
  }, z.core.$strict>, z.ZodObject<{
6258
6531
  min: z.ZodOptional<z.ZodNumber>;
6259
6532
  max: z.ZodOptional<z.ZodNumber>;
6533
+ }, z.core.$strict>, z.ZodObject<{
6534
+ type: z.ZodLiteral<"date_range">;
6535
+ start: z.ZodString;
6536
+ end: z.ZodString;
6260
6537
  }, z.core.$strict>]>>;
6261
6538
  }, z.core.$strict>>>;
6262
6539
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -6336,6 +6613,10 @@ declare const AnalyticsQueryResponseSchema: z.ZodObject<{
6336
6613
  }, z.core.$strict>, z.ZodObject<{
6337
6614
  min: z.ZodOptional<z.ZodNumber>;
6338
6615
  max: z.ZodOptional<z.ZodNumber>;
6616
+ }, z.core.$strict>, z.ZodObject<{
6617
+ type: z.ZodLiteral<"date_range">;
6618
+ start: z.ZodString;
6619
+ end: z.ZodString;
6339
6620
  }, z.core.$strict>]>>;
6340
6621
  }, z.core.$strict>>>;
6341
6622
  next_cursor: z.ZodOptional<z.ZodString>;
@@ -6421,9 +6702,9 @@ declare const GrowthSignalSeriesSchema: z.ZodObject<{
6421
6702
  /** Normalized output of a GrowthSignalProvider. */
6422
6703
  declare const GrowthSignalBundleSchema: z.ZodObject<{
6423
6704
  availability: z.ZodEnum<{
6705
+ unavailable: "unavailable";
6424
6706
  available: "available";
6425
6707
  stale: "stale";
6426
- unavailable: "unavailable";
6427
6708
  unsupported: "unsupported";
6428
6709
  partial: "partial";
6429
6710
  }>;
@@ -6581,20 +6862,20 @@ declare const OpportunityCandidateSchema: z.ZodObject<{
6581
6862
 
6582
6863
  declare const EventSourceSchema: z.ZodEnum<{
6583
6864
  system: "system";
6865
+ workflow: "workflow";
6584
6866
  clickstream: "clickstream";
6585
6867
  telemetry: "telemetry";
6586
6868
  sdk: "sdk";
6587
- workflow: "workflow";
6588
6869
  }>;
6589
6870
  declare const EventEnvelopeSchema: z.ZodObject<{
6590
6871
  id: z.ZodString;
6591
6872
  event_type: z.ZodString;
6592
6873
  source: z.ZodDefault<z.ZodEnum<{
6593
6874
  system: "system";
6875
+ workflow: "workflow";
6594
6876
  clickstream: "clickstream";
6595
6877
  telemetry: "telemetry";
6596
6878
  sdk: "sdk";
6597
- workflow: "workflow";
6598
6879
  }>>;
6599
6880
  tenant_id: z.ZodOptional<z.ZodString>;
6600
6881
  user_id: z.ZodOptional<z.ZodString>;
@@ -6609,10 +6890,10 @@ declare const IngestedEventSchema: z.ZodObject<{
6609
6890
  event_type: z.ZodString;
6610
6891
  source: z.ZodDefault<z.ZodEnum<{
6611
6892
  system: "system";
6893
+ workflow: "workflow";
6612
6894
  clickstream: "clickstream";
6613
6895
  telemetry: "telemetry";
6614
6896
  sdk: "sdk";
6615
- workflow: "workflow";
6616
6897
  }>>;
6617
6898
  tenant_id: z.ZodOptional<z.ZodString>;
6618
6899
  user_id: z.ZodOptional<z.ZodString>;
@@ -6667,12 +6948,102 @@ declare const TreatmentInteractionInputSchema: z.ZodObject<{
6667
6948
  test: z.ZodOptional<z.ZodBoolean>;
6668
6949
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6669
6950
  }, z.core.$strip>;
6951
+ /**
6952
+ * Batch ceiling for `/api/events/interactions`, mirroring the clickstream
6953
+ * batch bound so both ingest surfaces refuse at the same size.
6954
+ */
6955
+ declare const MAX_TREATMENT_INTERACTIONS_PER_BATCH = 500;
6956
+ /**
6957
+ * The array wire shape for treatment interactions.
6958
+ *
6959
+ * The SDK's `flushInteractionQueue` sends a bare {@link TreatmentInteractionInputSchema}
6960
+ * when one interaction is queued and this array when two or more are. Only the
6961
+ * bare shape was ever declared, so the route parsed only that — every
6962
+ * multi-item flush 422'd and its interactions were lost (plan 232). Declaring
6963
+ * the array here makes the batch bound and the item shape one definition that
6964
+ * the route and the SDK both consume, so the two cannot drift apart silently
6965
+ * again; a wire-contract test asserts the exact bodies the SDK builds parse
6966
+ * against {@link TreatmentInteractionRequestSchema}.
6967
+ */
6968
+ declare const TreatmentInteractionBatchSchema: z.ZodArray<z.ZodObject<{
6969
+ user_id: z.ZodString;
6970
+ placement_id: z.ZodString;
6971
+ treatment_id: z.ZodOptional<z.ZodString>;
6972
+ surface_slot_id: z.ZodOptional<z.ZodString>;
6973
+ surface_template_id: z.ZodOptional<z.ZodString>;
6974
+ payload_id: z.ZodOptional<z.ZodString>;
6975
+ interaction_type: z.ZodEnum<{
6976
+ dismiss: "dismiss";
6977
+ impression: "impression";
6978
+ remind_me_later: "remind_me_later";
6979
+ cta_clicked: "cta_clicked";
6980
+ cta_completed: "cta_completed";
6981
+ suppress: "suppress";
6982
+ }>;
6983
+ interaction_at: z.ZodOptional<z.ZodString>;
6984
+ message_block_handle: z.ZodOptional<z.ZodString>;
6985
+ message_block_id: z.ZodOptional<z.ZodString>;
6986
+ experiment_id: z.ZodOptional<z.ZodString>;
6987
+ variant_key: z.ZodOptional<z.ZodString>;
6988
+ test: z.ZodOptional<z.ZodBoolean>;
6989
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6990
+ }, z.core.$strip>>;
6991
+ /**
6992
+ * Either wire shape, as the route accepts them. This is what the OpenAPI
6993
+ * request body declares, so a generated client can send either without
6994
+ * reaching past the contract.
6995
+ */
6996
+ declare const TreatmentInteractionRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
6997
+ user_id: z.ZodString;
6998
+ placement_id: z.ZodString;
6999
+ treatment_id: z.ZodOptional<z.ZodString>;
7000
+ surface_slot_id: z.ZodOptional<z.ZodString>;
7001
+ surface_template_id: z.ZodOptional<z.ZodString>;
7002
+ payload_id: z.ZodOptional<z.ZodString>;
7003
+ interaction_type: z.ZodEnum<{
7004
+ dismiss: "dismiss";
7005
+ impression: "impression";
7006
+ remind_me_later: "remind_me_later";
7007
+ cta_clicked: "cta_clicked";
7008
+ cta_completed: "cta_completed";
7009
+ suppress: "suppress";
7010
+ }>;
7011
+ interaction_at: z.ZodOptional<z.ZodString>;
7012
+ message_block_handle: z.ZodOptional<z.ZodString>;
7013
+ message_block_id: z.ZodOptional<z.ZodString>;
7014
+ experiment_id: z.ZodOptional<z.ZodString>;
7015
+ variant_key: z.ZodOptional<z.ZodString>;
7016
+ test: z.ZodOptional<z.ZodBoolean>;
7017
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7018
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
7019
+ user_id: z.ZodString;
7020
+ placement_id: z.ZodString;
7021
+ treatment_id: z.ZodOptional<z.ZodString>;
7022
+ surface_slot_id: z.ZodOptional<z.ZodString>;
7023
+ surface_template_id: z.ZodOptional<z.ZodString>;
7024
+ payload_id: z.ZodOptional<z.ZodString>;
7025
+ interaction_type: z.ZodEnum<{
7026
+ dismiss: "dismiss";
7027
+ impression: "impression";
7028
+ remind_me_later: "remind_me_later";
7029
+ cta_clicked: "cta_clicked";
7030
+ cta_completed: "cta_completed";
7031
+ suppress: "suppress";
7032
+ }>;
7033
+ interaction_at: z.ZodOptional<z.ZodString>;
7034
+ message_block_handle: z.ZodOptional<z.ZodString>;
7035
+ message_block_id: z.ZodOptional<z.ZodString>;
7036
+ experiment_id: z.ZodOptional<z.ZodString>;
7037
+ variant_key: z.ZodOptional<z.ZodString>;
7038
+ test: z.ZodOptional<z.ZodBoolean>;
7039
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7040
+ }, z.core.$strip>>]>;
6670
7041
  declare const TriggerEventTypeSchema: z.ZodEnum<{
6671
7042
  payment_failed: "payment_failed";
6672
7043
  feature_gated: "feature_gated";
7044
+ trial_expired: "trial_expired";
6673
7045
  trial_midpoint: "trial_midpoint";
6674
7046
  trial_expiring: "trial_expiring";
6675
- trial_expired: "trial_expired";
6676
7047
  usage_limit_approaching: "usage_limit_approaching";
6677
7048
  usage_limit_reached: "usage_limit_reached";
6678
7049
  credit_balance_low: "credit_balance_low";
@@ -6719,17 +7090,17 @@ declare const ControlPlaneEventTypeSchema: z.ZodEnum<{
6719
7090
  cli_signed_up: "cli_signed_up";
6720
7091
  cli_signed_in: "cli_signed_in";
6721
7092
  cli_command_executed: "cli_command_executed";
6722
- changeset_submitted: "changeset_submitted";
6723
- changeset_approved: "changeset_approved";
6724
- changeset_rejected: "changeset_rejected";
6725
- changeset_deployed: "changeset_deployed";
6726
- changeset_launched: "changeset_launched";
6727
- changeset_parked: "changeset_parked";
6728
- changeset_resumed: "changeset_resumed";
6729
- changeset_discarded: "changeset_discarded";
6730
- changeset_archived: "changeset_archived";
6731
- config_imported: "config_imported";
6732
- config_exported: "config_exported";
7093
+ playbook_version_submitted: "playbook_version_submitted";
7094
+ playbook_version_approved: "playbook_version_approved";
7095
+ playbook_version_rejected: "playbook_version_rejected";
7096
+ playbook_version_deployed: "playbook_version_deployed";
7097
+ playbook_version_launched: "playbook_version_launched";
7098
+ playbook_version_parked: "playbook_version_parked";
7099
+ playbook_version_resumed: "playbook_version_resumed";
7100
+ playbook_version_discarded: "playbook_version_discarded";
7101
+ playbook_version_archived: "playbook_version_archived";
7102
+ playbook_imported: "playbook_imported";
7103
+ playbook_exported: "playbook_exported";
6733
7104
  entity_created: "entity_created";
6734
7105
  entity_updated: "entity_updated";
6735
7106
  entity_deleted: "entity_deleted";
@@ -6742,17 +7113,17 @@ declare const ControlPlaneSemanticEventSchema: z.ZodObject<{
6742
7113
  cli_signed_up: "cli_signed_up";
6743
7114
  cli_signed_in: "cli_signed_in";
6744
7115
  cli_command_executed: "cli_command_executed";
6745
- changeset_submitted: "changeset_submitted";
6746
- changeset_approved: "changeset_approved";
6747
- changeset_rejected: "changeset_rejected";
6748
- changeset_deployed: "changeset_deployed";
6749
- changeset_launched: "changeset_launched";
6750
- changeset_parked: "changeset_parked";
6751
- changeset_resumed: "changeset_resumed";
6752
- changeset_discarded: "changeset_discarded";
6753
- changeset_archived: "changeset_archived";
6754
- config_imported: "config_imported";
6755
- config_exported: "config_exported";
7116
+ playbook_version_submitted: "playbook_version_submitted";
7117
+ playbook_version_approved: "playbook_version_approved";
7118
+ playbook_version_rejected: "playbook_version_rejected";
7119
+ playbook_version_deployed: "playbook_version_deployed";
7120
+ playbook_version_launched: "playbook_version_launched";
7121
+ playbook_version_parked: "playbook_version_parked";
7122
+ playbook_version_resumed: "playbook_version_resumed";
7123
+ playbook_version_discarded: "playbook_version_discarded";
7124
+ playbook_version_archived: "playbook_version_archived";
7125
+ playbook_imported: "playbook_imported";
7126
+ playbook_exported: "playbook_exported";
6756
7127
  entity_created: "entity_created";
6757
7128
  entity_updated: "entity_updated";
6758
7129
  entity_deleted: "entity_deleted";
@@ -6768,10 +7139,10 @@ declare const EventSearchParamsSchema: z.ZodObject<{
6768
7139
  q: z.ZodOptional<z.ZodString>;
6769
7140
  source: z.ZodOptional<z.ZodEnum<{
6770
7141
  system: "system";
7142
+ workflow: "workflow";
6771
7143
  clickstream: "clickstream";
6772
7144
  telemetry: "telemetry";
6773
7145
  sdk: "sdk";
6774
- workflow: "workflow";
6775
7146
  }>>;
6776
7147
  event_type: z.ZodOptional<z.ZodString>;
6777
7148
  from: z.ZodOptional<z.ZodString>;
@@ -6826,9 +7197,9 @@ declare const TrackEventSchema: z.ZodObject<{
6826
7197
  tenant_id: z.ZodOptional<z.ZodString>;
6827
7198
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6828
7199
  origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7200
+ derived: "derived";
6829
7201
  explicit: "explicit";
6830
7202
  automatic: "automatic";
6831
- derived: "derived";
6832
7203
  raw: "raw";
6833
7204
  }>>>;
6834
7205
  playbook_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6852,9 +7223,9 @@ declare const TrackIngestBatchSchema: z.ZodObject<{
6852
7223
  tenant_id: z.ZodOptional<z.ZodString>;
6853
7224
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6854
7225
  origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7226
+ derived: "derived";
6855
7227
  explicit: "explicit";
6856
7228
  automatic: "automatic";
6857
- derived: "derived";
6858
7229
  raw: "raw";
6859
7230
  }>>>;
6860
7231
  playbook_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7055,16 +7426,24 @@ declare const EventTaxonomySchema: z.ZodObject<{
7055
7426
  * Control-plane events, emitted by revturbine-web itself (plan 112).
7056
7427
  * `source` (system vs workflow) is a separate axis carried on the event.
7057
7428
  */
7058
- 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"];
7429
+ 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"];
7059
7430
  /**
7060
7431
  * SDK-automatic client events with fixed names. Prefix-family members
7061
7432
  * (`engagement_*`) are NOT listed here — see {@link EVENT_PREFIX_FAMILIES}.
7062
7433
  */
7063
- 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"];
7434
+ 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"];
7064
7435
  /**
7065
7436
  * Anonymous SDK telemetry on the keyless meta lane (plan 95/144). These carry
7066
7437
  * no tenant and no user context, so they are `internal` by construction.
7067
7438
  */
7439
+ /**
7440
+ * Server-produced derived observations (plan 228 TASK-2 audit). Not emitted by
7441
+ * the client SDK — written by producers that aggregate facts into windowed
7442
+ * metric observations (today: the Growth Lab loader; tomorrow: any in-engine
7443
+ * aggregator). Declared so the parity scan and every reader can SEE the name;
7444
+ * excluded from the sdk_client emit-parity direction by surface.
7445
+ */
7446
+ declare const SDK_SERVER_EVENT_NAMES: readonly ["growth_signal_observed"];
7068
7447
  declare const SDK_META_EVENT_NAMES: readonly ["sdk_init", "sdk_error", "sdk_validation_warning", "resolution_failure"];
7069
7448
  /**
7070
7449
  * Product signals revturbine-web emits about ITSELF, through the customer
@@ -7080,14 +7459,32 @@ declare const SDK_META_EVENT_NAMES: readonly ["sdk_init", "sdk_error", "sdk_vali
7080
7459
  * from `ControlPlaneEventType`; a name on both lanes double-counts one
7081
7460
  * operator action.
7082
7461
  *
7083
- * They are `control_plane` by SURFACE — they originate in revturbine-web — and
7084
- * so are excluded from the SDK's two-directional parity scan, which is scoped
7085
- * to `sdk_client`. That is correct: no SDK emit site produces them, and
7086
- * declaring them as SDK-emitted would manufacture exactly the
7087
- * declared-but-never-emitted defect that scan exists to catch.
7462
+ * SURFACE (plan 228 TASK-5 dogfood ruling): `sdk_client`, reclassified from
7463
+ * `control_plane`. These are generic product-usage telemetry any tenant's
7464
+ * app could legitimately report about itself through the SDK's typed emit
7465
+ * surface — "RevTurbine's own vocabulary" was never load-bearing for them,
7466
+ * unlike the CP proper (auth, playbook-version lifecycle, entity CRUD),
7467
+ * which stays structurally unforgeable. revturbine-web swaps its `track()`
7468
+ * call sites to `emitPlatformEvent` at its next SDK pin bump; until then
7469
+ * its emissions ride the generic lane of a pre-namespacing SDK and land
7470
+ * raw, exactly as before.
7088
7471
  */
7089
7472
  declare const DOGFOOD_CLIENT_EVENT_NAMES: readonly ["area_viewed", "feature_gated"];
7090
- 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];
7473
+ /**
7474
+ * Billing lifecycle events (plan 228 R-2). Dual-source BY CONTRACT: the Stripe
7475
+ * webhook processor translates `stripe_event_type` onto these names, AND the
7476
+ * SDK exposes a typed emit path for each under the same payload schema — so a
7477
+ * tenant on a different biller (or none) produces identical facts. The surface
7478
+ * is `webhook_derived` because that is the historically-primary producer; it
7479
+ * does NOT mean webhook-only, and the emit↔taxonomy parity scan includes these
7480
+ * on the SDK side.
7481
+ *
7482
+ * Every payload carries `billing_ref` — the producer-minted idempotency key
7483
+ * that makes a Stripe delivery and an SDK emission of the same commercial fact
7484
+ * collapse to one row (the identity key, consumed by datasource derivation).
7485
+ */
7486
+ 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"];
7487
+ 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];
7091
7488
  /**
7092
7489
  * Names the SDK classifies as platform-automatic for ORIGIN tagging without
7093
7490
  * emitting them itself. `impression` is the clearest case: it is an
@@ -7129,9 +7526,744 @@ declare const PLATFORM_EVENT_TAXONOMY: {
7129
7526
  };
7130
7527
  /** Every platform-emitted event name, for the cross-repo parity assertion. */
7131
7528
  declare const PLATFORM_EMITTED_EVENT_NAMES: readonly string[];
7529
+ /**
7530
+ * Namespace a customer-supplied event name that collides with platform
7531
+ * vocabulary (plan 228 TASK-4). The generic `track()` lane — SDK and
7532
+ * `/api/track` ingest alike — runs every ALREADY-NORMALIZED name through
7533
+ * this, so platform events are unforgeable from the untyped path: a
7534
+ * customer's `track('gate_attempted')` lands as `clickstream_gate_attempted`
7535
+ * while the typed emit surface sends `gate_attempted` raw.
7536
+ *
7537
+ * Derived from the taxonomy, not a hardcoded switch, so a name added to the
7538
+ * taxonomy is protected the moment it exists. Names already carrying the
7539
+ * `clickstream_` namespace pass through — `clickstream_page_view` IS the
7540
+ * platform name for the generic page-view alias (wire truth), and the guard
7541
+ * also makes the function idempotent.
7542
+ */
7543
+ declare function namespacePlatformCollision(normalizedName: string): string;
7132
7544
  /** Names exempt from the declared-but-never-emitted parity direction. */
7133
7545
  declare const DEPRECATED_EVENT_NAMES: readonly string[];
7134
7546
 
7547
+ /**
7548
+ * Per-event payload contracts (plan 228 REQ-1) — one Zod schema for EVERY
7549
+ * taxonomy event, plus the identity key that makes two emissions the same
7550
+ * fact.
7551
+ *
7552
+ * Before this file, event NAMES were declared (plan 181) but payloads were
7553
+ * untyped bags: `EventEnvelopeSchema.payload` is `z.record(z.string(),
7554
+ * z.unknown())`, and each contract lived only in the body of its emit site.
7555
+ * That is how R-10 shipped — `emitGateEvaluated`'s property set existed
7556
+ * nowhere a validator, a reader, or a simulator could check against, so a
7557
+ * double-wrapped payload validated fine and read as empty everywhere.
7558
+ *
7559
+ * Every schema below is transcribed from a VERIFIED producer, not designed at
7560
+ * a desk: the control-plane shapes from revturbine-web's `emitControlPlaneEvent`
7561
+ * call sites, the SDK client shapes from `web-sdk/customer-side.ts` +
7562
+ * `controllers.ts` emit sites, the meta-lane shapes from the
7563
+ * `events_sdk_meta` / `events_sdk_diagnostics` datasource columns they land
7564
+ * in. The billing band (plan 228 R-2) is the one designed-first set — it is
7565
+ * NEW vocabulary, dual-source by contract (Stripe webhook processor and typed
7566
+ * SDK emit share these schemas), and its fields exist to ground the catalog
7567
+ * dimensions REQ-11 names (`commercial.plan`, `commercial.billing_period`,
7568
+ * `trial.rule`).
7569
+ *
7570
+ * Three deliberate contract decisions:
7571
+ *
7572
+ * - **Loose objects.** REQ-9's evolution policy is additive-only, and its
7573
+ * reader half is that a validator built against schema rev N accepts a
7574
+ * payload from rev N+1. `z.looseObject` preserves unknown keys instead of
7575
+ * stripping or rejecting them — an old ingest never mangles a newer
7576
+ * producer's additive field.
7577
+ * - **Identity keys are part of the contract.** `identity` names the payload
7578
+ * fields that make two emissions the same fact; `'event_id'` means the
7579
+ * envelope-level id is the only identity (the common case for telemetry).
7580
+ * Datasource sorting keys and dedup discriminators DERIVE from this
7581
+ * (REQ-4) — the `experiment_assignments` partition-key near-miss is why
7582
+ * keys are declared here rather than chosen per datasource.
7583
+ * - **Classification rides every field** (house `DataClassification` meta),
7584
+ * so PII handling derives from the contract; `pii-redact` remains
7585
+ * defense-in-depth, not the source of truth.
7586
+ */
7587
+
7588
+ 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];
7589
+ interface EventPayloadContract {
7590
+ /** The payload's Zod schema — loose, additive-tolerant (REQ-9). */
7591
+ schema: z.ZodType;
7592
+ /**
7593
+ * Payload fields that make two emissions the same fact. `['event_id']`
7594
+ * means the envelope id is the only identity (plain telemetry). Datasource
7595
+ * sorting keys and dedup discriminators derive from this (REQ-4).
7596
+ */
7597
+ identity: readonly string[];
7598
+ }
7599
+ /**
7600
+ * Total over every taxonomy name — adding an event in `taxonomy.ts` without a
7601
+ * payload contract here is a COMPILE error, and the parity test holds the
7602
+ * reverse direction.
7603
+ *
7604
+ * Declared with `satisfies` rather than an annotation so each entry keeps its
7605
+ * SPECIFIC schema type: `EventPayloadInput<'gate_evaluated'>` resolves to the
7606
+ * gate payload's input shape, which is what the SDK's typed emit surface
7607
+ * infers its per-event parameter types from (plan 228 TASK-4).
7608
+ */
7609
+ declare const EVENT_PAYLOAD_CONTRACTS: {
7610
+ readonly web_signed_up: {
7611
+ readonly schema: z.ZodObject<{
7612
+ control_plane_source: z.ZodEnum<{
7613
+ system: "system";
7614
+ workflow: "workflow";
7615
+ }>;
7616
+ }, z.core.$loose>;
7617
+ readonly identity: readonly ["event_id"];
7618
+ };
7619
+ readonly web_signed_in: {
7620
+ readonly schema: z.ZodObject<{
7621
+ control_plane_source: z.ZodEnum<{
7622
+ system: "system";
7623
+ workflow: "workflow";
7624
+ }>;
7625
+ }, z.core.$loose>;
7626
+ readonly identity: readonly ["event_id"];
7627
+ };
7628
+ readonly cli_signed_up: {
7629
+ readonly schema: z.ZodObject<{
7630
+ control_plane_source: z.ZodEnum<{
7631
+ system: "system";
7632
+ workflow: "workflow";
7633
+ }>;
7634
+ }, z.core.$loose>;
7635
+ readonly identity: readonly ["event_id"];
7636
+ };
7637
+ readonly cli_signed_in: {
7638
+ readonly schema: z.ZodObject<{
7639
+ control_plane_source: z.ZodEnum<{
7640
+ system: "system";
7641
+ workflow: "workflow";
7642
+ }>;
7643
+ }, z.core.$loose>;
7644
+ readonly identity: readonly ["event_id"];
7645
+ };
7646
+ readonly cli_command_executed: {
7647
+ readonly schema: z.ZodObject<{
7648
+ command: z.ZodString;
7649
+ control_plane_source: z.ZodEnum<{
7650
+ system: "system";
7651
+ workflow: "workflow";
7652
+ }>;
7653
+ }, z.core.$loose>;
7654
+ readonly identity: readonly ["event_id"];
7655
+ };
7656
+ readonly playbook_version_submitted: {
7657
+ readonly schema: z.ZodObject<{
7658
+ playbook_version_id: z.ZodString;
7659
+ control_plane_source: z.ZodEnum<{
7660
+ system: "system";
7661
+ workflow: "workflow";
7662
+ }>;
7663
+ }, z.core.$loose>;
7664
+ readonly identity: readonly ["event_id"];
7665
+ };
7666
+ readonly playbook_version_approved: {
7667
+ readonly schema: z.ZodObject<{
7668
+ playbook_version_id: z.ZodString;
7669
+ control_plane_source: z.ZodEnum<{
7670
+ system: "system";
7671
+ workflow: "workflow";
7672
+ }>;
7673
+ }, z.core.$loose>;
7674
+ readonly identity: readonly ["event_id"];
7675
+ };
7676
+ readonly playbook_version_rejected: {
7677
+ readonly schema: z.ZodObject<{
7678
+ playbook_version_id: z.ZodString;
7679
+ control_plane_source: z.ZodEnum<{
7680
+ system: "system";
7681
+ workflow: "workflow";
7682
+ }>;
7683
+ }, z.core.$loose>;
7684
+ readonly identity: readonly ["event_id"];
7685
+ };
7686
+ readonly playbook_version_deployed: {
7687
+ readonly schema: z.ZodObject<{
7688
+ playbook_version_id: z.ZodString;
7689
+ control_plane_source: z.ZodEnum<{
7690
+ system: "system";
7691
+ workflow: "workflow";
7692
+ }>;
7693
+ }, z.core.$loose>;
7694
+ readonly identity: readonly ["event_id"];
7695
+ };
7696
+ readonly playbook_version_launched: {
7697
+ readonly schema: z.ZodObject<{
7698
+ playbook_version_id: z.ZodString;
7699
+ control_plane_source: z.ZodEnum<{
7700
+ system: "system";
7701
+ workflow: "workflow";
7702
+ }>;
7703
+ }, z.core.$loose>;
7704
+ readonly identity: readonly ["event_id"];
7705
+ };
7706
+ readonly playbook_version_parked: {
7707
+ readonly schema: z.ZodObject<{
7708
+ playbook_version_id: z.ZodString;
7709
+ control_plane_source: z.ZodEnum<{
7710
+ system: "system";
7711
+ workflow: "workflow";
7712
+ }>;
7713
+ }, z.core.$loose>;
7714
+ readonly identity: readonly ["event_id"];
7715
+ };
7716
+ readonly playbook_version_resumed: {
7717
+ readonly schema: z.ZodObject<{
7718
+ playbook_version_id: z.ZodString;
7719
+ control_plane_source: z.ZodEnum<{
7720
+ system: "system";
7721
+ workflow: "workflow";
7722
+ }>;
7723
+ }, z.core.$loose>;
7724
+ readonly identity: readonly ["event_id"];
7725
+ };
7726
+ readonly playbook_version_discarded: {
7727
+ readonly schema: z.ZodObject<{
7728
+ playbook_version_id: z.ZodString;
7729
+ control_plane_source: z.ZodEnum<{
7730
+ system: "system";
7731
+ workflow: "workflow";
7732
+ }>;
7733
+ }, z.core.$loose>;
7734
+ readonly identity: readonly ["event_id"];
7735
+ };
7736
+ readonly playbook_version_archived: {
7737
+ readonly schema: z.ZodObject<{
7738
+ playbook_version_id: z.ZodString;
7739
+ control_plane_source: z.ZodEnum<{
7740
+ system: "system";
7741
+ workflow: "workflow";
7742
+ }>;
7743
+ }, z.core.$loose>;
7744
+ readonly identity: readonly ["event_id"];
7745
+ };
7746
+ readonly playbook_imported: {
7747
+ readonly schema: z.ZodObject<{
7748
+ playbook_version_id: z.ZodString;
7749
+ control_plane_source: z.ZodEnum<{
7750
+ system: "system";
7751
+ workflow: "workflow";
7752
+ }>;
7753
+ }, z.core.$loose>;
7754
+ readonly identity: readonly ["event_id"];
7755
+ };
7756
+ readonly playbook_exported: {
7757
+ readonly schema: z.ZodObject<{
7758
+ control_plane_source: z.ZodEnum<{
7759
+ system: "system";
7760
+ workflow: "workflow";
7761
+ }>;
7762
+ }, z.core.$loose>;
7763
+ readonly identity: readonly ["event_id"];
7764
+ };
7765
+ readonly entity_created: {
7766
+ readonly schema: z.ZodObject<{
7767
+ resource: z.ZodString;
7768
+ resource_id: z.ZodOptional<z.ZodString>;
7769
+ control_plane_source: z.ZodEnum<{
7770
+ system: "system";
7771
+ workflow: "workflow";
7772
+ }>;
7773
+ }, z.core.$loose>;
7774
+ readonly identity: readonly ["event_id"];
7775
+ };
7776
+ readonly entity_updated: {
7777
+ readonly schema: z.ZodObject<{
7778
+ resource: z.ZodString;
7779
+ resource_id: z.ZodOptional<z.ZodString>;
7780
+ control_plane_source: z.ZodEnum<{
7781
+ system: "system";
7782
+ workflow: "workflow";
7783
+ }>;
7784
+ }, z.core.$loose>;
7785
+ readonly identity: readonly ["event_id"];
7786
+ };
7787
+ readonly entity_deleted: {
7788
+ readonly schema: z.ZodObject<{
7789
+ resource: z.ZodString;
7790
+ resource_id: z.ZodOptional<z.ZodString>;
7791
+ control_plane_source: z.ZodEnum<{
7792
+ system: "system";
7793
+ workflow: "workflow";
7794
+ }>;
7795
+ }, z.core.$loose>;
7796
+ readonly identity: readonly ["event_id"];
7797
+ };
7798
+ readonly web_api_error: {
7799
+ readonly schema: z.ZodObject<{
7800
+ request_id: z.ZodString;
7801
+ status: z.ZodNumber;
7802
+ route: z.ZodOptional<z.ZodString>;
7803
+ method: z.ZodOptional<z.ZodString>;
7804
+ error_code: z.ZodOptional<z.ZodString>;
7805
+ control_plane_source: z.ZodEnum<{
7806
+ system: "system";
7807
+ workflow: "workflow";
7808
+ }>;
7809
+ }, z.core.$loose>;
7810
+ readonly identity: readonly ["event_id"];
7811
+ };
7812
+ readonly area_viewed: {
7813
+ readonly schema: z.ZodObject<{
7814
+ area: z.ZodString;
7815
+ }, z.core.$loose>;
7816
+ readonly identity: readonly ["event_id"];
7817
+ };
7818
+ readonly feature_gated: {
7819
+ readonly schema: z.ZodObject<{
7820
+ pathname: z.ZodNullable<z.ZodString>;
7821
+ reason: z.ZodString;
7822
+ }, z.core.$loose>;
7823
+ readonly identity: readonly ["event_id"];
7824
+ };
7825
+ readonly placement_resolved: {
7826
+ readonly schema: z.ZodObject<{
7827
+ placement_id: z.ZodString;
7828
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7829
+ payload_id: z.ZodNullable<z.ZodString>;
7830
+ decision_id: z.ZodNullable<z.ZodString>;
7831
+ decision_source: z.ZodNullable<z.ZodString>;
7832
+ }, z.core.$loose>;
7833
+ readonly identity: readonly ["event_id"];
7834
+ };
7835
+ readonly placement_rendered: {
7836
+ readonly schema: z.ZodObject<{
7837
+ placement_id: z.ZodString;
7838
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7839
+ payload_id: z.ZodNullable<z.ZodString>;
7840
+ decision_id: z.ZodNullable<z.ZodString>;
7841
+ decision_source: z.ZodNullable<z.ZodString>;
7842
+ }, z.core.$loose>;
7843
+ readonly identity: readonly ["event_id"];
7844
+ };
7845
+ readonly placement_exposed: {
7846
+ readonly schema: z.ZodObject<{
7847
+ exposure_basis: z.ZodOptional<z.ZodString>;
7848
+ placement_id: z.ZodString;
7849
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7850
+ payload_id: z.ZodNullable<z.ZodString>;
7851
+ decision_id: z.ZodNullable<z.ZodString>;
7852
+ decision_source: z.ZodNullable<z.ZodString>;
7853
+ }, z.core.$loose>;
7854
+ readonly identity: readonly ["event_id"];
7855
+ };
7856
+ readonly placement_outcome: {
7857
+ readonly schema: z.ZodObject<{
7858
+ outcome: z.ZodString;
7859
+ cta_target: z.ZodNullable<z.ZodString>;
7860
+ placement_id: z.ZodString;
7861
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7862
+ payload_id: z.ZodNullable<z.ZodString>;
7863
+ decision_id: z.ZodNullable<z.ZodString>;
7864
+ decision_source: z.ZodNullable<z.ZodString>;
7865
+ }, z.core.$loose>;
7866
+ readonly identity: readonly ["event_id"];
7867
+ };
7868
+ readonly placement_interaction: {
7869
+ readonly schema: z.ZodObject<{
7870
+ interaction_type: z.ZodString;
7871
+ placement_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7872
+ payload_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7873
+ decision_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7874
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7875
+ action_type: z.ZodOptional<z.ZodString>;
7876
+ action_success: z.ZodOptional<z.ZodBoolean>;
7877
+ interaction_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7878
+ remind_after_seconds: z.ZodOptional<z.ZodNumber>;
7879
+ }, z.core.$loose>;
7880
+ readonly identity: readonly ["event_id"];
7881
+ };
7882
+ readonly gate_evaluated: {
7883
+ readonly schema: z.ZodObject<{
7884
+ entitlement_handle: z.ZodString;
7885
+ outcome: z.ZodEnum<{
7886
+ allowed: "allowed";
7887
+ limited: "limited";
7888
+ denied: "denied";
7889
+ }>;
7890
+ gated: z.ZodBoolean;
7891
+ reason: z.ZodNullable<z.ZodString>;
7892
+ limit: z.ZodNullable<z.ZodNumber>;
7893
+ used: z.ZodNullable<z.ZodNumber>;
7894
+ remaining: z.ZodNullable<z.ZodNumber>;
7895
+ }, z.core.$loose>;
7896
+ readonly identity: readonly ["event_id"];
7897
+ };
7898
+ readonly gate_attempted: {
7899
+ readonly schema: z.ZodObject<{
7900
+ entitlement_handle: z.ZodString;
7901
+ }, z.core.$loose>;
7902
+ readonly identity: readonly ["event_id"];
7903
+ };
7904
+ readonly gate_allowed: {
7905
+ readonly schema: z.ZodObject<{
7906
+ entitlement_handle: z.ZodString;
7907
+ }, z.core.$loose>;
7908
+ readonly identity: readonly ["event_id"];
7909
+ };
7910
+ readonly gate_denied: {
7911
+ readonly schema: z.ZodObject<{
7912
+ entitlement_handle: z.ZodString;
7913
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7914
+ }, z.core.$loose>;
7915
+ readonly identity: readonly ["event_id"];
7916
+ };
7917
+ readonly slot_evaluated: {
7918
+ readonly schema: z.ZodObject<{
7919
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7920
+ slot_name: z.ZodNullable<z.ZodString>;
7921
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7922
+ template_id: z.ZodNullable<z.ZodString>;
7923
+ surface_type: z.ZodNullable<z.ZodString>;
7924
+ category: z.ZodNullable<z.ZodString>;
7925
+ decision_source: z.ZodNullable<z.ZodString>;
7926
+ reason_codes: z.ZodArray<z.ZodString>;
7927
+ decision_id: z.ZodNullable<z.ZodString>;
7928
+ }, z.core.$loose>;
7929
+ readonly identity: readonly ["event_id"];
7930
+ };
7931
+ readonly slot_filled: {
7932
+ readonly schema: z.ZodObject<{
7933
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7934
+ slot_name: z.ZodNullable<z.ZodString>;
7935
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7936
+ template_id: z.ZodNullable<z.ZodString>;
7937
+ surface_type: z.ZodNullable<z.ZodString>;
7938
+ category: z.ZodNullable<z.ZodString>;
7939
+ decision_source: z.ZodNullable<z.ZodString>;
7940
+ reason_codes: z.ZodArray<z.ZodString>;
7941
+ decision_id: z.ZodNullable<z.ZodString>;
7942
+ }, z.core.$loose>;
7943
+ readonly identity: readonly ["event_id"];
7944
+ };
7945
+ readonly slot_empty: {
7946
+ readonly schema: z.ZodObject<{
7947
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7948
+ slot_name: z.ZodNullable<z.ZodString>;
7949
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7950
+ template_id: z.ZodNullable<z.ZodString>;
7951
+ surface_type: z.ZodNullable<z.ZodString>;
7952
+ category: z.ZodNullable<z.ZodString>;
7953
+ decision_source: z.ZodNullable<z.ZodString>;
7954
+ reason_codes: z.ZodArray<z.ZodString>;
7955
+ decision_id: z.ZodNullable<z.ZodString>;
7956
+ }, z.core.$loose>;
7957
+ readonly identity: readonly ["event_id"];
7958
+ };
7959
+ readonly slot_suppressed: {
7960
+ readonly schema: z.ZodObject<{
7961
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7962
+ slot_name: z.ZodNullable<z.ZodString>;
7963
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7964
+ template_id: z.ZodNullable<z.ZodString>;
7965
+ surface_type: z.ZodNullable<z.ZodString>;
7966
+ category: z.ZodNullable<z.ZodString>;
7967
+ decision_source: z.ZodNullable<z.ZodString>;
7968
+ reason_codes: z.ZodArray<z.ZodString>;
7969
+ decision_id: z.ZodNullable<z.ZodString>;
7970
+ }, z.core.$loose>;
7971
+ readonly identity: readonly ["event_id"];
7972
+ };
7973
+ readonly slot_error: {
7974
+ readonly schema: z.ZodObject<{
7975
+ message: z.ZodOptional<z.ZodString>;
7976
+ surface_slot_id: z.ZodNullable<z.ZodString>;
7977
+ slot_name: z.ZodNullable<z.ZodString>;
7978
+ template_ids: z.ZodNullable<z.ZodArray<z.ZodString>>;
7979
+ template_id: z.ZodNullable<z.ZodString>;
7980
+ surface_type: z.ZodNullable<z.ZodString>;
7981
+ category: z.ZodNullable<z.ZodString>;
7982
+ decision_source: z.ZodNullable<z.ZodString>;
7983
+ reason_codes: z.ZodArray<z.ZodString>;
7984
+ decision_id: z.ZodNullable<z.ZodString>;
7985
+ }, z.core.$loose>;
7986
+ readonly identity: readonly ["event_id"];
7987
+ };
7988
+ readonly segment_enrolled: {
7989
+ readonly schema: z.ZodObject<{
7990
+ segment_id: z.ZodString;
7991
+ user_id: z.ZodNullable<z.ZodString>;
7992
+ }, z.core.$loose>;
7993
+ readonly identity: readonly ["event_id"];
7994
+ };
7995
+ readonly segment_unenrolled: {
7996
+ readonly schema: z.ZodObject<{
7997
+ segment_id: z.ZodString;
7998
+ user_id: z.ZodNullable<z.ZodString>;
7999
+ }, z.core.$loose>;
8000
+ readonly identity: readonly ["event_id"];
8001
+ };
8002
+ readonly experiment_assigned: {
8003
+ readonly schema: z.ZodObject<{
8004
+ schema_version: z.ZodNumber;
8005
+ assignment_id: z.ZodString;
8006
+ experiment_id: z.ZodString;
8007
+ experiment_version: z.ZodNumber;
8008
+ variant_key: z.ZodString;
8009
+ assignment_unit: z.ZodEnum<{
8010
+ account: "account";
8011
+ user: "user";
8012
+ billing_unit: "billing_unit";
8013
+ organization: "organization";
8014
+ }>;
8015
+ subject_id: z.ZodString;
8016
+ assigned_at: z.ZodString;
8017
+ provider_handle: z.ZodOptional<z.ZodString>;
8018
+ provider_revision: z.ZodOptional<z.ZodString>;
8019
+ }, z.core.$loose>;
8020
+ readonly identity: readonly ["assignment_id"];
8021
+ };
8022
+ readonly user_context_observed: {
8023
+ readonly schema: z.ZodObject<{
8024
+ context_fields: z.ZodArray<z.ZodString>;
8025
+ }, z.core.$loose>;
8026
+ readonly identity: readonly ["event_id"];
8027
+ };
8028
+ readonly clickstream_page_view: {
8029
+ readonly schema: z.ZodObject<{
8030
+ mode: z.ZodOptional<z.ZodString>;
8031
+ runtime_mode: z.ZodOptional<z.ZodString>;
8032
+ source: z.ZodOptional<z.ZodString>;
8033
+ }, z.core.$loose>;
8034
+ readonly identity: readonly ["event_id"];
8035
+ };
8036
+ readonly account_created: {
8037
+ readonly schema: z.ZodObject<{
8038
+ acquisition_source: z.ZodOptional<z.ZodString>;
8039
+ }, z.core.$loose>;
8040
+ readonly identity: readonly ["event_id"];
8041
+ };
8042
+ readonly user_signed_up: {
8043
+ readonly schema: z.ZodObject<{
8044
+ acquisition_source: z.ZodOptional<z.ZodString>;
8045
+ }, z.core.$loose>;
8046
+ readonly identity: readonly ["event_id"];
8047
+ };
8048
+ readonly onboarding_completed: {
8049
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8050
+ readonly identity: readonly ["event_id"];
8051
+ };
8052
+ readonly account_activated: {
8053
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8054
+ readonly identity: readonly ["event_id"];
8055
+ };
8056
+ readonly product_used: {
8057
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8058
+ readonly identity: readonly ["event_id"];
8059
+ };
8060
+ readonly value_realized: {
8061
+ readonly schema: z.ZodObject<{}, z.core.$loose>;
8062
+ readonly identity: readonly ["event_id"];
8063
+ };
8064
+ readonly usage_recorded: {
8065
+ readonly schema: z.ZodObject<{
8066
+ metered_units: z.ZodNumber;
8067
+ included_allowance: z.ZodNumber;
8068
+ utilization: z.ZodNumber;
8069
+ }, z.core.$loose>;
8070
+ readonly identity: readonly ["event_id"];
8071
+ };
8072
+ readonly plan_viewed: {
8073
+ readonly schema: z.ZodObject<{
8074
+ plan_handle: z.ZodString;
8075
+ entry_tier: z.ZodOptional<z.ZodBoolean>;
8076
+ }, z.core.$loose>;
8077
+ readonly identity: readonly ["event_id"];
8078
+ };
8079
+ readonly promotion_applied: {
8080
+ readonly schema: z.ZodObject<{
8081
+ promotion_handle: z.ZodString;
8082
+ plan_handle: z.ZodOptional<z.ZodString>;
8083
+ }, z.core.$loose>;
8084
+ readonly identity: readonly ["event_id"];
8085
+ };
8086
+ readonly promotion_converted: {
8087
+ readonly schema: z.ZodObject<{
8088
+ promotion_handle: z.ZodString;
8089
+ full_price: z.ZodOptional<z.ZodBoolean>;
8090
+ plan_handle: z.ZodOptional<z.ZodString>;
8091
+ }, z.core.$loose>;
8092
+ readonly identity: readonly ["event_id"];
8093
+ };
8094
+ readonly growth_signal_observed: {
8095
+ readonly schema: z.ZodObject<{
8096
+ metric: z.ZodString;
8097
+ dimension_key: z.ZodString;
8098
+ dimension_value: z.ZodString;
8099
+ window_start: z.ZodString;
8100
+ window_end: z.ZodString;
8101
+ value: z.ZodNumber;
8102
+ numerator: z.ZodOptional<z.ZodNumber>;
8103
+ denominator: z.ZodOptional<z.ZodNumber>;
8104
+ sample_size: z.ZodOptional<z.ZodNumber>;
8105
+ }, z.core.$loose>;
8106
+ readonly identity: readonly ["event_id"];
8107
+ };
8108
+ readonly sdk_init: {
8109
+ readonly schema: z.ZodObject<{
8110
+ config_hash_id: z.ZodOptional<z.ZodString>;
8111
+ sdk_version: z.ZodOptional<z.ZodString>;
8112
+ runtime_mode: z.ZodOptional<z.ZodString>;
8113
+ schema_version: z.ZodOptional<z.ZodString>;
8114
+ bundle_version: z.ZodOptional<z.ZodString>;
8115
+ config_shape: z.ZodOptional<z.ZodString>;
8116
+ }, z.core.$loose>;
8117
+ readonly identity: readonly ["event_id"];
8118
+ };
8119
+ readonly sdk_error: {
8120
+ readonly schema: z.ZodObject<{
8121
+ message: z.ZodString;
8122
+ config_hash_id: z.ZodOptional<z.ZodString>;
8123
+ sdk_version: z.ZodOptional<z.ZodString>;
8124
+ }, z.core.$loose>;
8125
+ readonly identity: readonly ["event_id"];
8126
+ };
8127
+ readonly sdk_validation_warning: {
8128
+ readonly schema: z.ZodObject<{
8129
+ message: z.ZodString;
8130
+ config_hash_id: z.ZodOptional<z.ZodString>;
8131
+ sdk_version: z.ZodOptional<z.ZodString>;
8132
+ }, z.core.$loose>;
8133
+ readonly identity: readonly ["event_id"];
8134
+ };
8135
+ readonly resolution_failure: {
8136
+ readonly schema: z.ZodObject<{
8137
+ reason: z.ZodString;
8138
+ placement_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8139
+ slot_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8140
+ surface: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8141
+ plan_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8142
+ entitlement_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8143
+ message: z.ZodOptional<z.ZodString>;
8144
+ config_hash_id: z.ZodOptional<z.ZodString>;
8145
+ }, z.core.$loose>;
8146
+ readonly identity: readonly ["event_id"];
8147
+ };
8148
+ readonly subscription_started: {
8149
+ readonly schema: z.ZodObject<{
8150
+ billing_period: z.ZodString;
8151
+ amount_cents: z.ZodNumber;
8152
+ currency: z.ZodString;
8153
+ billing_ref: z.ZodString;
8154
+ plan_handle: z.ZodString;
8155
+ }, z.core.$loose>;
8156
+ readonly identity: readonly ["billing_ref"];
8157
+ };
8158
+ readonly subscription_renewed: {
8159
+ readonly schema: z.ZodObject<{
8160
+ billing_period: z.ZodString;
8161
+ amount_cents: z.ZodNumber;
8162
+ currency: z.ZodString;
8163
+ billing_ref: z.ZodString;
8164
+ plan_handle: z.ZodString;
8165
+ }, z.core.$loose>;
8166
+ readonly identity: readonly ["billing_ref"];
8167
+ };
8168
+ readonly subscription_expanded: {
8169
+ readonly schema: z.ZodObject<{
8170
+ previous_plan_handle: z.ZodOptional<z.ZodString>;
8171
+ delta_cents: z.ZodOptional<z.ZodNumber>;
8172
+ self_serve: z.ZodOptional<z.ZodBoolean>;
8173
+ billing_period: z.ZodString;
8174
+ amount_cents: z.ZodNumber;
8175
+ currency: z.ZodString;
8176
+ billing_ref: z.ZodString;
8177
+ plan_handle: z.ZodString;
8178
+ }, z.core.$loose>;
8179
+ readonly identity: readonly ["billing_ref"];
8180
+ };
8181
+ readonly subscription_canceled: {
8182
+ readonly schema: z.ZodObject<{
8183
+ reason: z.ZodOptional<z.ZodString>;
8184
+ billing_ref: z.ZodString;
8185
+ plan_handle: z.ZodString;
8186
+ }, z.core.$loose>;
8187
+ readonly identity: readonly ["billing_ref"];
8188
+ };
8189
+ readonly trial_started: {
8190
+ readonly schema: z.ZodObject<{
8191
+ trial_rule_handle: z.ZodString;
8192
+ ends_at: z.ZodString;
8193
+ billing_ref: z.ZodString;
8194
+ plan_handle: z.ZodString;
8195
+ }, z.core.$loose>;
8196
+ readonly identity: readonly ["billing_ref"];
8197
+ };
8198
+ readonly trial_converted: {
8199
+ readonly schema: z.ZodObject<{
8200
+ trial_rule_handle: z.ZodString;
8201
+ billing_period: z.ZodString;
8202
+ amount_cents: z.ZodNumber;
8203
+ currency: z.ZodString;
8204
+ billing_ref: z.ZodString;
8205
+ plan_handle: z.ZodString;
8206
+ }, z.core.$loose>;
8207
+ readonly identity: readonly ["billing_ref"];
8208
+ };
8209
+ readonly trial_expired: {
8210
+ readonly schema: z.ZodObject<{
8211
+ trial_rule_handle: z.ZodString;
8212
+ billing_ref: z.ZodString;
8213
+ plan_handle: z.ZodString;
8214
+ }, z.core.$loose>;
8215
+ readonly identity: readonly ["billing_ref"];
8216
+ };
8217
+ readonly payment_succeeded: {
8218
+ readonly schema: z.ZodObject<{
8219
+ billing_ref: z.ZodString;
8220
+ amount_cents: z.ZodNumber;
8221
+ currency: z.ZodString;
8222
+ plan_handle: z.ZodOptional<z.ZodString>;
8223
+ }, z.core.$loose>;
8224
+ readonly identity: readonly ["billing_ref"];
8225
+ };
8226
+ readonly payment_failed: {
8227
+ readonly schema: z.ZodObject<{
8228
+ billing_ref: z.ZodString;
8229
+ reason: z.ZodString;
8230
+ amount_cents: z.ZodOptional<z.ZodNumber>;
8231
+ currency: z.ZodOptional<z.ZodString>;
8232
+ plan_handle: z.ZodOptional<z.ZodString>;
8233
+ }, z.core.$loose>;
8234
+ readonly identity: readonly ["billing_ref"];
8235
+ };
8236
+ };
8237
+ /** The contracts map with per-event schema types preserved (plan 228 TASK-4). */
8238
+ type EventPayloadContractMap = typeof EVENT_PAYLOAD_CONTRACTS;
8239
+ /**
8240
+ * The input (pre-parse) payload shape for one platform event, inferred from
8241
+ * its contract schema. The SDK's typed emit surface takes exactly this per
8242
+ * event name, so the emit API cannot drift from the contract it validates
8243
+ * against.
8244
+ */
8245
+ type EventPayloadInput<K extends PlatformEventName> = z.input<EventPayloadContractMap[K]['schema']>;
8246
+ /**
8247
+ * Every contracted event name, sorted in UTF-16 code-unit order (the default
8248
+ * string sort — deliberately NOT localeCompare, per the single-canonicalizer
8249
+ * rule; names are lowercase snake_case ASCII, where the two orders coincide,
8250
+ * but the manifest must never depend on a locale).
8251
+ */
8252
+ declare const EVENT_PAYLOAD_EVENT_NAMES: readonly string[];
8253
+ /**
8254
+ * Validate a payload against its event's contract. Unknown events are a
8255
+ * structured failure, not an exception — `/api/track` routes those (and
8256
+ * schema violations) to the REQ-10 quarantine lane rather than dropping.
8257
+ */
8258
+ declare function validateEventPayload(eventName: string, payload: unknown): {
8259
+ ok: true;
8260
+ payload: Record<string, unknown>;
8261
+ } | {
8262
+ ok: false;
8263
+ reason: 'unknown_event' | 'schema_violation';
8264
+ detail?: string;
8265
+ };
8266
+
7135
8267
  /**
7136
8268
  * Trial schemas — free trial rules, reverse trial rules, and trial instances.
7137
8269
  */
@@ -8740,8 +9872,8 @@ declare const ExperimentSchema: z.ZodObject<{
8740
9872
  provider_handle: z.ZodString;
8741
9873
  capability: z.ZodLiteral<"experiment_assignment">;
8742
9874
  allocation_mode: z.ZodEnum<{
8743
- managed: "managed";
8744
9875
  observed: "observed";
9876
+ managed: "managed";
8745
9877
  }>;
8746
9878
  }, z.core.$strip>>;
8747
9879
  evidence_provider_binding: z.ZodOptional<z.ZodObject<{
@@ -13956,9 +15088,9 @@ declare const ProviderConnectionSchema: z.ZodObject<{
13956
15088
  credential_reference: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13957
15089
  environment_id: z.ZodDefault<z.ZodString>;
13958
15090
  health_state: z.ZodDefault<z.ZodEnum<{
15091
+ unavailable: "unavailable";
13959
15092
  available: "available";
13960
15093
  stale: "stale";
13961
- unavailable: "unavailable";
13962
15094
  unsupported: "unsupported";
13963
15095
  partial: "partial";
13964
15096
  }>>;
@@ -14513,9 +15645,9 @@ declare const ProviderCapabilitySchema: z.ZodEnum<{
14513
15645
  * configuration error rather than an outage.
14514
15646
  */
14515
15647
  declare const ProviderAvailabilitySchema: z.ZodEnum<{
15648
+ unavailable: "unavailable";
14516
15649
  available: "available";
14517
15650
  stale: "stale";
14518
- unavailable: "unavailable";
14519
15651
  unsupported: "unsupported";
14520
15652
  partial: "partial";
14521
15653
  }>;
@@ -14594,6 +15726,7 @@ type AnalyticsCatalogConcept = z.infer<typeof AnalyticsCatalogConceptSchema>;
14594
15726
  type AnalyticsCatalogDeprecation = z.infer<typeof AnalyticsCatalogDeprecationSchema>;
14595
15727
  type AnalyticsCatalogDimension = z.infer<typeof AnalyticsCatalogDimensionSchema>;
14596
15728
  type AnalyticsCatalogMetric = z.infer<typeof AnalyticsCatalogMetricSchema>;
15729
+ type AnalyticsCatalogMetricValidated = z.infer<typeof AnalyticsCatalogMetricValidatedSchema>;
14597
15730
  type AnalyticsCatalogProvenanceKind = z.infer<typeof AnalyticsCatalogProvenanceKindSchema>;
14598
15731
  type AnalyticsCatalogProvenance = z.infer<typeof AnalyticsCatalogProvenanceSchema>;
14599
15732
  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>;
@@ -16803,6 +17938,84 @@ declare class LocalRuntime {
16803
17938
  private deriveEntitlementFromConfig;
16804
17939
  }
16805
17940
 
17941
+ /**
17942
+ * Assignment-fact carriage (plan 224 TASK-8, war-games spec §9.1).
17943
+ *
17944
+ * The `experiment_assigned` clickstream event is the assignment plane's source
17945
+ * of truth: one fact per (experiment_handle, experiment_version, subject) when
17946
+ * the resolved assignment snapshot enrolls a subject. The snapshot itself
17947
+ * (`ExperimentVariantSelection`) deliberately carries handles only — the
17948
+ * canonical experiment VERSION is not part of the runtime assignment contract
17949
+ * (assignment spec §8: the version travels separately in telemetry). This
17950
+ * module is that separate channel: a declaration that binds an experiment
17951
+ * handle to the canonical version (`Experiment.sequence`) and assignment unit
17952
+ * the fact must carry.
17953
+ *
17954
+ * Declaration-gated by design, mirroring the taxonomy's own discipline: an
17955
+ * assignment with no declaration emits NO fact rather than a fact with a
17956
+ * fabricated version — a wrong (handle, version) join key poisons SRM, which
17957
+ * is worse than a missing row. Unenrolled subjects also emit nothing:
17958
+ * not-enrolled is absence (assignment spec §4), never an `enrolled: false`
17959
+ * fact.
17960
+ */
17961
+
17962
+ /** One supported canonical experiment assignment unit (war-games spec §9.1). */
17963
+ type AssignmentFactUnit = NonNullable<Experiment['assignment_unit']>;
17964
+ /**
17965
+ * Binds one experiment handle to the canonical-version metadata its
17966
+ * `experiment_assigned` assignment facts must carry (plan 224, spec §9.1).
17967
+ *
17968
+ * Supply these either through
17969
+ * `RevTurbineInitOptions.experimentAssignmentFacts` (works for ANY assignment
17970
+ * source, external adapters included) or — for the native provider — via
17971
+ * `CanonicalExperimentAllocation.sequence`, which derives a declaration
17972
+ * automatically. An assigned experiment with no declaration emits no fact.
17973
+ */
17974
+ interface ExperimentAssignmentFactDeclaration {
17975
+ /** Canonical experiment handle the declaration applies to. */
17976
+ experimentHandle: string;
17977
+ /**
17978
+ * Canonical experiment version — the `Experiment.sequence` of the version
17979
+ * whose allocation is live. Integer ≥ 1; the fact's (handle, version) pair
17980
+ * is the SRM join key, so this must be the real canonical version, never a
17981
+ * guess.
17982
+ */
17983
+ experimentVersion: number;
17984
+ /**
17985
+ * Unit the subject identifier represents. Defaults to `'user'`, matching
17986
+ * the native provider's default.
17987
+ */
17988
+ assignmentUnit?: AssignmentFactUnit;
17989
+ /**
17990
+ * Stable subject identifier for the declared unit. A function is re-read on
17991
+ * every emission so a later identity change takes effect; a bare string
17992
+ * pins one subject. When omitted, the SDK's user-context `id` is used.
17993
+ * With no resolvable subject there is no fact — absent beats wrong.
17994
+ */
17995
+ subject?: string | (() => string | undefined | null);
17996
+ }
17997
+ /**
17998
+ * Optional carrier surface for assignment-fact metadata on an experiment
17999
+ * provider. The native provider implements it when its allocations carry
18000
+ * `sequence`; the SDK harvests declarations from every registered experiment
18001
+ * provider that exposes it.
18002
+ */
18003
+ interface ExperimentAssignmentFactMetadataCarrier {
18004
+ /** Declarations describing the canonical versions this provider allocates. */
18005
+ readonly assignmentFactDeclarations?: readonly ExperimentAssignmentFactDeclaration[];
18006
+ }
18007
+ /**
18008
+ * Defensively validate one declaration from a plain-JS caller. The SDK is
18009
+ * exposed as `window.RevTurbine`, so shapes are checked, never assumed.
18010
+ */
18011
+ declare function isExperimentAssignmentFactDeclaration(value: unknown): value is ExperimentAssignmentFactDeclaration;
18012
+ /**
18013
+ * Harvest valid assignment-fact declarations from providers exposing the
18014
+ * {@link ExperimentAssignmentFactMetadataCarrier} surface. Later sources win
18015
+ * on a duplicate handle, so pass the most authoritative source last.
18016
+ */
18017
+ declare function collectAssignmentFactDeclarations(sources: ReadonlyArray<object | undefined>, explicit?: readonly ExperimentAssignmentFactDeclaration[]): ReadonlyMap<string, ExperimentAssignmentFactDeclaration>;
18018
+
16806
18019
  /**
16807
18020
  * Branding resolution for the RevTurbine SDK (plan 118 TASK-20).
16808
18021
  *
@@ -16891,10 +18104,10 @@ declare function resolveBranding(input?: BrandingResolutionInput): ResolvedBrand
16891
18104
  /**
16892
18105
  * Control-plane semantic events (plan 112).
16893
18106
  *
16894
- * A typed layer over the SDK's generic event emit path for RevTurbine's OWN
16895
- * control-plane activity — web/CLI auth, change-set lifecycle, config, and
16896
- * product-entity actions. This is the "dogfood" surface: RevTurbine emits its
16897
- * product usage through the same SDK a customer uses.
18107
+ * A typed layer over the SDK's raw event emit path for RevTurbine's OWN
18108
+ * control-plane activity — web/CLI auth, playbook-version lifecycle, playbook
18109
+ * transfer, and product-entity actions. This is the "dogfood" surface:
18110
+ * RevTurbine emits its product usage through the same SDK a customer uses.
16898
18111
  *
16899
18112
  * The taxonomy itself is the canonical `ControlPlaneEventType` /
16900
18113
  * `ControlPlaneEventSource` enums from `@revt-eng/schema`; this module adds the
@@ -16912,7 +18125,8 @@ declare function resolveBranding(input?: BrandingResolutionInput): ResolvedBrand
16912
18125
  /**
16913
18126
  * Canonical source classification for every control-plane event type — mirrors
16914
18127
  * the scaffold taxonomy. `system` covers identity/auth + CLI command telemetry;
16915
- * `workflow` covers change-set lifecycle, config, and product-entity actions.
18128
+ * `workflow` covers playbook-version lifecycle, playbook transfer, and
18129
+ * product-entity actions.
16916
18130
  *
16917
18131
  * Typed as a total `Record`, so adding a new `ControlPlaneEventType` in scaffold
16918
18132
  * without classifying it here is a compile error.
@@ -18011,6 +19225,23 @@ interface RevTurbineInitOptions {
18011
19225
  domainProviders?: AnyDomainProvider[];
18012
19226
  /** Maximum time for one client experiment provider resolution. Default: 5000ms. */
18013
19227
  experimentProviderTimeoutMs?: number;
19228
+ /**
19229
+ * Canonical-version declarations for `experiment_assigned` assignment facts
19230
+ * (plan 224, war-games spec §9.1).
19231
+ *
19232
+ * The assignment fact's (experiment handle, experiment version) pair is the
19233
+ * SRM join key, and the runtime assignment snapshot deliberately carries
19234
+ * handles only — so a fact is emitted **only** for experiments declared
19235
+ * here (or via `CanonicalExperimentAllocation.sequence` on the native
19236
+ * provider, which declares automatically). Works for ANY assignment source:
19237
+ * native bucketer, external adapters (GrowthBook, Optimizely, custom), and
19238
+ * caller-supplied `user.experiments` assignments alike. An assigned
19239
+ * experiment with no declaration emits no fact rather than one with a
19240
+ * fabricated version; unenrolled subjects emit nothing — not-enrolled is
19241
+ * absence. Entries here override a provider-derived declaration for the
19242
+ * same handle.
19243
+ */
19244
+ experimentAssignmentFacts?: readonly ExperimentAssignmentFactDeclaration[];
18014
19245
  /** Optional UI path resolver map used by `validateUiPathResolvers()`. */
18015
19246
  uiPathResolvers?: RevTurbineUiPathResolverMap;
18016
19247
  /**
@@ -18154,7 +19385,14 @@ interface RevTurbineEndpointOverrides {
18154
19385
  /** Keyless anonymous SDK telemetry endpoint (`POST /api/sdk/meta`). */
18155
19386
  ingestSdkMeta: string;
18156
19387
  touchpointTransition: string;
18157
- legacyInteractions: string;
19388
+ /**
19389
+ * @deprecated Ignored since plan 232. This pointed at a fallback the SDK
19390
+ * retried when the interactions POST failed — against a route the app does
19391
+ * not serve, with the internal queue shape rather than the wire shape, so it
19392
+ * could only ever 404. Setting it has no effect; the key remains so an
19393
+ * existing integration that passes it still compiles.
19394
+ */
19395
+ legacyInteractions?: string;
18158
19396
  placementTypes: string;
18159
19397
  surfaceSlots: string;
18160
19398
  }
@@ -18556,6 +19794,31 @@ type RevTurbineTriggerPayload = TrialTriggerPayload | UsageTriggerPayload | Feat
18556
19794
  */
18557
19795
  declare function createSemanticEvent(eventType: string, payload: SdkEventProperties, options?: RevTurbineEventOptions): RevTurbineSemanticEvent;
18558
19796
 
19797
+ /**
19798
+ * Every event name on the taxonomy's `control_plane` surface — emitted via
19799
+ * {@link RevTurbineCustomerSdk.trackControlPlaneEvent}, never the platform
19800
+ * surface. The TYPE is the CP ingest enum; the runtime set below derives
19801
+ * from the taxonomy's surface field, so a scaffold surface reclassification
19802
+ * (plan 228's dogfood ruling moved `area_viewed`/`feature_gated` OUT of
19803
+ * this surface) flows through on a pin bump with no SDK edit.
19804
+ */
19805
+ type ControlPlaneEventName = (typeof CONTROL_PLANE_EVENT_NAMES)[number];
19806
+ /**
19807
+ * Every platform event the typed emit surface accepts: the full taxonomy
19808
+ * MINUS the control-plane surface (structural exclusion — the CP has its own
19809
+ * typed path with source classification, and a customer emitting
19810
+ * `playbook_version_deployed` would be forging RevTurbine's own product
19811
+ * telemetry). Includes the R-2 billing vocabulary: billing facts consumed
19812
+ * from Stripe must be equally emittable first-party (plan 228 R-1).
19813
+ */
19814
+ type EmittablePlatformEventName = Exclude<PlatformEventName, ControlPlaneEventName>;
19815
+ /**
19816
+ * Runtime mirror of {@link EmittablePlatformEventName}, derived from the
19817
+ * payload-contract map so the emit surface and the taxonomy cannot drift —
19818
+ * the parity test asserts this set plus the control-plane surface IS the
19819
+ * taxonomy.
19820
+ */
19821
+ declare const EMITTABLE_PLATFORM_EVENT_NAMES: readonly string[];
18559
19822
  /**
18560
19823
  * The core RevTurbine customer-facing SDK.
18561
19824
  *
@@ -18564,7 +19827,9 @@ declare function createSemanticEvent(eventType: string, payload: SdkEventPropert
18564
19827
  * - **Placements** — `registerPlacement()`, `getPlacementDecision()`, `getPlacement()`
18565
19828
  * - **Entitlements** — `checkEntitlement()`, `updateUsage()`
18566
19829
  * - **Trials** — `getTrialStatus()`
18567
- * - **Events** — `capture()`, `trackEvent()`, `emitSemantic()`
19830
+ * - **Events** — `track()` / `capture()` (generic lane; platform-name
19831
+ * collisions are namespaced), `emitPlatformEvent()` (typed platform lane,
19832
+ * contract-validated payloads)
18568
19833
  * - **Interactions** — `trackTreatmentInteraction()`, `dismiss()`, `convert()`
18569
19834
  * - **Context** — `setUserContext()`, `setPageContext()`, `refreshPageContext()`
18570
19835
  *
@@ -18639,8 +19904,19 @@ declare class RevTurbineCustomerSdk {
18639
19904
  private readonly syncedSurfaceSlotIds;
18640
19905
  private userContext;
18641
19906
  private contextRevision;
19907
+ private assignmentFactDeclarationsByHandle;
19908
+ private readonly emittedAssignmentFactKeys;
19909
+ private emittedAssignmentFactRevision?;
18642
19910
  private providerResolutionController;
18643
19911
  private lastEffectiveContext?;
19912
+ /**
19913
+ * The effective segment memberships from the most recent provider
19914
+ * resolution — resolved provider segments ∪ locally evaluated segments.
19915
+ * Stamped onto every event envelope as `segment_ids`, exactly as
19916
+ * `experiment_assignments` is stamped (plan 228 TASK-4 / REQ-11a), so
19917
+ * segment cuts read as-of-event truth instead of requiring a config join.
19918
+ */
19919
+ private lastEffectiveSegmentIds;
18644
19920
  private pageContext;
18645
19921
  /**
18646
19922
  * Secure per-user client token (`rt_client_`, plan 157). Minted by the
@@ -18740,6 +20016,19 @@ declare class RevTurbineCustomerSdk {
18740
20016
  getExperimentVariant(experimentHandle: string): Promise<ExperimentVariantSelection>;
18741
20017
  /** Return the immutable ephemeral context currently entering local evaluation. */
18742
20018
  getEffectiveUserContext(): Promise<Readonly<RevTurbineUserContext>>;
20019
+ /**
20020
+ * Emit `experiment_assigned` assignment facts for the resolved snapshot
20021
+ * (plan 224 TASK-8, war-games spec §9.1). One fact per (experiment handle,
20022
+ * experiment version, subject), declaration-gated and deduped per context
20023
+ * revision: re-resolution within one revision emits nothing new, and a new
20024
+ * revision re-emits the same idempotent `assignment_id`, which collapses in
20025
+ * storage. Only `status: 'assigned'` selections emit — an unenrolled
20026
+ * subject is absence (assignment spec §4), and provider failures
20027
+ * (`unavailable` / `unsupported` / `not_assigned`) never fabricate a fact.
20028
+ */
20029
+ private emitExperimentAssignmentFacts;
20030
+ /** Hash and emit one assignment fact; best-effort, never throws into the app. */
20031
+ private emitExperimentAssignmentFact;
18743
20032
  private markAllSegmentsDirty;
18744
20033
  private markSegmentsDirtyForFields;
18745
20034
  private toSegmentEvaluationTraits;
@@ -19079,6 +20368,34 @@ declare class RevTurbineCustomerSdk {
19079
20368
  */
19080
20369
  getTelemetryCounters(): TelemetryCounters;
19081
20370
  capture(eventName: string, properties: SdkEventProperties, options?: RevTurbineEventOptions): Promise<void>;
20371
+ /**
20372
+ * Emit a typed platform event (plan 228 TASK-4).
20373
+ *
20374
+ * The sanctioned first-party path for every platform event OUTSIDE the
20375
+ * control plane — SDK lifecycle, gates, placements, milestones, growth
20376
+ * signals, and the R-2 billing vocabulary (a billing fact consumed from
20377
+ * Stripe is equally emittable here; the ingest path dedupes on the
20378
+ * contract's identity keys, e.g. `billing_ref`). The payload parameter type
20379
+ * is inferred from the event's payload contract, so the API cannot drift
20380
+ * from the schema the payload is validated against.
20381
+ *
20382
+ * The name is sent RAW — no `clickstream_*` namespacing — which is exactly
20383
+ * what distinguishes this from {@link track}: the generic lane namespaces
20384
+ * platform collisions, the typed lane IS the platform.
20385
+ *
20386
+ * In development/test builds the payload is validated against its contract
20387
+ * at emit time; a violation emits an `sdk_validation_warning` alongside
20388
+ * (never a throw — telemetry must not break the host app). Production
20389
+ * builds skip validation; the ingest boundary re-validates authoritatively.
20390
+ */
20391
+ emitPlatformEvent<K extends EmittablePlatformEventName>(eventName: K, payload: EventPayloadInput<K>, options?: RevTurbineEventOptions): Promise<void>;
20392
+ /**
20393
+ * Emit an `sdk_validation_warning` conforming to its own payload contract
20394
+ * (`message` is the contract's required field; `reason` rides along for
20395
+ * pre-228 consumers). Fire-and-forget — never throws into the host app.
20396
+ */
20397
+ private emitSdkWarning;
20398
+ private captureRaw;
19082
20399
  /**
19083
20400
  * Emit a typed control-plane semantic event (plan 112).
19084
20401
  *
@@ -19102,7 +20419,7 @@ declare class RevTurbineCustomerSdk {
19102
20419
  * @example
19103
20420
  * ```ts
19104
20421
  * sdk.identify('operator_42', { account_id: 'tn_acme' });
19105
- * await sdk.trackControlPlaneEvent('changeset_deployed', { change_set_id: 'cs_9' });
20422
+ * await sdk.trackControlPlaneEvent('playbook_version_deployed', { change_set_id: 'cs_9' });
19106
20423
  * ```
19107
20424
  */
19108
20425
  trackControlPlaneEvent(eventType: ControlPlaneEventType, payload?: SdkEventProperties, options?: RevTurbineEventOptions): Promise<void>;
@@ -19128,6 +20445,36 @@ declare class RevTurbineCustomerSdk {
19128
20445
  * instance (e.g. SPA unmount) to avoid a dangling interval/listeners.
19129
20446
  */
19130
20447
  dispose(): void;
20448
+ /**
20449
+ * Emit a semantic event through the GENERIC string lane.
20450
+ *
20451
+ * Since plan 228 TASK-4 this is a customer-lane API, not a platform one: it
20452
+ * rides {@link capture}, so a name colliding with platform vocabulary is
20453
+ * namespaced `clickstream_*` — platform events cannot be forged from here.
20454
+ * The SDK's own platform emissions use {@link emitPlatformEvent}, whose
20455
+ * payloads are typed and contract-validated.
20456
+ *
20457
+ * The fields are passed to {@link capture} DIRECTLY, exactly as a customer's
20458
+ * own `capture(name, {...})` call would. Anything else double-wraps them.
20459
+ *
20460
+ * This used to send `{semantic: true, payload: fields}`. The wire mapping
20461
+ * already stores an envelope's properties under the key `payload`, so that
20462
+ * inner wrapper landed the fields at `properties.payload.payload.<field>` in
20463
+ * `events_clickstream` — one level deeper than every `capture()` event and
20464
+ * than the canonical carrier this SDK documents. Readers that followed the
20465
+ * documented shape (`user_context_fields`, any analytics pipe) found nothing
20466
+ * on a semantic event, which is why gate telemetry was invisible to the
20467
+ * entitlement metrics despite being emitted correctly.
20468
+ *
20469
+ * The `semantic: true` marker went with it: it was written here and read
20470
+ * nowhere in the SDK, the web app, or any pipe. It marked nothing and cost a
20471
+ * whole nesting level.
20472
+ *
20473
+ * `liftClickstreamFields` / `pickClickstreamField` are unaffected — they
20474
+ * resolve top-level first and fall back to the nested bag, so they read the
20475
+ * fields either way. Only the STORED JSON changes shape, and it changes to
20476
+ * the shape everything else already expects.
20477
+ */
19131
20478
  emitSemantic(eventType: string, payload: SdkEventProperties, options?: RevTurbineEventOptions): Promise<void>;
19132
20479
  /**
19133
20480
  * Optimized routine to evaluate segment membership and usage thresholds.
@@ -19240,6 +20587,20 @@ declare class RevTurbineCustomerSdk {
19240
20587
  bootstrapPlacementDecisions(inputs: RevTurbinePlacementDecisionInput[]): Promise<void>;
19241
20588
  private updateInteractionState;
19242
20589
  private flushInteractionQueue;
20590
+ /**
20591
+ * Re-queue a failed interaction flush and make the failure VISIBLE.
20592
+ *
20593
+ * This used to retry against a legacy path that does not exist in the app,
20594
+ * with the internal queue shape rather than the wire shape — so a failure
20595
+ * produced a silent 404, the batch went back on the queue, and it was
20596
+ * discarded at page unload with nothing recorded anywhere. That is how a
20597
+ * whole class of dropped presentations stayed invisible (plan 232).
20598
+ *
20599
+ * Re-queuing is still right — a transient failure should retry on the next
20600
+ * flush — but it is now paired with a counter and a diagnostic, so a
20601
+ * persistent failure is observable instead of merely quiet.
20602
+ */
20603
+ private failInteractionFlush;
19243
20604
  trackTreatmentInteraction(input: RevTurbineTreatmentInteractionInput): Promise<void>;
19244
20605
  getPlacementContent(placementId: string, request?: JsonObject): Promise<RevTurbinePlacementContent>;
19245
20606
  /**
@@ -19531,10 +20892,22 @@ declare class RevTurbineCustomerSdk {
19531
20892
  * name to {@link RevTurbineTriggerEvent} and attaches standard context
19532
20893
  * (user_id, plan, timestamp) automatically.
19533
20894
  *
20895
+ * **Three trigger names land namespaced on the wire.** This rides the
20896
+ * generic emit lane, which prefixes `clickstream_` to any name the platform
20897
+ * taxonomy already declares — the rule that stops a client forging a
20898
+ * first-party fact by naming an event after one. `trial_expired`,
20899
+ * `payment_failed` and `feature_gated` collide, so they are stored as
20900
+ * `clickstream_trial_expired`, `clickstream_payment_failed` and
20901
+ * `clickstream_feature_gated`. Query those names, not the raw ones. The
20902
+ * remaining triggers are unaffected, and the platform's own versions of the
20903
+ * three are emitted first-party through the typed surface. Pinned by
20904
+ * `trigger-namespacing-parity.test.ts` (plan 231 REQ-4).
20905
+ *
19534
20906
  * @example
19535
20907
  * ```ts
19536
20908
  * await sdk.emitTrigger('usage_limit_approaching', { usage_percent: 85, threshold: 80 });
19537
20909
  * await sdk.emitTrigger('trial_expiring', { days_remaining: 2 });
20910
+ * // stored as `clickstream_feature_gated` — see the collision note above
19538
20911
  * await sdk.emitTrigger('feature_gated', { feature: 'advanced_automation' });
19539
20912
  * ```
19540
20913
  */
@@ -21149,7 +22522,7 @@ interface paths {
21149
22522
  };
21150
22523
  get?: never;
21151
22524
  put?: never;
21152
- /** Record a placement treatment interaction */
22525
+ /** Record one placement treatment interaction, or a batch of them */
21153
22526
  post: operations["recordTreatmentInteraction"];
21154
22527
  delete?: never;
21155
22528
  options?: never;
@@ -21534,7 +22907,7 @@ interface components {
21534
22907
  filter_id: components["schemas"]["Anon_a42d262cd3ca_1"];
21535
22908
  value: components["schemas"]["Anon_caed89591949"];
21536
22909
  };
21537
- AnalyticsFilterValue: components["schemas"]["Anon_ac51ea83ce2a"] | components["schemas"]["Anon_0c21718d6f50"] | components["schemas"]["Anon_f84cd6df4c09"] | components["schemas"]["Anon_6dcff20eb273"];
22910
+ AnalyticsFilterValue: components["schemas"]["Anon_ac51ea83ce2a"] | components["schemas"]["Anon_0c21718d6f50"] | components["schemas"]["Anon_f84cd6df4c09"] | components["schemas"]["Anon_6dcff20eb273"] | components["schemas"]["Anon_883e390a065a"];
21538
22911
  /** @enum {string} */
21539
22912
  AnalyticsPeriodCompareMode: "none" | "previous_period" | "previous_year" | "custom_period";
21540
22913
  AnalyticsQueryOverrides: {
@@ -21656,6 +23029,7 @@ interface components {
21656
23029
  content_ui_paths: components["schemas"]["Anon_274ba4ca49d5_6"];
21657
23030
  surface_templates: components["schemas"]["Anon_274ba4ca49d5_7"];
21658
23031
  };
23032
+ TreatmentInteractionRequest: components["schemas"]["TreatmentInteractionInput"] | components["schemas"]["TreatmentInteractionBatch"];
21659
23033
  TreatmentInteractionInput: {
21660
23034
  user_id: components["schemas"]["Anon_761f976a1da1_2"];
21661
23035
  placement_id: components["schemas"]["Anon_57796118d046_18"];
@@ -21674,6 +23048,7 @@ interface components {
21674
23048
  };
21675
23049
  /** @enum {string} */
21676
23050
  TreatmentInteractionType: "impression" | "dismiss" | "remind_me_later" | "cta_clicked" | "cta_completed" | "suppress";
23051
+ TreatmentInteractionBatch: components["schemas"]["TreatmentInteractionInput"][];
21677
23052
  WebhookEventLog: {
21678
23053
  id: components["schemas"]["Anon_fb248bf5a9f7"];
21679
23054
  created_at: components["schemas"]["Anon_be3e2585472d"];
@@ -22561,6 +23936,14 @@ interface components {
22561
23936
  };
22562
23937
  Anon_cddf8275afa1_4: number;
22563
23938
  Anon_cddf8275afa1_5: number;
23939
+ Anon_883e390a065a: {
23940
+ /** @constant */
23941
+ type: "date_range";
23942
+ /** Format: date */
23943
+ start: string;
23944
+ /** Format: date */
23945
+ end: string;
23946
+ };
22564
23947
  Anon_f7f72b156db3: components["schemas"]["AnalyticsQueryOverrides"];
22565
23948
  Anon_84d5ba8ffc25: components["schemas"]["AnalyticsTimeGrain"];
22566
23949
  Anon_7e61734f9a3b: components["schemas"]["AnalyticsCompareMode"];
@@ -24108,8 +25491,16 @@ interface components {
24108
25491
  query_families: components["schemas"]["Anon_54e2154d1e2d"];
24109
25492
  source_scope: components["schemas"]["Anon_a3ffad10d15c_5"];
24110
25493
  coverage_metric?: components["schemas"]["Anon_473e554f0735_16"];
25494
+ dimension_groundings?: components["schemas"]["Anon_7cdcf9f62dcd"];
24111
25495
  deprecation?: components["schemas"]["Anon_8f09b448c37f"];
24112
25496
  };
25497
+ AnalyticsDimensionGrounding: {
25498
+ kind: components["schemas"]["Anon_02276af6fec4"];
25499
+ source: components["schemas"]["Anon_872e58432369_4"];
25500
+ note?: components["schemas"]["Anon_ac655a3e6b9f"];
25501
+ };
25502
+ /** @enum {string} */
25503
+ AnalyticsDimensionGroundingKind: "stamped" | "membership_join" | "config_join" | "derived";
24113
25504
  AnalyticsCatalogDeprecation: {
24114
25505
  deprecated: components["schemas"]["Anon_a2b04841bdf1_1"];
24115
25506
  replaced_by?: components["schemas"]["Anon_473e554f0735_17"];
@@ -24152,6 +25543,9 @@ interface components {
24152
25543
  statistical_type?: components["schemas"]["Anon_34eccd68143e"];
24153
25544
  aggregation_semantics?: components["schemas"]["Anon_6a4e149367f5"];
24154
25545
  preferred_analysis_unit?: components["schemas"]["Anon_612059bf001c_6"];
25546
+ numerator_metric?: components["schemas"]["Anon_473e554f0735_20"];
25547
+ denominator_metric?: components["schemas"]["Anon_473e554f0735_21"];
25548
+ derivation?: components["schemas"]["Anon_22c006ff8d66"];
24155
25549
  deprecation?: components["schemas"]["Anon_8f09b448c37f_2"];
24156
25550
  };
24157
25551
  /** @enum {string} */
@@ -24162,6 +25556,18 @@ interface components {
24162
25556
  AnalyticsMetricStatisticalType: "binary" | "count" | "continuous" | "ratio" | "revenue";
24163
25557
  /** @enum {string} */
24164
25558
  AnalyticsMetricAggregationSemantics: "additive" | "semi_additive" | "non_additive";
25559
+ AnalyticsMetricDerivation: {
25560
+ kind: components["schemas"]["Anon_a1d7a3ac66b8"];
25561
+ input_origin: components["schemas"]["Anon_8a96081932e9"];
25562
+ ingested_events: components["schemas"]["Anon_304a69e72d83"];
25563
+ ingested_datasources?: components["schemas"]["Anon_6411eaf2b1b5"];
25564
+ carried_by?: components["schemas"]["Anon_04b033dd40a9"];
25565
+ note?: components["schemas"]["Anon_1e68bee50f0f"];
25566
+ };
25567
+ /** @enum {string} */
25568
+ AnalyticsMetricDerivationKind: "derived" | "observed" | "unavailable";
25569
+ /** @enum {string} */
25570
+ AnalyticsIngestedInputOrigin: "platform" | "customer_authored" | "mixed" | "none";
24165
25571
  AnalyticsCatalogAnnotationKind: {
24166
25572
  kind: components["schemas"]["Anon_7ed6fcd5ece3"];
24167
25573
  label: components["schemas"]["Anon_cd76cef95ac8_4"];
@@ -24175,7 +25581,7 @@ interface components {
24175
25581
  AnalyticsAnnotationMarker: "point" | "region";
24176
25582
  AnalyticsCatalogSearchResult: {
24177
25583
  catalog_version: components["schemas"]["Anon_0c649f0987df_4"];
24178
- query: components["schemas"]["Anon_872e58432369_4"];
25584
+ query: components["schemas"]["Anon_872e58432369_5"];
24179
25585
  entries: components["schemas"]["Anon_57df4039d087"];
24180
25586
  };
24181
25587
  AnalyticsAgentCatalogEntry: {
@@ -24216,7 +25622,7 @@ interface components {
24216
25622
  result: components["schemas"]["Anon_56fff7881fad"];
24217
25623
  };
24218
25624
  AnalyticsResultField: {
24219
- id: components["schemas"]["Anon_473e554f0735_20"];
25625
+ id: components["schemas"]["Anon_473e554f0735_22"];
24220
25626
  type: components["schemas"]["Anon_65ce7e0d8aee_2"];
24221
25627
  nullable: components["schemas"]["Anon_a2b04841bdf1_2"];
24222
25628
  };
@@ -24231,7 +25637,7 @@ interface components {
24231
25637
  };
24232
25638
  AnalyticsResultMeta: {
24233
25639
  query_hash: components["schemas"]["Anon_4e975b8486b2_1"];
24234
- concept: components["schemas"]["Anon_473e554f0735_21"];
25640
+ concept: components["schemas"]["Anon_473e554f0735_23"];
24235
25641
  analytical_unit: components["schemas"]["Anon_612059bf001c_7"];
24236
25642
  source_scope: components["schemas"]["Anon_a3ffad10d15c_8"];
24237
25643
  coverage?: components["schemas"]["Anon_46875cb51ec3"];
@@ -24350,7 +25756,7 @@ interface components {
24350
25756
  created_at: components["schemas"]["Anon_be3e2585472d_2"];
24351
25757
  updated_at: components["schemas"]["Anon_be3e2585472d_3"];
24352
25758
  tenant_id: components["schemas"]["Anon_fb248bf5a9f7_10"];
24353
- workspace_name: components["schemas"]["Anon_872e58432369_5"];
25759
+ workspace_name: components["schemas"]["Anon_872e58432369_6"];
24354
25760
  support_email: components["schemas"]["Anon_7dbd1de5e9ee"];
24355
25761
  timezone: components["schemas"]["Anon_c44ee03a9c5e"];
24356
25762
  default_currency: components["schemas"]["Anon_64586219ef83_1"];
@@ -24378,7 +25784,7 @@ interface components {
24378
25784
  updated_at: components["schemas"]["Anon_be3e2585472d_3"];
24379
25785
  tenant_id: components["schemas"]["Anon_fb248bf5a9f7_10"];
24380
25786
  step_key: components["schemas"]["Anon_3b8fc1cd9e8b_26"];
24381
- label: components["schemas"]["Anon_872e58432369_6"];
25787
+ label: components["schemas"]["Anon_872e58432369_7"];
24382
25788
  done: components["schemas"]["Anon_062d958a93c4_25"];
24383
25789
  completed_at: components["schemas"]["Anon_24a0ac3f017b_4"];
24384
25790
  };
@@ -24409,7 +25815,7 @@ interface components {
24409
25815
  sequence: components["schemas"]["Anon_ffffc3c874cb_1"];
24410
25816
  base_sequence: components["schemas"]["Anon_71a2fb329804_1"];
24411
25817
  handle: components["schemas"]["Anon_2457cccd64aa_12"];
24412
- identifier: components["schemas"]["Anon_872e58432369_7"];
25818
+ identifier: components["schemas"]["Anon_872e58432369_8"];
24413
25819
  identifier_type: components["schemas"]["Anon_b07a1e0dbc7b"];
24414
25820
  note: components["schemas"]["Anon_519dcb817ac7"];
24415
25821
  added_by: components["schemas"]["Anon_127eb78cd9c0_12"];
@@ -25827,6 +27233,14 @@ interface components {
25827
27233
  };
25828
27234
  Anon_cddf8275afa1_17: number;
25829
27235
  Anon_cddf8275afa1_18: number;
27236
+ Anon_883e390a065a_1: {
27237
+ /** @constant */
27238
+ type: "date_range";
27239
+ /** Format: date */
27240
+ start: string;
27241
+ /** Format: date */
27242
+ end: string;
27243
+ };
25830
27244
  /** @default false */
25831
27245
  Anon_062d958a93c4_18: components["schemas"]["Anon_7cb541e84f22_68"];
25832
27246
  Anon_7cb541e84f22_68: boolean;
@@ -26016,6 +27430,14 @@ interface components {
26016
27430
  Anon_54e2154d1e2d: components["schemas"]["AnalyticsQueryFamily"][];
26017
27431
  Anon_a3ffad10d15c_5: components["schemas"]["AnalyticsSourceScope"];
26018
27432
  Anon_473e554f0735_16: components["schemas"]["Anon_c8d24748191b_1"];
27433
+ Anon_7cdcf9f62dcd: components["schemas"]["Anon_ebc742463bcd"];
27434
+ Anon_ebc742463bcd: {
27435
+ [key: string]: components["schemas"]["AnalyticsDimensionGrounding"];
27436
+ };
27437
+ Anon_02276af6fec4: components["schemas"]["AnalyticsDimensionGroundingKind"];
27438
+ Anon_872e58432369_4: string;
27439
+ Anon_ac655a3e6b9f: components["schemas"]["Anon_800d95542a20"];
27440
+ Anon_800d95542a20: string;
26019
27441
  Anon_8f09b448c37f: components["schemas"]["AnalyticsCatalogDeprecation"];
26020
27442
  Anon_a2b04841bdf1_1: boolean;
26021
27443
  Anon_473e554f0735_17: components["schemas"]["Anon_c8d24748191b_1"];
@@ -26058,6 +27480,21 @@ interface components {
26058
27480
  Anon_34eccd68143e: components["schemas"]["AnalyticsMetricStatisticalType"];
26059
27481
  Anon_6a4e149367f5: components["schemas"]["AnalyticsMetricAggregationSemantics"];
26060
27482
  Anon_612059bf001c_6: components["schemas"]["AnalyticsAnalyticalUnit"];
27483
+ Anon_473e554f0735_20: components["schemas"]["Anon_c8d24748191b_1"];
27484
+ Anon_473e554f0735_21: components["schemas"]["Anon_c8d24748191b_1"];
27485
+ Anon_22c006ff8d66: components["schemas"]["AnalyticsMetricDerivation"];
27486
+ Anon_a1d7a3ac66b8: components["schemas"]["AnalyticsMetricDerivationKind"];
27487
+ Anon_8a96081932e9: components["schemas"]["AnalyticsIngestedInputOrigin"];
27488
+ Anon_304a69e72d83: components["schemas"]["Anon_64fcdc575ad5"][];
27489
+ Anon_64fcdc575ad5: string;
27490
+ Anon_6411eaf2b1b5: components["schemas"]["Anon_d36735de5e00"];
27491
+ Anon_d36735de5e00: components["schemas"]["Anon_64fcdc575ad5_1"][];
27492
+ Anon_64fcdc575ad5_1: string;
27493
+ Anon_04b033dd40a9: components["schemas"]["Anon_c6d8e2b09e6d"];
27494
+ Anon_c6d8e2b09e6d: components["schemas"]["Anon_64fcdc575ad5_2"][];
27495
+ Anon_64fcdc575ad5_2: string;
27496
+ Anon_1e68bee50f0f: components["schemas"]["Anon_45ca91dbcd70"];
27497
+ Anon_45ca91dbcd70: string;
26061
27498
  Anon_8f09b448c37f_2: components["schemas"]["AnalyticsCatalogDeprecation"];
26062
27499
  Anon_203017ce4604: components["schemas"]["Anon_d9dbfa5954cd"];
26063
27500
  Anon_d9dbfa5954cd: components["schemas"]["AnalyticsCatalogAnnotationKind"][];
@@ -26067,7 +27504,7 @@ interface components {
26067
27504
  Anon_8783ccc02cda: components["schemas"]["AnalyticsAnnotationSource"];
26068
27505
  Anon_85e861e36da5: components["schemas"]["AnalyticsAnnotationMarker"];
26069
27506
  Anon_0c649f0987df_4: string;
26070
- Anon_872e58432369_4: string;
27507
+ Anon_872e58432369_5: string;
26071
27508
  Anon_57df4039d087: components["schemas"]["AnalyticsAgentCatalogEntry"][];
26072
27509
  Anon_53c09eaf03ab_7: components["schemas"]["AnalyticsSemanticIdOutput"];
26073
27510
  Anon_33085dabcc5b: components["schemas"]["AnalyticsAgentCatalogEntryKind"];
@@ -26108,12 +27545,12 @@ interface components {
26108
27545
  [key: string]: unknown;
26109
27546
  };
26110
27547
  Anon_0bd5ae84ded2: components["schemas"]["AnalyticsResultField"][];
26111
- Anon_473e554f0735_20: components["schemas"]["Anon_c8d24748191b_1"];
27548
+ Anon_473e554f0735_22: components["schemas"]["Anon_c8d24748191b_1"];
26112
27549
  Anon_65ce7e0d8aee_2: components["schemas"]["AnalyticsFieldType"];
26113
27550
  Anon_a2b04841bdf1_2: boolean;
26114
27551
  Anon_de5c7379be05: components["schemas"]["AnalyticsResultMeta"];
26115
27552
  Anon_4e975b8486b2_1: string;
26116
- Anon_473e554f0735_21: components["schemas"]["Anon_c8d24748191b_1"];
27553
+ Anon_473e554f0735_23: components["schemas"]["Anon_c8d24748191b_1"];
26117
27554
  Anon_612059bf001c_7: components["schemas"]["AnalyticsAnalyticalUnit"];
26118
27555
  Anon_a3ffad10d15c_8: components["schemas"]["AnalyticsSourceScope"];
26119
27556
  Anon_46875cb51ec3: components["schemas"]["AnalyticsCoverage"];
@@ -26264,7 +27701,7 @@ interface components {
26264
27701
  /** @default true */
26265
27702
  Anon_493deecc809a_15: components["schemas"]["Anon_7cb541e84f22_77"];
26266
27703
  Anon_7cb541e84f22_77: boolean;
26267
- Anon_872e58432369_5: string;
27704
+ Anon_872e58432369_6: string;
26268
27705
  /** @default null */
26269
27706
  Anon_7dbd1de5e9ee: components["schemas"]["Anon_39a43881005e_2"];
26270
27707
  Anon_39a43881005e_2: string | null;
@@ -26307,7 +27744,7 @@ interface components {
26307
27744
  Anon_062d958a93c4_24: components["schemas"]["Anon_7cb541e84f22_79"];
26308
27745
  Anon_7cb541e84f22_79: boolean;
26309
27746
  Anon_3b8fc1cd9e8b_26: string;
26310
- Anon_872e58432369_6: string;
27747
+ Anon_872e58432369_7: string;
26311
27748
  /** @default false */
26312
27749
  Anon_062d958a93c4_25: components["schemas"]["Anon_7cb541e84f22_80"];
26313
27750
  Anon_7cb541e84f22_80: boolean;
@@ -26334,7 +27771,7 @@ interface components {
26334
27771
  /** Format: date-time */
26335
27772
  Anon_be3e2585472d_10: string;
26336
27773
  Anon_2457cccd64aa_12: components["schemas"]["Anon_0eb2e3b6e08c_3"];
26337
- Anon_872e58432369_7: string;
27774
+ Anon_872e58432369_8: string;
26338
27775
  /** @default user_id */
26339
27776
  Anon_b07a1e0dbc7b: components["schemas"]["PlacementTestUserIdentifierType"];
26340
27777
  /** @default null */
@@ -26841,7 +28278,7 @@ interface components {
26841
28278
  id: components["schemas"]["Anon_57796118d046_59"];
26842
28279
  label?: components["schemas"]["Anon_4e04ec5cc4e6_16"];
26843
28280
  };
26844
- AnalyticsFilterValueOutput: components["schemas"]["Anon_ac51ea83ce2a_1"] | components["schemas"]["Anon_0c21718d6f50_1"] | components["schemas"]["Anon_f84cd6df4c09_1"] | components["schemas"]["Anon_6dcff20eb273_1"];
28281
+ 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"];
26845
28282
  AnalyticsCompareSegmentOutput: {
26846
28283
  dimension: components["schemas"]["Anon_473e554f0735_4"];
26847
28284
  baseline: components["schemas"]["Anon_dce4d091369d_2"];
@@ -28747,7 +30184,7 @@ interface operations {
28747
30184
  };
28748
30185
  requestBody: {
28749
30186
  content: {
28750
- "application/json": components["schemas"]["TreatmentInteractionInput"];
30187
+ "application/json": components["schemas"]["TreatmentInteractionRequest"];
28751
30188
  };
28752
30189
  };
28753
30190
  responses: {
@@ -29017,6 +30454,16 @@ interface CanonicalExperimentAllocation {
29017
30454
  /** Unit represented by the stable subject identifier; defaults to `user`. */
29018
30455
  assignment_unit?: Experiment['assignment_unit'];
29019
30456
  variants: ReadonlyArray<Pick<Experiment['variants'][number], 'variant_id' | 'weight'>>;
30457
+ /**
30458
+ * Canonical experiment version — the `Experiment.sequence` this allocation
30459
+ * was taken from (plan 224, war-games spec §9.1). When present, the native
30460
+ * provider derives an {@link ExperimentAssignmentFactDeclaration} so
30461
+ * assignments emit the `experiment_assigned` assignment fact with the real
30462
+ * (handle, version) SRM join key. When absent, assignment still works but
30463
+ * no fact is emitted for this experiment — a fact with a fabricated
30464
+ * version is worse than a missing one.
30465
+ */
30466
+ sequence?: Experiment['sequence'];
29020
30467
  }
29021
30468
  /** One supported canonical experiment assignment unit. */
29022
30469
  type NativeExperimentAssignmentUnit = NonNullable<Experiment['assignment_unit']>;
@@ -29064,7 +30511,7 @@ declare function adaptExperimentVersionToBucketer(experiment: CanonicalExperimen
29064
30511
  * Build the native assignment provider whose allocation authority is the
29065
30512
  * canonical Experiment version rather than duplicated SDK configuration.
29066
30513
  */
29067
- declare function createNativeExperimentAssignmentProvider(options: NativeExperimentAssignmentOptions): ExperimentAssignmentProvider;
30514
+ declare function createNativeExperimentAssignmentProvider(options: NativeExperimentAssignmentOptions): ExperimentAssignmentProvider & ExperimentAssignmentFactMetadataCarrier;
29068
30515
  /**
29069
30516
  * Build the built-in bucketer. Register it explicitly to switch it on:
29070
30517
  *
@@ -29540,5 +30987,5 @@ declare class RevTurbineServer {
29540
30987
  private apiGet;
29541
30988
  }
29542
30989
 
29543
- export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, 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, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, 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, EnforcementActionSchema, EnforcementModeSchema, 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, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, 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, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, 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, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, 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, RevTurbineServer, 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, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, 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, deriveReverseTrialGrants, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, 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, requireSchemaFacets, resetDefaultRegistry, resolveBranding, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validatePlacementThresholdWarnings };
29544
- export type { ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, 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, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EnforcementAction, EnforcementMode, 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, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, 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, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, 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, 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, StaticPlacementResolverOptions, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StudioSurfaceType, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackIngestBatch, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionInput, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookEventLog, WebhookEventSource, WebhookEventStatus };
30990
+ export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, 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, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, 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, EnforcementActionSchema, EnforcementModeSchema, 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, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, 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, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, 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, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, 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, RevTurbineServer, 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, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, 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, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, 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, deriveReverseTrialGrants, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, 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, requireSchemaFacets, resetDefaultRegistry, resolveBranding, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateEventPayload, validatePlacementThresholdWarnings };
30991
+ export type { ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, 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, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, 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, 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, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, 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, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, 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, 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, StaticPlacementResolverOptions, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StudioSurfaceType, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackIngestBatch, 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, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookEventLog, WebhookEventSource, WebhookEventStatus };