From f93a99c225610d464cc1d1692b85a2adffac44c9 Mon Sep 17 00:00:00 2001 From: Ivan Kudinov Date: Mon, 25 May 2026 11:36:11 +0300 Subject: [PATCH] CCS-112641 add support inititator --- package.json | 2 +- src/types/bridge.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ac4323..ecda07c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@expressms/smartapp-sdk", - "version": "1.14.0-alpha.9", + "version": "1.14.0-alpha.10", "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 d3ede31..70e6874 100644 --- a/src/types/bridge.ts +++ b/src/types/bridge.ts @@ -156,6 +156,18 @@ export interface InitialDataLink extends InitialData { } } +export interface InitialSupportRequest extends InitialData { + initiator: 'support_request' + meta: { + bot_huid: string + app_id: string + app_name: string + app_version: string + request_timestamp: string + files?: Array + } +} + export type RuleDownload = { action: 'download' ruleMeta: { @@ -204,6 +216,7 @@ export type ReadyEventResponse = | InitialDataDeeplink | InitialDataMenuAction | InitialDataLink + | InitialSupportRequest rules?: Array isPinned?: boolean toolbarVisible?: boolean