-
Notifications
You must be signed in to change notification settings - Fork 4
sessions and shared channel #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for sessions and shared channel functionality to the Teams API models. The changes introduce new data models and extend existing ones to properly represent shared channel memberships, user actions performed on behalf of others, and app information.
Key changes include:
- Addition of
MembershipSourcemodel to track the source and type of team/channel memberships - Extension of
ChannelDatato include shared channel events, membership sources, and app information - Introduction of
OnBehalfOfandAppInfomodels for delegated actions and app metadata
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/api/src/microsoft/teams/api/models/membership_source.py | New model defining membership source properties including tenant and team information |
| packages/api/src/microsoft/teams/api/models/channel_data/team_info.py | Adds tenant_id field and renames team_type to type for consistency |
| packages/api/src/microsoft/teams/api/models/channel_data/on_behalf_of.py | New model for tracking delegated user actions |
| packages/api/src/microsoft/teams/api/models/channel_data/channel_data.py | Extends with shared channel fields, membership source, and app info |
| packages/api/src/microsoft/teams/api/models/channel_data/app_info.py | New model for app identification and versioning |
| packages/api/src/microsoft/teams/api/models/channel_data/init.py | Updates exports to include new models |
| packages/api/src/microsoft/teams/api/models/account.py | Adds membershipSources field to Account model |
| """List of teams that a channel was unshared from.""" | ||
|
|
||
| membership_source: Optional[MembershipSource] = None | ||
| """Information about the source of the member that was added or removed froma shared channel.""" |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spacing in 'froma' to 'from a'.
| """Information about the source of the member that was added or removed froma shared channel.""" | |
| """Information about the source of the member that was added or removed from a shared channel.""" |
|
|
||
|
|
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The membershipSources field is missing a docstring. Add a comment or docstring explaining its purpose, consistent with the documentation style used for other fields in this class.
| """ | |
| The sources that provide membership information for the account. | |
| """ |
No description provided.