@channel.io/app-sdk-core 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/calendar.d.ts +4 -4
- package/dist/extensions/config.d.ts +394 -394
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/interfaces/index.d.ts +1 -0
- package/dist/extensions/interfaces/index.d.ts.map +1 -1
- package/dist/extensions/interfaces/index.js +1 -0
- package/dist/extensions/interfaces/index.js.map +1 -1
- package/dist/extensions/interfaces/messaging.d.ts +36 -0
- package/dist/extensions/interfaces/messaging.d.ts.map +1 -0
- package/dist/extensions/interfaces/messaging.js +18 -0
- package/dist/extensions/interfaces/messaging.js.map +1 -0
- package/dist/extensions/messaging.d.ts +11248 -0
- package/dist/extensions/messaging.d.ts.map +1 -0
- package/dist/extensions/messaging.js +482 -0
- package/dist/extensions/messaging.js.map +1 -0
- package/dist/extensions/order.d.ts +8 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/native.d.ts +722 -0
- package/dist/types/native.d.ts.map +1 -0
- package/dist/types/native.js +2 -0
- package/dist/types/native.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
export type NativeJsonObject = object;
|
|
2
|
+
export type NativeEmptyResult = Record<string, never>;
|
|
3
|
+
export type NativeSortOrder = "SORT_ORDER_UNSPECIFIED" | "SORT_ORDER_ASC" | "SORT_ORDER_DESC" | "SORT_ORDER_BOTH";
|
|
4
|
+
export interface NativePagination {
|
|
5
|
+
sortOrder?: NativeSortOrder;
|
|
6
|
+
since?: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
}
|
|
9
|
+
export type NativeFieldMask = string | readonly string[] | {
|
|
10
|
+
paths: readonly string[];
|
|
11
|
+
};
|
|
12
|
+
export interface NativeDuration {
|
|
13
|
+
seconds?: number | string;
|
|
14
|
+
nanos?: number;
|
|
15
|
+
}
|
|
16
|
+
export type NativeMessageState = "MESSAGE_STATE_UNSPECIFIED" | "MESSAGE_STATE_SENDING" | "MESSAGE_STATE_SENT" | "MESSAGE_STATE_FAILED" | "MESSAGE_STATE_REMOVED";
|
|
17
|
+
export type NativeMessageOption = "MESSAGE_OPTION_UNSPECIFIED" | "MESSAGE_OPTION_ACT_AS_MANAGER" | "MESSAGE_OPTION_DISPLAY_AS_CHANNEL" | "MESSAGE_OPTION_DO_NOT_POST" | "MESSAGE_OPTION_DO_NOT_SEARCH" | "MESSAGE_OPTION_DO_NOT_SEND_APP" | "MESSAGE_OPTION_DO_NOT_UPDATE_DESK" | "MESSAGE_OPTION_IMMUTABLE" | "MESSAGE_OPTION_PRIVATE"
|
|
18
|
+
/** Deprecated in core API, retained for wire compatibility. */
|
|
19
|
+
| "MESSAGE_OPTION_SILENT" | "MESSAGE_OPTION_SILENT_TO_MANAGER" | "MESSAGE_OPTION_SILENT_TO_USER";
|
|
20
|
+
export type NativeMessageColorVariant = "MESSAGE_COLOR_VARIANT_UNSPECIFIED" | "MESSAGE_COLOR_VARIANT_COBALT" | "MESSAGE_COLOR_VARIANT_GREEN" | "MESSAGE_COLOR_VARIANT_ORANGE" | "MESSAGE_COLOR_VARIANT_RED" | "MESSAGE_COLOR_VARIANT_BLACK" | "MESSAGE_COLOR_VARIANT_PINK" | "MESSAGE_COLOR_VARIANT_PURPLE";
|
|
21
|
+
export type NativeUserChatState = "USER_CHAT_STATE_UNSPECIFIED" | "USER_CHAT_STATE_CLOSED" | "USER_CHAT_STATE_OPENED" | "USER_CHAT_STATE_SNOOZED" | "USER_CHAT_STATE_INITIAL" | "USER_CHAT_STATE_MISSED" | "USER_CHAT_STATE_QUEUED";
|
|
22
|
+
export type NativeUserChatDesiredAlfTurnMode = "USER_CHAT_DESIRED_ALF_TURN_MODE_UNSPECIFIED" | "USER_CHAT_DESIRED_ALF_TURN_MODE_SINGLE" | "USER_CHAT_DESIRED_ALF_TURN_MODE_MULTIPLE";
|
|
23
|
+
export type NativeOperatorType = "OPERATOR_TYPE_UNSPECIFIED" | "OPERATOR_TYPE_BOOLEAN" | "OPERATOR_TYPE_DATE" | "OPERATOR_TYPE_DATETIME" | "OPERATOR_TYPE_LIST_OF_STRING" | "OPERATOR_TYPE_LIST_OF_NUMBER" | "OPERATOR_TYPE_NUMBER" | "OPERATOR_TYPE_STRING" | "OPERATOR_TYPE_LIST_OF_OBJECT";
|
|
24
|
+
export interface NativeOpaqueModel {
|
|
25
|
+
id?: string;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface NativeContact extends NativeOpaqueModel {
|
|
29
|
+
id: string;
|
|
30
|
+
channelId?: string;
|
|
31
|
+
userId?: string;
|
|
32
|
+
mediumType?: string;
|
|
33
|
+
address?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface NativeUser extends NativeOpaqueModel {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
export interface NativeUserChat extends NativeOpaqueModel {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
export interface NativeMessage extends NativeOpaqueModel {
|
|
42
|
+
id?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface NativeManager extends NativeOpaqueModel {
|
|
45
|
+
id: string;
|
|
46
|
+
}
|
|
47
|
+
export interface NativeGroup extends NativeOpaqueModel {
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
export interface NativeDirectChat extends NativeOpaqueModel {
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
53
|
+
export interface NativeChannel extends NativeOpaqueModel {
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
56
|
+
export interface NativePlugin extends NativeOpaqueModel {
|
|
57
|
+
id: string;
|
|
58
|
+
}
|
|
59
|
+
export interface NativeRole extends NativeOpaqueModel {
|
|
60
|
+
id: string;
|
|
61
|
+
}
|
|
62
|
+
export interface NativeEntityToken extends NativeOpaqueModel {
|
|
63
|
+
}
|
|
64
|
+
export interface NativeMediumLink extends NativeOpaqueModel {
|
|
65
|
+
}
|
|
66
|
+
export interface NativeEvent extends NativeOpaqueModel {
|
|
67
|
+
}
|
|
68
|
+
export interface NativeUserSchema extends NativeOpaqueModel {
|
|
69
|
+
}
|
|
70
|
+
export interface NativeUserChatSchema extends NativeOpaqueModel {
|
|
71
|
+
}
|
|
72
|
+
export interface NativeEventSchema extends NativeOpaqueModel {
|
|
73
|
+
}
|
|
74
|
+
export type NativeProxyMessage = NativeMessage;
|
|
75
|
+
export type NativeProxyManager = NativeManager;
|
|
76
|
+
export type NativeProxyUser = NativeUser;
|
|
77
|
+
export type NativeProxyUserChat = NativeUserChat;
|
|
78
|
+
export type NativeProxyGroup = NativeGroup;
|
|
79
|
+
export type NativeProxyChannel = NativeChannel;
|
|
80
|
+
export interface NativeMessageButton {
|
|
81
|
+
title?: string;
|
|
82
|
+
colorVariant?: NativeMessageColorVariant;
|
|
83
|
+
action?: NativeJsonObject;
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
}
|
|
86
|
+
export interface NativeMessageFile {
|
|
87
|
+
url?: string;
|
|
88
|
+
mime?: string;
|
|
89
|
+
fileName?: string;
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
92
|
+
export type NativeProxyMessageButton = NativeMessageButton;
|
|
93
|
+
export type NativeProxyMessageFile = NativeMessageFile;
|
|
94
|
+
export type NativeProxyMessageOption = NativeMessageOption;
|
|
95
|
+
export interface NativeWriteMessageDto {
|
|
96
|
+
blocks?: readonly NativeJsonObject[];
|
|
97
|
+
plainText?: string;
|
|
98
|
+
buttons?: readonly NativeMessageButton[];
|
|
99
|
+
files?: readonly NativeMessageFile[];
|
|
100
|
+
webPage?: NativeJsonObject;
|
|
101
|
+
form?: NativeJsonObject;
|
|
102
|
+
options?: readonly NativeMessageOption[];
|
|
103
|
+
requestId?: string;
|
|
104
|
+
botName?: string;
|
|
105
|
+
managerId?: string;
|
|
106
|
+
userId?: string;
|
|
107
|
+
customPayload?: NativeJsonObject;
|
|
108
|
+
}
|
|
109
|
+
export type NativeWriteMessageDtoAsManager = NativeWriteMessageDto & {
|
|
110
|
+
managerId: string;
|
|
111
|
+
};
|
|
112
|
+
export type NativeWriteMessageDtoAsUser = NativeWriteMessageDto & {
|
|
113
|
+
userId: string;
|
|
114
|
+
};
|
|
115
|
+
export interface NativeWriteGroupMessageParams {
|
|
116
|
+
channelId: string;
|
|
117
|
+
groupId: string;
|
|
118
|
+
rootMessageId?: string;
|
|
119
|
+
broadcast?: boolean;
|
|
120
|
+
dto: NativeWriteMessageDto;
|
|
121
|
+
}
|
|
122
|
+
export interface NativeWriteGroupMessageResult {
|
|
123
|
+
message: NativeMessage;
|
|
124
|
+
}
|
|
125
|
+
export interface NativeWriteGroupMessageAsManagerParams {
|
|
126
|
+
channelId: string;
|
|
127
|
+
groupId: string;
|
|
128
|
+
rootMessageId?: string;
|
|
129
|
+
broadcast?: boolean;
|
|
130
|
+
dto: NativeWriteMessageDtoAsManager;
|
|
131
|
+
}
|
|
132
|
+
export type NativeWriteGroupMessageAsManagerResult = NativeWriteGroupMessageResult;
|
|
133
|
+
export interface NativeWriteUserChatMessageParams {
|
|
134
|
+
channelId: string;
|
|
135
|
+
userChatId: string;
|
|
136
|
+
dto: NativeWriteMessageDto;
|
|
137
|
+
}
|
|
138
|
+
export interface NativeWriteUserChatMessageResult {
|
|
139
|
+
message: NativeMessage;
|
|
140
|
+
}
|
|
141
|
+
export interface NativeWriteUserChatMessageAsManagerParams {
|
|
142
|
+
channelId: string;
|
|
143
|
+
userChatId: string;
|
|
144
|
+
dto: NativeWriteMessageDtoAsManager;
|
|
145
|
+
}
|
|
146
|
+
export type NativeWriteUserChatMessageAsManagerResult = NativeWriteUserChatMessageResult;
|
|
147
|
+
export interface NativeWriteUserChatMessageAsUserParams {
|
|
148
|
+
channelId: string;
|
|
149
|
+
userChatId: string;
|
|
150
|
+
dto: NativeWriteMessageDtoAsUser;
|
|
151
|
+
}
|
|
152
|
+
export type NativeWriteUserChatMessageAsUserResult = NativeWriteUserChatMessageResult;
|
|
153
|
+
export interface NativeWriteDirectChatMessageAsManagerParams {
|
|
154
|
+
directChatId: string;
|
|
155
|
+
channelId: string;
|
|
156
|
+
rootMessageId?: string;
|
|
157
|
+
broadcast?: boolean;
|
|
158
|
+
dto: NativeWriteMessageDtoAsManager;
|
|
159
|
+
}
|
|
160
|
+
export type NativeWriteDirectChatMessageAsManagerResult = NativeWriteUserChatMessageResult;
|
|
161
|
+
export interface NativePatchMessageBody {
|
|
162
|
+
options?: readonly NativeMessageOption[];
|
|
163
|
+
state?: NativeMessageState;
|
|
164
|
+
}
|
|
165
|
+
export interface NativePatchMessageParams {
|
|
166
|
+
channelId: string;
|
|
167
|
+
chatId: string;
|
|
168
|
+
chatType: string;
|
|
169
|
+
messageId: string;
|
|
170
|
+
body: NativePatchMessageBody;
|
|
171
|
+
updateMask: NativeFieldMask;
|
|
172
|
+
}
|
|
173
|
+
export interface NativePatchMessageResult {
|
|
174
|
+
message: NativeMessage;
|
|
175
|
+
}
|
|
176
|
+
export interface NativeGetManagerParams {
|
|
177
|
+
channelId: string;
|
|
178
|
+
managerId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface NativeGetManagerResult {
|
|
181
|
+
manager: NativeManager;
|
|
182
|
+
}
|
|
183
|
+
export interface NativeBatchGetManagersParams {
|
|
184
|
+
channelId: string;
|
|
185
|
+
managerIds: readonly string[];
|
|
186
|
+
}
|
|
187
|
+
export interface NativeBatchGetManagersResult {
|
|
188
|
+
managers: NativeManager[];
|
|
189
|
+
}
|
|
190
|
+
export interface NativeSearchManagersParams {
|
|
191
|
+
channelId: string;
|
|
192
|
+
pagination?: NativePagination;
|
|
193
|
+
}
|
|
194
|
+
export interface NativeSearchManagersResult {
|
|
195
|
+
managers: NativeManager[];
|
|
196
|
+
next?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface NativeGetUserParams {
|
|
199
|
+
channelId: string;
|
|
200
|
+
userId: string;
|
|
201
|
+
}
|
|
202
|
+
export interface NativeGetUserResult {
|
|
203
|
+
user: NativeUser;
|
|
204
|
+
}
|
|
205
|
+
export interface NativeSearchUserParams {
|
|
206
|
+
channelId: string;
|
|
207
|
+
memberId: string;
|
|
208
|
+
}
|
|
209
|
+
export interface NativeSearchUserResult {
|
|
210
|
+
user: NativeUser;
|
|
211
|
+
}
|
|
212
|
+
export interface NativeUserPatchBody {
|
|
213
|
+
mobileNumberQualified?: boolean;
|
|
214
|
+
emailQualified?: boolean;
|
|
215
|
+
profile?: NativeJsonObject;
|
|
216
|
+
profileOnce?: NativeJsonObject;
|
|
217
|
+
tags?: readonly string[];
|
|
218
|
+
blocked?: boolean;
|
|
219
|
+
unsubscribeEmail?: boolean;
|
|
220
|
+
unsubscribeTexting?: boolean;
|
|
221
|
+
language?: string;
|
|
222
|
+
}
|
|
223
|
+
export interface NativePatchUserParams {
|
|
224
|
+
channelId: string;
|
|
225
|
+
userId: string;
|
|
226
|
+
body: NativeUserPatchBody;
|
|
227
|
+
updateMask: NativeFieldMask;
|
|
228
|
+
}
|
|
229
|
+
export interface NativePatchUserResult {
|
|
230
|
+
user: NativeUser;
|
|
231
|
+
}
|
|
232
|
+
export interface NativeCreateLeadParams {
|
|
233
|
+
channelId: string;
|
|
234
|
+
profile: NativeJsonObject;
|
|
235
|
+
}
|
|
236
|
+
export interface NativeCreateLeadResult {
|
|
237
|
+
user: NativeUser;
|
|
238
|
+
}
|
|
239
|
+
export interface NativeCreateUserParams {
|
|
240
|
+
channelId: string;
|
|
241
|
+
profile: NativeJsonObject;
|
|
242
|
+
}
|
|
243
|
+
export interface NativeCreateUserResult {
|
|
244
|
+
user: NativeUser;
|
|
245
|
+
}
|
|
246
|
+
export interface NativeUpsertMemberParams {
|
|
247
|
+
channelId: string;
|
|
248
|
+
memberId: string;
|
|
249
|
+
body: NativeUserPatchBody;
|
|
250
|
+
updateMask: NativeFieldMask;
|
|
251
|
+
}
|
|
252
|
+
export interface NativeUpsertMemberResult {
|
|
253
|
+
user: NativeUser;
|
|
254
|
+
}
|
|
255
|
+
export interface NativeDeleteUserParams {
|
|
256
|
+
channelId: string;
|
|
257
|
+
userId: string;
|
|
258
|
+
}
|
|
259
|
+
export type NativeDeleteUserResult = NativeEmptyResult;
|
|
260
|
+
export interface NativeGetUserChatParams {
|
|
261
|
+
channelId: string;
|
|
262
|
+
userChatId: string;
|
|
263
|
+
}
|
|
264
|
+
export interface NativeGetUserChatResult {
|
|
265
|
+
userChat: NativeUserChat;
|
|
266
|
+
}
|
|
267
|
+
export interface NativeManageUserChatParams {
|
|
268
|
+
channelId: string;
|
|
269
|
+
userChatId: string;
|
|
270
|
+
}
|
|
271
|
+
export interface NativeManageUserChatResult {
|
|
272
|
+
userChat: NativeUserChat;
|
|
273
|
+
}
|
|
274
|
+
export interface NativeCreateUserChatParams {
|
|
275
|
+
channelId: string;
|
|
276
|
+
userId: string;
|
|
277
|
+
}
|
|
278
|
+
export interface NativeCreateUserChatResult {
|
|
279
|
+
userChat: NativeUserChat;
|
|
280
|
+
}
|
|
281
|
+
export interface FindOrCreateUserChatByMediumParams {
|
|
282
|
+
channelId: string;
|
|
283
|
+
userId: string;
|
|
284
|
+
mediumType: string;
|
|
285
|
+
mediumId?: string;
|
|
286
|
+
mediumTopicKey?: string;
|
|
287
|
+
mediumTopicLabels?: readonly string[];
|
|
288
|
+
mediumProfile?: NativeJsonObject;
|
|
289
|
+
/** Deprecated by core API, retained for wire compatibility. */
|
|
290
|
+
contactKey?: string;
|
|
291
|
+
desiredAlfTurnMode?: NativeUserChatDesiredAlfTurnMode;
|
|
292
|
+
}
|
|
293
|
+
export interface FindOrCreateUserChatByMediumResult {
|
|
294
|
+
userChat: NativeUserChat;
|
|
295
|
+
}
|
|
296
|
+
export interface NativeSearchUserChatsByContactParams {
|
|
297
|
+
channelId: string;
|
|
298
|
+
mediumType: string;
|
|
299
|
+
mediumId?: string;
|
|
300
|
+
address: string;
|
|
301
|
+
pagination?: NativePagination;
|
|
302
|
+
}
|
|
303
|
+
export interface NativeSearchUserChatsByContactResult {
|
|
304
|
+
userChats: NativeUserChat[];
|
|
305
|
+
next?: string;
|
|
306
|
+
}
|
|
307
|
+
export interface NativeSearchUserChatsByMediumParams {
|
|
308
|
+
userId: string;
|
|
309
|
+
mediumType: string;
|
|
310
|
+
mediumId?: string;
|
|
311
|
+
mediumTopicKey?: string;
|
|
312
|
+
}
|
|
313
|
+
export interface NativeSearchUserChatsByMediumResult {
|
|
314
|
+
userChats: NativeUserChat[];
|
|
315
|
+
}
|
|
316
|
+
export interface NativeUpdateUserChatStateParams {
|
|
317
|
+
channelId: string;
|
|
318
|
+
userChatId: string;
|
|
319
|
+
state: NativeUserChatState;
|
|
320
|
+
duration?: NativeDuration;
|
|
321
|
+
botName: string;
|
|
322
|
+
}
|
|
323
|
+
export interface NativeUpdateUserChatStateResult {
|
|
324
|
+
userChat: NativeUserChat;
|
|
325
|
+
}
|
|
326
|
+
export interface NativeUpdateUserChatStateByUserParams {
|
|
327
|
+
channelId: string;
|
|
328
|
+
userChatId: string;
|
|
329
|
+
state: NativeUserChatState;
|
|
330
|
+
duration?: NativeDuration;
|
|
331
|
+
}
|
|
332
|
+
export interface NativeUpdateUserChatStateByUserResult {
|
|
333
|
+
userChat: NativeUserChat;
|
|
334
|
+
}
|
|
335
|
+
export interface NativeStartUserChatFromUserByMediumParams {
|
|
336
|
+
channelId: string;
|
|
337
|
+
userChatId: string;
|
|
338
|
+
mediumType: string;
|
|
339
|
+
mediumId?: string;
|
|
340
|
+
useQuickDeploy?: boolean;
|
|
341
|
+
showWelcomeMessage?: boolean;
|
|
342
|
+
tryOpen?: boolean;
|
|
343
|
+
}
|
|
344
|
+
export interface NativeStartUserChatFromUserByMediumResult {
|
|
345
|
+
userChat: NativeUserChat;
|
|
346
|
+
}
|
|
347
|
+
export interface NativeSubmitHandlingWorkflowButtonParams {
|
|
348
|
+
channelId: string;
|
|
349
|
+
userChatId: string;
|
|
350
|
+
messageId?: string;
|
|
351
|
+
buttonId?: string;
|
|
352
|
+
[key: string]: unknown;
|
|
353
|
+
}
|
|
354
|
+
export interface NativeSubmitHandlingWorkflowButtonResult {
|
|
355
|
+
userChat?: NativeUserChat;
|
|
356
|
+
[key: string]: unknown;
|
|
357
|
+
}
|
|
358
|
+
export interface FindOrCreateContactAndUserParams {
|
|
359
|
+
channelId: string;
|
|
360
|
+
mediumType: string;
|
|
361
|
+
mediumId?: string;
|
|
362
|
+
address: string;
|
|
363
|
+
defaultMediumLanguage: string;
|
|
364
|
+
userToken?: string;
|
|
365
|
+
}
|
|
366
|
+
export interface FindOrCreateContactAndUserResult {
|
|
367
|
+
contact: NativeContact;
|
|
368
|
+
user: NativeUser;
|
|
369
|
+
}
|
|
370
|
+
export interface NativeFindContactsByUserParams {
|
|
371
|
+
channelId: string;
|
|
372
|
+
userId: string;
|
|
373
|
+
mediumType: string;
|
|
374
|
+
mediumId?: string;
|
|
375
|
+
}
|
|
376
|
+
export interface NativeFindContactsByUserResult {
|
|
377
|
+
contacts: NativeContact[];
|
|
378
|
+
}
|
|
379
|
+
export interface NativeFindContactsByAddressParams {
|
|
380
|
+
channelId: string;
|
|
381
|
+
mediumType: string;
|
|
382
|
+
mediumId?: string;
|
|
383
|
+
address: string;
|
|
384
|
+
}
|
|
385
|
+
export interface NativeFindContactsByAddressResult {
|
|
386
|
+
contacts: NativeContact[];
|
|
387
|
+
}
|
|
388
|
+
export interface NativeCreateDirectChatParams {
|
|
389
|
+
channelId: string;
|
|
390
|
+
managerIds: readonly string[];
|
|
391
|
+
}
|
|
392
|
+
export interface NativeCreateDirectChatResult {
|
|
393
|
+
directChat: NativeDirectChat;
|
|
394
|
+
}
|
|
395
|
+
export interface NativeFindOrCreateDirectChatParams {
|
|
396
|
+
channelId: string;
|
|
397
|
+
managerIds: readonly string[];
|
|
398
|
+
}
|
|
399
|
+
export interface NativeFindOrCreateDirectChatResult {
|
|
400
|
+
directChat: NativeDirectChat;
|
|
401
|
+
}
|
|
402
|
+
export interface NativeGetGroupParams {
|
|
403
|
+
channelId: string;
|
|
404
|
+
groupId: string;
|
|
405
|
+
}
|
|
406
|
+
export interface NativeGetGroupResult {
|
|
407
|
+
group: NativeGroup;
|
|
408
|
+
}
|
|
409
|
+
export interface NativeSearchGroupsParams {
|
|
410
|
+
channelId: string;
|
|
411
|
+
pagination?: NativePagination;
|
|
412
|
+
}
|
|
413
|
+
export interface NativeSearchGroupsResult {
|
|
414
|
+
groups: NativeGroup[];
|
|
415
|
+
next?: string;
|
|
416
|
+
}
|
|
417
|
+
export interface NativeGetChannelParams {
|
|
418
|
+
channelId: string;
|
|
419
|
+
}
|
|
420
|
+
export interface NativeGetChannelResult {
|
|
421
|
+
channel: NativeChannel;
|
|
422
|
+
}
|
|
423
|
+
export interface NativeGetPluginParams {
|
|
424
|
+
channelId: string;
|
|
425
|
+
pluginId: string;
|
|
426
|
+
}
|
|
427
|
+
export interface NativeGetPluginResult {
|
|
428
|
+
plugin: NativePlugin;
|
|
429
|
+
}
|
|
430
|
+
export interface NativeAppCommerceParams {
|
|
431
|
+
appCommerceType: string;
|
|
432
|
+
appCommerceId: string;
|
|
433
|
+
appCommerceDomain?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface NativeRegisterCommerceParams {
|
|
436
|
+
channelId: string;
|
|
437
|
+
pluginId: string;
|
|
438
|
+
memberHash?: boolean;
|
|
439
|
+
appCommerce: NativeAppCommerceParams;
|
|
440
|
+
}
|
|
441
|
+
export interface NativeRegisterCommerceResult {
|
|
442
|
+
channel: NativeChannel;
|
|
443
|
+
plugin: NativePlugin;
|
|
444
|
+
}
|
|
445
|
+
export interface NativeDeregisterCommerceParams {
|
|
446
|
+
channelId: string;
|
|
447
|
+
pluginId: string;
|
|
448
|
+
appCommerce: NativeAppCommerceParams;
|
|
449
|
+
}
|
|
450
|
+
export type NativeDeregisterCommerceResult = NativeEmptyResult;
|
|
451
|
+
export interface NativeCreateEventParams {
|
|
452
|
+
channelId: string;
|
|
453
|
+
userId: string;
|
|
454
|
+
name: string;
|
|
455
|
+
property?: NativeJsonObject;
|
|
456
|
+
}
|
|
457
|
+
export interface NativeCreateEventResult {
|
|
458
|
+
event: NativeEvent;
|
|
459
|
+
}
|
|
460
|
+
export interface NativeCreateMediumLinkParams {
|
|
461
|
+
channelId: string;
|
|
462
|
+
mediumId?: string;
|
|
463
|
+
mediumType: string;
|
|
464
|
+
}
|
|
465
|
+
export interface NativeCreateMediumLinkResult {
|
|
466
|
+
mediumLink: NativeMediumLink;
|
|
467
|
+
}
|
|
468
|
+
export interface NativeDeleteMediumLinkParams {
|
|
469
|
+
channelId: string;
|
|
470
|
+
mediumId?: string;
|
|
471
|
+
mediumType: string;
|
|
472
|
+
}
|
|
473
|
+
export type NativeDeleteMediumLinkResult = NativeEmptyResult;
|
|
474
|
+
export interface NativeGetRoleParams {
|
|
475
|
+
channelId: string;
|
|
476
|
+
roleId: string;
|
|
477
|
+
}
|
|
478
|
+
export interface NativeGetRoleResult {
|
|
479
|
+
role: NativeRole;
|
|
480
|
+
}
|
|
481
|
+
export interface NativeSearchUserChatSchemasParams {
|
|
482
|
+
channelId: string;
|
|
483
|
+
pagination?: NativePagination;
|
|
484
|
+
}
|
|
485
|
+
export interface NativeSearchUserChatSchemasResult {
|
|
486
|
+
schemas: NativeUserChatSchema[];
|
|
487
|
+
next?: string;
|
|
488
|
+
}
|
|
489
|
+
export interface NativeSearchUserSchemasParams {
|
|
490
|
+
channelId: string;
|
|
491
|
+
pagination?: NativePagination;
|
|
492
|
+
}
|
|
493
|
+
export interface NativeSearchUserSchemasResult {
|
|
494
|
+
schemas: NativeUserSchema[];
|
|
495
|
+
next?: string;
|
|
496
|
+
}
|
|
497
|
+
export interface NativeSearchEventSchemasByEventNameParams {
|
|
498
|
+
channelId: string;
|
|
499
|
+
eventName: string;
|
|
500
|
+
pagination?: NativePagination;
|
|
501
|
+
}
|
|
502
|
+
export interface NativeSearchEventSchemasByEventNameResult {
|
|
503
|
+
schemas: NativeEventSchema[];
|
|
504
|
+
next?: string;
|
|
505
|
+
}
|
|
506
|
+
export interface NativeAppSchemaDto {
|
|
507
|
+
key: string;
|
|
508
|
+
type?: NativeOperatorType;
|
|
509
|
+
name: string;
|
|
510
|
+
defaultWatch?: boolean;
|
|
511
|
+
defaultWidth?: number;
|
|
512
|
+
}
|
|
513
|
+
export interface NativeCreateAppSchemasParams {
|
|
514
|
+
channelId: string;
|
|
515
|
+
schemas: readonly NativeAppSchemaDto[];
|
|
516
|
+
}
|
|
517
|
+
export interface NativeCreateAppSchemasResult {
|
|
518
|
+
schemas: NativeUserSchema[];
|
|
519
|
+
skippedKeys: string[];
|
|
520
|
+
}
|
|
521
|
+
export interface NativeIssueEntityTokenParams {
|
|
522
|
+
channelId: string;
|
|
523
|
+
entityType: string;
|
|
524
|
+
entityId: string;
|
|
525
|
+
}
|
|
526
|
+
export interface NativeIssueEntityTokenResult {
|
|
527
|
+
entityToken: NativeEntityToken;
|
|
528
|
+
}
|
|
529
|
+
export interface NativeFunctionTypeMap {
|
|
530
|
+
writeGroupMessage: {
|
|
531
|
+
params: NativeWriteGroupMessageParams;
|
|
532
|
+
result: NativeWriteGroupMessageResult;
|
|
533
|
+
};
|
|
534
|
+
writeUserChatMessage: {
|
|
535
|
+
params: NativeWriteUserChatMessageParams;
|
|
536
|
+
result: NativeWriteUserChatMessageResult;
|
|
537
|
+
};
|
|
538
|
+
getManager: {
|
|
539
|
+
params: NativeGetManagerParams;
|
|
540
|
+
result: NativeGetManagerResult;
|
|
541
|
+
};
|
|
542
|
+
batchGetManagers: {
|
|
543
|
+
params: NativeBatchGetManagersParams;
|
|
544
|
+
result: NativeBatchGetManagersResult;
|
|
545
|
+
};
|
|
546
|
+
searchManagers: {
|
|
547
|
+
params: NativeSearchManagersParams;
|
|
548
|
+
result: NativeSearchManagersResult;
|
|
549
|
+
};
|
|
550
|
+
getUserChat: {
|
|
551
|
+
params: NativeGetUserChatParams;
|
|
552
|
+
result: NativeGetUserChatResult;
|
|
553
|
+
};
|
|
554
|
+
getUser: {
|
|
555
|
+
params: NativeGetUserParams;
|
|
556
|
+
result: NativeGetUserResult;
|
|
557
|
+
};
|
|
558
|
+
getChannel: {
|
|
559
|
+
params: NativeGetChannelParams;
|
|
560
|
+
result: NativeGetChannelResult;
|
|
561
|
+
};
|
|
562
|
+
manageUserChat: {
|
|
563
|
+
params: NativeManageUserChatParams;
|
|
564
|
+
result: NativeManageUserChatResult;
|
|
565
|
+
};
|
|
566
|
+
writeGroupMessageAsManager: {
|
|
567
|
+
params: NativeWriteGroupMessageAsManagerParams;
|
|
568
|
+
result: NativeWriteGroupMessageAsManagerResult;
|
|
569
|
+
};
|
|
570
|
+
writeUserChatMessageAsManager: {
|
|
571
|
+
params: NativeWriteUserChatMessageAsManagerParams;
|
|
572
|
+
result: NativeWriteUserChatMessageAsManagerResult;
|
|
573
|
+
};
|
|
574
|
+
writeDirectChatMessageAsManager: {
|
|
575
|
+
params: NativeWriteDirectChatMessageAsManagerParams;
|
|
576
|
+
result: NativeWriteDirectChatMessageAsManagerResult;
|
|
577
|
+
};
|
|
578
|
+
writeUserChatMessageAsUser: {
|
|
579
|
+
params: NativeWriteUserChatMessageAsUserParams;
|
|
580
|
+
result: NativeWriteUserChatMessageAsUserResult;
|
|
581
|
+
};
|
|
582
|
+
createDirectChat: {
|
|
583
|
+
params: NativeCreateDirectChatParams;
|
|
584
|
+
result: NativeCreateDirectChatResult;
|
|
585
|
+
};
|
|
586
|
+
findOrCreateDirectChat: {
|
|
587
|
+
params: NativeFindOrCreateDirectChatParams;
|
|
588
|
+
result: NativeFindOrCreateDirectChatResult;
|
|
589
|
+
};
|
|
590
|
+
getGroup: {
|
|
591
|
+
params: NativeGetGroupParams;
|
|
592
|
+
result: NativeGetGroupResult;
|
|
593
|
+
};
|
|
594
|
+
searchGroups: {
|
|
595
|
+
params: NativeSearchGroupsParams;
|
|
596
|
+
result: NativeSearchGroupsResult;
|
|
597
|
+
};
|
|
598
|
+
searchUser: {
|
|
599
|
+
params: NativeSearchUserParams;
|
|
600
|
+
result: NativeSearchUserResult;
|
|
601
|
+
};
|
|
602
|
+
createLead: {
|
|
603
|
+
params: NativeCreateLeadParams;
|
|
604
|
+
result: NativeCreateLeadResult;
|
|
605
|
+
};
|
|
606
|
+
createUser: {
|
|
607
|
+
params: NativeCreateUserParams;
|
|
608
|
+
result: NativeCreateUserResult;
|
|
609
|
+
};
|
|
610
|
+
patchUser: {
|
|
611
|
+
params: NativePatchUserParams;
|
|
612
|
+
result: NativePatchUserResult;
|
|
613
|
+
};
|
|
614
|
+
deleteUser: {
|
|
615
|
+
params: NativeDeleteUserParams;
|
|
616
|
+
result: NativeDeleteUserResult;
|
|
617
|
+
};
|
|
618
|
+
upsertMember: {
|
|
619
|
+
params: NativeUpsertMemberParams;
|
|
620
|
+
result: NativeUpsertMemberResult;
|
|
621
|
+
};
|
|
622
|
+
searchUserChatsByContact: {
|
|
623
|
+
params: NativeSearchUserChatsByContactParams;
|
|
624
|
+
result: NativeSearchUserChatsByContactResult;
|
|
625
|
+
};
|
|
626
|
+
updateUserChatState: {
|
|
627
|
+
params: NativeUpdateUserChatStateParams;
|
|
628
|
+
result: NativeUpdateUserChatStateResult;
|
|
629
|
+
};
|
|
630
|
+
createUserChat: {
|
|
631
|
+
params: NativeCreateUserChatParams;
|
|
632
|
+
result: NativeCreateUserChatResult;
|
|
633
|
+
};
|
|
634
|
+
findOrCreateUserChatByMedium: {
|
|
635
|
+
params: FindOrCreateUserChatByMediumParams;
|
|
636
|
+
result: FindOrCreateUserChatByMediumResult;
|
|
637
|
+
};
|
|
638
|
+
submitHandlingWorkflowButton: {
|
|
639
|
+
params: NativeSubmitHandlingWorkflowButtonParams;
|
|
640
|
+
result: NativeSubmitHandlingWorkflowButtonResult;
|
|
641
|
+
};
|
|
642
|
+
searchUserChatsByMedium: {
|
|
643
|
+
params: NativeSearchUserChatsByMediumParams;
|
|
644
|
+
result: NativeSearchUserChatsByMediumResult;
|
|
645
|
+
};
|
|
646
|
+
updateUserChatStateByUser: {
|
|
647
|
+
params: NativeUpdateUserChatStateByUserParams;
|
|
648
|
+
result: NativeUpdateUserChatStateByUserResult;
|
|
649
|
+
};
|
|
650
|
+
startUserChatFromUserByMedium: {
|
|
651
|
+
params: NativeStartUserChatFromUserByMediumParams;
|
|
652
|
+
result: NativeStartUserChatFromUserByMediumResult;
|
|
653
|
+
};
|
|
654
|
+
patchMessage: {
|
|
655
|
+
params: NativePatchMessageParams;
|
|
656
|
+
result: NativePatchMessageResult;
|
|
657
|
+
};
|
|
658
|
+
getPlugin: {
|
|
659
|
+
params: NativeGetPluginParams;
|
|
660
|
+
result: NativeGetPluginResult;
|
|
661
|
+
};
|
|
662
|
+
registerCommerce: {
|
|
663
|
+
params: NativeRegisterCommerceParams;
|
|
664
|
+
result: NativeRegisterCommerceResult;
|
|
665
|
+
};
|
|
666
|
+
deregisterCommerce: {
|
|
667
|
+
params: NativeDeregisterCommerceParams;
|
|
668
|
+
result: NativeDeregisterCommerceResult;
|
|
669
|
+
};
|
|
670
|
+
createEvent: {
|
|
671
|
+
params: NativeCreateEventParams;
|
|
672
|
+
result: NativeCreateEventResult;
|
|
673
|
+
};
|
|
674
|
+
findContactsByUser: {
|
|
675
|
+
params: NativeFindContactsByUserParams;
|
|
676
|
+
result: NativeFindContactsByUserResult;
|
|
677
|
+
};
|
|
678
|
+
findOrCreateContactAndUser: {
|
|
679
|
+
params: FindOrCreateContactAndUserParams;
|
|
680
|
+
result: FindOrCreateContactAndUserResult;
|
|
681
|
+
};
|
|
682
|
+
findContactsByAddress: {
|
|
683
|
+
params: NativeFindContactsByAddressParams;
|
|
684
|
+
result: NativeFindContactsByAddressResult;
|
|
685
|
+
};
|
|
686
|
+
createMediumLink: {
|
|
687
|
+
params: NativeCreateMediumLinkParams;
|
|
688
|
+
result: NativeCreateMediumLinkResult;
|
|
689
|
+
};
|
|
690
|
+
deleteMediumLink: {
|
|
691
|
+
params: NativeDeleteMediumLinkParams;
|
|
692
|
+
result: NativeDeleteMediumLinkResult;
|
|
693
|
+
};
|
|
694
|
+
getRole: {
|
|
695
|
+
params: NativeGetRoleParams;
|
|
696
|
+
result: NativeGetRoleResult;
|
|
697
|
+
};
|
|
698
|
+
searchUserChatSchemas: {
|
|
699
|
+
params: NativeSearchUserChatSchemasParams;
|
|
700
|
+
result: NativeSearchUserChatSchemasResult;
|
|
701
|
+
};
|
|
702
|
+
searchUserSchemas: {
|
|
703
|
+
params: NativeSearchUserSchemasParams;
|
|
704
|
+
result: NativeSearchUserSchemasResult;
|
|
705
|
+
};
|
|
706
|
+
searchEventSchemasByEventName: {
|
|
707
|
+
params: NativeSearchEventSchemasByEventNameParams;
|
|
708
|
+
result: NativeSearchEventSchemasByEventNameResult;
|
|
709
|
+
};
|
|
710
|
+
createAppSchemas: {
|
|
711
|
+
params: NativeCreateAppSchemasParams;
|
|
712
|
+
result: NativeCreateAppSchemasResult;
|
|
713
|
+
};
|
|
714
|
+
issueEntityToken: {
|
|
715
|
+
params: NativeIssueEntityTokenParams;
|
|
716
|
+
result: NativeIssueEntityTokenResult;
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
export type NativeFunctionMethod = keyof NativeFunctionTypeMap;
|
|
720
|
+
export type NativeFunctionParams<TMethod extends NativeFunctionMethod> = NativeFunctionTypeMap[TMethod]["params"];
|
|
721
|
+
export type NativeFunctionResult<TMethod extends NativeFunctionMethod> = NativeFunctionTypeMap[TMethod]["result"];
|
|
722
|
+
//# sourceMappingURL=native.d.ts.map
|