@veilway/sdk 0.2.17-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.
@@ -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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veilway/sdk",
3
- "version": "0.2.17-alpha",
3
+ "version": "0.2.19-alpha",
4
4
  "description": "Typed client for the Veilway control API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {