@revturbine/sdk 0.10.0 → 0.10.1
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 +42 -0
- package/dist/headless.d.ts +23 -1
- package/dist/headless.js +2 -2
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/web-sdk/customer-side.d.ts +23 -1
- package/dist/types/web-sdk/customer-side.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21789,6 +21789,24 @@ declare class RevTurbineCustomerSdk {
|
|
|
21789
21789
|
* persistent failure is observable instead of merely quiet.
|
|
21790
21790
|
*/
|
|
21791
21791
|
private failInteractionFlush;
|
|
21792
|
+
/**
|
|
21793
|
+
* The account identity to stamp on a treatment interaction, or `undefined`
|
|
21794
|
+
* when the integration has identified none.
|
|
21795
|
+
*
|
|
21796
|
+
* Two rules make this a usable join key rather than a label:
|
|
21797
|
+
*
|
|
21798
|
+
* 1. **Redacted identically to `/api/track`.** Both paths run the account id
|
|
21799
|
+
* through {@link redactIdentityField}, so an email-shaped account id
|
|
21800
|
+
* becomes the SAME hash in `placement_presentations` and in
|
|
21801
|
+
* `events_clickstream`. Hashing on one path only would produce a hash on
|
|
21802
|
+
* one side and a raw email on the other, and `monetization_funnel` would
|
|
21803
|
+
* join nothing (identity keys are hashed, not sentinelled — the contract
|
|
21804
|
+
* is byte-identical across repos).
|
|
21805
|
+
* 2. **Never falls back to the user id.** An absent account is absent. The
|
|
21806
|
+
* ingest route keeps its own `account_id ?? user_id` fallback for SDKs
|
|
21807
|
+
* that do not send the field yet; this SDK no longer feeds it.
|
|
21808
|
+
*/
|
|
21809
|
+
private interactionAccountId;
|
|
21792
21810
|
trackTreatmentInteraction(input: RevTurbineTreatmentInteractionInput): Promise<void>;
|
|
21793
21811
|
getPlacementContent(placementId: string, request?: JsonObject): Promise<RevTurbinePlacementContent>;
|
|
21794
21812
|
/**
|
|
@@ -22076,7 +22094,11 @@ declare class RevTurbineCustomerSdk {
|
|
|
22076
22094
|
snooze(outputId: string, seconds?: number): Promise<void>;
|
|
22077
22095
|
convert(outputId: string): Promise<void>;
|
|
22078
22096
|
/**
|
|
22079
|
-
* Emit a canonical trigger event
|
|
22097
|
+
* Emit a canonical trigger event. There is no in-SDK consumer that matches
|
|
22098
|
+
* on trigger names — the shipped behavior is ingest to `events_clickstream`
|
|
22099
|
+
* only (plan 250's wire/consumer matrix); a decision-engine placement
|
|
22100
|
+
* trigger matches `trigger.slot_id` against registered slots, not this
|
|
22101
|
+
* event's name.
|
|
22080
22102
|
*
|
|
22081
22103
|
* Convenience wrapper over {@link emitSemantic} that constrains the event
|
|
22082
22104
|
* name to {@link RevTurbineTriggerEvent} and attaches standard context
|