@microsoft/agents-hosting-extensions-teams 1.1.4-geb1c05c291 → 1.2.0-alpha.18.g3c104e426a

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.
@@ -2,35 +2,10 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { InputFile, InputFileDownloader, TurnContext, TurnState } from '@microsoft/agents-hosting';
5
+ import { TeamsAttachmentDownloader as AppTeamsAttachmentDownloader } from '@microsoft/agents-hosting';
6
6
  /**
7
+ * @deprecated Use {@link TeamsAttachmentDownloader} from @microsoft/agents-hosting instead.
7
8
  * Downloads attachments from Teams using the bots access token.
8
9
  */
9
- export declare class TeamsAttachmentDownloader<TState extends TurnState = TurnState> implements InputFileDownloader<TState> {
10
- private _httpClient;
11
- private _stateKey;
12
- constructor(stateKey?: string);
13
- /**
14
- * Download any files relative to the current user's input.
15
- * @template TState - Type of the state object passed to the `TurnContext.turnState` method.
16
- * @param {TurnContext} context Context for the current turn of conversation.
17
- * @param {TState} state Application state for the current turn of conversation.
18
- * @returns {Promise<InputFile[]>} Promise that resolves to an array of downloaded input files.
19
- */
20
- downloadFiles(context: TurnContext): Promise<InputFile[]>;
21
- /**
22
- * @private
23
- * @param {Attachment} attachment - Attachment to download.
24
- * @param {string} accessToken - Access token to use for downloading.
25
- * @returns {Promise<InputFile>} - Promise that resolves to the downloaded input file.
26
- */
27
- private downloadFile;
28
- /**
29
- * Downloads files from the attachments in the current turn context and stores them in state.
30
- *
31
- * @param context The turn context containing the activity with attachments.
32
- * @param state The turn state to store the files in.
33
- * @returns A promise that resolves when the downloaded files are stored.
34
- */
35
- downloadAndStoreFiles(context: TurnContext, state: TState): Promise<void>;
10
+ export declare class TeamsAttachmentDownloader extends AppTeamsAttachmentDownloader {
36
11
  }
@@ -3,90 +3,14 @@
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Licensed under the MIT License.
5
5
  */
6
- var __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
6
  Object.defineProperty(exports, "__esModule", { value: true });
10
7
  exports.TeamsAttachmentDownloader = void 0;
11
- const axios_1 = __importDefault(require("axios"));
12
- const zod_1 = require("zod");
8
+ const agents_hosting_1 = require("@microsoft/agents-hosting");
13
9
  /**
10
+ * @deprecated Use {@link TeamsAttachmentDownloader} from @microsoft/agents-hosting instead.
14
11
  * Downloads attachments from Teams using the bots access token.
15
12
  */
16
- class TeamsAttachmentDownloader {
17
- constructor(stateKey = 'inputFiles') {
18
- this._httpClient = axios_1.default.create();
19
- this._stateKey = stateKey;
20
- }
21
- /**
22
- * Download any files relative to the current user's input.
23
- * @template TState - Type of the state object passed to the `TurnContext.turnState` method.
24
- * @param {TurnContext} context Context for the current turn of conversation.
25
- * @param {TState} state Application state for the current turn of conversation.
26
- * @returns {Promise<InputFile[]>} Promise that resolves to an array of downloaded input files.
27
- */
28
- async downloadFiles(context) {
29
- var _a;
30
- // Filter out HTML attachments
31
- const attachments = (_a = context.activity.attachments) === null || _a === void 0 ? void 0 : _a.filter((a) => !a.contentType.startsWith('text/html'));
32
- if (!attachments || attachments.length === 0) {
33
- return Promise.resolve([]);
34
- }
35
- const connectorClient = context.turnState.get('connectorClient');
36
- this._httpClient.defaults.headers = connectorClient.axiosInstance.defaults.headers;
37
- const files = [];
38
- for (const attachment of attachments) {
39
- const file = await this.downloadFile(attachment);
40
- if (file) {
41
- files.push(file);
42
- }
43
- }
44
- return files;
45
- }
46
- /**
47
- * @private
48
- * @param {Attachment} attachment - Attachment to download.
49
- * @param {string} accessToken - Access token to use for downloading.
50
- * @returns {Promise<InputFile>} - Promise that resolves to the downloaded input file.
51
- */
52
- async downloadFile(attachment) {
53
- let inputFile;
54
- if (attachment.contentType === 'application/vnd.microsoft.teams.file.download.info') {
55
- const contentSchema = zod_1.z.object({ downloadUrl: zod_1.z.string() });
56
- const contentValue = contentSchema.parse(attachment.content);
57
- const response = await this._httpClient.get(contentValue.downloadUrl, { responseType: 'arraybuffer' });
58
- const content = Buffer.from(response.data, 'binary');
59
- let contentType = attachment.contentType;
60
- if (contentType === 'image/*') {
61
- contentType = 'image/png';
62
- }
63
- inputFile = { content, contentType, contentUrl: attachment.contentUrl };
64
- }
65
- else if (attachment.contentType === 'image/*') {
66
- const response = await this._httpClient.get(attachment.contentUrl, { responseType: 'arraybuffer' });
67
- const content = Buffer.from(response.data, 'binary');
68
- inputFile = { content, contentType: attachment.contentType, contentUrl: attachment.contentUrl };
69
- }
70
- else {
71
- inputFile = {
72
- content: Buffer.from(attachment.content),
73
- contentType: attachment.contentType,
74
- contentUrl: attachment.contentUrl
75
- };
76
- }
77
- return inputFile;
78
- }
79
- /**
80
- * Downloads files from the attachments in the current turn context and stores them in state.
81
- *
82
- * @param context The turn context containing the activity with attachments.
83
- * @param state The turn state to store the files in.
84
- * @returns A promise that resolves when the downloaded files are stored.
85
- */
86
- async downloadAndStoreFiles(context, state) {
87
- const files = await this.downloadFiles(context);
88
- state.setValue(this._stateKey, files);
89
- }
13
+ class TeamsAttachmentDownloader extends agents_hosting_1.TeamsAttachmentDownloader {
90
14
  }
91
15
  exports.TeamsAttachmentDownloader = TeamsAttachmentDownloader;
92
16
  //# sourceMappingURL=teamsAttachmentDownloader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"teamsAttachmentDownloader.js","sourceRoot":"","sources":["../../src/teamsAttachmentDownloader.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAIH,kDAA4C;AAC5C,6BAAuB;AACvB;;GAEG;AACH,MAAa,yBAAyB;IAGpC,YAAoB,WAAmB,YAAY;QACjD,IAAI,CAAC,WAAW,GAAG,eAAK,CAAC,MAAM,EAAE,CAAA;QACjC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;IAC3B,CAAC;IAED;;;;;;SAMK;IACE,KAAK,CAAC,aAAa,CAAE,OAAoB;;QAC9C,8B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8DA+EC"}
1
+ {"version":3,"file":"teamsAttachmentDownloader.js","sourceRoot":"","sources":["../../src/teamsAttachmentDownloader.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,8DAAqG;AAErG;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,0CAA4B;CAC1E;AADD,8DACC"}
@@ -2,12 +2,12 @@
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
+ import { Activity, ConversationReference } from '@microsoft/agents-activity';
5
6
  import { TeamsChannelAccount } from './activity-extensions/teamsChannelAccount';
6
7
  import { TeamsMeetingParticipant } from './meeting/teamsMeetingParticipant';
7
8
  import { MeetingInfo } from './meeting/meetingInfo';
8
9
  import { MeetingNotification } from './meeting/meetingNotification';
9
10
  import { MeetingNotificationResponse } from './meeting/meetingNotificationResponse';
10
- import { Activity, ConversationReference } from '@microsoft/agents-activity';
11
11
  import { TurnContext, TurnState } from '@microsoft/agents-hosting';
12
12
  import { ChannelInfo } from './activity-extensions/channelInfo';
13
13
  import { BatchFailedEntriesResponse, BatchOperationResponse, BatchOperationStateResponse, CancelOperationResponse, TeamDetails, TeamsMember, TeamsPagedMembersResult } from './client/teamsConnectorClient.types';
@@ -6,6 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.TeamsInfo = void 0;
8
8
  const agents_activity_1 = require("@microsoft/agents-activity");
9
+ const errorHelper_1 = require("./errorHelper");
9
10
  const teamsConnectorClient_1 = require("./client/teamsConnectorClient");
10
11
  const teamsChannelDataParser_1 = require("./activity-extensions/teamsChannelDataParser");
11
12
  const agents_hosting_1 = require("@microsoft/agents-hosting");
@@ -27,7 +28,7 @@ class TeamsInfo {
27
28
  static async getMeetingParticipant(context, meetingId, participantId, tenantId) {
28
29
  var _a;
29
30
  if (!context) {
30
- throw new Error('context is required.');
31
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ContextRequired);
31
32
  }
32
33
  const activity = context.activity;
33
34
  const teamsChannelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData); // teamsGetTeamMeetingInfo(activity)
@@ -35,14 +36,14 @@ class TeamsInfo {
35
36
  meetingId = (_a = teamsChannelData.meeting) === null || _a === void 0 ? void 0 : _a.id;
36
37
  }
37
38
  if (!meetingId) {
38
- throw new Error('meetingId is required.');
39
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.MeetingIdRequired);
39
40
  }
40
41
  if (participantId == null) {
41
42
  const from = activity.from;
42
43
  participantId = from === null || from === void 0 ? void 0 : from.aadObjectId;
43
44
  }
44
45
  if (!participantId) {
45
- throw new Error('participantId is required.');
46
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ParticipantIdRequired);
46
47
  }
47
48
  if (tenantId === undefined) {
48
49
  const tenant = teamsChannelData.tenant; // teamsGetTenant(activity)
@@ -82,7 +83,7 @@ class TeamsInfo {
82
83
  teamId = (_a = teamsChannelData.team) === null || _a === void 0 ? void 0 : _a.id;
83
84
  }
84
85
  if (!teamId) {
85
- throw new Error('teamId is required.');
86
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TeamIdRequired);
86
87
  }
87
88
  const res = await this.getRestClient(context).fetchTeamDetails(teamId);
88
89
  return res;
@@ -98,13 +99,13 @@ class TeamsInfo {
98
99
  */
99
100
  static async sendMessageToTeamsChannel(context, activity, teamsChannelId, appId) {
100
101
  if (!context) {
101
- throw new Error('TurnContext cannot be null');
102
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TurnContextCannotBeNull);
102
103
  }
103
104
  if (!activity) {
104
- throw new Error('Activity cannot be null');
105
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ActivityCannotBeNull);
105
106
  }
106
107
  if (!teamsChannelId) {
107
- throw new Error('The teamsChannelId cannot be null or empty');
108
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TeamsChannelIdRequired);
108
109
  }
