From 3adadfeeefbacc33e0d23be3c0e98a9fe5e60910 Mon Sep 17 00:00:00 2001 From: Ivan Kudinov Date: Thu, 9 Apr 2026 16:43:09 +0300 Subject: [PATCH] CCS-111896 add link_regex initiator --- package.json | 2 +- src/types/bridge.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1945d7d..b52240a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@expressms/smartapp-sdk", - "version": "1.14.0-alpha.3", + "version": "1.14.0-alpha.6", "description": "Smartapp SDK", "main": "build/main/index.js", "typings": "build/main/index.d.ts", diff --git a/src/types/bridge.ts b/src/types/bridge.ts index 3077906..108515d 100644 --- a/src/types/bridge.ts +++ b/src/types/bridge.ts @@ -148,6 +148,13 @@ export interface InitialDataMenuAction extends InitialData { } } +export interface InitialDataLink extends InitialData { + initiator: 'link_regex' + meta: { + url: string + } +} + export type RuleDownload = { action: 'download' ruleMeta: { @@ -195,6 +202,7 @@ export type ReadyEventResponse = | InitialDataPush | InitialDataDeeplink | InitialDataMenuAction + | InitialDataLink rules?: Array isPinned?: boolean }