UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

57 lines • 2.17 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; export var BaseASPA = /* @__PURE__ */ (() => { class BaseASPA extends APIResource { /** * Retrieves ASPA (Autonomous System Provider Authorization) changes over time. * Returns daily aggregated changes including additions, removals, and * modifications of ASPA objects. * * @example * ```ts * const response = await client.radar.bgp.rpki.aspa.changes(); * ``` */ changes(query = {}, options) { return this._client.get('/radar/bgp/rpki/aspa/changes', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves current or historical ASPA (Autonomous System Provider Authorization) * objects. ASPA objects define which ASNs are authorized upstream providers for a * customer ASN. * * @example * ```ts * const response = * await client.radar.bgp.rpki.aspa.snapshot(); * ``` */ snapshot(query = {}, options) { return this._client.get('/radar/bgp/rpki/aspa/snapshot', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves ASPA (Autonomous System Provider Authorization) object count over * time. Supports filtering by RIR or location (country code) to generate multiple * named series. If no RIR or location filter is specified, returns total count. * * @example * ```ts * const response = * await client.radar.bgp.rpki.aspa.timeseries(); * ``` */ timeseries(query = {}, options) { return this._client.get('/radar/bgp/rpki/aspa/timeseries', { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseASPA._key = Object.freeze([ 'radar', 'bgp', 'rpki', 'aspa', ]); return BaseASPA; })(); export class ASPA extends BaseASPA { } //# sourceMappingURL=aspa.mjs.map