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