@veilway/sdk 0.1.0-alpha → 0.2.6-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.
@@ -804,6 +804,8 @@ export interface components {
804
804
  */
805
805
  state_write_failures: number;
806
806
  stream: components["schemas"]["Stream"];
807
+ /** @description Every tunnel that runs, in the order of the config. A tunnel that a reload changed starts counting over. */
808
+ tunnels: components["schemas"]["TunnelStats"][];
807
809
  udp_obfs: components["schemas"]["UdpObfs"];
808
810
  users: components["schemas"]["Rated"][];
809
811
  /**
@@ -1012,6 +1014,28 @@ export interface components {
1012
1014
  * @description Established sessions right now.
1013
1015
  */
1014
1016
  sessions: number;
1017
+ /**
1018
+ * Format: uint
1019
+ * @description `fronted-shaped` sessions that are established right now (`fronted` counts them as well), and event streams that are live right now.
1020
+ */
1021
+ shaped: number;
1022
+ /** Format: uint64 */
1023
+ shaped_beats: number;
1024
+ /** Format: uint64 */
1025
+ shaped_events: number;
1026
+ /** Format: uint64 */
1027
+ shaped_late: number;
1028
+ /** Format: uint64 */
1029
+ shaped_limited: number;
1030
+ /**
1031
+ * Format: uint64
1032
+ * @description `fronted-shaped` requests that were accepted, repeats of one answered with its stored answer, repeats answered with the late answer of 80 bytes, event streams that were started, events and heartbeats written to them, and stream requests that their session's allowance of 4 at once and 1 a second had no room for.
1033
+ */
1034
+ shaped_polls: number;
1035
+ /** Format: uint64 */
1036
+ shaped_repeats: number;
1037
+ /** Format: uint64 */
1038
+ shaped_streams: number;
1015
1039
  /** Format: uint64 */
1016
1040
  stranger_body: number;
1017
1041
  /** Format: uint64 */
@@ -1038,6 +1062,8 @@ export interface components {
1038
1062
  stranger_syntax: number;
1039
1063
  /** Format: uint64 */
1040
1064
  stranger_unestablished: number;
1065
+ /** Format: uint */
1066
+ streams: number;
1041
1067
  /** Format: uint64 */
1042
1068
  tunnel: number;
1043
1069
  /**
@@ -1068,7 +1094,65 @@ export interface components {
1068
1094
  * @description The transport a device came over, as the config names it: `ws` is the relay of a `wireguard` inbound, and on a `veilway` inbound the native WebSocket session behind the operator's web server.
1069
1095
  * @enum {string}
1070
1096
  */
1071
- Transport: "udp" | "ws" | "udp-obfs" | "tls" | "fronted";
1097
+ Transport: "udp" | "ws" | "udp-obfs" | "tls" | "fronted" | "fronted-shaped" | "faketls";
1098
+ /** @description What one tunnel counted since it started. Everything but `open` only grows. */
1099
+ TunnelStats: {
1100
+ /**
1101
+ * Format: uint64
1102
+ * @description TCP connections the far side did not open within 10 seconds or refused.
1103
+ */
1104
+ connect_failed: number;
1105
+ /** Format: uint64 */
1106
+ down_bytes: number;
1107
+ /** Format: uint64 */
1108
+ down_packets: number;
1109
+ /**
1110
+ * Format: uint64
1111
+ * @description Packets from the link that a full queue or an unknown session could not take, and datagrams that did not fit the link.
1112
+ */
1113
+ dropped: number;
1114
+ /** Format: uint64 */
1115
+ idled: number;
1116
+ /** @description The tag of the tunnel. */
1117
+ name: string;
1118
+ /** Format: uint */
1119
+ open: number;
1120
+ /**
1121
+ * Format: uint64
1122
+ * @description TCP connections or UDP sessions the tunnel took, and those open right now.
1123
+ */
1124
+ opened: number;
1125
+ /** Format: uint64 */
1126
+ refused_client: number;
1127
+ /** Format: uint64 */
1128
+ refused_down: number;
1129
+ /** Format: uint64 */
1130
+ refused_full: number;
1131
+ /** Format: uint64 */
1132
+ refused_limit: number;
1133
+ /** Format: uint64 */
1134
+ refused_rate: number;
1135
+ /**
1136
+ * Format: uint64
1137
+ * @description Connections refused (TCP) and datagrams dropped (UDP): from an address in none of `sources`, past `max_connections`, past the 16 of one source, past 8 new ones a second for one source, while the `chain` exit was down, and for want of a translated port.
1138
+ */
1139
+ refused_sources: number;
1140
+ /**
1141
+ * Format: uint64
1142
+ * @description TCP connections that a reset or the link going down ended, and those closed after an hour with no byte.
1143
+ */
1144
+ reset: number;
1145
+ /**
1146
+ * Format: uint64
1147
+ * @description Bytes of the clients' own data towards the far side (up) and back (down).
1148
+ */
1149
+ up_bytes: number;
1150
+ /**
1151
+ * Format: uint64
1152
+ * @description Inner IP packets sent into the link and taken out of it for the tunnel.
1153
+ */
1154
+ up_packets: number;
1155
+ };
1072
1156
  /** @description What the `udp-obfs` transports did since start, and what they hold right now. Everything but `pending`, `sessions` and `tags` only grows. A datagram that is dropped gets no answer whatever the reason, and no reason holds an address, a tag or a key. */
1073
1157
  UdpObfs: {
1074
1158
  /** Format: uint64 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veilway/sdk",
3
- "version": "0.1.0-alpha",
3
+ "version": "0.2.6-alpha",
4
4
  "description": "Typed client for the Veilway control API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {