UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

43 lines • 1.66 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Graph = exports.BaseGraph = 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 BaseGraph = /* @__PURE__ */ (() => { class BaseGraph extends resource_1.APIResource { /** * Expands the single-level relationship neighborhood of one or more seed nodes * (event, indicator, or tag) from R2 Data Catalog. Seeds use compact id format * (type:uuid), e.g. "event:550e8400-...". Multi-seed requests merge and * deduplicate results server-side. Hydrates neighbor entities with summary data * from Durable Objects. Supports filtering by relationship type and dataset scope. * * @example * ```ts * const graphs = * await client.cloudforceOne.threatEvents.graph.list({ * account_id: 'account_id', * }); * ``` */ list(params, options) { const { account_id, ...query } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/cloudforce-one/events/graph`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseGraph._key = Object.freeze([ 'cloudforceOne', 'threatEvents', 'graph', ]); return BaseGraph; })(); exports.BaseGraph = BaseGraph; class Graph extends BaseGraph { } exports.Graph = Graph; //# sourceMappingURL=graph.js.map