// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import * as DirectUploadsAPI from 'cloudflare/resources/images/v2/direct-uploads';
export class V2 extends APIResource {
    constructor() {
        super(...arguments);
        this.directUploads = new DirectUploadsAPI.DirectUploads(this._client);
    }
    /**
     * List up to 10000 images with one request. Use the optional parameters below to
     * get a specific range of images. Endpoint returns continuation_token if more
     * images are present.
     */
    list(params, options) {
        const { account_id, ...query } = params;
        return this._client.get(`/accounts/${account_id}/images/v2`, { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (V2) {
    V2.DirectUploads = DirectUploadsAPI.DirectUploads;
})(V2 || (V2 = {}));
//# sourceMappingURL=v2.mjs.map