- Updated to
@azure/[email protected]
. - Improves real-time notification of messages when the network is offline, interrupted or unstable. For message(s) sent during this time, the customer will receive the notification that the message has been delivered if the network is functioning normally within 15 minutes.
- Updated to
@azure/core-tracing
1.0.
- Added support to customize the Communication Identity access token’s validity period:
- Added method overloads that provide the ability to create a Communication Identity access token with custom expiration:
CreateUserAndToken(IEnumerable<CommunicationTokenScope> scopes, TimeSpan tokenExpiresIn, CancellationToken cancellationToken = default)
CreateUserAndTokenAsync(IEnumerable<CommunicationTokenScope> scopes, TimeSpan tokenExpiresIn, CancellationToken cancellationToken = default)
GetToken(CommunicationUserIdentifier communicationUser, IEnumerable<CommunicationTokenScope> scopes, TimeSpan tokenExpiresIn, CancellationToken cancellationToken = default)
GetTokenAsync(CommunicationUserIdentifier communicationUser, IEnumerable<CommunicationTokenScope> scopes, TimeSpan tokenExpiresIn, CancellationToken cancellationToken = default)
- Added method overloads that provide the ability to create a Communication Identity access token with custom expiration:
- Added a new API version
ServiceVersion.V2022_10_01
that is now the default API version.
- Added support to customize the Communication Identity access token's validity period:
createUserAndToken
andgetToken
methods now acceptCreateUserAndTokenOptions
andGetTokenOptions
that provide the ability to create a Communication Identity access token with custom expiration via optionaltokenExpiresInMinutes
property:createUserAndToken(scopes: TokenScope[], options: CreateUserAndTokenOptions = {})
getToken(user: CommunicationUserIdentifier, scopes: TokenScope[], options: GetTokenOptions = {})
interface CreateUserAndTokenOptions extends OperationOptions { tokenExpiresInMinutes?: number; }
interface GetTokenOptions extends OperationOptions { tokenExpiresInMinutes?: number; }
- Added a new API version
2022-10-01
that is now the default API version.
- Added support to customize the Communication Identity access token’s validity period:
- Added methods that provide the ability to create a Communication Identity access token with custom expiration:
- CommunicationIdentityClient:
createUserAndToken(Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn)
createUserAndTokenWithResponse(Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn, Context context)
getToken(CommunicationUserIdentifier communicationUser, Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn)
getTokenWithResponse(CommunicationUserIdentifier communicationUser, Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn, Context context)
- CommunicationIdentityAsyncClient:
createUserAndToken(Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn)
createUserAndTokenWithResponse(Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn)
getToken(CommunicationUserIdentifier communicationUser, Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn)
getTokenWithResponse(CommunicationUserIdentifier communicationUser, Iterable<CommunicationTokenScope> scopes, Duration tokenExpiresIn)
- CommunicationIdentityClient:
- Added methods that provide the ability to create a Communication Identity access token with custom expiration:
- Added a new API version
CommunicationIdentityServiceVersion.V2022_10_01
that is now the default API version.
- Upgraded
azure-core
from1.32.0
to version1.33.0
. - Upgraded
azure-communication-common
from1.2.1
to version1.2.2
.
- Added support to customize the Communication Identity access token's validity period:
create_user_and_token
andget_token
methods in both sync and async clients can now accept keyword argumenttoken_expires_in: ~datetime.timedelta
that provides the ability to create a Communication Identity access token with custom expiration.
- Added a new API version
ApiVersion.V2022_10_01
that is now the default API version.
- Fixed the logic of
PhoneNumberIdentifier
to always maintain the original phone number string whether it included the leading+
sign or not.
- Upgraded
azure-core
from1.32.0
to version1.33.0
. - Upgraded
azure-core-http-netty
from1.12.5
to version1.12.6
.