@revturbine/sdk 0.9.2 → 0.10.0

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/headless.d.ts +749 -88
  3. package/dist/headless.js +2 -2
  4. package/dist/headless.js.map +1 -1
  5. package/dist/index.d.ts +750 -89
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/types/server-node/client.d.ts +1 -1
  9. package/dist/types/server-node/client.d.ts.map +1 -1
  10. package/dist/types/server-node/local-server.d.ts.map +1 -1
  11. package/dist/types/server-node/types.d.ts +8 -1
  12. package/dist/types/server-node/types.d.ts.map +1 -1
  13. package/dist/types/web-sdk/analytics.d.ts +2 -2
  14. package/dist/types/web-sdk/analytics.d.ts.map +1 -1
  15. package/dist/types/web-sdk/controllers.d.ts +3 -3
  16. package/dist/types/web-sdk/controllers.d.ts.map +1 -1
  17. package/dist/types/web-sdk/customer-side.d.ts +94 -22
  18. package/dist/types/web-sdk/customer-side.d.ts.map +1 -1
  19. package/dist/types/web-sdk/headless.d.ts +1 -1
  20. package/dist/types/web-sdk/index.d.ts +1 -1
  21. package/dist/types/web-sdk/react/EngagementArea.d.ts.map +1 -1
  22. package/dist/types/web-sdk/react/RevTurbineProvider.d.ts +1 -1
  23. package/dist/types/web-sdk/react/RevTurbineProvider.d.ts.map +1 -1
  24. package/dist/types/web-sdk/react/Track.d.ts.map +1 -1
  25. package/dist/types/web-sdk/react/TrackOnView.d.ts.map +1 -1
  26. package/dist/types/web-sdk/react/useGatedAction.d.ts.map +1 -1
  27. package/dist/types/web-sdk/react/useTrack.d.ts.map +1 -1
  28. package/dist/types/web-sdk/react/useTrackedAction.d.ts.map +1 -1
  29. package/dist/types/web-sdk/telemetry/dom-capture.d.ts.map +1 -1
  30. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -3331,11 +3331,6 @@ declare const AnalyticsCatalogMetricSchema: z.ZodObject<{
3331
3331
  numerator_metric: z.ZodOptional<z.ZodString>;
3332
3332
  denominator_metric: z.ZodOptional<z.ZodString>;
3333
3333
  derivation: z.ZodOptional<z.ZodObject<{
3334
- kind: z.ZodEnum<{
3335
- derived: "derived";
3336
- observed: "observed";
3337
- unavailable: "unavailable";
3338
- }>;
3339
3334
  input_origin: z.ZodEnum<{
3340
3335
  none: "none";
3341
3336
  platform: "platform";
@@ -3347,6 +3342,17 @@ declare const AnalyticsCatalogMetricSchema: z.ZodObject<{
3347
3342
  carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3348
3343
  note: z.ZodOptional<z.ZodString>;
3349
3344
  }, z.core.$strip>>;
3345
+ layer: z.ZodOptional<z.ZodEnum<{
3346
+ derived: "derived";
3347
+ primitive: "primitive";
3348
+ }>>;
3349
+ catalog_status: z.ZodOptional<z.ZodEnum<{
3350
+ unavailable: "unavailable";
3351
+ declared: "declared";
3352
+ bound: "bound";
3353
+ validated: "validated";
3354
+ tested: "tested";
3355
+ }>>;
3350
3356
  deprecation: z.ZodOptional<z.ZodObject<{
3351
3357
  deprecated: z.ZodBoolean;
3352
3358
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -3419,11 +3425,6 @@ declare const AnalyticsCatalogMetricValidatedSchema: z.ZodObject<{
3419
3425
  numerator_metric: z.ZodOptional<z.ZodString>;
3420
3426
  denominator_metric: z.ZodOptional<z.ZodString>;
3421
3427
  derivation: z.ZodOptional<z.ZodObject<{
3422
- kind: z.ZodEnum<{
3423
- derived: "derived";
3424
- observed: "observed";
3425
- unavailable: "unavailable";
3426
- }>;
3427
3428
  input_origin: z.ZodEnum<{
3428
3429
  none: "none";
3429
3430
  platform: "platform";
@@ -3435,6 +3436,17 @@ declare const AnalyticsCatalogMetricValidatedSchema: z.ZodObject<{
3435
3436
  carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3436
3437
  note: z.ZodOptional<z.ZodString>;
3437
3438
  }, z.core.$strip>>;
3439
+ layer: z.ZodOptional<z.ZodEnum<{
3440
+ derived: "derived";
3441
+ primitive: "primitive";
3442
+ }>>;
3443
+ catalog_status: z.ZodOptional<z.ZodEnum<{
3444
+ unavailable: "unavailable";
3445
+ declared: "declared";
3446
+ bound: "bound";
3447
+ validated: "validated";
3448
+ tested: "tested";
3449
+ }>>;
3438
3450
  deprecation: z.ZodOptional<z.ZodObject<{
3439
3451
  deprecated: z.ZodBoolean;
3440
3452
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -3484,7 +3496,62 @@ declare const AnalyticsCatalogConceptSchema: z.ZodObject<{
3484
3496
  }>;
3485
3497
  source: z.ZodString;
3486
3498
  note: z.ZodOptional<z.ZodString>;
3499
+ anchor: z.ZodOptional<z.ZodEnum<{
3500
+ fixed: "fixed";
3501
+ current: "current";
3502
+ fact_time: "fact_time";
3503
+ period_opening: "period_opening";
3504
+ touch_time: "touch_time";
3505
+ cohort_entry: "cohort_entry";
3506
+ exposure_time: "exposure_time";
3507
+ assignment_time: "assignment_time";
3508
+ carried_version: "carried_version";
3509
+ }>>;
3510
+ selection: z.ZodOptional<z.ZodObject<{
3511
+ product: z.ZodOptional<z.ZodString>;
3512
+ environment: z.ZodOptional<z.ZodString>;
3513
+ }, z.core.$strip>>;
3514
+ partitions: z.ZodOptional<z.ZodBoolean>;
3515
+ catalog_status: z.ZodOptional<z.ZodEnum<{
3516
+ unavailable: "unavailable";
3517
+ declared: "declared";
3518
+ bound: "bound";
3519
+ validated: "validated";
3520
+ tested: "tested";
3521
+ }>>;
3522
+ blocker: z.ZodOptional<z.ZodString>;
3523
+ v1: z.ZodOptional<z.ZodBoolean>;
3487
3524
  }, z.core.$strip>>>;
3525
+ fact_kind: z.ZodOptional<z.ZodEnum<{
3526
+ transaction: "transaction";
3527
+ periodic_snapshot: "periodic_snapshot";
3528
+ accumulating_snapshot: "accumulating_snapshot";
3529
+ }>>;
3530
+ family: z.ZodOptional<z.ZodEnum<{
3531
+ billing: "billing";
3532
+ behavioral: "behavioral";
3533
+ }>>;
3534
+ primary_key: z.ZodOptional<z.ZodArray<z.ZodString>>;
3535
+ producer: z.ZodOptional<z.ZodEnum<{
3536
+ platform: "platform";
3537
+ customer_authored: "customer_authored";
3538
+ simulation: "simulation";
3539
+ }>>;
3540
+ materialization: z.ZodOptional<z.ZodObject<{
3541
+ mode: z.ZodEnum<{
3542
+ raw: "raw";
3543
+ rollup: "rollup";
3544
+ logical: "logical";
3545
+ }>;
3546
+ rollup_grain: z.ZodOptional<z.ZodEnum<{
3547
+ month: "month";
3548
+ day: "day";
3549
+ week: "week";
3550
+ quarter: "quarter";
3551
+ hour: "hour";
3552
+ }>>;
3553
+ }, z.core.$strip>>;
3554
+ livemode_qualified: z.ZodOptional<z.ZodBoolean>;
3488
3555
  deprecation: z.ZodOptional<z.ZodObject<{
3489
3556
  deprecated: z.ZodBoolean;
3490
3557
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -5618,7 +5685,62 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5618
5685
  }>;
5619
5686
  source: z.ZodString;
5620
5687
  note: z.ZodOptional<z.ZodString>;
5688
+ anchor: z.ZodOptional<z.ZodEnum<{
5689
+ fixed: "fixed";
5690
+ current: "current";
5691
+ fact_time: "fact_time";
5692
+ period_opening: "period_opening";
5693
+ touch_time: "touch_time";
5694
+ cohort_entry: "cohort_entry";
5695
+ exposure_time: "exposure_time";
5696
+ assignment_time: "assignment_time";
5697
+ carried_version: "carried_version";
5698
+ }>>;
5699
+ selection: z.ZodOptional<z.ZodObject<{
5700
+ product: z.ZodOptional<z.ZodString>;
5701
+ environment: z.ZodOptional<z.ZodString>;
5702
+ }, z.core.$strip>>;
5703
+ partitions: z.ZodOptional<z.ZodBoolean>;
5704
+ catalog_status: z.ZodOptional<z.ZodEnum<{
5705
+ unavailable: "unavailable";
5706
+ declared: "declared";
5707
+ bound: "bound";
5708
+ validated: "validated";
5709
+ tested: "tested";
5710
+ }>>;
5711
+ blocker: z.ZodOptional<z.ZodString>;
5712
+ v1: z.ZodOptional<z.ZodBoolean>;
5621
5713
  }, z.core.$strip>>>;
5714
+ fact_kind: z.ZodOptional<z.ZodEnum<{
5715
+ transaction: "transaction";
5716
+ periodic_snapshot: "periodic_snapshot";
5717
+ accumulating_snapshot: "accumulating_snapshot";
5718
+ }>>;
5719
+ family: z.ZodOptional<z.ZodEnum<{
5720
+ billing: "billing";
5721
+ behavioral: "behavioral";
5722
+ }>>;
5723
+ primary_key: z.ZodOptional<z.ZodArray<z.ZodString>>;
5724
+ producer: z.ZodOptional<z.ZodEnum<{
5725
+ platform: "platform";
5726
+ customer_authored: "customer_authored";
5727
+ simulation: "simulation";
5728
+ }>>;
5729
+ materialization: z.ZodOptional<z.ZodObject<{
5730
+ mode: z.ZodEnum<{
5731
+ raw: "raw";
5732
+ rollup: "rollup";
5733
+ logical: "logical";
5734
+ }>;
5735
+ rollup_grain: z.ZodOptional<z.ZodEnum<{
5736
+ month: "month";
5737
+ day: "day";
5738
+ week: "week";
5739
+ quarter: "quarter";
5740
+ hour: "hour";
5741
+ }>>;
5742
+ }, z.core.$strip>>;
5743
+ livemode_qualified: z.ZodOptional<z.ZodBoolean>;
5622
5744
  deprecation: z.ZodOptional<z.ZodObject<{
5623
5745
  deprecated: z.ZodBoolean;
5624
5746
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -5744,11 +5866,6 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5744
5866
  numerator_metric: z.ZodOptional<z.ZodString>;
5745
5867
  denominator_metric: z.ZodOptional<z.ZodString>;
5746
5868
  derivation: z.ZodOptional<z.ZodObject<{
5747
- kind: z.ZodEnum<{
5748
- derived: "derived";
5749
- observed: "observed";
5750
- unavailable: "unavailable";
5751
- }>;
5752
5869
  input_origin: z.ZodEnum<{
5753
5870
  none: "none";
5754
5871
  platform: "platform";
@@ -5760,6 +5877,17 @@ declare const AnalyticsCatalogSchema: z.ZodObject<{
5760
5877
  carried_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
5761
5878
  note: z.ZodOptional<z.ZodString>;
5762
5879
  }, z.core.$strip>>;
5880
+ layer: z.ZodOptional<z.ZodEnum<{
5881
+ derived: "derived";
5882
+ primitive: "primitive";
5883
+ }>>;
5884
+ catalog_status: z.ZodOptional<z.ZodEnum<{
5885
+ unavailable: "unavailable";
5886
+ declared: "declared";
5887
+ bound: "bound";
5888
+ validated: "validated";
5889
+ tested: "tested";
5890
+ }>>;
5763
5891
  deprecation: z.ZodOptional<z.ZodObject<{
5764
5892
  deprecated: z.ZodBoolean;
5765
5893
  replaced_by: z.ZodOptional<z.ZodString>;
@@ -6141,7 +6269,7 @@ interface AnalyticsCatalogView {
6141
6269
  * The metrics one Tinybird pipe carries, sorted by metric id (plan 228
6142
6270
  * TASK-3). "Carries" is pipe-allowlist truth — the pipe accepts and serves
6143
6271
  * the metric id — not a claim that rows exist for it (a carried metric with
6144
- * derivation.kind='unavailable' is exactly the carried-but-dark state the
6272
+ * catalog_status='unavailable' is exactly the carried-but-dark state the
6145
6273
  * register surfaces). This is the read the web execution layer derives its
6146
6274
  * pipe allowlists from, replacing hand-maintained Record maps.
6147
6275
  */
@@ -7208,9 +7336,9 @@ declare const TrackEventSchema: z.ZodObject<{
7208
7336
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7209
7337
  origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7210
7338
  derived: "derived";
7339
+ raw: "raw";
7211
7340
  explicit: "explicit";
7212
7341
  automatic: "automatic";
7213
- raw: "raw";
7214
7342
  }>>>;
7215
7343
  playbook_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7216
7344
  decision_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7234,9 +7362,9 @@ declare const TrackIngestBatchSchema: z.ZodObject<{
7234
7362
  event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7235
7363
  origin: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7236
7364
  derived: "derived";
7365
+ raw: "raw";
7237
7366
  explicit: "explicit";
7238
7367
  automatic: "automatic";
7239
- raw: "raw";
7240
7368
  }>>>;
7241
7369
  playbook_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7242
7370
  decision_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7327,6 +7455,416 @@ declare const SdkMetaIngestBatchSchema: z.ZodObject<{
7327
7455
  }, z.core.$strip>;
7328
7456
  declare const eventPaths: ZodOpenApiPathsObject;
7329
7457
 
7458
+ /**
7459
+ * Subscription-aware delete protection contracts (plan 248 TASK-1).
7460
+ *
7461
+ * A destructive change to a commercial mapping (deleting a plan/add-on
7462
+ * variation, cascading a parent delete, applying an import removal, unlinking
7463
+ * or rebinding a Stripe Price) may only proceed when the platform can PROVE
7464
+ * that no subscription still references the Price being removed. "No rows
7465
+ * found" is not a proof. These contracts make the difference representable:
7466
+ *
7467
+ * - `StripeSubscriptionItemSchema` — what was OBSERVED (per provider item).
7468
+ * - `StripeSubscriptionEvidenceSchema` — which population was SEARCHED, how
7469
+ * completely, and when (per tenant/account/mode/price scope).
7470
+ * - `SubscriptionEvidenceResultSchema` — the typed result every consumer
7471
+ * reads: `known` (with a count) or `unavailable` (with a reason). The
7472
+ * unavailable member is `.strict()` and carries NO count field, so an
7473
+ * unverified scope is structurally incapable of reporting zero (REQ-2).
7474
+ *
7475
+ * Evidence is private operational runtime state: internal exposure, no CRUD
7476
+ * operation, absent from the Playbook export and from browser-safe client
7477
+ * context.
7478
+ */
7479
+
7480
+ /** Every subscription status Stripe documents. Anything else is UNKNOWN. */
7481
+ declare const STRIPE_SUBSCRIPTION_STATUS_VALUES: readonly ["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"];
7482
+ declare const StripeSubscriptionStatusSchema: z.ZodEnum<{
7483
+ active: "active";
7484
+ past_due: "past_due";
7485
+ canceled: "canceled";
7486
+ trialing: "trialing";
7487
+ unpaid: "unpaid";
7488
+ incomplete: "incomplete";
7489
+ incomplete_expired: "incomplete_expired";
7490
+ paused: "paused";
7491
+ }>;
7492
+ type StripeSubscriptionStatus$1 = z.infer<typeof StripeSubscriptionStatusSchema>;
7493
+ /**
7494
+ * `protected` — the subscription still references the mapping; deletion is
7495
+ * refused. `released` — confirmed terminal, the mapping may be removed.
7496
+ * `unknown` — a status this build does not recognise; it yields UNAVAILABLE
7497
+ * evidence, never a release.
7498
+ */
7499
+ declare const SubscriptionProtectionSchema: z.ZodEnum<{
7500
+ unknown: "unknown";
7501
+ protected: "protected";
7502
+ released: "released";
7503
+ }>;
7504
+ type SubscriptionProtection$1 = z.infer<typeof SubscriptionProtectionSchema>;
7505
+ /**
7506
+ * The only two statuses that stop blocking. Everything else — including
7507
+ * `past_due`, `unpaid`, `paused` and `incomplete` — keeps the commercial
7508
+ * mapping, because collection and trial transitions routinely pass through
7509
+ * them and a deleted mapping cannot be recovered from the subscriber's side.
7510
+ */
7511
+ declare const TERMINAL_SUBSCRIPTION_STATUSES: readonly ["canceled", "incomplete_expired"];
7512
+ /**
7513
+ * The checked-in policy matrix (AC-3). `cancel_at_period_end` is deliberately
7514
+ * ABSENT from this table: a subscription scheduled to cancel is still live, so
7515
+ * it keeps protecting the mapping until its status becomes terminal.
7516
+ */
7517
+ declare const SUBSCRIPTION_STATUS_PROTECTION: Readonly<Record<StripeSubscriptionStatus$1, SubscriptionProtection$1>>;
7518
+ /** Resolve any provider-reported status against the policy. Fails closed. */
7519
+ declare function classifySubscriptionStatus(status: unknown): SubscriptionProtection$1;
7520
+ /**
7521
+ * Evidence is never global. Isolation is by tenant AND connected account AND
7522
+ * live/test mode; a scan of one scope says nothing about another.
7523
+ */
7524
+ declare const StripeBillingScopeSchema: z.ZodObject<{
7525
+ tenant_id: z.ZodString;
7526
+ account_id: z.ZodString;
7527
+ livemode: z.ZodBoolean;
7528
+ }, z.core.$strict>;
7529
+ /** A billing scope narrowed to the one Price whose removal is being judged. */
7530
+ declare const StripePriceScopeSchema: z.ZodObject<{
7531
+ tenant_id: z.ZodString;
7532
+ account_id: z.ZodString;
7533
+ livemode: z.ZodBoolean;
7534
+ price_id: z.ZodString;
7535
+ }, z.core.$strict>;
7536
+ type StripePriceScope$1 = z.infer<typeof StripePriceScopeSchema>;
7537
+ /**
7538
+ * One Stripe subscription item as last observed. `present` / `removed` is
7539
+ * explicit so a partial scan can never erase an item it simply did not reach
7540
+ * (REQ-4): absence of a row is absence of an observation, not absence of a
7541
+ * subscriber.
7542
+ *
7543
+ * Table names are short because PostgreSQL truncates identifiers at 63 bytes
7544
+ * and the generated unique-index name concatenates the whole scope key.
7545
+ */
7546
+ declare const StripeSubscriptionItemSchema: z.ZodObject<{
7547
+ id: z.ZodString;
7548
+ tenant_id: z.ZodString;
7549
+ created_at: z.ZodString;
7550
+ updated_at: z.ZodString;
7551
+ item_version: z.ZodLiteral<1>;
7552
+ account_id: z.ZodString;
7553
+ livemode: z.ZodBoolean;
7554
+ subscription_id: z.ZodString;
7555
+ item_id: z.ZodString;
7556
+ customer_id: z.ZodString;
7557
+ price_id: z.ZodString;
7558
+ subscription_status: z.ZodEnum<{
7559
+ active: "active";
7560
+ past_due: "past_due";
7561
+ canceled: "canceled";
7562
+ trialing: "trialing";
7563
+ unpaid: "unpaid";
7564
+ incomplete: "incomplete";
7565
+ incomplete_expired: "incomplete_expired";
7566
+ paused: "paused";
7567
+ }>;
7568
+ protection: z.ZodEnum<{
7569
+ unknown: "unknown";
7570
+ protected: "protected";
7571
+ released: "released";
7572
+ }>;
7573
+ cancel_at_period_end: z.ZodDefault<z.ZodBoolean>;
7574
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7575
+ item_state: z.ZodDefault<z.ZodEnum<{
7576
+ present: "present";
7577
+ removed: "removed";
7578
+ }>>;
7579
+ removed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7580
+ source_version: z.ZodNumber;
7581
+ source_event_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7582
+ provider_updated_at: z.ZodString;
7583
+ observed_at: z.ZodString;
7584
+ scan_generation: z.ZodDefault<z.ZodNumber>;
7585
+ }, z.core.$strict>;
7586
+ type StripeSubscriptionItem$1 = z.infer<typeof StripeSubscriptionItemSchema>;
7587
+ /**
7588
+ * Why a scope cannot answer. Each value is a refusal, never a zero. `stale`,
7589
+ * `provider_timeout` and `scan_in_progress` are retryable by waiting;
7590
+ * `not_connected`, `account_rebound` and `mode_mismatch` need operator action.
7591
+ */
7592
+ declare const SUBSCRIPTION_EVIDENCE_UNAVAILABLE_REASONS: readonly ["uninitialized", "scan_in_progress", "partial_scan", "stale", "invalidated", "conflicting_webhook", "provider_error", "provider_timeout", "verification_deadline_exceeded", "not_connected", "account_rebound", "mode_mismatch", "unknown_subscription_status"];
7593
+ declare const SubscriptionEvidenceUnavailableReasonSchema: z.ZodEnum<{
7594
+ stale: "stale";
7595
+ uninitialized: "uninitialized";
7596
+ scan_in_progress: "scan_in_progress";
7597
+ partial_scan: "partial_scan";
7598
+ invalidated: "invalidated";
7599
+ conflicting_webhook: "conflicting_webhook";
7600
+ provider_error: "provider_error";
7601
+ provider_timeout: "provider_timeout";
7602
+ verification_deadline_exceeded: "verification_deadline_exceeded";
7603
+ not_connected: "not_connected";
7604
+ account_rebound: "account_rebound";
7605
+ mode_mismatch: "mode_mismatch";
7606
+ unknown_subscription_status: "unknown_subscription_status";
7607
+ }>;
7608
+ type SubscriptionEvidenceUnavailableReason$1 = z.infer<typeof SubscriptionEvidenceUnavailableReasonSchema>;
7609
+ /**
7610
+ * The stored column form. `none` exists so the persisted reason is a plain
7611
+ * text enum rather than a nullable one (a nullable enum degrades to a JSON
7612
+ * column in the generated Drizzle table); only complete coverage may hold it.
7613
+ */
7614
+ declare const EvidenceReasonColumnSchema: z.ZodEnum<{
7615
+ none: "none";
7616
+ stale: "stale";
7617
+ uninitialized: "uninitialized";
7618
+ scan_in_progress: "scan_in_progress";
7619
+ partial_scan: "partial_scan";
7620
+ invalidated: "invalidated";
7621
+ conflicting_webhook: "conflicting_webhook";
7622
+ provider_error: "provider_error";
7623
+ provider_timeout: "provider_timeout";
7624
+ verification_deadline_exceeded: "verification_deadline_exceeded";
7625
+ not_connected: "not_connected";
7626
+ account_rebound: "account_rebound";
7627
+ mode_mismatch: "mode_mismatch";
7628
+ unknown_subscription_status: "unknown_subscription_status";
7629
+ }>;
7630
+ /** Reasons an operator cannot clear by retrying the same scan. */
7631
+ declare const NON_RETRYABLE_EVIDENCE_REASONS: readonly ["not_connected", "account_rebound", "mode_mismatch"];
7632
+ declare const EvidenceCoverageStateSchema: z.ZodEnum<{
7633
+ failed: "failed";
7634
+ uninitialized: "uninitialized";
7635
+ invalidated: "invalidated";
7636
+ scanning: "scanning";
7637
+ complete: "complete";
7638
+ }>;
7639
+ /**
7640
+ * The searched population for one price scope. Only `complete` carries a
7641
+ * count; every other state carries a reason and no count, so a stalled,
7642
+ * failed or never-run scan cannot be mistaken for a verified empty result.
7643
+ */
7644
+ declare const StripeSubscriptionEvidenceSchema: z.ZodObject<{
7645
+ id: z.ZodString;
7646
+ tenant_id: z.ZodString;
7647
+ created_at: z.ZodString;
7648
+ updated_at: z.ZodString;
7649
+ evidence_version: z.ZodLiteral<1>;
7650
+ account_id: z.ZodString;
7651
+ livemode: z.ZodBoolean;
7652
+ price_id: z.ZodString;
7653
+ coverage_state: z.ZodDefault<z.ZodEnum<{
7654
+ failed: "failed";
7655
+ uninitialized: "uninitialized";
7656
+ invalidated: "invalidated";
7657
+ scanning: "scanning";
7658
+ complete: "complete";
7659
+ }>>;
7660
+ unavailable_reason: z.ZodDefault<z.ZodEnum<{
7661
+ none: "none";
7662
+ stale: "stale";
7663
+ uninitialized: "uninitialized";
7664
+ scan_in_progress: "scan_in_progress";
7665
+ partial_scan: "partial_scan";
7666
+ invalidated: "invalidated";
7667
+ conflicting_webhook: "conflicting_webhook";
7668
+ provider_error: "provider_error";
7669
+ provider_timeout: "provider_timeout";
7670
+ verification_deadline_exceeded: "verification_deadline_exceeded";
7671
+ not_connected: "not_connected";
7672
+ account_rebound: "account_rebound";
7673
+ mode_mismatch: "mode_mismatch";
7674
+ unknown_subscription_status: "unknown_subscription_status";
7675
+ }>>;
7676
+ protected_subscription_count: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
7677
+ scan_generation: z.ZodDefault<z.ZodNumber>;
7678
+ account_binding_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7679
+ scan_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7680
+ verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7681
+ invalidated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7682
+ last_error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7683
+ last_error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7684
+ }, z.core.$strict>;
7685
+ type StripeSubscriptionEvidence$1 = z.infer<typeof StripeSubscriptionEvidenceSchema>;
7686
+ /** Upper bound on the identifiers echoed to an operator in a 409 body. */
7687
+ declare const PROTECTED_SUBSCRIPTION_SAMPLE_LIMIT = 50;
7688
+ declare const SubscriptionEvidenceKnownSchema: z.ZodObject<{
7689
+ state: z.ZodLiteral<"known">;
7690
+ result_version: z.ZodLiteral<1>;
7691
+ scope: z.ZodObject<{
7692
+ tenant_id: z.ZodString;
7693
+ account_id: z.ZodString;
7694
+ livemode: z.ZodBoolean;
7695
+ price_id: z.ZodString;
7696
+ }, z.core.$strict>;
7697
+ protected_subscription_count: z.ZodNumber;
7698
+ protected_subscription_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
7699
+ verified_at: z.ZodString;
7700
+ scan_generation: z.ZodNumber;
7701
+ account_binding_id: z.ZodString;
7702
+ }, z.core.$strict>;
7703
+ /**
7704
+ * No count field exists on this member, by design: a consumer cannot read a
7705
+ * zero off an unverified scope even by mistake (REQ-2, REQ-6).
7706
+ */
7707
+ declare const SubscriptionEvidenceUnavailableSchema: z.ZodObject<{
7708
+ state: z.ZodLiteral<"unavailable">;
7709
+ result_version: z.ZodLiteral<1>;
7710
+ scope: z.ZodObject<{
7711
+ tenant_id: z.ZodString;
7712
+ account_id: z.ZodString;
7713
+ livemode: z.ZodBoolean;
7714
+ price_id: z.ZodString;
7715
+ }, z.core.$strict>;
7716
+ reason: z.ZodEnum<{
7717
+ stale: "stale";
7718
+ uninitialized: "uninitialized";
7719
+ scan_in_progress: "scan_in_progress";
7720
+ partial_scan: "partial_scan";
7721
+ invalidated: "invalidated";
7722
+ conflicting_webhook: "conflicting_webhook";
7723
+ provider_error: "provider_error";
7724
+ provider_timeout: "provider_timeout";
7725
+ verification_deadline_exceeded: "verification_deadline_exceeded";
7726
+ not_connected: "not_connected";
7727
+ account_rebound: "account_rebound";
7728
+ mode_mismatch: "mode_mismatch";
7729
+ unknown_subscription_status: "unknown_subscription_status";
7730
+ }>;
7731
+ retryable: z.ZodBoolean;
7732
+ last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7733
+ detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7734
+ }, z.core.$strict>;
7735
+ declare const SubscriptionEvidenceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7736
+ state: z.ZodLiteral<"known">;
7737
+ result_version: z.ZodLiteral<1>;
7738
+ scope: z.ZodObject<{
7739
+ tenant_id: z.ZodString;
7740
+ account_id: z.ZodString;
7741
+ livemode: z.ZodBoolean;
7742
+ price_id: z.ZodString;
7743
+ }, z.core.$strict>;
7744
+ protected_subscription_count: z.ZodNumber;
7745
+ protected_subscription_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
7746
+ verified_at: z.ZodString;
7747
+ scan_generation: z.ZodNumber;
7748
+ account_binding_id: z.ZodString;
7749
+ }, z.core.$strict>, z.ZodObject<{
7750
+ state: z.ZodLiteral<"unavailable">;
7751
+ result_version: z.ZodLiteral<1>;
7752
+ scope: z.ZodObject<{
7753
+ tenant_id: z.ZodString;
7754
+ account_id: z.ZodString;
7755
+ livemode: z.ZodBoolean;
7756
+ price_id: z.ZodString;
7757
+ }, z.core.$strict>;
7758
+ reason: z.ZodEnum<{
7759
+ stale: "stale";
7760
+ uninitialized: "uninitialized";
7761
+ scan_in_progress: "scan_in_progress";
7762
+ partial_scan: "partial_scan";
7763
+ invalidated: "invalidated";
7764
+ conflicting_webhook: "conflicting_webhook";
7765
+ provider_error: "provider_error";
7766
+ provider_timeout: "provider_timeout";
7767
+ verification_deadline_exceeded: "verification_deadline_exceeded";
7768
+ not_connected: "not_connected";
7769
+ account_rebound: "account_rebound";
7770
+ mode_mismatch: "mode_mismatch";
7771
+ unknown_subscription_status: "unknown_subscription_status";
7772
+ }>;
7773
+ retryable: z.ZodBoolean;
7774
+ last_observed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7775
+ detail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7776
+ }, z.core.$strict>], "state">;
7777
+ type SubscriptionEvidenceUnavailable$1 = z.infer<typeof SubscriptionEvidenceUnavailableSchema>;
7778
+ type SubscriptionEvidenceResult$1 = z.infer<typeof SubscriptionEvidenceResultSchema>;
7779
+ /** True when a reason clears by retrying the same scan later. */
7780
+ declare function isRetryableEvidenceReason(reason: SubscriptionEvidenceUnavailableReason$1): boolean;
7781
+ declare function unavailableEvidence(scope: StripePriceScope$1, reason: SubscriptionEvidenceUnavailableReason$1, extra?: {
7782
+ last_observed_at?: string | null;
7783
+ detail?: string | null;
7784
+ }): SubscriptionEvidenceUnavailable$1;
7785
+ declare const SUBSCRIPTION_EVIDENCE_UNAVAILABLE_CODE = "subscription_evidence_unavailable";
7786
+ declare const SUBSCRIPTION_REFERENCE_EXISTS_CODE = "subscription_reference_exists";
7787
+ /** Preserves the blocker entity name the existing cascade preflight emits. */
7788
+ declare const SUBSCRIPTION_BLOCKER_ENTITY = "subscriptions";
7789
+ declare const DeleteProtectionDecisionSchema: z.ZodObject<{
7790
+ outcome: z.ZodEnum<{
7791
+ permitted: "permitted";
7792
+ blocked: "blocked";
7793
+ unverified: "unverified";
7794
+ }>;
7795
+ http_status: z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<409>, z.ZodLiteral<503>]>;
7796
+ code: z.ZodNullable<z.ZodEnum<{
7797
+ subscription_evidence_unavailable: "subscription_evidence_unavailable";
7798
+ subscription_reference_exists: "subscription_reference_exists";
7799
+ }>>;
7800
+ scope: z.ZodObject<{
7801
+ tenant_id: z.ZodString;
7802
+ account_id: z.ZodString;
7803
+ livemode: z.ZodBoolean;
7804
+ price_id: z.ZodString;
7805
+ }, z.core.$strict>;
7806
+ protected_subscription_count: z.ZodNullable<z.ZodNumber>;
7807
+ protected_subscription_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
7808
+ reason: z.ZodNullable<z.ZodEnum<{
7809
+ stale: "stale";
7810
+ uninitialized: "uninitialized";
7811
+ scan_in_progress: "scan_in_progress";
7812
+ partial_scan: "partial_scan";
7813
+ invalidated: "invalidated";
7814
+ conflicting_webhook: "conflicting_webhook";
7815
+ provider_error: "provider_error";
7816
+ provider_timeout: "provider_timeout";
7817
+ verification_deadline_exceeded: "verification_deadline_exceeded";
7818
+ not_connected: "not_connected";
7819
+ account_rebound: "account_rebound";
7820
+ mode_mismatch: "mode_mismatch";
7821
+ unknown_subscription_status: "unknown_subscription_status";
7822
+ }>>;
7823
+ retryable: z.ZodBoolean;
7824
+ }, z.core.$strict>;
7825
+ type DeleteProtectionDecision$1 = z.infer<typeof DeleteProtectionDecisionSchema>;
7826
+ /**
7827
+ * The single mapping from evidence to destructive-boundary behaviour. Known
7828
+ * references → 409. Unprovable → 503 with a stable retryable code; the mapping
7829
+ * is preserved either way. Only a verified-empty scope permits deletion.
7830
+ */
7831
+ declare function decideDeleteProtection(result: SubscriptionEvidenceResult$1): DeleteProtectionDecision$1;
7832
+ interface ProtectedSubscriptionSummary {
7833
+ /** Distinct protected subscription ids inside the scope. */
7834
+ subscription_ids: string[];
7835
+ /** Items whose status this build cannot classify; any hit forces unavailable. */
7836
+ unknown_status_item_ids: string[];
7837
+ }
7838
+ /**
7839
+ * Count DISTINCT protected subscriptions for one price scope. Quantity is
7840
+ * ignored, removed items are ignored, and items from another tenant, account
7841
+ * or mode can never leak in (AC-1).
7842
+ */
7843
+ declare function summarizeProtectedSubscriptions(scope: StripePriceScope$1, items: readonly StripeSubscriptionItem$1[]): ProtectedSubscriptionSummary;
7844
+ interface EvidenceResolution {
7845
+ scope: StripePriceScope$1;
7846
+ /** The stored coverage row for the scope, if one exists at all. */
7847
+ coverage: StripeSubscriptionEvidence$1 | null;
7848
+ items: readonly StripeSubscriptionItem$1[];
7849
+ /** Evaluation clock — supplied by the caller so freshness is testable. */
7850
+ now: string;
7851
+ /** Maximum age of a completed scan that may still authorize a deletion. */
7852
+ max_age_ms: number;
7853
+ /** The tenant/account binding in force right now, or null when disconnected. */
7854
+ current_account_binding_id: string | null;
7855
+ }
7856
+ /**
7857
+ * Turn stored observations plus coverage into the typed result. The ONLY path
7858
+ * to `known` is a completed authoritative scan of this exact scope, still
7859
+ * fresh, still bound to the same account, with every observed status
7860
+ * classifiable. Every other input — including an empty item set with no
7861
+ * coverage row — resolves to `unavailable` (REQ-2, REQ-7).
7862
+ *
7863
+ * `max_age_ms` bounds freshness only: shortening or lengthening it can turn a
7864
+ * known result into `stale`, but can never turn `unavailable` into a zero.
7865
+ */
7866
+ declare function resolveSubscriptionEvidence(input: EvidenceResolution): SubscriptionEvidenceResult$1;
7867
+
7330
7868
  /** Captured after signature/tenant validation and thin-event normalization. */
7331
7869
  declare const WebhookReplayEnvelopeSchema: z.ZodObject<{
7332
7870
  version: z.ZodLiteral<1>;
@@ -7357,6 +7895,35 @@ declare const WebhookProcessingStatusSchema: z.ZodEnum<{
7357
7895
  terminal: "terminal";
7358
7896
  not_required: "not_required";
7359
7897
  }>;
7898
+ /**
7899
+ * Outcome of handing a received event to the downstream queue.
7900
+ *
7901
+ * - `unknown` — imported evidence; the hand-off was never observed.
7902
+ * - `pending` — not attempted yet.
7903
+ * - `dispatching` — a send is in flight, owned by a live dispatch lease.
7904
+ * - `ambiguous` — the send left the process and its outcome was never observed
7905
+ * (a timeout, a 5xx, or a crash after the request went out). Neither
7906
+ * `accepted` nor `failed` may be recorded, because both assert a fact nobody
7907
+ * saw: only `failed` means non-delivery was actually observed.
7908
+ * - `accepted` — the queue acknowledged the event.
7909
+ * - `failed` — the queue refused it outright; retryable.
7910
+ * - `terminal` — the attempt budget is spent; operator replay only.
7911
+ * - `not_required` — no hand-off is owed for this event.
7912
+ *
7913
+ * **Ambiguous-row invariant.** An `ambiguous` receipt keeps its full fenced
7914
+ * lease identity — `lease_stage: 'dispatch'`, `lease_token`, `lease_expires_at`
7915
+ * and `lease_generation >= 1` — and carries `dispatch_attempts >= 1`. The
7916
+ * identity is retained deliberately: it names the sender whose outcome went
7917
+ * unobserved, and it is the fence the next claimant increments past. What is
7918
+ * surrendered is *ownership*, by moving `lease_expires_at` to (or before) the
7919
+ * moment of surrender, so recovery's no-live-lease selection reclaims the row.
7920
+ * A crash after the send produces the same shape without anyone writing it —
7921
+ * the lease simply lapses — which is why the contract must not require the
7922
+ * lease to be cleared. This schema deliberately does **not** assert
7923
+ * `lease_expires_at <= now`: liveness is a clock comparison made by the
7924
+ * runtime, not a property of a stored row, and a row read back later would
7925
+ * otherwise validate differently than when it was written.
7926
+ */
7360
7927
  declare const WebhookDispatchStatusSchema: z.ZodEnum<{
7361
7928
  unknown: "unknown";
7362
7929
  failed: "failed";
@@ -7365,6 +7932,7 @@ declare const WebhookDispatchStatusSchema: z.ZodEnum<{
7365
7932
  terminal: "terminal";
7366
7933
  not_required: "not_required";
7367
7934
  dispatching: "dispatching";
7935
+ ambiguous: "ambiguous";
7368
7936
  }>;
7369
7937
  /** No CRUD operation exposes this record; webhookEventLog remains the display projection. */
7370
7938
  declare const WebhookDeliverySchema: z.ZodObject<{
@@ -7382,8 +7950,8 @@ declare const WebhookDeliverySchema: z.ZodObject<{
7382
7950
  }>;
7383
7951
  received_at: z.ZodString;
7384
7952
  envelope_status: z.ZodDefault<z.ZodEnum<{
7385
- legacy_incomplete: "legacy_incomplete";
7386
7953
  complete: "complete";
7954
+ legacy_incomplete: "legacy_incomplete";
7387
7955
  }>>;
7388
7956
  envelope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7389
7957
  version: z.ZodLiteral<1>;
@@ -7422,6 +7990,7 @@ declare const WebhookDeliverySchema: z.ZodObject<{
7422
7990
  terminal: "terminal";
7423
7991
  not_required: "not_required";
7424
7992
  dispatching: "dispatching";
7993
+ ambiguous: "ambiguous";
7425
7994
  }>>;
7426
7995
  downstream_status: z.ZodDefault<z.ZodEnum<{
7427
7996
  unknown: "unknown";
@@ -8568,11 +9137,11 @@ declare const trialPaths: ZodOpenApiPathsObject;
8568
9137
  declare const ExperimentStatusSchema: z.ZodEnum<{
8569
9138
  draft: "draft";
8570
9139
  neutral: "neutral";
9140
+ paused: "paused";
8571
9141
  complete: "complete";
8572
9142
  ramping: "ramping";
8573
9143
  winning: "winning";
8574
9144
  needs_attention: "needs_attention";
8575
- paused: "paused";
8576
9145
  }>;
8577
9146
  declare const ExperimentTypeSchema: z.ZodEnum<{
8578
9147
  custom: "custom";
@@ -9959,11 +10528,11 @@ declare const ExperimentSchema: z.ZodObject<{
9959
10528
  status: z.ZodDefault<z.ZodEnum<{
9960
10529
  draft: "draft";
9961
10530
  neutral: "neutral";
10531
+ paused: "paused";
9962
10532
  complete: "complete";
9963
10533
  ramping: "ramping";
9964
10534
  winning: "winning";
9965
10535
  needs_attention: "needs_attention";
9966
- paused: "paused";
9967
10536
  }>>;
9968
10537
  target_resource_id: z.ZodOptional<z.ZodString>;
9969
10538
  target_segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -15970,6 +16539,7 @@ type CustomerOverrideStatus = z.infer<typeof CustomerOverrideStatusSchema>;
15970
16539
  type CustomerOverrideType = z.infer<typeof CustomerOverrideTypeSchema>;
15971
16540
  type Customer = z.infer<typeof CustomerSchema>;
15972
16541
  type DefaultTemplateIds = z.infer<typeof DefaultTemplateIdsSchema>;
16542
+ type DeleteProtectionDecision = z.infer<typeof DeleteProtectionDecisionSchema>;
15973
16543
  type DetectorRequirements = z.infer<typeof DetectorRequirementsSchema>;
15974
16544
  type DimensionCategory = z.infer<typeof DimensionCategorySchema>;
15975
16545
  type DimensionSourceType = z.infer<typeof DimensionSourceTypeSchema>;
@@ -16003,6 +16573,8 @@ type EventStability = z.infer<typeof EventStabilitySchema>;
16003
16573
  type EventSurface = z.infer<typeof EventSurfaceSchema>;
16004
16574
  type EventTaxonomyEntry = z.infer<typeof EventTaxonomyEntrySchema>;
16005
16575
  type EventTaxonomy = z.infer<typeof EventTaxonomySchema>;
16576
+ type EvidenceCoverageState = z.infer<typeof EvidenceCoverageStateSchema>;
16577
+ type EvidenceReasonColumn = z.infer<typeof EvidenceReasonColumnSchema>;
16006
16578
  type EvidenceRequirement = z.infer<typeof EvidenceRequirementSchema>;
16007
16579
  type ExperimentAnalysisConfig = z.infer<typeof ExperimentAnalysisConfigSchema>;
16008
16580
  type ExperimentAnalysisDefinition = z.infer<typeof ExperimentAnalysisDefinitionSchema>;
@@ -16152,12 +16724,22 @@ type ServerEvaluationPayloadTrialStatus = z.infer<typeof ServerEvaluationPayload
16152
16724
  type ServerEvaluationPayloadUserContext = z.infer<typeof ServerEvaluationPayloadUserContextSchema>;
16153
16725
  type ServerEvaluationPayloadUser = z.infer<typeof ServerEvaluationPayloadUserSchema>;
16154
16726
  type Severity = z.infer<typeof SeveritySchema>;
16727
+ type StripeBillingScope = z.infer<typeof StripeBillingScopeSchema>;
16155
16728
  type StripeIntegrationConfig = z.infer<typeof StripeIntegrationConfigSchema>;
16156
16729
  type StripePriceBillingPeriod = z.infer<typeof StripePriceBillingPeriodSchema>;
16157
16730
  type StripePriceMockBillingPeriod = z.infer<typeof StripePriceMockBillingPeriodSchema>;
16158
16731
  type StripePriceMock = z.infer<typeof StripePriceMockSchema>;
16159
16732
  type StripePrice = z.infer<typeof StripePriceSchema>;
16733
+ type StripePriceScope = z.infer<typeof StripePriceScopeSchema>;
16734
+ type StripeSubscriptionEvidence = z.infer<typeof StripeSubscriptionEvidenceSchema>;
16735
+ type StripeSubscriptionItem = z.infer<typeof StripeSubscriptionItemSchema>;
16736
+ type StripeSubscriptionStatus = z.infer<typeof StripeSubscriptionStatusSchema>;
16160
16737
  type StudioSurfaceType = z.infer<typeof StudioSurfaceTypeSchema>;
16738
+ type SubscriptionEvidenceKnown = z.infer<typeof SubscriptionEvidenceKnownSchema>;
16739
+ type SubscriptionEvidenceResult = z.infer<typeof SubscriptionEvidenceResultSchema>;
16740
+ type SubscriptionEvidenceUnavailableReason = z.infer<typeof SubscriptionEvidenceUnavailableReasonSchema>;
16741
+ type SubscriptionEvidenceUnavailable = z.infer<typeof SubscriptionEvidenceUnavailableSchema>;
16742
+ type SubscriptionProtection = z.infer<typeof SubscriptionProtectionSchema>;
16161
16743
  type SuggestionSeverity = z.infer<typeof SuggestionSeveritySchema>;
16162
16744
  type SupersessionReason = z.infer<typeof SupersessionReasonSchema>;
16163
16745
  type SupersessionRecord = z.infer<typeof SupersessionRecordSchema>;
@@ -19093,6 +19675,18 @@ type ExactInitOptions<T> = {
19093
19675
  * - `iframe` — sandboxed iframe embed
19094
19676
  */
19095
19677
  type RevTurbineSdkMode = 'snippet' | 'react' | 'iframe';
19678
+ /**
19679
+ * Hosted-mode endpoint used when `endpoint` is omitted. Every hosted
19680
+ * integration talks to the same control plane, so the option is a knob for
19681
+ * proxies and self-hosted edges, not a requirement.
19682
+ */
19683
+ declare const DEFAULT_HOSTED_ENDPOINT = "https://revturbine.com/app";
19684
+ /**
19685
+ * Integration mode used when `mode` is omitted. `mode` labels telemetry
19686
+ * (`page_view.mode`, diagnostics) and changes no behavior; `<RevTurbineProvider>`
19687
+ * passes `'react'`, everything else is a snippet.
19688
+ */
19689
+ declare const DEFAULT_SDK_MODE: RevTurbineSdkMode;
19096
19690
 
19097
19691
  /**
19098
19692
  * Convenience input type for identify / setUserContext calls.
@@ -19485,20 +20079,46 @@ interface RevTurbineTelemetryOptions {
19485
20079
  interface RevTurbineInitOptions {
19486
20080
  /** Your RevTurbine tenant identifier. */
19487
20081
  tenantId: string;
19488
- /** API key for authentication. */
19489
- apiKey: string;
19490
20082
  /**
19491
- // @revturbine-graph gref:8f21068afecad61a110f
19492
- * Public ingest key for SDK clickstream ingestion (`POST /api/track`).
20083
+ // @revturbine-graph configuration:revturbine-sdk-internal:web-sdk/customer-side.ts#RevTurbineInitOptions
20084
+ * Your **public key** — the browser credential.
20085
+ *
20086
+ * Mint one in your RevTurbine tenant under **Settings → API tokens →
20087
+ * Ingest keys**. It is a tenant-scoped `rtk_…` token of type `public`:
20088
+ * it authorizes event ingestion (`POST /api/track`) and the read-only
20089
+ * SDK fetches (launched Playbook, user context, branding) and carries
20090
+ * no role authority, so it is safe to ship in client bundles. The
20091
+ * name says what it is — a scanner or an agent that meets `publicKey`
20092
+ * in a bundle knows it is meant to be there.
19493
20093
  *
19494
- * Mint one in your RevTurbine tenant under **Settings → Ingest keys**.
19495
- * This is a tenant-scoped, embeddable `public` token distinct from
19496
- * {@link apiKey}: it authorizes *only* event ingestion (the
19497
- * `ingest:write` scope) and carries no role authority, so it is safe
19498
- * to ship in client bundles. When omitted, the SDK falls back to
19499
- * {@link apiKey} for the ingest request — but `/api/track` accepts
19500
- * **only** a `public` token, so a non-public `apiKey` fallback will be
19501
- * rejected. Set this for any integration that emits events.
20094
+ * Never pass a **server key** here. The server key (type `server`) is
20095
+ * the backend credential for `@revturbine/sdk/server`, where it is the
20096
+ * `apiKey` option; the control plane refuses it on browser-like
20097
+ * requests.
20098
+ *
20099
+ * Required for hosted runtime modes. Optional for `local_only`, where
20100
+ * the SDK fills a placeholder.
20101
+ */
20102
+ publicKey?: string;
20103
+ /**
20104
+ * Your **server key** — for the headless SDK running on your backend.
20105
+ *
20106
+ * `apiKey` always means the secret server key (`rtk_…`, type `server`),
20107
+ * exactly as it does on `@revturbine/sdk/server`. Pass it here only from
20108
+ * server-side code such as a route handler using `@revturbine/sdk/headless`.
20109
+ *
20110
+ * In the browser, pass {@link publicKey} instead. A browser init that
20111
+ * supplies `apiKey` without `publicKey` is treated as the legacy alias of
20112
+ * the public key (precedence: `publicKey`, then `ingestPublicKey`, then
20113
+ * `apiKey`) and logs a one-time development warning; that alias is kept
20114
+ * for one minor.
20115
+ */
20116
+ apiKey?: string;
20117
+ /**
20118
+ * @deprecated Use {@link publicKey} — the same key under its one name.
20119
+ * Still accepted for one minor as an alias (precedence: `publicKey`,
20120
+ * then `ingestPublicKey`, then `apiKey`) and logs a one-time development
20121
+ * warning when used without `publicKey`.
19502
20122
  */
19503
20123
  ingestPublicKey?: string;
19504
20124
  /**
@@ -19556,7 +20176,7 @@ interface RevTurbineInitOptions {
19556
20176
  /**
19557
20177
  * Keyless anonymous SDK-init telemetry opt-out (plan 95).
19558
20178
  *
19559
- * When **no** {@link ingestPublicKey} is configured, the SDK sends a single
20179
+ * When **no** {@link publicKey} is configured, the SDK sends a single
19560
20180
  * anonymous `sdk_init` beacon to `POST /api/sdk/meta` carrying config-shape
19561
20181
  * **counts only** (number of plans, entitlements, placements, etc.), the SDK
19562
20182
  * version, runtime/schema/bundle versions, and a one-way hashed config id —
@@ -19565,7 +20185,7 @@ interface RevTurbineInitOptions {
19565
20185
  *
19566
20186
  * On by default (`true`). Set to `false` to opt out entirely; the SDK then
19567
20187
  * sends no keyless telemetry. When active, the SDK logs a one-time info
19568
- * console notice naming this flag. Has no effect once an `ingestPublicKey`
20188
+ * console notice naming this flag. Has no effect once a `publicKey`
19569
20189
  * is present (that path uses the authed clickstream instead). This beacon
19570
20190
  * fires in every runtime mode, `local_only` included — a bundled-Playbook
19571
20191
  * install is still a real install worth counting. To silence it for a
@@ -19597,7 +20217,7 @@ interface RevTurbineInitOptions {
19597
20217
  telemetry?: RevTurbineTelemetryOptions;
19598
20218
  /**
19599
20219
  * Client-side clickstream batching policy (plan 95). Events are buffered and
19600
- // @revturbine-graph gref:b4cf618213abb11eadd7
20220
+ // @revturbine-graph configuration:revturbine-sdk-internal:web-sdk/customer-side.ts#RevTurbineInitOptions
19601
20221
  * flushed to `POST /api/track` on whichever comes first: the batch reaching
19602
20222
  * {@link RevTurbineEventBatchingOptions.maxBatchSize}, the
19603
20223
  * {@link RevTurbineEventBatchingOptions.flushIntervalMs} timer elapsing, or a
@@ -19605,10 +20225,17 @@ interface RevTurbineInitOptions {
19605
20225
  * low-volume sessions that would otherwise strand events.
19606
20226
  */
19607
20227
  eventBatching?: RevTurbineEventBatchingOptions;
19608
- /** Base URL of the RevTurbine API Edge. */
19609
- endpoint: string;
19610
- /** SDK integration mode. */
19611
- mode: RevTurbineSdkMode;
20228
+ /**
20229
+ * Base URL of the RevTurbine control plane. Defaults to
20230
+ * {@link DEFAULT_HOSTED_ENDPOINT}; set it only for a proxy or a self-hosted
20231
+ * edge. Local mode ignores it.
20232
+ */
20233
+ endpoint?: string;
20234
+ /**
20235
+ * SDK integration mode. Labels telemetry only. Defaults to
20236
+ * {@link DEFAULT_SDK_MODE} (`'snippet'`); `<RevTurbineProvider>` passes `'react'`.
20237
+ */
20238
+ mode?: RevTurbineSdkMode;
19612
20239
  /**
19613
20240
  * SDK deployment/runtime mode:
19614
20241
  * - `revturbine_server` (default): standard RevTurbine-hosted endpoints.
@@ -19686,7 +20313,7 @@ interface RevTurbineInitOptions {
19686
20313
  * @example
19687
20314
  * ```ts
19688
20315
  * initRevTurbine({
19689
- * publishableKey: 'rt_pub_…',
20316
+ * publicKey: 'rtk_…',
19690
20317
  * user: { id: 'user_123', plan_handle: 'free' },
19691
20318
  * clientSession: () =>
19692
20319
  * fetch('/api/revturbine-session', { method: 'POST' })
@@ -20318,8 +20945,14 @@ declare const EMITTABLE_PLATFORM_EVENT_NAMES: readonly string[];
20318
20945
  */
20319
20946
  declare class RevTurbineCustomerSdk {
20320
20947
  private readonly tenantId;
20321
- private readonly apiKey;
20322
- private readonly ingestPublicKey?;
20948
+ /** The browser credential, resolved from `publicKey` and its deprecated aliases. */
20949
+ private readonly publicKey;
20950
+ /**
20951
+ * True when the integration supplied a real public key (`publicKey` or
20952
+ * `ingestPublicKey`), as opposed to a legacy `apiKey`-only init or the
20953
+ * local-only placeholder. Gates the keyless anonymous beacon (plan 95).
20954
+ */
20955
+ private readonly ingestKeyConfigured;
20323
20956
  private readonly environmentId;
20324
20957
  private readonly locale?;
20325
20958
  private readonly testTraffic;
@@ -21606,6 +22239,27 @@ declare class RevTurbineCustomerSdk {
21606
22239
  * ```
21607
22240
  */
21608
22241
  declare function initRevTurbine$1<T extends RevTurbineInitInputOptions>(options: T & ExactInitOptions<T>): RevTurbineCustomerSdk;
22242
+ /** The three names the browser credential may arrive under. */
22243
+ type BrowserKeyOptions = Pick<RevTurbineInitOptions, 'publicKey' | 'ingestPublicKey' | 'apiKey'>;
22244
+ /**
22245
+ * Resolve the browser credential from `publicKey` and its deprecated aliases.
22246
+ *
22247
+ * Precedence is `publicKey`, then `ingestPublicKey`, then `apiKey`. Returns
22248
+ * `undefined` when no key was supplied so callers can apply their own default.
22249
+ *
22250
+ * A one-time development warning names `publicKey` when a deprecated alias is
22251
+ * used: always for `ingestPublicKey`, and for `apiKey` only in a browser —
22252
+ * on a backend running the headless SDK, `apiKey` is the server key and is
22253
+ * the right option. Production builds stay silent.
22254
+ *
22255
+ * Every read site (the SDK class, the React provider, the controllers)
22256
+ * resolves through this one function so the precedence cannot drift.
22257
+ *
22258
+ * @internal
22259
+ */
22260
+ declare function resolveBrowserPublicKey(options: BrowserKeyOptions): string | undefined;
22261
+ /** Test-only: forget that the alias warning fired so the next resolve warns again. @internal */
22262
+ declare function resetBrowserKeyAliasWarning(): void;
21609
22263
  declare global {
21610
22264
  interface Window {
21611
22265
  RevTurbine?: {
@@ -21748,7 +22402,7 @@ type RevTurbineThemeInput = {
21748
22402
  *
21749
22403
  * const session = await initRevTurbine({
21750
22404
  * tenantId: 'tenant_abc',
21751
- * apiKey: 'rt_live_xxx',
22405
+ * publicKey: 'rtk_…',
21752
22406
  * endpoint: 'https://edge.example.com',
21753
22407
  * mode: 'snippet',
21754
22408
  * user: { id: 'user_123', plan_handle: 'pro' },
@@ -22122,7 +22776,7 @@ type SdkSessionOptions = RevTurbineInitInputOptions & {
22122
22776
  * ```ts
22123
22777
  * const session = await initRevTurbine({
22124
22778
  * tenantId: 'tenant_abc',
22125
- * apiKey: 'rt_live_xxx',
22779
+ * publicKey: 'rtk_…',
22126
22780
  * endpoint: 'https://edge.example.com',
22127
22781
  * mode: 'snippet',
22128
22782
  * user: { id: 'user_123', plan_handle: 'pro' },
@@ -22267,7 +22921,7 @@ declare class SdkSession {
22267
22921
  * ```ts
22268
22922
  * const session = await initRevTurbine({
22269
22923
  * tenantId: 'tenant_abc',
22270
- * apiKey: 'rt_live_xxx',
22924
+ * publicKey: 'rtk_…',
22271
22925
  * endpoint: 'https://edge.example.com',
22272
22926
  * mode: 'snippet',
22273
22927
  * user: { id: 'user_123', plan_handle: 'pro' },
@@ -24110,14 +24764,14 @@ interface components {
24110
24764
  Anon_f7fb9744a6e4_11: components["schemas"]["Anon_f090cb615c84_25"];
24111
24765
  Anon_f090cb615c84_25: string | null;
24112
24766
  /** @default true */
24113
- Anon_d295959bf4db_2: components["schemas"]["Anon_7cb541e84f22_36"];
24114
- Anon_7cb541e84f22_36: boolean;
24115
- /** @default false */
24116
- Anon_4dc549443053_1: components["schemas"]["Anon_7cb541e84f22_37"];
24767
+ Anon_d295959bf4db_2: components["schemas"]["Anon_7cb541e84f22_37"];
24117
24768
  Anon_7cb541e84f22_37: boolean;
24769
+ /** @default false */
24770
+ Anon_4dc549443053_1: components["schemas"]["Anon_7cb541e84f22_38"];
24771
+ Anon_7cb541e84f22_38: boolean;
24118
24772
  /** @default null */
24119
- Anon_e4ee8e45dcea_1: components["schemas"]["Anon_b0c21ae8f968_10"];
24120
- Anon_b0c21ae8f968_10: string | null;
24773
+ Anon_e4ee8e45dcea_1: components["schemas"]["Anon_b0c21ae8f968_14"];
24774
+ Anon_b0c21ae8f968_14: string | null;
24121
24775
  /** @default 1 */
24122
24776
  Anon_ffffc3c874cb_1: components["schemas"]["Anon_ea288f4ef558_12"];
24123
24777
  Anon_ea288f4ef558_12: number;
@@ -24129,8 +24783,8 @@ interface components {
24129
24783
  Anon_52ba84a4bbf3_2: string;
24130
24784
  Anon_af12d548dbee_19: components["schemas"]["Anon_0eb2e3b6e08c_3"];
24131
24785
  /** @default 0 */
24132
- Anon_2aa59aec1f23_3: components["schemas"]["Anon_97cc9ecfdea9_22"];
24133
- Anon_97cc9ecfdea9_22: number;
24786
+ Anon_2aa59aec1f23_3: components["schemas"]["Anon_97cc9ecfdea9_24"];
24787
+ Anon_97cc9ecfdea9_24: number;
24134
24788
  /** @default 0 */
24135
24789
  Anon_f95d5b2e4f52_5: components["schemas"]["Anon_278eaeabce08_6"];
24136
24790
  Anon_278eaeabce08_6: number;
@@ -24190,20 +24844,20 @@ interface components {
24190
24844
  Anon_57796118d046_31: string;
24191
24845
  Anon_cf08caa6d850_1: components["schemas"]["StripePriceBillingPeriod"];
24192
24846
  /** @default null */
24193
- Anon_79391150fda1_1: components["schemas"]["Anon_c648138a0918_6"];
24194
- Anon_c648138a0918_6: number | null;
24847
+ Anon_79391150fda1_1: components["schemas"]["Anon_c648138a0918_8"];
24848
+ Anon_c648138a0918_8: number | null;
24195
24849
  Anon_1788a9a8a0b9_2: components["schemas"]["CurrencyOutput"];
24196
24850
  Anon_1b09b93e2f83_5: components["schemas"]["PricingModel"];
24197
24851
  /** @default null */
24198
24852
  Anon_f7fb9744a6e4_14: components["schemas"]["Anon_f090cb615c84_28"];
24199
24853
  Anon_f090cb615c84_28: string | null;
24200
24854
  /** @default false */
24201
- Anon_062d958a93c4_4: components["schemas"]["Anon_7cb541e84f22_38"];
24202
- Anon_7cb541e84f22_38: boolean;
24855
+ Anon_062d958a93c4_4: components["schemas"]["Anon_7cb541e84f22_39"];
24856
+ Anon_7cb541e84f22_39: boolean;
24203
24857
  Anon_711dc9708535_7: components["schemas"]["Anon_11c9ad639448_1"];
24204
- Anon_b0c21ae8f968_11: string | null;
24858
+ Anon_b0c21ae8f968_15: string | null;
24205
24859
  /** @default null */
24206
- Anon_11c9ad639448_1: components["schemas"]["Anon_b0c21ae8f968_11"];
24860
+ Anon_11c9ad639448_1: components["schemas"]["Anon_b0c21ae8f968_15"];
24207
24861
  Anon_fb248bf5a9f7_15: string;
24208
24862
  Anon_4c26b3baab05_15: components["schemas"]["Anon_52ba84a4bbf3_2"];
24209
24863
  Anon_af12d548dbee_21: components["schemas"]["Anon_0eb2e3b6e08c_3"];
@@ -24246,8 +24900,8 @@ interface components {
24246
24900
  Anon_ff52ebcb2a4e_1: number;
24247
24901
  Anon_96f9066c2fdc_36: components["schemas"]["Anon_00404e686415_40"];
24248
24902
  Anon_00404e686415_40: string;
24249
- Anon_7e1e37293611_8: components["schemas"]["Anon_97cc9ecfdea9_23"];
24250
- Anon_97cc9ecfdea9_23: number;
24903
+ Anon_7e1e37293611_8: components["schemas"]["Anon_97cc9ecfdea9_25"];
24904
+ Anon_97cc9ecfdea9_25: number;
24251
24905
  Anon_96f9066c2fdc_37: components["schemas"]["Anon_00404e686415_41"];
24252
24906
  Anon_00404e686415_41: string;
24253
24907
  Anon_9c7f41b09bde_4: components["schemas"]["Anon_cddf8275afa1_8"];
@@ -24256,8 +24910,8 @@ interface components {
24256
24910
  Anon_cddf8275afa1_9: number;
24257
24911
  Anon_811366723713_3: components["schemas"]["Anon_4c1d2cc17cf8_3"];
24258
24912
  Anon_4c1d2cc17cf8_3: number | "unlimited";
24259
- Anon_fb9ddeea992e_6: components["schemas"]["Anon_7cb541e84f22_39"];
24260
- Anon_7cb541e84f22_39: boolean;
24913
+ Anon_fb9ddeea992e_6: components["schemas"]["Anon_7cb541e84f22_40"];
24914
+ Anon_7cb541e84f22_40: boolean;
24261
24915
  /** @default null */
24262
24916
  Anon_d84a41962ed1_1: components["schemas"]["Anon_853b74b4f5a9_2"];
24263
24917
  Anon_853b74b4f5a9_2: (number | "unlimited") | null;
@@ -24270,8 +24924,8 @@ interface components {
24270
24924
  Anon_408f15090b22_1: "hard_cap" | "auto_upgrade_at_renewal";
24271
24925
  Anon_96f9066c2fdc_39: components["schemas"]["Anon_00404e686415_43"];
24272
24926
  Anon_00404e686415_43: string;
24273
- Anon_fb9ddeea992e_7: components["schemas"]["Anon_7cb541e84f22_40"];
24274
- Anon_7cb541e84f22_40: boolean;
24927
+ Anon_fb9ddeea992e_7: components["schemas"]["Anon_7cb541e84f22_41"];
24928
+ Anon_7cb541e84f22_41: boolean;
24275
24929
  Anon_a7c491664ac5_4: components["schemas"]["UsageAllocation"];
24276
24930
  Anon_0dc47bdde23b_1: components["schemas"]["Anon_853b74b4f5a9_3"];
24277
24931
  Anon_853b74b4f5a9_3: (number | "unlimited") | null;
@@ -24290,8 +24944,8 @@ interface components {
24290
24944
  Anon_57796118d046_36: string;
24291
24945
  Anon_872e58432369_1: string;
24292
24946
  /** @default false */
24293
- Anon_062d958a93c4_5: components["schemas"]["Anon_7cb541e84f22_41"];
24294
- Anon_7cb541e84f22_41: boolean;
24947
+ Anon_062d958a93c4_5: components["schemas"]["Anon_7cb541e84f22_42"];
24948
+ Anon_7cb541e84f22_42: boolean;
24295
24949
  /** @default {} */
24296
24950
  Anon_5142f8473790_6: components["schemas"]["Anon_c65c1fbd5acf_12"];
24297
24951
  Anon_c65c1fbd5acf_12: {
@@ -24321,8 +24975,8 @@ interface components {
24321
24975
  Anon_00404e686415_48: string;
24322
24976
  Anon_b3e59c48ae6e_2: components["schemas"]["Anon_1ef289951720_4"];
24323
24977
  Anon_1ef289951720_4: number;
24324
- Anon_7e1e37293611_9: components["schemas"]["Anon_97cc9ecfdea9_24"];
24325
- Anon_97cc9ecfdea9_24: number;
24978
+ Anon_7e1e37293611_9: components["schemas"]["Anon_97cc9ecfdea9_26"];
24979
+ Anon_97cc9ecfdea9_26: number;
24326
24980
  Anon_a8be2b5da5e8_1: components["schemas"]["Anon_aa6d7e4eede4_1"];
24327
24981
  /** @enum {string} */
24328
24982
  Anon_aa6d7e4eede4_1: "none_always_on" | "overage_vs_upgrade" | "time_bound" | "payment_failed" | "payment_at_risk";
@@ -24374,16 +25028,16 @@ interface components {
24374
25028
  [key: string]: unknown;
24375
25029
  };
24376
25030
  /** @default null */
24377
- Anon_45e0e0d4a0da_3: components["schemas"]["Anon_c648138a0918_7"];
24378
- Anon_c648138a0918_7: number | null;
25031
+ Anon_45e0e0d4a0da_3: components["schemas"]["Anon_c648138a0918_9"];
25032
+ Anon_c648138a0918_9: number | null;
24379
25033
  /** @default session */
24380
25034
  Anon_6ab4ae68d10d_1: components["schemas"]["CapPeriod"];
24381
25035
  /** @default 7 */
24382
- Anon_3380fd32e874_1: components["schemas"]["Anon_97cc9ecfdea9_25"];
24383
- Anon_97cc9ecfdea9_25: number;
25036
+ Anon_3380fd32e874_1: components["schemas"]["Anon_97cc9ecfdea9_27"];
25037
+ Anon_97cc9ecfdea9_27: number;
24384
25038
  /** @default null */
24385
- Anon_45e0e0d4a0da_4: components["schemas"]["Anon_c648138a0918_8"];
24386
- Anon_c648138a0918_8: number | null;
25039
+ Anon_45e0e0d4a0da_4: components["schemas"]["Anon_c648138a0918_10"];
25040
+ Anon_c648138a0918_10: number | null;
24387
25041
  /** @default next_tier_up */
24388
25042
  Anon_beae1a1b3acf_1: components["schemas"]["Anon_761abd3347d0_1"];
24389
25043
  /** @enum {string} */
@@ -24408,8 +25062,8 @@ interface components {
24408
25062
  /** @enum {string} */
24409
25063
  Anon_7de6a12732b9: "active" | "inactive" | "new";
24410
25064
  /** @default 0 */
24411
- Anon_b32f11b2ff5e_2: components["schemas"]["Anon_97cc9ecfdea9_26"];
24412
- Anon_97cc9ecfdea9_26: number;
25065
+ Anon_b32f11b2ff5e_2: components["schemas"]["Anon_97cc9ecfdea9_28"];
25066
+ Anon_97cc9ecfdea9_28: number;
24413
25067
  Anon_fb248bf5a9f7_21: string;
24414
25068
  Anon_4c26b3baab05_19: components["schemas"]["Anon_52ba84a4bbf3_2"];
24415
25069
  Anon_af12d548dbee_25: components["schemas"]["Anon_0eb2e3b6e08c_3"];
@@ -24421,7 +25075,7 @@ interface components {
24421
25075
  /** @default false */
24422
25076
  Anon_f56777819c8b_3: boolean;
24423
25077
  Anon_44136fa355b3_2: unknown;
24424
- Anon_97cc9ecfdea9_29: number;
25078
+ Anon_97cc9ecfdea9_31: number;
24425
25079
  Anon_373775e26848_8: string;
24426
25080
  Anon_ee9224780226_6: components["schemas"]["Anon_853cc883e392_1"];
24427
25081
  Anon_fb248bf5a9f7_22: string;
@@ -24444,8 +25098,8 @@ interface components {
24444
25098
  Anon_796ec99afe20_3: components["schemas"]["Anon_333f67ffab65_3"];
24445
25099
  Anon_333f67ffab65_3: string;
24446
25100
  /** @default 0 */
24447
- Anon_b32f11b2ff5e_4: components["schemas"]["Anon_97cc9ecfdea9_30"];
24448
- Anon_97cc9ecfdea9_30: number;
25101
+ Anon_b32f11b2ff5e_4: components["schemas"]["Anon_97cc9ecfdea9_32"];
25102
+ Anon_97cc9ecfdea9_32: number;
24449
25103
  Anon_fb248bf5a9f7_23: string;
24450
25104
  Anon_4c26b3baab05_21: components["schemas"]["Anon_52ba84a4bbf3_2"];
24451
25105
  Anon_af12d548dbee_27: components["schemas"]["Anon_0eb2e3b6e08c_3"];
@@ -24496,7 +25150,7 @@ interface components {
24496
25150
  field_type: components["schemas"]["TemplateFieldType"];
24497
25151
  required: components["schemas"]["Anon_f56777819c8b_3"];
24498
25152
  default_value?: components["schemas"]["Anon_44136fa355b3_2"];
24499
- order?: components["schemas"]["Anon_97cc9ecfdea9_29"];
25153
+ order?: components["schemas"]["Anon_97cc9ecfdea9_31"];
24500
25154
  help_text?: components["schemas"]["Anon_373775e26848_8"];
24501
25155
  };
24502
25156
  MessageBlockRecordOutput: {
@@ -26701,7 +27355,7 @@ declare function createBasicExperimentProvider(options: BasicBucketerOptions): E
26701
27355
  *
26702
27356
  * const session = await initRevTurbine({
26703
27357
  * tenantId: 'tenant_abc',
26704
- * apiKey: 'rt_live_xxx',
27358
+ * publicKey: 'rtk_…',
26705
27359
  * endpoint: 'https://edge.example.com',
26706
27360
  * mode: 'snippet',
26707
27361
  * domainProviders: [analytics],
@@ -26851,7 +27505,7 @@ interface PostHogAnalyticsProviderOptions {
26851
27505
  * const analytics = createPostHogAnalyticsProvider({ posthog });
26852
27506
  * const session = await initRevTurbine({
26853
27507
  * tenantId: 'tenant_abc',
26854
- * apiKey: 'rt_live_xxx',
27508
+ * publicKey: 'rtk_…',
26855
27509
  * endpoint: 'https://edge.example.com',
26856
27510
  * mode: 'snippet',
26857
27511
  * domainProviders: [analytics],
@@ -27106,7 +27760,14 @@ interface ClientSessionResult {
27106
27760
  interface RevTurbineServerOptions {
27107
27761
  /** Your RevTurbine tenant identifier. */
27108
27762
  tenantId: string;
27109
- /** Server-side API key (should be a secret key, not a publishable key). */
27763
+ /**
27764
+ * Your **server key** — the secret backend credential (`rtk_…`, type
27765
+ * `server`, minted under **Settings → API tokens → Server token**).
27766
+ *
27767
+ * Keep it in server-side configuration only. It is never the browser
27768
+ * SDK's `publicKey`, and the control plane refuses it on browser-like
27769
+ * requests.
27770
+ */
27110
27771
  apiKey: string;
27111
27772
  /** Base URL of the RevTurbine API Edge. */
27112
27773
  endpoint: string;
@@ -27176,7 +27837,7 @@ declare class RevTurbineServer {
27176
27837
  /**
27177
27838
  * Mint a short-lived, opaque per-user client-session token (plan 157).
27178
27839
  *
27179
- * The customer backend — which holds the `rt_secret_` mint secret (passed as
27840
+ * The customer backend — which holds the server key (passed as
27180
27841
  * {@link RevTurbineServerOptions.apiKey}) — calls this to obtain a browser-safe
27181
27842
  * `rt_client_` token scoped to one end-user subject, then returns the token to
27182
27843
  * its frontend. The frontend authenticates `GET /api/sdk/client-context` with
@@ -27247,7 +27908,7 @@ type RevTurbineProviderProps<TUser extends RevTurbineUserContext = RevTurbineUse
27247
27908
  * @example
27248
27909
  * ```tsx
27249
27910
  * <RevTurbineProvider
27250
- * options={{ tenantId: 'abc', apiKey: 'key', endpoint: '/api', mode: 'react', user: { id: 'user_123' } }}
27911
+ * options={{ tenantId: 'abc', publicKey: 'rtk_…', endpoint: '/api', mode: 'react', user: { id: 'user_123' } }}
27251
27912
  * >
27252
27913
  * <App />
27253
27914
  * </RevTurbineProvider>
@@ -29003,5 +29664,5 @@ declare function useRevTurbineTheme(): RevTurbineTheme;
29003
29664
  */
29004
29665
  declare function useResolvedColorScheme(preference: RevTurbineColorScheme): 'light' | 'dark';
29005
29666
 
29006
- export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, AccessGateSurfaceSlot, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AgentConnectorSlot as AgentConnectorComponent, AgentConnectorSlot, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogMetricValidatedSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BannerSlot as BannerComponent, BannerFrame, BannerSlot, BannerSurface, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, ButtonSlot as ButtonComponent, ButtonSlot, ButtonSurface, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, CliSlot as CliComponent, CliSlot, ClientContextSchema, ClientSafe, CohortMonthSchema, CompactCircularGauge, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CreditBalanceSlot as CreditBalanceComponent, CreditBalanceSlot, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CtaResolverRegistry, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DARK_THEME, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_TEMPLATE_COMPONENT_TYPES, DEFAULT_THEME, DEPRECATED_EVENT_NAMES, DOGFOOD_CLIENT_EVENT_NAMES, DataClassification, DecisionEngine, DecisionOnly, DefaultTemplateIdsSchema, DescriptionField, DetectorRequirementsSchema, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EMITTABLE_PLATFORM_EVENT_NAMES, ENTITLEMENT_STATUS_VALUES, EVENT_PAYLOAD_CONTRACTS, EVENT_PAYLOAD_EVENT_NAMES, EVENT_PREFIX_FAMILIES, EmailPreviewSlot as EmailPreviewComponent, EmailPreviewSlot, EnforcementActionSchema, EnforcementModeSchema, EngagementArea, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, EvidenceRequirementSchema, ExperimentAnalysisConfigSchema, ExperimentAnalysisConfigVersionError, ExperimentAnalysisDefinitionSchema, ExperimentAnalysisResultRecordSchema, ExperimentAnalysisResultSchema, ExperimentAssignmentFactSchema, ExperimentAssignmentSourceSchema, ExperimentDecisionFindingCodeSchema, ExperimentDecisionPolicySchema, ExperimentDecisionPolicyVersionError, ExperimentDecisionRecordSchema, ExperimentDecisionTypeSchema, ExperimentEvidenceSchema, ExperimentEvidenceSnapshotSchema, ExperimentHealthSchema, ExperimentMetricEvidencePlanSchema, ExperimentMetricResultSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, ExperimentVariantTargetSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FAMILY_RENDER_COMPATIBILITY, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FIXTURE_ANALYTICS_CATALOG, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FixedSurfaceSlot, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FullPageSlot as FullPageComponent, FullPageSlot, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, AccessGateSurfaceSlot as Gate, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, INIT_STATUS_OK, IdField, IdentityKind, IdentitySchema, InMemoryStorage, InPageSlot as InPageComponent, InPageSlot, InPageSurface, IngestedEventSchema, InitFailureDiagnostic, InlineCardPlacement, InlineEmbedSlot as InlineEmbedComponent, InlineEmbedSlot, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MessageSurfaceSlot, MetadataField, MeteringConfigSchema, ModalSlot as ModalComponent, ModalFrame, ModalSlot, ModalSurface, NameField, NullableDatetimeField, ObservationMaturitySchema, OnboardingChecklistSchema, OnboardingStateSchema, OpportunityCandidateSchema, OpportunityEvidenceSchema, OpportunityInterpretationSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLATFORM_EMITTED_EVENT_NAMES, PLATFORM_EVENT_TAXONOMY, PLAYBOOK_FORMAT_VERSION, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, Placement, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionInspector, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementRenderer, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, PushPreviewSlot as PushPreviewComponent, PushPreviewSlot, QuotaMeterSlot as QuotaMeterComponent, QuotaMeterFrame, QuotaMeterSlot, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, SurfaceSlotComponent as RTSlot, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineProvider, RevTurbineServer, RevTurbineThemeProvider, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SDK_SERVER_EVENT_NAMES, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentDimensionSchema, SegmentSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, SurfaceSlotComponent as Slot, SmsPreviewSlot as SmsPreviewComponent, SmsPreviewSlot, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotComponent, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TelemetryScope, TelemetryScopeContext, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, ToastSlot as ToastComponent, ToastSlot, ToastSurface, TooltipSlot as TooltipComponent, TooltipSlot, Track, TrackEventSchema, TrackIngestBatchSchema, TrackOnView, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserProfile, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WEBHOOK_DERIVED_EVENT_NAMES, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookDeliverySchema, WebhookDispatchStatusSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, WebhookProcessingStatusSchema, WebhookReplayEnvelopeSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, baseThemeForScheme, bridgeUiPathResolversIntoRegistry, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, categorizeActionError, changelogPaths, clearPersistedTheme, collectAssignmentFactDeclarations, collectPersistedSchemas, collectVersionedConfigEntities, compileAnalyticsDraft, composeEffectiveExperimentContext, configPaths, contentPaths, createAnalyticsProvider, createBasicExperimentProvider, createChainedPlacementRequest, createCompositeExperimentProvider, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createFixtureAnalyticsCatalog, createHydrationProviders, createInMemoryAnalyticsCatalog, createLocalRuntimeConfig, createNativeExperimentAssignmentProvider, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, customerPaths, defaultRenderForQuery, defineUiPathResolvers, deriveLocalTrialStatusFromInstance, derivePlacementPersonalizationTokens, deriveReverseTrialGrants, dispatchCtaClick, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultCtaResolverRegistry, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, initStatusForError, isAnalyticsDateRangeFilterValue, isBrowser, isExperimentAssignmentFactDeclaration, isLegacyDateRangeArray, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, namespacePlatformCollision, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, registerBuiltinSlotTypes, registerBuiltinSnoozeResolver, registerCtaResolver, registerServerActionResolvers, remediationFor, requireSchemaFacets, resetDefaultCtaResolverRegistry, resetDefaultRegistry, resolveBranding, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unregisterCtaResolver, useAddons, useCan, useEntitlement, useGatedAction, usePlacement, usePlacementPersonalization, usePlans, useResolvedColorScheme, useRevTurbine, useRevTurbineTheme, useRevTurbineThemeProviderPresent, useSurfaceSlot, useTelemetryProps, useTelemetryScope, useTrack, useTrackedAction, useUsageSnapshot, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateEventPayload, validatePlacementThresholdWarnings };
29007
- export type { AccessGateCheck, AccessGateSurfaceSlotProps, ActionErrorCategory, ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, AgentConnectorSlotProps as AgentConnectorComponentProps, AgentConnectorSlotProps, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BannerSlotProps as BannerComponentProps, BannerFrameProps, BannerSlotProps, BannerSurfaceProps, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, ButtonSlotProps as ButtonComponentProps, ButtonSlotProps, ButtonSurfaceProps, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, CliSlotProps as CliComponentProps, CliSlotProps, ClientContext, CohortMonth, CompactCircularGaugeProps, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ConfigTargetDefaults, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CreditBalanceSlotProps as CreditBalanceComponentProps, CreditBalanceSlotProps, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, CtaResolver, CtaResolverContext, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, EngagementAreaProps, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, EvidenceRequirement, Exact, ExactInitOptions, Experiment, ExperimentAnalysisConfig, ExperimentAnalysisDefinition, ExperimentAnalysisResult, ExperimentAnalysisResultRecord, ExperimentAssignmentFact, ExperimentAssignmentFactDeclaration, ExperimentAssignmentFactMetadataCarrier, ExperimentAssignmentProvider, ExperimentAssignmentSource, ExperimentDecisionFindingCode, ExperimentDecisionPolicy, ExperimentDecisionRecord, ExperimentDecisionType, ExperimentEvidence, ExperimentEvidenceSnapshot, ExperimentHealth, ExperimentMetricEvidencePlan, ExperimentMetricResult, ExperimentProvider, ExperimentProviderState, ExperimentStatus, ExperimentType, ExperimentVariant, ExperimentVariantNonAssignmentReason, ExperimentVariantSelection, ExperimentVariantTarget, Playbook as ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FixedSurfaceSlotProps, FlagValueType, FreeTrialRule, FreeTrialSettings, FullPageSlotProps as FullPageComponentProps, FullPageSlotProps, FunnelStep, AccessGateSurfaceSlotProps as GateProps, GatedAction, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, InPageSlotProps as InPageComponentProps, InPageSlotProps, InPageSurfaceProps, IngestWriteScope, IngestedEvent, InitFailureDiagnosticProps, InlineCardPlacementProps, InlineEmbedSlotProps as InlineEmbedComponentProps, InlineEmbedSlotProps, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MessageSurfaceSlotProps, MessageSurfaceSlotRef, MessageTriggerType, MeteringConfig, ModalSlotProps as ModalComponentProps, ModalFrameProps, ModalLayout, ModalSlotProps, ModalSurfaceProps, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionInspectorProps, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementProps, PlacementRendererProps, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookStrict, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, QuotaMeterSlotProps as QuotaMeterComponentProps, QuotaMeterFrameProps, QuotaMeterSlotProps, SurfaceSlotComponentProps as RTSlotProps, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineAuthoredSlotRef, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineColorScheme, RevTurbineComponentType, Playbook as RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitPhase, RevTurbineInitStatus, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineProviderProps, RevTurbineRegisteredSlot, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotInventoryDiagnosis, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, ServerActionContext, ServerActionHandler, ServerActionMap, ServerActionResult, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserContext, ServerUserContextSnapshot, Severity, SurfaceSlotComponentProps as SlotProps, StaticPlacementResolverOptions, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StudioSurfaceType, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceSlotCategory, SurfaceSlotComponentProps, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TelemetryScopeProps, TelemetryScopeValue, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, ToastSlotProps as ToastComponentProps, ToastSlotProps, ToastSurfaceProps, TooltipSlotProps as TooltipComponentProps, TooltipSlotProps, TrackEvent, TrackFn, TrackIngestBatch, TrackOnViewProps, TrackOptions, TrackProps, TrackPurpose, TrackedAction, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UseAddonsResult, UseCanResult, UseEntitlementOptions, UseEntitlementResult, UsePlacementOptions, UsePlacementPersonalizationOptions, UsePlacementResult, UsePlansResult, UseSurfaceSlotOptions, UseSurfaceSlotResult, UseUsageSnapshotResult, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserProfileProps, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookDelivery, WebhookDispatchStatus, WebhookEventLog, WebhookEventSource, WebhookEventStatus, WebhookProcessingStatus, WebhookReplayEnvelope };
29667
+ export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, AccessGateSurfaceSlot, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AgentConnectorSlot as AgentConnectorComponent, AgentConnectorSlot, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogMetricValidatedSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BannerSlot as BannerComponent, BannerFrame, BannerSlot, BannerSurface, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, ButtonSlot as ButtonComponent, ButtonSlot, ButtonSurface, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, CliSlot as CliComponent, CliSlot, ClientContextSchema, ClientSafe, CohortMonthSchema, CompactCircularGauge, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CreditBalanceSlot as CreditBalanceComponent, CreditBalanceSlot, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CtaResolverRegistry, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DARK_THEME, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_HOSTED_ENDPOINT, DEFAULT_SDK_MODE, DEFAULT_TEMPLATE_COMPONENT_TYPES, DEFAULT_THEME, DEPRECATED_EVENT_NAMES, DOGFOOD_CLIENT_EVENT_NAMES, DataClassification, DecisionEngine, DecisionOnly, DefaultTemplateIdsSchema, DeleteProtectionDecisionSchema, DescriptionField, DetectorRequirementsSchema, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EMITTABLE_PLATFORM_EVENT_NAMES, ENTITLEMENT_STATUS_VALUES, EVENT_PAYLOAD_CONTRACTS, EVENT_PAYLOAD_EVENT_NAMES, EVENT_PREFIX_FAMILIES, EmailPreviewSlot as EmailPreviewComponent, EmailPreviewSlot, EnforcementActionSchema, EnforcementModeSchema, EngagementArea, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, EvidenceCoverageStateSchema, EvidenceReasonColumnSchema, EvidenceRequirementSchema, ExperimentAnalysisConfigSchema, ExperimentAnalysisConfigVersionError, ExperimentAnalysisDefinitionSchema, ExperimentAnalysisResultRecordSchema, ExperimentAnalysisResultSchema, ExperimentAssignmentFactSchema, ExperimentAssignmentSourceSchema, ExperimentDecisionFindingCodeSchema, ExperimentDecisionPolicySchema, ExperimentDecisionPolicyVersionError, ExperimentDecisionRecordSchema, ExperimentDecisionTypeSchema, ExperimentEvidenceSchema, ExperimentEvidenceSnapshotSchema, ExperimentHealthSchema, ExperimentMetricEvidencePlanSchema, ExperimentMetricResultSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, ExperimentVariantTargetSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FAMILY_RENDER_COMPATIBILITY, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FIXTURE_ANALYTICS_CATALOG, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FixedSurfaceSlot, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FullPageSlot as FullPageComponent, FullPageSlot, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, AccessGateSurfaceSlot as Gate, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, INIT_STATUS_OK, IdField, IdentityKind, IdentitySchema, InMemoryStorage, InPageSlot as InPageComponent, InPageSlot, InPageSurface, IngestedEventSchema, InitFailureDiagnostic, InlineCardPlacement, InlineEmbedSlot as InlineEmbedComponent, InlineEmbedSlot, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MessageSurfaceSlot, MetadataField, MeteringConfigSchema, ModalSlot as ModalComponent, ModalFrame, ModalSlot, ModalSurface, NON_RETRYABLE_EVIDENCE_REASONS, NameField, NullableDatetimeField, ObservationMaturitySchema, OnboardingChecklistSchema, OnboardingStateSchema, OpportunityCandidateSchema, OpportunityEvidenceSchema, OpportunityInterpretationSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLATFORM_EMITTED_EVENT_NAMES, PLATFORM_EVENT_TAXONOMY, PLAYBOOK_FORMAT_VERSION, PROTECTED_SUBSCRIPTION_SAMPLE_LIMIT, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, Placement, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionInspector, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementRenderer, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, PushPreviewSlot as PushPreviewComponent, PushPreviewSlot, QuotaMeterSlot as QuotaMeterComponent, QuotaMeterFrame, QuotaMeterSlot, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, SurfaceSlotComponent as RTSlot, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineProvider, RevTurbineServer, RevTurbineThemeProvider, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SDK_SERVER_EVENT_NAMES, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, STRIPE_SUBSCRIPTION_STATUS_VALUES, SUBSCRIPTION_BLOCKER_ENTITY, SUBSCRIPTION_EVIDENCE_UNAVAILABLE_CODE, SUBSCRIPTION_EVIDENCE_UNAVAILABLE_REASONS, SUBSCRIPTION_REFERENCE_EXISTS_CODE, SUBSCRIPTION_STATUS_PROTECTION, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentDimensionSchema, SegmentSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, SurfaceSlotComponent as Slot, SmsPreviewSlot as SmsPreviewComponent, SmsPreviewSlot, StripeBillingScopeSchema, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StripePriceScopeSchema, StripeSubscriptionEvidenceSchema, StripeSubscriptionItemSchema, StripeSubscriptionStatusSchema, StudioSurfaceTypeSchema, SubscriptionEvidenceKnownSchema, SubscriptionEvidenceResultSchema, SubscriptionEvidenceUnavailableReasonSchema, SubscriptionEvidenceUnavailableSchema, SubscriptionProtectionSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotComponent, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TERMINAL_SUBSCRIPTION_STATUSES, TelemetryScope, TelemetryScopeContext, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, ToastSlot as ToastComponent, ToastSlot, ToastSurface, TooltipSlot as TooltipComponent, TooltipSlot, Track, TrackEventSchema, TrackIngestBatchSchema, TrackOnView, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserProfile, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WEBHOOK_DERIVED_EVENT_NAMES, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookDeliverySchema, WebhookDispatchStatusSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, WebhookProcessingStatusSchema, WebhookReplayEnvelopeSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, baseThemeForScheme, bridgeUiPathResolversIntoRegistry, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, categorizeActionError, changelogPaths, classifySubscriptionStatus, 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, decideDeleteProtection, defaultRenderForQuery, defineUiPathResolvers, deriveLocalTrialStatusFromInstance, derivePlacementPersonalizationTokens, deriveReverseTrialGrants, dispatchCtaClick, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultCtaResolverRegistry, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, initStatusForError, isAnalyticsDateRangeFilterValue, isBrowser, isExperimentAssignmentFactDeclaration, isLegacyDateRangeArray, isRetryableEvidenceReason, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, namespacePlatformCollision, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, registerBuiltinSlotTypes, registerBuiltinSnoozeResolver, registerCtaResolver, registerServerActionResolvers, remediationFor, requireSchemaFacets, resetBrowserKeyAliasWarning, resetDefaultCtaResolverRegistry, resetDefaultRegistry, resolveBranding, resolveBrowserPublicKey, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveSubscriptionEvidence, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, summarizeProtectedSubscriptions, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unavailableEvidence, unregisterCtaResolver, useAddons, useCan, useEntitlement, useGatedAction, usePlacement, usePlacementPersonalization, usePlans, useResolvedColorScheme, useRevTurbine, useRevTurbineTheme, useRevTurbineThemeProviderPresent, useSurfaceSlot, useTelemetryProps, useTelemetryScope, useTrack, useTrackedAction, useUsageSnapshot, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateEventPayload, validatePlacementThresholdWarnings };
29668
+ export type { AccessGateCheck, AccessGateSurfaceSlotProps, ActionErrorCategory, ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, AgentConnectorSlotProps as AgentConnectorComponentProps, AgentConnectorSlotProps, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BannerSlotProps as BannerComponentProps, BannerFrameProps, BannerSlotProps, BannerSurfaceProps, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, ButtonSlotProps as ButtonComponentProps, ButtonSlotProps, ButtonSurfaceProps, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, CliSlotProps as CliComponentProps, CliSlotProps, ClientContext, CohortMonth, CompactCircularGaugeProps, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ConfigTargetDefaults, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CreditBalanceSlotProps as CreditBalanceComponentProps, CreditBalanceSlotProps, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, CtaResolver, CtaResolverContext, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeleteProtectionDecision, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, EngagementAreaProps, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, EvidenceCoverageState, EvidenceReasonColumn, EvidenceRequirement, Exact, ExactInitOptions, Experiment, ExperimentAnalysisConfig, ExperimentAnalysisDefinition, ExperimentAnalysisResult, ExperimentAnalysisResultRecord, ExperimentAssignmentFact, ExperimentAssignmentFactDeclaration, ExperimentAssignmentFactMetadataCarrier, ExperimentAssignmentProvider, ExperimentAssignmentSource, ExperimentDecisionFindingCode, ExperimentDecisionPolicy, ExperimentDecisionRecord, ExperimentDecisionType, ExperimentEvidence, ExperimentEvidenceSnapshot, ExperimentHealth, ExperimentMetricEvidencePlan, ExperimentMetricResult, ExperimentProvider, ExperimentProviderState, ExperimentStatus, ExperimentType, ExperimentVariant, ExperimentVariantNonAssignmentReason, ExperimentVariantSelection, ExperimentVariantTarget, Playbook as ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FixedSurfaceSlotProps, FlagValueType, FreeTrialRule, FreeTrialSettings, FullPageSlotProps as FullPageComponentProps, FullPageSlotProps, FunnelStep, AccessGateSurfaceSlotProps as GateProps, GatedAction, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, InPageSlotProps as InPageComponentProps, InPageSlotProps, InPageSurfaceProps, IngestWriteScope, IngestedEvent, InitFailureDiagnosticProps, InlineCardPlacementProps, InlineEmbedSlotProps as InlineEmbedComponentProps, InlineEmbedSlotProps, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MessageSurfaceSlotProps, MessageSurfaceSlotRef, MessageTriggerType, MeteringConfig, ModalSlotProps as ModalComponentProps, ModalFrameProps, ModalLayout, ModalSlotProps, ModalSurfaceProps, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionInspectorProps, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementProps, PlacementRendererProps, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookStrict, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, QuotaMeterSlotProps as QuotaMeterComponentProps, QuotaMeterFrameProps, QuotaMeterSlotProps, SurfaceSlotComponentProps as RTSlotProps, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineAuthoredSlotRef, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineColorScheme, RevTurbineComponentType, Playbook as RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitPhase, RevTurbineInitStatus, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineProviderProps, RevTurbineRegisteredSlot, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotInventoryDiagnosis, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, ServerActionContext, ServerActionHandler, ServerActionMap, ServerActionResult, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserContext, ServerUserContextSnapshot, Severity, SurfaceSlotComponentProps as SlotProps, StaticPlacementResolverOptions, StripeBillingScope, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StripePriceScope, StripeSubscriptionEvidence, StripeSubscriptionItem, StripeSubscriptionStatus, StudioSurfaceType, SubscriptionEvidenceKnown, SubscriptionEvidenceResult, SubscriptionEvidenceUnavailable, SubscriptionEvidenceUnavailableReason, SubscriptionProtection, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceSlotCategory, SurfaceSlotComponentProps, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TelemetryScopeProps, TelemetryScopeValue, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, ToastSlotProps as ToastComponentProps, ToastSlotProps, ToastSurfaceProps, TooltipSlotProps as TooltipComponentProps, TooltipSlotProps, TrackEvent, TrackFn, TrackIngestBatch, TrackOnViewProps, TrackOptions, TrackProps, TrackPurpose, TrackedAction, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UseAddonsResult, UseCanResult, UseEntitlementOptions, UseEntitlementResult, UsePlacementOptions, UsePlacementPersonalizationOptions, UsePlacementResult, UsePlansResult, UseSurfaceSlotOptions, UseSurfaceSlotResult, UseUsageSnapshotResult, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserProfileProps, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookDelivery, WebhookDispatchStatus, WebhookEventLog, WebhookEventSource, WebhookEventStatus, WebhookProcessingStatus, WebhookReplayEnvelope };