"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Edge = void 0;
const resource_1 = require("cloudflare/resource");
class Edge extends resource_1.APIResource {
    /**
     * Creates a new Instant Logs job for a zone.
     */
    create(params, options) {
        const { zone_id, ...body } = params;
        return this._client.post(`/zones/${zone_id}/logpush/edge`, { body, ...options })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Lists Instant Logs jobs for a zone.
     */
    get(params, options) {
        const { zone_id } = params;
        return this._client.get(`/zones/${zone_id}/logpush/edge`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.Edge = Edge;
(function (Edge) {
})(Edge = exports.Edge || (exports.Edge = {}));
//# sourceMappingURL=edge.js.map