// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as CategoriesAPI from 'cloudflaredev/resources/zero-trust/gateway/categories';
import { SinglePage } from 'cloudflaredev/pagination';
export class Categories extends APIResource {
    /**
     * Fetches a list of all categories.
     */
    list(params, options) {
        const { account_id } = params;
        return this._client.getAPIList(`/accounts/${account_id}/gateway/categories`, CategoriesSinglePage, options);
    }
}
export class CategoriesSinglePage extends SinglePage {
}
(function (Categories) {
    Categories.CategoriesSinglePage = CategoriesAPI.CategoriesSinglePage;
})(Categories || (Categories = {}));
//# sourceMappingURL=categories.mjs.map