Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
from ._models_py3 import TeamsMeetingInfo
from ._models_py3 import TeamsMeetingParticipant
from ._models_py3 import MeetingParticipantInfo
from ._models_py3 import CacheInfo

__all__ = [
"AppBasedLinkQuery",
Expand Down Expand Up @@ -123,4 +124,5 @@
"TeamsMeetingInfo",
"TeamsMeetingParticipant",
"MeetingParticipantInfo",
"CacheInfo",
]
50 changes: 45 additions & 5 deletions libraries/botbuilder-schema/botbuilder/schema/teams/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,28 @@ def __init__(self, *, id: str = None, name: str = None, **kwargs) -> None:
self.name = name


class CacheInfo(Model):
"""A cache info object which notifies Teams how long an object should be cached for.

:param cache_type: Type of Cache Info
:type cache_type: str
:param cache_duration: Duration of the Cached Info.
:type cache_duration: int
"""

_attribute_map = {
"cache_type": {"key": "cacheType", "type": "str"},
"cache_duration": {"key": "cacheDuration", "type": "int"},
}

def __init__(
self, *, cache_type: str = None, cache_duration: int = None, **kwargs
) -> None:
super(CacheInfo, self).__init__(**kwargs)
self.cache_type = cache_type
self.cache_duration = cache_duration


class ConversationList(Model):
"""List of channels under a team.

Expand Down Expand Up @@ -699,6 +721,8 @@ class MessagingExtensionActionResponse(Model):
:param compose_extension:
:type compose_extension:
~botframework.connector.teams.models.MessagingExtensionResult
:param cache_info: CacheInfo for this MessagingExtensionActionResponse.
:type cache_info: ~botframework.connector.teams.models.CacheInfo
"""

_attribute_map = {
Expand All @@ -707,12 +731,21 @@ class MessagingExtensionActionResponse(Model):
"key": "composeExtension",
"type": "MessagingExtensionResult",
},
"cache_info": {"key": "cacheInfo", "type": "CacheInfo"},
}

def __init__(self, *, task=None, compose_extension=None, **kwargs) -> None:
def __init__(
self,
*,
task=None,
compose_extension=None,
cache_info: CacheInfo = None,
**kwargs
) -> None:
super(MessagingExtensionActionResponse, self).__init__(**kwargs)
self.task = task
self.compose_extension = compose_extension
self.cache_info = cache_info


class MessagingExtensionAttachment(Attachment):
Expand Down Expand Up @@ -849,20 +882,23 @@ class MessagingExtensionResponse(Model):
"""Messaging extension response.

:param compose_extension:
:type compose_extension:
~botframework.connector.teams.models.MessagingExtensionResult
:type compose_extension: ~botframework.connector.teams.models.MessagingExtensionResult
:param cache_info: CacheInfo for this MessagingExtensionResponse.
:type cache_info: ~botframework.connector.teams.models.CacheInfo
"""

_attribute_map = {
"compose_extension": {
"key": "composeExtension",
"type": "MessagingExtensionResult",
},
"cache_info": {"key": "cacheInfo", "type": CacheInfo},
}

def __init__(self, *, compose_extension=None, **kwargs) -> None:
def __init__(self, *, compose_extension=None, cache_info=None, **kwargs) -> None:
super(MessagingExtensionResponse, self).__init__(**kwargs)
self.compose_extension = compose_extension
self.cache_info = cache_info


class MessagingExtensionResult(Model):
Expand Down Expand Up @@ -1671,15 +1707,19 @@ class TaskModuleResponse(Model):

:param task: The JSON for the Adaptive card to appear in the task module.
:type task: ~botframework.connector.teams.models.TaskModuleResponseBase
:param cache_info: CacheInfo for this TaskModuleResponse.
:type cache_info: ~botframework.connector.teams.models.CacheInfo
"""

_attribute_map = {
"task": {"key": "task", "type": "TaskModuleResponseBase"},
"cache_info": {"key": "cacheInfo", "type": "CacheInfo"},
}

def __init__(self, *, task=None, **kwargs) -> None:
def __init__(self, *, task=None, cache_info=None, **kwargs) -> None:
super(TaskModuleResponse, self).__init__(**kwargs)
self.task = task
self.cache_info = cache_info


class TaskModuleTaskInfo(Model):
Expand Down