From 55f99c789366b3b7ae09cc2e9a5da54d4ad8ed5e Mon Sep 17 00:00:00 2001 From: Simon Deflesschouwer Date: Tue, 3 Nov 2026 10:20:26 +0100 Subject: [PATCH] fix: update events body for new access render --- src/types.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/types.ts b/src/types.ts index 4512fae1..9c42217e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -23,15 +23,26 @@ export declare interface AccessIdentityAvailableEvent { actionName: string; trigger: string; triggerType: string; + triggerPageType: string; triggerValue: string; + remaining?: number; + consumed?: number; + customReaderId?: string; } export declare interface AccessReadyEvent { widget: string; actionName: string; + target: string; trigger: string; triggerType: string; + triggerPageType?: string; triggerValue: string; + // Only sent by the new paywall render + contextName?: string; + groupName?: string; + scenarioName?: string; + action?: string; } export declare interface AccessPaywallSeenEvent { @@ -39,7 +50,17 @@ export declare interface AccessPaywallSeenEvent { actionName: string; trigger: string; triggerType: string; + triggerPageType: string; triggerValue: string; + // Only sent by the new paywall render + contextName?: string; + groupName?: string; + scenarioName?: string; + action?: string; + // Only sent by the legacy paywall render + context?: string; + segment?: string; + journey?: string; } export declare interface AccessReleaseEvent { @@ -48,6 +69,7 @@ export declare interface AccessReleaseEvent { actionName: string; trigger: string; triggerType: string; + triggerPageType: string; triggerValue: string; }