@@ -235,6 +235,7 @@ export type AzureCommunicationChatAdapterArgs = {
235235 displayName: string ;
236236 credential: CommunicationTokenCredential ;
237237 threadId: string ;
238+ chatAdapterOptions? : ChatAdapterOptions ;
238239};
239240
240241// @public
@@ -1812,6 +1813,11 @@ export interface CaptionsSettingsModalStrings {
18121813// @public
18131814export type ChatAdapter = ChatAdapterThreadManagement & AdapterState <ChatAdapterState > & Disposable_2 & ChatAdapterSubscribers ;
18141815
1816+ // @public
1817+ export type ChatAdapterOptions = {
1818+ onFetchProfile? : OnFetchChatProfileCallback ;
1819+ };
1820+
18151821// @public
18161822export type ChatAdapterState = ChatAdapterUiState & ChatCompositeClientState ;
18171823
@@ -2022,6 +2028,11 @@ export type ChatParticipantListSelector = (state: ChatClientState, props: ChatBa
20222028 participants: ParticipantListParticipant [];
20232029};
20242030
2031+ // @public
2032+ export type ChatProfile = {
2033+ displayName? : string ;
2034+ };
2035+
20252036// @public
20262037export type ChatReturnProps <Component extends (props : any ) => JSX .Element > = GetChatSelector <Component > extends ((state : ChatClientState , props : any ) => any ) ? ReturnType <GetChatSelector <Component >> & Common <ChatHandlers , Parameters <Component >[0 ]> : never ;
20272038
@@ -2537,10 +2548,10 @@ export const createAzureCommunicationCallWithChatAdapter: ({ userId, displayName
25372548export const createAzureCommunicationCallWithChatAdapterFromClients: ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions }: AzureCommunicationCallWithChatAdapterFromClientArgs ) => Promise <CallWithChatAdapter >;
25382549
25392550// @public
2540- export const createAzureCommunicationChatAdapter: ({ endpoint: endpointUrl , userId, displayName, credential, threadId }: AzureCommunicationChatAdapterArgs ) => Promise <ChatAdapter >;
2551+ export const createAzureCommunicationChatAdapter: ({ endpoint: endpointUrl , userId, displayName, credential, threadId, chatAdapterOptions }: AzureCommunicationChatAdapterArgs ) => Promise <ChatAdapter >;
25412552
25422553// @public
2543- export function createAzureCommunicationChatAdapterFromClient(chatClient : StatefulChatClient , chatThreadClient : ChatThreadClient ): Promise <ChatAdapter >;
2554+ export function createAzureCommunicationChatAdapterFromClient(chatClient : StatefulChatClient , chatThreadClient : ChatThreadClient , chatAdapterOptions ? : ChatAdapterOptions ): Promise <ChatAdapter >;
25442555
25452556// @public
25462557export type CreateDefaultCallingHandlers = (callClient : StatefulCallClient , callAgent : CallAgent | undefined , deviceManager : StatefulDeviceManager | undefined , call : Call | undefined , options ? : CallingHandlersOptions ) => CallingHandlers ;
@@ -3869,6 +3880,9 @@ export type NotificationTarget = 'assignedBreakoutRoomOpened' | 'assignedBreakou
38693880// @public
38703881export type NotificationType = keyof NotificationStackStrings ;
38713882
3883+ // @public
3884+ export type OnFetchChatProfileCallback = (userId : string , defaultProfile ? : ChatProfile ) => Promise <ChatProfile | undefined >;
3885+
38723886// @public
38733887export type OnFetchProfileCallback = (userId : string , defaultProfile ? : Profile ) => Promise <Profile | undefined >;
38743888
0 commit comments