Skip to content

Commit f93a99c

Browse files
author
Ivan Kudinov
committed
CCS-112641 add support inititator
1 parent aa3874c commit f93a99c

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@expressms/smartapp-sdk",
3-
"version": "1.14.0-alpha.9",
3+
"version": "1.14.0-alpha.10",
44
"description": "Smartapp SDK",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",

src/types/bridge.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@ export interface InitialDataLink extends InitialData {
156156
}
157157
}
158158

159+
export interface InitialSupportRequest extends InitialData {
160+
initiator: 'support_request'
161+
meta: {
162+
bot_huid: string
163+
app_id: string
164+
app_name: string
165+
app_version: string
166+
request_timestamp: string
167+
files?: Array<File>
168+
}
169+
}
170+
159171
export type RuleDownload = {
160172
action: 'download'
161173
ruleMeta: {
@@ -204,6 +216,7 @@ export type ReadyEventResponse =
204216
| InitialDataDeeplink
205217
| InitialDataMenuAction
206218
| InitialDataLink
219+
| InitialSupportRequest
207220
rules?: Array<RuleDownload | RuleUpload | RuleShare | RuleCopy>
208221
isPinned?: boolean
209222
toolbarVisible?: boolean

0 commit comments

Comments
 (0)