109
110
  const convoParams = {
110
111
  isGroup: true,
@@ -151,7 +152,7 @@ class TeamsInfo {
151
152
  teamId = (_a = teamsChannelData.team) === null || _a === void 0 ? void 0 : _a.id;
152
153
  }
153
154
  if (!teamId) {
154
- throw new Error('teamId is required.');
155
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TeamIdRequired);
155
156
  }
156
157
  return await this.getRestClient(context).fetchChannelList(teamId);
157
158
  }
@@ -211,7 +212,7 @@ class TeamsInfo {
211
212
  teamId = (_a = teamsChannelData.team) === null || _a === void 0 ? void 0 : _a.id;
212
213
  }
213
214
  if (!teamId) {
214
- throw new Error('teamId is required.');
215
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TeamIdRequired);
215
216
  }
216
217
  const pagedResults = await this.getRestClient(context).getConversationPagedMember(teamId, pageSize, continuationToken);
217
218
  do {
@@ -251,7 +252,7 @@ class TeamsInfo {
251
252
  meetingId = meeting === null || meeting === void 0 ? void 0 : meeting.id;
252
253
  }
253
254
  if (!meetingId) {
254
- throw new Error('meetingId is required.');
255
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.MeetingIdRequired);
255
256
  }
256
257
  return await this.getRestClient(context).sendMeetingNotification(meetingId, notification);
