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

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

export class Plex extends ClientSDK {
  /**
   * Get Server Resources
   *
   * @remarks
   * Get Plex server access tokens and server connections
   */
  async getServerResources(
    request: operations.GetServerResourcesRequest,
    options?: RequestOptions,
  ): Promise<operations.GetServerResourcesResponse> {
    return unwrapAsync(plexGetServerResources(
      this,
      request,
      options,
    ));
  }
}
