// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import * as ObjectsAPI from 'cloudflare/resources/durable-objects/namespaces/objects';
import { CursorLimitPagination } from 'cloudflare/pagination';
export class Objects extends APIResource {
    /**
     * Returns the Durable Objects in a given namespace.
     */
    list(id, params, options) {
        const { account_id, ...query } = params;
        return this._client.getAPIList(`/accounts/${account_id}/workers/durable_objects/namespaces/${id}/objects`, WorkersObjectsCursorLimitPagination, { query, ...options });
    }
}
export class WorkersObjectsCursorLimitPagination extends CursorLimitPagination {
}
(function (Objects) {
    Objects.WorkersObjectsCursorLimitPagination = ObjectsAPI.WorkersObjectsCursorLimitPagination;
})(Objects || (Objects = {}));
//# sourceMappingURL=objects.mjs.map