257
258
  }
@@ -266,13 +267,13 @@ class TeamsInfo {
266
267
  */
267
268
  static async sendMessageToListOfUsers(context, activity, tenantId, members) {
268
269
  if (!activity) {
269
- throw new Error('activity is required.');
270
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ActivityRequired);
270
271
  }
271
272
  if (!tenantId) {
272
- throw new Error('tenantId is required.');
273
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TenantIdRequired);
273
274
  }
274
275
  if (!members || members.length === 0) {
275
- throw new Error('members list is required.');
276
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.MembersListRequired);
276
277
  }
277
278
  return await this.getRestClient(context).sendMessageToListOfUsers(activity, tenantId, members);
278
279
  }
@@ -286,10 +287,10 @@ class TeamsInfo {
286
287
  */
287
288
  static async sendMessageToAllUsersInTenant(context, activity, tenantId) {
288
289
  if (!activity) {
289
- throw new Error('activity is required.');
290
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ActivityRequired);
290
291
  }
291
292
  if (!tenantId) {
292
- throw new Error('tenantId is required.');
293
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TenantIdRequired);
293
294
  }
294
295
  return await this.getRestClient(context).sendMessageToAllUsersInTenant(activity, tenantId);
295
296
  }
@@ -304,13 +305,13 @@ class TeamsInfo {
304
305
  */
305
306
  static async sendMessageToAllUsersInTeam(context, activity, tenantId, teamId) {
306
307
  if (!activity) {
307
- throw new Error('activity is required.');
308
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ActivityRequired);
308
309
  }
309
310
  if (!tenantId) {
310
- throw new Error('tenantId is required.');
311
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TenantIdRequired);
311
312
  }
