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EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAE3E;;;OAGG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAEvF;;;OAGG;IACH,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,KAAK,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAEhH,8BAA8B;IAC9B,uBAAuB,IAAI,IAAI,CAAC;IAEhC,yDAAyD;IACzD,0BAA0B,CAAC,EAAE,CAAC,EAAE,MAAM,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAE7E;;;OAGG;IACH,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;CAE5F;AAED,MAAM,WAAW,sBAAsB;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,wBAAwB,EAAE,CAAC;IACzC,sBAAsB,EAAE,sBAAsB,CAAC;CAClD","file":"IConversation.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n// Multi-device Conversation is a Preview feature.\n\nimport { PropertyCollection, SpeechTranslationConfig } from \"../Exports.js\";\nimport { IParticipant, IUser, TranscriptionParticipant } from \"./IParticipant.js\";\n\nexport type Callback = (result?: any) => void;\n\n/**\n * Manages conversations.\n * Added in version 1.4.0\n */\nexport interface IConversation {\n\n    config: SpeechTranslationConfig;\n\n    /**\n     * Gets/sets authorization token used to communicate with the service.\n     * Note: The caller needs to ensure that the authorization token is valid. Before the authorization token\n     * expires, the caller needs to refresh it by calling this setter with a new valid token.\n     * Otherwise, the recognizer will encounter errors during recognition.\n     */\n    authorizationToken: string;\n\n    /** Gets the unique identifier for the current conversation. */\n    readonly conversationId: string;\n\n    /** Gets the collection of properties and their values defined for this instance. */\n    readonly properties: PropertyCollection;\n\n    /** Gets the language name that is used for recognition. */\n    readonly speechRecognitionLanguage: string;\n\n    /** Start a conversation.\n     * The host must connect to the websocket within a minute for the conversation to remain open.\n     */\n    startConversationAsync(cb?: () => void, err?: (e: string) => void): void;\n\n    /** Delete a conversation. After this no one will be able to join the conversation. */\n    deleteConversationAsync(cb?: () => void, err?: (e: string) => void): void;\n\n    /** End a conversation. */\n    endConversationAsync(cb?: () => void, err?: (e: string) => void): void;\n\n    /** Lock a conversation. This will prevent new participants from joining. */\n    lockConversationAsync(cb?: () => void, err?: (e: string) => void): void;\n\n    /**\n     * Mute all other participants in the conversation. After this no other participants will\n     * have their speech recognitions broadcast, nor be able to send text messages.\n     */\n    muteAllParticipantsAsync(cb?: () => void, err?: (e: string) => void): void;\n\n    /**\n     * Mute a participant.\n     * @param userId A user identifier\n     */\n    muteParticipantAsync(userId: string, cb?: () => void, err?: (e: string) => void): void;\n\n    /**\n     * Remove a participant from a conversation using the user id, Participant or User object\n     * @param userId A user identifier\n     */\n    removeParticipantAsync(userId: string | IParticipant | IUser, cb?: () => void, err?: (e: string) => void): void;\n\n    /** Unlocks a conversation. */\n    unlockConversationAsync(): void;\n\n    /** Unmute all other participants in the conversation. */\n    unmuteAllParticipantsAsync(cb?: () => void, err?: (e: string) => void): void;\n\n    /**\n     * Unmute a participant.\n     * @param userId A user identifier\n     */\n    unmuteParticipantAsync(userId: string, cb?: () => void, err?: (e: string) => void): void;\n\n}\n\nexport interface ConversationProperties {\n    [key: string]: any;\n    id?: string;\n    attendees?: TranscriptionParticipant[];\n    record?: string;\n}\n\nexport interface ConversationInfo {\n    id: string;\n    participants: TranscriptionParticipant[];\n    conversationProperties: ConversationProperties;\n}\n"]}