Skip to content

Commit 33608ac

Browse files
authored
Initial implementation of the MS Teams app identifier for Identity package. (#32942)
* Implementation of the identifier for Identity package.
1 parent 91764ec commit 33608ac

File tree

21 files changed

+2169
-1737
lines changed

21 files changed

+2169
-1737
lines changed

sdk/communication/azure-communication-callautomation/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- StartRecording now accepts PauseOnStart.
77
- Start, Stop, Update transcript added.
88
- Start, Stop hold music added.
9+
- Introduced `MicrosoftTeamsAppIdentifier` for MS Teams automated scenarios.
910

1011
### Breaking Changes
1112

@@ -26,7 +27,7 @@
2627
- Recognize supports choices and freeform speech.
2728
- Start/Stop continuous DTMF recognition by subscribing/unsubscribing to tones.
2829
- Send DTMF tones to a participant in the call.
29-
- Mute participant in the call.
30+
- Mute participants in the call.
3031

3132
### Other Changes
3233
- The models `ServerCallLocator` and `GroupCallLocator` have been deprecated, and the ID values can now be passed directly into `CallAutomationClient.start_recording` as keyword arguments.

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from ._shared.models import (
3030
CommunicationIdentifier,
3131
PhoneNumberIdentifier,
32+
MicrosoftTeamsAppIdentifier,
3233
MicrosoftTeamsUserIdentifier,
3334
CommunicationUserIdentifier,
3435
CommunicationIdentifierKind,
@@ -79,6 +80,7 @@
7980
# common ACS communication identifier
8081
"CommunicationIdentifier",
8182
"PhoneNumberIdentifier",
83+
"MicrosoftTeamsAppIdentifier",
8284
"MicrosoftTeamsUserIdentifier",
8385
"CommunicationUserIdentifier",
8486
"CommunicationIdentifierKind",
@@ -127,7 +129,8 @@ def __getattr__(name):
127129
from ._models import ServerCallLocator
128130
return ServerCallLocator
129131
if name == 'MicrosoftBotIdentifier':
130-
warnings.warn(f"{name} is deprecated and should not be used.", DeprecationWarning)
131-
from ._shared.models import _MicrosoftBotIdentifier
132+
warnings.warn(f"{name} is deprecated and should not be used. Please use 'MicrosoftTeamsAppIdentifier' instead.",
133+
DeprecationWarning)
134+
from ._shared.models import _MicrosoftBotIdentifier
132135
return _MicrosoftBotIdentifier
133136
raise AttributeError(f"module 'azure.communication.callautomation' has no attribute {name}")

0 commit comments

Comments
 (0)