@revturbine/sdk 0.11.2 → 0.11.4
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/CHANGELOG.md +166 -0
- package/dist/headless.d.ts +210 -2
- package/dist/headless.js +2 -2
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +210 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/web-sdk/controllers.d.ts +96 -1
- package/dist/types/web-sdk/controllers.d.ts.map +1 -1
- package/dist/types/web-sdk/customer-side.d.ts +89 -0
- package/dist/types/web-sdk/customer-side.d.ts.map +1 -1
- package/dist/types/web-sdk/react/useEntitlement.d.ts.map +1 -1
- package/dist/types/web-sdk/react/usePlacement.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -47,6 +47,172 @@ also require a changelog entry.
|
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
|
|
50
|
+
## 0.11.4
|
|
51
|
+
|
|
52
|
+
### The treatment-interaction wire record now carries `rule_handle` (BL-0200)
|
|
53
|
+
|
|
54
|
+
**What changed.** `flushInteractionQueue`'s projection onto
|
|
55
|
+
`POST /api/events/interactions` now includes `rule_handle`, taken from the same
|
|
56
|
+
`ruleHandle` on `RevTurbineTreatmentInteractionInput` that 0.11.3 began stamping
|
|
57
|
+
on the `placement_interaction` clickstream event.
|
|
58
|
+
|
|
59
|
+
0.11.3 deliberately kept it off this record, and #530 asserted the omission with
|
|
60
|
+
a "never reaches the treatment-interaction wire record" test. The reasoning was
|
|
61
|
+
that the clickstream carries payload fields inside a JSON column — readable the
|
|
62
|
+
moment a producer sends them — while this record is column-shaped
|
|
63
|
+
(`placement_presentations`) and a new key needed a datasource migration.
|
|
64
|
+
|
|
65
|
+
The migration has since landed (revturbine-web ledger 015 added
|
|
66
|
+
`placement_exposure_attribution.rule_handle`), and the field is now declared on
|
|
67
|
+
`TreatmentInteractionInputSchema` (`revturbine-scaffold#394`, published as
|
|
68
|
+
`@revt-eng/*` v0.1.342). Sending it lets the app record the rule an exposure was
|
|
69
|
+
**decided by**, on the base exposure row, instead of waiting for the attribution
|
|
70
|
+
worker to reconstruct one from the clickstream when a conversion lands — which
|
|
71
|
+
is what makes presentation-grain analytics cuts per rule honest rather than
|
|
72
|
+
computed over the converted subset.
|
|
73
|
+
|
|
74
|
+
**Nothing to change in your integration.** `ruleHandle` was already public and
|
|
75
|
+
already populated by every `PlacementController` path; this only widens where the
|
|
76
|
+
value is sent. Spread, not set: the key is **absent** when no decision was in
|
|
77
|
+
scope. The contract accepts an explicit `null` for "a rule was selected and none
|
|
78
|
+
matched", but the SDK cannot distinguish that from "no decision in scope" —
|
|
79
|
+
`PlacementOutput.rule_id` is simply missing in both — so it asserts neither.
|
|
80
|
+
|
|
81
|
+
**No `@public` surface moved**, hence a patch release.
|
|
82
|
+
|
|
83
|
+
## 0.11.3
|
|
84
|
+
|
|
85
|
+
### `placement_interaction` now carries `rule_handle` (BL-0182)
|
|
86
|
+
|
|
87
|
+
**What changed.** #527 (BL-0062) stamped `rule_handle` at every verdict emit
|
|
88
|
+
site by reading `decision.output.rule_id`, but `placement_interaction` is not
|
|
89
|
+
a lifecycle event and does not spread `placementLifecycleBase` — its
|
|
90
|
+
placement keys are all optional, because a bare `trackTreatmentInteraction`
|
|
91
|
+
caller may supply none of them — so the click between exposure and outcome
|
|
92
|
+
was the one step of the funnel with no rule key. That is the step
|
|
93
|
+
click-through and CTR are computed over: the funnel was sliceable by rule at
|
|
94
|
+
both ends and not in the middle.
|
|
95
|
+
|
|
96
|
+
Five emit sites now reach the same stamped payload: `trackTreatmentInteraction`
|
|
97
|
+
(the projection itself), `PlacementController.trackInteraction`
|
|
98
|
+
(dismiss / remind_me_later / cta_clicked / cta_completed — and therefore every
|
|
99
|
+
React hook and `useSurfaceSlot` / `FixedSurfaceSlot` click handler built on
|
|
100
|
+
it), `PlacementController.fireImpression`, `trackOutputInteraction`
|
|
101
|
+
(output-addressed `convert()` / `dismiss()` / `snooze()`), and the
|
|
102
|
+
server-action `trackResult` resolver.
|
|
103
|
+
|
|
104
|
+
Spread, not set: `rule_handle` is **absent** when no decision was in scope
|
|
105
|
+
(a bare `trackTreatmentInteraction` call with no placement context), and
|
|
106
|
+
`null` on the wire means "a rule was selected and none matched" — conflating
|
|
107
|
+
the two would poison the slice's coverage numbers. The unknown-output branch
|
|
108
|
+
of `trackOutputInteraction` stamps nothing on purpose: no decision from this
|
|
109
|
+
SDK produced that output, so there is no rule to name.
|
|
110
|
+
|
|
111
|
+
Companion to `revturbine-scaffold#391`, which added `rule_handle` to the
|
|
112
|
+
`placement_interaction` payload contract and `ruleHandle` to
|
|
113
|
+
`RevTurbineTreatmentInteractionInput` (published as `@revt-eng/*` v0.1.339,
|
|
114
|
+
pinned in this release).
|
|
115
|
+
|
|
116
|
+
**No wire-shape change beyond the new optional field.** `rule_handle` is
|
|
117
|
+
optional-and-nullable on the schema side (#391), which keeps every
|
|
118
|
+
already-deployed SDK out of `quarantineVerdict`. `@public` signatures are
|
|
119
|
+
unchanged (`web-sdk/generated/public-api.json` untouched) and
|
|
120
|
+
`flushInteractionQueue` still maps the treatment-interaction record field by
|
|
121
|
+
field, so `ruleHandle` never reaches a customer webhook.
|
|
122
|
+
|
|
123
|
+
**Python and Rust are unaffected.** Neither port emits events.
|
|
124
|
+
|
|
125
|
+
**Landed in** `0.11.3` (BL-0182, #530).
|
|
126
|
+
|
|
127
|
+
**Fail-closed in** not applicable — additive field, nothing old is rejected.
|
|
128
|
+
|
|
129
|
+
**Proving test:** `web-sdk/customer-side-canonical-interaction.test.ts`.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
### A gate no longer paywalls forever when it loses the cold-start config race (BL-0179)
|
|
134
|
+
|
|
135
|
+
**What changed.** BL-0177 (below) split `config_unavailable` into a transient and
|
|
136
|
+
a terminal state for **placements** and left `checkEntitlement` on the old
|
|
137
|
+
behaviour. So the same cold-start race denied entitlements instead: while the
|
|
138
|
+
Playbook load was in flight, `checkEntitlement` — and therefore `can()`,
|
|
139
|
+
`gate()`, `useCan`, `useEntitlement` and `useGatedAction` — returned the
|
|
140
|
+
fail-closed deny with reason `config_unavailable`, which is indistinguishable
|
|
141
|
+
from a rule denial. A gate mounted before config resolution rendered its paywall
|
|
142
|
+
and never re-evaluated, hiding a feature the user had paid for.
|
|
143
|
+
|
|
144
|
+
The entitlement path now takes the same two-state split:
|
|
145
|
+
|
|
146
|
+
| state | when | behaviour |
|
|
147
|
+
|---|---|---|
|
|
148
|
+
| **transient** | a Playbook load is in flight (`getPlaybookLoadState() === 'loading'`) | `checkEntitlement` waits for it (bounded, 4s) and re-evaluates. If the load outruns that bound, `EntitlementGate` **parks** the deny instead of publishing it — `result` stays `null`, `denied` stays `false`, `isLoading` stays `true`, and **no** `gate_evaluated` is emitted — then re-checks when the load settles, at most twice per cycle. |
|
|
149
|
+
| **terminal** | no config provider is configured, or the load settled without a config | unchanged: fail-CLOSED deny, reason `config_unavailable` in Server mode / `entitlement_not_in_playbook` in local mode, with its `resolution_failure` diagnostic and exactly one `gate_evaluated` carrying the verdict (and its `rule_handle`). |
|
|
150
|
+
|
|
151
|
+
The emission rule is the one worth stating plainly: **exactly one
|
|
152
|
+
`gate_evaluated` per settled verdict, and none for the transient state** — a
|
|
153
|
+
lost race is not an evaluation and must not enter the gate funnel as a denial.
|
|
154
|
+
|
|
155
|
+
**No API, wire or reason-code change.** `@public` signatures are unchanged
|
|
156
|
+
(`web-sdk/generated/public-api.json` is untouched), both reason codes keep their
|
|
157
|
+
meanings, and `tests/reason-contract.json` is unchanged. A `limited`-but-allowed
|
|
158
|
+
result is untouched; the fail-closed contract for terminal unavailability is
|
|
159
|
+
untouched.
|
|
160
|
+
|
|
161
|
+
**Python and Rust are unaffected by design**, for the same reason as BL-0177:
|
|
162
|
+
both take the Playbook as a required constructor argument, do no I/O, and have no
|
|
163
|
+
not-yet-loaded window.
|
|
164
|
+
|
|
165
|
+
**Landed in.** `0.11.3` (BL-0179, #529).
|
|
166
|
+
|
|
167
|
+
**Fail-closed in.** Not applicable — terminal behaviour is unchanged; only the
|
|
168
|
+
transient race is now absorbed.
|
|
169
|
+
|
|
170
|
+
**Proving test.** `web-sdk/react/useCan.config-race.test.tsx` (a gate mounted
|
|
171
|
+
mid-race ends on the rule's verdict, allow and deny) and
|
|
172
|
+
`web-sdk/entitlement-config-race.test.ts` (both states, the emission rule, and
|
|
173
|
+
the bounded post-bound retry for `PlacementController` and `EntitlementGate`,
|
|
174
|
+
reached by injecting a `0` wait bound rather than with fake timers).
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### A slot no longer paints its fallback forever when it loses the cold-start config race (BL-0177)
|
|
179
|
+
|
|
180
|
+
**What changed.** `getPlacementDecision` returns `config_unavailable` when the
|
|
181
|
+
Playbook has not arrived, uncached, specifically so a retry can succeed — but
|
|
182
|
+
nothing retried. `useSurfaceSlot` / `FixedSurfaceSlot` decide once per mount, so
|
|
183
|
+
on a cold `revturbine_server` load, whenever the first decision beat the two-hop
|
|
184
|
+
bootstrap → `/api/sdk/config` chain, the slot rendered its `fallback`
|
|
185
|
+
permanently and every integration had to hand-roll a retry.
|
|
186
|
+
|
|
187
|
+
`config_unavailable` now has two distinct states and the SDK handles each:
|
|
188
|
+
|
|
189
|
+
| state | when | behaviour |
|
|
190
|
+
|---|---|---|
|
|
191
|
+
| **transient** | a Playbook load is in flight | `getPlacementDecision` waits for it (bounded, 4s) and re-resolves. If the load outruns that bound, `PlacementController` re-decides when it settles — at most twice per load cycle. The slot stays in `isLoading` meanwhile and emits **no** `placement_resolved` / `slot_empty`: a lost race is not a resolution and must not enter the funnel as one. |
|
|
192
|
+
| **terminal** | no config provider is configured, or the load settled without a config | unchanged from before: the decision is `config_unavailable`, `visible: false`, uncached, with the resolution-failure diagnostic and the lifecycle + slot events. Bounded retries mean it settles rather than spinning. |
|
|
193
|
+
|
|
194
|
+
**No API, wire or reason-code change.** `config_unavailable` is still the reason
|
|
195
|
+
code, the decision shape is untouched, and `tests/reason-contract.json` is
|
|
196
|
+
unchanged. Customer code that already hand-rolls a retry keeps working — it is
|
|
197
|
+
now redundant, not wrong.
|
|
198
|
+
|
|
199
|
+
**Python and Rust are unaffected by design.** Both ports take the Playbook as a
|
|
200
|
+
required constructor argument and raise on a missing or malformed one
|
|
201
|
+
(`server-python/src/revturbine/sdk.py` `__init__`, `server-rust/src/sdk.rs`
|
|
202
|
+
`new`), perform no I/O, and never emit `config_unavailable` — there is no
|
|
203
|
+
not-yet-loaded window to retry. This is a browser/hosted-mode state only.
|
|
204
|
+
|
|
205
|
+
**Landed in.** `0.11.3` (BL-0177, #528).
|
|
206
|
+
|
|
207
|
+
**Fail-closed in.** Not applicable — the terminal behaviour is unchanged; only
|
|
208
|
+
the transient race is now absorbed.
|
|
209
|
+
|
|
210
|
+
**Proving test.** `web-sdk/placements/FixedSurfaceSlot.config-race.test.tsx`
|
|
211
|
+
(both states), plus `e2e/journey.transport.spec.ts`, whose two hand-rolled retry
|
|
212
|
+
loops were deleted — a retry loop reappearing there is the regression signal.
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
50
216
|
## 0.11.1
|
|
51
217
|
|
|
52
218
|
### The generated schema *types* gained their `Playbook*` names (BL-0165)
|
package/dist/headless.d.ts
CHANGED
|
@@ -7103,6 +7103,7 @@ declare const TreatmentInteractionInputSchema: z.ZodObject<{
|
|
|
7103
7103
|
message_block_id: z.ZodOptional<z.ZodString>;
|
|
7104
7104
|
experiment_id: z.ZodOptional<z.ZodString>;
|
|
7105
7105
|
variant_key: z.ZodOptional<z.ZodString>;
|
|
7106
|
+
rule_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7106
7107
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
7107
7108
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7108
7109
|
}, z.core.$strip>;
|
|
@@ -7144,6 +7145,7 @@ declare const TreatmentInteractionBatchSchema: z.ZodArray<z.ZodObject<{
|
|
|
7144
7145
|
message_block_id: z.ZodOptional<z.ZodString>;
|
|
7145
7146
|
experiment_id: z.ZodOptional<z.ZodString>;
|
|
7146
7147
|
variant_key: z.ZodOptional<z.ZodString>;
|
|
7148
|
+
rule_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7147
7149
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
7148
7150
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7149
7151
|
}, z.core.$strip>>;
|
|
@@ -7173,6 +7175,7 @@ declare const TreatmentInteractionRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
7173
7175
|
message_block_id: z.ZodOptional<z.ZodString>;
|
|
7174
7176
|
experiment_id: z.ZodOptional<z.ZodString>;
|
|
7175
7177
|
variant_key: z.ZodOptional<z.ZodString>;
|
|
7178
|
+
rule_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7176
7179
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
7177
7180
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7178
7181
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
@@ -7196,6 +7199,7 @@ declare const TreatmentInteractionRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
7196
7199
|
message_block_id: z.ZodOptional<z.ZodString>;
|
|
7197
7200
|
experiment_id: z.ZodOptional<z.ZodString>;
|
|
7198
7201
|
variant_key: z.ZodOptional<z.ZodString>;
|
|
7202
|
+
rule_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7199
7203
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
7200
7204
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7201
7205
|
}, z.core.$strip>>]>;
|
|
@@ -8614,6 +8618,7 @@ declare const EVENT_PAYLOAD_CONTRACTS: {
|
|
|
8614
8618
|
action_success: z.ZodOptional<z.ZodBoolean>;
|
|
8615
8619
|
interaction_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8616
8620
|
remind_after_seconds: z.ZodOptional<z.ZodNumber>;
|
|
8621
|
+
rule_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8617
8622
|
}, z.core.$loose>;
|
|
8618
8623
|
readonly identity: readonly ["event_id"];
|
|
8619
8624
|
};
|
|
@@ -17161,6 +17166,22 @@ interface RevTurbineTreatmentInteractionInput {
|
|
|
17161
17166
|
experimentId?: string;
|
|
17162
17167
|
/** Variant assigned by that experiment → wire `variant_key`. */
|
|
17163
17168
|
variantKey?: string;
|
|
17169
|
+
/**
|
|
17170
|
+
* The placement rule that produced the treatment being interacted with —
|
|
17171
|
+
* `PlacementOutput.rule_id` — projected onto the `placement_interaction`
|
|
17172
|
+
* clickstream payload as `rule_handle` (BL-0182).
|
|
17173
|
+
*
|
|
17174
|
+
* Unlike its neighbours this does NOT reach the wire
|
|
17175
|
+
* `TreatmentInteractionInputSchema` / `placement_presentations`: that path is
|
|
17176
|
+
* column-shaped and would need a datasource migration. The clickstream
|
|
17177
|
+
* carries payload fields inside a JSON column, so the rule slice for
|
|
17178
|
+
* interactions is readable the moment producers send it.
|
|
17179
|
+
*
|
|
17180
|
+
* Omitted, never sent empty, when no decision is in scope — a bare
|
|
17181
|
+
* `trackTreatmentInteraction` caller supplies no rule, and absence is what
|
|
17182
|
+
* keeps the slice's coverage honest.
|
|
17183
|
+
*/
|
|
17184
|
+
ruleHandle?: string;
|
|
17164
17185
|
metadata?: Record<string, unknown>;
|
|
17165
17186
|
}
|
|
17166
17187
|
interface InteractionState {
|
|
@@ -19651,6 +19672,16 @@ declare const DEFAULT_HOSTED_ENDPOINT = "https://revturbine.com/app";
|
|
|
19651
19672
|
* passes `'react'`, everything else is a snippet.
|
|
19652
19673
|
*/
|
|
19653
19674
|
declare const DEFAULT_SDK_MODE: RevTurbineSdkMode;
|
|
19675
|
+
/**
|
|
19676
|
+
* Where the Playbook config load stands (BL-0177).
|
|
19677
|
+
*
|
|
19678
|
+
* `config_unavailable` used to be a single undifferentiated outcome, so a slot
|
|
19679
|
+
* that lost the race against a cold config fetch could not tell "wait, it is
|
|
19680
|
+
* coming" from "nothing is coming" and rendered its fallback permanently. This
|
|
19681
|
+
* is the distinction: `loading` makes a `config_unavailable` decision
|
|
19682
|
+
* retriable, `unavailable` makes it terminal for now.
|
|
19683
|
+
*/
|
|
19684
|
+
type RevTurbinePlaybookLoadState = 'ready' | 'loading' | 'unavailable';
|
|
19654
19685
|
|
|
19655
19686
|
/**
|
|
19656
19687
|
* Convenience input type for identify / setUserContext calls.
|
|
@@ -21126,6 +21157,10 @@ declare class RevTurbineCustomerSdk {
|
|
|
21126
21157
|
private apiBranding?;
|
|
21127
21158
|
private cachedPlacementResolver?;
|
|
21128
21159
|
private cachedPlacementResolverConfig?;
|
|
21160
|
+
private playbookLoadInFlight;
|
|
21161
|
+
private playbookLoadAttempted;
|
|
21162
|
+
private readonly playbookSettleListeners;
|
|
21163
|
+
private playbookWaitMs;
|
|
21129
21164
|
private sdkDisabledByProviderFailure;
|
|
21130
21165
|
private sdkDisabledReason?;
|
|
21131
21166
|
readonly providerRegistry: DomainProviderRegistry;
|
|
@@ -21135,6 +21170,58 @@ declare class RevTurbineCustomerSdk {
|
|
|
21135
21170
|
private isLocalOnlyMode;
|
|
21136
21171
|
private resolveConfigProvider;
|
|
21137
21172
|
private refreshPlaybookSnapshot;
|
|
21173
|
+
/**
|
|
21174
|
+
* Where the Playbook load stands right now (BL-0177).
|
|
21175
|
+
*
|
|
21176
|
+
* - `ready` — a config is loaded; decisions resolve locally.
|
|
21177
|
+
* - `loading` — a load is in flight (or none has been attempted yet) and a
|
|
21178
|
+
* later decision can succeed. A `config_unavailable` seen in this state is
|
|
21179
|
+
* TRANSIENT.
|
|
21180
|
+
* - `unavailable` — no config provider is configured, or the last load
|
|
21181
|
+
* settled without one. A `config_unavailable` seen in this state is
|
|
21182
|
+
* TERMINAL for now: nothing is pending, so nothing will re-decide on its
|
|
21183
|
+
* own until something kicks another refresh.
|
|
21184
|
+
*
|
|
21185
|
+
* @internal
|
|
21186
|
+
*/
|
|
21187
|
+
getPlaybookLoadState(): RevTurbinePlaybookLoadState;
|
|
21188
|
+
/**
|
|
21189
|
+
* Resolve once the in-flight Playbook load settles, or once `timeoutMs`
|
|
21190
|
+
* elapses — whichever comes first — and report the state then (BL-0177).
|
|
21191
|
+
*
|
|
21192
|
+
* Never rejects and never waits when nothing is pending, so a caller can
|
|
21193
|
+
* always await it before failing closed.
|
|
21194
|
+
*
|
|
21195
|
+
* @internal
|
|
21196
|
+
*/
|
|
21197
|
+
whenPlaybookSettled(timeoutMs?: number): Promise<RevTurbinePlaybookLoadState>;
|
|
21198
|
+
/**
|
|
21199
|
+
* Subscribe to Playbook load attempts settling (BL-0177).
|
|
21200
|
+
*
|
|
21201
|
+
* Fires after every attempt, whether it produced a config or not, so a
|
|
21202
|
+
* subscriber holding a `config_unavailable` decision can re-decide exactly
|
|
21203
|
+
* once per attempt rather than polling. Returns an unsubscribe function.
|
|
21204
|
+
*
|
|
21205
|
+
* @internal
|
|
21206
|
+
*/
|
|
21207
|
+
/**
|
|
21208
|
+
* Override how long {@link whenPlaybookSettled} waits for an in-flight load
|
|
21209
|
+
* (BL-0179) — the seam that makes the post-bound retry path testable.
|
|
21210
|
+
*
|
|
21211
|
+
* The retry path only runs when a load OUTRUNS the wait, which at the 4s
|
|
21212
|
+
* default means either a 4s test or fake timers, and fake timers fight
|
|
21213
|
+
* React's `act()` (BL-0177 hit exactly this and shipped that path untested).
|
|
21214
|
+
* Injecting `0` makes every load outrun the bound deterministically, with
|
|
21215
|
+
* real timers.
|
|
21216
|
+
*
|
|
21217
|
+
* Not part of the supported surface: production code has no reason to move
|
|
21218
|
+
* this, and nothing persists it.
|
|
21219
|
+
*
|
|
21220
|
+
* @internal
|
|
21221
|
+
*/
|
|
21222
|
+
setPlaybookWaitBoundMs(ms: number): void;
|
|
21223
|
+
onPlaybookSettled(listener: () => void): () => void;
|
|
21224
|
+
private notifyPlaybookSettled;
|
|
21138
21225
|
private getConfiguredPlaybook;
|
|
21139
21226
|
/**
|
|
21140
21227
|
* Effective placement-behavior flags: an explicit init override wins;
|
|
@@ -21908,6 +21995,15 @@ declare class RevTurbineCustomerSdk {
|
|
|
21908
21995
|
*/
|
|
21909
21996
|
private gateDecisionByCaps;
|
|
21910
21997
|
private normalizeDecisionFromResponse;
|
|
21998
|
+
/**
|
|
21999
|
+
* Run the config-driven resolver and apply the standard post-passes —
|
|
22000
|
+
* price tokens, interaction suppression, presentation caps, cache write.
|
|
22001
|
+
*
|
|
22002
|
+
* Extracted so the first-pass resolve and the post-config-wait resolve
|
|
22003
|
+
* (BL-0177) cannot drift apart: a second copy of this sequence is how a
|
|
22004
|
+
* retry ends up skipping a cap tick or a cache write.
|
|
22005
|
+
*/
|
|
22006
|
+
private resolveDecisionLocally;
|
|
21911
22007
|
/**
|
|
21912
22008
|
* Resolve the placement decision for a registered surface slot — the
|
|
21913
22009
|
* evaluated payload (or lack of one), its reason, and the metadata needed
|
|
@@ -22035,11 +22131,25 @@ declare class RevTurbineCustomerSdk {
|
|
|
22035
22131
|
* @public
|
|
22036
22132
|
*/
|
|
22037
22133
|
getPlacement(config: RevTurbinePlacementRequestConfig): Promise<PlacementOutput | null>;
|
|
22134
|
+
/**
|
|
22135
|
+
* Evaluate one handle against the configured Playbook and record the result.
|
|
22136
|
+
*
|
|
22137
|
+
* Extracted so the first-pass evaluation and the post-config-wait evaluation
|
|
22138
|
+
* (BL-0179) cannot drift apart: a second copy of this sequence is how a
|
|
22139
|
+
* re-evaluation ends up skipping the local cache write or the persist.
|
|
22140
|
+
* Returns `null` when no Playbook rule covers the handle — which, before a
|
|
22141
|
+
* config has loaded, is every handle.
|
|
22142
|
+
*/
|
|
22143
|
+
private resolveEntitlementLocally;
|
|
22038
22144
|
/**
|
|
22039
22145
|
* Evaluate a single entitlement handle for the active user, purely from the
|
|
22040
22146
|
* loaded UserContext and Playbook. The advertised {@link can} alias wraps
|
|
22041
22147
|
* this with the friendly verb name.
|
|
22042
22148
|
*
|
|
22149
|
+
* A check that lands before the Playbook does waits out the in-flight load,
|
|
22150
|
+
* bounded, and re-evaluates (BL-0179); it fails CLOSED only once nothing more
|
|
22151
|
+
* is coming. See {@link RevTurbinePlaybookLoadState}.
|
|
22152
|
+
*
|
|
22043
22153
|
* @public
|
|
22044
22154
|
*/
|
|
22045
22155
|
checkEntitlement(handle: string, context?: RevTurbineEntitlementContext): Promise<EntitlementResult>;
|
|
@@ -22784,7 +22894,40 @@ declare class PlacementController {
|
|
|
22784
22894
|
private _exposed;
|
|
22785
22895
|
private _exposureBasis;
|
|
22786
22896
|
private _lastSlotKey;
|
|
22897
|
+
private _awaitingConfig;
|
|
22898
|
+
private _configRetries;
|
|
22899
|
+
private _playbookUnsubscribe;
|
|
22787
22900
|
constructor(sdk: RevTurbineCustomerSdk, options: PlacementControllerOptions);
|
|
22901
|
+
/**
|
|
22902
|
+
* Stop listening for Playbook loads. Idempotent; call it when the owning
|
|
22903
|
+
* component unmounts (`usePlacement` does).
|
|
22904
|
+
*/
|
|
22905
|
+
dispose(): void;
|
|
22906
|
+
/**
|
|
22907
|
+
* Is this decision a race against a Playbook load rather than a verdict?
|
|
22908
|
+
*
|
|
22909
|
+
* `config_unavailable` carries both meanings (see
|
|
22910
|
+
* `RevTurbinePlaybookLoadState`). Only the transient one is retried, and only
|
|
22911
|
+
* while the retry budget holds — a provider that never produces a config must
|
|
22912
|
+
* settle into the honest fallback instead of re-deciding forever.
|
|
22913
|
+
*/
|
|
22914
|
+
private isTransientConfigMiss;
|
|
22915
|
+
/**
|
|
22916
|
+
* Re-decide once a Playbook load attempt settles, if the decision we are
|
|
22917
|
+
* holding was only a config race and a config is now available.
|
|
22918
|
+
*
|
|
22919
|
+
* Bounded three ways: only while the held decision says
|
|
22920
|
+
* `config_unavailable`, only when the settled state is `ready`, and never
|
|
22921
|
+
* more than {@link MAX_CONFIG_RETRIES} times per load cycle. A successful
|
|
22922
|
+
* re-decide clears the reason, which ends the cycle on its own.
|
|
22923
|
+
*/
|
|
22924
|
+
private handlePlaybookSettled;
|
|
22925
|
+
/**
|
|
22926
|
+
* Give up waiting: publish the `config_unavailable` decision as the answer,
|
|
22927
|
+
* with the lifecycle + slot diagnostics that were withheld while a retry was
|
|
22928
|
+
* still expected.
|
|
22929
|
+
*/
|
|
22930
|
+
private finalizeAwaitedConfig;
|
|
22788
22931
|
/** Current state snapshot. */
|
|
22789
22932
|
get state(): PlacementControllerState;
|
|
22790
22933
|
/** The configured exposure mode (plan 144 TASK-11). Defaults to `legacy_resolution`. */
|
|
@@ -22974,7 +23117,15 @@ declare class EntitlementGate {
|
|
|
22974
23117
|
private _result;
|
|
22975
23118
|
private _gatedPlacement;
|
|
22976
23119
|
private _lastEvaluatedKey;
|
|
23120
|
+
private _awaitedResult;
|
|
23121
|
+
private _configRetries;
|
|
23122
|
+
private _playbookUnsubscribe;
|
|
22977
23123
|
constructor(sdk: RevTurbineCustomerSdk, options: EntitlementGateOptions);
|
|
23124
|
+
/**
|
|
23125
|
+
* Stop listening for Playbook loads. Idempotent; call it when the owning
|
|
23126
|
+
* component unmounts (`useEntitlement` does).
|
|
23127
|
+
*/
|
|
23128
|
+
dispose(): void;
|
|
22978
23129
|
/** Current state snapshot. */
|
|
22979
23130
|
get state(): EntitlementGateState;
|
|
22980
23131
|
/** Convenience: `true` when the entitlement is allowed. */
|
|
@@ -22997,8 +23148,62 @@ declare class EntitlementGate {
|
|
|
22997
23148
|
* also resolves a gated placement.
|
|
22998
23149
|
*/
|
|
22999
23150
|
check(): Promise<EntitlementResult | null>;
|
|
23000
|
-
/**
|
|
23151
|
+
/**
|
|
23152
|
+
* Re-run the entitlement check (alias of {@link check}).
|
|
23153
|
+
*
|
|
23154
|
+
* An explicit recheck is a fresh cycle, so the config-race budget resets with
|
|
23155
|
+
* it (BL-0179) — the caller asking again is not the SDK retrying itself.
|
|
23156
|
+
*/
|
|
23001
23157
|
recheck(): Promise<EntitlementResult | null>;
|
|
23158
|
+
/**
|
|
23159
|
+
* Publish a settled entitlement result: the state, the passive telemetry, and
|
|
23160
|
+
* the auto-gated placement.
|
|
23161
|
+
*
|
|
23162
|
+
* Extracted so the first-pass check and the post-config-wait finalize
|
|
23163
|
+
* (BL-0179) cannot drift apart — a second copy is how a re-check ends up
|
|
23164
|
+
* skipping the `gate_evaluated` emit or the `autoGate` resolution.
|
|
23165
|
+
*/
|
|
23166
|
+
private publishResult;
|
|
23167
|
+
/**
|
|
23168
|
+
* Is this deny a race against a Playbook load rather than a verdict?
|
|
23169
|
+
*
|
|
23170
|
+
* Two conditions, both required. The reason must name a config miss —
|
|
23171
|
+
* `config_unavailable` in Server mode, `entitlement_not_in_playbook` in
|
|
23172
|
+
* local mode, which is the same fact under a mode-specific name — AND the
|
|
23173
|
+
* load state must still be `loading`. Once a Playbook is loaded the state is
|
|
23174
|
+
* `ready` and `entitlement_not_in_playbook` is the honest terminal verdict it
|
|
23175
|
+
* has always been; this never reinterprets it.
|
|
23176
|
+
*
|
|
23177
|
+
* Bounded by {@link MAX_CONFIG_RETRIES}: a provider that never yields a
|
|
23178
|
+
* config must settle into the fail-closed deny instead of re-checking
|
|
23179
|
+
* forever.
|
|
23180
|
+
*/
|
|
23181
|
+
private isTransientConfigMiss;
|
|
23182
|
+
/**
|
|
23183
|
+
* Re-check once a Playbook load attempt settles, if the deny we parked was
|
|
23184
|
+
* only a config race and a config is now available (BL-0179).
|
|
23185
|
+
*
|
|
23186
|
+
* Bounded three ways, mirroring `PlacementController`: only while a parked
|
|
23187
|
+
* deny exists, only when the settled state is `ready`, and never more than
|
|
23188
|
+
* {@link MAX_CONFIG_RETRIES} times.
|
|
23189
|
+
*/
|
|
23190
|
+
private handlePlaybookSettled;
|
|
23191
|
+
/**
|
|
23192
|
+
* Give up waiting: publish the parked `config_unavailable` deny as the
|
|
23193
|
+
* answer, with the `gate_evaluated` emit that was withheld while a re-check
|
|
23194
|
+
* was still expected.
|
|
23195
|
+
*/
|
|
23196
|
+
private finalizeAwaitedConfig;
|
|
23197
|
+
/**
|
|
23198
|
+
* Read the SDK's Playbook load state, degrading to `null` on a hand-rolled
|
|
23199
|
+
* test double that predates it — same contract as {@link watchUserContext}:
|
|
23200
|
+
* an SDK that can break the host app's render has failed at its one hard
|
|
23201
|
+
* guarantee. A `null` state is never transient, so such a double keeps
|
|
23202
|
+
* today's fail-closed behaviour exactly.
|
|
23203
|
+
*/
|
|
23204
|
+
private playbookLoadState;
|
|
23205
|
+
/** Subscribe to Playbook load settles, degrading on an older test double. */
|
|
23206
|
+
private subscribeToPlaybookSettled;
|
|
23002
23207
|
/**
|
|
23003
23208
|
* Emit the passive `gate_evaluated` signal for a resolved entitlement result
|
|
23004
23209
|
* (plan 144 TASK-10). Deduped on handle+outcome for the gate's lifetime, and
|
|
@@ -24230,6 +24435,7 @@ interface components {
|
|
|
24230
24435
|
message_block_id?: components["schemas"]["Anon_4e04ec5cc4e6_10"];
|
|
24231
24436
|
experiment_id?: components["schemas"]["Anon_4e04ec5cc4e6_11"];
|
|
24232
24437
|
variant_key?: components["schemas"]["Anon_4e04ec5cc4e6_12"];
|
|
24438
|
+
rule_handle?: components["schemas"]["Anon_94b7b4f4c44a"];
|
|
24233
24439
|
test?: components["schemas"]["Anon_fb9ddeea992e_3"];
|
|
24234
24440
|
metadata?: components["schemas"]["Anon_a249e58b3222"];
|
|
24235
24441
|
};
|
|
@@ -24660,6 +24866,8 @@ interface components {
|
|
|
24660
24866
|
Anon_9ac136edb99a_17: string;
|
|
24661
24867
|
Anon_4e04ec5cc4e6_12: components["schemas"]["Anon_9ac136edb99a_18"];
|
|
24662
24868
|
Anon_9ac136edb99a_18: string;
|
|
24869
|
+
Anon_94b7b4f4c44a: components["schemas"]["Anon_904af497346b"];
|
|
24870
|
+
Anon_904af497346b: string | null;
|
|
24663
24871
|
Anon_fb9ddeea992e_3: components["schemas"]["Anon_7cb541e84f22_31"];
|
|
24664
24872
|
Anon_7cb541e84f22_31: boolean;
|
|
24665
24873
|
Anon_a249e58b3222: components["schemas"]["Anon_c65c1fbd5acf_8"];
|
|
@@ -28133,4 +28341,4 @@ declare class RevTurbineServer {
|
|
|
28133
28341
|
}
|
|
28134
28342
|
|
|
28135
28343
|
export { ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogMetricValidatedSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BillingCadenceSchema, BillingHealthStatusSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_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, EnforcementActionSchema, EnforcementModeSchema, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, 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, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LocalizedTextSchema, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, NON_RETRYABLE_EVIDENCE_REASONS, NameField, NullableDatetimeField, ObjectiveField, 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, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, RevTurbineConfigPlacementItemSchema as PlaybookPlacementItemSchema, PlaybookSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as PlaybookSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as PlaybookSegmentsItemSchema, PlaybookStrictSchema, RevTurbineConfigUiPathActionTypeSchema as PlaybookUiPathActionTypeSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineServer, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SDK_SERVER_EVENT_NAMES, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, 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, StripeBillingScopeSchema, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StripePriceScopeSchema, StripeSubscriptionEvidenceSchema, StripeSubscriptionItemSchema, StripeSubscriptionStatusSchema, StudioSurfaceTypeSchema, SubscriptionEvidenceKnownSchema, SubscriptionEvidenceResultSchema, SubscriptionEvidenceUnavailableReasonSchema, SubscriptionEvidenceUnavailableSchema, SubscriptionProtectionSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TERMINAL_SUBSCRIPTION_STATUSES, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WEBHOOK_DERIVED_EVENT_NAMES, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookDeliverySchema, WebhookDispatchStatusSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, WebhookProcessingStatusSchema, WebhookReplayEnvelopeSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, bucketSubject, buildAgentCatalogProjection, buildControlPlaneEvent, 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, deriveReverseTrialGrants, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isAnalyticsDateRangeFilterValue, isBrowser, isExperimentAssignmentFactDeclaration, isLegacyDateRangeArray, isRetryableEvidenceReason, isServer, isVersionedConfigEntity, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, namespacePlatformCollision, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, requireSchemaFacets, resetDefaultRegistry, resetPlaybookAliasWarning, resolveBranding, resolveBrowserPublicKey, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolvePlaybookResolver, resolveProviderPlaybook, resolveSessionStorage, resolveSubscriptionEvidence, resolveTokens, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, summarizeProtectedSubscriptions, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unavailableEvidence, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateEventPayload, validatePlacementThresholdWarnings };
|
|
28136
|
-
export type { ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ConfigTargetDefaults, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeleteProtectionDecision, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, 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, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookPlacementItem, PlaybookProvider, PlaybookSegmentsItem, PlaybookSegmentsItemPredicatesItem, PlaybookStrict, PlaybookUiPathActionType, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineAuthoredSlotRef, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigProviderInput, 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, 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, StaticPlacementResolverOptions, StripeBillingScope, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StripePriceScope, StripeSubscriptionEvidence, StripeSubscriptionItem, StripeSubscriptionStatus, StudioSurfaceType, SubscriptionEvidenceKnown, SubscriptionEvidenceResult, SubscriptionEvidenceUnavailable, SubscriptionEvidenceUnavailableReason, SubscriptionProtection, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackIngestBatch, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookDelivery, WebhookDispatchStatus, WebhookEventLog, WebhookEventSource, WebhookEventStatus, WebhookProcessingStatus, WebhookReplayEnvelope };
|
|
28344
|
+
export type { ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, BasicBucketerExperiment, BasicBucketerOptions, BillingCadence, BillingHealthStatus, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CanonicalExperimentAllocation, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ConfigTargetDefaults, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeleteProtectionDecision, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, 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, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookPlacementItem, PlaybookProvider, PlaybookSegmentsItem, PlaybookSegmentsItemPredicatesItem, PlaybookStrict, PlaybookUiPathActionType, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineAuthoredSlotRef, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigProviderInput, 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, RevTurbinePlaybookLoadState, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, 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, StaticPlacementResolverOptions, StripeBillingScope, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StripePriceScope, StripeSubscriptionEvidence, StripeSubscriptionItem, StripeSubscriptionStatus, StudioSurfaceType, SubscriptionEvidenceKnown, SubscriptionEvidenceResult, SubscriptionEvidenceUnavailable, SubscriptionEvidenceUnavailableReason, SubscriptionProtection, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackIngestBatch, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialEligibilityScope, TrialInstance, TrialLimitPolicy, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookDelivery, WebhookDispatchStatus, WebhookEventLog, WebhookEventSource, WebhookEventStatus, WebhookProcessingStatus, WebhookReplayEnvelope };
|