Skip to content

Commit d3fa242

Browse files
"Added contextType in TeamsContent interface to {copilot.sidePanel} capability.", (#2848)
* adding the contextType to TeamsContent * changefile * match existing code contract
1 parent 06304fd commit d3fa242

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Added `contextType` in `TeamsContent` interface to `{copilot.sidePanel}` capability.",
4+
"packageName": "@microsoft/teams-js",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/teams-js/src/private/copilot/sidePanelInterfaces.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,21 @@ export enum TranscriptState {
349349
Inactive = 'inactive',
350350
UnknownFutureValue = 'unknownFutureValue',
351351
}
352+
/**
353+
* @hidden
354+
*
355+
* Enum defining the context types for Teams-related content.
356+
* Specifies whether the content is from a chat, channel, meeting, or meeting chat.
357+
*
358+
* @internal
359+
* Limited to Microsoft-internal use
360+
*/
361+
export enum TeamsContextType {
362+
Chat = 'Chat',
363+
Channel = 'Channel',
364+
Meeting = 'Meeting',
365+
MeetingChat = 'MeetingChat',
366+
}
352367
/**
353368
* @hidden
354369
*
@@ -363,6 +378,7 @@ export interface TeamsContent {
363378
appVersion?: string;
364379
appPlatform?: string;
365380
appRingInfo?: string;
381+
contextType: TeamsContextType;
366382
chatContext?: TeamsChatContext;
367383
channelContext?: TeamsChannelContext;
368384
meetingContext?: TeamsMeetingContext;

0 commit comments

Comments
 (0)