Skip to content

Commit b64b46a

Browse files
prprabhu-msAikoBB
andauthored
[communication-identity] Export some missing *Properties types in the API (Azure#25758)
* Export missing property types * identifier_from_raw_id is exposed from chat modality * updated chat changelog Co-authored-by: Aigerim <aykobb@gmail.com>
1 parent ae20346 commit b64b46a

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Added support for proactive refreshing of tokens
66
- `CommunicationTokenCredential` exposes a new boolean keyword argument `proactive_refresh` that defaults to `False`. If set to `True`, the refreshing of the token will be scheduled in the background ensuring continuous authentication state.
77
- Added disposal function `close` for `CommunicationTokenCredential`.
8+
- Added `identifier_from_raw_id` and ensured that `CommunicationIdentifier.raw_id` is populated on creation. Together, these can be used to translate between a `CommunicationIdentifier` and its underlying canonical raw ID representation. Developers can now use the raw ID as an encoded format for identifiers to store in their databases or as stable keys in general.
89

910
### Features Added
1011

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
CommunicationIdentifierKind,
2424
CommunicationUserIdentifier,
2525
CommunicationUserProperties,
26+
identifier_from_raw_id,
2627
PhoneNumberIdentifier,
2728
PhoneNumberProperties,
2829
MicrosoftTeamsUserIdentifier,
@@ -48,6 +49,7 @@
4849
'CommunicationIdentifierKind',
4950
'CommunicationUserIdentifier',
5051
'CommunicationUserProperties',
52+
'identifier_from_raw_id',
5153
'PhoneNumberIdentifier',
5254
'PhoneNumberProperties',
5355
'MicrosoftTeamsUserIdentifier',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Features Added
66

7-
- Exported types `MicrosoftTeamsUserIdentifier`, `PhoneNumberIdentifier`, `UnknownIdentifier` for non Azure Communication Services `CommunicationIdentifier` identities.
7+
- Exported types `MicrosoftTeamsUserIdentifier`, `PhoneNumberIdentifier`, `UnknownIdentifier` for non Azure Communication Services `CommunicationIdentifier` identities. Exported related types: `MicrosoftTeamsUserProperties` and `PhoneNumberProperties`.
88
- Added `identifier_from_raw_id` and ensured that `CommunicationIdentifier.raw_id` is populated on creation. Together, these can be used to translate between a `CommunicationIdentifier` and its underlying canonical raw ID representation. Developers can now use the raw ID as an encoded format for identifiers to store in their databases or as stable keys in general.
99

1010
### Breaking Changes

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
CommunicationIdentifierKind,
1717
CommunicationUserIdentifier,
1818
CommunicationUserProperties,
19+
identifier_from_raw_id,
1920
MicrosoftTeamsUserIdentifier,
21+
MicrosoftTeamsUserProperties,
2022
PhoneNumberIdentifier,
21-
UnknownIdentifier,
22-
identifier_from_raw_id
23+
PhoneNumberProperties,
24+
UnknownIdentifier
2325
)
2426

2527
__all__ = [
@@ -34,8 +36,10 @@
3436
'CommunicationIdentifierKind',
3537
'CommunicationUserIdentifier',
3638
'CommunicationUserProperties',
39+
'identifier_from_raw_id',
3740
'MicrosoftTeamsUserIdentifier',
41+
'MicrosoftTeamsUserProperties',
3842
'PhoneNumberIdentifier',
39-
'UnknownIdentifier',
40-
'identifier_from_raw_id'
43+
'PhoneNumberProperties',
44+
'UnknownIdentifier'
4145
]

0 commit comments

Comments
 (0)