@microsoft/teams.apps 0.2.7

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.
Files changed (132) hide show
  1. package/README.md +35 -0
  2. package/dist/api.d.ts +21 -0
  3. package/dist/api.js +66 -0
  4. package/dist/app.d.ts +1137 -0
  5. package/dist/app.embed.d.ts +24 -0
  6. package/dist/app.embed.js +83 -0
  7. package/dist/app.events.d.ts +14 -0
  8. package/dist/app.events.js +51 -0
  9. package/dist/app.js +411 -0
  10. package/dist/app.oauth.d.ts +13 -0
  11. package/dist/app.oauth.js +106 -0
  12. package/dist/app.plugins.d.ts +24 -0
  13. package/dist/app.plugins.js +96 -0
  14. package/dist/app.process.d.ts +11 -0
  15. package/dist/app.process.js +141 -0
  16. package/dist/app.routing.d.ts +22 -0
  17. package/dist/app.routing.js +40 -0
  18. package/dist/container/container.d.ts +37 -0
  19. package/dist/container/container.js +46 -0
  20. package/dist/container/index.d.ts +2 -0
  21. package/dist/container/index.js +19 -0
  22. package/dist/container/provider.d.ts +9 -0
  23. package/dist/container/provider.js +11 -0
  24. package/dist/contexts/activity-error.d.ts +8 -0
  25. package/dist/contexts/activity-error.js +3 -0
  26. package/dist/contexts/activity-signin.d.ts +8 -0
  27. package/dist/contexts/activity-signin.js +3 -0
  28. package/dist/contexts/activity.d.ts +117 -0
  29. package/dist/contexts/activity.js +133 -0
  30. package/dist/contexts/client.d.ts +53 -0
  31. package/dist/contexts/client.js +3 -0
  32. package/dist/contexts/function.d.ts +17 -0
  33. package/dist/contexts/function.js +3 -0
  34. package/dist/contexts/index.d.ts +5 -0
  35. package/dist/contexts/index.js +22 -0
  36. package/dist/events/activity-response.d.ts +16 -0
  37. package/dist/events/activity-response.js +3 -0
  38. package/dist/events/activity-sent.d.ts +16 -0
  39. package/dist/events/activity-sent.js +3 -0
  40. package/dist/events/activity.d.ts +20 -0
  41. package/dist/events/activity.js +3 -0
  42. package/dist/events/error.d.ts +16 -0
  43. package/dist/events/error.js +3 -0
  44. package/dist/events/index.d.ts +18 -0
  45. package/dist/events/index.js +21 -0
  46. package/dist/index.d.ts +7 -0
  47. package/dist/index.js +47 -0
  48. package/dist/manifest.d.ts +1241 -0
  49. package/dist/manifest.js +3 -0
  50. package/dist/middleware/entra-token-validator.d.ts +75 -0
  51. package/dist/middleware/entra-token-validator.js +169 -0
  52. package/dist/middleware/index.d.ts +3 -0
  53. package/dist/middleware/index.js +22 -0
  54. package/dist/middleware/strip-mentions-text.d.ts +3 -0
  55. package/dist/middleware/strip-mentions-text.js +48 -0
  56. package/dist/middleware/with-client-auth.d.ts +13 -0
  57. package/dist/middleware/with-client-auth.js +40 -0
  58. package/dist/oauth.d.ts +9 -0
  59. package/dist/oauth.js +7 -0
  60. package/dist/plugins/http/index.d.ts +2 -0
  61. package/dist/plugins/http/index.js +19 -0
  62. package/dist/plugins/http/plugin.d.ts +986 -0
  63. package/dist/plugins/http/plugin.js +238 -0
  64. package/dist/plugins/http/stream.d.ts +956 -0
  65. package/dist/plugins/http/stream.js +128 -0
  66. package/dist/plugins/index.d.ts +1 -0
  67. package/dist/plugins/index.js +18 -0
  68. package/dist/router.d.ts +34 -0
  69. package/dist/router.js +91 -0
  70. package/dist/routes/activity.d.ts +8 -0
  71. package/dist/routes/activity.js +3 -0
  72. package/dist/routes/conversation-update.d.ts +6 -0
  73. package/dist/routes/conversation-update.js +3 -0
  74. package/dist/routes/event.d.ts +17 -0
  75. package/dist/routes/event.js +11 -0
  76. package/dist/routes/index.d.ts +20 -0
  77. package/dist/routes/index.js +24 -0
  78. package/dist/routes/install.d.ts +8 -0
  79. package/dist/routes/install.js +3 -0
  80. package/dist/routes/invoke/file-consent.d.ts +6 -0
  81. package/dist/routes/invoke/file-consent.js +3 -0
  82. package/dist/routes/invoke/index.d.ts +39 -0
  83. package/dist/routes/invoke/index.js +45 -0
  84. package/dist/routes/invoke/message-extension-submit.d.ts +6 -0
  85. package/dist/routes/invoke/message-extension-submit.js +3 -0
  86. package/dist/routes/invoke/message-submit.d.ts +10 -0
  87. package/dist/routes/invoke/message-submit.js +3 -0
  88. package/dist/routes/message-delete.d.ts +6 -0
  89. package/dist/routes/message-delete.js +3 -0
  90. package/dist/routes/message-update.d.ts +6 -0
  91. package/dist/routes/message-update.js +3 -0
  92. package/dist/types/constructor.d.ts +7 -0
  93. package/dist/types/constructor.js +3 -0
  94. package/dist/types/event-handler.d.ts +1 -0
  95. package/dist/types/event-handler.js +3 -0
  96. package/dist/types/event.d.ts +11 -0
  97. package/dist/types/event.js +3 -0
  98. package/dist/types/index.d.ts +7 -0
  99. package/dist/types/index.js +24 -0
  100. package/dist/types/plugin/decorators/dependency.d.ts +135 -0
  101. package/dist/types/plugin/decorators/dependency.js +49 -0
  102. package/dist/types/plugin/decorators/event.d.ts +18 -0
  103. package/dist/types/plugin/decorators/event.js +24 -0
  104. package/dist/types/plugin/decorators/index.d.ts +3 -0
  105. package/dist/types/plugin/decorators/index.js +12 -0
  106. package/dist/types/plugin/decorators/plugin.d.ts +25 -0
  107. package/dist/types/plugin/decorators/plugin.js +23 -0
  108. package/dist/types/plugin/index.d.ts +8 -0
  109. package/dist/types/plugin/index.js +25 -0
  110. package/dist/types/plugin/plugin-activity-event.d.ts +20 -0
  111. package/dist/types/plugin/plugin-activity-event.js +3 -0
  112. package/dist/types/plugin/plugin-activity-response-event.d.ts +20 -0
  113. package/dist/types/plugin/plugin-activity-response-event.js +3 -0
  114. package/dist/types/plugin/plugin-activity-sent-event.d.ts +16 -0
  115. package/dist/types/plugin/plugin-activity-sent-event.js +3 -0
  116. package/dist/types/plugin/plugin-error-event.d.ts +20 -0
  117. package/dist/types/plugin/plugin-error-event.js +3 -0
  118. package/dist/types/plugin/plugin-start-event.d.ts +11 -0
  119. package/dist/types/plugin/plugin-start-event.js +3 -0
  120. package/dist/types/plugin/plugin.d.ts +74 -0
  121. package/dist/types/plugin/plugin.js +3 -0
  122. package/dist/types/plugin/sender.d.ts +18 -0
  123. package/dist/types/plugin/sender.js +3 -0
  124. package/dist/types/prefixed.d.ts +3 -0
  125. package/dist/types/prefixed.js +3 -0
  126. package/dist/types/route-handler.d.ts +2 -0
  127. package/dist/types/route-handler.js +3 -0
  128. package/dist/types/streamer.d.ts +31 -0
  129. package/dist/types/streamer.js +3 -0
  130. package/dist/types/suffixed.d.ts +3 -0
  131. package/dist/types/suffixed.js +3 -0
  132. package/package.json +70 -0
