Files
doona/src/api/types.ts
T
Zakk 8eb50d63f4 feat(connections): identify devices by MAC
In dual-stack LANs one device showed up as separate IPv4 and IPv6 entries
(daeuniverse/honk#446). honk is adding Connection.src_mac and a `mac` query
to listing and closing connections; the vendored contract carries both ahead
of that change, and the mock reports MAC addresses for its devices, one of
them also over IPv6 and one without a MAC address.

A device is now its MAC address when the backend knows it, otherwise its
source address. The device ranking, the dashboard ranking widget and the
connections grouped by device key on it, so one device's IPv4 and IPv6
traffic merge. An unnamed device keeps the address it showed before: its
latest IPv4 address, else its first one. A MAC device links to and filters
its connections with `?mac=`; a link in dash, dotted, bare or upper-case
form reads as the colon form, one honk cannot read is still sent so its
refusal shows, and a MAC address replaces any `src` in the same link, so
bulk close never goes out wider than the list.

The connection details show the source MAC address as a link that names
the device. Names are kept in this browser only, re-read before each save
and synced across tabs, and replace the address in the ranking, the groups
and the device picker. Search matches the MAC address and its name. With
no MAC addresses reported the pages render as before.
2026-12-04 20:46:02 +11:00

6500 lines
299 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 or runs in password mode. 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 or runs in password mode. 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`. Checks run in this order: the Authorization header, the peer, the account state, the body. A header that does not carry a live session gets 401 `authentication_required`; before setup no session exists. 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. After setup, the answer is 409 `setup_already_completed`, with or without a live session.
*/
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. Checks run in this order: the Authorization header, the account state, the body. A header that does not carry a live session gets 401 `authentication_required`; a live session does not replace the body, which is still validated. Before setup the answer is `setup_required`; a wrong username or password is `invalid_credentials`. The engine may end a session before `expires_at`, for example to stay within its session limit.
*/
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.
* Every source carries its content. Paths, content and diagnostics follow
* the visibility table in api-config: only listener-secret values are masked.
*/
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 engine-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 or listener secrets in diagnostics or errors.
*/
post: operations["validateConfig"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/v1/config/sources": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Create one configuration source and reload
* @description Requires control, resources.config.available, resources.config.writable,
* and resources.config.create. When create is absent or false, return 404
* capability_not_supported; a disabled write switch returns 403
* permission_denied. The body names one new dae file by path and supplies
* its complete UTF-8 text. path is relative to the directory of the main
* source, uses only normal segments (no empty, `.`, or `..` segment and no
* leading `/`), ends in `.dae`, has at most 1024 UTF-8 bytes, and contains
* no control characters; otherwise return 400 invalid_request. Resolve it
* inside the configuration root; a path whose parent resolves outside it,
* including through a symlink, returns 400.
* A path that names an existing file or an accepted source returns 409
* state_conflict; never overwrite it.
* Enforce resources.config.max_bytes on content UTF-8 bytes and the shared
* limits.max_json_body_bytes independently; excess returns 413.
* Validate the resulting source set with the same full-mode checks as
* PUT /config/sources/{source_id}, with the new file added at path, and
* resolve dependencies under the same rules. The new file must be loaded
* by an include pattern of that source set; if no pattern matches, return
* 422 unsupported_value with a source-not-included error diagnostic.
* Content that sets or changes API listener settings or secrets returns
* 403 permission_denied. A requested change that cannot take effect through
* reload, compared with the active configuration, is a restart-required
* error diagnostic. If any diagnostic has
* level error, return 422 unsupported_value with error.details.diagnostics;
* never store the source or start a reload. Diagnostics about the new file use the source ID it has
* in the validated set; source-not-included names the main source with a
* null location.
* Otherwise commit the source to the configuration store without replacing
* anything that appeared at path meanwhile; a file store uses a temporary
* file in the target directory and a rename that fails if path exists,
* with the main source's file mode. Storing, activation and serialization
* follow PUT /config/sources/{source_id}. Start a reload operation and
* return 202 OperationAccepted with kind reload, Location, and
* Retry-After. This is not reload completion. A failure before the source
* is stored creates nothing. A failed operation reports
* error.details.written and error.details.committed as defined under
* activation outcomes in the error contract. With committed false, remove
* the created source only if the store still holds the source this
* operation created, with the same identity and content (a file store
* compares file identity and file content), and report written false; if
* it was replaced or modified, or the removal fails, keep it and report
* the cleanup conflict as written true with committed false. With
* committed true or null, keep the source.
* After successful reload, GET /config lists the new source with path as
* given. Idempotency-Key follows the same rules as for PUT.
*/
post: operations["createConfigSource"];
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 source's identity and
* content from the same snapshot as GET /config, not a fresh read of the
* store; mask listener secrets as in GET /config. The body carries no field
* that can change while the source bytes stay the same: writable and
* loaded_at are only in the GET /config source list.
* 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 source. Checks If-Match against the stored
* source hash, validates the complete engine-native replacement in full
* mode, and returns 202 with a reload operation that commits the validated
* replacement atomically, before activation or after the new generation
* becomes active.
* The normative rules are in [Configuration: Editing](/v0.1.0/en/docs/configuration.html#Editing).
*/
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 The engine keeps cumulative per-outbound counters for visible traffic,
* including closed connections; they are not sums of live connections.
* All rows share counter_since; a 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 engine parses the link with its 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 response does not echo the link; the source text
* returns it as written (see Visibility in API Configuration). A link the engine
* cannot parse returns 422 unsupported_value with a sanitized reason in
* error.message. A name already in use, or a configuration change while the
* create is being admitted, returns 409 state_conflict. The node belongs to the
* inline provider and to every group whose filter matches it after reload.
* Returns 201 with the node once the change is active, or 202 with a
* node_create operation whose result is the created node. A failed
* activation reports its outcome as defined under activation outcomes in
* the error contract.
*/
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
* @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. The
* Cursor parameter defines how an unusable cursor is answered.
*/
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 engine 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. When resources.providers.create_unfetched is true, the provider is
* created unfetched: node_count 0, updated_at null and status stale; call
* POST /providers/{provider_id}/refresh to load it. Otherwise the engine may fetch the
* provider during activation and returns its actual state. The response carries the
* URL in url_redacted, as written apart from listener secrets. A name already in use
* returns 409 state_conflict, as does a configuration change while the create is
* being admitted. 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 engine does not list returns 422 unsupported_value.
* Returns 201 with the provider once the change is active, or 202 with a
* provider_create operation whose result is the created provider. A
* failed activation reports its outcome as defined under activation
* outcomes in the error contract.
*/
post: operations["createProvider"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/v1/providers/{provider_id}": {
parameters: {
query?: never;
header?: never;
path: {
/** @example provider-a */
provider_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. Returns 200 once the change is active, or 202 with
* a provider_delete operation whose result is the same deletion count. A
* failed activation reports its outcome as defined under activation
* outcomes in the error contract.
*/
delete: operations["deleteProvider"];
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/v1/providers/{provider_id}/refresh": {
parameters: {
query?: never;
header?: never;
path: {
/** @example provider-a */
provider_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/{node_id}": {
parameters: {
query?: never;
header?: never;
path: {
/** @example node-hk-03 */
node_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.
* Returns 200 once the change is active, or 202 with a node_delete
* operation whose result is the same deletion count. A failed
* activation reports its outcome as defined under activation outcomes in
* the error contract.
*/
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, in the display form described in
* Geodata. 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 engine 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 engine 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 failed checksum
* by the resources.geodata.checksum method. With sha256sum, a 404 for the
* checksum URL means none is published and the file is accepted unverified;
* a mismatch, another status or a connection error fails the URL. A
* fetched checksum goes through the same route as its file. With
* GeoDataSettings.verify_checksum false, or a null checksum method, no
* checksum is checked and the file is accepted unverified. 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 engine 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/{group_id}": {
parameters: {
query?: never;
header?: never;
path: {
/** @example group-proxy */
group_id: components["parameters"]["GroupId"];
};
cookie?: never;
};
/**
* Read a complete group resource
* @description Returns the group with its configuration, runtime selection and health.
* The response has no ETag: selection and health change without a
* configuration change. Conditional writes use GET /groups/{group_id}/config.
*/
get: operations["getGroup"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/v1/groups/{group_id}/config": {
parameters: {
query?: never;
header?: never;
path: {
/** @example group-proxy */
group_id: components["parameters"]["GroupId"];
};
cookie?: never;
};
/**
* Read the group's policy and configured options
* @description Returns the group's policy and config, the same values GET
* /groups/{group_id} embeds, as the target document of PATCH. The ETag is
* the configuration-wide revision in double quotes; it changes only with
* an accepted configuration change.
*/
get: operations["getGroupConfig"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
/**
* Patch mutable group configuration
* @description RFC 6902 JSON Patch whose target document is GroupConfigDocument, the
* body GET /groups/{group_id}/config returns. Operations apply in order to
* that document; see groups, Patch semantics, for remove, null, copy, move and test.
* Only fields in capabilities.mutable_config may change, judged by the
* effective write against the policy after the patch: one patch may set
* policy to urltest and add tolerance. When the resulting policy is not
* URLTest, a tolerance left non-null and changed returns 422 unsupported_value.
* A change to a field absent from mutable_config, such as
* interrupt_connections on an engine without that option, returns 422
* unsupported_value. Requires resources.groups.config_patch. If-Match carries the
* configuration-wide revision from the ETag of GET; see
* [Groups](/v0.1.0/en/docs/groups.html) for 412 and 409.
*/
patch: operations["patchGroupConfig"];
trace?: never;
};
"/api/v1/groups/{group_id}/selection": {
parameters: {
query?: never;
header?: never;
path: {
/** @example group-proxy */
group_id: 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, exact source-IP src and source-MAC mac filters with AND.
* Missing type and type=all do not restrict the set. Without type=tcp,
* type=udp, src, or mac, 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.
*
* The call has no replay semantics and takes no Idempotency-Key: every call
* evaluates current live state, so retrying after an uncertain result can
* close connections that opened in the meantime.
*
* 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. The call has no replay
* semantics and takes no Idempotency-Key; a repeated close returns 404.
*
* 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.rule_generation_id names the rule's generation; join
* a summary only when it equals generation_id, never when it is null.
* 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. resources.rules.max_rules
* is never below the running dictionary's size, so the complete dictionary is always
* returned and never truncated. expression follows the display rule in rules.
*/
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 Every connection begins with stream.ready; a resumed connection then replays
* retained events after Last-Event-ID; see [Replay and recovery](/v0.1.0/en/docs/events.html#Replay-and-recovery).
*/
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. Only observed_at and source are always present:
* a value appears when resources.runtime_settings.fields lists it, and
* recording.flows, recording.logs and recording.dns_log appear when
* record_flows, record_logs and record_dns_log are listed. An engine may
* report other values it cannot change. Numeric values stay inside their
* capability bounds. 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.
* Its URLs are returned as written, with only listener-secret values masked,
* to every admitted caller; see the visibility table in api-config.
*/
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. The body is a
* merge: an absent field keeps its value. Every value is checked before
* anything changes, and a rejected patch changes nothing. A field the schema
* does not define, or a value outside its schema range or advertised bounds,
* returns 400 invalid_request. A field not listed in
* resources.runtime_settings.fields, a log level not in
* resources.logs.levels, or pinning a recorder whose allowed is false returns
* 422 unsupported_value; see Errors. 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,
* control and a credential; an anonymous loopback caller gets 403
* permission_denied. The engine keeps a geodata patch as an override for as
* long as resources.geodata.lifecycle advertises and does not change the
* top-level source. Patching geosite or geoip overrides only that URL list
* (geodata.source becomes override); auto_update, download and verify_checksum
* are each overridden on their own; null removes every override and every
* value taken from the configuration file, so the built-in sources and
* defaults apply until the engine next takes file values. When it takes file
* values, a URL list, download route, schedule or checksum switch the
* configuration file names replaces the override for that field. Geodata URLs are fetched under the
* outbound-request policy in api-config. More URLs than resources.geodata.max_urls, an interval outside
* resources.geodata.interval_hours, interval_hours together with cron, or a
* cron expression the engine refuses returns 400. A patch never downloads; POST
* /geodata/update does. A download with route group whose group_id is not a
* current group returns 409 state_conflict and changes nothing.
*/
patch: operations["patchRuntimeSettings"];
trace?: never;
};
"/api/v1/dns/query": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Execute a routed diagnostic DNS query
* @description POST because the query has side effects: it sends live DNS traffic and, with cache_mode normal, writes the runtime cache. The name, types and upstream travel in the JSON body, not in the URL. Requires resources.dns_query.available; without it the request returns 404 capability_not_supported.
*/
post: operations["queryDns"];
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 cursor whose record has left the ring returns 410 snapshot_expired, as
* the Cursor parameter defines; restart from the newest page without a
* cursor.
* 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/dns/rules": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Read the running generation's DNS routing rules
* @description Requires resources.dns_rules.available. Return the DNS routing rules of the
* running generation, which is the accepted configuration, as two ordered lists:
* request rules pick how a query is resolved, and response rules decide whether
* an answer is accepted, rejected or re-queried. Each list is in evaluation order
* and ends with exactly one fallback entry. A fallback the configuration does not
* write still appears, with the engine's default action and a null source.
* A rule the configuration parser omitted with a diagnostic is not listed.
* This resource is read-only. Rules are edited by replacing the source that holds
* them with PUT /api/v1/config/sources/{source_id}, the same as traffic rules;
* there is no rule-level write endpoint. rule_id is stable within a generation
* and addresses the rule; it is unique across both lists. expression follows
* the display rule in rules; upstream is the name as the engine resolved it and may
* differ in case from the source text. generation_id identifies the rules'
* routing generation; refetch after generation.changed. There is no paginated snapshot. If a coherent
* generation cannot be pinned, return 503 snapshot_unavailable.
* resources.dns_rules.max_rules is never below either running list's size, so
* both lists are always returned complete and never truncated.
*/
get: operations["listDnsRules"];
put?: never;
post?: never;
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/{operation_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 engine-defined codes, except the shared activation outcome codes an engine uses for a failed configuration change when the case applies: reload_rejected, reload_degraded, supervisor_reconciliation_failed, activation_unconfirmed and store_unavailable.
* @enum {string}
*/
ErrorCode: "invalid_request" | "authentication_required" | "permission_denied" | "resource_not_found" | "capability_not_supported" | "method_not_allowed" | "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: "daeuniverse/native";
/** @constant */
status: "draft";
/** @constant */
api_major: 1;
/** @constant */
base_path: "/api/v1";
/** @description Shared links, plus an x-<engine> member for the engine's extension links (see capabilities, Engine extensions). Other members are not allowed. */
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/{operation_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;
} & {
[key: string]: {
[key: string]: string;
};
};
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: "daeuniverse/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: "daeuniverse/native";
/** @constant */
major: 1;
/** @constant */
status: "draft";
};
engine: {
/** @description Lowercase engine name, such as dae or honk. It names the engine's x-<engine> extension members and routes. */
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;
};
/** @description Only runtime is required. An absent resource key means the resource is unavailable, exactly as available false does, so a server that predates a resource still validates. Engine-only resources go in an x-<engine> member; other unlisted keys are not allowed. */
resources: {
config?: {
/** @description Accepted-source readback is implemented. Every returned source carries its content. */
available: 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 the optional
* dry-run endpoint.
*/
writable?: boolean;
/**
* @description POST /config/sources is implemented: a control caller may add a new
* source file that an include pattern loads. False by default; true
* requires writable.
* @default false
*/
create: boolean;
/** @description Maximum UTF-8 bytes in replacement or new source content. At most limits.max_json_body_bytes minus the request envelope, which is the largest compact UTF-8 JSON encoding of the request body without its content, taking for POST the permitted path whose encoding is longest (each quotation mark or backslash in the path encodes to two bytes, so this exceeds the path's 1024-byte limit). Content that JSON escaping expands can still exceed limits.max_json_body_bytes, and that limit then applies. */
max_bytes?: components["schemas"]["SafeUInt"];
/** @description Maximum complete effective source set the engine 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/{node_id} are implemented for inline nodes; the engine 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 A created provider is not fetched until POST /providers/{provider_id}/refresh; it starts with node_count 0, updated_at null and status stale. False or absent means the engine may fetch it during activation and reports its actual state. */
create_unfetched?: boolean;
/** @description Optional ProviderCreate fields the engine 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;
/** @description PATCH /groups/{group_id}/config is implemented. A group patch is a configuration write, so true requires resources.config.writable. */
config_patch?: boolean;
selection?: boolean;
max_patch_operations?: number;
};
probes?: {
available: boolean;
targets?: ("node" | "group")[];
kinds?: components["schemas"]["ProbeKind"][];
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;
/**
* @description The engine's flow recording policy, not whether the recorder is capturing now. off records none, because the configuration does not permit the flow recorder or its mode is off; on records every flow in scopes (mode on); auto enables recording on client demand; sampled records a subset. recording.flows.active in GET /runtime/settings reports whether capture is active now.
* @enum {string}
*/
recording?: "off" | "on" | "auto" | "sampled";
scopes?: components["schemas"]["FlowScope"][];
/** @description Smallest flows.max_flows a runtime-settings PATCH may set. Absent means 1. */
min_flows?: components["schemas"]["SafeUInt"];
/** @description The largest flow capacity the engine supports, which is the most a runtime-settings PATCH may set, not the current value. The current value is flows.max_flows in GET /runtime/settings. */
max_flows?: number;
max_steps_per_flow?: number;
/** @description The longest terminal-flow retention the engine supports, which is the most a runtime-settings PATCH may set, not the current value. The smallest a PATCH may set is always 1. The current value is flows.retention_seconds in GET /runtime/settings. */
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 below the running generation's size and 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 The GET /logs query filters this engine applies. level is always listed; a filter not listed returns 422 unsupported_value. */
filters?: ("level" | "target")[];
/** @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 Smallest log.buffered_records a runtime-settings PATCH may set. Absent means 1. */
min_buffered_records?: components["schemas"]["SafeUInt"];
/** @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 Smallest dns_log.max_records a runtime-settings PATCH may set. Absent means 1. */
min_records?: components["schemas"]["SafeUInt"];
/** @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"];
};
dns_rules?: {
available: boolean;
/** @description Maximum size of each DNS rule list, including its fallback entry; never below either running list's size and never a truncation limit. */
max_rules?: components["schemas"]["SafeUInt"];
};
runtime_settings?: {
available: boolean;
/** @description The settings PATCH /runtime/settings accepts on this engine; another field the schema defines returns 422. */
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 engine. */
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;
/** @description Most download URLs per asset a geodata patch may set. Required when configurable_sources is true. */
max_urls?: number;
/** @description Bounds of geodata auto_update.interval_hours, and the nominal value it reads under a cron schedule. Required when configurable_sources is true. min <= default <= max is required; JSON Schema cannot express this ordering, so validators check it separately. */
interval_hours?: {
min: number;
max: number;
default: number;
};
/**
* @description How the engine verifies a download when verify_checksum is true. sha256sum appends .sha256sum to the URL path, keeping any query, and compares the SHA-256 the response names; a 404 means none is published. pinned compares with a SHA-256 the engine holds for the URL. Null means downloads are unverified. Required when can_update or configurable_sources is true.
* @enum {string|null}
*/
checksum?: "sha256sum" | "pinned" | null;
/** @description When geodata settings take configuration-file values and how long overrides last; see Geodata. Required when configurable_sources is true. */
lifecycle?: {
/**
* @description start takes file values at process start only; activation also takes them at each configuration activation.
* @enum {string}
*/
file_values: "start" | "activation";
/** @description True when a PATCH override lasts across restarts; false when it lasts until the process exits. */
overrides_persist: boolean;
};
} & (unknown & unknown & unknown);
operations?: {
available: boolean;
retention_seconds?: number;
/** @description Finished Idempotency-Key records the server keeps before the retention window ends. Beyond this count it may evict the oldest-finished first. Absent means none are evicted before the window ends. Keys of unfinished operations are never evicted. */
max_replay_keys?: number;
};
reload?: components["schemas"]["AvailableResource"];
suspend?: components["schemas"]["AvailableResource"];
resume?: components["schemas"]["AvailableResource"];
} & {
[key: string]: {
[key: string]: 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 (the deployment secret of an API listener) was masked somewhere in this response. Content, paths and diagnostics are otherwise returned in the clear to an admitted request. */
secrets_redacted: boolean;
};
/** @description One accepted source's identity and content, the representation GET /config/sources/{source_id} returns. Every field stays the same while the source bytes do, so content_sha256 can serve as its entity tag. */
ConfigSourceContent: {
/** @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 Accepted engine-native text with listener-secret values masked. 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 A source entry of GET /config, ConfigSourceContent plus the fields that can change without the bytes changing. */
ConfigSource: components["schemas"]["ConfigSourceContent"] & {
/**
* @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, for a source that holds API
* listener settings or secrets, and while the configuration store
* cannot accept writes; observe alone never grants writes.
*/
writable: boolean;
/**
* @description Present only while writable is false and one of these causes applies,
* naming the first that does in this order. Describes the accepted
* snapshot. writes_disabled: config_write is off or no secret or
* password_auth is configured. store_blocked: a failed db record blocks
* writes until the head revision is activated again.
* listener_secret_source: the source declares a native or Clash listener
* secret. listener_secret_in_content: the source text contains a
* listener secret value.
* @enum {string}
*/
read_only_reason?: "writes_disabled" | "store_blocked" | "listener_secret_source" | "listener_secret_in_content";
/** @description Time these source bytes were accepted, not the current file modification time. */
loaded_at: components["schemas"]["Timestamp"];
};
ConfigSourceCreate: {
/** @description New file path relative to the main source's directory, as ConfigSource.path reports it. Normal segments only, ending in .dae, at most 1024 UTF-8 bytes, no control characters. An include pattern of the resulting source set must match it. */
path: string;
/** @description Complete UTF-8 engine-native text; empty text is validated, not rejected as malformed. */
content: string;
};
/**
* @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 Engine-defined diagnostic code, independent of the HTTP ErrorCode catalogue. */
code: string;
/** @description Safe operator-facing description; never source excerpts, listener secrets or raw engine errors. See the visibility table in api-config. */
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"];
};
/** @description unsupported_value error whose details.diagnostics holds at least one error-level diagnostic. */
ConfigDiagnosticsErrorResponse: components["schemas"]["ErrorResponse"] & {
error?: {
/** @constant */
code?: "unsupported_value";
details: {
diagnostics: components["schemas"]["ConfigDiagnostic"][];
};
};
};
/** @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 engine'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. */
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;
/** @description CPU time the engine process used over the server's latest sampling interval, as a percentage of one CPU. 100 means one core fully busy; the value may exceed 100 on multi-core hosts. Null until two samples exist or when unmeasurable. */
cpu_percent: number | null;
};
last_reload: null | components["schemas"]["LastReload"];
/** @description Features running reduced after a failure the engine recovered from. An absent or empty list means none are known. Codes are engine-defined like other SafeError codes. A change to the list is announced by runtime.updated. */
degradations?: (components["schemas"]["SafeError"] & {
/** @description Engine-defined feature identifier, such as persistence or pname_routing. Stable across releases of one engine; each component appears at most once. */
component: string;
/** @description When the feature started running reduced. A failure that repeats while the entry is listed keeps the original time. */
since: components["schemas"]["Timestamp"];
})[];
};
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"] & {
/** @description The attachments the engine checks. The list may be partial; an engine need not report every program it attached. */
attachments?: components["schemas"]["EbpfAttachment"][];
maps?: components["schemas"]["EbpfMaps"];
};
/** @description One program attachment. An interface attachment names the interface and direction, a cgroup attachment names the cgroup, and any other attachment, such as a sockmap verdict or a tracing program, describes its hook in `hook`. */
EbpfAttachment: {
/** @description Program or hook name. */
name: string;
/** @enum {string} */
kind: "interface" | "cgroup" | "other";
interface?: string;
/** @enum {string} */
direction?: "ingress" | "egress";
/** @description cgroup v2 path relative to the cgroup2 mount; / is the root cgroup. */
cgroup?: string;
/** @description Where an `other` attachment is attached, in the engine's words, such as the sockmap a verdict program serves or the kernel function a tracing program hooks. */
hook?: string;
/** @enum {string} */
state: "attached" | "detached" | "error" | "unknown";
} & (unknown & unknown & 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;
/**
* @description Configured stream transport, not the negotiated transport or TCP/UDP health. Omitted or null when unavailable or inapplicable; future string values are allowed.
* @example tcp
* @example ws
* @example grpc
* @example xhttp
*/
stream_transport?: 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 Provider metadata, visible as the visibility table in api-config describes. url_redacted is the configured URL with only listener-secret values masked; last_error is safe text without raw configuration. */
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 masked; subscription credentials in it are returned. 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, whose details may carry stage (the failed step, a download stage code such as connection_failed or tls_failed, or parse_failed when the body downloaded but yielded no usable nodes), node (the name of the node the download went through, null when direct) and group_id (the group that chose it, null when none did). */
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. Engines 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;
};
ProviderCreateSucceededOperation: components["schemas"]["OperationCommon"] & {
/** @constant */
kind?: "provider_create";
/** @constant */
status?: "succeeded";
finished_at?: components["schemas"]["Timestamp"];
result?: components["schemas"]["Provider"];
error?: null;
};
ProviderDeleteSucceededOperation: components["schemas"]["OperationCommon"] & {
/** @constant */
kind?: "provider_delete";
/** @constant */
status?: "succeeded";
finished_at?: components["schemas"]["Timestamp"];
result?: components["schemas"]["DeleteCount"];
error?: null;
};
NodeCreateSucceededOperation: components["schemas"]["OperationCommon"] & {
/** @constant */
kind?: "node_create";
/** @constant */
status?: "succeeded";
finished_at?: components["schemas"]["Timestamp"];
result?: components["schemas"]["Node"];
error?: null;
};
NodeDeleteSucceededOperation: components["schemas"]["OperationCommon"] & {
/** @constant */
kind?: "node_delete";
/** @constant */
status?: "succeeded";
finished_at?: components["schemas"]["Timestamp"];
result?: components["schemas"]["DeleteCount"];
error?: null;
};
ProviderCreate: {
/** @description The subscription tag as written in the configuration; unique among providers. Any text without control characters that the configuration can quote; names outside [A-Za-z0-9_.-] are written quoted. */
name: string;
/** @constant */
kind: "subscription";
/** @description Fetched by the engine on refresh and stored in the managed main source; returned in url_redacted as written, apart from listener secrets. */
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, whose text returns it as written. */
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, in the display form described in Geodata; query removed and credential-shaped path segments replaced with [redacted]. With several configured URLs, the first. Null when no source is configured or the URL does not parse, including a URL with userinfo or a fragment. */
source_redacted: string | null;
/** @description Display-only URL the loaded file was downloaded from, in the same display form as source_redacted and null under the same conditions. Null when the engine 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 checksum found by the resources.geodata.checksum method for its download URL. False when no checksum was found, the method is null, verification was off, or the engine 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 engine 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 engine-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 effective URL lists came from. config when every list that is not built in comes from the configuration file. override when a PATCH set at least one list that is still in force, even to the URLs the file names. default when both assets use the engine's built-in URLs. An asset with neither a file value nor an override uses its built-in URLs under any source. A PATCH may set URLs under any source.
* @enum {string}
*/
GeoDataSettingsSource: "config" | "override" | "default";
/**
* Format: uri
* @description Absolute HTTP(S) URL without userinfo or fragment, fetched under the outbound-request policy in api-config. The engine does not follow redirects.
*/
GeoDataUrl: string;
GeoDataSources: {
/** @description Download URLs in fallback order, at most resources.geodata.max_urls. Returned as written, with only listener-secret values masked, to every admitted caller; see the visibility table in api-config. */
urls: components["schemas"]["GeoDataUrl"][];
};
/** @description When the engine takes file values, a schedule the configuration file names replaces a stored one, and a schedule an earlier file set returns to the default when the file names none; a patched schedule is kept. */
GeoDataAutoUpdate: {
/**
* @description Update on a schedule. On by default.
* @default true
*/
enabled: boolean;
/** @description Hours between automatic updates, within resources.geodata.interval_hours, when cron is null. Under a cron schedule it reads resources.geodata.interval_hours.default and has no effect. The engine may add a random delay; next_check_at reports the result. */
interval_hours: number;
/** @description Five-field cron expression (minute hour day-of-month month day-of-week) evaluated in the engine's local time zone, or null when interval_hours applies. Daily at 03:00 when nothing is set. The engine adds a random delay of up to an hour. An engine that omits the field has only the interval schedule. */
cron?: string | null;
};
/**
* @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 engine makes itself. When the engine takes file values (resources.geodata.lifecycle.file_values), a route the configuration file names replaces a stored one, and a route an earlier file set returns to routing when the file names none; a patched route is kept. 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 engine tries the next URL and reports last_error, and never falls back to direct.
* @default {
* "route": "routing",
* "group_id": null
* }
*/
download: components["schemas"]["GeoDataDownload"];
/** @description Whether an update verifies each file by the resources.geodata.checksum method and rejects a file that does not match. true when nothing is set, and an engine that omits the field behaves as true. false sends no checksum request and accepts the file unverified, with verified false, for a mirror that answers the checksum URL with an error page or a status other than 404. When the engine takes file values, a value the configuration file names replaces a stored one, and a value an earlier file set returns to true when the file names none; a patched value is kept. */
verify_checksum?: boolean;
};
GeoDataSourcesPatch: {
/** @description Replaces the whole list; order is fallback order. At most resources.geodata.max_urls; a longer list returns 400. */
urls: components["schemas"]["GeoDataUrl"][];
};
/** @description Merged into the current settings as overrides. A patch with geosite or geoip overrides only that list, so source becomes override, under any source; the other list is unchanged. auto_update, download and verify_checksum are each overridden on their own. null removes every override and every value taken from the configuration file until the engine next takes file values. */
GeoDataSettingsPatch: null | {
geosite?: components["schemas"]["GeoDataSourcesPatch"];
geoip?: components["schemas"]["GeoDataSourcesPatch"];
download?: components["schemas"]["GeoDataDownloadPatch"];
verify_checksum?: boolean;
auto_update?: {
enabled?: boolean;
/** @description Within resources.geodata.interval_hours; a value outside it returns 400. Switches to the interval schedule. */
interval_hours?: number;
/** @description Switches to the cron schedule. Numbers, lists, ranges and steps only, firing at most four times a day; an expression that breaks these rules or never fires returns 400. */
cron?: string;
};
};
GroupPolicy: {
/** @enum {string} */
kind: "selector" | "urltest" | "loadbalance" | "fallback" | "random" | "score" | "fixed";
native: string;
};
GroupPolicyRequest: {
/** @enum {string} */
kind: "selector" | "urltest" | "loadbalance" | "fallback" | "random" | "score" | "fixed";
native: string;
};
GroupMember: {
id: string;
name: string;
/** @enum {string} */
kind: "node" | "group";
};
/** @description The group's policy and configured options, the target document of PATCH /groups/{group_id}/config. */
GroupConfigDocument: {
policy: components["schemas"]["GroupPolicy"];
config: components["schemas"]["GroupConfig"];
};
/** @description The group's own configured options, patched through PATCH /groups/{group_id}/config. For an option the engine supports, null means the group sets no value of its own and the engine's inheritance and defaults apply. Engine-only options go in a nested x-<engine> member, for example config["x-dae"].check_addresses; GET reports these members and they are not patch targets. Other unlisted keys are not allowed. */
GroupConfig: {
default_member_id: string | null;
final_outbound: string | null;
/** @description The one health-check URL. Engines probe this URL only; there is no list of URLs. The value read back may be masked, so it is a MaskedHttpUrl rather than a SafeHttpUrl. */
check_url: null | components["schemas"]["MaskedHttpUrl"];
/** @description Configured health-check interval in seconds. An engine that runs checks on one global interval may keep this value without applying it. */
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;
/** @description Whether changing the selection closes connections through the previous member. Null means the group sets no value of its own, or the engine has no such option. */
interrupt_connections: boolean | null;
} & {
[key: string]: Record<string, never>;
};
/**
* Format: uri
* @description Absolute HTTP(S) URL without userinfo, checked under the outbound-request policy in api-config.
*/
SafeHttpUrl: string;
/** @description A SafeHttpUrl as read back, with each listener-secret value replaced by the literal `<redacted>`, so it may not parse as a URI. Read-only. */
MaskedHttpUrl: 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 RFC 6902 operations over the group's policy and config, applied in order. Bounded by resources.groups.max_patch_operations. Members an operation object does not define are ignored (RFC 6902 §4). */
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";
/** @description The engine compares test with the stored URL before masking, so a test with a masked check_url read back fails with 409 state_conflict. Add and replace store the value as sent and do not recognize `<redacted>`, so a masked URL must not be written back. */
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 | null;
};
/** @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[];
/** @description The schema does not restrict kind and transport combinations. tcp_connect and http run over tcp; dns runs over tcp, udp or both. Any other combination parses and returns 422 unsupported_value. The kind fixes the health purpose that results report: tcp_connect and http test data, dns tests dns. */
ProbeRequest: {
target: components["schemas"]["ProbeTarget"];
kind: components["schemas"]["ProbeKind"];
transport: components["schemas"]["Transport"][];
/** @enum {string} */
ip_version: "ipv4" | "ipv6" | "any";
/** @default direct */
members: components["schemas"]["ProbeMembers"];
/** @enum {string} */
warmth: "cold" | "warm";
} & unknown;
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;
/** @description Source MAC address of the flow's first Ethernet frame in lower case, the router's own interface address for traffic the router sends; null when none was captured, such as on a non-Ethernet interface. */
src_mac: string | null;
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 Display expression for that rule, or null when unavailable. */
rule_expression: string | null;
/**
* @description kernel, the rule the kernel datapath decided with; userspace, the rule a userspace router decided with; recomputed, a userspace re-evaluation after the kernel decided, which need not be the deciding rule; unknown, provenance unavailable.
* @enum {string}
*/
rule_source: "kernel" | "userspace" | "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"];
/** @description Visible upload rate, or null when the engine does not sample per connection. See connections.md for deriving a rate from two list snapshots. */
upload_bytes_per_second: components["schemas"]["NullableUInt64"];
/** @description Visible download rate, or null when the engine does not sample per connection. See connections.md for deriving a rate from two list snapshots. */
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 Generation containing rule_id. Join to GET /rules only when this matches its generation_id; null when rule_id or its generation is unavailable. */
rule_generation_id: string | null;
/** @description Display expression for that rule, or null when unavailable. */
rule_expression: string | null;
/**
* @description kernel, the rule the kernel datapath decided with; userspace, the rule a userspace router decided with; recomputed, a userspace re-evaluation after the kernel decided, which need not be the deciding rule; unknown, provenance unavailable.
* @enum {string}
*/
rule_source: "kernel" | "userspace" | "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";
/** @description pass lets the packet continue without the proxy, redirect hands it to the userspace proxy, hold keeps it until a pending decision completes, and drop discards it. Any other value is an engine-defined step documented with that engine; clients show an unknown value as it is. */
action: string;
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;
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"][];
};
/** @description `*` or a comma-separated list of entity tags, strong or weak (W/ prefix), as RFC 9110 §8.8.3 and §13.1.1 define. An entity tag contains no space, tab or inner double quote. Empty list elements are ignored, as §5.6.1.2 requires of recipients. */
EntityTagList: string;
/** @description An IPv4 or IPv6 address. Validators must enforce the ipv4 and ipv6 formats; without format assertion, either branch accepts any string. */
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. Coordinates refer to the original source before listener secrets are masked. */
RuleSource: null | {
/** @description Source path or URL as written, apart from listener secrets. */
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 Display text for the rule; see rules, Rule expressions. Not 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"][];
};
DnsQueryRequest: {
/** @description DNS name within the 255-wire-octet and 63-octet-label limits. */
domain: string;
/**
* @description Unique record types.
* @default [
* "A"
* ]
*/
type: components["schemas"]["DnsRecordType"][];
/** @description Force this upstream from dns.upstream instead of dns.routing. */
upstream?: string;
/**
* @default normal
* @enum {string}
*/
cache_mode: "normal" | "bypass";
};
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, or null when the cache has no entry limit or the engine cannot report it. */
entry_capacity: components["schemas"]["UInt64"] | null;
};
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"][];
};
DnsRoutingRule: {
/** @description Stable within the generation and unique across both lists; addresses the rule. Opaque to clients. */
rule_id: string;
/** @description Zero-based evaluation order within its list and generation, not a cross-generation identity. */
index: components["schemas"]["SafeUInt"];
/** @description Display text for the rule; see rules, Rule expressions. Not an editable source representation. */
expression: string;
/**
* @description Request rules: upstream sends the query to the named upstream, asis sends it
* to the original destination, reject answers it empty. Response rules: accept
* keeps the answer, reject replaces it with an empty one, requery resolves the
* query again through the named upstream.
* @enum {string}
*/
action: "upstream" | "asis" | "reject" | "accept" | "requery";
/** @description Upstream name for upstream and requery, as the engine resolved it; it may differ in case from the source text. Null for other actions. */
upstream: string | null;
source: components["schemas"]["RuleSource"];
/** @enum {string} */
kind: "rule" | "fallback";
};
DnsRuleList: {
generation_id: string;
/** @description Request rules in evaluation order with unique rule_id and index values, ending with exactly one fallback entry. */
request: (components["schemas"]["DnsRoutingRule"] & {
/** @enum {unknown} */
action?: "upstream" | "asis" | "reject";
})[];
/** @description Response rules in evaluation order with unique rule_id and index values, ending with exactly one fallback entry. */
response: (components["schemas"]["DnsRoutingRule"] & {
/** @enum {unknown} */
action?: "accept" | "reject" | "requery";
})[];
};
DeleteCount: {
deleted: number;
};
DeleteMatchingCount: {
matched: number;
deleted: number;
};
/** @enum {string} */
OperationKind: "probe" | "reload" | "suspend" | "resume" | "group_update" | "provider_refresh" | "geodata_update" | "node_create" | "node_delete" | "provider_create" | "provider_delete";
/** @description A replayed Idempotency-Key returns this original body unchanged, including status queued, whatever the operation's current status. */
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"] | components["schemas"]["NodeCreateSucceededOperation"] | components["schemas"]["NodeDeleteSucceededOperation"] | components["schemas"]["ProviderCreateSucceededOperation"] | components["schemas"]["ProviderDeleteSucceededOperation"];
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 The engine component that emitted the record, such as a module name; not a network destination. null when the engine does not report one. */
target: string | null;
/** @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";
/** @description Every section is optional. A value appears when resources.runtime_settings.fields lists it; an engine may also report a value it cannot change. */
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, within logs.min_buffered_records and logs.max_buffered_records. Independent of level. */
buffered_records?: components["schemas"]["SafeUInt"];
};
dns_log?: {
/** @description DNS log ring capacity, within dns_log.min_records and dns_log.max_records. */
max_records: components["schemas"]["SafeUInt"];
};
flows?: {
/** @description Retained flows, within flows.min_flows and 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. Each recorder appears when its record_* field is listed in
* resources.runtime_settings.fields. In auto mode a recorder captures on demand, so the
* first history a client reads may be empty. Engine-specific demand rules are
* documented with the engine; see the honk notes.
*/
recording?: {
flows?: components["schemas"]["RecorderState"];
logs?: components["schemas"]["RecorderState"];
dns_log?: components["schemas"]["RecorderState"];
events?: {
/** @description Event capture is running. */
active: boolean;
};
/** @description Seconds left in the engine's attachment grace after the last client left, 0 while a client is attached or once the grace has run out. Which recorders follow this grace is engine-defined, and a recorder may keep its own demand timer that this value does not count. Absent when the engine keeps no attachment grace. */
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, with only listener-secret values masked, to every admitted caller. */
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 A recorder's mode. "on" keeps a permitted recorder on without clients, "off" forces it off, and auto (the startup default) lets the engine record on demand. What counts as demand, and how long it lasts, is engine-defined. PATCH sets it, GET reports it in RecorderState.mode, and resources.flows.recording reports the effective flow policy, which can be off when recording is disallowed or sampled when the engine samples.
* @enum {string}
*/
RecorderMode: "on" | "off" | "auto";
RecorderState: {
/** @description The configuration permits this recorder; false means never, whatever the mode. */
allowed: boolean;
/** @description The mode last set by PATCH, or auto when none was set. */
mode: components["schemas"]["RecorderMode"];
/** @description The recorder is capturing right now. */
active: boolean;
};
StreamReadyEvent: {
instance_id: string;
observed_at: components["schemas"]["Timestamp"];
};
/** @description Coalesced invalidation of the runtime snapshot. Also sent when an entry is added to, changed in, or cleared from runtime degradations. */
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: {
/** @description The authentication challenge (RFC 9110 §15.5.2); the native API uses the Bearer scheme. */
"WWW-Authenticate": string;
"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: {
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ErrorResponse"];
};
};
/** @description Flow retention expired (flow_expired) */
Gone: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description The page cursor no longer names a retained snapshot or record; restart the walk without a cursor */
SnapshotExpired: {
headers: {
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ErrorResponse"];
};
};
/** @description Request size or advertised fan-out limit exceeded */
TooLarge: {
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 */
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"];
/**
* @description Source MAC address, six colon-separated hex octets, matched case-insensitively; applied with type and src before limit. Totals and truncated describe only matching visible entries.
* @example aa:bb:cc:dd:ee:ff
*/
2: string;
/** @example full */
Detail: "summary" | "full";
/** @example 100 */
Limit1000: number;
/**
* @description Opaque cursor from the previous page's next_cursor, bound to the walk that
* issued it (its snapshot or retained records, filters and limit). An unrecognised
* cursor returns 410 snapshot_expired; see
* [Page cursors](/v0.1.0/en/docs/errors.html#Page-cursors).
*/
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;
/**
* @description Evaluated as RFC 9110 §13.1.1 defines; see Conditional requests in the error contract.
* @example "d1f62f00c6da9ec33956e66b8cc3b4670f164556fc12453193904af23451dec1"
*/
IfMatch: components["schemas"]["EntityTagList"];
/**
* @description Evaluated as RFC 9110 §13.1.1 defines; see Conditional requests in the error contract. For when a retained idempotent replay may omit it, see [Choosing the status](/v0.1.0/en/docs/errors.html#Choosing-the-status).
* @example "17"
*/
IfMatchOptional: components["schemas"]["EntityTagList"];
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
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 Strong entity tag of the representation, the value a later If-Match compares. */
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"];
413: components["responses"]["TooLarge"];
};
};
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
413: components["responses"]["TooLarge"];
};
};
getCapabilities: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Engine capabilities */
200: {
headers: {
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["Capabilities"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
413: components["responses"]["TooLarge"];
};
};
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"];
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"];
};
};
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;
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
/** @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"];
};
};
413: components["responses"]["TooLarge"];
/** @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"];
};
};
401: components["responses"]["Unauthorized"];
/** @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"];
};
};
/** @description The validation worker is unavailable or its queue is full (temporarily_unavailable); nothing was validated. Retry after Retry-After. */
503: components["responses"]["Unavailable"];
};
};
createConfigSource: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
};
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": components["schemas"]["ConfigSourceCreate"];
};
};
responses: {
/** @description Creation accepted and reload queued; the operation reports whether the source was stored and activated */
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";
};
};
};
/** @description Malformed request shape or source path; nothing is written */
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"];
/** @description Control permission is absent, editing is disabled, or the content sets or changes API listener settings or secrets */
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 or source creation 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 The path already names a file or an accepted source, or an Idempotency-Key was reused with a different body; nothing is written */
409: {
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, including source-not-included and restart-required; nothing is stored 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"]["ConfigDiagnosticsErrorResponse"];
};
};
429: components["responses"]["RateLimited"];
503: components["responses"]["Unavailable"];
};
};
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: {
/** @description The source's content_sha256 in double quotes, the value PUT compares in If-Match. Sent only when content is complete, that is, when no listener-secret value was masked; a masked body has no ETag. */
ETag?: string;
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ConfigSourceContent"];
};
};
400: components["responses"]["BadRequest"];
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"];
};
};
413: components["responses"]["TooLarge"];
429: components["responses"]["RateLimited"];
};
};
replaceConfigSource: {
parameters: {
query?: never;
header: {
/**
* @description Evaluated as RFC 9110 §13.1.1 defines; see Conditional requests in the error contract.
* @example "d1f62f00c6da9ec33956e66b8cc3b4670f164556fc12453193904af23451dec1"
*/
"If-Match": components["parameters"]["IfMatch"];
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"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 engine-native text; empty text is validated, not rejected as malformed. */
content: string;
};
};
};
responses: {
/** @description Replacement accepted and reload queued; the operation reports whether it was stored and activated */
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, the source is read-only, or the replacement sets or changes API listener settings or secrets */
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 stored content hash, on arrival or at commit; the replacement is not stored */
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, including restart-required; nothing is stored 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"]["ConfigDiagnosticsErrorResponse"];
};
};
/** @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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
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"];
413: components["responses"]["TooLarge"];
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"];
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
listNodes: {
parameters: {
query?: {
/** @example group-proxy */
group_id?: string;
/** @example 100 */
limit?: components["parameters"]["Limit1000"];
/**
* @description Opaque cursor from the previous page's next_cursor, bound to the walk that
* issued it (its snapshot or retained records, filters and limit). An unrecognised
* cursor returns 410 snapshot_expired; see
* [Page cursors](/v0.1.0/en/docs/errors.html#Page-cursors).
*/
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"];
410: components["responses"]["SnapshotExpired"];
413: components["responses"]["TooLarge"];
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 and active */
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"];
};
};
/** @description Node creation accepted as a node_create operation */
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"];
/** @description A node with this name exists, or the configuration changed while the create was being admitted (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 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 from the previous page's next_cursor, bound to the walk that
* issued it (its snapshot or retained records, filters and limit). An unrecognised
* cursor returns 410 snapshot_expired; see
* [Page cursors](/v0.1.0/en/docs/errors.html#Page-cursors).
*/
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"];
410: components["responses"]["SnapshotExpired"];
413: components["responses"]["TooLarge"];
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 and active */
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"];
};
};
/** @description Provider creation accepted as a provider_create operation */
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"];
/** @description A provider with this name exists, or the configuration changed while the create was being admitted (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 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 */
provider_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"];
413: components["responses"]["TooLarge"];
};
};
deleteProvider: {
parameters: {
query?: never;
header?: never;
path: {
/** @example provider-a */
provider_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"];
};
};
/** @description Provider deletion accepted as a provider_delete operation */
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"];
/** @description The configuration still names the provider in a reference the delete would break, or the configuration changed while the delete was being admitted (state_conflict); nothing is removed. Filter-matched membership is not a reference. After a concurrent change, read the provider back and retry. */
409: components["responses"]["Conflict"];
413: components["responses"]["TooLarge"];
503: components["responses"]["Unavailable"];
};
};
refreshProvider: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
};
path: {
/** @example provider-a */
provider_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"];
};
};
413: components["responses"]["TooLarge"];
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 */
node_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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
deleteNode: {
parameters: {
query?: never;
header?: never;
path: {
/** @example node-hk-03 */
node_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"];
};
};
/** @description Node deletion accepted as a node_delete operation */
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"];
/** @description A group or the routing final outbound still names the node, or the configuration changed while the delete was being admitted (state_conflict); nothing is removed. Filter-matched membership is not a reference. After a concurrent change, read the node back and retry. */
409: components["responses"]["Conflict"];
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
updateGeoData: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"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"];
};
};
400: components["responses"]["BadRequest"];
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"];
};
};
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
getGroup: {
parameters: {
query?: never;
header?: never;
path: {
/** @example group-proxy */
group_id: components["parameters"]["GroupId"];
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Current group */
200: {
headers: {
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["Group"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
getGroupConfig: {
parameters: {
query?: never;
header?: never;
path: {
/** @example group-proxy */
group_id: components["parameters"]["GroupId"];
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Current group configuration */
200: {
headers: {
/** @description The configuration-wide revision in double quotes, the value PATCH compares in If-Match. */
ETag: components["headers"]["ETag"];
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["GroupConfigDocument"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
patchGroupConfig: {
parameters: {
query?: never;
header?: {
/**
* @description Evaluated as RFC 9110 §13.1.1 defines; see Conditional requests in the error contract. For when a retained idempotent replay may omit it, see [Choosing the status](/v0.1.0/en/docs/errors.html#Choosing-the-status).
* @example "17"
*/
"If-Match"?: components["parameters"]["IfMatchOptional"];
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"Idempotency-Key"?: components["parameters"]["IdempotencyKey"];
};
path: {
/** @example group-proxy */
group_id: components["parameters"]["GroupId"];
};
cookie?: never;
};
requestBody: {
content: {
"application/json-patch+json": components["schemas"]["JsonPatch"];
};
};
responses: {
/** @description Updated group configuration */
200: {
headers: {
/** @description The new configuration revision in double quotes. */
ETag: components["headers"]["ETag"];
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["GroupConfigDocument"];
};
};
/** @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 match the current configuration revision, on arrival or at commit */
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"];
/** @description The change could not be queued (temporarily_unavailable); nothing is written. Retry after Retry-After. */
503: components["responses"]["Unavailable"];
};
};
selectGroupMember: {
parameters: {
query?: never;
header?: never;
path: {
/** @example group-proxy */
group_id: 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"];
413: components["responses"]["TooLarge"];
415: components["responses"]["UnsupportedMediaType"];
422: components["responses"]["Unprocessable"];
/** @description The runtime control owner is unavailable or did not confirm the transition (temporarily_unavailable). The selection may have changed; read the group back before retrying after Retry-After. */
503: components["responses"]["Unavailable"];
};
};
clearGroupOverride: {
parameters: {
query?: {
network?: "tcp" | "udp" | "both";
};
header?: never;
path: {
/** @example group-proxy */
group_id: 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"];
413: components["responses"]["TooLarge"];
/** @description The runtime control owner is unavailable or did not confirm the transition (temporarily_unavailable). The override may have been cleared; read the group back before retrying after Retry-After. */
503: components["responses"]["Unavailable"];
};
};
createProbe: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"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"];
/**
* @description Source MAC address, six colon-separated hex octets, matched case-insensitively; applied with type and src before limit. Totals and truncated describe only matching visible entries.
* @example aa:bb:cc:dd:ee:ff
*/
mac?: string;
/** @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"];
413: components["responses"]["TooLarge"];
};
};
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 Source MAC address, six colon-separated hex octets, matched case-insensitively; applied with type and src before limit. Totals and truncated describe only matching visible entries.
* @example aa:bb:cc:dd:ee:ff
*/
mac?: components["parameters"]["2"];
/** @description Explicitly permit an unfiltered close; does not override type, src, or mac. */
all?: boolean;
};
header?: never;
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), sent after every selected close has finished.
* error.details carries closed and skipped over the whole selected set;
* a connection whose close could not be confirmed counts in neither.
* Closed connections stay closed; a retry selects again from current live state.
*/
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?: never;
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"];
};
};
413: components["responses"]["TooLarge"];
/** @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 engine 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 from the previous page's next_cursor, bound to the walk that
* issued it (its snapshot or retained records, filters and limit). An unrecognised
* cursor returns 410 snapshot_expired; see
* [Page cursors](/v0.1.0/en/docs/errors.html#Page-cursors).
*/
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"]["SnapshotExpired"];
413: components["responses"]["TooLarge"];
/** @description Bounded recorder memory cannot admit a snapshot (snapshot_unavailable) */
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
410: components["responses"]["Gone"];
413: components["responses"]["TooLarge"];
};
};
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
/** @description 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. A kind outside EventKind or a repeated kind returns 400; an EventKind member the capabilities do not advertise returns 422.
* @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"];
413: components["responses"]["TooLarge"];
422: components["responses"]["Unprocessable"];
429: components["responses"]["RateLimited"];
/** @description max_clients streams are already open, or the event stream is unavailable (temporarily_unavailable) */
503: components["responses"]["Unavailable"];
};
};
streamLogs: {
parameters: {
query?: {
/**
* @description Minimum severity, ordered trace < debug < info < warn < error. Omit for all advertised levels. A value outside LogLevel returns 400 invalid_request; a LogLevel member not in resources.logs.levels returns 422 unsupported_value.
* @example info
*/
level?: components["schemas"]["LogLevel"];
/**
* @description Case-sensitive literal prefix of LogRecord.target; omit for all targets. Requires target in resources.logs.filters, otherwise 422 unsupported_value. Records whose target is null never match.
* @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"];
413: components["responses"]["TooLarge"];
/** @description level is a LogLevel member not in resources.logs.levels, or target is set while resources.logs.filters omits target (unsupported_value). */
422: {
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"];
};
};
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
};
};
patchRuntimeSettings: {
parameters: {
query?: never;
header?: never;
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 the schema does not define, or a value outside its schema range or advertised bounds */
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"];
/** @description geodata.download names a group_id that is not a current group */
409: {
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 A field not in resources.runtime_settings.fields, a level not in resources.logs.levels, or pinning a recorder that is not allowed */
422: {
headers: {
"Cache-Control": components["headers"]["NoStore"];
"X-Content-Type-Options": components["headers"]["NoSniff"];
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ErrorResponse"];
};
};
/** @description A setting could not be stored (temporarily_unavailable). Read the settings back before retrying after Retry-After. */
503: components["responses"]["Unavailable"];
};
};
queryDns: {
parameters: {
query?: {
/** @example full */
detail?: components["parameters"]["Detail"];
};
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": components["schemas"]["DnsQueryRequest"];
};
};
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"];
415: components["responses"]["UnsupportedMediaType"];
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 the previous page's next_cursor, bound to the walk that
* issued it (its snapshot or retained records, filters and limit). An unrecognised
* cursor returns 410 snapshot_expired; see
* [Page cursors](/v0.1.0/en/docs/errors.html#Page-cursors).
*/
cursor?: components["parameters"]["Cursor"];
};
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"];
410: components["responses"]["SnapshotExpired"];
413: components["responses"]["TooLarge"];
503: components["responses"]["SnapshotUnavailable"];
};
};
listDnsCache: {
parameters: {
query?: {
name?: string;
domain?: string;
type?: components["schemas"]["DnsRecordType"][];
include_expired?: boolean;
/** @example 100 */
limit?: components["parameters"]["Limit1000"];
/**
* @description Opaque cursor from the previous page's next_cursor, bound to the walk that
* issued it (its snapshot or retained records, filters and limit). An unrecognised
* cursor returns 410 snapshot_expired; see
* [Page cursors](/v0.1.0/en/docs/errors.html#Page-cursors).
*/
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"];
410: components["responses"]["SnapshotExpired"];
413: components["responses"]["TooLarge"];
503: components["responses"]["SnapshotUnavailable"];
};
};
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"];
413: components["responses"]["TooLarge"];
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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
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"];
413: components["responses"]["TooLarge"];
415: components["responses"]["UnsupportedMediaType"];
503: components["responses"]["Unavailable"];
};
};
listDnsRules: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Ordered request and response rules, each with its 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"]["DnsRuleList"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
/** @description 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"];
};
};
};
};
startReload: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"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"];
413: components["responses"]["TooLarge"];
415: components["responses"]["UnsupportedMediaType"];
429: components["responses"]["RateLimited"];
503: components["responses"]["Unavailable"];
};
};
startSuspend: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"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"];
413: components["responses"]["TooLarge"];
415: components["responses"]["UnsupportedMediaType"];
429: components["responses"]["RateLimited"];
503: components["responses"]["Unavailable"];
};
};
startResume: {
parameters: {
query?: never;
header?: {
/**
* @description Replay key for this operation, scoped to the running instance, caller,
* method and path. A byte-identical body returns the original response; a
* different body returns 409 idempotency_conflict. Only operations that list
* this header replay.
*/
"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"];
413: components["responses"]["TooLarge"];
415: components["responses"]["UnsupportedMediaType"];
429: components["responses"]["RateLimited"];
503: components["responses"]["Unavailable"];
};
};
getOperation: {
parameters: {
query?: never;
header?: never;
path: {
/** @example op-01HZX4K8W7 */
operation_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"];
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
403: components["responses"]["Forbidden"];
404: components["responses"]["NotFound"];
413: components["responses"]["TooLarge"];
429: components["responses"]["RateLimited"];
};
};
}