/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { streamsCreateOrReconfigureStream } from "../funcs/streamsCreateOrReconfigureStream.js";
import { streamsCreateStream } from "../funcs/streamsCreateStream.js";
import { streamsDeleteStream } from "../funcs/streamsDeleteStream.js";
import { streamsGetStreamConfig } from "../funcs/streamsGetStreamConfig.js";
import { streamsListStreams } from "../funcs/streamsListStreams.js";
import { streamsReconfigureStream } from "../funcs/streamsReconfigureStream.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
import { unwrapResultIterator } from "../types/operations.js";
export class Streams extends ClientSDK {
    /**
     * List streams.
     */
    async listStreams(request, options) {
        return unwrapResultIterator(streamsListStreams(this, request, options));
    }
    /**
     * Create a stream.
     */
    async createStream(request, options) {
        return unwrapAsync(streamsCreateStream(this, request, options));
    }
    /**
     * Get stream configuration.
     */
    async getStreamConfig(request, options) {
        return unwrapAsync(streamsGetStreamConfig(this, request, options));
    }
    /**
     * Create or reconfigure a stream.
     */
    async createOrReconfigureStream(request, options) {
        return unwrapAsync(streamsCreateOrReconfigureStream(this, request, options));
    }
    /**
     * Delete a stream.
     */
    async deleteStream(request, options) {
        return unwrapAsync(streamsDeleteStream(this, request, options));
    }
    /**
     * Reconfigure a stream.
     */
    async reconfigureStream(request, options) {
        return unwrapAsync(streamsReconfigureStream(this, request, options));
    }
}
//# sourceMappingURL=streams.js.map