/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import { usersGetUsers } from "../funcs/usersGetUsers.js";
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
import * as operations from "./models/operations/index.js";
import { unwrapAsync } from "./types/fp.js";

export class Users extends ClientSDK {
  /**
   * Get list of all connected users
   *
   * @remarks
   * Get list of all users that are friends and have library access with the provided Plex authentication token
   */
  async getUsers(
    request: operations.GetUsersRequest,
    options?: RequestOptions,
  ): Promise<operations.GetUsersResponse> {
    return unwrapAsync(usersGetUsers(
      this,
      request,
      options,
    ));
  }
}
