Skip to content

Conversation

@MehakBindra
Copy link
Contributor

No description provided.

@Copilot Copilot AI review requested due to automatic review settings October 15, 2025 19:03
@MehakBindra MehakBindra marked this pull request as draft October 15, 2025 19:03
Copy link
Contributor

Copilot AI left a 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 MembershipSource model to track the source and type of team/channel memberships
  • Extension of ChannelData to include shared channel events, membership sources, and app information
  • Introduction of OnBehalfOf and AppInfo models 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."""
Copy link

Copilot AI Oct 15, 2025

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'.

Suggested change
"""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 uses AI. Check for mistakes.
Comment on lines 40 to 41


Copy link

Copilot AI Oct 15, 2025

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.

Suggested change
"""
The sources that provide membership information for the account.
"""

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant