-
Couldn't load subscription status.
- 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
Draft
MehakBindra
wants to merge
1
commit into
main
Choose a base branch
from
mehak/sessions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/api/src/microsoft/teams/api/models/channel_data/app_info.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| """ | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the MIT License. | ||
| """ | ||
|
|
||
| from typing import Optional | ||
|
|
||
| from ..custom_base_model import CustomBaseModel | ||
|
|
||
|
|
||
| class AppInfo(CustomBaseModel): | ||
| """ | ||
| An app info object that describes an app | ||
| """ | ||
|
|
||
| id: str | ||
| "Unique identifier representing an app" | ||
|
|
||
| version: Optional[str] = None | ||
| "Version of the app manifest." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,12 +3,15 @@ | |||||
| Licensed under the MIT License. | ||||||
| """ | ||||||
|
|
||||||
| from typing import Literal, Optional | ||||||
| from typing import List, Literal, Optional | ||||||
|
|
||||||
| from ..custom_base_model import CustomBaseModel | ||||||
| from ..meetings import MeetingInfo | ||||||
| from ..membership_source import MembershipSource | ||||||
| from .app_info import AppInfo | ||||||
| from .channel_info import ChannelInfo | ||||||
| from .notification_info import NotificationInfo | ||||||
| from .on_behalf_of import OnBehalfOf | ||||||
| from .settings import ChannelDataSettings | ||||||
| from .team_info import TeamInfo | ||||||
| from .tenant_info import TenantInfo | ||||||
|
|
@@ -54,3 +57,20 @@ class ChannelData(CustomBaseModel): | |||||
| Sequence number of the message in the stream. Starts at 1 for the first message and | ||||||
| increments from there. | ||||||
| """ | ||||||
|
|
||||||
| on_behalf_of: Optional[List[OnBehalfOf]] = None | ||||||
| """Information about the users on behalf of whom the action is performed.""" | ||||||
|
|
||||||
| shared_with_teams: Optional[List[TeamInfo]] = None | ||||||
| """List of teams that a channel was shared with.""" | ||||||
|
|
||||||
| unshared_from_teams: Optional[List[TeamInfo]] = None | ||||||
| """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.""" | ||||||
|
||||||
| """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.""" |
26 changes: 26 additions & 0 deletions
26
packages/api/src/microsoft/teams/api/models/channel_data/on_behalf_of.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| """ | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the MIT License. | ||
| """ | ||
|
|
||
| from typing import Optional | ||
|
|
||
| from ..custom_base_model import CustomBaseModel | ||
|
|
||
|
|
||
| class OnBehalfOf(CustomBaseModel): | ||
| """ | ||
| Represents information about a user on behalf of whom an action is performed. | ||
| """ | ||
|
|
||
| item_id: int = 0 | ||
| "The ID of the item." | ||
|
|
||
| mention_type: str | ||
| "The type of mention." | ||
|
|
||
| mri: str | ||
| "The Microsoft Resource Identifier (MRI) of the user." | ||
|
|
||
| display_name: Optional[str] = None | ||
| "The display name of the user." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/api/src/microsoft/teams/api/models/membership_source.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """ | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the MIT License. | ||
| """ | ||
|
|
||
| from typing import Literal | ||
|
|
||
| from .custom_base_model import CustomBaseModel | ||
|
|
||
|
|
||
| class MembershipSource(CustomBaseModel): | ||
| """ | ||
| Represents the source of a membership. | ||
| """ | ||
|
|
||
| id: str | ||
| "The unique identifier for the membership source." | ||
|
|
||
| sourceType: Literal["channel", "team"] | ||
| "The type of roster the user is a member of." | ||
|
|
||
| membershipType: Literal["direct", "transitive"] | ||
| "The user's relationship to the current channel." | ||
|
|
||
| tenantId: str | ||
| "The tenant ID of the user." | ||
|
|
||
| teamGroupId: str | ||
| "The group ID of the team associated with this membership source." |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
membershipSourcesfield is missing a docstring. Add a comment or docstring explaining its purpose, consistent with the documentation style used for other fields in this class.