cloudflare
Version:
The official TypeScript library for the Cloudflare API
40 lines • 1.65 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { SinglePage } from "../../../core/pagination.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseRelease = /* @__PURE__ */ (() => {
class BaseRelease extends APIResource {
/**
* Delivers one or more quarantined messages to their intended recipients, for
* cases where a message was incorrectly quarantined. Operates on an explicit list
* of messages; to release all messages matching a search, create a bulk action job
* instead. The response includes delivery status for each recipient.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const releaseBulkResponse of client.emailSecurity.investigate.release.bulk(
* {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* ids: ['4Njp3P0STMz2c02Q-2024-01-05T10:00:00-12345678'],
* },
* )) {
* // ...
* }
* ```
*/
bulk(params, options) {
const { account_id, ...body } = params;
return this._client.getAPIList(path `/accounts/${account_id}/email-security/investigate/release`, (SinglePage), { body, method: 'post', ...options });
}
}
BaseRelease._key = Object.freeze([
'emailSecurity',
'investigate',
'release',
]);
return BaseRelease;
})();
export class Release extends BaseRelease {
}
//# sourceMappingURL=release.mjs.map