package/dist/app.d.ts ADDED
@@ -0,0 +1,1137 @@
1
+ import { EventEmitter } from '@microsoft/teams.common/events';
2
+ import * as http from '@microsoft/teams.common/http';
3
+ import { ILogger } from '@microsoft/teams.common/logging';
4
+ import { IStorage, LocalStorage } from '@microsoft/teams.common/storage';
5
+ import { ActivityLike, ConversationReference, Credentials, IToken, StripMentionsTextOptions } from '@microsoft/teams.api';
6
+ import { AppClient } from './api';
7
+ import { IEvents } from './events';
8
+ import * as manifest from './manifest';
9
+ import * as middleware from './middleware';
10
+ import { OAuthSettings } from './oauth';
11
+ import { HttpPlugin } from './plugins';
12
+ import { Router } from './router';
13
+ import { IPlugin } from './types';
14
+ import { configTab, func, tab } from './app.embed';
15
+ import { event, onActivity, onActivityResponse, onActivitySent, onError } from './app.events';
16
+ import { onTokenExchange, onVerifyState } from './app.oauth';
17
+ import { getPlugin, inject, plugin } from './app.plugins';
18
+ import { $process } from './app.process';
19
+ import { message, on, use } from './app.routing';
20
+ import { Container } from './container';
21
+ export declare const REFRESH_TOKEN_BUFFER_MS: number;
22
+ /**
23
+ * App initialization options
24
+ */
25
+ export type AppOptions = Partial<Credentials> & {
26
+ /**
27
+ * http client or client options used to make api requests
28
+ */
29
+ readonly client?: http.Client | http.ClientOptions | (() => http.Client);
30
+ /**
31
+ * logger instance to use
32
+ */
33
+ readonly logger?: ILogger;
34
+ /**
35
+ * storage instance to use
36
+ */
37
+ readonly storage?: IStorage;
38
+ /**
39
+ * plugins to extend the apps functionality
40
+ */
41
+ readonly plugins?: Array<IPlugin>;
42
+ /**
43
+ * OAuth Settings
44
+ */
45
+ readonly oauth?: OAuthSettings;
46
+ /**
47
+ * The apps manifest
48
+ */
49
+ readonly manifest?: Partial<manifest.Manifest>;
50
+ /**
51
+ * Activity Options
52
+ */
53
+ readonly activity?: AppActivityOptions;
54
+ };
55
+ export type AppActivityOptions = {
56
+ readonly mentions?: {
57
+ /**
58
+ * Automatically remove `<at>...</at>` mention
59
+ * from inbound activity `text`
60
+ */
61
+ readonly stripText?: boolean | StripMentionsTextOptions;
62
+ };
63
+ };
64
+ export type AppTokens = {
65
+ /**
66
+ * bot token used to send activities
67
+ */
68
+ bot?: IToken;
69
+ /**
70
+ * graph token used to query the graph api
71
+ */
72
+ graph?: IToken;
73
+ };
74
+ /**
75
+ * The orchestrator for receiving/sending activities
76
+ */
77
+ export declare class App {
78
+ readonly options: AppOptions;
79
+ readonly api: AppClient;
80
+ readonly log: ILogger;
81
+ readonly http: HttpPlugin;
82
+ readonly client: http.Client;
83
+ readonly storage: IStorage;
84
+ readonly credentials?: Credentials;
85
+ readonly entraTokenValidator?: middleware.EntraTokenValidator;
86
+ /**
87
+ * the apps id
88
+ */
89
+ get id(): string | undefined;
90
+ /**
91
+ * the apps name
92
+ */
93
+ get name(): string | undefined;
94
+ get oauth(): {
95
+ defaultConnectionName: string;
96
+ };
97
+ /**
98
+ * the apps manifest
99
+ */
100
+ get manifest(): Partial<manifest.Manifest>;
101
+ protected readonly _manifest: Partial<manifest.Manifest>;
102
+ /**
103
+ * the apps auth tokens
104
+ */
105
+ get tokens(): AppTokens;
106
+ protected _tokens: AppTokens;
107
+ protected container: Container;
108
+ protected plugins: Array<IPlugin>;
109
+ protected router: Router;
110
+ protected tenantTokens: LocalStorage<string>;
111
+ protected events: EventEmitter<IEvents>;
112
+ protected startedAt?: Date;
113
+ protected port?: number;
114
+ private readonly _userAgent;
115
+ constructor(options?: AppOptions);
116
+ /**
117
+ * start the app
118
+ * @param port port to listen on
119
+ */
120
+ start(port?: number | string): Promise<void>;
121
+ /**
122
+ * stop the app
123
+ */
124
+ stop(): Promise<void>;
125
+ /**
126
+ * send an activity proactively
127
+ * @param conversationId the conversation to send to
128
+ * @param activity the activity to send
129
+ */
130
+ send(conversationId: string, activity: ActivityLike): Promise<{
131
+ id: string;
132
+ type: "message";
133
+ text?: string | undefined;
134
+ speak?: string | undefined;
135
+ inputHint?: import("@microsoft/teams.api").InputHint | undefined;
136
+ summary?: string | undefined;
137
+ textFormat?: import("@microsoft/teams.api").TextFormat | undefined;
138
+ attachmentLayout?: import("@microsoft/teams.api").AttachmentLayout | undefined;
139
+ attachments?: import("@microsoft/teams.api").Attachment[] | undefined;
140
+ suggestedActions?: import("@microsoft/teams.api").SuggestedActions | undefined;
141
+ importance?: import("@microsoft/teams.api").Importance | undefined;
142
+ deliveryMode?: import("@microsoft/teams.api").DeliveryMode | undefined;
143
+ expiration?: Date | undefined;
144
+ value?: any;
145
+ stripMentionsText?: ((options?: StripMentionsTextOptions) => import("@microsoft/teams.api").IMessageActivity) | undefined;
146
+ isRecipientMentioned?: (() => boolean) | undefined;
147
+ getAccountMention?: ((accountId: string) => import("@microsoft/teams.api").MentionEntity | undefined) | undefined;
148
+ serviceUrl?: string | undefined;
149
+ timestamp?: Date | undefined;
150
+ locale?: string | undefined;
151
+ localTimestamp?: Date | undefined;
152
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
153
+ from?: import("@microsoft/teams.api").Account | undefined;
154
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
155
+ relatesTo?: ConversationReference | undefined;
156
+ recipient?: import("@microsoft/teams.api").Account | undefined;
157
+ replyToId?: string | undefined;
158
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
159
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
160
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
161
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
162
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
163
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
164
+ isStreaming?: (() => boolean) | undefined;
165
+ } | {
166
+ id: string;
167
+ type: "messageUpdate";
168
+ text?: string | undefined;
169
+ speak?: string | undefined;
170
+ summary?: string | undefined;
171
+ expiration?: Date | undefined;
172
+ value?: any;
173
+ channelData?: (import("@microsoft/teams.api").ChannelData & {
174
+ eventType: "undeleteMessage" | "editMessage";
175
+ }) | undefined;
176
+ serviceUrl?: string | undefined;
177
+ timestamp?: Date | undefined;
178
+ locale?: string | undefined;
179
+ localTimestamp?: Date | undefined;
180
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
181
+ from?: import("@microsoft/teams.api").Account | undefined;
182
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
183
+ relatesTo?: ConversationReference | undefined;
184
+ recipient?: import("@microsoft/teams.api").Account | undefined;
185
+ replyToId?: string | undefined;
186
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
187
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
188
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
189
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
190
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
191
+ isStreaming?: (() => boolean) | undefined;
192
+ } | {
193
+ id: string;
194
+ type: "messageDelete";
195
+ channelData?: (import("@microsoft/teams.api").ChannelData & {
196
+ eventType: "softDeleteMessage";
197
+ }) | undefined;
198
+ serviceUrl?: string | undefined;
199
+ timestamp?: Date | undefined;
200
+ locale?: string | undefined;
201
+ localTimestamp?: Date | undefined;
202
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
203
+ from?: import("@microsoft/teams.api").Account | undefined;
204
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
205
+ relatesTo?: ConversationReference | undefined;
206
+ recipient?: import("@microsoft/teams.api").Account | undefined;
207
+ replyToId?: string | undefined;
208
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
209
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
210
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
211
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
212
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
213
+ isStreaming?: (() => boolean) | undefined;
214
+ } | {
215
+ id: string;
216
+ type: "messageReaction";
217
+ reactionsAdded?: import("@microsoft/teams.api").MessageReaction[] | undefined;
218
+ reactionsRemoved?: import("@microsoft/teams.api").MessageReaction[] | undefined;
219
+ serviceUrl?: string | undefined;
220
+ timestamp?: Date | undefined;
221
+ locale?: string | undefined;
222
+ localTimestamp?: Date | undefined;
223
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
224
+ from?: import("@microsoft/teams.api").Account | undefined;
225
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
226
+ relatesTo?: ConversationReference | undefined;
227
+ recipient?: import("@microsoft/teams.api").Account | undefined;
228
+ replyToId?: string | undefined;
229
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
230
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
231
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
232
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
233
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
234
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
235
+ isStreaming?: (() => boolean) | undefined;
236
+ } | {
237
+ id: string;
238
+ type: "event";
239
+ name?: "application/vnd.microsoft.readReceipt" | undefined;
240
+ serviceUrl?: string | undefined;
241
+ timestamp?: Date | undefined;
242
+ locale?: string | undefined;
243
+ localTimestamp?: Date | undefined;
244
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
245
+ from?: import("@microsoft/teams.api").Account | undefined;
246
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
247
+ relatesTo?: ConversationReference | undefined;
248
+ recipient?: import("@microsoft/teams.api").Account | undefined;
249
+ replyToId?: string | undefined;
250
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
251
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
252
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
253
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
254
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
255
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
256
+ isStreaming?: (() => boolean) | undefined;
257
+ } | {
258
+ id: string;
259
+ type: "event";
260
+ name?: "application/vnd.microsoft.meetingStart" | undefined;
261
+ value?: {
262
+ id: string;
263
+ meetingType: string;
264
+ joinUrl: string;
265
+ title: string;
266
+ startTime: Date;
267
+ } | undefined;
268
+ serviceUrl?: string | undefined;
269
+ timestamp?: Date | undefined;
270
+ locale?: string | undefined;
271
+ localTimestamp?: Date | undefined;
272
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
273
+ from?: import("@microsoft/teams.api").Account | undefined;
274
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
275
+ relatesTo?: ConversationReference | undefined;
276
+ recipient?: import("@microsoft/teams.api").Account | undefined;
277
+ replyToId?: string | undefined;
278
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
279
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
280
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
281
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
282
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
283
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
284
+ isStreaming?: (() => boolean) | undefined;
285
+ } | {
286
+ id: string;
287
+ type: "event";
288
+ name?: "application/vnd.microsoft.meetingEnd" | undefined;
289
+ value?: {
290
+ id: string;
291
+ meetingType: string;
292
+ joinUrl: string;
293
+ title: string;
294
+ endTime: Date;
295
+ } | undefined;
296
+ serviceUrl?: string | undefined;
297
+ timestamp?: Date | undefined;
298
+ locale?: string | undefined;
299
+ localTimestamp?: Date | undefined;
300
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
301
+ from?: import("@microsoft/teams.api").Account | undefined;
302
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
303
+ relatesTo?: ConversationReference | undefined;
304
+ recipient?: import("@microsoft/teams.api").Account | undefined;
305
+ replyToId?: string | undefined;
306
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
307
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
308
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
309
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
310
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
311
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
312
+ isStreaming?: (() => boolean) | undefined;
313
+ } | {
314
+ id: string;
315
+ type: "event";
316
+ name?: "application/vnd.microsoft.meetingParticipantJoin" | undefined;
317
+ value?: {
318
+ members: {
319
+ user: import("@microsoft/teams.api").Account;
320
+ meeting: {
321
+ inMeeting: boolean;
322
+ role: string;
323
+ };
324
+ }[];
325
+ } | undefined;
326
+ serviceUrl?: string | undefined;
327
+ timestamp?: Date | undefined;
328
+ locale?: string | undefined;
329
+ localTimestamp?: Date | undefined;
330
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
331
+ from?: import("@microsoft/teams.api").Account | undefined;
332
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
333
+ relatesTo?: ConversationReference | undefined;
334
+ recipient?: import("@microsoft/teams.api").Account | undefined;
335
+ replyToId?: string | undefined;
336
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
337
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
338
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
339
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
340
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
341
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
342
+ isStreaming?: (() => boolean) | undefined;
343
+ } | {
344
+ id: string;
345
+ type: "event";
346
+ name?: "application/vnd.microsoft.meetingParticipantLeave" | undefined;
347
+ value?: {
348
+ members: {
349
+ user: import("@microsoft/teams.api").Account;
350
+ meeting: {
351
+ inMeeting: boolean;
352
+ role: string;
353
+ };
354
+ }[];
355
+ } | undefined;
356
+ serviceUrl?: string | undefined;
357
+ timestamp?: Date | undefined;
358
+ locale?: string | undefined;
359
+ localTimestamp?: Date | undefined;
360
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
361
+ from?: import("@microsoft/teams.api").Account | undefined;
362
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
363
+ relatesTo?: ConversationReference | undefined;
364
+ recipient?: import("@microsoft/teams.api").Account | undefined;
365
+ replyToId?: string | undefined;
366
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
367
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
368
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
369
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
370
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
371
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
372
+ isStreaming?: (() => boolean) | undefined;
373
+ } | {
374
+ id: string;
375
+ type: "invoke";
376
+ name?: "fileConsent/invoke" | undefined;
377
+ value?: import("@microsoft/teams.api").FileConsentCardResponse | undefined;
378
+ relatesTo?: ConversationReference | undefined;
379
+ serviceUrl?: string | undefined;
380
+ timestamp?: Date | undefined;
381
+ locale?: string | undefined;
382
+ localTimestamp?: Date | undefined;
383
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
384
+ from?: import("@microsoft/teams.api").Account | undefined;
385
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
386
+ recipient?: import("@microsoft/teams.api").Account | undefined;
387
+ replyToId?: string | undefined;
388
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
389
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
390
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
391
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
392
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
393
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
394
+ isStreaming?: (() => boolean) | undefined;
395
+ } | {
396
+ id: string;
397
+ type: "invoke";
398
+ name?: "actionableMessage/executeAction" | undefined;
399
+ value?: import("@microsoft/teams.api").O365ConnectorCardActionQuery | undefined;
400
+ relatesTo?: ConversationReference | undefined;
401
+ serviceUrl?: string | undefined;
402
+ timestamp?: Date | undefined;
403
+ locale?: string | undefined;
404
+ localTimestamp?: Date | undefined;
405
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
406
+ from?: import("@microsoft/teams.api").Account | undefined;
407
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
408
+ recipient?: import("@microsoft/teams.api").Account | undefined;
409
+ replyToId?: string | undefined;
410
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
411
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
412
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
413
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
414
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
415
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
416
+ isStreaming?: (() => boolean) | undefined;
417
+ } | {
418
+ id: string;
419
+ type: "invoke";
420
+ name?: "composeExtension/anonymousQueryLink" | undefined;
421
+ value?: import("@microsoft/teams.api").AppBasedLinkQuery | undefined;
422
+ relatesTo?: ConversationReference | undefined;
423
+ serviceUrl?: string | undefined;
424
+ timestamp?: Date | undefined;
425
+ locale?: string | undefined;
426
+ localTimestamp?: Date | undefined;
427
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
428
+ from?: import("@microsoft/teams.api").Account | undefined;
429
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
430
+ recipient?: import("@microsoft/teams.api").Account | undefined;
431
+ replyToId?: string | undefined;
432
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
433
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
434
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
435
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
436
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
437
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
438
+ isStreaming?: (() => boolean) | undefined;
439
+ } | {
440
+ id: string;
441
+ type: "invoke";
442
+ name?: "composeExtension/fetchTask" | undefined;
443
+ value?: import("@microsoft/teams.api").MessagingExtensionAction | undefined;
444
+ relatesTo?: ConversationReference | undefined;
445
+ serviceUrl?: string | undefined;
446
+ timestamp?: Date | undefined;
447
+ locale?: string | undefined;
448
+ localTimestamp?: Date | undefined;
449
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
450
+ from?: import("@microsoft/teams.api").Account | undefined;
451
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
452
+ recipient?: import("@microsoft/teams.api").Account | undefined;
453
+ replyToId?: string | undefined;
454
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
455
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
456
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
457
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
458
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
459
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
460
+ isStreaming?: (() => boolean) | undefined;
461
+ } | {
462
+ id: string;
463
+ type: "invoke";
464
+ name?: "composeExtension/onCardButtonClicked" | undefined;
465
+ value?: any;
466
+ relatesTo?: ConversationReference | undefined;
467
+ serviceUrl?: string | undefined;
468
+ timestamp?: Date | undefined;
469
+ locale?: string | undefined;
470
+ localTimestamp?: Date | undefined;
471
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
472
+ from?: import("@microsoft/teams.api").Account | undefined;
473
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
474
+ recipient?: import("@microsoft/teams.api").Account | undefined;
475
+ replyToId?: string | undefined;
476
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
477
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
478
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
479
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
480
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
481
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
482
+ isStreaming?: (() => boolean) | undefined;
483
+ } | {
484
+ id: string;
485
+ type: "invoke";
486
+ name?: "composeExtension/queryLink" | undefined;
487
+ value?: import("@microsoft/teams.api").AppBasedLinkQuery | undefined;
488
+ relatesTo?: ConversationReference | undefined;
489
+ serviceUrl?: string | undefined;
490
+ timestamp?: Date | undefined;
491
+ locale?: string | undefined;
492
+ localTimestamp?: Date | undefined;
493
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
494
+ from?: import("@microsoft/teams.api").Account | undefined;
495
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
496
+ recipient?: import("@microsoft/teams.api").Account | undefined;
497
+ replyToId?: string | undefined;
498
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
499
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
500
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
501
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
502
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
503
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
504
+ isStreaming?: (() => boolean) | undefined;
505
+ } | {
506
+ id: string;
507
+ type: "invoke";
508
+ name?: "composeExtension/querySettingUrl" | undefined;
509
+ value?: import("@microsoft/teams.api").MessagingExtensionQuery | undefined;
510
+ relatesTo?: ConversationReference | undefined;
511
+ serviceUrl?: string | undefined;
512
+ timestamp?: Date | undefined;
513
+ locale?: string | undefined;
514
+ localTimestamp?: Date | undefined;
515
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
516
+ from?: import("@microsoft/teams.api").Account | undefined;
517
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
518
+ recipient?: import("@microsoft/teams.api").Account | undefined;
519
+ replyToId?: string | undefined;
520
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
521
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
522
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
523
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
524
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
525
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
526
+ isStreaming?: (() => boolean) | undefined;
527
+ } | {
528
+ id: string;
529
+ type: "invoke";
530
+ name?: "composeExtension/query" | undefined;
531
+ value?: import("@microsoft/teams.api").MessagingExtensionQuery | undefined;
532
+ relatesTo?: ConversationReference | undefined;
533
+ serviceUrl?: string | undefined;
534
+ timestamp?: Date | undefined;
535
+ locale?: string | undefined;
536
+ localTimestamp?: Date | undefined;
537
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
538
+ from?: import("@microsoft/teams.api").Account | undefined;
539
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
540
+ recipient?: import("@microsoft/teams.api").Account | undefined;
541
+ replyToId?: string | undefined;
542
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
543
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
544
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
545
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
546
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
547
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
548
+ isStreaming?: (() => boolean) | undefined;
549
+ } | {
550
+ id: string;
551
+ type: "invoke";
552
+ name?: "composeExtension/selectItem" | undefined;
553
+ value?: any;
554
+ relatesTo?: ConversationReference | undefined;
555
+ serviceUrl?: string | undefined;
556
+ timestamp?: Date | undefined;
557
+ locale?: string | undefined;
558
+ localTimestamp?: Date | undefined;
559
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
560
+ from?: import("@microsoft/teams.api").Account | undefined;
561
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
562
+ recipient?: import("@microsoft/teams.api").Account | undefined;
563
+ replyToId?: string | undefined;
564
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
565
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
566
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
567
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
568
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
569
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
570
+ isStreaming?: (() => boolean) | undefined;
571
+ } | {
572
+ id: string;
573
+ type: "invoke";
574
+ name?: "composeExtension/setting" | undefined;
575
+ value?: import("@microsoft/teams.api").MessagingExtensionQuery | undefined;
576
+ relatesTo?: ConversationReference | undefined;
577
+ serviceUrl?: string | undefined;
578
+ timestamp?: Date | undefined;
579
+ locale?: string | undefined;
580
+ localTimestamp?: Date | undefined;
581
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
582
+ from?: import("@microsoft/teams.api").Account | undefined;
583
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
584
+ recipient?: import("@microsoft/teams.api").Account | undefined;
585
+ replyToId?: string | undefined;
586
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
587
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
588
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
589
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
590
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
591
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
592
+ isStreaming?: (() => boolean) | undefined;
593
+ } | {
594
+ id: string;
595
+ type: "invoke";
596
+ name?: "composeExtension/submitAction" | undefined;
597
+ value?: import("@microsoft/teams.api").MessagingExtensionAction | undefined;
598
+ relatesTo?: ConversationReference | undefined;
599
+ serviceUrl?: string | undefined;
600
+ timestamp?: Date | undefined;
601
+ locale?: string | undefined;
602
+ localTimestamp?: Date | undefined;
603
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
604
+ from?: import("@microsoft/teams.api").Account | undefined;
605
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
606
+ recipient?: import("@microsoft/teams.api").Account | undefined;
607
+ replyToId?: string | undefined;
608
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
609
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
610
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
611
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
612
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
613
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
614
+ isStreaming?: (() => boolean) | undefined;
615
+ } | {
616
+ id: string;
617
+ type: "invoke";
618
+ name?: "config/fetch" | undefined;
619
+ value?: any;
620
+ relatesTo?: ConversationReference | undefined;
621
+ serviceUrl?: string | undefined;
622
+ timestamp?: Date | undefined;
623
+ locale?: string | undefined;
624
+ localTimestamp?: Date | undefined;
625
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
626
+ from?: import("@microsoft/teams.api").Account | undefined;
627
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
628
+ recipient?: import("@microsoft/teams.api").Account | undefined;
629
+ replyToId?: string | undefined;
630
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
631
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
632
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
633
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
634
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
635
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
636
+ isStreaming?: (() => boolean) | undefined;
637
+ } | {
638
+ id: string;
639
+ type: "invoke";
640
+ name?: "config/submit" | undefined;
641
+ value?: any;
642
+ relatesTo?: ConversationReference | undefined;
643
+ serviceUrl?: string | undefined;
644
+ timestamp?: Date | undefined;
645
+ locale?: string | undefined;
646
+ localTimestamp?: Date | undefined;
647
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
648
+ from?: import("@microsoft/teams.api").Account | undefined;
649
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
650
+ recipient?: import("@microsoft/teams.api").Account | undefined;
651
+ replyToId?: string | undefined;
652
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
653
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
654
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
655
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
656
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
657
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
658
+ isStreaming?: (() => boolean) | undefined;
659
+ } | {
660
+ id: string;
661
+ type: "invoke";
662
+ name?: "tab/fetch" | undefined;
663
+ value?: import("@microsoft/teams.api").TabRequest | undefined;
664
+ relatesTo?: ConversationReference | undefined;
665
+ serviceUrl?: string | undefined;
666
+ timestamp?: Date | undefined;
667
+ locale?: string | undefined;
668
+ localTimestamp?: Date | undefined;
669
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
670
+ from?: import("@microsoft/teams.api").Account | undefined;
671
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
672
+ recipient?: import("@microsoft/teams.api").Account | undefined;
673
+ replyToId?: string | undefined;
674
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
675
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
676
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
677
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
678
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
679
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
680
+ isStreaming?: (() => boolean) | undefined;
681
+ } | {
682
+ id: string;
683
+ type: "invoke";
684
+ name?: "tab/submit" | undefined;
685
+ value?: import("@microsoft/teams.api").TabRequest | undefined;
686
+ relatesTo?: ConversationReference | undefined;
687
+ serviceUrl?: string | undefined;
688
+ timestamp?: Date | undefined;
689
+ locale?: string | undefined;
690
+ localTimestamp?: Date | undefined;
691
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
692
+ from?: import("@microsoft/teams.api").Account | undefined;
693
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
694
+ recipient?: import("@microsoft/teams.api").Account | undefined;
695
+ replyToId?: string | undefined;
696
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
697
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
698
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
699
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
700
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
701
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
702
+ isStreaming?: (() => boolean) | undefined;
703
+ } | {
704
+ id: string;
705
+ type: "invoke";
706
+ name?: "task/fetch" | undefined;
707
+ value?: import("@microsoft/teams.api").TaskModuleRequest | undefined;
708
+ relatesTo?: ConversationReference | undefined;
709
+ serviceUrl?: string | undefined;
710
+ timestamp?: Date | undefined;
711
+ locale?: string | undefined;
712
+ localTimestamp?: Date | undefined;
713
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
714
+ from?: import("@microsoft/teams.api").Account | undefined;
715
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
716
+ recipient?: import("@microsoft/teams.api").Account | undefined;
717
+ replyToId?: string | undefined;
718
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
719
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
720
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
721
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
722
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
723
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
724
+ isStreaming?: (() => boolean) | undefined;
725
+ } | {
726
+ id: string;
727
+ type: "invoke";
728
+ name?: "task/submit" | undefined;
729
+ value?: import("@microsoft/teams.api").TaskModuleRequest | undefined;
730
+ relatesTo?: ConversationReference | undefined;
731
+ serviceUrl?: string | undefined;
732
+ timestamp?: Date | undefined;
733
+ locale?: string | undefined;
734
+ localTimestamp?: Date | undefined;
735
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
736
+ from?: import("@microsoft/teams.api").Account | undefined;
737
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
738
+ recipient?: import("@microsoft/teams.api").Account | undefined;
739
+ replyToId?: string | undefined;
740
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
741
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
742
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
743
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
744
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
745
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
746
+ isStreaming?: (() => boolean) | undefined;
747
+ } | {
748
+ id: string;
749
+ type: "invoke";
750
+ name?: "message/submitAction" | undefined;
751
+ value?: {
752
+ actionName: "feedback";
753
+ actionValue: {
754
+ reaction: "like" | "dislike";
755
+ feedback: string;
756
+ };
757
+ } | undefined;
758
+ relatesTo?: ConversationReference | undefined;
759
+ serviceUrl?: string | undefined;
760
+ timestamp?: Date | undefined;
761
+ locale?: string | undefined;
762
+ localTimestamp?: Date | undefined;
763
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
764
+ from?: import("@microsoft/teams.api").Account | undefined;
765
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
766
+ recipient?: import("@microsoft/teams.api").Account | undefined;
767
+ replyToId?: string | undefined;
768
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
769
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
770
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
771
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
772
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
773
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
774
+ isStreaming?: (() => boolean) | undefined;
775
+ } | {
776
+ id: string;
777
+ type: "invoke";
778
+ name?: "handoff/action" | undefined;
779
+ value?: {
780
+ continuation: string;
781
+ } | undefined;
782
+ relatesTo?: ConversationReference | undefined;
783
+ serviceUrl?: string | undefined;
784
+ timestamp?: Date | undefined;
785
+ locale?: string | undefined;
786
+ localTimestamp?: Date | undefined;
787
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
788
+ from?: import("@microsoft/teams.api").Account | undefined;
789
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
790
+ recipient?: import("@microsoft/teams.api").Account | undefined;
791
+ replyToId?: string | undefined;
792
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
793
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
794
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
795
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
796
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
797
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
798
+ isStreaming?: (() => boolean) | undefined;
799
+ } | {
800
+ id: string;
801
+ type: "invoke";
802
+ name?: "signin/tokenExchange" | undefined;
803
+ value?: import("@microsoft/teams.api").SignInExchangeToken | undefined;
804
+ serviceUrl?: string | undefined;
805
+ timestamp?: Date | undefined;
806
+ locale?: string | undefined;
807
+ localTimestamp?: Date | undefined;
808
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
809
+ from?: import("@microsoft/teams.api").Account | undefined;
810
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
811
+ relatesTo?: ConversationReference | undefined;
812
+ recipient?: import("@microsoft/teams.api").Account | undefined;
813
+ replyToId?: string | undefined;
814
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
815
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
816
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
817
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
818
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
819
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
820
+ isStreaming?: (() => boolean) | undefined;
821
+ } | {
822
+ id: string;
823
+ type: "invoke";
824
+ name?: "signin/verifyState" | undefined;
825
+ value?: import("@microsoft/teams.api").SigninStateVerifyQuery | undefined;
826
+ serviceUrl?: string | undefined;
827
+ timestamp?: Date | undefined;
828
+ locale?: string | undefined;
829
+ localTimestamp?: Date | undefined;
830
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
831
+ from?: import("@microsoft/teams.api").Account | undefined;
832
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
833
+ relatesTo?: ConversationReference | undefined;
834
+ recipient?: import("@microsoft/teams.api").Account | undefined;
835
+ replyToId?: string | undefined;
836
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
837
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
838
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
839
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
840
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
841
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
842
+ isStreaming?: (() => boolean) | undefined;
843
+ } | {
844
+ id: string;
845
+ type: "invoke";
846
+ name?: "adaptiveCard/action" | undefined;
847
+ value?: import("@microsoft/teams.api").AdaptiveCardInvokeValue | undefined;
848
+ serviceUrl?: string | undefined;
849
+ timestamp?: Date | undefined;
850
+ locale?: string | undefined;
851
+ localTimestamp?: Date | undefined;
852
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
853
+ from?: import("@microsoft/teams.api").Account | undefined;
854
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
855
+ relatesTo?: ConversationReference | undefined;
856
+ recipient?: import("@microsoft/teams.api").Account | undefined;
857
+ replyToId?: string | undefined;
858
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
859
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
860
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
861
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
862
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
863
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
864
+ isStreaming?: (() => boolean) | undefined;
865
+ } | {
866
+ id: string;
867
+ type: "trace";
868
+ name?: string | undefined;
869
+ label?: string | undefined;
870
+ valueType?: string | undefined;
871
+ value?: any;
872
+ relatesTo?: ConversationReference | undefined;
873
+ serviceUrl?: string | undefined;
874
+ timestamp?: Date | undefined;
875
+ locale?: string | undefined;
876
+ localTimestamp?: Date | undefined;
877
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
878
+ from?: import("@microsoft/teams.api").Account | undefined;
879
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
880
+ recipient?: import("@microsoft/teams.api").Account | undefined;
881
+ replyToId?: string | undefined;
882
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
883
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
884
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
885
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
886
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
887
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
888
+ isStreaming?: (() => boolean) | undefined;
889
+ } | {
890
+ id: string;
891
+ type: "typing";
892
+ text?: string | undefined;
893
+ serviceUrl?: string | undefined;
894
+ timestamp?: Date | undefined;
895
+ locale?: string | undefined;
896
+ localTimestamp?: Date | undefined;
897
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
898
+ from?: import("@microsoft/teams.api").Account | undefined;
899
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
900
+ relatesTo?: ConversationReference | undefined;
901
+ recipient?: import("@microsoft/teams.api").Account | undefined;
902
+ replyToId?: string | undefined;
903
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
904
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
905
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
906
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
907
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
908
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
909
+ isStreaming?: (() => boolean) | undefined;
910
+ } | {
911
+ id: string;
912
+ type: "handoff";
913
+ serviceUrl?: string | undefined;
914
+ timestamp?: Date | undefined;
915
+ locale?: string | undefined;
916
+ localTimestamp?: Date | undefined;
917
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
918
+ from?: import("@microsoft/teams.api").Account | undefined;
919
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
920
+ relatesTo?: ConversationReference | undefined;
921
+ recipient?: import("@microsoft/teams.api").Account | undefined;
922
+ replyToId?: string | undefined;
923
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
924
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
925
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
926
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
927
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
928
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
929
+ isStreaming?: (() => boolean) | undefined;
930
+ } | {
931
+ id: string;
932
+ type: "conversationUpdate";
933
+ membersAdded?: import("@microsoft/teams.api").Account[] | undefined;
934
+ membersRemoved?: import("@microsoft/teams.api").Account[] | undefined;
935
+ topicName?: string | undefined;
936
+ historyDisclosed?: boolean | undefined;
937
+ channelData?: (import("@microsoft/teams.api").ChannelData & {
938
+ eventType: "channelCreated" | "channelDeleted" | "channelRenamed" | "channelRestored" | "teamArchived" | "teamDeleted" | "teamHardDeleted" | "teamRenamed" | "teamRestored" | "teamUnarchived";
939
+ }) | undefined;
940
+ serviceUrl?: string | undefined;
941
+ timestamp?: Date | undefined;
942
+ locale?: string | undefined;
943
+ localTimestamp?: Date | undefined;
944
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
945
+ from?: import("@microsoft/teams.api").Account | undefined;
946
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
947
+ relatesTo?: ConversationReference | undefined;
948
+ recipient?: import("@microsoft/teams.api").Account | undefined;
949
+ replyToId?: string | undefined;
950
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
951
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
952
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
953
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
954
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
955
+ isStreaming?: (() => boolean) | undefined;
956
+ } | {
957
+ id: string;
958
+ type: "endOfConversation";
959
+ code?: import("@microsoft/teams.api").EndOfConversationCode | undefined;
960
+ text?: string | undefined;
961
+ serviceUrl?: string | undefined;
962
+ timestamp?: Date | undefined;
963
+ locale?: string | undefined;
964
+ localTimestamp?: Date | undefined;
965
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
966
+ from?: import("@microsoft/teams.api").Account | undefined;
967
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
968
+ relatesTo?: ConversationReference | undefined;
969
+ recipient?: import("@microsoft/teams.api").Account | undefined;
970
+ replyToId?: string | undefined;
971
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
972
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
973
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
974
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
975
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
976
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
977
+ isStreaming?: (() => boolean) | undefined;
978
+ } | {
979
+ id: string;
980
+ type: "command";
981
+ name?: string | undefined;
982
+ value?: import("@microsoft/teams.api").CommandValue<any> | undefined;
983
+ serviceUrl?: string | undefined;
984
+ timestamp?: Date | undefined;
985
+ locale?: string | undefined;
986
+ localTimestamp?: Date | undefined;
987
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
988
+ from?: import("@microsoft/teams.api").Account | undefined;
989
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
990
+ relatesTo?: ConversationReference | undefined;
991
+ recipient?: import("@microsoft/teams.api").Account | undefined;
992
+ replyToId?: string | undefined;
993
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
994
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
995
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
996
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
997
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
998
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
999
+ isStreaming?: (() => boolean) | undefined;
1000
+ } | {
1001
+ id: string;
1002
+ type: "commandResult";
1003
+ name?: string | undefined;
1004
+ value?: import("@microsoft/teams.api").CommandResultValue<any> | undefined;
1005
+ serviceUrl?: string | undefined;
1006
+ timestamp?: Date | undefined;
1007
+ locale?: string | undefined;
1008
+ localTimestamp?: Date | undefined;
1009
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
1010
+ from?: import("@microsoft/teams.api").Account | undefined;
1011
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
1012
+ relatesTo?: ConversationReference | undefined;
1013
+ recipient?: import("@microsoft/teams.api").Account | undefined;
1014
+ replyToId?: string | undefined;
1015
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
1016
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
1017
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
1018
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
1019
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
1020
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
1021
+ isStreaming?: (() => boolean) | undefined;
1022
+ } | {
1023
+ id: string;
1024
+ type: "installationUpdate";
1025
+ action?: "add" | undefined;
1026
+ serviceUrl?: string | undefined;
1027
+ timestamp?: Date | undefined;
1028
+ locale?: string | undefined;
1029
+ localTimestamp?: Date | undefined;
1030
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
1031
+ from?: import("@microsoft/teams.api").Account | undefined;
1032
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
1033
+ relatesTo?: ConversationReference | undefined;
1034
+ recipient?: import("@microsoft/teams.api").Account | undefined;
1035
+ replyToId?: string | undefined;
1036
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
1037
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
1038
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
1039
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
1040
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
1041
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
1042
+ isStreaming?: (() => boolean) | undefined;
1043
+ } | {
1044
+ id: string;
1045
+ type: "installationUpdate";
1046
+ action?: "remove" | undefined;
1047
+ serviceUrl?: string | undefined;
1048
+ timestamp?: Date | undefined;
1049
+ locale?: string | undefined;
1050
+ localTimestamp?: Date | undefined;
1051
+ channelId?: import("@microsoft/teams.api").ChannelID | undefined;
1052
+ from?: import("@microsoft/teams.api").Account | undefined;
1053
+ conversation?: import("@microsoft/teams.api").ConversationAccount | undefined;
1054
+ relatesTo?: ConversationReference | undefined;
1055
+ recipient?: import("@microsoft/teams.api").Account | undefined;
1056
+ replyToId?: string | undefined;
1057
+ entities?: import("@microsoft/teams.api").Entity[] | undefined;
1058
+ channelData?: import("@microsoft/teams.api").ChannelData | undefined;
1059
+ channel?: import("@microsoft/teams.api").ChannelInfo | undefined;
1060
+ team?: import("@microsoft/teams.api").TeamInfo | undefined;
1061
+ meeting?: import("@microsoft/teams.api").MeetingInfo | undefined;
1062
+ notification?: import("@microsoft/teams.api").NotificationInfo | undefined;
1063
+ isStreaming?: (() => boolean) | undefined;
1064
+ }>;
1065
+ /**
1066
+ * subscribe to an event
1067
+ * @param name event to subscribe to
1068
+ * @param cb callback to invoke
1069
+ */
1070
+ on: typeof on;
1071
+ /**
1072
+ * subscribe to a message event for a specific pattern
1073
+ * @param pattern pattern to match against message text
1074
+ * @param cb callback to invoke
1075
+ */
1076
+ message: typeof message;
1077
+ /**
1078
+ * register a middleware
1079
+ * @param cb callback to invoke
1080
+ */
1081
+ use: typeof use;
1082
+ /**
1083
+ * subscribe to an event
1084
+ * @param name the event to subscribe to
1085
+ * @param cb the callback to invoke
1086
+ */
1087
+ event: typeof event;
1088
+ /**
1089
+ * add a plugin
1090
+ * @param plugin plugin to add
1091
+ */
1092
+ plugin: typeof plugin;
1093
+ /**
1094
+ * get a plugin
1095
+ */
1096
+ getPlugin: typeof getPlugin;
1097
+ /**
1098
+ * add/update a function that can be called remotely
1099
+ * @param name The unique function name
1100
+ * @param cb The callback to handle the function
1101
+ */
1102
+ function: typeof func;
1103
+ /**
1104
+ * add/update a static tab.
1105
+ * the tab will be hosted at
1106
+ * `http://localhost:{{PORT}}/tabs/{{name}}` or `https://{{BOT_DOMAIN}}/tabs/{{name}}`
1107
+ * @remark scopes default to `personal`
1108
+ * @param name A unique identifier for the entity which the tab displays.
1109
+ * @param path The path to the web `dist` folder.
1110
+ */
1111
+ tab: typeof tab;
1112
+ /**
1113
+ * add a configurable tab
1114
+ * @remark scopes defaults to `team`
1115
+ * @param url The url to use when configuring the tab.
1116
+ */
1117
+ configTab: typeof configTab;
1118
+ /**
1119
+ * activity handler called when an inbound activity is received
1120
+ * @param sender the plugin to use for sending activities
1121
+ * @param event the received activity event
1122
+ */
1123
+ process: typeof $process;
1124
+ protected onTokenExchange: typeof onTokenExchange;
1125
+ protected onVerifyState: typeof onVerifyState;
1126
+ protected inject: typeof inject;
1127
+ protected onError: typeof onError;
1128
+ protected onActivity: typeof onActivity;
1129
+ protected onActivitySent: typeof onActivitySent;
1130
+ protected onActivityResponse: typeof onActivityResponse;
1131
+ /**
1132
+ * Refresh the tokens for the app
1133
+ */
1134
+ protected refreshTokens(): Promise<void>;
1135
+ private refreshBotToken;
1136
+ private refreshGraphToken;
1137
+ }