Unblu Agent Embedded JS API
    Preparing search index...

    Class UnbluTeamsApi

    Provides read access to the account's teams

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • teamsModule: TeamsModule
      • apiStateProvider: ApiStateProvider

      Returns UnbluTeamsApi

    Methods

    • Returns the team with the given ID.

      The name and description of the team are returned in the agent's language if a translation for them exists.

      Parameters

      • teamId: string

        The ID of the team to return

      Returns Promise<Team>

      The team with the given ID

      UnbluApiError with type UnbluErrorType.ILLEGAL_STATE if the API instance is deinitialized.

      UnbluApiError with type UnbluErrorType.INVALID_FUNCTION_ARGUMENTS if the team doesn't exist or can't be accessed.

    • Returns a list of all teams of the account.

      The name and description of each team are returned in the agent's language if a translation for them exists.

      Returns Promise<Team[]>

      A list of all teams of the account

      UnbluApiError with type UnbluErrorType.ILLEGAL_STATE if the API instance is deinitialized.