// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import * as DetailsAPI from 'cloudflare/resources/workers/deployments/by-scripts/details';
export class ByScripts extends APIResource {
    constructor() {
        super(...arguments);
        this.details = new DetailsAPI.Details(this._client);
    }
    /**
     * List Deployments
     */
    get(scriptId, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/workers/deployments/by-script/${scriptId}`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (ByScripts) {
    ByScripts.Details = DetailsAPI.Details;
})(ByScripts || (ByScripts = {}));
//# sourceMappingURL=by-scripts.mjs.map