mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-06 16:01:00 +00:00
Pin merged honk API eba8a24. ProviderCreate gains optional update_interval, user_agent and cache, and resources.providers.create_options lists the ones a backend accepts with their defaults. types.ts is regenerated with pnpm gen:api.
5750 lines
247 KiB
TypeScript
5750 lines
247 KiB
TypeScript
/**
|
|
* This file was auto-generated by openapi-typescript.
|
|
* Do not make direct changes to the file.
|
|
*/
|
|
|
|
export interface paths {
|
|
"/api": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Discover the native API
|
|
* @description Public in every auth mode, so a client can choose how to sign in. A caller the listener admits (a valid bearer or session, or no credential on an explicitly secretless loopback listener) receives the full view. Any other request without a credential receives the public view, which carries only the API name and major, the sign-in links, and the auth mode. A request that carries a credential is authenticated first: an invalid one gets 401, never the public view. No resource permission is required.
|
|
*/
|
|
get: operations["getDiscovery"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/version": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read native and engine version identity
|
|
* @description Requires bearer authentication when the listener has a deployment secret. Anonymous access is permitted only on an explicitly secretless loopback listener. No resource permission is required.
|
|
*/
|
|
get: operations["getVersion"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/capabilities": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Negotiate resources, visibility, and limits
|
|
* @description Requires bearer authentication when the listener has a deployment secret. Anonymous access is permitted only on an explicitly secretless loopback listener. No resource permission is required.
|
|
*/
|
|
get: operations["getCapabilities"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/auth/setup": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/**
|
|
* Create the administrator account and open a session
|
|
* @description Available only while discovery reports `auth.mode: password` with `setup_required: true`. The peer must be loopback, RFC 1918, RFC 4193 or link-local; any other peer is refused with `permission_denied` before the account state is read. Authorization must be absent: a request that carries it is authenticated first, and before setup no session exists, so it gets 401 `authentication_required`.
|
|
*/
|
|
post: operations["setupAdministrator"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/auth/login": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/**
|
|
* Exchange the administrator credentials for a session
|
|
* @description Available only in password mode after setup. A wrong username or password is `invalid_credentials`; before setup the answer is `setup_required`. Authorization must be absent.
|
|
*/
|
|
post: operations["login"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/auth/logout": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/**
|
|
* End the session that authenticates this request
|
|
* @description Requires a password-session bearer; a configured bearer cannot log out.
|
|
*/
|
|
post: operations["logout"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/config": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read the effective configuration
|
|
* @description Requires resources.config.available. Returns one coherent snapshot of the
|
|
* accepted sources and retained diagnostics for generation_id and revision,
|
|
* not a fresh read of files that may have changed since loading. The source
|
|
* set is complete and bounded by resources.config.max_sources; never truncate it.
|
|
* Omit source content unless resources.config.content is true. Apply visibility
|
|
* filters to paths, content and diagnostics; observe never grants raw secrets.
|
|
*/
|
|
get: operations["getConfig"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/config/validate": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/**
|
|
* Validate candidate configuration without applying it
|
|
* @description Requires resources.config_validate.available and control because the body
|
|
* may contain secrets. Syntax mode parses only submitted text. Full mode also
|
|
* checks semantics and resolves includes/subscriptions from submitted sources
|
|
* or adapter-authorized local files and cached data, never from the network.
|
|
* Missing or inaccessible required local dependencies produce error diagnostics.
|
|
* An unfetched subscription produces a subscription-not-fetched warning and
|
|
* does not by itself invalidate the candidate; validation does not fetch it.
|
|
* Neither mode writes files, refreshes caches, applies configuration,
|
|
* publishes a generation, or starts an operation.
|
|
* Return 200 for completed validation, including invalid candidates. Malformed
|
|
* JSON/request shape or duplicate effective source IDs returns 400; an
|
|
* unadvertised mode returns 422 unsupported_value. Enforce max_bytes over the
|
|
* sum of UTF-8 configuration source bytes and max_sources over the source count,
|
|
* including locally resolved source text in full mode; exceeding either returns
|
|
* 413. Geodata assets do not count toward the byte limit.
|
|
* The shared max_json_body_bytes limit applies independently to the HTTP body.
|
|
* Never echo candidate text, secrets, or private paths in diagnostics or errors.
|
|
*/
|
|
post: operations["validateConfig"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/config/sources/{source_id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/**
|
|
* @description Opaque ID of an accepted source, never a path supplied by the caller.
|
|
* @example source-main
|
|
*/
|
|
source_id: string;
|
|
};
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read one accepted configuration source
|
|
* @description Requires resources.config.available. Returns the same ConfigSource as
|
|
* GET /config, not a fresh read of disk. Include optional content only when
|
|
* resources.config.content is true; apply the same path and secret redaction.
|
|
* Unknown source IDs return 404 resource_not_found. Redacted text must never
|
|
* be saved as a replacement; compare its UTF-8 SHA-256 with content_sha256
|
|
* before using returned content as an editing representation.
|
|
*/
|
|
get: operations["getConfigSource"];
|
|
/**
|
|
* Replace one configuration source and reload
|
|
* @description Requires control, resources.config.available, resources.config.writable,
|
|
* and writable: true on the accepted source. A disabled write switch or a
|
|
* read-only source returns 403 permission_denied. Generated and subscription
|
|
* sources are never writable. Unknown IDs return 404 resource_not_found.
|
|
* The body replaces the complete source with UTF-8 dae text; no partial
|
|
* patches, caller-supplied file paths, or multi-source writes are accepted.
|
|
* Enforce resources.config.max_bytes on replacement UTF-8 bytes and the
|
|
* shared limits.max_json_body_bytes independently; excess returns 413.
|
|
* Require If-Match before validating or writing: missing returns 428
|
|
* precondition_required; a hash different from the current on-disk bytes
|
|
* returns 412 stale_revision, even if it matches the accepted snapshot.
|
|
* Validate the resulting source set with the same full-mode checks as
|
|
* POST /config/validate, substituting the replacement for this source.
|
|
* Resolve dependencies only from submitted text, authorized local files,
|
|
* and cached data; never use the network or refresh caches during validation.
|
|
* Missing or inaccessible required local dependencies produce error diagnostics.
|
|
* An unfetched subscription produces a subscription-not-fetched warning and
|
|
* does not by itself invalidate the candidate; validation does not fetch it.
|
|
* If any diagnostic has level error, return 422 unsupported_value with
|
|
* error.details.diagnostics using ConfigDiagnostic; never write any file
|
|
* or start a reload. Warnings and info alone do not prevent a write.
|
|
* Otherwise atomically replace the file using a temporary file in the same
|
|
* directory and rename, preserving its mode. Serialize the hash check,
|
|
* validation, and replacement against concurrent API writes; recheck the
|
|
* on-disk hash before replacement and return 412 if it changed.
|
|
* After the write, start a reload operation and return 202 OperationAccepted
|
|
* with kind reload, Location, and Retry-After. This is not reload completion.
|
|
* If reload publishes a new generation and events are available, emit
|
|
* generation.changed. After successful reload, GET /config reports the accepted
|
|
* content_sha256. If reload fails, the previous generation remains active and
|
|
* the file write is not rolled back.
|
|
* Idempotency-Key follows the operation retention rules: scope it to caller,
|
|
* method, and path in this instance. A retained same-body replay returns the
|
|
* original operation without another write or hash check; a different body
|
|
* returns 409 idempotency_conflict.
|
|
*/
|
|
put: operations["replaceConfigSource"];
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/runtime": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Read coherent runtime summary */
|
|
get: operations["getRuntime"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/runtime/memory": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Read lightweight process, cgroup, and eBPF memory */
|
|
get: operations["getRuntimeMemory"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/runtime/outbounds": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read per-outbound cumulative counters
|
|
* @description Mirrors honk's Clash-surface /stats counters for visible traffic, not
|
|
* a sum of live connections. All rows share counter_since; restart or
|
|
* counter reset starts a new interval. Requires resources.runtime_outbounds.available.
|
|
*/
|
|
get: operations["getRuntimeOutbounds"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/runtime/traffic/history": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read bounded traffic history
|
|
* @description Reads a bounded in-memory ring of visible traffic samples without
|
|
* starting sampling on GET. This is the only traffic history the native
|
|
* API serves; SSE does not replay it. Requires resources.traffic_history.available.
|
|
* A query above either advertised limit returns 400 invalid_request,
|
|
* never a silently clamped window or point limit.
|
|
*/
|
|
get: operations["getTrafficHistory"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/runtime/memory/history": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read bounded memory history
|
|
* @description Requires resources.memory_history.available. Reads a bounded in-memory ring
|
|
* sampled independently of HTTP requests. The response envelope, retention,
|
|
* thinning, and gap rules follow traffic history; samples contain memory metrics.
|
|
* SSE does not replay the ring. A query above either advertised limit returns
|
|
* 400 invalid_request without clamping.
|
|
*/
|
|
get: operations["getMemoryHistory"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/datapath": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Read detailed datapath state */
|
|
get: operations["getDatapath"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/nodes": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** List nodes and latest typed health samples */
|
|
get: operations["listNodes"];
|
|
put?: never;
|
|
/**
|
|
* Add an inline node from a share link
|
|
* @description Requires resources.nodes.can_manage; otherwise returns 404
|
|
* capability_not_supported. The backend parses the link with the engine's own
|
|
* share-link support, writes it into the node section of its managed main
|
|
* source under the given name, advances the configuration revision and emits
|
|
* generation.changed. The link is stored, never returned. A link the engine
|
|
* cannot parse returns 422 unsupported_value with a sanitized reason in
|
|
* error.message. A name already in use returns 409 state_conflict. The node belongs to the
|
|
* inline provider and to every group whose filter matches it after reload.
|
|
*/
|
|
post: operations["createNode"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/providers": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* List provider metadata without credentials
|
|
* @description Read current subscription, file and inline provider metadata; never fetch a
|
|
* subscription while serving a GET. Use the shared snapshot cursor semantics.
|
|
* The effective default limit is min(100, resources.providers.max_page_size).
|
|
* A limit above the advertised maximum returns 400 invalid_request, as does an
|
|
* unknown, expired or invalidated cursor. Restart the page walk without it.
|
|
*/
|
|
get: operations["listProviders"];
|
|
put?: never;
|
|
/**
|
|
* Add a subscription provider to the managed configuration
|
|
* @description Requires resources.providers.can_manage; otherwise returns 404
|
|
* capability_not_supported. Only kind subscription can be created here: file and
|
|
* inline providers are authored in the configuration sources. The backend writes
|
|
* the provider into the subscription section of its managed main source,
|
|
* advances the configuration revision, and emits generation.changed. A later
|
|
* replacement of that main source using its previous content_sha256 returns
|
|
* 412 stale_revision. The provider is created unfetched: node_count 0, updated_at null and
|
|
* status stale; call POST /providers/{id}/refresh to load it. The URL is stored,
|
|
* never returned; the response carries url_redacted. A name already in use
|
|
* returns 409 state_conflict. A URL that is not HTTP(S) returns 422 unsupported_value.
|
|
* update_interval, user_agent and cache are accepted only when named in
|
|
* resources.providers.create_options; an omitted one takes the default listed there,
|
|
* and one the backend does not list returns 422 unsupported_value.
|
|
*/
|
|
post: operations["createProvider"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/providers/{id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example provider-a */
|
|
id: components["parameters"]["ProviderId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
/** Read one provider's current metadata */
|
|
get: operations["getProvider"];
|
|
put?: never;
|
|
post?: never;
|
|
/**
|
|
* Remove a subscription or file provider from the managed configuration
|
|
* @description Requires resources.providers.can_manage; otherwise returns 404
|
|
* capability_not_supported, as does an inline provider, which is the node
|
|
* section itself. Removes the provider's line from the managed main source and
|
|
* its nodes from the running groups, advances the configuration revision and
|
|
* emits generation.changed. Idempotent: an unknown id returns deleted 0. A
|
|
* provider that is the only member source of a group is still removed; the
|
|
* group is then empty.
|
|
*/
|
|
delete: operations["deleteProvider"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/providers/{id}/refresh": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example provider-a */
|
|
id: components["parameters"]["ProviderId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/**
|
|
* Queue a provider refresh
|
|
* @description Requires resources.providers.can_refresh. This action takes no request body
|
|
* and never changes the provider's configured source. Unsupported provider kinds
|
|
* or refresh actions return 404 capability_not_supported. Follow the shared
|
|
* operation ownership, retention and idempotency rules. Replaying an accepted
|
|
* Idempotency-Key returns its original operation before checking for an in-flight
|
|
* refresh; a distinct refresh for the same provider returns 409 state_conflict.
|
|
* A full bounded queue returns 503 temporarily_unavailable with Retry-After.
|
|
* A successful provider_refresh operation returns the refreshed Provider in result;
|
|
* failure uses SafeError and leaves the last successfully loaded nodes intact.
|
|
* The fetch takes the provider's download route. When that route has no usable
|
|
* node yet, as when the routing rules send a subscription to a group of the nodes
|
|
* it has not delivered, the fetch fails with route_unavailable and never falls
|
|
* back to direct.
|
|
*/
|
|
post: operations["refreshProvider"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/nodes/{id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example node-hk-03 */
|
|
id: components["parameters"]["NodeId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read one node and its latest typed health samples
|
|
* @description Returns the same projection as one entry of GET /api/v1/nodes. An unknown id
|
|
* returns 404 resource_not_found.
|
|
*/
|
|
get: operations["getNode"];
|
|
put?: never;
|
|
post?: never;
|
|
/**
|
|
* Remove an inline node from the managed configuration
|
|
* @description Requires resources.nodes.can_manage; otherwise returns 404
|
|
* capability_not_supported, as does a node that came from a subscription or
|
|
* file provider: those are removed by refreshing or deleting their provider.
|
|
* Removes the node's line from the node section of the managed main source and
|
|
* the node from the running groups, advances the configuration revision and
|
|
* emits generation.changed. Idempotent: an unknown id returns deleted 0.
|
|
*/
|
|
delete: operations["deleteNode"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/geodata": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read the geosite and geoip assets the engine loaded
|
|
* @description Requires resources.geodata.available; otherwise returns 404
|
|
* capability_not_supported. One entry per asset kind in
|
|
* resources.geodata.assets, describing the file the running datapath was
|
|
* built from: its digest, size and modification time, and the download source
|
|
* POST /geodata/update tries first, redacted like a provider URL. When
|
|
* resources.geodata.configurable_sources is true, the response also reports
|
|
* where each loaded file was downloaded from and through which route, whether
|
|
* its checksum was verified, the update schedule and outcome, and
|
|
* required_codes. Reading never touches the network.
|
|
*/
|
|
get: operations["getGeoData"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/geodata/update": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/**
|
|
* Queue a download of the geosite and geoip assets
|
|
* @description Requires resources.geodata.can_update; otherwise returns 404
|
|
* capability_not_supported. Takes no request body and never changes the
|
|
* configured sources. The backend downloads every asset from its source into a
|
|
* temporary file, verifies it parses, replaces the loaded file and reloads the
|
|
* datapath once, emitting generation.changed; an asset that fails to download
|
|
* or parse leaves the loaded file in place and fails the operation. With
|
|
* several URLs for an asset, the backend tries them in order and moves to the
|
|
* next only when one fails: a connection error, a status other than 200
|
|
* (redirects are not followed), the per-URL deadline, or a sha256 mismatch
|
|
* against a checksum published at the URL with .sha256sum appended. The
|
|
* checksum goes through the same route as its file. Every request leaves
|
|
* through the route in GeoDataSettings.download; a URL the route cannot reach,
|
|
* because a group has no usable member or the routing rules block it, fails like
|
|
* a connection error and the next URL is tried. The backend never falls back to
|
|
* direct. The update fails when the new file lacks a category the active
|
|
* configuration uses.
|
|
* Identical bytes leave the loaded file and generation unchanged. An automatic
|
|
* update runs as the same operation kind and holds the same exclusivity. Follow the
|
|
* shared operation ownership, retention and idempotency rules. Replaying an
|
|
* accepted Idempotency-Key returns its original operation; a distinct update
|
|
* while one is queued or running returns 409 state_conflict. A full bounded
|
|
* queue returns 503 temporarily_unavailable with Retry-After. A successful
|
|
* geodata_update operation returns the new GeoData in result; failure uses
|
|
* SafeError.
|
|
*/
|
|
post: operations["updateGeoData"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/groups": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** List group summaries */
|
|
get: operations["listGroups"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/groups/{groupId}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example group-proxy */
|
|
groupId: components["parameters"]["GroupId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
/** Read a complete group resource */
|
|
get: operations["getGroup"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
/** Patch mutable group configuration */
|
|
patch: operations["patchGroup"];
|
|
trace?: never;
|
|
};
|
|
"/api/v1/groups/{groupId}/selection": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example group-proxy */
|
|
groupId: components["parameters"]["GroupId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
/** Replace a selector's choice, or pin a member on an automatic group */
|
|
put: operations["selectGroupMember"];
|
|
post?: never;
|
|
/** Clear a pinned member so the automatic policy chooses again */
|
|
delete: operations["clearGroupOverride"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/probes": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/** Start a bounded typed probe operation */
|
|
post: operations["createProbe"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/connections": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Read a scope-labelled live connection snapshot */
|
|
get: operations["listConnections"];
|
|
put?: never;
|
|
post?: never;
|
|
/**
|
|
* Close matching userspace-owned connections
|
|
* @description Requires control permission and resources.connections.available with
|
|
* resources.connections.can_close; unavailable closing returns 404
|
|
* capability_not_supported.
|
|
*
|
|
* Combine type and exact source-IP src filters with AND. Missing type and
|
|
* type=all do not restrict the set. Without type=tcp, type=udp, or src,
|
|
* require all=true or return 400 invalid_request before closing anything.
|
|
* all=true does not override supplied filters. Reject limit and detail,
|
|
* which apply only to listing.
|
|
*
|
|
* Select matching live entries once. If their count, including non-closable
|
|
* entries, exceeds resources.connections.max_bulk_close, return 413
|
|
* request_too_large without closing anything. Close all closable matches and
|
|
* count non-closable matches as skipped. An empty set returns closed=0 and
|
|
* skipped=0. Exclude later arrivals and selected entries that disappear before
|
|
* cancellation; disappeared entries contribute to neither count.
|
|
*
|
|
* A connection is closable only when the userspace datapath owns and can
|
|
* cancel its TCP transport or retire its UDP session. Deleting a tracker
|
|
* entry is insufficient. observed_by and the outbound name do not establish
|
|
* ownership. Kernel-direct and kernel-bypassed flows, including ebpf-only
|
|
* observations, are not closable.
|
|
*
|
|
* Idempotency-Key is accepted, but every call evaluates current live state;
|
|
* repeated keys do not replay results or return an operation.
|
|
*
|
|
* For recorded flows, closing advances terminal state and emits flow.updated
|
|
* when advertised. Fetch the event's href and refresh /connections. Changed
|
|
* runtime counters use runtime.updated. Existing coalescing and retention
|
|
* rules apply. Do not fabricate a flow ID or flow event for an unrecorded
|
|
* connection.
|
|
*/
|
|
delete: operations["closeConnections"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/connections/{connection_id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
post?: never;
|
|
/**
|
|
* Close one userspace-owned connection
|
|
* @description Requires control permission and resources.connections.available with
|
|
* resources.connections.can_close; unavailable closing returns 404
|
|
* capability_not_supported.
|
|
*
|
|
* The userspace datapath must own and be able to cancel the TCP transport or
|
|
* retire the UDP session. Tracker deletion, observed_by, and the outbound name
|
|
* do not establish ownership. Kernel-direct and kernel-bypassed flows, including
|
|
* ebpf-only observations, are not closable. An observed non-closable connection
|
|
* returns 409 state_conflict.
|
|
*
|
|
* Return 204 with no body only after cancellation or retirement. Unknown or
|
|
* already-gone IDs return 404 resource_not_found. Idempotency-Key is accepted,
|
|
* but each call evaluates current live state; a repeated close returns 404
|
|
* rather than replaying 204 or returning an operation.
|
|
*
|
|
* For recorded flows, closing advances terminal state and emits flow.updated
|
|
* when advertised. Fetch the event's href and refresh /connections. Changed
|
|
* runtime counters use runtime.updated. Existing coalescing and retention
|
|
* rules apply. Do not fabricate a flow ID or flow event for an unrecorded
|
|
* connection.
|
|
*/
|
|
delete: operations["closeConnection"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/flows": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** List active and retained terminal flow decisions */
|
|
get: operations["listFlows"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/flows/{flow_id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Read one recorded causal flow trace */
|
|
get: operations["getFlow"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/routing/trace": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/** Simulate bounded routing evaluation */
|
|
post: operations["traceRouting"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/rules": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read the running generation's routing rules
|
|
* @description Return one coherent, complete rule dictionary for the running routing generation,
|
|
* in evaluation order, including its fallback entry. This resource is read-only;
|
|
* it neither evaluates traffic nor reads back raw configuration. rule_id is identical
|
|
* to the ID used by POST /api/v1/routing/trace and FlowSummary.rule_id for the same
|
|
* generation. Join rules by generation_id and rule_id, never by expression or
|
|
* index alone. FlowSummary does not carry the rule's generation; obtain it from
|
|
* the corresponding traffic-route step in the retained flow detail. If that
|
|
* context is unavailable, do not join the summary to the current rule dictionary.
|
|
* generation_id identifies the dictionary's routing generation. Refetch after
|
|
* generation.changed; do not join old flow evidence to a new generation.
|
|
* There is no paginated snapshot and no 410 snapshot_expired response. If a coherent
|
|
* generation cannot be pinned, return 503 snapshot_unavailable. If the complete
|
|
* dictionary exceeds resources.rules.max_rules, return 503 temporarily_unavailable
|
|
* rather than silently truncate it. Redact local paths and secret-bearing expression
|
|
* values without changing rule identities or order; never expose raw configuration.
|
|
*/
|
|
get: operations["listRules"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/events": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Follow bounded resumable invalidation events
|
|
* @description Send stream.ready first on every connection, including a valid resume.
|
|
* Its cursor must not skip pending replay; retain the supplied Last-Event-ID
|
|
* until replay advances it. Filtered-out IDs may leave gaps, so clients must
|
|
* not infer loss by subtracting IDs.
|
|
*/
|
|
get: operations["streamEvents"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/logs": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Follow bounded resumable engine logs
|
|
* @description Requires resources.logs.available. Emit stream.ready first on every connection,
|
|
* using the shared StreamReadyEvent payload and an opaque replay cursor. On a
|
|
* valid resume, deliver retained matching records strictly after Last-Event-ID,
|
|
* then live records without an unobserved gap. The ready cursor must not skip
|
|
* pending replay; retain the supplied cursor until replay advances it.
|
|
* Each log frame carries an opaque id unique within the running instance.
|
|
* Duplicate delivery is permitted; deduplicate by id, never by message or ts.
|
|
* Cursors are bound to this stream, instance and filters. Unknown, expired,
|
|
* previous-instance or changed-filter cursors return 409 event_cursor_expired
|
|
* before opening the stream. Drop the cursor and reconnect to establish a new
|
|
* baseline; lost history is not recovered. Filtered-out IDs may leave gaps.
|
|
* Retain at most resources.logs.max_buffered_records records, none older than
|
|
* resources.logs.retention_seconds; this is not durable storage.
|
|
* Close slow clients when their bounded queue fills; never block engine writers.
|
|
* Send heartbeat comments at most 15 seconds apart while idle. Recheck credentials
|
|
* on reconnect and terminate streams when authorization is revoked.
|
|
* Sanitize messages and fields before buffering: no secrets, credentials, raw
|
|
* configuration, stack traces or unredacted local paths. Never forward raw engine output.
|
|
*/
|
|
get: operations["streamLogs"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/runtime/settings": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read the runtime-adjustable settings
|
|
* @description Requires resources.runtime_settings.available. Returns the current
|
|
* runtime-adjustable settings. Numeric values cannot exceed their corresponding
|
|
* capability ceilings. source is config when values come from the activated
|
|
* configuration and runtime after a runtime override. geodata appears when
|
|
* resources.geodata.configurable_sources is true and carries its own source.
|
|
* GET needs only observe, so geodata URLs are returned as written only to an
|
|
* authenticated caller with control, which may edit them, and redacted like
|
|
* GeoAsset.source_redacted for everyone else.
|
|
*/
|
|
get: operations["getRuntimeSettings"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
/**
|
|
* Change runtime-adjustable settings without a reload
|
|
* @description Requires control and resources.runtime_settings.available; only the fields
|
|
* listed in resources.runtime_settings.fields may appear, others return 400
|
|
* invalid_request. The body is a merge: an absent field keeps its value. Every
|
|
* value is checked against its ceiling before anything changes; an unadvertised
|
|
* log level, a ring below 64 records, or a value above the ceiling returns 400
|
|
* and changes nothing. Shrinking a ring drops its oldest records and expires
|
|
* cursors older than the new floor. The change applies immediately and lasts
|
|
* until the process restarts or the next configuration activation resets it; it
|
|
* is not written to the configuration file.
|
|
*
|
|
* geodata is the exception. It requires resources.geodata.configurable_sources
|
|
* and an authenticated caller; the anonymous loopback principal gets 403
|
|
* permission_denied. The backend stores it and does not change the top-level
|
|
* source. A geodata patch merges into the stored settings. Patching geosite or
|
|
* geoip stores both URL lists (geodata.source becomes db); auto_update is
|
|
* stored on its own; null deletes everything stored. It never downloads; POST
|
|
* /geodata/update does. The stored settings are the only ones in force. At
|
|
* startup, the backend writes each geodata download URL the configuration file
|
|
* names into the stored settings, replacing a list a patch stored, and deletes
|
|
* a stored list that an earlier file wrote but the file no longer names.
|
|
* Activations never change them, so patched URLs last until the next startup.
|
|
* download follows the same startup rule as the URLs, and a download with
|
|
* route group whose group_id is not a current group returns 422
|
|
* unsupported_value and changes nothing.
|
|
*/
|
|
patch: operations["patchRuntimeSettings"];
|
|
trace?: never;
|
|
};
|
|
"/api/v1/dns/query": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Execute a routed diagnostic DNS query */
|
|
get: operations["queryDns"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/dns/log": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read the bounded ring of recent resolutions
|
|
* @description Requires resources.dns_log.available. Records client DNS resolutions,
|
|
* excluding diagnostic /dns/query calls, in a bounded in-memory ring.
|
|
* Results are newest first. The ring holds at most
|
|
* resources.dns_log.max_records and is cleared on restart.
|
|
* A limit above resources.dns_log.max_page_size returns 400 invalid_request.
|
|
* A page may hold fewer than limit records while next_cursor is
|
|
* non-null, for example when the server's response size limit ends it
|
|
* early. Only a null next_cursor ends the walk. A record whose answers
|
|
* alone exceed that limit is served whole on a page of its own, never
|
|
* clipped or refused.
|
|
*/
|
|
get: operations["listDnsLog"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/dns/cache": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/**
|
|
* Read a paginated DNS cache snapshot
|
|
* @description A page holds at most limit entries and may hold fewer while
|
|
* next_cursor is non-null, for example when the server's response size
|
|
* limit ends it early. Only a null next_cursor ends the walk. An entry
|
|
* whose answers alone exceed that limit is served whole on a page of
|
|
* its own, never clipped or refused.
|
|
*/
|
|
get: operations["listDnsCache"];
|
|
put?: never;
|
|
post?: never;
|
|
/** Delete cache entries for one exact name */
|
|
delete: operations["deleteDnsCacheByName"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/dns/cache/{entry_id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
post?: never;
|
|
/** Delete one opaque DNS cache entry */
|
|
delete: operations["deleteDnsCacheEntry"];
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/dns/cache/flush": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/** Flush the complete runtime DNS cache */
|
|
post: operations["flushDnsCache"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/operations/reload": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/** Start an asynchronous reload */
|
|
post: operations["startReload"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/operations/suspend": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/** Start an asynchronous suspend transition */
|
|
post: operations["startSuspend"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/operations/resume": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
get?: never;
|
|
put?: never;
|
|
/** Start an asynchronous resume transition */
|
|
post: operations["startResume"];
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
"/api/v1/operations/{id}": {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
/** Read an asynchronous operation */
|
|
get: operations["getOperation"];
|
|
put?: never;
|
|
post?: never;
|
|
delete?: never;
|
|
options?: never;
|
|
head?: never;
|
|
patch?: never;
|
|
trace?: never;
|
|
};
|
|
}
|
|
export type webhooks = Record<string, never>;
|
|
export interface components {
|
|
schemas: {
|
|
EmptyObject: Record<string, never>;
|
|
SafeUInt: number;
|
|
NullableSafeUInt: number | null;
|
|
/** @description Canonical unsigned 64-bit decimal string, 0 through 18446744073709551615. Never a JSON number. */
|
|
UInt64: string;
|
|
NullableUInt64: null | components["schemas"]["UInt64"];
|
|
/** Format: date-time */
|
|
Timestamp: string;
|
|
/** Format: date-time */
|
|
NullableTimestamp: string | null;
|
|
/**
|
|
* @description Closed catalogue of HTTP error codes. Adding a code changes the contract. Embedded errors such as operation.error, datapath.errors, last_reload.error, and provider.last_error use SafeError with adapter-defined codes.
|
|
* @enum {string}
|
|
*/
|
|
ErrorCode: "invalid_request" | "authentication_required" | "permission_denied" | "resource_not_found" | "capability_not_supported" | "state_conflict" | "idempotency_conflict" | "event_cursor_expired" | "snapshot_unavailable" | "snapshot_expired" | "flow_expired" | "stale_revision" | "request_too_large" | "unsupported_media_type" | "unsupported_value" | "precondition_required" | "rate_limited" | "temporarily_unavailable" | "setup_required" | "setup_already_completed" | "invalid_credentials";
|
|
/** @description Safe structured error; never raw engine output. */
|
|
SafeError: {
|
|
code: string;
|
|
message: string;
|
|
details?: Record<string, never> | null;
|
|
};
|
|
/** @description HTTP error body; the code comes from ErrorCode. */
|
|
ApiError: components["schemas"]["SafeError"] & {
|
|
code?: components["schemas"]["ErrorCode"];
|
|
};
|
|
ErrorResponse: {
|
|
error: components["schemas"]["ApiError"];
|
|
request_id: string | null;
|
|
};
|
|
/** @description The full view for a caller the listener admits, or the public view for any other request without a credential. */
|
|
Discovery: components["schemas"]["AdmittedDiscovery"] | components["schemas"]["PublicDiscovery"];
|
|
AdmittedDiscovery: {
|
|
/** @constant */
|
|
name: "dae/honk-native";
|
|
/** @constant */
|
|
status: "draft";
|
|
/** @constant */
|
|
api_major: 1;
|
|
/** @constant */
|
|
base_path: "/api/v1";
|
|
links: {
|
|
/** @constant */
|
|
version: "/api/v1/version";
|
|
/** @constant */
|
|
capabilities: "/api/v1/capabilities";
|
|
/** @constant */
|
|
config: "/api/v1/config";
|
|
/** @constant */
|
|
config_validate: "/api/v1/config/validate";
|
|
/** @constant */
|
|
runtime: "/api/v1/runtime";
|
|
/** @constant */
|
|
runtime_outbounds: "/api/v1/runtime/outbounds";
|
|
/** @constant */
|
|
traffic_history: "/api/v1/runtime/traffic/history";
|
|
/** @constant */
|
|
memory_history: "/api/v1/runtime/memory/history";
|
|
/** @constant */
|
|
logs: "/api/v1/logs";
|
|
/** @constant */
|
|
providers: "/api/v1/providers";
|
|
/** @constant */
|
|
rules: "/api/v1/rules";
|
|
/** @constant */
|
|
geodata: "/api/v1/geodata";
|
|
/** @constant */
|
|
operations: "/api/v1/operations/{id}";
|
|
/**
|
|
* @description Present in password mode, null otherwise.
|
|
* @enum {string|null}
|
|
*/
|
|
auth_setup?: "/api/v1/auth/setup" | null;
|
|
/**
|
|
* @description Present in password mode, null otherwise.
|
|
* @enum {string|null}
|
|
*/
|
|
auth_login?: "/api/v1/auth/login" | null;
|
|
/**
|
|
* @description Present in password mode, null otherwise.
|
|
* @enum {string|null}
|
|
*/
|
|
auth_logout?: "/api/v1/auth/logout" | null;
|
|
};
|
|
/** @description Absent from servers that predate password login; clients then assume a configured bearer. */
|
|
auth?: components["schemas"]["AuthDiscovery"];
|
|
};
|
|
/** @description What a client needs before it signs in. Status, base path, resource links, `auth_logout` and `auth.anonymous_loopback` are withheld. */
|
|
PublicDiscovery: {
|
|
/** @constant */
|
|
name: "dae/honk-native";
|
|
/** @constant */
|
|
api_major: 1;
|
|
links: {
|
|
/**
|
|
* @description Present in password mode, null otherwise.
|
|
* @enum {string|null}
|
|
*/
|
|
auth_setup: "/api/v1/auth/setup" | null;
|
|
/**
|
|
* @description Present in password mode, null otherwise.
|
|
* @enum {string|null}
|
|
*/
|
|
auth_login: "/api/v1/auth/login" | null;
|
|
};
|
|
auth: {
|
|
/** @enum {string} */
|
|
mode: "token" | "password";
|
|
setup_required: boolean;
|
|
};
|
|
};
|
|
/** @description How a client authenticates. `password` mode offers setup until an administrator exists and login afterwards; `token` mode takes a configured bearer, or none when `anonymous_loopback` admits loopback peers. */
|
|
AuthDiscovery: {
|
|
/** @enum {string} */
|
|
mode: "token" | "password";
|
|
setup_required: boolean;
|
|
anonymous_loopback: boolean;
|
|
};
|
|
AuthCredentials: {
|
|
username: string;
|
|
/** @description 8 to 128 Unicode scalar values, at most 512 UTF-8 bytes; not normalised or trimmed. */
|
|
password: string;
|
|
};
|
|
AuthSession: {
|
|
token: string;
|
|
expires_at: components["schemas"]["Timestamp"];
|
|
};
|
|
Version: {
|
|
api: {
|
|
/** @constant */
|
|
name: "dae/honk-native";
|
|
/** @constant */
|
|
major: 1;
|
|
/** @constant */
|
|
status: "draft";
|
|
};
|
|
engine: {
|
|
name: string;
|
|
version: string;
|
|
};
|
|
build?: null | {
|
|
revision: string | null;
|
|
target: string | null;
|
|
built_at: components["schemas"]["NullableTimestamp"];
|
|
};
|
|
};
|
|
AvailableResource: {
|
|
available: boolean;
|
|
};
|
|
Capabilities: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
profiles: ("base" | "full_transparency")[];
|
|
limits: {
|
|
max_request_target_bytes: number;
|
|
max_header_bytes: number;
|
|
max_json_body_bytes: number;
|
|
};
|
|
resources: {
|
|
config: {
|
|
available: boolean;
|
|
/**
|
|
* @description Visibility flag permitting optional source text; not permission to disclose secrets. False by default.
|
|
* @default false
|
|
*/
|
|
content: boolean;
|
|
/**
|
|
* @description Server-wide switch for replacing accepted sources under control;
|
|
* individual sources may still be read-only. True requires full
|
|
* validation and reload operations, including resources.reload.available
|
|
* and resources.operations.available. Independent of content visibility
|
|
* and the optional dry-run endpoint.
|
|
*/
|
|
writable?: boolean;
|
|
/** @description Maximum UTF-8 bytes in replacement content; the shared JSON body ceiling applies independently. */
|
|
max_bytes?: components["schemas"]["SafeUInt"];
|
|
/** @description Maximum complete effective source set the adapter can expose; never silently truncate it. */
|
|
max_sources?: components["schemas"]["SafeUInt"];
|
|
};
|
|
config_validate: {
|
|
available: boolean;
|
|
modes?: components["schemas"]["ConfigValidationMode"][];
|
|
/** @description Maximum total UTF-8 configuration source bytes, including locally resolved source text in full mode. Geodata assets do not count toward this limit. The shared JSON body limit applies separately. */
|
|
max_bytes?: components["schemas"]["SafeUInt"];
|
|
/** @description Maximum sources per validation, including local dependencies in full mode. */
|
|
max_sources?: components["schemas"]["SafeUInt"];
|
|
};
|
|
runtime: components["schemas"]["AvailableResource"];
|
|
runtime_memory: {
|
|
available: boolean;
|
|
metrics?: ("process.rss_bytes" | "cgroup.current_bytes" | "cgroup.limit_bytes" | "cgroup.events.high" | "cgroup.events.oom" | "cgroup.events.oom_kill" | "kernel.ebpf_bytes")[];
|
|
};
|
|
runtime_outbounds: components["schemas"]["AvailableResource"];
|
|
traffic_history: {
|
|
available: boolean;
|
|
/** @description Maximum look-back window in seconds; not a guarantee against bounded-ring eviction. */
|
|
max_window_seconds?: components["schemas"]["SafeUInt"];
|
|
/** @description Maximum returned samples per history request. */
|
|
max_points?: components["schemas"]["SafeUInt"];
|
|
};
|
|
memory_history: {
|
|
available: boolean;
|
|
/** @description Maximum look-back window in seconds; not a guarantee against bounded-ring eviction. */
|
|
max_window_seconds?: components["schemas"]["SafeUInt"];
|
|
/** @description Maximum returned samples per history request. */
|
|
max_points?: components["schemas"]["SafeUInt"];
|
|
};
|
|
datapath: {
|
|
available: boolean;
|
|
kinds?: components["schemas"]["DatapathKind"][];
|
|
details?: ("attachments" | "maps")[];
|
|
};
|
|
nodes: {
|
|
available: boolean;
|
|
/** @description POST /nodes and DELETE /nodes/{id} are implemented for inline nodes; the backend owns a writable main source. */
|
|
can_manage?: boolean;
|
|
};
|
|
providers: {
|
|
available: boolean;
|
|
/** @description Refresh is implemented; individual provider kinds may still be unsupported. Requires operations.available. */
|
|
can_refresh?: boolean;
|
|
/** @description Supports creating subscription providers and deleting subscription or file providers from a writable managed main source. */
|
|
can_manage?: boolean;
|
|
/** @description Optional ProviderCreate fields the backend accepts, each with the value it applies when the field is omitted. A field not listed is unsupported. Absent means none are supported. */
|
|
create_options?: {
|
|
update_interval?: number;
|
|
user_agent?: string;
|
|
cache?: boolean;
|
|
};
|
|
max_page_size?: components["schemas"]["SafeUInt"];
|
|
};
|
|
groups: {
|
|
available: boolean;
|
|
config_patch?: boolean;
|
|
selection?: boolean;
|
|
max_patch_operations?: number;
|
|
};
|
|
probes: {
|
|
available: boolean;
|
|
targets?: ("node" | "group")[];
|
|
kinds?: components["schemas"]["ProbeKind"][];
|
|
purposes?: ("data" | "dns")[];
|
|
transports?: components["schemas"]["Transport"][];
|
|
ip_versions?: components["schemas"]["IpVersion"][];
|
|
limits?: components["schemas"]["ProbeLimits"];
|
|
};
|
|
connections: {
|
|
available: boolean;
|
|
/** @description Whether userspace-owned connections can be closed; false makes both connection DELETE endpoints return 404 capability_not_supported. */
|
|
can_close?: boolean;
|
|
/** @description Maximum matching live entries, including non-closable entries, per bulk close; used only when can_close is true. Excess returns 413 request_too_large before any connection is closed. */
|
|
max_bulk_close?: components["schemas"]["SafeUInt"];
|
|
};
|
|
flows: {
|
|
available: boolean;
|
|
/** @enum {string} */
|
|
recording?: "off" | "on" | "sampled";
|
|
scopes?: components["schemas"]["FlowScope"][];
|
|
max_flows?: number;
|
|
max_steps_per_flow?: number;
|
|
retention_seconds?: number;
|
|
snapshot_ttl_seconds?: number;
|
|
max_page_size?: number;
|
|
};
|
|
routing_trace: {
|
|
available: boolean;
|
|
resolve_modes?: ("none" | "live")[];
|
|
max_addresses?: number;
|
|
max_rule_steps?: number;
|
|
timeout_ms?: number;
|
|
per_principal_requests_per_minute?: number;
|
|
global_requests_per_minute?: number;
|
|
};
|
|
rules: {
|
|
available: boolean;
|
|
/** @description Maximum complete rule dictionary size, including the fallback entry; never a truncation limit. */
|
|
max_rules?: components["schemas"]["SafeUInt"];
|
|
};
|
|
events: {
|
|
available: boolean;
|
|
kinds?: components["schemas"]["EventKind"][];
|
|
retention_seconds?: number;
|
|
max_buffered_events?: number;
|
|
max_clients?: number;
|
|
heartbeat_seconds?: number;
|
|
};
|
|
logs: {
|
|
available: boolean;
|
|
levels?: components["schemas"]["LogLevel"][];
|
|
/** @description Maximum age of a replayable record, in seconds. A resume cursor older than this returns 409 event_cursor_expired even when the ring has room. */
|
|
retention_seconds?: number;
|
|
/** @description Maximum permitted log replay-ring capacity. The current capacity is runtime settings log.buffered_records. Neither value guarantees retention duration. */
|
|
max_buffered_records?: components["schemas"]["SafeUInt"];
|
|
};
|
|
dns_query: {
|
|
available: boolean;
|
|
record_types?: components["schemas"]["DnsRecordType"][];
|
|
limits?: components["schemas"]["DnsQueryLimits"];
|
|
};
|
|
dns_cache: {
|
|
available: boolean;
|
|
read?: boolean;
|
|
delete_entry?: boolean;
|
|
delete_name?: boolean;
|
|
flush?: boolean;
|
|
entry_kinds?: ("positive" | "negative")[];
|
|
};
|
|
dns_log: {
|
|
available: boolean;
|
|
/** @description Maximum permitted DNS log-ring capacity. The current capacity is dns_log.max_records in GET /runtime/settings. Neither value guarantees retention duration. */
|
|
max_records?: components["schemas"]["SafeUInt"];
|
|
max_page_size?: components["schemas"]["SafeUInt"];
|
|
};
|
|
runtime_settings: {
|
|
available: boolean;
|
|
/** @description The settings PATCH /runtime/settings accepts on this backend; others return 400. */
|
|
fields?: components["schemas"]["RuntimeSettingField"][];
|
|
};
|
|
geodata: {
|
|
available: boolean;
|
|
/** @description POST /geodata/update is implemented. Requires operations.available and configured asset sources. */
|
|
can_update?: boolean;
|
|
/** @description The asset kinds GET /geodata reports on this backend. */
|
|
assets?: components["schemas"]["GeoAssetKind"][];
|
|
/** @description Download URLs and automatic updates are managed through geodata in GET and PATCH /runtime/settings, and GET /geodata reports update status and required_codes. Requires runtime_settings.available with geodata in its fields. Absent means false. */
|
|
configurable_sources?: boolean;
|
|
};
|
|
operations: {
|
|
available: boolean;
|
|
retention_seconds?: number;
|
|
};
|
|
reload: components["schemas"]["AvailableResource"];
|
|
suspend: components["schemas"]["AvailableResource"];
|
|
resume: components["schemas"]["AvailableResource"];
|
|
};
|
|
};
|
|
EffectiveConfig: {
|
|
/** @description Running generation whose accepted sources and diagnostics are returned. */
|
|
generation_id: string;
|
|
/** @description Opaque configuration revision used by Runtime.generation.config_revision and GroupSummary.config_revision; preserve without numeric parsing. */
|
|
revision: string;
|
|
sources: components["schemas"]["ConfigSource"][];
|
|
diagnostics: components["schemas"]["ConfigDiagnostic"][];
|
|
/** @description True when a listener-secret value (native_api.secret, clash_api.secret) was masked somewhere in this response. Content, paths and diagnostics are otherwise returned in the clear to an admitted request. */
|
|
secrets_redacted: boolean;
|
|
};
|
|
ConfigSource: {
|
|
/** @description Unique opaque source ID within this configuration snapshot; never a credential-bearing path or URL. */
|
|
id: string;
|
|
/** @description The path relative to the entry directory, as the configuration references it; not a file-access capability. */
|
|
path: string;
|
|
/** @description The file's absolute path on the engine host. */
|
|
absolute_path?: string;
|
|
/** @enum {string} */
|
|
kind: "main" | "include" | "subscription" | "generated";
|
|
/** @description Lowercase SHA-256 of the accepted source bytes before redaction; not necessarily the digest of displayed content. */
|
|
content_sha256: string;
|
|
/** @description Accepted source size in bytes before redaction. */
|
|
bytes: components["schemas"]["SafeUInt"];
|
|
/**
|
|
* @description True only when server-wide editing is enabled and this source permits
|
|
* replacement by a control caller. False for engine-written includes,
|
|
* generated sources, and subscriptions; observe alone never grants writes.
|
|
*/
|
|
writable: boolean;
|
|
/** @description Time these source bytes were accepted, not the current file modification time. */
|
|
loaded_at: components["schemas"]["Timestamp"];
|
|
/** @description Optional dae text, only when resources.config.content is true; still subject to secret redaction. Use for editing only if its UTF-8 SHA-256 matches content_sha256. */
|
|
content?: string;
|
|
/** @description Lines in the accepted source before redaction; empty text has zero lines, and a final newline does not add an empty line. */
|
|
line_count: components["schemas"]["SafeUInt"];
|
|
};
|
|
/**
|
|
* @description Safe diagnostic for an accepted or candidate source, never raw parser output.
|
|
* Coordinates refer to the original source before redaction. Use null for
|
|
* unknown locations; do not fabricate positions from setting names.
|
|
*/
|
|
ConfigDiagnostic: {
|
|
/** @enum {string} */
|
|
level: "error" | "warning" | "info";
|
|
/** @description Source ID in the effective snapshot, validation request, or source set being validated for replacement. */
|
|
source_id: string;
|
|
/** @description One-based line, or null if unknown. */
|
|
line: components["schemas"]["NullableSafeUInt"];
|
|
/** @description One-based UTF-8 byte column, or null if unknown; not a character or UTF-16 offset. */
|
|
column: components["schemas"]["NullableSafeUInt"];
|
|
span: null | components["schemas"]["ConfigDiagnosticSpan"];
|
|
/** @description Adapter-defined diagnostic code, independent of the HTTP ErrorCode catalogue. */
|
|
code: string;
|
|
/** @description Safe operator-facing description; never source excerpts, credentials, private paths, or raw engine errors. */
|
|
message: string;
|
|
};
|
|
/**
|
|
* @description One-based lines and UTF-8 byte columns; start inclusive, end exclusive.
|
|
* The end must not precede the start. A zero-width span is permitted.
|
|
* When line and column are known, they equal the span start.
|
|
*/
|
|
ConfigDiagnosticSpan: {
|
|
start_line: components["schemas"]["SafeUInt"];
|
|
start_column: components["schemas"]["SafeUInt"];
|
|
end_line: components["schemas"]["SafeUInt"];
|
|
end_column: components["schemas"]["SafeUInt"];
|
|
};
|
|
/** @enum {string} */
|
|
ConfigValidationMode: "syntax" | "full";
|
|
ConfigValidationSource: {
|
|
/** @description Request-local diagnostic ID of 1 to 128 ASCII letters, digits, `.`, `_` or `-`. If omitted, use source-N where N is the one-based array index; all effective IDs must be unique. Never put secrets in IDs. */
|
|
id?: string;
|
|
/** @description Optional engine-native source name and include-resolution base within the adapter's authorized local roots; never grants arbitrary file access. */
|
|
path?: string;
|
|
/** @description Candidate engine-native source text; empty text is a candidate, not a malformed request. */
|
|
content: string;
|
|
};
|
|
ConfigValidationRequest: {
|
|
/** @description Ordered candidate sources; the first is the main source. Supplied content takes precedence over local files at the same resolved path. */
|
|
sources: components["schemas"]["ConfigValidationSource"][];
|
|
mode: components["schemas"]["ConfigValidationMode"];
|
|
};
|
|
ConfigValidationResult: {
|
|
/** @description True when validation completes without error diagnostics. Successful validation does not guarantee a later apply will succeed. */
|
|
valid: boolean;
|
|
/** @description Source IDs identify submitted sources. Attribute a dependency failure to the referring submitted source and its include/subscription location, not an undisclosed local path. */
|
|
diagnostics: components["schemas"]["ConfigDiagnostic"][];
|
|
/** @description Running generation captured when validation starts, for context only; not a new candidate generation or an apply precondition. */
|
|
generation_id: string;
|
|
/** @description Time validation completed. */
|
|
validated_at: components["schemas"]["Timestamp"];
|
|
};
|
|
ProbeLimits: {
|
|
max_members_per_job: number;
|
|
max_results_per_job: number;
|
|
max_active_jobs: number;
|
|
max_queued_jobs: number;
|
|
max_concurrent_per_target: number;
|
|
job_timeout_ms: number;
|
|
per_principal_requests_per_minute: number;
|
|
global_requests_per_minute: number;
|
|
};
|
|
DnsQueryLimits: {
|
|
max_types_per_request: number;
|
|
query_timeout_ms: number;
|
|
max_response_bytes: number;
|
|
per_principal_requests_per_minute: number;
|
|
global_requests_per_minute: number;
|
|
};
|
|
Runtime: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
instance_id: string;
|
|
lifecycle: {
|
|
/** @enum {string} */
|
|
state: "starting" | "running" | "reloading" | "suspended" | "draining" | "degraded" | "failed";
|
|
started_at: components["schemas"]["NullableTimestamp"];
|
|
uptime_seconds: components["schemas"]["NullableUInt64"];
|
|
};
|
|
generation: {
|
|
active_id: string;
|
|
config_revision: string | null;
|
|
/** @enum {string} */
|
|
state: "active" | "reloading";
|
|
activated_at: components["schemas"]["NullableTimestamp"];
|
|
};
|
|
datapath: components["schemas"]["DatapathSummary"];
|
|
traffic: components["schemas"]["TrafficSummary"];
|
|
process: {
|
|
pid?: number | null;
|
|
cpu_percent: number | null;
|
|
};
|
|
last_reload: null | components["schemas"]["LastReload"];
|
|
};
|
|
LastReload: {
|
|
operation_id: string;
|
|
/** @enum {string} */
|
|
status: "succeeded" | "failed";
|
|
finished_at: components["schemas"]["NullableTimestamp"];
|
|
error: null | components["schemas"]["SafeError"];
|
|
};
|
|
TrafficSummary: {
|
|
/** @constant */
|
|
scope: "visible";
|
|
observed_by: components["schemas"]["ObservedBy"];
|
|
counter_since: components["schemas"]["NullableTimestamp"];
|
|
/** @description Traffic sample timestamp, or null when unavailable. Never substitute the HTTP snapshot timestamp. */
|
|
sampled_at: components["schemas"]["NullableTimestamp"];
|
|
connections: {
|
|
tcp: components["schemas"]["NullableSafeUInt"];
|
|
udp: components["schemas"]["NullableSafeUInt"];
|
|
total: components["schemas"]["NullableSafeUInt"];
|
|
};
|
|
bytes: {
|
|
upload: components["schemas"]["NullableUInt64"];
|
|
download: components["schemas"]["NullableUInt64"];
|
|
};
|
|
rates: null | {
|
|
/** @description Duration of the rate interval ending at sampled_at, in seconds. */
|
|
window_seconds: number;
|
|
upload_bytes_per_second: components["schemas"]["NullableUInt64"];
|
|
download_bytes_per_second: components["schemas"]["NullableUInt64"];
|
|
};
|
|
};
|
|
RuntimeMemory: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
process: null | {
|
|
rss_bytes?: components["schemas"]["NullableUInt64"];
|
|
};
|
|
cgroup: null | {
|
|
/** @enum {string} */
|
|
scope: "service" | "shared" | "unknown";
|
|
current_bytes?: components["schemas"]["NullableUInt64"];
|
|
limit_bytes?: components["schemas"]["NullableUInt64"];
|
|
events?: null | {
|
|
high?: components["schemas"]["NullableUInt64"];
|
|
oom?: components["schemas"]["NullableUInt64"];
|
|
oom_kill?: components["schemas"]["NullableUInt64"];
|
|
};
|
|
};
|
|
kernel: null | {
|
|
ebpf_bytes?: components["schemas"]["NullableUInt64"];
|
|
sampled_at: components["schemas"]["NullableTimestamp"];
|
|
};
|
|
};
|
|
RuntimeOutbounds: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/** @description Shared cumulative counter reset boundary; changes on restart or reset. Never compute deltas across this boundary. */
|
|
counter_since: components["schemas"]["Timestamp"];
|
|
outbounds: components["schemas"]["OutboundCounters"][];
|
|
};
|
|
OutboundCounters: {
|
|
/** @description Engine-visible outbound name, retained with its counters across reloads. */
|
|
name: string;
|
|
/**
|
|
* @description Configured group, leaf node, or engine builtin such as direct/block.
|
|
* @enum {string}
|
|
*/
|
|
kind: "group" | "node" | "builtin";
|
|
/** @description Currently active connections attributed to this outbound. */
|
|
active_connections: components["schemas"]["SafeUInt"];
|
|
/** @description Cumulative connections attributed to this outbound since counter_since. */
|
|
total_connections: components["schemas"]["UInt64"];
|
|
upload_bytes: components["schemas"]["UInt64"];
|
|
download_bytes: components["schemas"]["UInt64"];
|
|
/** @description Cumulative outbound failures since counter_since; policy blocks are not errors. */
|
|
errors: components["schemas"]["UInt64"];
|
|
};
|
|
/**
|
|
* @description Samples lie in (observed_at - window_seconds, observed_at], oldest first.
|
|
* Retention is bounded by age and capacity and is cleared on process restart.
|
|
* Return fewer points for short retention, or an empty array before sampling.
|
|
* If needed, select every Nth stored sample backwards from the newest to
|
|
* fit max_points; preserve original timestamps and rates, without interpolation.
|
|
* Choose the smallest positive N that fits the point limit. A cumulative
|
|
* counter reset makes the spanning rate sample null, never a spike.
|
|
*/
|
|
TrafficHistory: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/** @description Requested look-back window, not the age of the oldest retained sample. */
|
|
window_seconds: components["schemas"]["SafeUInt"];
|
|
/** @description Nominal interval between returned samples after thinning, or the recorder interval for an empty result; not the rate averaging interval. */
|
|
sampled_every_seconds: number;
|
|
/** @description At most max_points retained samples; missed intervals remain gaps, never fabricated zero traffic. */
|
|
samples: components["schemas"]["TrafficHistorySample"][];
|
|
};
|
|
TrafficHistorySample: {
|
|
/** @description Original sample timestamp, never the HTTP snapshot time. */
|
|
sampled_at: components["schemas"]["Timestamp"];
|
|
upload_bytes_per_second: components["schemas"]["NullableUInt64"];
|
|
download_bytes_per_second: components["schemas"]["NullableUInt64"];
|
|
/** @description Visible active TCP and UDP connections at sampled_at, or null when unavailable. */
|
|
connections: components["schemas"]["NullableSafeUInt"];
|
|
};
|
|
/**
|
|
* @description Samples lie in (observed_at - window_seconds, observed_at], oldest first,
|
|
* with the same retention, thinning, and gap rules as TrafficHistory.
|
|
* History covers process.rss_bytes, cgroup.current_bytes, and optionally
|
|
* kernel.ebpf_bytes, using resources.runtime_memory.metrics to determine support.
|
|
* Required metrics are null when unadvertised or unobservable.
|
|
* kernel_ebpf_bytes may be omitted when unadvertised.
|
|
*/
|
|
MemoryHistory: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/** @description Requested look-back window, not the age of the oldest retained sample. */
|
|
window_seconds: components["schemas"]["SafeUInt"];
|
|
/** @description Nominal interval between returned samples after thinning, or the recorder interval for an empty result. */
|
|
sampled_every_seconds: number;
|
|
/** @description At most max_points retained samples; missed intervals remain gaps. */
|
|
samples: components["schemas"]["MemoryHistorySample"][];
|
|
};
|
|
MemoryHistorySample: {
|
|
/** @description Original sample timestamp, never the HTTP snapshot time. */
|
|
sampled_at: components["schemas"]["Timestamp"];
|
|
/** @description Process resident set at sampled_at, or null when unavailable. */
|
|
rss_bytes: components["schemas"]["NullableUInt64"];
|
|
/** @description cgroup memory.current at sampled_at, or null when unavailable. */
|
|
cgroup_current_bytes: components["schemas"]["NullableUInt64"];
|
|
/** @description Kernel eBPF memory at sampled_at; omitted or null when unadvertised. */
|
|
kernel_ebpf_bytes?: components["schemas"]["NullableUInt64"];
|
|
};
|
|
/** @enum {string} */
|
|
DatapathKind: "ebpf" | "userspace" | "mock" | "unknown";
|
|
/** @enum {string} */
|
|
DatapathState: "active" | "degraded" | "detached" | "failed" | "disabled" | "unknown";
|
|
/** @enum {string} */
|
|
Visibility: "full" | "partial" | "none";
|
|
/** @enum {string} */
|
|
ObservedBy: "userspace" | "ebpf" | "mixed";
|
|
EbpfRoutingSummary: {
|
|
/** @enum {string} */
|
|
state: "published" | "not_published" | "error" | "unknown";
|
|
generation_id: string | null;
|
|
epoch?: string | null;
|
|
};
|
|
EbpfSummary: {
|
|
/** @enum {string} */
|
|
backend: "real" | "mock" | "unknown";
|
|
/** @enum {string} */
|
|
programs: "loaded" | "not_loaded" | "error" | "unknown";
|
|
/** @enum {string} */
|
|
hooks: "attached" | "partially_attached" | "detached" | "unknown";
|
|
routing: components["schemas"]["EbpfRoutingSummary"];
|
|
/** @enum {string} */
|
|
health: "healthy" | "degraded" | "failed" | "unknown";
|
|
last_error: string | null;
|
|
checked_at: components["schemas"]["Timestamp"];
|
|
};
|
|
DatapathSummary: {
|
|
kind: components["schemas"]["DatapathKind"];
|
|
state: components["schemas"]["DatapathState"];
|
|
visibility: components["schemas"]["Visibility"];
|
|
ebpf: null | components["schemas"]["EbpfSummary"];
|
|
};
|
|
Datapath: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
kind: components["schemas"]["DatapathKind"];
|
|
state: components["schemas"]["DatapathState"];
|
|
visibility: components["schemas"]["Visibility"];
|
|
ebpf: null | components["schemas"]["EbpfDetail"];
|
|
errors: components["schemas"]["SafeError"][];
|
|
};
|
|
EbpfDetail: components["schemas"]["EbpfSummary"] & {
|
|
attachments?: components["schemas"]["EbpfAttachment"][];
|
|
maps?: components["schemas"]["EbpfMaps"];
|
|
};
|
|
EbpfAttachment: {
|
|
name: string;
|
|
interface: string;
|
|
/** @enum {string} */
|
|
direction: "ingress" | "egress";
|
|
/** @enum {string} */
|
|
state: "attached" | "detached" | "error" | "unknown";
|
|
};
|
|
EbpfMaps: {
|
|
/** @enum {string} */
|
|
state: "ready" | "partial" | "error" | "unknown";
|
|
conn_state: null | components["schemas"]["MapOccupancy"];
|
|
};
|
|
MapOccupancy: {
|
|
occupancy: components["schemas"]["NullableSafeUInt"];
|
|
capacity: components["schemas"]["SafeUInt"];
|
|
occupancy_known: boolean;
|
|
};
|
|
/** @enum {string} */
|
|
Transport: "tcp" | "udp";
|
|
/** @enum {string} */
|
|
IpVersion: "ipv4" | "ipv6";
|
|
HealthObservation: {
|
|
transport: components["schemas"]["Transport"];
|
|
/** @enum {string} */
|
|
purpose: "data" | "dns" | "shared";
|
|
ip_version: components["schemas"]["IpVersion"];
|
|
/** @enum {string} */
|
|
warmth: "cold" | "warm" | "mixed" | "unknown";
|
|
/** @enum {string} */
|
|
measurement: "tcp_connect" | "http_headers" | "http_round_trip" | "dns_round_trip" | "quic_handshake" | "mixed" | "unknown";
|
|
/** @enum {string} */
|
|
sample_source: "probe" | "traffic" | "restored" | "derived" | "mixed" | "unknown";
|
|
/** @enum {string} */
|
|
state: "healthy" | "unavailable" | "unknown";
|
|
latency_ms: number | null;
|
|
moving_avg_ms: number | null;
|
|
avg10_ms: number | null;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
error: string | null;
|
|
} & unknown;
|
|
Node: {
|
|
id: string;
|
|
name: string;
|
|
protocol: string | null;
|
|
subscription_tag: string | null;
|
|
/** @description Provider identity from GET /providers; omitted or null when provenance is unavailable. Never infer it from the node name. */
|
|
provider_id?: string | null;
|
|
group_ids: string[];
|
|
/** @description Latest observations, unique by (transport, purpose, measurement, ip_version, warmth) within this node. */
|
|
health: components["schemas"]["HealthObservation"][];
|
|
};
|
|
NodeList: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
nodes: components["schemas"]["Node"][];
|
|
next_cursor: string | null;
|
|
};
|
|
/** @description Safe metadata only. Names, URLs and last_error must not contain secrets, raw configuration or unredacted local paths. */
|
|
Provider: {
|
|
/** @description Opaque provider identity, shared with Node.provider_id; not a URL or display name. */
|
|
id: string;
|
|
name: string;
|
|
/** @enum {string} */
|
|
kind: "subscription" | "file" | "inline";
|
|
/** @description The configured source URL as written, with only listener-secret values (native_api.secret, clash_api.secret) masked. Null for file/inline sources. The wire name is kept for compatibility. */
|
|
url_redacted: string | null;
|
|
node_count: components["schemas"]["SafeUInt"];
|
|
/** @description Last successful load or refresh, or null if unknown or never loaded. */
|
|
updated_at: components["schemas"]["NullableTimestamp"];
|
|
/** @description Provider-reported expiry, or null when unavailable. */
|
|
expires_at: components["schemas"]["NullableTimestamp"];
|
|
traffic: null | components["schemas"]["ProviderTraffic"];
|
|
/**
|
|
* @description ok means current usable data is loaded. stale means the provider has not been fetched or retains older usable data. error means a failed load left no usable data.
|
|
* @enum {string}
|
|
*/
|
|
status: "ok" | "stale" | "error";
|
|
/** @description The last failure, or null. A subscription fetch whose download route has no usable node yet reports code route_unavailable; other fetch failures report fetch_failed. */
|
|
last_error: null | components["schemas"]["SafeError"];
|
|
/** @description The route a subscription's fetches take, with the values of the geodata download route. routing follows the routing rules like user traffic, group always goes through the group in group_id, and direct connects straight to the host. group_id is null for routing and direct and for a group that no longer exists. Null for file and inline providers. Backends that fetch subscriptions only directly omit it. */
|
|
download?: null | components["schemas"]["GeoDataDownload"];
|
|
};
|
|
/** @description Provider-reported usage, not runtime counters. Each unavailable quantity is null; traffic itself may be null when no usage metadata exists. */
|
|
ProviderTraffic: {
|
|
upload_bytes: components["schemas"]["NullableUInt64"];
|
|
download_bytes: components["schemas"]["NullableUInt64"];
|
|
/** @description Provider-reported total traffic allowance, not upload plus download. Null if unknown or unlimited. */
|
|
total_bytes: components["schemas"]["NullableUInt64"];
|
|
};
|
|
ProviderList: {
|
|
providers: components["schemas"]["Provider"][];
|
|
next_cursor: string | null;
|
|
};
|
|
ProviderRefreshAccepted: components["schemas"]["OperationAccepted"] & {
|
|
/** @constant */
|
|
kind?: "provider_refresh";
|
|
};
|
|
ProviderRefreshSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "provider_refresh";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: components["schemas"]["Provider"];
|
|
error?: null;
|
|
};
|
|
ProviderCreate: {
|
|
/** @description The subscription tag as written in the configuration; unique among providers. */
|
|
name: string;
|
|
/** @constant */
|
|
kind: "subscription";
|
|
/** @description Fetched by the engine on refresh; stored in the managed main source and never returned. */
|
|
url: string;
|
|
/** @description Seconds between automatic refreshes; 0 refreshes only on request. */
|
|
update_interval?: number;
|
|
/** @description User-Agent header sent when fetching the URL. */
|
|
user_agent?: string;
|
|
/** @description Keep the last fetched body so the provider loads without the network at startup. false keeps none and removes a kept one. */
|
|
cache?: boolean;
|
|
};
|
|
NodeCreate: {
|
|
/** @description The node name as written in the configuration; unique among inline nodes. */
|
|
name: string;
|
|
/** @description A share link in a scheme the engine parses (for example vless, vmess, trojan, ss); stored in the managed main source and never returned. */
|
|
link: string;
|
|
};
|
|
/** @enum {string} */
|
|
GeoAssetKind: "geosite" | "geoip";
|
|
GeoAsset: {
|
|
kind: components["schemas"]["GeoAssetKind"];
|
|
/** @description Digest of the loaded file. */
|
|
sha256: string;
|
|
size_bytes: components["schemas"]["UInt64"];
|
|
/** @description Modification time of the loaded file, or null when the filesystem does not report one. */
|
|
modified_at: components["schemas"]["NullableTimestamp"];
|
|
/** @description Display-only download source with userinfo, query, fragment, and secret-bearing path segments removed or redacted. With several configured URLs, the first. Null when no source is configured or safe display is impossible. */
|
|
source_redacted: string | null;
|
|
/** @description Display-only URL the loaded file was downloaded from, redacted like source_redacted. Null when the backend did not download the loaded file, for example a file installed by a package. Reported when resources.geodata.configurable_sources is true. */
|
|
fetched_url_redacted?: string | null;
|
|
/** @description The loaded file was downloaded and matched the sha256 published at the download URL with .sha256sum appended. False when no checksum was published or the backend did not download the file. Reported when resources.geodata.configurable_sources is true. */
|
|
verified?: boolean;
|
|
/** @description The route the loaded file was downloaded through. route is the GeoDataSettings.download route in force for that download. group_id is the group the request went through, the one the routing rules chose for route routing, and null for direct, for routing rules that chose direct or a single node, and for a group that no longer exists. Null when the backend did not download the loaded file. Reported when resources.geodata.configurable_sources is true. */
|
|
download_route?: null | components["schemas"]["GeoDataDownload"];
|
|
};
|
|
/** @description The update status fields and required_codes are reported together, when resources.geodata.configurable_sources is true. */
|
|
GeoData: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
assets: components["schemas"]["GeoAsset"][];
|
|
/** @description When the last update attempt, manual or automatic, finished, whatever its outcome. Null before the first. */
|
|
last_checked_at?: components["schemas"]["NullableTimestamp"];
|
|
/** @description When an update last replaced a loaded file. Null before the first. */
|
|
last_updated_at?: components["schemas"]["NullableTimestamp"];
|
|
/** @description When the next automatic update is due, including its random delay and any failure backoff. Null while automatic updates are off. */
|
|
next_check_at?: components["schemas"]["NullableTimestamp"];
|
|
/** @description Why the last attempt failed after every URL was tried, with an adapter-defined code. Null after a successful or unchanged attempt, and before the first. */
|
|
last_error?: null | components["schemas"]["SafeError"];
|
|
/** @description For each kind in resources.geodata.assets, the lowercase category names the active configuration references, sorted and without attribute suffixes. A replacement file must contain all of them. */
|
|
required_codes?: {
|
|
[key: string]: string[];
|
|
};
|
|
};
|
|
GeoDataUpdateAccepted: components["schemas"]["OperationAccepted"] & {
|
|
/** @constant */
|
|
kind?: "geodata_update";
|
|
};
|
|
GeoDataUpdateSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "geodata_update";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: components["schemas"]["GeoData"];
|
|
error?: null;
|
|
};
|
|
/**
|
|
* @description Where the stored URL lists came from. config when the backend wrote every stored list from the configuration file at startup. db when a PATCH stored any of them. default when no list is stored and the backend's built-in URLs apply. An asset without a stored list uses its built-in URLs under any source. A PATCH may set URLs under any source.
|
|
* @enum {string}
|
|
*/
|
|
GeoDataSettingsSource: "config" | "db" | "default";
|
|
/**
|
|
* Format: uri
|
|
* @description Absolute HTTP(S) URL without userinfo or fragment; server also enforces administrator SSRF policy. The backend does not follow redirects.
|
|
*/
|
|
GeoDataUrl: string;
|
|
GeoDataSources: {
|
|
/** @description Download URLs in fallback order. As written, with only listener-secret values masked, for an authenticated caller with control; for any other caller, redacted like GeoAsset.source_redacted. */
|
|
urls: components["schemas"]["GeoDataUrl"][];
|
|
};
|
|
GeoDataAutoUpdate: {
|
|
/**
|
|
* @description Update on a schedule. On by default.
|
|
* @default true
|
|
*/
|
|
enabled: boolean;
|
|
/**
|
|
* @description Hours between automatic updates, before a random delay of up to 60 minutes.
|
|
* @default 24
|
|
*/
|
|
interval_hours: number;
|
|
};
|
|
/**
|
|
* @description How geodata downloads leave the device. routing follows the routing rules like user traffic, so a rule can send them to a node, a group, direct or block. group always goes through the group in group_id. direct connects straight to the host, outside the routing rules.
|
|
* @enum {string}
|
|
*/
|
|
GeoDataDownloadRoute: "routing" | "group" | "direct";
|
|
GeoDataDownload: {
|
|
route: components["schemas"]["GeoDataDownloadRoute"];
|
|
/** @description The group for route group, as in GET /groups. Null for routing and direct, and when the stored group no longer exists; downloads then fail until the route is changed. */
|
|
group_id: string | null;
|
|
};
|
|
GeoDataDownloadPatch: {
|
|
route: components["schemas"]["GeoDataDownloadRoute"];
|
|
/** @description A current group id; required for route group and not allowed otherwise. */
|
|
group_id?: string;
|
|
};
|
|
GeoDataSettings: {
|
|
/** @description Read-only; a patch cannot set it. */
|
|
source: components["schemas"]["GeoDataSettingsSource"];
|
|
geosite: components["schemas"]["GeoDataSources"];
|
|
geoip: components["schemas"]["GeoDataSources"];
|
|
auto_update: components["schemas"]["GeoDataAutoUpdate"];
|
|
/**
|
|
* @description The route every geodata request takes. routing when nothing is stored, as for every download the backend makes itself. At startup, a route the configuration file names replaces a stored one, and a route an earlier file wrote is deleted when the file names none, as for the URLs; it does not affect source. A group that has no usable member when an update runs, for example just after startup before its health checks finish, fails that URL like a connection error; the backend tries the next URL and reports last_error, and never falls back to direct.
|
|
* @default {
|
|
* "route": "routing",
|
|
* "group_id": null
|
|
* }
|
|
*/
|
|
download: components["schemas"]["GeoDataDownload"];
|
|
};
|
|
GeoDataSourcesPatch: {
|
|
/** @description Replaces the whole list; order is fallback order. */
|
|
urls: components["schemas"]["GeoDataUrl"][];
|
|
};
|
|
/** @description Merged into the stored settings. A patch with geosite or geoip stores both URL lists, so source becomes db, under any source. auto_update and download are each stored on their own. null deletes everything stored. */
|
|
GeoDataSettingsPatch: null | {
|
|
geosite?: components["schemas"]["GeoDataSourcesPatch"];
|
|
geoip?: components["schemas"]["GeoDataSourcesPatch"];
|
|
download?: components["schemas"]["GeoDataDownloadPatch"];
|
|
auto_update?: {
|
|
enabled?: boolean;
|
|
interval_hours?: number;
|
|
};
|
|
};
|
|
GroupPolicy: {
|
|
/** @enum {string} */
|
|
kind: "selector" | "urltest" | "loadbalance" | "fallback" | "random" | "score";
|
|
native: string;
|
|
};
|
|
GroupPolicyRequest: {
|
|
/** @enum {string} */
|
|
kind: "selector" | "urltest" | "loadbalance" | "fallback" | "random" | "score";
|
|
native: string;
|
|
};
|
|
GroupMember: {
|
|
id: string;
|
|
name: string;
|
|
/** @enum {string} */
|
|
kind: "node" | "group";
|
|
};
|
|
GroupConfig: {
|
|
default_member_id: string | null;
|
|
final_outbound: string | null;
|
|
check_url: null | components["schemas"]["SafeHttpUrl"];
|
|
/** @description Configured health-check interval in seconds. A backend that runs checks on one global interval may keep this value without applying it; see its mapping notes. */
|
|
check_interval: number | null;
|
|
/** @description Minimum latency improvement in milliseconds before a URLTest group switches members. */
|
|
tolerance: number | null;
|
|
/** @description Inactivity in seconds after which a URLTest group counts as idle. */
|
|
idle_timeout: number | null;
|
|
interrupt_connections: boolean;
|
|
};
|
|
/**
|
|
* Format: uri
|
|
* @description Absolute HTTP(S) URL without userinfo; server also enforces administrator SSRF policy.
|
|
*/
|
|
SafeHttpUrl: string;
|
|
GroupSelection: {
|
|
member_id: string;
|
|
resolved_leaf_node_id?: string | null;
|
|
/** @description How the member was chosen. `override` while a pinned member stands in for an automatic policy; other values (health, runtime, policy, ...) are the engine's own. */
|
|
source: string;
|
|
};
|
|
GroupRanking: {
|
|
metric: string | null;
|
|
recovery_penalty_ms: number | null;
|
|
group_offset_ms: number | null;
|
|
score: number | null;
|
|
reason: string | null;
|
|
};
|
|
GroupHealthObservation: components["schemas"]["HealthObservation"] & {
|
|
member_id: string;
|
|
resolved_leaf_node_id?: string | null;
|
|
sorting_latency_ms: number | null;
|
|
ranking: null | components["schemas"]["GroupRanking"];
|
|
};
|
|
GroupRuntime: {
|
|
selection: {
|
|
tcp: null | components["schemas"]["GroupSelection"];
|
|
udp: null | components["schemas"]["GroupSelection"];
|
|
};
|
|
health: components["schemas"]["GroupHealthObservation"][];
|
|
};
|
|
GroupCapabilities: {
|
|
/** @description The policy is a manual selector; PUT selection replaces its choice. */
|
|
can_select: boolean;
|
|
/** @description The policy chooses automatically but accepts a pinned member; PUT selection pins, DELETE selection returns to automatic. */
|
|
can_override: boolean;
|
|
supports_nested_groups: boolean;
|
|
mutable_config: ("policy" | "default_member_id" | "final_outbound" | "check_url" | "check_interval" | "tolerance" | "idle_timeout" | "interrupt_connections")[];
|
|
probe_transports: components["schemas"]["Transport"][];
|
|
};
|
|
Group: {
|
|
id: string;
|
|
name: string;
|
|
/** @description Configured group icon as an absolute HTTP(S) URL or data URI; null when no icon is configured. */
|
|
icon: string | null;
|
|
config_revision: string;
|
|
policy: components["schemas"]["GroupPolicy"];
|
|
members: components["schemas"]["GroupMember"][];
|
|
config: components["schemas"]["GroupConfig"];
|
|
runtime: components["schemas"]["GroupRuntime"];
|
|
capabilities: components["schemas"]["GroupCapabilities"];
|
|
};
|
|
GroupSummary: {
|
|
id: string;
|
|
name: string;
|
|
/** @description Configured group icon as an absolute HTTP(S) URL or data URI; null when no icon is configured. */
|
|
icon: string | null;
|
|
/** @description Same opaque configuration revision as Group.config_revision; preserve without numeric parsing. */
|
|
config_revision: string;
|
|
policy: components["schemas"]["GroupPolicy"];
|
|
member_count: number;
|
|
selection: {
|
|
tcp_member_id: string | null;
|
|
udp_member_id: string | null;
|
|
};
|
|
};
|
|
GroupList: components["schemas"]["GroupSummary"][];
|
|
/** @description Bounded by resources.groups.max_patch_operations. */
|
|
JsonPatch: (components["schemas"]["PolicyPatch"] | components["schemas"]["MemberIdPatch"] | components["schemas"]["OutboundPatch"] | components["schemas"]["CheckUrlPatch"] | components["schemas"]["PositiveIntegerPatch"] | components["schemas"]["TolerancePatch"] | components["schemas"]["IdleTimeoutPatch"] | components["schemas"]["InterruptPatch"] | components["schemas"]["RemovePatch"] | components["schemas"]["CopyMovePatch"])[];
|
|
PolicyPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/policy";
|
|
value: components["schemas"]["GroupPolicyRequest"];
|
|
};
|
|
MemberIdPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/config/default_member_id";
|
|
value: string | null;
|
|
};
|
|
OutboundPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/config/final_outbound";
|
|
value: string | null;
|
|
};
|
|
CheckUrlPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/config/check_url";
|
|
value: null | components["schemas"]["SafeHttpUrl"];
|
|
};
|
|
PositiveIntegerPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @enum {string} */
|
|
path: "/config/check_interval";
|
|
value: number | null;
|
|
};
|
|
TolerancePatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/config/tolerance";
|
|
value: number | null;
|
|
};
|
|
IdleTimeoutPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/config/idle_timeout";
|
|
value: number | null;
|
|
};
|
|
InterruptPatch: {
|
|
/** @enum {string} */
|
|
op: "add" | "replace" | "test";
|
|
/** @constant */
|
|
path: "/config/interrupt_connections";
|
|
value: boolean;
|
|
};
|
|
/** @enum {string} */
|
|
MutableGroupPath: "/policy" | "/config/default_member_id" | "/config/final_outbound" | "/config/check_url" | "/config/check_interval" | "/config/tolerance" | "/config/idle_timeout" | "/config/interrupt_connections";
|
|
RemovePatch: {
|
|
/** @constant */
|
|
op: "remove";
|
|
path: components["schemas"]["MutableGroupPath"];
|
|
};
|
|
CopyMovePatch: {
|
|
/** @enum {unknown} */
|
|
op: "copy" | "move";
|
|
path: components["schemas"]["MutableGroupPath"];
|
|
from: components["schemas"]["MutableGroupPath"];
|
|
};
|
|
GroupSelectionRequest: {
|
|
member_id: string;
|
|
/** @enum {string} */
|
|
network: "tcp" | "udp" | "both";
|
|
};
|
|
GroupSelectionResult: {
|
|
group_id: string;
|
|
member_id: string;
|
|
resolved_leaf_node_id?: string | null;
|
|
/** @enum {string} */
|
|
network: "tcp" | "udp" | "both";
|
|
/**
|
|
* @description runtime for a manual selector; override for a pinned member on an automatic policy.
|
|
* @enum {string}
|
|
*/
|
|
source: "runtime" | "override";
|
|
selection_revision: string;
|
|
connections_interrupted: boolean;
|
|
};
|
|
/** @description The outcome of clearing an override, one selection per network like GroupRuntime.selection. */
|
|
GroupOverrideCleared: {
|
|
group_id: string;
|
|
/**
|
|
* @description The networks the request cleared.
|
|
* @enum {string}
|
|
*/
|
|
network: "tcp" | "udp" | "both";
|
|
selection_revision: string;
|
|
connections_interrupted: boolean;
|
|
selection: {
|
|
tcp: null | components["schemas"]["GroupSelection"];
|
|
udp: null | components["schemas"]["GroupSelection"];
|
|
};
|
|
};
|
|
/** @enum {string} */
|
|
ProbeKind: "tcp_connect" | "http" | "dns";
|
|
ProbeTarget: components["schemas"]["NodeProbeTarget"] | components["schemas"]["GroupProbeTarget"];
|
|
NodeProbeTarget: {
|
|
/** @constant */
|
|
type: "node";
|
|
node_id: string;
|
|
};
|
|
GroupProbeTarget: {
|
|
/** @constant */
|
|
type: "group";
|
|
group_id: string;
|
|
};
|
|
ProbeTargetResponse: components["schemas"]["NodeProbeTarget"] | components["schemas"]["GroupProbeTarget"];
|
|
ProbeMembers: ("direct" | "leaves") | string[];
|
|
ProbeRequest: {
|
|
target: components["schemas"]["ProbeTarget"];
|
|
kind: components["schemas"]["ProbeKind"];
|
|
/** @enum {string} */
|
|
purpose: "data" | "dns";
|
|
transport: components["schemas"]["Transport"][];
|
|
/** @enum {string} */
|
|
ip_version: "ipv4" | "ipv6" | "any";
|
|
/** @default direct */
|
|
members: components["schemas"]["ProbeMembers"];
|
|
/** @enum {string} */
|
|
warmth: "cold" | "warm";
|
|
} & (unknown & ({
|
|
/** @constant */
|
|
kind?: "tcp_connect";
|
|
/** @constant */
|
|
purpose?: "data";
|
|
transport?: "tcp"[];
|
|
} | {
|
|
/** @constant */
|
|
kind?: "http";
|
|
/** @constant */
|
|
purpose?: "data";
|
|
transport?: "tcp"[];
|
|
} | {
|
|
/** @constant */
|
|
kind?: "dns";
|
|
/** @constant */
|
|
purpose?: "dns";
|
|
}));
|
|
ProbeResultItem: {
|
|
member_id: string;
|
|
resolved_leaf_node_id: string | null;
|
|
kind: components["schemas"]["ProbeKind"];
|
|
/** @enum {string} */
|
|
purpose: "data" | "dns";
|
|
transport: components["schemas"]["Transport"];
|
|
ip_version: components["schemas"]["IpVersion"];
|
|
/** @enum {string} */
|
|
warmth: "cold" | "warm" | "unknown";
|
|
/** @enum {string} */
|
|
state: "healthy" | "unavailable" | "unknown";
|
|
latency_ms: number | null;
|
|
health_updated: boolean;
|
|
error: string | null;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
} & unknown;
|
|
ProbeResult: {
|
|
target: components["schemas"]["ProbeTargetResponse"];
|
|
selection_changed: components["schemas"]["TransportBooleanMap"];
|
|
selection_before: components["schemas"]["TransportSelectionMap"];
|
|
selection_after: components["schemas"]["TransportSelectionMap"];
|
|
results: components["schemas"]["ProbeResultItem"][];
|
|
};
|
|
TransportBooleanMap: {
|
|
tcp: boolean;
|
|
udp: boolean;
|
|
};
|
|
TransportSelectionMap: {
|
|
tcp: string | null;
|
|
udp: string | null;
|
|
};
|
|
/** @enum {string} */
|
|
ConnectionState: "observed" | "routing" | "dialing" | "active" | "closed" | "blocked" | "failed" | "unknown";
|
|
Connection: {
|
|
id: string;
|
|
flow_id: string | null;
|
|
pname: string | null;
|
|
state: components["schemas"]["ConnectionState"];
|
|
src?: string;
|
|
dst?: string;
|
|
domain?: string | null;
|
|
outbound: string | null;
|
|
/** @description Application outbound selection_path group IDs followed by the leaf node ID, in order; empty for direct/block or an unknown path. */
|
|
chain: string[];
|
|
/**
|
|
* @description Selection captured at evaluation, reconstructed from retained evidence, or unavailable; never a current group snapshot.
|
|
* @enum {string}
|
|
*/
|
|
chain_source: "evaluation" | "reconstructed" | "unknown";
|
|
/** @description Generation-scoped traffic rule ID, or null when unavailable. */
|
|
rule_id: string | null;
|
|
/** @description Sanitized display expression for that rule, or null when unavailable. */
|
|
rule_expression: string | null;
|
|
/**
|
|
* @description Deciding kernel rule, recomputed userspace evidence, or unavailable provenance; see honk-mapping's matched_rule row.
|
|
* @enum {string}
|
|
*/
|
|
rule_source: "kernel" | "recomputed" | "unknown";
|
|
/** @enum {string|null} */
|
|
ingress: "lan" | "wan" | null;
|
|
domain_source: null | components["schemas"]["DomainSource"];
|
|
started_at: components["schemas"]["NullableTimestamp"];
|
|
observed_by: components["schemas"]["ObservedBy"];
|
|
upload_bytes: components["schemas"]["NullableUInt64"];
|
|
download_bytes: components["schemas"]["NullableUInt64"];
|
|
upload_bytes_per_second: components["schemas"]["NullableUInt64"];
|
|
download_bytes_per_second: components["schemas"]["NullableUInt64"];
|
|
};
|
|
ConnectionList: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
instance_id: string;
|
|
visibility: components["schemas"]["Visibility"];
|
|
/** @description Whether limit omitted visible entries matching type and src. */
|
|
truncated: boolean;
|
|
tcp: components["schemas"]["Connection"][];
|
|
udp: components["schemas"]["Connection"][];
|
|
/** @description Visible live TCP entries matching type and src before limit; zero when type excludes TCP. */
|
|
total_tcp: components["schemas"]["SafeUInt"];
|
|
/** @description Visible live UDP entries matching type and src before limit; zero when type excludes UDP. */
|
|
total_udp: components["schemas"]["SafeUInt"];
|
|
};
|
|
/** @description Bounded JSON-number counts; closed + skipped cannot exceed resources.connections.max_bulk_close. */
|
|
BulkCloseResult: {
|
|
/** @description Selected connections actually cancelled or retired by the userspace datapath. */
|
|
closed: components["schemas"]["SafeUInt"];
|
|
/** @description Selected connections observed but not closable; excludes entries that disappeared before cancellation. */
|
|
skipped: components["schemas"]["SafeUInt"];
|
|
};
|
|
/** @enum {string} */
|
|
FlowScope: "userspace_tcp" | "userspace_udp" | "kernel_direct" | "kernel_block" | "dns_intercept" | "kernel_bypass";
|
|
/** @enum {string} */
|
|
TraceStatus: "complete" | "partial" | "disabled";
|
|
FlowInput: {
|
|
src: string | null;
|
|
dst: string | null;
|
|
domain: string | null;
|
|
domain_source: null | components["schemas"]["DomainSource"];
|
|
pid: components["schemas"]["NullableSafeUInt"];
|
|
process_path: string | null;
|
|
src_mac: string | null;
|
|
/** @enum {string|null} */
|
|
ingress: "lan" | "wan" | null;
|
|
domain_rule_ids: null | string[];
|
|
dscp: number | null;
|
|
mark: number | null;
|
|
};
|
|
TrafficRoutingInput: {
|
|
network: components["schemas"]["Transport"];
|
|
src_ip: null | components["schemas"]["IpAddress"];
|
|
src_port: number | null;
|
|
dst_ip: null | components["schemas"]["IpAddress"];
|
|
dst_port: number | null;
|
|
domain: string | null;
|
|
pname: string | null;
|
|
src_mac: string | null;
|
|
dscp: number | null;
|
|
mark: number | null;
|
|
/** @enum {string|null} */
|
|
ingress: "lan" | "wan" | null;
|
|
domain_rule_ids: null | string[];
|
|
};
|
|
DnsRequestRoutingInput: {
|
|
name: string;
|
|
qtype: components["schemas"]["DnsRecordType"];
|
|
source_ip: null | components["schemas"]["IpAddress"];
|
|
original_dst: string | null;
|
|
};
|
|
DnsResponseRoutingInput: {
|
|
name: string;
|
|
qtype: components["schemas"]["DnsRecordType"];
|
|
answer_ips: components["schemas"]["IpAddress"][];
|
|
from_upstream: string;
|
|
};
|
|
/** @enum {string} */
|
|
DomainSource: "tls_sni" | "http_host" | "quic_sni" | "dns_mapping" | "explicit" | "unknown";
|
|
FlowSummary: {
|
|
id: string;
|
|
instance_id: string;
|
|
revision: number;
|
|
network: components["schemas"]["Transport"];
|
|
state: components["schemas"]["ConnectionState"];
|
|
pname: string | null;
|
|
connection_id: string | null;
|
|
outbound: string | null;
|
|
/** @description Application outbound selection_path group IDs followed by the leaf node ID, in order; empty for direct/block or an unknown path. */
|
|
chain: string[];
|
|
/**
|
|
* @description Selection captured at evaluation, reconstructed from retained evidence, or unavailable; never a current group snapshot.
|
|
* @enum {string}
|
|
*/
|
|
chain_source: "evaluation" | "reconstructed" | "unknown";
|
|
/** @description Generation-scoped traffic rule ID, or null when unavailable. */
|
|
rule_id: string | null;
|
|
/** @description Sanitized display expression for that rule, or null when unavailable. */
|
|
rule_expression: string | null;
|
|
/**
|
|
* @description Deciding kernel rule, recomputed userspace evidence, or unavailable provenance; see honk-mapping's matched_rule row.
|
|
* @enum {string}
|
|
*/
|
|
rule_source: "kernel" | "recomputed" | "unknown";
|
|
/** @enum {string|null} */
|
|
ingress: "lan" | "wan" | null;
|
|
domain_source: null | components["schemas"]["DomainSource"];
|
|
observed_by: components["schemas"]["ObservedBy"];
|
|
started_at: components["schemas"]["NullableTimestamp"];
|
|
ended_at: components["schemas"]["NullableTimestamp"];
|
|
trace_status: components["schemas"]["TraceStatus"];
|
|
input?: components["schemas"]["FlowInput"];
|
|
};
|
|
FlowCoverage: {
|
|
userspace_tcp: components["schemas"]["Visibility"];
|
|
userspace_udp: components["schemas"]["Visibility"];
|
|
kernel_direct: components["schemas"]["Visibility"];
|
|
kernel_block: components["schemas"]["Visibility"];
|
|
dns_intercept: components["schemas"]["Visibility"];
|
|
kernel_bypass: components["schemas"]["Visibility"];
|
|
};
|
|
FlowList: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
coverage: components["schemas"]["FlowCoverage"];
|
|
dropped_records: components["schemas"]["NullableUInt64"];
|
|
flows: components["schemas"]["FlowSummary"][];
|
|
next_cursor: string | null;
|
|
};
|
|
/** @description Recorded evidence identified by id and instance_id; never a simulation. */
|
|
FlowDetail: components["schemas"]["FlowSummary"] & {
|
|
input: components["schemas"]["FlowInput"];
|
|
trace: components["schemas"]["FlowTrace"];
|
|
} & ({
|
|
/** @constant */
|
|
trace_status?: "complete";
|
|
trace?: {
|
|
/** @constant */
|
|
status?: "complete";
|
|
};
|
|
} | {
|
|
/** @constant */
|
|
trace_status?: "partial";
|
|
trace?: {
|
|
/** @constant */
|
|
status?: "partial";
|
|
};
|
|
} | {
|
|
/** @constant */
|
|
trace_status?: "disabled";
|
|
trace?: {
|
|
/** @constant */
|
|
status?: "disabled";
|
|
};
|
|
});
|
|
FlowTrace: {
|
|
status: components["schemas"]["TraceStatus"];
|
|
missing: ("not_instrumented" | "started_late" | "buffer_overflow" | "sampled" | "redacted" | "evicted")[];
|
|
steps: components["schemas"]["FlowStep"][];
|
|
};
|
|
FlowStep: components["schemas"]["InputStep"] | components["schemas"]["RouteStep"] | components["schemas"]["DatapathStep"] | components["schemas"]["DialModeStep"] | components["schemas"]["DnsStep"] | components["schemas"]["RerouteStep"] | components["schemas"]["OutboundStep"] | components["schemas"]["ConnectionStep"];
|
|
InputStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "input";
|
|
data: components["schemas"]["InputStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "input";
|
|
};
|
|
InputStepData: {
|
|
values: components["schemas"]["FlowInput"] & {
|
|
pname: string | null;
|
|
};
|
|
/** @enum {string} */
|
|
source: "kernel" | "socket" | "sniffer" | "dns_mapping";
|
|
};
|
|
RouteStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "route";
|
|
data: components["schemas"]["RouteStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "route";
|
|
};
|
|
RouteStepData: {
|
|
evaluation_id: string;
|
|
/** @enum {string} */
|
|
chain: "traffic" | "dns_request" | "dns_response" | "dns_upstream";
|
|
/** @enum {string} */
|
|
plane: "kernel" | "userspace";
|
|
rule_id: string | null;
|
|
rules: components["schemas"]["RuleEvaluation"][];
|
|
/** @description Traffic outbound, or DNS upstream tag for upstream/requery; null for other DNS actions. */
|
|
outbound: string | null;
|
|
must: boolean | null;
|
|
mark: number | null;
|
|
/** @description Immutable inputs consumed by this evaluation, typed by chain below; null means missing capture. */
|
|
input: {
|
|
[key: string]: unknown;
|
|
} | null;
|
|
/** @enum {string|null} */
|
|
dns_action: "upstream" | "asis" | "accept" | "reject" | "requery" | null;
|
|
} & (({
|
|
/** @enum {unknown} */
|
|
chain?: "traffic" | "dns_upstream";
|
|
input?: null | components["schemas"]["TrafficRoutingInput"];
|
|
dns_action?: null;
|
|
} | {
|
|
/** @constant */
|
|
chain?: "dns_request";
|
|
input?: null | components["schemas"]["DnsRequestRoutingInput"];
|
|
/** @enum {unknown} */
|
|
dns_action?: "upstream" | "asis" | "reject" | null;
|
|
must?: null;
|
|
mark?: null;
|
|
} | {
|
|
/** @constant */
|
|
chain?: "dns_response";
|
|
input?: null | components["schemas"]["DnsResponseRoutingInput"];
|
|
/** @enum {unknown} */
|
|
dns_action?: "accept" | "reject" | "requery" | null;
|
|
must?: null;
|
|
mark?: null;
|
|
}) & unknown);
|
|
DatapathStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "datapath";
|
|
data: components["schemas"]["DatapathStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "datapath";
|
|
};
|
|
DatapathStepData: {
|
|
/** @enum {string} */
|
|
plane: "kernel" | "userspace";
|
|
/** @enum {string} */
|
|
action: "pass" | "redirect" | "hold" | "arm_direct" | "activate_direct" | "activate_proxy" | "drop";
|
|
reason: string;
|
|
error: string | null;
|
|
};
|
|
DialModeStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "dial_mode";
|
|
data: components["schemas"]["DialModeStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "dial_mode";
|
|
};
|
|
DialModeStepData: {
|
|
configured: string;
|
|
/** @enum {string} */
|
|
effective_target: "ip" | "domain" | "none" | "unknown";
|
|
domain: string | null;
|
|
domain_source: null | components["schemas"]["DomainSource"];
|
|
/** @enum {string} */
|
|
verification: "matched" | "other_family_trusted" | "failed" | "not_required" | "unavailable";
|
|
reason: string;
|
|
};
|
|
DnsStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "dns";
|
|
data: components["schemas"]["DnsStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "dns";
|
|
};
|
|
DnsStepData: {
|
|
lookup_id: string;
|
|
parent_lookup_id: string | null;
|
|
attempt_id: string | null;
|
|
/** @enum {string} */
|
|
purpose: "domain_verification" | "dial_target" | "proxy_server" | "intercepted_query" | "family_preference" | "refresh";
|
|
name: string;
|
|
qtype: components["schemas"]["DnsRecordType"];
|
|
/** @enum {string} */
|
|
source: "hosts" | "cache" | "upstream" | "coalesced" | "unknown";
|
|
/** @enum {string|null} */
|
|
upstream_transport: "udp" | "tcp" | "dot" | "doh" | "doq" | "doh3" | null;
|
|
/** @enum {string|null} */
|
|
carrier_transport: "tcp" | "udp" | null;
|
|
/** @enum {string} */
|
|
cache: "hit" | "miss" | "stale" | "bypass" | "unknown";
|
|
cache_entry_id: string | null;
|
|
upstream: string | null;
|
|
route_evaluation_ids: string[];
|
|
status: string;
|
|
addresses: components["schemas"]["IpAddress"][];
|
|
selected_ip: null | components["schemas"]["IpAddress"];
|
|
error: string | null;
|
|
};
|
|
RerouteStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "reroute";
|
|
data: components["schemas"]["RerouteStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "reroute";
|
|
};
|
|
RerouteStepData: {
|
|
performed: boolean | null;
|
|
reason: string;
|
|
from_evaluation_id: string | null;
|
|
to_evaluation_id: string | null;
|
|
};
|
|
OutboundStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "outbound";
|
|
data: components["schemas"]["OutboundStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "outbound";
|
|
};
|
|
OutboundStepData: {
|
|
attempt_id: string;
|
|
parent_attempt_id: string | null;
|
|
/** @enum {string} */
|
|
kind: "leaf" | "transport";
|
|
evaluation_id: string | null;
|
|
/** @enum {string} */
|
|
routing_source: "evaluation" | "forced" | "builtin" | "unknown";
|
|
routed_outbound: string | null;
|
|
effective_outbound: string | null;
|
|
/**
|
|
* @description Clash-mode override observed for this outbound attempt, separate from the configured dial mode. This field does not expose a native runtime-mode setting. none means no override was applied; unknown means the recorder could not determine it.
|
|
* @enum {string}
|
|
*/
|
|
mode_override: "none" | "direct" | "global" | "unknown";
|
|
selection_path: components["schemas"]["SelectionPathItem"][];
|
|
leaf_node_id: string | null;
|
|
/** @description Sanitized leaf name captured at decision time, or null when unavailable; leaf_node_id remains authoritative. */
|
|
leaf_node_name: string | null;
|
|
target: string | null;
|
|
/** @enum {string} */
|
|
target_kind: "ip" | "domain" | "none" | "unknown";
|
|
dial_ip: null | components["schemas"]["IpAddress"];
|
|
server_addr: string | null;
|
|
/** @enum {string} */
|
|
resolution_location: "original_ip" | "local_dns" | "outbound_remote" | "not_applicable" | "unknown";
|
|
/** @enum {string} */
|
|
status: "started" | "succeeded" | "failed" | "cancelled";
|
|
error: string | null;
|
|
};
|
|
SelectionPathItem: {
|
|
group_id: string;
|
|
member_id: string | null;
|
|
/** @description Sanitized member name captured at decision time, or null when unavailable; member_id remains authoritative. */
|
|
member_name: string | null;
|
|
policy: string;
|
|
reason: string;
|
|
selection: null | components["schemas"]["SelectionDecision"];
|
|
};
|
|
SelectionDecision: {
|
|
previous_member_id: string | null;
|
|
metric: string | null;
|
|
tolerance_ms: number | null;
|
|
candidates: components["schemas"]["SelectionCandidate"][];
|
|
};
|
|
SelectionCandidate: {
|
|
member_id: string;
|
|
/** @description Sanitized member name captured at decision time, or null when unavailable; member_id remains authoritative. */
|
|
member_name: string | null;
|
|
leaf_node_id: string | null;
|
|
/** @description Sanitized leaf name captured at decision time, or null when unavailable; leaf_node_id remains authoritative. */
|
|
leaf_node_name: string | null;
|
|
eligible: boolean | null;
|
|
sorting_latency_ms: number | null;
|
|
score: number | null;
|
|
selected: boolean;
|
|
reason: string;
|
|
};
|
|
ConnectionStep: components["schemas"]["StepCommon"] & {
|
|
/** @constant */
|
|
stage: "connection";
|
|
data: components["schemas"]["ConnectionStepData"];
|
|
} & {
|
|
/**
|
|
* @description discriminator enum property added by openapi-typescript
|
|
* @enum {string}
|
|
*/
|
|
stage: "connection";
|
|
};
|
|
ConnectionStepData: {
|
|
state: components["schemas"]["ConnectionState"];
|
|
reason: string;
|
|
/** @enum {string} */
|
|
milestone: "transport_ready" | "target_request_sent" | "target_confirmed" | "first_reply" | "terminal" | "unknown";
|
|
attempt_id: string | null;
|
|
reply_received: boolean | null;
|
|
error: string | null;
|
|
};
|
|
/** @enum {string} */
|
|
RuleResult: "matched" | "not_matched" | "skipped" | "indeterminate";
|
|
RuleCondition: {
|
|
id: string;
|
|
expression: string | null;
|
|
result: components["schemas"]["RuleResult"];
|
|
missing_inputs: string[];
|
|
};
|
|
RuleEvaluation: {
|
|
rule_id: string;
|
|
expression: string | null;
|
|
result: components["schemas"]["RuleResult"];
|
|
missing_inputs: string[];
|
|
conditions: components["schemas"]["RuleCondition"][];
|
|
};
|
|
IpAddress: string;
|
|
RoutingTraceInput: {
|
|
network: components["schemas"]["Transport"];
|
|
domain?: string | null;
|
|
dst_ip?: null | components["schemas"]["IpAddress"];
|
|
dst_port: number;
|
|
src_ip?: null | components["schemas"]["IpAddress"];
|
|
src_port?: number | null;
|
|
pname?: string | null;
|
|
dscp?: number | null;
|
|
mark?: number | null;
|
|
} | {
|
|
domain: string;
|
|
} | {
|
|
dst_ip: components["schemas"]["IpAddress"];
|
|
};
|
|
RoutingTraceRequest: {
|
|
input: components["schemas"]["RoutingTraceInput"];
|
|
/**
|
|
* @default none
|
|
* @enum {string}
|
|
*/
|
|
resolve: "none" | "live";
|
|
} & unknown;
|
|
RoutingEvaluation: {
|
|
dst_ip: null | components["schemas"]["IpAddress"];
|
|
/** @enum {string} */
|
|
decision: "determinate" | "indeterminate";
|
|
outbound: string | null;
|
|
missing_inputs: string[];
|
|
rules: components["schemas"]["RuleEvaluation"][];
|
|
};
|
|
SimulationDnsData: components["schemas"]["DnsStepData"] & {
|
|
/** @description Simulation-local lookup ID; never a recorded-flow identity. */
|
|
lookup_id?: string;
|
|
/** @constant */
|
|
purpose?: "dial_target";
|
|
/** @description Simulations never create outbound attempts. */
|
|
attempt_id?: null;
|
|
};
|
|
/** @description Hypothetical output. It never identifies or claims history for a live flow. */
|
|
RoutingTraceResponse: {
|
|
/** @constant */
|
|
mode: "simulation";
|
|
instance_id: string;
|
|
generation_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
evaluations: components["schemas"]["RoutingEvaluation"][];
|
|
dns: components["schemas"]["SimulationDnsData"][];
|
|
};
|
|
/** @description Source location, or null when unavailable or unsafe to disclose. Coordinates refer to the original source before redaction. */
|
|
RuleSource: null | {
|
|
/** @description Redacted source label; never an absolute local path or credential-bearing URL. */
|
|
file: string;
|
|
/**
|
|
* @description Source ID from GET /config. Open the source by ID under the configuration
|
|
* visibility rules; never derive a path from file.
|
|
*/
|
|
source_id: string;
|
|
line: components["schemas"]["SafeUInt"];
|
|
/** @description One-based UTF-8 byte column of the rule's first token, or null if unknown. */
|
|
column: components["schemas"]["NullableSafeUInt"];
|
|
};
|
|
RoutingRule: {
|
|
/** @description Identical to POST /routing/trace rule IDs and FlowSummary.rule_id within the same generation; opaque to clients. */
|
|
rule_id: string;
|
|
/** @description Zero-based evaluation order within this generation, not a cross-generation identity. */
|
|
index: components["schemas"]["SafeUInt"];
|
|
/** @description Safe display expression, not raw configuration or an editable source representation. */
|
|
expression: string;
|
|
/** @description Rule outbound, not a resolved leaf node or a claim of a successful dial. */
|
|
outbound: string;
|
|
must: boolean;
|
|
source: components["schemas"]["RuleSource"];
|
|
/** @enum {string} */
|
|
kind: "rule" | "fallback";
|
|
};
|
|
/** @description Same outbound and source as the fallback entry in rules; the entry carries its rule_id. */
|
|
RuleFallback: {
|
|
outbound: string;
|
|
source: components["schemas"]["RuleSource"];
|
|
};
|
|
RuleList: {
|
|
generation_id: string;
|
|
/** @description Complete evaluation order with unique rule_id and index values, including exactly one final fallback entry. */
|
|
rules: components["schemas"]["RoutingRule"][];
|
|
fallback: components["schemas"]["RuleFallback"];
|
|
};
|
|
DnsRecordType: string;
|
|
DnsAnswer: {
|
|
name: string;
|
|
type: components["schemas"]["DnsRecordType"];
|
|
class: string;
|
|
ttl: number;
|
|
data: string;
|
|
};
|
|
DnsQuestion: {
|
|
name: string;
|
|
type: components["schemas"]["DnsRecordType"];
|
|
};
|
|
DnsRoute: {
|
|
/** @enum {string} */
|
|
source: "forced" | "dns.routing" | "default";
|
|
rule: string | null;
|
|
};
|
|
DnsQueryResult: {
|
|
type: components["schemas"]["DnsRecordType"];
|
|
cached: boolean;
|
|
cache_entry_id: string | null;
|
|
upstream: string | null;
|
|
route: components["schemas"]["DnsRoute"];
|
|
status: string;
|
|
elapsed_ms: number;
|
|
question: components["schemas"]["DnsQuestion"];
|
|
answers?: components["schemas"]["DnsAnswer"][];
|
|
};
|
|
DnsQueryResponse: {
|
|
domain: string;
|
|
/** @enum {string} */
|
|
cache_mode: "normal" | "bypass";
|
|
query_time: components["schemas"]["Timestamp"];
|
|
results: components["schemas"]["DnsQueryResult"][];
|
|
};
|
|
DnsCacheCoverage: {
|
|
positive: boolean;
|
|
negative: boolean;
|
|
persistent: boolean;
|
|
};
|
|
DnsCacheEntry: {
|
|
entry_id: string;
|
|
domain: string;
|
|
type: components["schemas"]["DnsRecordType"];
|
|
class: string;
|
|
status: string;
|
|
answers?: components["schemas"]["DnsAnswer"][];
|
|
expires_at: components["schemas"]["Timestamp"];
|
|
stale_until: components["schemas"]["NullableTimestamp"];
|
|
};
|
|
DnsCacheList: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
coverage: components["schemas"]["DnsCacheCoverage"];
|
|
entries: components["schemas"]["DnsCacheEntry"][];
|
|
total: components["schemas"]["SafeUInt"];
|
|
next_cursor: string | null;
|
|
/** @description Absent from servers that predate cache usage reporting. */
|
|
usage?: components["schemas"]["DnsCacheUsage"];
|
|
};
|
|
/** @description Whole runtime cache at snapshot time, independent of the listing filters. Every page of one snapshot repeats the same values. The entry count is the cache's only limit; the size of an entry is not bounded. */
|
|
DnsCacheUsage: {
|
|
entries: components["schemas"]["UInt64"];
|
|
/** @description Effective entry limit after the engine applies its bounds, at most 100,000. */
|
|
entry_capacity: components["schemas"]["UInt64"];
|
|
};
|
|
DnsLogRecord: {
|
|
/** @description Opaque, unique within the running instance; the cursor is derived from it. */
|
|
id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/** @description Client socket address, IPv6 in brackets; null when the resolver itself asked. */
|
|
src: string | null;
|
|
question: components["schemas"]["DnsQuestion"];
|
|
/** @description RCODE name such as NOERROR or NXDOMAIN, or an engine outcome such as TIMEOUT. */
|
|
status: string;
|
|
cached: boolean;
|
|
/** @description The upstream that answered, null on a cache hit or failure before sending. */
|
|
upstream: string | null;
|
|
route: components["schemas"]["DnsRoute"];
|
|
elapsed_ms: number;
|
|
answers: components["schemas"]["DnsAnswer"][];
|
|
};
|
|
DnsLogList: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/** @description Records in the ring at observed_at, before filters. */
|
|
total: components["schemas"]["SafeUInt"];
|
|
next_cursor: string | null;
|
|
records: components["schemas"]["DnsLogRecord"][];
|
|
};
|
|
DeleteCount: {
|
|
deleted: number;
|
|
};
|
|
DeleteMatchingCount: {
|
|
matched: number;
|
|
deleted: number;
|
|
};
|
|
/** @enum {string} */
|
|
OperationKind: "probe" | "reload" | "suspend" | "resume" | "group_update" | "provider_refresh" | "geodata_update";
|
|
OperationAccepted: {
|
|
operation_id: string;
|
|
kind: components["schemas"]["OperationKind"];
|
|
/** @constant */
|
|
status: "queued";
|
|
href: string;
|
|
};
|
|
Operation: components["schemas"]["QueuedOperation"] | components["schemas"]["RunningOperation"] | components["schemas"]["FailedOperation"] | components["schemas"]["ProbeSucceededOperation"] | components["schemas"]["ReloadSucceededOperation"] | components["schemas"]["SuspendSucceededOperation"] | components["schemas"]["ResumeSucceededOperation"] | components["schemas"]["GroupUpdateSucceededOperation"] | components["schemas"]["ProviderRefreshSucceededOperation"] | components["schemas"]["GeoDataUpdateSucceededOperation"];
|
|
QueuedOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
status?: "queued";
|
|
started_at?: null;
|
|
finished_at?: null;
|
|
result?: null;
|
|
error?: null;
|
|
};
|
|
RunningOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
status?: "running";
|
|
finished_at?: null;
|
|
result?: null;
|
|
error?: null;
|
|
};
|
|
FailedOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
status?: "failed";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: null;
|
|
error?: components["schemas"]["SafeError"];
|
|
};
|
|
ProbeSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "probe";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: components["schemas"]["ProbeResult"];
|
|
error?: null;
|
|
};
|
|
ReloadSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "reload";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: components["schemas"]["ReloadResult"];
|
|
error?: null;
|
|
};
|
|
ReloadResult: {
|
|
active_generation_id: string | null;
|
|
datapath_generation_id: string | null;
|
|
};
|
|
SuspendSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "suspend";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: {
|
|
/** @enum {string|null} */
|
|
runtime_state: "suspended" | null;
|
|
};
|
|
error?: null;
|
|
};
|
|
ResumeSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "resume";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: {
|
|
/** @enum {string|null} */
|
|
runtime_state: "running" | null;
|
|
};
|
|
error?: null;
|
|
};
|
|
GroupUpdateSucceededOperation: components["schemas"]["OperationCommon"] & {
|
|
/** @constant */
|
|
kind?: "group_update";
|
|
/** @constant */
|
|
status?: "succeeded";
|
|
finished_at?: components["schemas"]["Timestamp"];
|
|
result?: components["schemas"]["GroupUpdateResult"];
|
|
error?: null;
|
|
};
|
|
GroupUpdateResult: {
|
|
group_id: string;
|
|
config_revision: string;
|
|
};
|
|
/** @enum {string} */
|
|
EventKind: "stream.ready" | "runtime.updated" | "flow.updated" | "flow.gap" | "operation.updated" | "generation.changed";
|
|
/** @enum {string} */
|
|
LogLevel: "trace" | "debug" | "info" | "warn" | "error";
|
|
LogRecord: {
|
|
ts: components["schemas"]["Timestamp"];
|
|
level: components["schemas"]["LogLevel"];
|
|
/** @description Engine module name, not a network destination. */
|
|
target: string;
|
|
/** @description Sanitized operator message; no secrets or raw configuration. */
|
|
message: string;
|
|
/** @description Sanitized structured fields, or null when unavailable; the message safety rules apply recursively. */
|
|
fields: {
|
|
[key: string]: unknown;
|
|
} | null;
|
|
};
|
|
/** @enum {string} */
|
|
RuntimeSettingField: "log.level" | "log.buffered_records" | "dns_log.max_records" | "flows.max_flows" | "flows.retention_seconds" | "record_flows" | "record_logs" | "record_dns_log" | "geodata";
|
|
RuntimeSettings: {
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/**
|
|
* @description config while every value comes from the activated configuration; runtime once any PATCH overrode one. geodata has its own source and does not affect this one.
|
|
* @enum {string}
|
|
*/
|
|
source: "config" | "runtime";
|
|
log: {
|
|
/** @description Minimum severity the engine emits. A lower stream level cannot recover records the engine did not emit. */
|
|
level: components["schemas"]["LogLevel"];
|
|
/** @description Log replay ring capacity, at most logs.max_buffered_records. */
|
|
buffered_records: components["schemas"]["SafeUInt"];
|
|
};
|
|
dns_log: {
|
|
/** @description DNS log ring capacity, at most dns_log.max_records. */
|
|
max_records: components["schemas"]["SafeUInt"];
|
|
};
|
|
flows: {
|
|
/** @description Retained flows, at most flows.max_flows. */
|
|
max_flows: components["schemas"]["SafeUInt"];
|
|
/** @description Maximum age of a retained terminal flow, in seconds, bounded by resources.flows.retention_seconds. Capacity pressure may evict it earlier. */
|
|
retention_seconds: components["schemas"]["SafeUInt"];
|
|
};
|
|
/**
|
|
* @description Read-only recorder state. A client is attached while an admitted GET SSE stream on
|
|
* /events or /logs is open, or for 60 seconds after the last stream closed or a successful
|
|
* GET on /flows, /flows/{id} or /dns/log; other requests, including settings reads, do not
|
|
* renew attachment. Automatic log and DNS-log recorders follow attachment. The automatic
|
|
* flow recorder follows flow demand instead, so that an open panel does not record full
|
|
* flow traces for every connection: an admitted GET /events stream whose kinds include
|
|
* flow.updated or flow.gap, or that sets a nonblank flow_id with a flow kind in its
|
|
* effective kinds, holds demand while open and for 60 seconds after the last one closed,
|
|
* and a successful GET on /flows or /flows/{id} renews it for 60 seconds. Event streams
|
|
* without kinds, /logs streams and /dns/log reads do not create flow demand. Recording
|
|
* starts on attachment or demand, so the first history a client reads may be empty.
|
|
*/
|
|
recording?: {
|
|
flows: components["schemas"]["RecorderState"];
|
|
logs: components["schemas"]["RecorderState"];
|
|
dns_log: components["schemas"]["RecorderState"];
|
|
events: {
|
|
/** @description Event capture runs while a client is attached or any permitted recorder is pinned on. */
|
|
active: boolean;
|
|
};
|
|
/** @description Seconds left before the automatic log and DNS-log recorders stop, 0 while a stream is open or nothing is attached. The flow-demand grace is not reported. */
|
|
grace_remaining_seconds: components["schemas"]["SafeUInt"];
|
|
};
|
|
/** @description Geodata download sources and automatic updates. Present when resources.geodata.configurable_sources is true. URLs are returned as written only to an authenticated caller with control and redacted for everyone else. */
|
|
geodata?: components["schemas"]["GeoDataSettings"];
|
|
};
|
|
RuntimeSettingsPatch: {
|
|
record_flows?: components["schemas"]["RecorderMode"];
|
|
record_logs?: components["schemas"]["RecorderMode"];
|
|
record_dns_log?: components["schemas"]["RecorderMode"];
|
|
log?: {
|
|
level?: components["schemas"]["LogLevel"];
|
|
buffered_records?: components["schemas"]["SafeUInt"];
|
|
};
|
|
dns_log?: {
|
|
max_records?: components["schemas"]["SafeUInt"];
|
|
};
|
|
flows?: {
|
|
max_flows?: components["schemas"]["SafeUInt"];
|
|
retention_seconds?: components["schemas"]["SafeUInt"];
|
|
};
|
|
geodata?: components["schemas"]["GeoDataSettingsPatch"];
|
|
};
|
|
/** @description true pins a permitted recorder on, false forces it off, auto (the startup default) follows flow demand for record_flows and client attachment for the other recorders. */
|
|
RecorderMode: boolean | "auto";
|
|
RecorderState: {
|
|
/** @description The configuration permits this recorder; false means never, whatever the mode. */
|
|
allowed: boolean;
|
|
/** @enum {string} */
|
|
mode: "auto" | "on" | "off";
|
|
/** @description The recorder is capturing right now. */
|
|
active: boolean;
|
|
};
|
|
StreamReadyEvent: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
};
|
|
RuntimeUpdatedEvent: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
/** @constant */
|
|
href: "/api/v1/runtime";
|
|
};
|
|
FlowUpdatedEvent: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
resource_id: string;
|
|
revision: number;
|
|
href: string;
|
|
};
|
|
FlowGapEvent: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
resource_id: string | null;
|
|
/** @enum {string} */
|
|
reason: "buffer_overflow" | "sampled" | "evicted" | "recording_changed";
|
|
dropped_records: components["schemas"]["NullableUInt64"];
|
|
};
|
|
OperationUpdatedEvent: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
resource_id: string;
|
|
/** @enum {string} */
|
|
status: "queued" | "running" | "succeeded" | "failed";
|
|
href: string;
|
|
};
|
|
GenerationChangedEvent: {
|
|
instance_id: string;
|
|
observed_at: components["schemas"]["Timestamp"];
|
|
previous_generation_id: string;
|
|
generation_id: string;
|
|
};
|
|
StepCommon: {
|
|
seq: number;
|
|
observed_at: components["schemas"]["NullableTimestamp"];
|
|
elapsed_us: components["schemas"]["NullableSafeUInt"];
|
|
generation_id: string | null;
|
|
/** @enum {string} */
|
|
evidence: "observed" | "reconstructed";
|
|
};
|
|
OperationCommon: {
|
|
operation_id: string;
|
|
kind: components["schemas"]["OperationKind"];
|
|
/** @enum {string} */
|
|
status: "queued" | "running" | "succeeded" | "failed";
|
|
created_at: components["schemas"]["Timestamp"];
|
|
started_at: components["schemas"]["NullableTimestamp"];
|
|
finished_at: components["schemas"]["NullableTimestamp"];
|
|
result: {
|
|
[key: string]: unknown;
|
|
} | null;
|
|
error: null | components["schemas"]["SafeError"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Unknown source ID or unavailable configuration readback */
|
|
404: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Operation accepted */
|
|
OperationAccepted: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["OperationAccepted"];
|
|
};
|
|
};
|
|
/** @description Malformed parameters or request shape */
|
|
BadRequest: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Credentials are missing or invalid */
|
|
Unauthorized: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description The caller lacks the required permission, or listener security policy rejects the request. */
|
|
Forbidden: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Resource/action unavailable, absent, expired, or concealed */
|
|
NotFound: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description State, idempotency, or cursor conflict */
|
|
Conflict: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description Flow or paginated snapshot retention expired */
|
|
Gone: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description If-Match does not equal the current configuration revision or on-disk source content hash */
|
|
PreconditionFailed: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description Request size or advertised fan-out limit exceeded */
|
|
TooLarge: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description Unsupported request Content-Type */
|
|
UnsupportedMediaType: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description Unsupported field, value, or transition, or error diagnostics from configuration replacement validation */
|
|
Unprocessable: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description Required If-Match is absent */
|
|
PreconditionRequired: {
|
|
headers: {
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
/** @description Advertised request or operation rate exceeded */
|
|
RateLimited: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Bounded queue or required runtime component unavailable */
|
|
Unavailable: {
|
|
headers: {
|
|
/** @description Retry delay in seconds when retryable. */
|
|
"Retry-After"?: number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description A coherent snapshot could not be pinned or held within its budget; retry after Retry-After. */
|
|
SnapshotUnavailable: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Native API error */
|
|
ErrorResponseCommon: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Last-Event-ID cannot be replayed (event_cursor_expired); sent before any 200 stream opens. Drop the cursor, reconnect without it and establish a new baseline. */
|
|
EventCursorExpired: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
parameters: {
|
|
0: "tcp" | "udp" | "all";
|
|
/**
|
|
* @description Exact source IP literal, without a port; applied with type before limit. Totals and truncated describe only matching visible entries.
|
|
* @example 192.168.1.100
|
|
*/
|
|
1: components["schemas"]["IpAddress"];
|
|
/** @example full */
|
|
Detail: "summary" | "full";
|
|
/** @example 100 */
|
|
Limit1000: number;
|
|
/**
|
|
* @description Opaque cursor bound to the resource, running adapter instance, filters,
|
|
* and retained snapshot. Restart, changed filters, or snapshot expiry or
|
|
* eviction invalidates it. GET /flows returns 410 snapshot_expired;
|
|
* GET /nodes, GET /providers and GET /dns/cache return 400 invalid_request
|
|
* for a cursor that is unknown or no longer valid. Discard it and restart
|
|
* the page walk without a cursor; never silently continue against a new snapshot.
|
|
*/
|
|
Cursor: string;
|
|
/** @example group-proxy */
|
|
GroupId: string;
|
|
/** @example tcp-01HZX4K8W5 */
|
|
ConnectionId: string;
|
|
/** @example flow-23 */
|
|
FlowId: string;
|
|
/** @example dns-entry-01HZX4K8W5 */
|
|
DnsEntryId: string;
|
|
/** @example op-01HZX4K8W7 */
|
|
OperationId: string;
|
|
/** @example "17" */
|
|
IfMatch: string;
|
|
IdempotencyKey: string;
|
|
/** @example instance-7:123 */
|
|
LastEventId: string;
|
|
/** @example provider-a */
|
|
ProviderId: string;
|
|
/** @example node-hk-03 */
|
|
NodeId: string;
|
|
};
|
|
requestBodies: never;
|
|
headers: {
|
|
/** @description Native responses are not cacheable. */
|
|
NoStore: "no-store";
|
|
/** @description Prevent MIME-type sniffing. */
|
|
NoSniff: "nosniff";
|
|
/** @description Quoted group configuration revision. */
|
|
ETag: string;
|
|
};
|
|
pathItems: never;
|
|
}
|
|
export type $defs = Record<string, never>;
|
|
export interface operations {
|
|
getDiscovery: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Native API discovery */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Discovery"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
};
|
|
};
|
|
getVersion: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Version identity */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Version"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
};
|
|
};
|
|
getCapabilities: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Adapter capabilities */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Capabilities"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
};
|
|
};
|
|
setupAdministrator: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["AuthCredentials"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Administrator created; the session token authenticates later requests */
|
|
201: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["AuthSession"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
login: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["AuthCredentials"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Session opened */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["AuthSession"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
logout: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Session ended */
|
|
204: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
404: components["responses"]["NotFound"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
getConfig: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Effective configuration snapshot */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["EffectiveConfig"];
|
|
};
|
|
};
|
|
/** @description Credentials are missing or invalid */
|
|
401: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Authenticated caller lacks observe permission */
|
|
403: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Configuration readback is unavailable */
|
|
404: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Advertised request rate exceeded */
|
|
429: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
validateConfig: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["ConfigValidationRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Completed dry-run validation; valid is not an apply guarantee */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ConfigValidationResult"];
|
|
};
|
|
};
|
|
/** @description Malformed JSON, invalid request shape, or duplicate effective source IDs */
|
|
400: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Credentials are missing or invalid */
|
|
401: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Authenticated caller lacks control permission */
|
|
403: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Configuration validation is unavailable */
|
|
404: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Source bytes, source count, or JSON body exceeds an advertised limit */
|
|
413: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Unsupported request Content-Type */
|
|
415: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Requested mode is not advertised by resources.config_validate.modes */
|
|
422: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Advertised request rate exceeded */
|
|
429: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
getConfigSource: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/**
|
|
* @description Opaque ID of an accepted source, never a path supplied by the caller.
|
|
* @example source-main
|
|
*/
|
|
source_id: string;
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Accepted source; content remains subject to visibility policy */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ConfigSource"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
/** @description Unknown source ID or unavailable configuration readback */
|
|
404: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
replaceConfigSource: {
|
|
parameters: {
|
|
query?: never;
|
|
header: {
|
|
/**
|
|
* @description One strong entity tag containing the source's content_sha256 from
|
|
* GET /config, enclosed in double quotes. Compare the digest with the
|
|
* current on-disk content, not the snapshot revision. Wildcards, weak
|
|
* tags, and tag lists are not accepted.
|
|
* @example "d1f62f00c6da9ec33956e66b8cc3b4670f164556fc12453193904af23451dec1"
|
|
*/
|
|
"If-Match": string;
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path: {
|
|
/**
|
|
* @description Opaque ID of an accepted source, never a path supplied by the caller.
|
|
* @example source-main
|
|
*/
|
|
source_id: string;
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": {
|
|
/** @description Complete UTF-8 dae source text; empty text is validated, not rejected as malformed. */
|
|
content: string;
|
|
};
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Source written atomically and reload accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["OperationAccepted"] & {
|
|
/** @constant */
|
|
kind?: "reload";
|
|
};
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
/** @description Control permission is absent, editing is disabled, or the source is read-only */
|
|
403: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
404: components["responses"]["404"];
|
|
409: components["responses"]["Conflict"];
|
|
/** @description If-Match does not match the current on-disk content hash; nothing is written */
|
|
412: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
/** @description Full validation found error diagnostics; no file is written and no reload starts */
|
|
422: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
error?: {
|
|
/** @constant */
|
|
code?: "unsupported_value";
|
|
details: {
|
|
diagnostics: components["schemas"]["ConfigDiagnostic"][];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
/** @description If-Match is required; nothing is written */
|
|
428: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
getRuntime: {
|
|
parameters: {
|
|
query?: {
|
|
/** @example full */
|
|
detail?: components["parameters"]["Detail"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Runtime snapshot */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Runtime"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
getRuntimeMemory: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Memory snapshot */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["RuntimeMemory"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
getRuntimeOutbounds: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Outbound counter snapshot */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["RuntimeOutbounds"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
getTrafficHistory: {
|
|
parameters: {
|
|
query?: {
|
|
/**
|
|
* @description Look-back window ending at observed_at; defaults to resources.traffic_history.max_window_seconds.
|
|
* @example 60
|
|
*/
|
|
window_seconds?: components["schemas"]["SafeUInt"];
|
|
/**
|
|
* @description Maximum returned samples; defaults to resources.traffic_history.max_points.
|
|
* @example 3
|
|
*/
|
|
max_points?: components["schemas"]["SafeUInt"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Retained traffic samples, oldest first */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["TrafficHistory"];
|
|
};
|
|
};
|
|
/** @description Invalid query or window_seconds/max_points above the advertised limit */
|
|
400: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
getMemoryHistory: {
|
|
parameters: {
|
|
query?: {
|
|
/**
|
|
* @description Look-back window ending at observed_at; defaults to resources.memory_history.max_window_seconds.
|
|
* @example 300
|
|
*/
|
|
window_seconds?: components["schemas"]["SafeUInt"];
|
|
/**
|
|
* @description Maximum returned samples; defaults to resources.memory_history.max_points.
|
|
* @example 3
|
|
*/
|
|
max_points?: components["schemas"]["SafeUInt"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Retained memory samples, oldest first */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["MemoryHistory"];
|
|
};
|
|
};
|
|
/** @description Invalid query or window_seconds/max_points above the advertised limit */
|
|
400: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
getDatapath: {
|
|
parameters: {
|
|
query?: {
|
|
/** @example full */
|
|
detail?: components["parameters"]["Detail"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Datapath snapshot */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Datapath"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
listNodes: {
|
|
parameters: {
|
|
query?: {
|
|
/** @example group-proxy */
|
|
group_id?: string;
|
|
/** @example 100 */
|
|
limit?: components["parameters"]["Limit1000"];
|
|
/**
|
|
* @description Opaque cursor bound to the resource, running adapter instance, filters,
|
|
* and retained snapshot. Restart, changed filters, or snapshot expiry or
|
|
* eviction invalidates it. GET /flows returns 410 snapshot_expired;
|
|
* GET /nodes, GET /providers and GET /dns/cache return 400 invalid_request
|
|
* for a cursor that is unknown or no longer valid. Discard it and restart
|
|
* the page walk without a cursor; never silently continue against a new snapshot.
|
|
*/
|
|
cursor?: components["parameters"]["Cursor"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Node page */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["NodeList"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["SnapshotUnavailable"];
|
|
};
|
|
};
|
|
createNode: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["NodeCreate"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Node written to the managed configuration */
|
|
201: {
|
|
headers: {
|
|
/** @description The new node, readable with GET. */
|
|
Location: string;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Node"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
/** @description A node with this name exists */
|
|
409: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Request body exceeds limits.max_json_body_bytes */
|
|
413: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Request body is not application/json */
|
|
415: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description The engine cannot parse the link */
|
|
422: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
listProviders: {
|
|
parameters: {
|
|
query?: {
|
|
/** @example 100 */
|
|
limit?: components["parameters"]["Limit1000"];
|
|
/**
|
|
* @description Opaque cursor bound to the resource, running adapter instance, filters,
|
|
* and retained snapshot. Restart, changed filters, or snapshot expiry or
|
|
* eviction invalidates it. GET /flows returns 410 snapshot_expired;
|
|
* GET /nodes, GET /providers and GET /dns/cache return 400 invalid_request
|
|
* for a cursor that is unknown or no longer valid. Discard it and restart
|
|
* the page walk without a cursor; never silently continue against a new snapshot.
|
|
*/
|
|
cursor?: components["parameters"]["Cursor"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Provider page */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ProviderList"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["SnapshotUnavailable"];
|
|
};
|
|
};
|
|
createProvider: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["ProviderCreate"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Provider written to the managed configuration */
|
|
201: {
|
|
headers: {
|
|
/** @description The new provider's URL. */
|
|
Location: string;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Provider"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
/** @description A provider with this name exists */
|
|
409: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Request body exceeds limits.max_json_body_bytes */
|
|
413: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Request body is not application/json */
|
|
415: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description The URL is not an http(s) URL */
|
|
422: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
getProvider: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example provider-a */
|
|
id: components["parameters"]["ProviderId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Provider metadata; reading does not refresh it */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Provider"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
deleteProvider: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example provider-a */
|
|
id: components["parameters"]["ProviderId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Idempotent deletion result */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DeleteCount"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
refreshProvider: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path: {
|
|
/** @example provider-a */
|
|
id: components["parameters"]["ProviderId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Provider refresh accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ProviderRefreshAccepted"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
/** @description Another refresh for this provider is queued or running, or an idempotency key conflicts */
|
|
409: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
429: components["responses"]["RateLimited"];
|
|
/** @description Provider refresh queue is full */
|
|
503: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
getNode: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example node-hk-03 */
|
|
id: components["parameters"]["NodeId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description One node */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Node"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
deleteNode: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example node-hk-03 */
|
|
id: components["parameters"]["NodeId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Idempotent deletion result */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DeleteCount"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
getGeoData: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Loaded assets */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["GeoData"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
updateGeoData: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Geodata update accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["GeoDataUpdateAccepted"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
/** @description An update is queued or running, or an idempotency key conflicts */
|
|
409: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
listGroups: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Group summaries */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["GroupList"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
getGroup: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example group-proxy */
|
|
groupId: components["parameters"]["GroupId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Current group */
|
|
200: {
|
|
headers: {
|
|
ETag: components["headers"]["ETag"];
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Group"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
patchGroup: {
|
|
parameters: {
|
|
query?: never;
|
|
header: {
|
|
/** @example "17" */
|
|
"If-Match": components["parameters"]["IfMatch"];
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path: {
|
|
/** @example group-proxy */
|
|
groupId: components["parameters"]["GroupId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json-patch+json": components["schemas"]["JsonPatch"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Updated group */
|
|
200: {
|
|
headers: {
|
|
ETag: components["headers"]["ETag"];
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Group"];
|
|
};
|
|
};
|
|
/** @description Operation accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["OperationAccepted"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
/** @description If-Match does not equal the current configuration revision */
|
|
412: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
422: components["responses"]["Unprocessable"];
|
|
428: components["responses"]["PreconditionRequired"];
|
|
};
|
|
};
|
|
selectGroupMember: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example group-proxy */
|
|
groupId: components["parameters"]["GroupId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["GroupSelectionRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Applied runtime selection */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["GroupSelectionResult"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
422: components["responses"]["Unprocessable"];
|
|
};
|
|
};
|
|
clearGroupOverride: {
|
|
parameters: {
|
|
query?: {
|
|
network?: "tcp" | "udp" | "both";
|
|
};
|
|
header?: never;
|
|
path: {
|
|
/** @example group-proxy */
|
|
groupId: components["parameters"]["GroupId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/**
|
|
* @description Selections after clearing the requested overrides. A network without
|
|
* a selected member is null. If no override existed, its selection is
|
|
* unchanged.
|
|
*/
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["GroupOverrideCleared"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
};
|
|
};
|
|
createProbe: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["ProbeRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Operation accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["OperationAccepted"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
422: components["responses"]["Unprocessable"];
|
|
429: components["responses"]["RateLimited"];
|
|
/** @description Probe queue is full */
|
|
503: {
|
|
headers: {
|
|
/** @description Positive retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
listConnections: {
|
|
parameters: {
|
|
query?: {
|
|
type?: "tcp" | "udp" | "all";
|
|
/**
|
|
* @description Exact source IP literal, without a port; applied with type before limit. Totals and truncated describe only matching visible entries.
|
|
* @example 192.168.1.100
|
|
*/
|
|
src?: components["schemas"]["IpAddress"];
|
|
/** @example 100 */
|
|
limit?: components["parameters"]["Limit1000"];
|
|
/** @example full */
|
|
detail?: components["parameters"]["Detail"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Connection snapshot */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ConnectionList"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
closeConnections: {
|
|
parameters: {
|
|
query?: {
|
|
type?: components["parameters"]["0"];
|
|
/**
|
|
* @description Exact source IP literal, without a port; applied with type before limit. Totals and truncated describe only matching visible entries.
|
|
* @example 192.168.1.100
|
|
*/
|
|
src?: components["parameters"]["1"];
|
|
/** @description Explicitly permit an unfiltered close; does not override type or src. */
|
|
all?: boolean;
|
|
};
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Bulk-close counts; entries that disappeared before cancellation are excluded. */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["BulkCloseResult"];
|
|
};
|
|
};
|
|
/** @description Invalid parameters, or an unfiltered close without all=true; no connections closed. */
|
|
400: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
/** @description Connection closing is unavailable (capability_not_supported). */
|
|
404: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Matching live entries exceed max_bulk_close (request_too_large); no connections closed. */
|
|
413: components["responses"]["TooLarge"];
|
|
/**
|
|
* @description Closing at least one selected connection could not be confirmed
|
|
* (temporarily_unavailable). error.details counts the connections already
|
|
* closed or skipped; they stay closed, so a retry must not assume nothing changed.
|
|
*/
|
|
503: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
error?: {
|
|
details: components["schemas"]["BulkCloseResult"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
closeConnection: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path: {
|
|
/** @example tcp-01HZX4K8W5 */
|
|
connection_id: components["parameters"]["ConnectionId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Connection closed; no response body or Content-Type. */
|
|
204: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content?: never;
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
/** @description Unknown or already-gone ID (resource_not_found), or closing unavailable (capability_not_supported). */
|
|
404: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Observed connection is not owned by a cancellable userspace transport/session (state_conflict). */
|
|
409: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
/** @description Cancellation or retirement could not be confirmed (temporarily_unavailable); the connection may already be closed. */
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
listFlows: {
|
|
parameters: {
|
|
query?: {
|
|
network?: "tcp" | "udp" | "all";
|
|
state?: components["schemas"]["ConnectionState"] | "all";
|
|
/**
|
|
* @description Exact opaque connection ID within the current adapter instance; never inferred from a tuple. Matches active and retained terminal flows.
|
|
* @example tcp-01HZX4K8W5
|
|
*/
|
|
connection_id?: string;
|
|
/** @example 100 */
|
|
limit?: components["parameters"]["Limit1000"];
|
|
/**
|
|
* @description Opaque cursor bound to the resource, running adapter instance, filters,
|
|
* and retained snapshot. Restart, changed filters, or snapshot expiry or
|
|
* eviction invalidates it. GET /flows returns 410 snapshot_expired;
|
|
* GET /nodes, GET /providers and GET /dns/cache return 400 invalid_request
|
|
* for a cursor that is unknown or no longer valid. Discard it and restart
|
|
* the page walk without a cursor; never silently continue against a new snapshot.
|
|
*/
|
|
cursor?: components["parameters"]["Cursor"];
|
|
/** @example full */
|
|
detail?: components["parameters"]["Detail"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Point-in-time flow page */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["FlowList"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
410: components["responses"]["Gone"];
|
|
/** @description Bounded recorder memory cannot admit a snapshot */
|
|
503: {
|
|
headers: {
|
|
/** @description Retry delay in seconds when retryable. */
|
|
"Retry-After"?: number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
getFlow: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example flow-23 */
|
|
flow_id: components["parameters"]["FlowId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Recorded flow detail */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["FlowDetail"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
410: components["responses"]["Gone"];
|
|
};
|
|
};
|
|
traceRouting: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["RoutingTraceRequest"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Hypothetical routing evaluation; never a recorded flow */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["RoutingTraceResponse"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
422: components["responses"]["Unprocessable"];
|
|
429: components["responses"]["RateLimited"];
|
|
/** @description A required runtime component is unavailable (temporarily_unavailable), or a coherent routing snapshot could not be pinned (snapshot_unavailable) */
|
|
503: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
listRules: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Ordered rules and fallback from one running generation */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["RuleList"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
/** @description The dictionary exceeds max_rules (temporarily_unavailable), or a coherent generation could not be pinned (snapshot_unavailable) */
|
|
503: {
|
|
headers: {
|
|
/** @description Retry delay in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
streamEvents: {
|
|
parameters: {
|
|
query?: {
|
|
/**
|
|
* @description Comma-separated advertised event kinds.
|
|
* @example flow.updated,flow.gap
|
|
*/
|
|
kinds?: string;
|
|
flow_id?: string;
|
|
};
|
|
header?: {
|
|
/** @example instance-7:123 */
|
|
"Last-Event-ID"?: components["parameters"]["LastEventId"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Server-sent events; validate data using the schema selected by the event name. */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"text/event-stream": string;
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["EventCursorExpired"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
streamLogs: {
|
|
parameters: {
|
|
query?: {
|
|
/**
|
|
* @description Minimum severity, ordered trace < debug < info < warn < error. Omit for all advertised levels; an unadvertised level returns 400 invalid_request.
|
|
* @example info
|
|
*/
|
|
level?: components["schemas"]["LogLevel"];
|
|
/**
|
|
* @description Case-sensitive literal module prefix; omit for all targets.
|
|
* @example honk::routing
|
|
*/
|
|
target?: string;
|
|
};
|
|
header?: {
|
|
/** @example instance-7:123 */
|
|
"Last-Event-ID"?: components["parameters"]["LastEventId"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Log stream; stream.ready precedes replay and live log frames. Heartbeat comments have no id or data. */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"text/event-stream": string;
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["EventCursorExpired"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
getRuntimeSettings: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Current runtime settings */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["RuntimeSettings"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
};
|
|
};
|
|
patchRuntimeSettings: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody: {
|
|
content: {
|
|
"application/json": components["schemas"]["RuntimeSettingsPatch"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Settings after the change */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["RuntimeSettings"];
|
|
};
|
|
};
|
|
/** @description A field outside resources.runtime_settings.fields, an unadvertised level, or a value outside its range */
|
|
400: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
413: components["responses"]["TooLarge"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
/** @description geodata.download names a group_id that is not a current group */
|
|
422: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
queryDns: {
|
|
parameters: {
|
|
query: {
|
|
/**
|
|
* @description DNS name within the 255-wire-octet and 63-octet-label limits.
|
|
* @example example.com
|
|
*/
|
|
domain: string;
|
|
/**
|
|
* @description Unique record types; repeated query parameter.
|
|
* @example [
|
|
* "A",
|
|
* "AAAA"
|
|
* ]
|
|
*/
|
|
type?: components["schemas"]["DnsRecordType"][];
|
|
upstream?: string;
|
|
cache_mode?: "normal" | "bypass";
|
|
/** @example full */
|
|
detail?: components["parameters"]["Detail"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Per-record-type DNS results, including DNS failures */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DnsQueryResponse"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
413: components["responses"]["TooLarge"];
|
|
422: components["responses"]["Unprocessable"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
listDnsLog: {
|
|
parameters: {
|
|
query?: {
|
|
/**
|
|
* @description Case-insensitive substring of the question name.
|
|
* @example telegram
|
|
*/
|
|
name?: string;
|
|
/** @example A */
|
|
type?: components["schemas"]["DnsRecordType"];
|
|
/**
|
|
* @description Client source IP literal, IPv4 or IPv6.
|
|
* @example 10.0.0.12
|
|
*/
|
|
src?: string;
|
|
/** @example 200 */
|
|
limit?: components["schemas"]["SafeUInt"];
|
|
/** @description Opaque cursor from a previous page; older records follow it. */
|
|
cursor?: string;
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Recent resolutions, newest first */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DnsLogList"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
listDnsCache: {
|
|
parameters: {
|
|
query?: {
|
|
name?: string;
|
|
domain?: string;
|
|
type?: components["schemas"]["DnsRecordType"][];
|
|
include_expired?: boolean;
|
|
/** @example 100 */
|
|
limit?: components["parameters"]["Limit1000"];
|
|
/**
|
|
* @description Opaque cursor bound to the resource, running adapter instance, filters,
|
|
* and retained snapshot. Restart, changed filters, or snapshot expiry or
|
|
* eviction invalidates it. GET /flows returns 410 snapshot_expired;
|
|
* GET /nodes, GET /providers and GET /dns/cache return 400 invalid_request
|
|
* for a cursor that is unknown or no longer valid. Discard it and restart
|
|
* the page walk without a cursor; never silently continue against a new snapshot.
|
|
*/
|
|
cursor?: components["parameters"]["Cursor"];
|
|
/** @example full */
|
|
detail?: components["parameters"]["Detail"];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description DNS cache page */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DnsCacheList"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
deleteDnsCacheByName: {
|
|
parameters: {
|
|
query: {
|
|
/**
|
|
* @description Exact canonicalizable DNS name; required to prevent an accidental flush.
|
|
* @example example.com.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* @example [
|
|
* "A",
|
|
* "AAAA"
|
|
* ]
|
|
*/
|
|
type?: components["schemas"]["DnsRecordType"][];
|
|
};
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Idempotent matching deletion result */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DeleteMatchingCount"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
deleteDnsCacheEntry: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example dns-entry-01HZX4K8W5 */
|
|
entry_id: components["parameters"]["DnsEntryId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Idempotent deletion result */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DeleteCount"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
flushDnsCache: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: {
|
|
content: {
|
|
"application/json": components["schemas"]["EmptyObject"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Cache invalidation barrier result */
|
|
200: {
|
|
headers: {
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["DeleteMatchingCount"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
startReload: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: {
|
|
content: {
|
|
"application/json": components["schemas"]["EmptyObject"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Operation accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["OperationAccepted"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
startSuspend: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: {
|
|
content: {
|
|
"application/json": components["schemas"]["EmptyObject"];
|
|
};
|
|
};
|
|
responses: {
|
|
/** @description Operation accepted */
|
|
202: {
|
|
headers: {
|
|
/** @description Operation status URL; equal to body href. */
|
|
Location: string;
|
|
/** @description Positive polling floor in seconds. */
|
|
"Retry-After": number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["OperationAccepted"];
|
|
};
|
|
};
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
startResume: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: {
|
|
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
|
|
};
|
|
path?: never;
|
|
cookie?: never;
|
|
};
|
|
requestBody?: {
|
|
content: {
|
|
"application/json": components["schemas"]["EmptyObject"];
|
|
};
|
|
};
|
|
responses: {
|
|
202: components["responses"]["OperationAccepted"];
|
|
400: components["responses"]["BadRequest"];
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
409: components["responses"]["Conflict"];
|
|
415: components["responses"]["UnsupportedMediaType"];
|
|
429: components["responses"]["RateLimited"];
|
|
503: components["responses"]["Unavailable"];
|
|
};
|
|
};
|
|
getOperation: {
|
|
parameters: {
|
|
query?: never;
|
|
header?: never;
|
|
path: {
|
|
/** @example op-01HZX4K8W7 */
|
|
id: components["parameters"]["OperationId"];
|
|
};
|
|
cookie?: never;
|
|
};
|
|
requestBody?: never;
|
|
responses: {
|
|
/** @description Current or terminal operation state */
|
|
200: {
|
|
headers: {
|
|
/** @description Positive polling floor in seconds; present while nonterminal. */
|
|
"Retry-After"?: number;
|
|
"Cache-Control": components["headers"]["NoStore"];
|
|
"X-Content-Type-Options": components["headers"]["NoSniff"];
|
|
[name: string]: unknown;
|
|
};
|
|
content: {
|
|
"application/json": components["schemas"]["Operation"];
|
|
};
|
|
};
|
|
401: components["responses"]["Unauthorized"];
|
|
403: components["responses"]["Forbidden"];
|
|
404: components["responses"]["NotFound"];
|
|
429: components["responses"]["RateLimited"];
|
|
};
|
|
};
|
|
}
|