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 }