312
313
  if (!teamId) {
313
- throw new Error('teamId is required.');
314
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TeamIdRequired);
314
315
  }
315
316
  return await this.getRestClient(context).sendMessageToAllUsersInTeam(activity, tenantId, teamId);
316
317
  }
@@ -325,13 +326,13 @@ class TeamsInfo {
325
326
  */
326
327
  static async sendMessageToListOfChannels(context, activity, tenantId, members) {
327
328
  if (!activity) {
328
- throw new Error('activity is required.');
329
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.ActivityRequired);
329
330
  }
330
331
  if (!tenantId) {
331
- throw new Error('tenantId is required.');
332
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.TenantIdRequired);
332
333
  }
333
334
  if (!members || members.length === 0) {
334
- throw new Error('members list is required.');
335
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.MembersListRequired);
335
336
  }
336
337
  return this.getRestClient(context).sendMessageToListOfChannels(activity, tenantId, members);
337
338
  }
@@ -344,7 +345,7 @@ class TeamsInfo {
344
345
  */
345
346
  static async getOperationState(context, operationId) {
346
347
  if (!operationId) {
347
- throw new Error('operationId is required.');
348
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.OperationIdRequired);
348
349
  }
349
350
  return await this.getRestClient(context).getOperationState(operationId);
350
351
  }
@@ -357,7 +358,7 @@ class TeamsInfo {
357
358
  */
358
359
  static async getFailedEntries(context, operationId) {
359
360
  if (!operationId) {
360
- throw new Error('operationId is required.');
361
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.OperationIdRequired);
361
362
  }
362
363
  return await this.getRestClient(context).getFailedEntries(operationId);
363
364
  }
@@ -370,7 +371,7 @@ class TeamsInfo {
370
371
  */
371
372
  static async cancelOperation(context, operationId) {
372
373
  if (!operationId) {
373
- throw new Error('operationId is required.');
374
+ throw agents_activity_1.ExceptionHelper.generateException(Error, errorHelper_1.Errors.OperationIdRequired);
374
375
  }
375
376
  return await this.getRestClient(context).cancelOperation(operationId);
376
377
  }
@@ -1 +1 @@
1
- {"version":3,"file":"teamsInfo.js","sourceRoot":"","sources":["../../src/teamsInfo.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAOH,gEAA8G;AAC9G,wEAAoE;AACpE,yFAAoF;AACpF,8DAAiG;AAIjG;;;;GAIG;AACH,MAAa,SAAS;IACpB;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAChC,OAAoB,EACpB,SAAkB,EAClB,aAAsB,EACtB,QAAiB;;QAEjB,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAA;QACzC,CAAC;QAED,MAAM,QAAQ,GAAG,OAAO,CAA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{
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-hosting-extensions-teams",
4
- "version": "1.1.4-geb1c05c291",
4
+ "version": "1.2.0-alpha.18.g3c104e426a",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "main": "dist/src/index.js",
20
20
  "types": "dist/src/index.d.ts",
21
21
  "dependencies": {
22
- "@microsoft/agents-hosting": "1.1.4-geb1c05c291"
22
+ "@microsoft/agents-hosting": "1.2.0-alpha.18.g3c104e426a"
23
23
  },
24
24
  "license": "MIT",
25
25
  "files": [
@@ -1,6 +1,7 @@
1
1
  /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */
2
2
  import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
3
- import { Activity, ChannelAccount } from '@microsoft/agents-activity'
3
+ import { Activity, ChannelAccount, ExceptionHelper } from '@microsoft/agents-activity'
4
+ import { Errors } from '../errorHelper'
4
5
  import { TeamsChannelAccount } from '../activity-extensions/teamsChannelAccount'
5
6
  import { MeetingInfo } from '../meeting/meetingInfo'
6
7
  import { MeetingNotification } from '../meeting/meetingNotification'
@@ -48,7 +49,7 @@ export class TeamsConnectorClient {
48
49
  */
49
50
  private static getTeamId (activity: any): string {
50
51
  if (!activity) {
51
- throw new Error('Missing activity parameter')
52
+ throw ExceptionHelper.generateException(Error, Errors.MissingActivityParameter)
52
53
  }
53
54
  const channelData = activity.channelData as TeamsChannelData
54
55
  const team = channelData && (channelData.team != null) ? channelData.team : undefined
@@ -67,10 +68,10 @@ export class TeamsConnectorClient {
67
68
  static async getTeamMember (activity: any, teamId?: string, userId?: string) {
68
69
  const t = teamId || this.getTeamId(activity)
69
70
  if (!t) {
70
- throw new Error('This method is only valid within the scope of a MS Teams Team.')
71
+ throw ExceptionHelper.generateException(Error, Errors.OnlyValidInTeamsScope)
71
72
  }
72
73
  if (!userId) {
73
- throw new Error('userId is required')
74
+ throw ExceptionHelper.generateException(Error, Errors.UserIdRequired)
74
75
  }
75
76
  return await this.getMemberInternal(activity, t, userId)
76
77
  }
@@ -107,11 +108,11 @@ export class TeamsConnectorClient {
107
108
  userId: string
108
109
  ): Promise<ChannelAccount> {
109
110
  if (!conversationId) {
110
- throw new Error('conversationId is required')
111
+ throw ExceptionHelper.generateException(Error, Errors.ConversationIdRequired)
111
112
  }
112
113
  const client : ConnectorClient = activity.turnState?.get(activity.adapter.ConnectorClientKey)
113
114
  if (!client) {
114
- throw new Error('Client is not available in the context.')
115
+ throw ExceptionHelper.generateException(Error, Errors.ClientNotAvailable)
115
116
  }
116
117
  const teamMember: ChannelAccount = await client.getConversationMember(conversationId, userId)
117
118
  return teamMember
@@ -4,6 +4,8 @@
4
4
  */
5
5
  import * as z from 'zod'
6
6
  import { ActivityHandler, InvokeResponse, TurnContext } from '@microsoft/agents-hosting'
7
+ import { ExceptionHelper } from '@microsoft/agents-activity'
8
+ import { Errors } from '../errorHelper'
7
9
  import { AppBasedLinkQuery, MessagingExtensionAction, MessagingExtensionActionResponse, MessagingExtensionQuery, MessagingExtensionResponse, parseValueMessagingExtensionQuery } from '../messageExtension'
8
10
  import { TaskModuleRequest, TaskModuleResponse } from '../taskModule'
9
11
  import { FileConsentCardResponse } from '../file'
@@ -161,7 +163,7 @@ export class TeamsActivityHandler extends ActivityHandler {
161
163
  * @returns {Promise<InvokeResponse>} The invoke response.
162
164
  */
163
165
  protected async handleTeamsCardActionInvoke (_context: TurnContext): Promise<InvokeResponse> {
164
- throw new Error('NotImplemented')
166
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
165
167
  }
166
168
 
167
169
  /**
@@ -171,7 +173,7 @@ export class TeamsActivityHandler extends ActivityHandler {
171
173
  * @returns {Promise<ConfigResponse>} The config response.
172
174
  */
173
175
  protected async handleTeamsConfigFetch (_context: TurnContext, _configData: any): Promise<any> { // TODO ConfigResponse
174
- throw new Error('NotImplemented')
176
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
175
177
  }
176
178
 
177
179
  /**
@@ -181,7 +183,7 @@ export class TeamsActivityHandler extends ActivityHandler {
181
183
  * @returns {Promise<ConfigResponse>} The config response.
182
184
  */
183
185
  protected async handleTeamsConfigSubmit (_context: TurnContext, _configData: any): Promise<any> { // TODO ConfigResponse
184
- throw new Error('NotImplemented')
186
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
185
187
  }
186
188
 
187
189
  /**
@@ -200,7 +202,7 @@ export class TeamsActivityHandler extends ActivityHandler {
200
202
  case 'decline':
201
203
  return await this.handleTeamsFileConsentDecline(context, fileConsentCardResponse)
202
204
  default:
203
- throw new Error('BadRequest')
205
+ throw ExceptionHelper.generateException(Error, Errors.BadRequest)
204
206
  }
205
207
  }
206
208
 
@@ -214,7 +216,7 @@ export class TeamsActivityHandler extends ActivityHandler {
214
216
  _context: TurnContext,
215
217
  _fileConsentCardResponse: FileConsentCardResponse
216
218
  ): Promise<void> {
217
- throw new Error('NotImplemented')
219
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
218
220
  }
219
221
 
220
222
  /**
@@ -227,7 +229,7 @@ export class TeamsActivityHandler extends ActivityHandler {
227
229
  _context: TurnContext,
228
230
  _fileConsentCardResponse: FileConsentCardResponse
229
231
  ): Promise<void> {
230
- throw new Error('NotImplemented')
232
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
231
233
  }
232
234
 
233
235
  // TODO: Uncomment when O365ConnectorCardActionQuery is available
@@ -282,7 +284,7 @@ export class TeamsActivityHandler extends ActivityHandler {
282
284
  _context: TurnContext,
283
285
  _cardData: any
284
286
  ): Promise<void> {
285
- throw new Error('NotImplemented')
287
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
286
288
  }
287
289
 
288
290
  /**
@@ -295,7 +297,7 @@ export class TeamsActivityHandler extends ActivityHandler {
295
297
  _context: TurnContext,
296
298
  _taskModuleRequest: TaskModuleRequest
297
299
  ): Promise<TaskModuleResponse> {
298
- throw new Error('NotImplemented')
300
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
299
301
  }
300
302
 
301
303
  /**
@@ -308,7 +310,7 @@ export class TeamsActivityHandler extends ActivityHandler {
308
310
  _context: TurnContext,
309
311
  _taskModuleRequest: TaskModuleRequest
310
312
  ): Promise<TaskModuleResponse> {
311
- throw new Error('NotImplemented')
313
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
312
314
  }
313
315
 
314
316
  // TODO: Uncomment when TabRequest is available
@@ -343,7 +345,7 @@ export class TeamsActivityHandler extends ActivityHandler {
343
345
  _context: TurnContext,
344
346
  _query: AppBasedLinkQuery
345
347
  ): Promise<MessagingExtensionResponse> {
346
- throw new Error('NotImplemented')
348
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
347
349
  }
348
350
 
349
351
  /**
@@ -356,7 +358,7 @@ export class TeamsActivityHandler extends ActivityHandler {
356
358
  _context: TurnContext,
357
359
  _query: AppBasedLinkQuery
358
360
  ): Promise<MessagingExtensionResponse> {
359
- throw new Error('NotImplemented')
361
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
360
362
  }
361
363
 
362
364
  /**
@@ -369,7 +371,7 @@ export class TeamsActivityHandler extends ActivityHandler {
369
371
  _context: TurnContext,
370
372
  _query: MessagingExtensionQuery
371
373
  ): Promise<MessagingExtensionResponse> {
372
- throw new Error('NotImplemented')
374
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
373
375
  }
374
376
 
375
377
  /**
@@ -382,7 +384,7 @@ export class TeamsActivityHandler extends ActivityHandler {
382
384
  _context: TurnContext,
383
385
  _query: any
384
386
  ): Promise<MessagingExtensionResponse> {
385
- throw new Error('NotImplemented')
387
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
386
388
  }
387
389
 
388
390
  /**
@@ -402,7 +404,7 @@ export class TeamsActivityHandler extends ActivityHandler {
402
404
  case 'send':
403
405
  return await this.handleTeamsMessagingExtensionMessagePreviewSend(context, action)
404
406
  default:
405
- throw new Error('BadRequest')
407
+ throw ExceptionHelper.generateException(Error, Errors.BadRequest)
406
408
  }
407
409
  } else {
408
410
  return await this.handleTeamsMessagingExtensionSubmitAction(context, action)
@@ -419,7 +421,7 @@ export class TeamsActivityHandler extends ActivityHandler {
419
421
  _context: TurnContext,
420
422
  _action: MessagingExtensionAction
421
423
  ): Promise<MessagingExtensionActionResponse> {
422
- throw new Error('NotImplemented')
424
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
423
425
  }
424
426
 
425
427
  /**
@@ -432,7 +434,7 @@ export class TeamsActivityHandler extends ActivityHandler {
432
434
  _context: TurnContext,
433
435
  _action: MessagingExtensionAction
434
436
  ): Promise<MessagingExtensionActionResponse> {
435
- throw new Error('NotImplemented')
437
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
436
438
  }
437
439
 
438
440
  /**
@@ -445,7 +447,7 @@ export class TeamsActivityHandler extends ActivityHandler {
445
447
  _context: TurnContext,
446
448
  _action: MessagingExtensionAction
447
449
  ): Promise<MessagingExtensionActionResponse> {
448
- throw new Error('NotImplemented')
450
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
449
451
  }
450
452
 
451
453
  /**
@@ -458,7 +460,7 @@ export class TeamsActivityHandler extends ActivityHandler {
458
460
  _context: TurnContext,
459
461
  _action: MessagingExtensionAction
460
462
  ): Promise<MessagingExtensionActionResponse> {
461
- throw new Error('NotImplemented')
463
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
462
464
  }
463
465
 
464
466
  /**
@@ -471,7 +473,7 @@ export class TeamsActivityHandler extends ActivityHandler {
471
473
  _context: TurnContext,
472
474
  _query: MessagingExtensionQuery
473
475
  ): Promise<MessagingExtensionResponse> {
474
- throw new Error('NotImplemented')
476
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
475
477
  }
476
478
 
477
479
  /**
@@ -481,7 +483,7 @@ export class TeamsActivityHandler extends ActivityHandler {
481
483
  * @returns {Promise<void>}
482
484
  */
483
485
  protected async handleTeamsMessagingExtensionConfigurationSetting (_context: TurnContext, _settings: any): Promise<void> {
484
- throw new Error('NotImplemented')
486
+ throw ExceptionHelper.generateException(Error, Errors.NotImplemented)
485
487
  }
486
488
 
487
489
  /**