@veilway/sdk 0.2.16-alpha → 0.2.19-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/schema.d.ts +66 -1
- package/package.json +1 -1
package/dist/src/schema.d.ts
CHANGED
|
@@ -523,7 +523,7 @@ export interface components {
|
|
|
523
523
|
/** Format: uint64 */
|
|
524
524
|
throttled: number;
|
|
525
525
|
};
|
|
526
|
-
/** @description A config version 1 document, see schema/config.v1.json. In an answer every secret (private_key, preshared_key, username, password) holds the marker "<redacted>", and every entry of transport_secrets holds a marker that names it, "<redacted:" with eight hex digits and ">". In a request a marker stands for the value the same object has in the running config: the inbound with that tag, the device with that public_key, the socks5 outbound with that tag and that server. A marker in transport_secrets stands for the secret of that device which it names, wherever it is in the list: an entry that is left out is removed, and a marker that names no secret of the device is an error. An outbound whose server is new or has changed needs its username and password written out. */
|
|
526
|
+
/** @description A config version 1 document, see schema/config.v1.json. In an answer every secret (private_key, preshared_key, username, password, proxy_password) holds the marker "<redacted>", and every entry of transport_secrets holds a marker that names it, "<redacted:" with eight hex digits and ">". In a request a marker stands for the value the same object has in the running config: the inbound with that tag, the device with that public_key, the socks5 outbound with that tag and that server, the user with that name (proxy_password). A marker in transport_secrets stands for the secret of that device which it names, wherever it is in the list: an entry that is left out is removed, and a marker that names no secret of the device is an error. An outbound whose server is new or has changed needs its username and password written out. */
|
|
527
527
|
Document: Record<string, never>;
|
|
528
528
|
/** @description The one shape of every answer that is not a success. */
|
|
529
529
|
ErrorBody: {
|
|
@@ -552,6 +552,10 @@ export interface components {
|
|
|
552
552
|
link_up: boolean | null;
|
|
553
553
|
/** @description The node links of a chain backend, by tag, which `/v1/links` reports on. Empty for every other backend. */
|
|
554
554
|
links: string[];
|
|
555
|
+
/** @description The `load` setting of the exit in the config. Null when the exit reports no load to apps. */
|
|
556
|
+
load: components["schemas"]["Load"] | null;
|
|
557
|
+
/** @description The level apps are told: "low", "medium" or "high". Null while the exit has no `load` setting and until the node has looked twice, which it does every 10 seconds. */
|
|
558
|
+
load_level: string | null;
|
|
555
559
|
/**
|
|
556
560
|
* Format: int64
|
|
557
561
|
* @description Unix seconds when `latency_ms` was measured.
|
|
@@ -609,6 +613,8 @@ export interface components {
|
|
|
609
613
|
};
|
|
610
614
|
/** @description An inbound with what a client profile takes from it. No private key. */
|
|
611
615
|
InboundInfo: {
|
|
616
|
+
/** @description False for an inbound the config switched off: it does not listen and takes no device. */
|
|
617
|
+
enabled: boolean;
|
|
612
618
|
kind: components["schemas"]["InboundKind"];
|
|
613
619
|
/** @description The WireGuard public key of the inbound. */
|
|
614
620
|
public_key: components["schemas"]["Key"];
|
|
@@ -621,6 +627,8 @@ export interface components {
|
|
|
621
627
|
InboundKind: "wireguard" | "veilway";
|
|
622
628
|
/** @description One transport of an inbound, with the rating a profile of it gets. */
|
|
623
629
|
InboundTransport: {
|
|
630
|
+
/** @description False for a transport the config switched off: it does not listen. */
|
|
631
|
+
enabled: boolean;
|
|
624
632
|
rating: components["schemas"]["Rating"];
|
|
625
633
|
transport: components["schemas"]["Transport"];
|
|
626
634
|
};
|
|
@@ -691,6 +699,19 @@ export interface components {
|
|
|
691
699
|
Links: {
|
|
692
700
|
links: components["schemas"]["Link"][];
|
|
693
701
|
};
|
|
702
|
+
/** @description Apps show a user how busy an exit is in three coarse levels: below `busy` is low, from `busy` is medium, from `very_busy` is high. The node looks every 10 seconds and changes the level once the new one held for two looks in a row. */
|
|
703
|
+
Load: {
|
|
704
|
+
/** Format: uint32 */
|
|
705
|
+
busy: number;
|
|
706
|
+
by: components["schemas"]["LoadBy"];
|
|
707
|
+
/**
|
|
708
|
+
* Format: uint32
|
|
709
|
+
* @description Greater than `busy`.
|
|
710
|
+
*/
|
|
711
|
+
very_busy: number;
|
|
712
|
+
};
|
|
713
|
+
/** @description What `Load::by` measures. */
|
|
714
|
+
LoadBy: "flows" | "mbps";
|
|
694
715
|
/**
|
|
695
716
|
* @description The counters of one outbound: those of the exits that leave through it, added up, with what the node knows of its proxy.
|
|
696
717
|
* The node learns whether a proxy relays UDP once for each exit, from the flows of that exit, so two exits through one proxy can know different things for a while. This is what they know together.
|
|
@@ -698,6 +719,8 @@ export interface components {
|
|
|
698
719
|
OutboundStats: {
|
|
699
720
|
/** Format: uint64 */
|
|
700
721
|
down_bytes_per_sec: number;
|
|
722
|
+
/** @description Why an `xray` outbound cannot carry a flow now, in words: the add-on is not installed or not running, Xray ended and starts again, or the name of its server does not resolve to an address the node may dial. Every exit through it is down with the same reason. Null while it carries, and for an outbound that is not `xray`. */
|
|
723
|
+
down_reason: string | null;
|
|
701
724
|
/**
|
|
702
725
|
* Format: uint64
|
|
703
726
|
* @description How long the proxy took to answer the greeting of the last flow that dialled it, in milliseconds. Null for a direct outbound, and until a flow has used the proxy. A reload starts it over.
|
|
@@ -735,6 +758,46 @@ export interface components {
|
|
|
735
758
|
message: string;
|
|
736
759
|
path: string;
|
|
737
760
|
};
|
|
761
|
+
/** @description What one proxy inbound counted since it started. Everything but `open` only grows. */
|
|
762
|
+
ProxyStats: {
|
|
763
|
+
/** Format: uint64 */
|
|
764
|
+
down_bytes: number;
|
|
765
|
+
/** @description The tag of the inbound. */
|
|
766
|
+
name: string;
|
|
767
|
+
/** Format: uint */
|
|
768
|
+
open: number;
|
|
769
|
+
/**
|
|
770
|
+
* Format: uint64
|
|
771
|
+
* @description Connections the inbound took, and those open right now.
|
|
772
|
+
*/
|
|
773
|
+
opened: number;
|
|
774
|
+
/** Format: uint64 */
|
|
775
|
+
refused_blocked: number;
|
|
776
|
+
/** Format: uint64 */
|
|
777
|
+
refused_busy: number;
|
|
778
|
+
/**
|
|
779
|
+
* Format: uint64
|
|
780
|
+
* @description Connections turned away at the inbound's `connections`, at a source's `per_source` and at `handshakes`, and logins refused unheard because a source had failed too many to that name.
|
|
781
|
+
*/
|
|
782
|
+
refused_limit: number;
|
|
783
|
+
/**
|
|
784
|
+
* Format: uint64
|
|
785
|
+
* @description Logins that were refused: no such user, a wrong password, a user the inbound does not admit.
|
|
786
|
+
*/
|
|
787
|
+
refused_logins: number;
|
|
788
|
+
/** Format: uint64 */
|
|
789
|
+
refused_source: number;
|
|
790
|
+
/**
|
|
791
|
+
* Format: uint64
|
|
792
|
+
* @description UDP datagrams dropped because they did not come from the address and port the client named for its association, which is what a client behind a NAT that rewrites ports is refused for.
|
|
793
|
+
*/
|
|
794
|
+
refused_udp_source: number;
|
|
795
|
+
/**
|
|
796
|
+
* Format: uint64
|
|
797
|
+
* @description Bytes the clients sent to their destinations and got back.
|
|
798
|
+
*/
|
|
799
|
+
up_bytes: number;
|
|
800
|
+
};
|
|
738
801
|
/** @enum {string} */
|
|
739
802
|
QuotaPeriod: "daily" | "weekly" | "monthly";
|
|
740
803
|
/** @description The counters of one user, inbound or exit, with how fast they grew over the last seconds. */
|
|
@@ -898,6 +961,8 @@ export interface components {
|
|
|
898
961
|
inbounds: components["schemas"]["Rated"][];
|
|
899
962
|
/** @description Every outbound of the running config, in its order. An exit with an `l3` or `block` backend has no outbound and is in none of them. */
|
|
900
963
|
outbounds: components["schemas"]["OutboundStats"][];
|
|
964
|
+
/** @description Every proxy inbound (`socks5`, `http`, `mixed`) that runs, in the order of the config. An inbound that a reload changed starts counting over. Its bytes are in `inbounds` as well. */
|
|
965
|
+
proxies: components["schemas"]["ProxyStats"][];
|
|
901
966
|
/** @description The replay memory of the obfuscated transports. Null for a node that never ran one, which keeps no replay memory. */
|
|
902
967
|
replay: components["schemas"]["Replay"] | null;
|
|
903
968
|
/**
|