Avaya Infinity Omni SDK
    Preparing search index...

    Represents the traits of the Avaya Infinity Core Conversation.

    interface CoreConversationTrait {
        createdAt: Readonly<Date>;
        participants: readonly Participant[];
        state: ConversationState;
        addConversationEndedListener(
            handler: EventHandler<ConversationEnded>,
        ): string;
        addParticipantAddedListener(
            handler: EventHandler<ParticipantAdded>,
        ): string;
        addParticipantDisconnectedListener(
            handler: EventHandler<ParticipantDisconnected>,
        ): string;
        end(): Promise<void>;
        removeConversationEndedListener(eventHandlerId: string): void;
        removeParticipantAddedListener(eventHandlerId: string): void;
        removeParticipantDisconnectedListener(eventHandlerId: string): void;
        setContextParameters(parameters: Record<string, string>): void;
    }

    Implemented by

    Index

    Properties

    createdAt: Readonly<Date>

    Date when the conversation was created.

    participants: readonly Participant[]

    Gets the list of participants in the conversation.

    The current state of the conversation.

    Methods

    • Attach event handler callback that needs to be invoked when the conversation ends.

      Parameters

      Returns string

      A unique event handler id that was generated by Omni SDK when the event handler was attached.

    • Attach event handler callback that needs to be invoked when a participant is added to the conversation.

      Parameters

      Returns string

      A unique identifier for the event handler.

    • Attach event handler callback that needs to be invoked when a participant is disconnected from the conversation.

      Parameters

      Returns string

      A unique identifier for the event handler.

    • End this conversation. This will end the conversation between the User and Avaya Infinity contact center and close all its associated channels.

      Returns Promise<void>

      A promise that resolves when the conversation has been successfully ended.

    • Remove the event handler callback that was attached to the conversation ended event.

      Parameters

      • eventHandlerId: string

        Event handler id that was received at the time of attaching the event handler.

      Returns void

    • Removes a event handler attached to the "participantAdded" event.

      Parameters

      • eventHandlerId: string

        The unique identifier of the event handler to be removed.

      Returns void

    • Removes a event handler attached to the "participantDisconnected" event.

      Parameters

      • eventHandlerId: string

        The unique identifier of the event handler to be removed.

      Returns void

    • The key value pairs that are passed as context parameters for the conversation to Avaya Infinity. Avaya Infinity uses this information to make business decisions on how the conversation should be treated. For example, the client application might want to send hints about customer's interest based on the customer's searches or FAQ browsing.

      Parameters

      • parameters: Record<string, string>

        The context parameters to set.

      Returns void

      conversation.setContextParameters({"availableBalance": "1000"});