@veilway/sdk 0.2.16-alpha → 0.2.17-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.
@@ -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: {
@@ -735,6 +735,46 @@ export interface components {
735
735
  message: string;
736
736
  path: string;
737
737
  };
738
+ /** @description What one proxy inbound counted since it started. Everything but `open` only grows. */
739
+ ProxyStats: {
740
+ /** Format: uint64 */
741
+ down_bytes: number;
742
+ /** @description The tag of the inbound. */
743
+ name: string;
744
+ /** Format: uint */
745
+ open: number;
746
+ /**
747
+ * Format: uint64
748
+ * @description Connections the inbound took, and those open right now.
749
+ */
750
+ opened: number;
751
+ /** Format: uint64 */
752
+ refused_blocked: number;
753
+ /** Format: uint64 */
754
+ refused_busy: number;
755
+ /**
756
+ * Format: uint64
757
+ * @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.
758
+ */
759
+ refused_limit: number;
760
+ /**
761
+ * Format: uint64
762
+ * @description Logins that were refused: no such user, a wrong password, a user the inbound does not admit.
763
+ */
764
+ refused_logins: number;
765
+ /** Format: uint64 */
766
+ refused_source: number;
767
+ /**
768
+ * Format: uint64
769
+ * @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.
770
+ */
771
+ refused_udp_source: number;
772
+ /**
773
+ * Format: uint64
774
+ * @description Bytes the clients sent to their destinations and got back.
775
+ */
776
+ up_bytes: number;
777
+ };
738
778
  /** @enum {string} */
739
779
  QuotaPeriod: "daily" | "weekly" | "monthly";
740
780
  /** @description The counters of one user, inbound or exit, with how fast they grew over the last seconds. */
@@ -898,6 +938,8 @@ export interface components {
898
938
  inbounds: components["schemas"]["Rated"][];
899
939
  /** @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
940
  outbounds: components["schemas"]["OutboundStats"][];
941
+ /** @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. */
942
+ proxies: components["schemas"]["ProxyStats"][];
901
943
  /** @description The replay memory of the obfuscated transports. Null for a node that never ran one, which keeps no replay memory. */
902
944
  replay: components["schemas"]["Replay"] | null;
903
945
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veilway/sdk",
3
- "version": "0.2.16-alpha",
3
+ "version": "0.2.17-alpha",
4
4
  "description": "Typed client for the Veilway control API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {