@revturbine/sdk 0.2.71 → 0.2.73

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.
@@ -2150,6 +2150,9 @@ declare const ClientContextSchema: z.ZodObject<{
2150
2150
  }>>>;
2151
2151
  provider_subscription_id: z.ZodOptional<z.ZodString>;
2152
2152
  }, z.core.$strip>>;
2153
+ plan: z.ZodOptional<z.ZodObject<{
2154
+ handle: z.ZodOptional<z.ZodString>;
2155
+ }, z.core.$strip>>;
2153
2156
  capabilities: z.ZodOptional<z.ZodObject<{
2154
2157
  can_upgrade: z.ZodOptional<z.ZodBoolean>;
2155
2158
  can_manage_billing: z.ZodOptional<z.ZodBoolean>;
@@ -2993,6 +2996,7 @@ declare const SdkMetaEventTypeSchema: z.ZodEnum<{
2993
2996
  sdk_init: "sdk_init";
2994
2997
  sdk_error: "sdk_error";
2995
2998
  sdk_validation_warning: "sdk_validation_warning";
2999
+ resolution_failure: "resolution_failure";
2996
3000
  }>;
2997
3001
  declare const SdkConfigShapeSchema: z.ZodObject<{
2998
3002
  plans: z.ZodNumber;
@@ -3009,6 +3013,7 @@ declare const SdkMetaEventSchema: z.ZodObject<{
3009
3013
  sdk_init: "sdk_init";
3010
3014
  sdk_error: "sdk_error";
3011
3015
  sdk_validation_warning: "sdk_validation_warning";
3016
+ resolution_failure: "resolution_failure";
3012
3017
  }>;
3013
3018
  occurred_at: z.ZodString;
3014
3019
  request_id: z.ZodOptional<z.ZodString>;
@@ -3028,6 +3033,12 @@ declare const SdkMetaEventSchema: z.ZodObject<{
3028
3033
  surface_templates: z.ZodNumber;
3029
3034
  }, z.core.$strip>>;
3030
3035
  message: z.ZodOptional<z.ZodString>;
3036
+ reason: z.ZodOptional<z.ZodString>;
3037
+ placement_handle: z.ZodOptional<z.ZodString>;
3038
+ slot_handle: z.ZodOptional<z.ZodString>;
3039
+ surface: z.ZodOptional<z.ZodString>;
3040
+ plan_handle: z.ZodOptional<z.ZodString>;
3041
+ entitlement_handle: z.ZodOptional<z.ZodString>;
3031
3042
  }, z.core.$strip>;
3032
3043
  declare const SdkMetaIngestBatchSchema: z.ZodObject<{
3033
3044
  events: z.ZodArray<z.ZodObject<{
@@ -3035,6 +3046,7 @@ declare const SdkMetaIngestBatchSchema: z.ZodObject<{
3035
3046
  sdk_init: "sdk_init";
3036
3047
  sdk_error: "sdk_error";
3037
3048
  sdk_validation_warning: "sdk_validation_warning";
3049
+ resolution_failure: "resolution_failure";
3038
3050
  }>;
3039
3051
  occurred_at: z.ZodString;
3040
3052
  request_id: z.ZodOptional<z.ZodString>;
@@ -3054,6 +3066,12 @@ declare const SdkMetaIngestBatchSchema: z.ZodObject<{
3054
3066
  surface_templates: z.ZodNumber;
3055
3067
  }, z.core.$strip>>;
3056
3068
  message: z.ZodOptional<z.ZodString>;
3069
+ reason: z.ZodOptional<z.ZodString>;
3070
+ placement_handle: z.ZodOptional<z.ZodString>;
3071
+ slot_handle: z.ZodOptional<z.ZodString>;
3072
+ surface: z.ZodOptional<z.ZodString>;
3073
+ plan_handle: z.ZodOptional<z.ZodString>;
3074
+ entitlement_handle: z.ZodOptional<z.ZodString>;
3057
3075
  }, z.core.$strip>>;
3058
3076
  }, z.core.$strip>;
3059
3077
  declare const eventPaths: ZodOpenApiPathsObject;
@@ -11350,6 +11368,10 @@ declare function parseUiPath(raw: Record<string, unknown>): PlacementUiPath;
11350
11368
  declare function parsePromotion(raw?: Record<string, unknown>): PlacementPromotion | undefined;
11351
11369
  /**
11352
11370
  * Get or create the default global placement type registry.
11371
+ *
11372
+ * On the React entry the registry comes pre-seeded with the built-in slot
11373
+ * types; on the headless entry it starts empty (headless consumers register
11374
+ * their own types via {@link PlacementTypeRegistry.register}).
11353
11375
  */
11354
11376
  declare function getDefaultRegistry(): PlacementTypeRegistry;
11355
11377
  /**
@@ -12758,6 +12780,33 @@ declare class RevTurbineCustomerSdk {
12758
12780
  private warnPiiRedactedOnce;
12759
12781
  /** True when keyless anonymous telemetry should fire (REQ-4 conditions). */
12760
12782
  private anonymousTelemetryActive;
12783
+ /**
12784
+ * Session-scoped dedup for `resolution_failure` diagnostics (plan 144 Q-4
12785
+ * disposition): one emit per `(reason, primary handle)` pair, capped per
12786
+ * session so a render loop can never flood the channel.
12787
+ */
12788
+ private readonly emittedResolutionDiagnostics;
12789
+ private static readonly RESOLUTION_DIAGNOSTIC_SESSION_CAP;
12790
+ /**
12791
+ * Gate for `resolution_failure` diagnostics (plan 144 TASK-21). Honors BOTH
12792
+ * opt-outs (124 Q-6, decided 2026-08-12): either `anonymousTelemetry: false`
12793
+ * or `analytics: false` silences diagnostics — the most conservative
12794
+ * reading, so no privacy-minded install is surprised by a new emission.
12795
+ * Unlike {@link anonymousTelemetryActive} there is NO keyless requirement:
12796
+ * keyed production installs emit diagnostics too (124 Q-7). `previewMode`
12797
+ * (docs/playground renders) still suppresses, and the channel is
12798
+ * browser-only for now (server-side diagnostics are a named follow-up).
12799
+ */
12800
+ private diagnosticTelemetryActive;
12801
+ /**
12802
+ * Emit one `resolution_failure` diagnostic (plan 144 TASK-21 — the plan-124
12803
+ * "silent failure" channel): a placement that resolved to the fallback, or
12804
+ * an entitlement denied for infrastructure reasons, becomes observable on
12805
+ * the keyless meta channel. Field values are author-defined handles and
12806
+ * closed reason codes only (TASK-20 allow-list); deduped per
12807
+ * `(reason, primary handle)` for the session and capped.
12808
+ */
12809
+ private emitResolutionFailure;
12761
12810
  /** Fire the one anonymous `sdk_init` adoption beacon at startup. */
12762
12811
  private emitSdkInitTelemetry;
12763
12812
  /**
@@ -12771,6 +12820,14 @@ declare class RevTurbineCustomerSdk {
12771
12820
  * non-throwing. Stamps SDK/schema versions + a one-way hashed config id.
12772
12821
  */
12773
12822
  private emitAnonMeta;
12823
+ /**
12824
+ * Ungated build + POST of one allowlisted meta event — the shared tail of
12825
+ * {@link emitAnonMeta} (keyless adoption beacons, which stay gated on
12826
+ * keyless installs) and the `resolution_failure` diagnostics (plan 144
12827
+ * TASK-21), which are deliberately NOT keyless-only — keyed production
12828
+ * installs emit them too (plan 124 Q-7). Callers gate; this never throws.
12829
+ */
12830
+ private postAnonMeta;
12774
12831
  /** One-time info notice that keyless telemetry is active + how to disable it (REQ-8b). */
12775
12832
  private showAnonTelemetryNoticeOnce;
12776
12833
  private sendEvents;
@@ -15081,9 +15138,15 @@ interface components {
15081
15138
  bundle_version?: components["schemas"]["Anon_e17de468dbc9_4"];
15082
15139
  config_shape?: components["schemas"]["Anon_a070b8adf29f"];
15083
15140
  message?: components["schemas"]["Anon_7e1c99abdd77_2"];
15141
+ reason?: components["schemas"]["Anon_e17de468dbc9_5"];
15142
+ placement_handle?: components["schemas"]["Anon_e17de468dbc9_6"];
15143
+ slot_handle?: components["schemas"]["Anon_e17de468dbc9_7"];
15144
+ surface?: components["schemas"]["Anon_e17de468dbc9_8"];
15145
+ plan_handle?: components["schemas"]["Anon_e17de468dbc9_9"];
15146
+ entitlement_handle?: components["schemas"]["Anon_e17de468dbc9_10"];
15084
15147
  };
15085
15148
  /** @enum {string} */
15086
- SdkMetaEventType: "sdk_init" | "sdk_error" | "sdk_validation_warning";
15149
+ SdkMetaEventType: "sdk_init" | "sdk_error" | "sdk_validation_warning" | "resolution_failure";
15087
15150
  SdkConfigShape: {
15088
15151
  plans: components["schemas"]["Anon_274ba4ca49d5"];
15089
15152
  entitlements: components["schemas"]["Anon_274ba4ca49d5_1"];
@@ -15914,6 +15977,18 @@ interface components {
15914
15977
  Anon_274ba4ca49d5_7: number;
15915
15978
  Anon_7e1c99abdd77_2: components["schemas"]["Anon_373775e26848_4"];
15916
15979
  Anon_373775e26848_4: string;
15980
+ Anon_e17de468dbc9_5: components["schemas"]["Anon_520c691f88f7_5"];
15981
+ Anon_520c691f88f7_5: string;
15982
+ Anon_e17de468dbc9_6: components["schemas"]["Anon_520c691f88f7_6"];
15983
+ Anon_520c691f88f7_6: string;
15984
+ Anon_e17de468dbc9_7: components["schemas"]["Anon_520c691f88f7_7"];
15985
+ Anon_520c691f88f7_7: string;
15986
+ Anon_e17de468dbc9_8: components["schemas"]["Anon_520c691f88f7_8"];
15987
+ Anon_520c691f88f7_8: string;
15988
+ Anon_e17de468dbc9_9: components["schemas"]["Anon_520c691f88f7_9"];
15989
+ Anon_520c691f88f7_9: string;
15990
+ Anon_e17de468dbc9_10: components["schemas"]["Anon_520c691f88f7_10"];
15991
+ Anon_520c691f88f7_10: string;
15917
15992
  Anon_761f976a1da1_2: string;
15918
15993
  Anon_57796118d046_19: string;
15919
15994
  Anon_4e04ec5cc4e6_4: components["schemas"]["Anon_9ac136edb99a_9"];
@@ -20868,23 +20943,6 @@ interface PostHogIntegrationOptions extends PostHogAnalyticsProviderOptions {
20868
20943
  */
20869
20944
  declare function createPostHogIntegration(options: PostHogIntegrationOptions): EventConsumerProvider;
20870
20945
 
20871
- /**
20872
- * Register all built-in slot types on the given registry.
20873
- *
20874
- * Built-in types cover the core surface types:
20875
- * - banner → BannerSlot (full-width top/bottom)
20876
- * - modal → ModalSlot (overlay dialog, optional/blocking)
20877
- * - in_page → InPageSlot (card/embed in page flow)
20878
- * - toast → ToastSlot (ephemeral notification)
20879
- * - button → ButtonSlot (nav bar / CTA button)
20880
- * - full_page → FullPageSlot (dedicated managed page)
20881
- * - email/sms/push → channel previews (static out-of-band mocks)
20882
- *
20883
- * Additional specialized types registered as in_page variants:
20884
- * - quota_meter → QuotaMeterSlot (usage meter + upgrade CTA)
20885
- */
20886
- declare function registerBuiltinSlotTypes(registry: PlacementTypeRegistry): void;
20887
-
20888
20946
  /**
20889
20947
  * Pre-defined surface template ID sets.
20890
20948
  *
@@ -21166,5 +21224,5 @@ declare class RevTurbineServer {
21166
21224
  private fetchTheme;
21167
21225
  }
21168
21226
 
21169
- export { AddOnSchema, AddOnVariationSchema, AlertSchema, AnchorFields, ApiKeySchema, ApiKeyStatusSchema, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_BRANDING, DEFAULT_THEME, DataClassification, DecisionEngine, DecisionLogSchema, DecisionOnly, DescriptionField, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EnforcementActionSchema, EnforcementModeSchema, EntitlementCheckResultSchema, EntitlementEvalLogSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventSearchParamsSchema, EventSourceSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, NameField, NullableDatetimeField, OnboardingChecklistSchema, OnboardingStateSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLAYBOOK_FORMAT_VERSION, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementVariantSchema, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationRecordSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineServer, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SERVER_TRAITS_DOMAIN, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentDimensionSchema, SegmentSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionTypeSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VersionFields, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, analyticsPaths, applyValueMaps, buildControlPlaneEvent, changelogPaths, clearPersistedTheme, collectPersistedSchemas, collectVersionedConfigEntities, configPaths, contentPaths, createAnalyticsProvider, createChainedPlacementRequest, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createHydrationProviders, createLocalRuntimeConfig, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, customerPaths, defineUiPathResolvers, deriveLocalTrialStatusFromInstance, deriveReverseTrialGrants, entitlementPaths, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isBrowser, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, registerBuiltinSlotTypes, requireSchemaFacets, resetDefaultRegistry, resolveBranding, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, runtimePaths, schemaDeprecation, schemaFacets, scopesSubsetOfRole, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, userContextPaths, validatePlacementThresholdWarnings };
21227
+ export { AddOnSchema, AddOnVariationSchema, AlertSchema, AnchorFields, ApiKeySchema, ApiKeyStatusSchema, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_BRANDING, DEFAULT_THEME, DataClassification, DecisionEngine, DecisionLogSchema, DecisionOnly, DescriptionField, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EnforcementActionSchema, EnforcementModeSchema, EntitlementCheckResultSchema, EntitlementEvalLogSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventSearchParamsSchema, EventSourceSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, NameField, NullableDatetimeField, OnboardingChecklistSchema, OnboardingStateSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLAYBOOK_FORMAT_VERSION, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementVariantSchema, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationRecordSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineServer, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SERVER_TRAITS_DOMAIN, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentDimensionSchema, SegmentSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionTypeSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VersionFields, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, analyticsPaths, applyValueMaps, buildControlPlaneEvent, changelogPaths, clearPersistedTheme, collectPersistedSchemas, collectVersionedConfigEntities, configPaths, contentPaths, createAnalyticsProvider, createChainedPlacementRequest, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createHydrationProviders, createLocalRuntimeConfig, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, customerPaths, defineUiPathResolvers, deriveLocalTrialStatusFromInstance, deriveReverseTrialGrants, entitlementPaths, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isBrowser, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, requireSchemaFacets, resetDefaultRegistry, resolveBranding, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, runtimePaths, schemaDeprecation, schemaFacets, scopesSubsetOfRole, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, userContextPaths, validatePlacementThresholdWarnings };
21170
21228
  export type { AdapterBaseOptions, AddOn, AddOnVariation, Alert, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsProviderOptions, AnyDomainProvider, ApiKey, ApiKeyStatus, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DecisionLog, DeriveTrialStatusInput, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DriftReport, EnforcementAction, EnforcementMode, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementEvalLog, 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, EventSearchParams, EventSource, Experiment, ExperimentStatus, ExperimentType, ExperimentVariant, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, OnboardingChecklist, OnboardingState, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementVariant, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookStrict, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationRecord, PriceSource, PricingModel, Promotion, PromotionStatus, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserContext, ServerUserContextSnapshot, Severity, StaticPlacementResolverOptions, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StudioSurfaceType, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackIngestBatch, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionInput, TreatmentInteractionType, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, WebhookEventLog, WebhookEventSource, WebhookEventStatus };