@revturbine/sdk 0.2.72 → 0.2.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9149,6 +9149,19 @@ type WebhookEventStatus = z.infer<typeof WebhookEventStatusSchema>;
9149
9149
 
9150
9150
  /** A canonical Playbook or the deprecated RevTurbineConfig wire shape. */
9151
9151
  type ConfigArtifact = Playbook | RevTurbineConfig;
9152
+ /**
9153
+ * A config artifact as raw parsed JSON — what
9154
+ * `import playbook from './revturbine.playbook.json'` produces.
9155
+ *
9156
+ * TypeScript widens JSON modules to plain `string`/`number` property types,
9157
+ * which can never satisfy the literal-typed {@link ConfigArtifact}
9158
+ * (`artifact_type: "playbook"` etc.), so a strict-mode project could not pass
9159
+ * the imported JSON without a cast. The SDK therefore accepts this raw shape
9160
+ * everywhere a {@link ConfigArtifact} is accepted at the `localRuntime`
9161
+ * boundary and validates it at runtime ({@link normalizeConfigArtifactOrThrow}
9162
+ * — a malformed artifact fails fast at init with a descriptive error).
9163
+ */
9164
+ type UnvalidatedConfigArtifact = Record<string, unknown>;
9152
9165
  /** Target values used only when an older legacy artifact predates target stamping. */
9153
9166
  interface LegacyConfigTargetDefaults {
9154
9167
  tenantId: string;
@@ -11431,6 +11444,10 @@ declare function parseUiPath(raw: Record<string, unknown>): PlacementUiPath;
11431
11444
  declare function parsePromotion(raw?: Record<string, unknown>): PlacementPromotion | undefined;
11432
11445
  /**
11433
11446
  * Get or create the default global placement type registry.
11447
+ *
11448
+ * On the React entry the registry comes pre-seeded with the built-in slot
11449
+ * types; on the headless entry it starts empty (headless consumers register
11450
+ * their own types via {@link PlacementTypeRegistry.register}).
11434
11451
  */
11435
11452
  declare function getDefaultRegistry(): PlacementTypeRegistry;
11436
11453
  /**
@@ -11558,10 +11575,10 @@ type RevTurbineLocalOnlyMinimalInitOptions = Omit<RevTurbineInitOptions, 'tenant
11558
11575
  mode?: RevTurbineSdkMode;
11559
11576
  runtimeMode?: 'local_only';
11560
11577
  localRuntime: RevTurbineLocalRuntimeOptions & ({
11561
- playbook: ConfigArtifact;
11578
+ playbook: ConfigArtifact | UnvalidatedConfigArtifact;
11562
11579
  } | {
11563
11580
  /** @deprecated Use `playbook` — the canonical key for the same artifact. */
11564
- exportedConfig: ConfigArtifact;
11581
+ exportedConfig: ConfigArtifact | UnvalidatedConfigArtifact;
11565
11582
  });
11566
11583
  };
11567
11584
  /**
@@ -12191,8 +12208,12 @@ interface RevTurbineLocalRuntimeResolvers {
12191
12208
  * backwards compatibility. Both are optional at the type level, so this is the
12192
12209
  * one place that decides precedence — consumers must not read either key
12193
12210
  * directly or they will disagree about which one wins.
12211
+ *
12212
+ * The returned artifact may be the raw {@link UnvalidatedConfigArtifact} the
12213
+ * caller supplied (e.g. an imported JSON module); the runtime config pipeline
12214
+ * validates it via `configArtifactForRuntime` before evaluation.
12194
12215
  */
