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..3bee919 100644 --- a/src/types/bridge.ts +++ b/src/types/bridge.ts @@ -156,6 +156,17 @@ 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 + } +} + export type RuleDownload = { action: 'download' ruleMeta: { @@ -204,6 +215,7 @@ export type ReadyEventResponse = | InitialDataDeeplink | InitialDataMenuAction | InitialDataLink + | InitialSupportRequest rules?: Array isPinned?: boolean toolbarVisible?: boolean