"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connections = void 0;
const resource_1 = require("cloudflare/resource");
class Connections extends resource_1.APIResource {
    /**
     * Removes connections that are in a disconnected or pending reconnect state. We
     * recommend running this command after shutting down a tunnel.
     */
    delete(tunnelId, params, options) {
        const { account_id, body } = params;
        return this._client.delete(`/accounts/${account_id}/tunnels/${tunnelId}/connections`, {
            body: body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Fetches connection details for a Cloudflare Tunnel.
     */
    get(tunnelId, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/cfd_tunnel/${tunnelId}/connections`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.Connections = Connections;
(function (Connections) {
})(Connections = exports.Connections || (exports.Connections = {}));
//# sourceMappingURL=connections.js.map