"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Streams = void 0;
const streamsCreateOrReconfigureStream_js_1 = require("../funcs/streamsCreateOrReconfigureStream.js");
const streamsCreateStream_js_1 = require("../funcs/streamsCreateStream.js");
const streamsDeleteStream_js_1 = require("../funcs/streamsDeleteStream.js");
const streamsGetStreamConfig_js_1 = require("../funcs/streamsGetStreamConfig.js");
const streamsListStreams_js_1 = require("../funcs/streamsListStreams.js");
const streamsReconfigureStream_js_1 = require("../funcs/streamsReconfigureStream.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
const operations_js_1 = require("../types/operations.js");
class Streams extends sdks_js_1.ClientSDK {
    /**
     * List streams.
     */
    async listStreams(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, streamsListStreams_js_1.streamsListStreams)(this, request, options));
    }
    /**
     * Create a stream.
     */
    async createStream(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, streamsCreateStream_js_1.streamsCreateStream)(this, request, options));
    }
    /**
     * Get stream configuration.
     */
    async getStreamConfig(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, streamsGetStreamConfig_js_1.streamsGetStreamConfig)(this, request, options));
    }
    /**
     * Create or reconfigure a stream.
     */
    async createOrReconfigureStream(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, streamsCreateOrReconfigureStream_js_1.streamsCreateOrReconfigureStream)(this, request, options));
    }
    /**
     * Delete a stream.
     */
    async deleteStream(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, streamsDeleteStream_js_1.streamsDeleteStream)(this, request, options));
    }
    /**
     * Reconfigure a stream.
     */
    async reconfigureStream(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, streamsReconfigureStream_js_1.streamsReconfigureStream)(this, request, options));
    }
}
exports.Streams = Streams;
//# sourceMappingURL=streams.js.map