cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.27 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { buildHeaders } from "../../../../internal/headers.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseRaw = /* @__PURE__ */ (() => {
class BaseRaw extends APIResource {
/**
* Retrieves the feed document fetched by the most recent poll.
*
* @example
* ```ts
* const raw =
* await client.cloudforceOne.threatSignals.feeds.raw.get(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* { account_id: 'account_id' },
* );
* ```
*/
get(feedID, params, options) {
const { account_id, ...query } = params;
return this._client.get(path `/accounts/${account_id}/cloudforce-one/v2/threat-signals/feeds/${feedID}/raw`, { query, ...options, headers: buildHeaders([{ Accept: 'application/xml' }, options?.headers]) });
}
}
BaseRaw._key = Object.freeze([
'cloudforceOne',
'threatSignals',
'feeds',
'raw',
]);
return BaseRaw;
})();
export class Raw extends BaseRaw {
}
//# sourceMappingURL=raw.mjs.map