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

import { logsGetRuntimeLogs } from "../funcs/logsGetRuntimeLogs.js";
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
import {
  GetRuntimeLogsRequest,
  GetRuntimeLogsResponseBody,
} from "../models/getruntimelogsop.js";
import { unwrapAsync } from "../types/fp.js";

export class Logs extends ClientSDK {
  /**
   * Get logs for a deployment
   *
   * @remarks
   * Returns a stream of logs for a given deployment.
   */
  async getRuntimeLogs(
    request: GetRuntimeLogsRequest,
    options?: RequestOptions,
  ): Promise<GetRuntimeLogsResponseBody> {
    return unwrapAsync(logsGetRuntimeLogs(
      this,
      request,
      options,
    ));
  }
}
