"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Copies = void 0;
const resource_1 = require("cloudflare/resource");
class Copies extends resource_1.APIResource {
    /**
     * Uploads a video to Stream from a provided URL.
     */
    create(params, options) {
        const { account_id, 'Upload-Creator': uploadCreator, 'Upload-Metadata': uploadMetadata, ...body } = params;
        return this._client.post(`/accounts/${account_id}/stream/copy`, {
            body,
            ...options,
            headers: {
                'Upload-Creator': uploadCreator || '',
                'Upload-Metadata': uploadMetadata || '',
                ...options?.headers,
            },
        })._thenUnwrap((obj) => obj.result);
    }
}
exports.Copies = Copies;
(function (Copies) {
})(Copies = exports.Copies || (exports.Copies = {}));
//# sourceMappingURL=copies.js.map