12195
- declare function resolveLocalPlaybook(localRuntime?: Pick<RevTurbineLocalRuntimeOptions, 'playbook' | 'exportedConfig'> | null): ConfigArtifact | undefined;
12216
+ declare function resolveLocalPlaybook(localRuntime?: Pick<RevTurbineLocalRuntimeOptions, 'playbook' | 'exportedConfig'> | null): ConfigArtifact | UnvalidatedConfigArtifact | undefined;
12196
12217
  interface RevTurbineLocalRuntimeOptions {
12197
12218
  /**
12198
12219
  * The {@link Playbook} the SDK evaluates against in local-only execution —
@@ -12200,15 +12221,20 @@ interface RevTurbineLocalRuntimeOptions {
12200
12221
  * templates, trial, and theme. Providers and resolvers read this to hydrate
12201
12222
  * domain state without a server.
12202
12223
  *
12203
- * Typically distributed as `playbook.json`.
12224
+ * Typically distributed as `revturbine.playbook.json`. Accepts the artifact
12225
+ * either as the typed {@link ConfigArtifact} or as raw parsed JSON
12226
+ * ({@link UnvalidatedConfigArtifact}) — `import playbook from
12227
+ * './revturbine.playbook.json'` passes `tsc --strict` directly, no cast
12228
+ * needed; the SDK validates the shape at init and fails fast on a malformed
12229
+ * artifact.
12204
12230
  */
12205
- playbook?: ConfigArtifact;
12231
+ playbook?: ConfigArtifact | UnvalidatedConfigArtifact;
12206
12232
  /**
12207
12233
  * @deprecated Legacy alias for {@link RevTurbineLocalRuntimeOptions.playbook}.
12208
12234
  * Still fully supported — pass either one. When both are supplied `playbook`
12209
12235
  * wins. Prefer `playbook`: it matches the canonical type name.
12210
12236
  */
12211
- exportedConfig?: ConfigArtifact;
12237
+ exportedConfig?: ConfigArtifact | UnvalidatedConfigArtifact;
12212
12238
  /** Optional static placements dataset used by the SDK's built-in local resolver. */
12213
12239
  placements?: LocalPlacementDataset;
12214
12240
  /**
@@ -21032,23 +21058,6 @@ interface PostHogIntegrationOptions extends PostHogAnalyticsProviderOptions {
21032
21058
  */
21033
21059
  declare function createPostHogIntegration(options: PostHogIntegrationOptions): EventConsumerProvider;
21034
21060
 
21035
- /**
21036
- * Register all built-in slot types on the given registry.
21037
- *
21038
- * Built-in types cover the core surface types:
21039
- * - banner → BannerSlot (full-width top/bottom)
21040
- * - modal → ModalSlot (overlay dialog, optional/blocking)
21041
- * - in_page → InPageSlot (card/embed in page flow)
21042
- * - toast → ToastSlot (ephemeral notification)
21043
- * - button → ButtonSlot (nav bar / CTA button)
21044
- * - full_page → FullPageSlot (dedicated managed page)
21045
- * - email/sms/push → channel previews (static out-of-band mocks)
21046
- *
21047
- * Additional specialized types registered as in_page variants:
21048
- * - quota_meter → QuotaMeterSlot (usage meter + upgrade CTA)
21049
- */
21050
- declare function registerBuiltinSlotTypes(registry: PlacementTypeRegistry): void;
21051
-
21052
21061
  /**
21053
21062
  * Pre-defined surface template ID sets.
21054
21063
  *
@@ -21617,6 +21626,23 @@ declare function registerBuiltinSnoozeResolver(snooze: (outputId: string, second
21617
21626
  */
21618
21627
  declare function dispatchCtaClick(uiPath: PlacementUiPath, context: CtaResolverContext, resolvers: CtaResolverRegistry, fallback?: (uiPath: PlacementUiPath) => void): boolean;
21619
21628
 
21629
+ /**
21630
+ * Register all built-in slot types on the given registry.
21631
+ *
21632
+ * Built-in types cover the core surface types:
21633
+ * - banner → BannerSlot (full-width top/bottom)
21634
+ * - modal → ModalSlot (overlay dialog, optional/blocking)
21635
+ * - in_page → InPageSlot (card/embed in page flow)
21636
+ * - toast → ToastSlot (ephemeral notification)
21637
+ * - button → ButtonSlot (nav bar / CTA button)
21638
+ * - full_page → FullPageSlot (dedicated managed page)
21639
+ * - email/sms/push → channel previews (static out-of-band mocks)
21640
+ *
21641
+ * Additional specialized types registered as in_page variants:
21642
+ * - quota_meter → QuotaMeterSlot (usage meter + upgrade CTA)
21643
+ */
21644
+ declare function registerBuiltinSlotTypes(registry: PlacementTypeRegistry): void;
21645
+
21620
21646
  /**
21621
21647
  * Props for {@link BannerSlot}.
21622
21648
  * Extends {@link PlacementSlotProps} with banner-specific options.
@@ -22950,4 +22976,4 @@ declare function RevTurbineThemeProvider({ theme, children }: RevTurbineThemePro
22950
22976
  declare function useRevTurbineTheme(): RevTurbineTheme;
22951
22977
 
22952
22978
  export { AccessGateSurfaceSlot, AddOnSchema, AddOnVariationSchema, AgentConnectorSlot, AlertSchema, AnchorFields, ApiKeySchema, ApiKeyStatusSchema, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BannerFrame, BannerSlot, BannerSurface, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, ButtonSlot, ButtonSurface, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, CliSlot, ClientContextSchema, ClientSafe, CohortMonthSchema, CompactCircularGauge, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CreditBalanceSlot, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CtaResolverRegistry, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_BRANDING, DEFAULT_THEME, DataClassification, DecisionEngine, DecisionLogSchema, DecisionOnly, DescriptionField, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EnforcementActionSchema, EnforcementModeSchema, EngagementArea, 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, FixedSurfaceSlot, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FullPageSlot, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, AccessGateSurfaceSlot as Gate, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, InPageSlot, InPageSurface, IngestedEventSchema, InlineCardPlacement, InlineEmbedSlot, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MessageSurfaceSlot, MetadataField, MeteringConfigSchema, ModalFrame, ModalSlot, ModalSurface, NameField, NullableDatetimeField, OnboardingChecklistSchema, OnboardingStateSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, 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, PlacementVariantSchema, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, PlaybookSchema, PlaybookStrictSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationRecordSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, 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, 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, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StudioSurfaceTypeSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotComponent, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TelemetryScope, TelemetryScopeContext, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, ToastSlot, ToastSurface, TooltipSlot, Track, TrackEventSchema, TrackIngestBatchSchema, TrackOnView, TreatmentInteractionInputSchema, TreatmentInteractionTypeSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserProfile, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VersionFields, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, analyticsPaths, applyValueMaps, bridgeUiPathResolversIntoRegistry, buildControlPlaneEvent, categorizeActionError, 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, derivePlacementPersonalizationTokens, deriveReverseTrialGrants, dispatchCtaClick, entitlementPaths, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, getDefaultCtaResolverRegistry, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isBrowser, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, registerBuiltinSlotTypes, registerBuiltinSnoozeResolver, registerCtaResolver, requireSchemaFacets, resetDefaultCtaResolverRegistry, resetDefaultRegistry, resolveBranding, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolveSessionStorage, resolveTokens, runtimePaths, schemaDeprecation, schemaFacets, scopesSubsetOfRole, segmentPaths, settingsPaths, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unregisterCtaResolver, useCan, useEntitlement, useGatedAction, usePlacement, usePlacementPersonalization, useRevTurbine, useRevTurbineTheme, useSurfaceSlot, useTelemetryProps, useTelemetryScope, useTrack, useTrackedAction, useUsageSnapshot, userContextPaths, validatePlacementThresholdWarnings };
22953
- export type { AccessGateCheck, AccessGateSurfaceSlotProps, ActionErrorCategory, AdapterBaseOptions, AddOn, AddOnVariation, AgentConnectorSlotProps, Alert, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsProviderOptions, AnyDomainProvider, ApiKey, ApiKeyStatus, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BannerFrameProps, BannerSlotProps, BannerSurfaceProps, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, ButtonSlotProps, ButtonSurfaceProps, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, CliSlotProps, ClientContext, CohortMonth, CompactCircularGaugeProps, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CreditBalanceSlotProps, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, CtaResolver, CtaResolverContext, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DecisionLog, DeriveTrialStatusInput, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DriftReport, EnforcementAction, EnforcementMode, EngagementAreaProps, 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, Playbook as ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FixedSurfaceSlotProps, FlagValueType, FreeTrialRule, FreeTrialSettings, FullPageSlotProps, FunnelStep, AccessGateSurfaceSlotProps as GateProps, GatedAction, IdentifyContextInput, Identity, IdentityDeclaration, InPageSlotProps, InPageSurfaceProps, IngestWriteScope, IngestedEvent, InlineCardPlacementProps, InlineEmbedSlotProps, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MessageSurfaceSlotProps, MessageSurfaceSlotRef, MessageTriggerType, MeteringConfig, ModalFrameProps, ModalLayout, ModalSlotProps, ModalSurfaceProps, OnboardingChecklist, OnboardingState, 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, 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, QuotaMeterFrameProps, QuotaMeterSlotProps, SurfaceSlotComponentProps as RTSlotProps, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, Playbook as RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineProviderProps, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, 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, ToastSurfaceProps, TooltipSlotProps, TrackEvent, TrackFn, TrackIngestBatch, TrackOnViewProps, TrackOptions, TrackProps, TrackPurpose, TrackedAction, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionInput, TreatmentInteractionType, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UseCanResult, UseEntitlementOptions, UseEntitlementResult, UsePlacementOptions, UsePlacementPersonalizationOptions, UsePlacementResult, UseSurfaceSlotOptions, UseSurfaceSlotResult, UseUsageSnapshotResult, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserProfileProps, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, WebhookEventLog, WebhookEventSource, WebhookEventStatus };
22979
+ export type { AccessGateCheck, AccessGateSurfaceSlotProps, ActionErrorCategory, AdapterBaseOptions, AddOn, AddOnVariation, AgentConnectorSlotProps, Alert, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsProviderOptions, AnyDomainProvider, ApiKey, ApiKeyStatus, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BannerFrameProps, BannerSlotProps, BannerSurfaceProps, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, ButtonSlotProps, ButtonSurfaceProps, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, CliSlotProps, ClientContext, CohortMonth, CompactCircularGaugeProps, ConfigArtifact, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CreditBalanceSlotProps, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, CtaResolver, CtaResolverContext, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DecisionLog, DeriveTrialStatusInput, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DriftReport, EnforcementAction, EnforcementMode, EngagementAreaProps, 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, Playbook as ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FixedSurfaceSlotProps, FlagValueType, FreeTrialRule, FreeTrialSettings, FullPageSlotProps, FunnelStep, AccessGateSurfaceSlotProps as GateProps, GatedAction, IdentifyContextInput, Identity, IdentityDeclaration, InPageSlotProps, InPageSurfaceProps, IngestWriteScope, IngestedEvent, InlineCardPlacementProps, InlineEmbedSlotProps, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MessageSurfaceSlotProps, MessageSurfaceSlotRef, MessageTriggerType, MeteringConfig, ModalFrameProps, ModalLayout, ModalSlotProps, ModalSurfaceProps, OnboardingChecklist, OnboardingState, 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, 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, QuotaMeterFrameProps, QuotaMeterSlotProps, SurfaceSlotComponentProps as RTSlotProps, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, Playbook as RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineProviderProps, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentDimension, SegmentProvider, SegmentProviderState, SegmentValue, SemanticEvent, 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, ToastSurfaceProps, TooltipSlotProps, TrackEvent, TrackFn, TrackIngestBatch, TrackOnViewProps, TrackOptions, TrackProps, TrackPurpose, TrackedAction, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionInput, TreatmentInteractionType, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UseCanResult, UseEntitlementOptions, UseEntitlementResult, UsePlacementOptions, UsePlacementPersonalizationOptions, UsePlacementResult, UseSurfaceSlotOptions, UseSurfaceSlotResult, UseUsageSnapshotResult, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserProfileProps, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, WebhookEventLog, WebhookEventSource, WebhookEventStatus };