// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as LanguageAPI from 'cloudflaredev/resources/stream/captions/language/language';
export class Captions extends APIResource {
    constructor() {
        super(...arguments);
        this.language = new LanguageAPI.Language(this._client);
    }
    /**
     * Lists the available captions or subtitles for a specific video.
     */
    get(identifier, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/stream/${identifier}/captions`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (Captions) {
    Captions.Language = LanguageAPI.Language;
})(Captions || (Captions = {}));
//# sourceMappingURL=captions.mjs.map