Skip to content

Commit 794d4a0

Browse files
fixing mypy issues (#42756)
* fixing mypy issues * running the autorest * fixing the mypy errors * fixing mypy error * reverting the shared model code change for the mypy * fixing some of issues * reverting target participant change in the create call * supressing few of mypy error * fixing the testing issue * updated * fixing the pylint * Updating the changelog and ga version * removed * fixing my py errors * addressing the mypy errors * removing the changes which added by mistake * resolving the comments * fixing the issue * pushing the changes related to communication identifier return type * reverting ignore type * removing few of the arg type * Mypy fixes * Fix tests * Updated changelog * Added missing models to init * Fix docstring --------- Co-authored-by: antisch <[email protected]>
1 parent 8454ce1 commit 794d4a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1770
-1517
lines changed

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
# Release History
22

3-
## 1.5.0b1 (Unreleased)
3+
## 1.5.0 (2025-08-29)
44

55
### Features Added
66

77
- Added support for Teams multipersona users in create call, add participant, transfer, and redirect scenarios in OPS calls
88
- Added TeamsAppSource for use when creating outbound OPS calls
99
- Recording with the call connection ID is now supported. OPS calls can be recorded using the call connection ID.
10+
- Adds support for SIP headers prefixed with 'X-' and 'X-MS-Custom-' within the CustomCallingContext.
11+
12+
### Breaking Changes
13+
14+
- The properties `media_streaming_subscription` and `transcription_subscription` of `CallConnectionProperties` are no longer subclasses of the internal `Model` baseclass, and no longer have the inherited methods.
15+
- The following attributes have now been typed as `Optional` to reflect the actual behaviour: `CallParticipant.is_muted`, `CallParticipant.is_on_hold`, `AddParticipantResult.invitation_id`, `CancelAddParticipantOperationResult.invitation_id`.
16+
- The models `FileSource` and `ChannelAffinity` will no longer accept arbitrary keyword args in the constructor.
17+
18+
### Bugs fixed
19+
20+
- Fixed range specification for download_recording.
21+
- Fixed serialization of participant ordering for start_recording.
22+
1023

1124
## 1.4.0 (2025-06-06)
12-
25+
1326
### Features Added
14-
27+
1528
- Real-time transcription support
1629
- Audio and DTMF streaming capabilities
1730
- Integration of ConnectAPI for seamless streaming and transcription
@@ -72,7 +85,7 @@
7285
### Features Added
7386

7487
- Support for Bring Your Own Storage recording option
75-
- Support for PauseOnStart recording option
88+
- Support for PauseOnStart recording option
7689
- Support for Recording state change with new recording kind's
7790

7891
### Other Changes

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
CancelAddParticipantOperationResult,
2828
AzureBlobContainerRecordingStorage,
2929
AzureCommunicationsRecordingStorage,
30+
MediaStreamingSubscription,
31+
TranscriptionSubscription,
3032
)
3133
from ._shared.models import (
3234
CommunicationIdentifier,
@@ -50,19 +52,21 @@
5052
RecognizeInputType,
5153
MediaStreamingAudioChannelType,
5254
MediaStreamingContentType,
55+
MediaStreamingSubscriptionState,
56+
TranscriptionResultType,
57+
TranscriptionSubscriptionState,
5358
StreamingTransportType,
5459
DtmfTone,
5560
CallConnectionState,
5661
RecordingState,
5762
VoiceKind,
58-
AudioFormat
63+
AudioFormat,
5964
)
6065

6166
__all__ = [
6267
# clients
6368
"CallAutomationClient",
6469
"CallConnectionClient",
65-
6670
# models for input
6771
"FileSource",
6872
"TextSource",
@@ -73,9 +77,10 @@
7377
"TranscriptionOptions",
7478
"AzureBlobContainerRecordingStorage",
7579
"AzureCommunicationsRecordingStorage",
76-
7780
# models for output
7881
"CallConnectionProperties",
82+
"MediaStreamingSubscription",
83+
"TranscriptionSubscription",
7984
"CallParticipant",
8085
"RecordingProperties",
8186
"AddParticipantResult",
@@ -95,7 +100,6 @@
95100
"UnknownIdentifier",
96101
"TeamsExtensionUserProperties",
97102
"TeamsExtensionUserIdentifier",
98-
99103
# enums
100104
"CallRejectReason",
101105
"RecordingContent",
@@ -106,12 +110,15 @@
106110
"RecognizeInputType",
107111
"MediaStreamingAudioChannelType",
108112
"MediaStreamingContentType",
113+
"MediaStreamingSubscriptionState",
114+
"TranscriptionResultType",
115+
"TranscriptionSubscriptionState",
109116
"StreamingTransportType",
110117
"DtmfTone",
111118
"CallConnectionState",
112119
"RecordingState",
113120
"VoiceKind",
114-
"AudioFormat"
121+
"AudioFormat",
115122
]
116123
__version__ = VERSION
117124

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1515
V2025_05_15 = "2025-05-15"
1616
V2025_06_15 = "2025-06-15"
1717

18+
1819
DEFAULT_VERSION = ApiVersion.V2025_06_15.value

0 commit comments

Comments
 (0)