UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

39 lines • 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Trace = exports.BaseTrace = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../core/resource.js"); const path_1 = require("../../../internal/utils/path.js"); var BaseTrace = /* @__PURE__ */ (() => { class BaseTrace extends resource_1.APIResource { /** * Retrieves delivery and processing trace information for an email message. Shows * the delivery path, retraction history, and move operations performed on the * message. Useful for debugging delivery issues. * * @example * ```ts * const trace = * await client.emailSecurity.investigate.trace.get( * '4Njp3P0STMz2c02Q-2024-01-05T10:00:00-12345678', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ get(investigateID, params, options) { const { account_id } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/email-security/investigate/${investigateID}/trace`, options)._thenUnwrap((obj) => obj.result); } } BaseTrace._key = Object.freeze([ 'emailSecurity', 'investigate', 'trace', ]); return BaseTrace; })(); exports.BaseTrace = BaseTrace; class Trace extends BaseTrace { } exports.Trace = Trace; //# sourceMappingURL=trace.js.map