cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.41 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { V4PagePaginationArray, } from "../../../../core/pagination.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseMessages = /* @__PURE__ */ (() => {
class BaseMessages extends APIResource {
/**
* Returns the individual messages associated with a bulk action job, including
* their processing status.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const messageListResponse of client.emailSecurity.investigate.bulk.messages.list(
* 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* )) {
* // ...
* }
* ```
*/
list(jobID, params, options) {
const { account_id, ...query } = params;
return this._client.getAPIList(path `/accounts/${account_id}/email-security/investigate/bulk/${jobID}/messages`, (V4PagePaginationArray), { query, ...options });
}
}
BaseMessages._key = Object.freeze(['emailSecurity', 'investigate', 'bulk', 'messages']);
return BaseMessages;
})();
export class Messages extends BaseMessages {
}
//# sourceMappingURL=messages.mjs.map