UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.48 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseGraph = /* @__PURE__ */ (() => { class BaseGraph extends 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(path `/accounts/${account_id}/cloudforce-one/events/graph`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseGraph._key = Object.freeze([ 'cloudforceOne', 'threatEvents', 'graph', ]); return BaseGraph; })(); export class Graph extends BaseGraph { } //# sourceMappingURL=graph.mjs.map