@veilway/sdk 0.2.10-alpha → 0.2.12-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.
@@ -26,6 +26,7 @@ export interface EventData {
26
26
  user_restored: Schemas["UserRestored"];
27
27
  usage_reset: Schemas["UsageReset"];
28
28
  exit_udp_changed: Schemas["ExitUdpChanged"];
29
+ exit_working_changed: Schemas["ExitWorkingChanged"];
29
30
  stats: Schemas["Stats"];
30
31
  lagged: Schemas["Lagged"];
31
32
  }
package/dist/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /** The most one line of the event stream may hold before the client gives up on it. */
2
2
  const MAX_LINE = 1 << 20;
3
- const EVENTS = new Set(["config_applied", "config_refused", "user_cut_off", "user_restored", "usage_reset", "exit_udp_changed", "stats", "lagged"]);
3
+ const EVENTS = new Set(["config_applied", "config_refused", "user_cut_off", "user_restored", "usage_reset", "exit_udp_changed", "exit_working_changed", "stats", "lagged"]);
4
4
  /** Every answer that is not a success, and an answer the client could not read. */
5
5
  export class VeilwayError extends Error {
6
6
  status;
@@ -478,6 +478,11 @@ export interface components {
478
478
  exit: string;
479
479
  udp: boolean;
480
480
  };
481
+ /** @description The data of an `exit_working_changed` event: the proxy of an exit stopped letting the node in (`working` false), or lets it in again. Devices without a choice of exit leave through another exit meanwhile. */
482
+ ExitWorkingChanged: {
483
+ exit: string;
484
+ working: boolean;
485
+ };
481
486
  Exits: {
482
487
  exits: components["schemas"]["Exit"][];
483
488
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veilway/sdk",
3
- "version": "0.2.10-alpha",
3
+ "version": "0.2.12-alpha",
4
4
  "description": "Typed client for the Veilway control API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {