@microsoft/agents-hosting-extensions-teams 0.5.19-gc1e2ea1096 → 0.6.11

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 (55) hide show
  1. package/dist/src/file/fileConsentCardResponse.d.ts +1 -1
  2. package/dist/src/file/fileUploadInfo.d.ts +1 -1
  3. package/dist/src/meeting/meetingDetails.d.ts +1 -1
  4. package/dist/src/meeting/meetingDetailsBase.d.ts +1 -1
  5. package/dist/src/meeting/meetingEndEventDetails.d.ts +1 -1
  6. package/dist/src/meeting/meetingEventDetails.d.ts +1 -1
  7. package/dist/src/meeting/meetingNotificationBase.d.ts +1 -1
  8. package/dist/src/meeting/meetingNotificationChannelData.d.ts +1 -1
  9. package/dist/src/meeting/meetingNotificationRecipientFailureInfo.d.ts +1 -1
  10. package/dist/src/meeting/meetingParticipantsEventDetails.d.ts +1 -1
  11. package/dist/src/meeting/meetingStageSurface.d.ts +1 -1
  12. package/dist/src/meeting/meetingStartEventDetails.d.ts +1 -1
  13. package/dist/src/meeting/meetingTabIconSurface.d.ts +1 -1
  14. package/dist/src/meeting/targetedMeetingNotification.d.ts +1 -1
  15. package/dist/src/meeting/targetedMeetingNotificationValue.d.ts +1 -1
  16. package/dist/src/meeting/teamsMeetingMember.d.ts +1 -1
  17. package/dist/src/meeting/teamsMeetingParticipant.d.ts +1 -1
  18. package/dist/src/meeting/userMeetingDetails.d.ts +1 -1
  19. package/dist/src/taskModule/taskModuleContinueResponse.d.ts +1 -1
  20. package/dist/src/taskModule/taskModuleMessageResponse.d.ts +1 -1
  21. package/dist/src/taskModule/taskModuleRequest.d.ts +1 -1
  22. package/dist/src/taskModule/taskModuleRequestContext.d.ts +1 -1
  23. package/dist/src/taskModule/taskModuleResponse.d.ts +1 -1
  24. package/dist/src/taskModule/taskModuleResponseBase.d.ts +1 -1
  25. package/dist/src/taskModule/taskModuleTaskInfo.d.ts +1 -1
  26. package/dist/src/teamsAgentExtension.d.ts +96 -0
  27. package/dist/src/teamsAgentExtension.js +96 -0
  28. package/dist/src/teamsAgentExtension.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/file/fileConsentCardResponse.ts +1 -1
  31. package/src/file/fileUploadInfo.ts +1 -1
  32. package/src/meeting/meetingDetails.ts +1 -1
  33. package/src/meeting/meetingDetailsBase.ts +1 -1
  34. package/src/meeting/meetingEndEventDetails.ts +1 -1
  35. package/src/meeting/meetingEventDetails.ts +1 -1
  36. package/src/meeting/meetingNotificationBase.ts +1 -1
  37. package/src/meeting/meetingNotificationChannelData.ts +1 -1
  38. package/src/meeting/meetingNotificationRecipientFailureInfo.ts +1 -1
  39. package/src/meeting/meetingParticipantsEventDetails.ts +1 -1
  40. package/src/meeting/meetingStageSurface.ts +1 -1
  41. package/src/meeting/meetingStartEventDetails.ts +1 -1
  42. package/src/meeting/meetingTabIconSurface.ts +1 -1
  43. package/src/meeting/targetedMeetingNotification.ts +1 -1
  44. package/src/meeting/targetedMeetingNotificationValue.ts +1 -1
  45. package/src/meeting/teamsMeetingMember.ts +1 -1
  46. package/src/meeting/teamsMeetingParticipant.ts +1 -1
  47. package/src/meeting/userMeetingDetails.ts +1 -1
  48. package/src/taskModule/taskModuleContinueResponse.ts +1 -1
  49. package/src/taskModule/taskModuleMessageResponse.ts +1 -1
  50. package/src/taskModule/taskModuleRequest.ts +1 -1
  51. package/src/taskModule/taskModuleRequestContext.ts +1 -1
  52. package/src/taskModule/taskModuleResponse.ts +1 -1
  53. package/src/taskModule/taskModuleResponseBase.ts +1 -1
  54. package/src/taskModule/taskModuleTaskInfo.ts +1 -1
  55. package/src/teamsAgentExtension.ts +97 -0
@@ -8,7 +8,7 @@ import { FileUploadInfo } from './fileUploadInfo';
8
8
  */
9
9
  export type Action = 'accept' | 'decline';
10
10
  /**
11
- * Interface representing the response to a file consent card.
11
+ * Represents the response to a file consent card.
12
12
  */
13
13
  export interface FileConsentCardResponse {
14
14
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing information required for file upload.
6
+ * Represents information required for file upload.
7
7
  */
8
8
  export interface FileUploadInfo {
9
9
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { MeetingDetailsBase } from './meetingDetailsBase';
6
6
  /**
7
- * Interface representing the details of a meeting.
7
+ * Represents the details of a meeting.
8
8
  */
9
9
  export interface MeetingDetails extends MeetingDetailsBase {
10
10
  /** The Microsoft Graph resource ID of the meeting. */
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing the base details of a meeting.
6
+ * Represents the base details of a meeting.
7
7
  */
8
8
  export interface MeetingDetailsBase {
9
9
  /** The unique identifier of the meeting. */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { MeetingEventDetails } from './meetingEventDetails';
6
6
  /**
7
- * Interface representing the details of a meeting end event.
7
+ * Represents the details of a meeting end event.
8
8
  */
9
9
  export interface MeetingEndEventDetails extends MeetingEventDetails {
10
10
  /** The end time of the meeting. */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { MeetingDetailsBase } from './meetingDetailsBase';
6
6
  /**
7
- * Interface representing the details of a meeting event.
7
+ * Represents the details of a meeting event.
8
8
  */
9
9
  export interface MeetingEventDetails extends MeetingDetailsBase {
10
10
  /** The type of the meeting. */
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing the base structure of a meeting notification.
6
+ * Represents the base structure of a meeting notification.
7
7
  * @template T - The type of the value.
8
8
  */
9
9
  export interface MeetingNotificationBase<T> {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { OnBehalfOf } from '../activity-extensions/onBehalfOf';
6
6
  /**
7
- * Interface representing the channel data for a meeting notification.
7
+ * Represents the channel data for a meeting notification.
8
8
  */
9
9
  export interface MeetingNotificationChannelData {
10
10
  /** Optional list of entities on behalf of whom the notification is sent. */
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing the failure information of a meeting notification recipient.
6
+ * Represents the failure information of a meeting notification recipient.
7
7
  */
8
8
  export interface MeetingNotificationRecipientFailureInfo {
9
9
  /** The recipient's MRI (Microsoft Resource Identifier). */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { TeamsMeetingMember } from './teamsMeetingMember';
6
6
  /**
7
- * Interface representing the details of a meeting participants event.
7
+ * Represents the details of a meeting participants event.
8
8
  */
9
9
  export interface MeetingParticipantsEventDetails {
10
10
  /** The list of members participating in the meeting. */
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing the surface of a meeting stage.
6
+ * Represents the surface of a meeting stage.
7
7
  * @template T - The type of the content.
8
8
  */
9
9
  export interface MeetingStageSurface<T> {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { MeetingEventDetails } from './meetingEventDetails';
6
6
  /**
7
- * Interface representing the details of a meeting start event.
7
+ * Represents the details of a meeting start event.
8
8
  */
9
9
  export interface MeetingStartEventDetails extends MeetingEventDetails {
10
10
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing a meeting tab icon surface.
6
+ * Represents a meeting tab icon surface.
7
7
  */
8
8
  export interface MeetingTabIconSurface {
9
9
  /**
@@ -6,7 +6,7 @@ import { MeetingNotificationBase } from './meetingNotificationBase';
6
6
  import { MeetingNotificationChannelData } from './meetingNotificationChannelData';
7
7
  import { TargetedMeetingNotificationValue } from './targetedMeetingNotificationValue';
8
8
  /**
9
- * Interface representing a targeted meeting notification.
9
+ * Represents a targeted meeting notification.
10
10
  */
11
11
  export interface TargetedMeetingNotification extends MeetingNotificationBase<TargetedMeetingNotificationValue> {
12
12
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { MeetingSurface } from './meetingSurface';
6
6
  /**
7
- * Interface representing the value of a targeted meeting notification.
7
+ * Represents the value of a targeted meeting notification.
8
8
  */
9
9
  export interface TargetedMeetingNotificationValue {
10
10
  /**
@@ -5,7 +5,7 @@
5
5
  import { TeamsChannelAccount } from '../activity-extensions/teamsChannelAccount';
6
6
  import { UserMeetingDetails } from './userMeetingDetails';
7
7
  /**
8
- * Interface representing a member of a Teams meeting.
8
+ * Represents a member of a Teams meeting.
9
9
  */
10
10
  export interface TeamsMeetingMember {
11
11
  /**
@@ -7,7 +7,7 @@ import { Meeting } from './meeting';
7
7
  import { TeamsChannelAccount } from '../activity-extensions/teamsChannelAccount';
8
8
  import { TurnState } from '@microsoft/agents-hosting';
9
9
  /**
10
- * Interface representing a participant in a Teams meeting.
10
+ * Represents a participant in a Teams meeting.
11
11
  */
12
12
  export interface TeamsMeetingParticipant<TState extends TurnState> {
13
13
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing the details of a user's meeting.
6
+ * Represents the details of a user's meeting.
7
7
  */
8
8
  export interface UserMeetingDetails {
9
9
  /**
@@ -5,7 +5,7 @@
5
5
  import { TaskModuleResponseBase } from './taskModuleResponseBase';
6
6
  import { TaskModuleTaskInfo } from './taskModuleTaskInfo';
7
7
  /**
8
- * Interface representing the continue response of a task module.
8
+ * Represents the continue response of a task module.
9
9
  */
10
10
  export interface TaskModuleContinueResponse extends TaskModuleResponseBase {
11
11
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { TaskModuleResponseBase } from './taskModuleResponseBase';
6
6
  /**
7
- * Interface representing the message response of a task module.
7
+ * Represents the message response of a task module.
8
8
  */
9
9
  export interface TaskModuleMessageResponse extends TaskModuleResponseBase {
10
10
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { TaskModuleRequestContext } from './taskModuleRequestContext';
6
6
  /**
7
- * Interface representing the request of a task module.
7
+ * Represents the request of a task module.
8
8
  */
9
9
  export interface TaskModuleRequest {
10
10
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  /**
6
- * Interface representing the context of a task module request.
6
+ * Represents the context of a task module request.
7
7
  */
8
8
  export interface TaskModuleRequestContext {
9
9
  /**
@@ -5,7 +5,7 @@
5
5
  import { TaskModuleContinueResponse } from './taskModuleContinueResponse';
6
6
  import { TaskModuleMessageResponse } from './taskModuleMessageResponse';
7
7
  /**
8
- * Interface representing the response of a task module.
8
+ * Represents the response of a task module.
9
9
  */
10
10
  export interface TaskModuleResponse {
11
11
  /**
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export type MessagePreviewType = 'message' | 'continue';
9
9
  /**
10
- * Interface representing the base response of a task module.
10
+ * Represents the base response of a task module.
11
11
  */
12
12
  export interface TaskModuleResponseBase {
13
13
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { Attachment } from '@microsoft/agents-activity';
6
6
  /**
7
- * Interface representing the task module task information.
7
+ * Represents the task module task information.
8
8
  */
9
9
  export interface TaskModuleTaskInfo {
10
10
  /**
@@ -2,29 +2,125 @@ import { Meeting } from './meeting/meeting';
2
2
  import { AgentApplication, AgentExtension, RouteHandler, TurnState } from '@microsoft/agents-hosting';
3
3
  import { MessageExtension } from './messageExtension/messageExtension';
4
4
  import { TaskModule } from './taskModule/taskModule';
5
+ /**
6
+ * Microsoft Teams-specific extension for agent applications that provides event handlers and functionality
7
+ * for Teams-specific activities such as message operations, member management, channel operations, and team lifecycle events.
8
+ * @template TState The type of turn state, extending TurnState
9
+ */
5
10
  export declare class TeamsAgentExtension<TState extends TurnState = TurnState> extends AgentExtension<TState> {
6
11
  private app;
7
12
  _app: AgentApplication<TState>;
8
13
  _meeting: Meeting<TState>;
9
14
  _messageExtension: MessageExtension<TState>;
10
15
  _taskModule: TaskModule<TState>;
16
+ /**
17
+ * Creates a new instance of TeamsAgentExtension.
18
+ * @param app The agent application instance to extend with Teams functionality
19
+ */
11
20
  constructor(app: AgentApplication<TState>);
21
+ /**
22
+ * Gets the meeting functionality for handling Teams meeting-related activities.
23
+ * @returns The Meeting instance for this extension
24
+ */
12
25
  get meeting(): Meeting<TState>;
26
+ /**
27
+ * Gets the message extension functionality for handling Teams message extension activities.
28
+ * @returns The MessageExtension instance for this extension
29
+ */
13
30
  get messageExtension(): MessageExtension<TState>;
31
+ /**
32
+ * Gets the task module functionality for handling Teams task module activities.
33
+ * @returns The TaskModule instance for this extension
34
+ */
14
35
  get taskModule(): TaskModule<TState>;
36
+ /**
37
+ * Registers a handler for message edit events in Teams.
38
+ * @param handler The route handler to execute when a message is edited
39
+ * @returns This TeamsAgentExtension instance for method chaining
40
+ */
15
41
  onMessageEdit: (handler: RouteHandler<TurnState>) => this;
42
+ /**
43
+ * Registers a handler for message delete events in Teams.
44
+ * @param handler The route handler to execute when a message is deleted
45
+ * @returns This TeamsAgentExtension instance for method chaining
46
+ */
16
47
  onMessageDelete: (handler: RouteHandler<TurnState>) => this;
48
+ /**
49
+ * Registers a handler for message undelete events in Teams.
50
+ * @param handler The route handler to execute when a message is undeleted
51
+ * @returns This TeamsAgentExtension instance for method chaining
52
+ */
17
53
  onMessageUndelete: (handler: RouteHandler<TurnState>) => this;
54
+ /**
55
+ * Registers a handler for when members are added to a Teams conversation.
56
+ * @param handler The route handler to execute when members are added
57
+ * @returns This TeamsAgentExtension instance for method chaining
58
+ */
18
59
  onTeamsMembersAdded: (handler: RouteHandler<TurnState>) => this;
60
+ /**
61
+ * Registers a handler for when members are removed from a Teams conversation.
62
+ * @param handler The route handler to execute when members are removed
63
+ * @returns This TeamsAgentExtension instance for method chaining
64
+ */
19
65
  onTeamsMembersRemoved: (handler: RouteHandler<TurnState>) => this;
66
+ /**
67
+ * Registers a handler for when a Teams channel is created.
68
+ * @param handler The route handler to execute when a channel is created
69
+ * @returns This TeamsAgentExtension instance for method chaining
70
+ */
20
71
  onTeamsChannelCreated: (handler: RouteHandler<TurnState>) => this;
72
+ /**
73
+ * Registers a handler for when a Teams channel is deleted.
74
+ * @param handler The route handler to execute when a channel is deleted
75
+ * @returns This TeamsAgentExtension instance for method chaining
76
+ */
21
77
  onTeamsChannelDeleted: (handler: RouteHandler<TurnState>) => this;
78
+ /**
79
+ * Registers a handler for when a Teams channel is renamed.
80
+ * @param handler The route handler to execute when a channel is renamed
81
+ * @returns This TeamsAgentExtension instance for method chaining
82
+ */
22
83
  onTeamsChannelRenamed: (handler: RouteHandler<TurnState>) => this;
84
+ /**
85
+ * Registers a handler for when a Teams channel is restored.
86
+ * @param handler The route handler to execute when a channel is restored
87
+ * @returns This TeamsAgentExtension instance for method chaining
88
+ */
23
89
  onTeamsChannelRestored: (handler: RouteHandler<TurnState>) => this;
90
+ /**
91
+ * Registers a handler for when a Teams team is renamed.
92
+ * @param handler The route handler to execute when a team is renamed
93
+ * @returns This TeamsAgentExtension instance for method chaining
94
+ */
24
95
  onTeamsTeamRenamed: (handler: RouteHandler<TurnState>) => this;
96
+ /**
97
+ * Registers a handler for when a Teams team is archived.
98
+ * @param handler The route handler to execute when a team is archived
99
+ * @returns This TeamsAgentExtension instance for method chaining
100
+ */
25
101
  onTeamsTeamArchived: (handler: RouteHandler<TurnState>) => this;
102
+ /**
103
+ * Registers a handler for when a Teams team is unarchived.
104
+ * @param handler The route handler to execute when a team is unarchived
105
+ * @returns This TeamsAgentExtension instance for method chaining
106
+ */
26
107
  onTeamsTeamUnarchived: (handler: RouteHandler<TurnState>) => this;
108
+ /**
109
+ * Registers a handler for when a Teams team is deleted (soft delete).
110
+ * @param handler The route handler to execute when a team is deleted
111
+ * @returns This TeamsAgentExtension instance for method chaining
112
+ */
27
113
  onTeamsTeamDeleted: (handler: RouteHandler<TurnState>) => this;
114
+ /**
115
+ * Registers a handler for when a Teams team is hard deleted (permanently deleted).
116
+ * @param handler The route handler to execute when a team is hard deleted
117
+ * @returns This TeamsAgentExtension instance for method chaining
118
+ */
28
119
  onTeamsTeamHardDeleted: (handler: RouteHandler<TurnState>) => this;
120
+ /**
121
+ * Registers a handler for when a Teams team is restored.
122
+ * @param handler The route handler to execute when a team is restored
123
+ * @returns This TeamsAgentExtension instance for method chaining
124
+ */
29
125
  onTeamsTeamRestored: (handler: RouteHandler<TurnState>) => this;
30
126
  }
@@ -7,10 +7,24 @@ const agents_hosting_1 = require("@microsoft/agents-hosting");
7
7
  const teamsChannelDataParser_1 = require("./activity-extensions/teamsChannelDataParser");
8
8
  const messageExtension_1 = require("./messageExtension/messageExtension");
9
9
  const taskModule_1 = require("./taskModule/taskModule");
10
+ /**
11
+ * Microsoft Teams-specific extension for agent applications that provides event handlers and functionality
12
+ * for Teams-specific activities such as message operations, member management, channel operations, and team lifecycle events.
13
+ * @template TState The type of turn state, extending TurnState
14
+ */
10
15
  class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
16
+ /**
17
+ * Creates a new instance of TeamsAgentExtension.
18
+ * @param app The agent application instance to extend with Teams functionality
19
+ */
11
20
  constructor(app) {
12
21
  super('msteams');
13
22
  this.app = app;
23
+ /**
24
+ * Registers a handler for message edit events in Teams.
25
+ * @param handler The route handler to execute when a message is edited
26
+ * @returns This TeamsAgentExtension instance for method chaining
27
+ */
14
28
  this.onMessageEdit = (handler) => {
15
29
  const routeSel = (context) => {
16
30
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -19,6 +33,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
19
33
  this.addRoute(this._app, routeSel, handler, false);
20
34
  return this;
21
35
  };
36
+ /**
37
+ * Registers a handler for message delete events in Teams.
38
+ * @param handler The route handler to execute when a message is deleted
39
+ * @returns This TeamsAgentExtension instance for method chaining
40
+ */
22
41
  this.onMessageDelete = (handler) => {
23
42
  const routeSel = (context) => {
24
43
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -27,6 +46,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
27
46
  this.addRoute(this._app, routeSel, handler, false);
28
47
  return this;
29
48
  };
49
+ /**
50
+ * Registers a handler for message undelete events in Teams.
51
+ * @param handler The route handler to execute when a message is undeleted
52
+ * @returns This TeamsAgentExtension instance for method chaining
53
+ */
30
54
  this.onMessageUndelete = (handler) => {
31
55
  const routeSel = (context) => {
32
56
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -35,6 +59,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
35
59
  this.addRoute(this._app, routeSel, handler, false);
36
60
  return this;
37
61
  };
62
+ /**
63
+ * Registers a handler for when members are added to a Teams conversation.
64
+ * @param handler The route handler to execute when members are added
65
+ * @returns This TeamsAgentExtension instance for method chaining
66
+ */
38
67
  this.onTeamsMembersAdded = (handler) => {
39
68
  const routeSel = (context) => {
40
69
  return Promise.resolve(!!(context.activity.type === agents_activity_1.ActivityTypes.ConversationUpdate &&
@@ -45,6 +74,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
45
74
  this.addRoute(this._app, routeSel, handler, false);
46
75
  return this;
47
76
  };
77
+ /**
78
+ * Registers a handler for when members are removed from a Teams conversation.
79
+ * @param handler The route handler to execute when members are removed
80
+ * @returns This TeamsAgentExtension instance for method chaining
81
+ */
48
82
  this.onTeamsMembersRemoved = (handler) => {
49
83
  const routeSel = (context) => {
50
84
  return Promise.resolve(!!(context.activity.type === agents_activity_1.ActivityTypes.ConversationUpdate &&
@@ -55,6 +89,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
55
89
  this.addRoute(this._app, routeSel, handler, false);
56
90
  return this;
57
91
  };
92
+ /**
93
+ * Registers a handler for when a Teams channel is created.
94
+ * @param handler The route handler to execute when a channel is created
95
+ * @returns This TeamsAgentExtension instance for method chaining
96
+ */
58
97
  this.onTeamsChannelCreated = (handler) => {
59
98
  const routeSel = (context) => {
60
99
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -66,6 +105,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
66
105
  this.addRoute(this._app, routeSel, handler, false);
67
106
  return this;
68
107
  };
108
+ /**
109
+ * Registers a handler for when a Teams channel is deleted.
110
+ * @param handler The route handler to execute when a channel is deleted
111
+ * @returns This TeamsAgentExtension instance for method chaining
112
+ */
69
113
  this.onTeamsChannelDeleted = (handler) => {
70
114
  const routeSel = (context) => {
71
115
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -77,6 +121,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
77
121
  this.addRoute(this._app, routeSel, handler, false);
78
122
  return this;
79
123
  };
124
+ /**
125
+ * Registers a handler for when a Teams channel is renamed.
126
+ * @param handler The route handler to execute when a channel is renamed
127
+ * @returns This TeamsAgentExtension instance for method chaining
128
+ */
80
129
  this.onTeamsChannelRenamed = (handler) => {
81
130
  const routeSel = (context) => {
82
131
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -88,6 +137,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
88
137
  this.addRoute(this._app, routeSel, handler, false);
89
138
  return this;
90
139
  };
140
+ /**
141
+ * Registers a handler for when a Teams channel is restored.
142
+ * @param handler The route handler to execute when a channel is restored
143
+ * @returns This TeamsAgentExtension instance for method chaining
144
+ */
91
145
  this.onTeamsChannelRestored = (handler) => {
92
146
  const routeSel = (context) => {
93
147
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -99,6 +153,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
99
153
  this.addRoute(this._app, routeSel, handler, false);
100
154
  return this;
101
155
  };
156
+ /**
157
+ * Registers a handler for when a Teams team is renamed.
158
+ * @param handler The route handler to execute when a team is renamed
159
+ * @returns This TeamsAgentExtension instance for method chaining
160
+ */
102
161
  this.onTeamsTeamRenamed = (handler) => {
103
162
  const routeSel = (context) => {
104
163
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -110,6 +169,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
110
169
  this.addRoute(this._app, routeSel, handler, false);
111
170
  return this;
112
171
  };
172
+ /**
173
+ * Registers a handler for when a Teams team is archived.
174
+ * @param handler The route handler to execute when a team is archived
175
+ * @returns This TeamsAgentExtension instance for method chaining
176
+ */
113
177
  this.onTeamsTeamArchived = (handler) => {
114
178
  const routeSel = (context) => {
115
179
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -121,6 +185,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
121
185
  this.addRoute(this._app, routeSel, handler, false);
122
186
  return this;
123
187
  };
188
+ /**
189
+ * Registers a handler for when a Teams team is unarchived.
190
+ * @param handler The route handler to execute when a team is unarchived
191
+ * @returns This TeamsAgentExtension instance for method chaining
192
+ */
124
193
  this.onTeamsTeamUnarchived = (handler) => {
125
194
  const routeSel = (context) => {
126
195
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -132,6 +201,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
132
201
  this.addRoute(this._app, routeSel, handler, false);
133
202
  return this;
134
203
  };
204
+ /**
205
+ * Registers a handler for when a Teams team is deleted (soft delete).
206
+ * @param handler The route handler to execute when a team is deleted
207
+ * @returns This TeamsAgentExtension instance for method chaining
208
+ */
135
209
  this.onTeamsTeamDeleted = (handler) => {
136
210
  const routeSel = (context) => {
137
211
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -143,6 +217,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
143
217
  this.addRoute(this._app, routeSel, handler, false);
144
218
  return this;
145
219
  };
220
+ /**
221
+ * Registers a handler for when a Teams team is hard deleted (permanently deleted).
222
+ * @param handler The route handler to execute when a team is hard deleted
223
+ * @returns This TeamsAgentExtension instance for method chaining
224
+ */
146
225
  this.onTeamsTeamHardDeleted = (handler) => {
147
226
  const routeSel = (context) => {
148
227
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -154,6 +233,11 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
154
233
  this.addRoute(this._app, routeSel, handler, false);
155
234
  return this;
156
235
  };
236
+ /**
237
+ * Registers a handler for when a Teams team is restored.
238
+ * @param handler The route handler to execute when a team is restored
239
+ * @returns This TeamsAgentExtension instance for method chaining
240
+ */
157
241
  this.onTeamsTeamRestored = (handler) => {
158
242
  const routeSel = (context) => {
159
243
  const channelData = (0, teamsChannelDataParser_1.parseTeamsChannelData)(context.activity.channelData);
@@ -170,12 +254,24 @@ class TeamsAgentExtension extends agents_hosting_1.AgentExtension {
170
254
  this._messageExtension = new messageExtension_1.MessageExtension(app);
171
255
  this._taskModule = new taskModule_1.TaskModule(app);
172
256
  }
257
+ /**
258
+ * Gets the meeting functionality for handling Teams meeting-related activities.
259
+ * @returns The Meeting instance for this extension
260
+ */
173
261
  get meeting() {
174
262
  return this._meeting;
175
263
  }
264
+ /**
265
+ * Gets the message extension functionality for handling Teams message extension activities.
266
+ * @returns The MessageExtension instance for this extension
267
+ */
176
268
  get messageExtension() {
177
269
  return this._messageExtension;
178
270
  }
271
+ /**
272
+ * Gets the task module functionality for handling Teams task module activities.
273
+ * @returns The TaskModule instance for this extension
274
+ */
179
275
  get taskModule() {
180
276
  return this._taskModule;
181
277
  }
@@ -1 +1 @@
1
- {"version":3,"file":"teamsAgentExtension.js","sourceRoot":"","sources":["../../src/teamsAgentExtension.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,gEAA0D;AAC1D,8DAAiI;AACjI,yFAAoF;AACpF,0EAAsE;AACtE,wDAAoD;AAEpD,MAAa,mBAA0D,SAAQ,+BAAsB;IAKnG,YAAqB,GAA6B;QAChD,KAAK,CAAC,SAAS,CAAC,CAAA;QADG,QAAG,GAAH,GAAG,CAA0B;QAoBlD,kBAAa,GAAG,CAAC,OAAgC,EAAE,EAAE;YACnD,MAAM,QA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AClD,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;QAhRC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;QACf,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAO,CAAC,GAAG,CAAC,CAAA;QAChC,IAAI,CAAC,iBAAiB,GAAG,IAAI,mCAAgB,CAAC,GAAG,CAAC,CAAA;QAClD,IAAI,CAAC,WAAW,GAAG,IAAI,uBAAU,CAAC,GAAG,CAAC,CAAA;IACxC,CAAC;IAED;;;OAGG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,IAAW,gBAAgB;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;CAqPF;AA7RD,kDA6RC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-hosting-extensions-teams",
4
- "version": "0.5.19-gc1e2ea1096",
4
+ "version": "0.6.11",
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": "0.5.19-gc1e2ea1096"
22
+ "@microsoft/agents-hosting": "0.6.11"
23
23
  },
24
24
  "license": "MIT",
25
25
  "files": [
@@ -11,7 +11,7 @@ import { FileUploadInfo } from './fileUploadInfo'
11
11
  export type Action = 'accept' | 'decline'
12
12
 
13
13
  /**
14
- * Interface representing the response to a file consent card.
14
+ * Represents the response to a file consent card.
15
15
  */
16
16
  export interface FileConsentCardResponse {
17
17
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing information required for file upload.
7
+ * Represents information required for file upload.
8
8
  */
9
9
  export interface FileUploadInfo {
10
10
  /**
@@ -6,7 +6,7 @@
6
6
  import { MeetingDetailsBase } from './meetingDetailsBase'
7
7
 
8
8
  /**
9
- * Interface representing the details of a meeting.
9
+ * Represents the details of a meeting.
10
10
  */
11
11
  export interface MeetingDetails extends MeetingDetailsBase {
12
12
  /** The Microsoft Graph resource ID of the meeting. */
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing the base details of a meeting.
7
+ * Represents the base details of a meeting.
8
8
  */
9
9
  export interface MeetingDetailsBase {
10
10
  /** The unique identifier of the meeting. */
@@ -6,7 +6,7 @@
6
6
  import { MeetingEventDetails } from './meetingEventDetails'
7
7
 
8
8
  /**
9
- * Interface representing the details of a meeting end event.
9
+ * Represents the details of a meeting end event.
10
10
  */
11
11
  export interface MeetingEndEventDetails extends MeetingEventDetails {
12
12
  /** The end time of the meeting. */
@@ -6,7 +6,7 @@
6
6
  import { MeetingDetailsBase } from './meetingDetailsBase'
7
7
 
8
8
  /**
9
- * Interface representing the details of a meeting event.
9
+ * Represents the details of a meeting event.
10
10
  */
11
11
  export interface MeetingEventDetails extends MeetingDetailsBase {
12
12
  /** The type of the meeting. */
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing the base structure of a meeting notification.
7
+ * Represents the base structure of a meeting notification.
8
8
  * @template T - The type of the value.
9
9
  */
10
10
  export interface MeetingNotificationBase<T> {
@@ -6,7 +6,7 @@
6
6
  import { OnBehalfOf } from '../activity-extensions/onBehalfOf'
7
7
 
8
8
  /**
9
- * Interface representing the channel data for a meeting notification.
9
+ * Represents the channel data for a meeting notification.
10
10
  */
11
11
  export interface MeetingNotificationChannelData {
12
12
  /** Optional list of entities on behalf of whom the notification is sent. */
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing the failure information of a meeting notification recipient.
7
+ * Represents the failure information of a meeting notification recipient.
8
8
  */
9
9
  export interface MeetingNotificationRecipientFailureInfo {
10
10
  /** The recipient's MRI (Microsoft Resource Identifier). */
@@ -6,7 +6,7 @@
6
6
  import { TeamsMeetingMember } from './teamsMeetingMember'
7
7
 
8
8
  /**
9
- * Interface representing the details of a meeting participants event.
9
+ * Represents the details of a meeting participants event.
10
10
  */
11
11
  export interface MeetingParticipantsEventDetails {
12
12
  /** The list of members participating in the meeting. */
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing the surface of a meeting stage.
7
+ * Represents the surface of a meeting stage.
8
8
  * @template T - The type of the content.
9
9
  */
10
10
  export interface MeetingStageSurface<T> {
@@ -6,7 +6,7 @@
6
6
  import { MeetingEventDetails } from './meetingEventDetails'
7
7
 
8
8
  /**
9
- * Interface representing the details of a meeting start event.
9
+ * Represents the details of a meeting start event.
10
10
  */
11
11
  export interface MeetingStartEventDetails extends MeetingEventDetails {
12
12
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing a meeting tab icon surface.
7
+ * Represents a meeting tab icon surface.
8
8
  */
9
9
  export interface MeetingTabIconSurface {
10
10
  /**
@@ -8,7 +8,7 @@ import { MeetingNotificationChannelData } from './meetingNotificationChannelData
8
8
  import { TargetedMeetingNotificationValue } from './targetedMeetingNotificationValue'
9
9
 
10
10
  /**
11
- * Interface representing a targeted meeting notification.
11
+ * Represents a targeted meeting notification.
12
12
  */
13
13
  export interface TargetedMeetingNotification extends MeetingNotificationBase<TargetedMeetingNotificationValue> {
14
14
  /**
@@ -6,7 +6,7 @@
6
6
  import { MeetingSurface } from './meetingSurface'
7
7
 
8
8
  /**
9
- * Interface representing the value of a targeted meeting notification.
9
+ * Represents the value of a targeted meeting notification.
10
10
  */
11
11
  export interface TargetedMeetingNotificationValue {
12
12
  /**
@@ -7,7 +7,7 @@ import { TeamsChannelAccount } from '../activity-extensions/teamsChannelAccount'
7
7
  import { UserMeetingDetails } from './userMeetingDetails'
8
8
 
9
9
  /**
10
- * Interface representing a member of a Teams meeting.
10
+ * Represents a member of a Teams meeting.
11
11
  */
12
12
  export interface TeamsMeetingMember {
13
13
  /**
@@ -9,7 +9,7 @@ import { TeamsChannelAccount } from '../activity-extensions/teamsChannelAccount'
9
9
  import { TurnState } from '@microsoft/agents-hosting'
10
10
 
11
11
  /**
12
- * Interface representing a participant in a Teams meeting.
12
+ * Represents a participant in a Teams meeting.
13
13
  */
14
14
  export interface TeamsMeetingParticipant<TState extends TurnState> {
15
15
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing the details of a user's meeting.
7
+ * Represents the details of a user's meeting.
8
8
  */
9
9
  export interface UserMeetingDetails {
10
10
  /**
@@ -7,7 +7,7 @@ import { TaskModuleResponseBase } from './taskModuleResponseBase'
7
7
  import { TaskModuleTaskInfo } from './taskModuleTaskInfo'
8
8
 
9
9
  /**
10
- * Interface representing the continue response of a task module.
10
+ * Represents the continue response of a task module.
11
11
  */
12
12
  export interface TaskModuleContinueResponse extends TaskModuleResponseBase {
13
13
  /**
@@ -6,7 +6,7 @@
6
6
  import { TaskModuleResponseBase } from './taskModuleResponseBase'
7
7
 
8
8
  /**
9
- * Interface representing the message response of a task module.
9
+ * Represents the message response of a task module.
10
10
  */
11
11
  export interface TaskModuleMessageResponse extends TaskModuleResponseBase {
12
12
  /**
@@ -6,7 +6,7 @@
6
6
  import { TaskModuleRequestContext } from './taskModuleRequestContext'
7
7
 
8
8
  /**
9
- * Interface representing the request of a task module.
9
+ * Represents the request of a task module.
10
10
  */
11
11
  export interface TaskModuleRequest {
12
12
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * Interface representing the context of a task module request.
7
+ * Represents the context of a task module request.
8
8
  */
9
9
  export interface TaskModuleRequestContext {
10
10
  /**
@@ -7,7 +7,7 @@ import { TaskModuleContinueResponse } from './taskModuleContinueResponse'
7
7
  import { TaskModuleMessageResponse } from './taskModuleMessageResponse'
8
8
 
9
9
  /**
10
- * Interface representing the response of a task module.
10
+ * Represents the response of a task module.
11
11
  */
12
12
  export interface TaskModuleResponse {
13
13
  /**
@@ -9,7 +9,7 @@
9
9
  export type MessagePreviewType = 'message' | 'continue'
10
10
 
11
11
  /**
12
- * Interface representing the base response of a task module.
12
+ * Represents the base response of a task module.
13
13
  */
14
14
  export interface TaskModuleResponseBase {
15
15
  /**
@@ -6,7 +6,7 @@
6
6
  import { Attachment } from '@microsoft/agents-activity'
7
7
 
8
8
  /**
9
- * Interface representing the task module task information.
9
+ * Represents the task module task information.
10
10
  */
11
11
  export interface TaskModuleTaskInfo {
12
12
  /**
@@ -5,11 +5,21 @@ import { parseTeamsChannelData } from './activity-extensions/teamsChannelDataPar
5
5
  import { MessageExtension } from './messageExtension/messageExtension'
6
6
  import { TaskModule } from './taskModule/taskModule'
7
7
 
8
+ /**
9
+ * Microsoft Teams-specific extension for agent applications that provides event handlers and functionality
10
+ * for Teams-specific activities such as message operations, member management, channel operations, and team lifecycle events.
11
+ * @template TState The type of turn state, extending TurnState
12
+ */
8
13
  export class TeamsAgentExtension<TState extends TurnState = TurnState> extends AgentExtension<TState> {
9
14
  _app: AgentApplication<TState>
10
15
  _meeting: Meeting<TState>
11
16
  _messageExtension: MessageExtension<TState>
12
17
  _taskModule: TaskModule<TState>
18
+
19
+ /**
20
+ * Creates a new instance of TeamsAgentExtension.
21
+ * @param app The agent application instance to extend with Teams functionality
22
+ */
13
23
  constructor (private app: AgentApplication<TState>) {
14
24
  super('msteams')
15
25
  this._app = app
@@ -18,18 +28,35 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
18
28
  this._taskModule = new TaskModule(app)
19
29
  }
20
30
 
31
+ /**
32
+ * Gets the meeting functionality for handling Teams meeting-related activities.
33
+ * @returns The Meeting instance for this extension
34
+ */
21
35
  public get meeting (): Meeting<TState> {
22
36
  return this._meeting
23
37
  }
24
38
 
39
+ /**
40
+ * Gets the message extension functionality for handling Teams message extension activities.
41
+ * @returns The MessageExtension instance for this extension
42
+ */
25
43
  public get messageExtension (): MessageExtension<TState> {
26
44
  return this._messageExtension
27
45
  }
28
46
 
47
+ /**
48
+ * Gets the task module functionality for handling Teams task module activities.
49
+ * @returns The TaskModule instance for this extension
50
+ */
29
51
  public get taskModule (): TaskModule<TState> {
30
52
  return this._taskModule
31
53
  }
32
54
 
55
+ /**
56
+ * Registers a handler for message edit events in Teams.
57
+ * @param handler The route handler to execute when a message is edited
58
+ * @returns This TeamsAgentExtension instance for method chaining
59
+ */
33
60
  onMessageEdit = (handler: RouteHandler<TurnState>) => {
34
61
  const routeSel: RouteSelector = (context: TurnContext) => {
35
62
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -39,6 +66,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
39
66
  return this
40
67
  }
41
68
 
69
+ /**
70
+ * Registers a handler for message delete events in Teams.
71
+ * @param handler The route handler to execute when a message is deleted
72
+ * @returns This TeamsAgentExtension instance for method chaining
73
+ */
42
74
  onMessageDelete = (handler: RouteHandler<TurnState>) => {
43
75
  const routeSel: RouteSelector = (context: TurnContext) => {
44
76
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -48,6 +80,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
48
80
  return this
49
81
  }
50
82
 
83
+ /**
84
+ * Registers a handler for message undelete events in Teams.
85
+ * @param handler The route handler to execute when a message is undeleted
86
+ * @returns This TeamsAgentExtension instance for method chaining
87
+ */
51
88
  onMessageUndelete = (handler: RouteHandler<TurnState>) => {
52
89
  const routeSel: RouteSelector = (context: TurnContext) => {
53
90
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -57,6 +94,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
57
94
  return this
58
95
  }
59
96
 
97
+ /**
98
+ * Registers a handler for when members are added to a Teams conversation.
99
+ * @param handler The route handler to execute when members are added
100
+ * @returns This TeamsAgentExtension instance for method chaining
101
+ */
60
102
  onTeamsMembersAdded = (handler: RouteHandler<TurnState>) => {
61
103
  const routeSel: RouteSelector = (context: TurnContext) => {
62
104
  return Promise.resolve(!!(context.activity.type === ActivityTypes.ConversationUpdate &&
@@ -68,6 +110,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
68
110
  return this
69
111
  }
70
112
 
113
+ /**
114
+ * Registers a handler for when members are removed from a Teams conversation.
115
+ * @param handler The route handler to execute when members are removed
116
+ * @returns This TeamsAgentExtension instance for method chaining
117
+ */
71
118
  onTeamsMembersRemoved = (handler: RouteHandler<TurnState>) => {
72
119
  const routeSel: RouteSelector = (context: TurnContext) => {
73
120
  return Promise.resolve(!!(context.activity.type === ActivityTypes.ConversationUpdate &&
@@ -79,6 +126,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
79
126
  return this
80
127
  }
81
128
 
129
+ /**
130
+ * Registers a handler for when a Teams channel is created.
131
+ * @param handler The route handler to execute when a channel is created
132
+ * @returns This TeamsAgentExtension instance for method chaining
133
+ */
82
134
  onTeamsChannelCreated = (handler: RouteHandler<TurnState>) => {
83
135
  const routeSel: RouteSelector = (context: TurnContext) => {
84
136
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -91,6 +143,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
91
143
  return this
92
144
  }
93
145
 
146
+ /**
147
+ * Registers a handler for when a Teams channel is deleted.
148
+ * @param handler The route handler to execute when a channel is deleted
149
+ * @returns This TeamsAgentExtension instance for method chaining
150
+ */
94
151
  onTeamsChannelDeleted = (handler: RouteHandler<TurnState>) => {
95
152
  const routeSel: RouteSelector = (context: TurnContext) => {
96
153
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -103,6 +160,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
103
160
  return this
104
161
  }
105
162
 
163
+ /**
164
+ * Registers a handler for when a Teams channel is renamed.
165
+ * @param handler The route handler to execute when a channel is renamed
166
+ * @returns This TeamsAgentExtension instance for method chaining
167
+ */
106
168
  onTeamsChannelRenamed = (handler: RouteHandler<TurnState>) => {
107
169
  const routeSel: RouteSelector = (context: TurnContext) => {
108
170
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -115,6 +177,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
115
177
  return this
116
178
  }
117
179
 
180
+ /**
181
+ * Registers a handler for when a Teams channel is restored.
182
+ * @param handler The route handler to execute when a channel is restored
183
+ * @returns This TeamsAgentExtension instance for method chaining
184
+ */
118
185
  onTeamsChannelRestored = (handler: RouteHandler<TurnState>) => {
119
186
  const routeSel: RouteSelector = (context: TurnContext) => {
120
187
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -127,6 +194,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
127
194
  return this
128
195
  }
129
196
 
197
+ /**
198
+ * Registers a handler for when a Teams team is renamed.
199
+ * @param handler The route handler to execute when a team is renamed
200
+ * @returns This TeamsAgentExtension instance for method chaining
201
+ */
130
202
  onTeamsTeamRenamed = (handler: RouteHandler<TurnState>) => {
131
203
  const routeSel: RouteSelector = (context: TurnContext) => {
132
204
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -139,6 +211,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
139
211
  return this
140
212
  }
141
213
 
214
+ /**
215
+ * Registers a handler for when a Teams team is archived.
216
+ * @param handler The route handler to execute when a team is archived
217
+ * @returns This TeamsAgentExtension instance for method chaining
218
+ */
142
219
  onTeamsTeamArchived = (handler: RouteHandler<TurnState>) => {
143
220
  const routeSel: RouteSelector = (context: TurnContext) => {
144
221
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -151,6 +228,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
151
228
  return this
152
229
  }
153
230
 
231
+ /**
232
+ * Registers a handler for when a Teams team is unarchived.
233
+ * @param handler The route handler to execute when a team is unarchived
234
+ * @returns This TeamsAgentExtension instance for method chaining
235
+ */
154
236
  onTeamsTeamUnarchived = (handler: RouteHandler<TurnState>) => {
155
237
  const routeSel: RouteSelector = (context: TurnContext) => {
156
238
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -163,6 +245,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
163
245
  return this
164
246
  }
165
247
 
248
+ /**
249
+ * Registers a handler for when a Teams team is deleted (soft delete).
250
+ * @param handler The route handler to execute when a team is deleted
251
+ * @returns This TeamsAgentExtension instance for method chaining
252
+ */
166
253
  onTeamsTeamDeleted = (handler: RouteHandler<TurnState>) => {
167
254
  const routeSel: RouteSelector = (context: TurnContext) => {
168
255
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -175,6 +262,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
175
262
  return this
176
263
  }
177
264
 
265
+ /**
266
+ * Registers a handler for when a Teams team is hard deleted (permanently deleted).
267
+ * @param handler The route handler to execute when a team is hard deleted
268
+ * @returns This TeamsAgentExtension instance for method chaining
269
+ */
178
270
  onTeamsTeamHardDeleted = (handler: RouteHandler<TurnState>) => {
179
271
  const routeSel: RouteSelector = (context: TurnContext) => {
180
272
  const channelData = parseTeamsChannelData(context.activity.channelData)
@@ -187,6 +279,11 @@ export class TeamsAgentExtension<TState extends TurnState = TurnState> extends A
187
279
  return this
188
280
  }
189
281
 
282
+ /**
283
+ * Registers a handler for when a Teams team is restored.
284
+ * @param handler The route handler to execute when a team is restored
285
+ * @returns This TeamsAgentExtension instance for method chaining
286
+ */
190
287
  onTeamsTeamRestored = (handler: RouteHandler<TurnState>) => {
191
288
  const routeSel: RouteSelector = (context: TurnContext) => {
192
289
  const channelData = parseTeamsChannelData(context.activity.channelData)