@revturbine/sdk 0.2.61 → 0.2.62

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.
@@ -11665,7 +11665,15 @@ interface RevTurbineContextPolicy {
11665
11665
  /**
11666
11666
  * Feature flags for placement pipeline behavior that may alter decision semantics.
11667
11667
  *
11668
- * All flags default to `false` to preserve backward compatibility.
11668
+ * Each flag defaults to what the loaded Playbook authors (plan 174 TASK-2 /
11669
+ * F-72): authored payload caps (`caps.max_per_period` / `caps.cooldown_days`
11670
+ * or a `remind_later_minutes` window) turn on client caps enforcement; a
11671
+ * `gated`-category placement turns on auto gated placement; a
11672
+ * `trials`-category placement turns on trial auto-triggers. A Playbook that
11673
+ * authors none of these leaves every flag `false` — existing integrations
11674
+ * whose config authors nothing are unchanged. An explicit
11675
+ * {@link RevTurbineInitOptions.placementBehavior} value (true or false)
11676
+ * always overrides the derived default.
11669
11677
  */
11670
11678
  interface RevTurbinePlacementBehaviorFlags {
11671
11679
  /** Enable client-side payload cap enforcement (max-per-period + cooldown precedence). */
@@ -11911,10 +11919,13 @@ interface RevTurbineInitOptions {
11911
11919
  page?: RevTurbinePageContext;
11912
11920
  contextPolicy?: RevTurbineContextPolicy;
11913
11921
  /**
11914
- * Opt-in flags for placement decision behavior changes.
11922
+ * Explicit overrides for placement decision behavior flags.
11915
11923
  *
11916
- * Defaults are conservative (`false`) so existing integrations do not change behavior
11917
- * until explicitly enabled.
11924
+ * When omitted, each flag derives from what the loaded Playbook authors —
11925
+ * caps authored → enforcement on; gated placements authored → auto-gating
11926
+ * on; trial placements authored → trial triggers on (plan 174 TASK-2 /
11927
+ * F-72). Set a flag here (true or false) to pin it regardless of the
11928
+ * Playbook.
11918
11929
  */
11919
11930
  placementBehavior?: Partial<RevTurbinePlacementBehaviorFlags>;
11920
11931
  extension?: {
@@ -12426,7 +12437,8 @@ declare class RevTurbineCustomerSdk {
12426
12437
  private readonly mode;
12427
12438
  private readonly policy;
12428
12439
  private readonly extensionEnabled;
12429
- private readonly placementBehavior;
12440
+ private readonly placementBehaviorOverrides;
12441
+ private derivedPlacementBehaviorMemo;
12430
12442
  private readonly providerFailureSlotBehavior;
12431
12443
  private readonly uiPathResolvers;
12432
12444
  private unbridgeUiPathCtaResolvers;
@@ -12491,6 +12503,15 @@ declare class RevTurbineCustomerSdk {
12491
12503
  private resolveConfigProvider;
12492
12504
  private refreshExportedConfigSnapshot;
12493
12505
  private getConfiguredExportedConfig;
12506
+ /**
12507
+ * Effective placement-behavior flags: an explicit init override wins;
12508
+ * otherwise each flag derives from what the loaded Playbook authors
12509
+ * (plan 174 TASK-2 / F-72). Resolved at read time so hosted modes pick up
12510
+ * the derivation once the config snapshot loads — every consumer reads
12511
+ * through this one resolver.
12512
+ */
12513
+ private get placementBehavior();
12514
+ private derivePlacementBehaviorFromPlaybook;
12494
12515
  private rebuildSegmentPredicateFieldIndex;
12495
12516
  /**
12496
12517
  * The config-driven placement resolver (core `createStaticPlacementResolver`