"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Categories = void 0;
const resource_1 = require("cloudflare/resource");
class Categories extends resource_1.APIResource {
    /**
     * Fetches a list of all categories.
     */
    list(params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/gateway/categories`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.Categories = Categories;
(function (Categories) {
})(Categories = exports.Categories || (exports.Categories = {}));
//# sourceMappingURL=categories.js.map