// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as ObjectsAPI from 'cloudflaredev/resources/durable-objects/namespaces/objects';
import { CursorLimitPagination } from 'cloudflaredev/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`, DurableObjectsCursorLimitPagination, { query, ...options });
    }
}
export class DurableObjectsCursorLimitPagination extends CursorLimitPagination {
}
(function (Objects) {
    Objects.DurableObjectsCursorLimitPagination = ObjectsAPI.DurableObjectsCursorLimitPagination;
})(Objects || (Objects = {}));
//# sourceMappingURL=objects.mjs.map