mindwire 0.1.24 → 0.1.25

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/cli.js CHANGED
@@ -48,6 +48,17 @@ var ComputerApi = class {
48
48
  revoke(id) {
49
49
  return this.client.http.request("DELETE", `/computer/devices/${encodeURIComponent(id)}`);
50
50
  }
51
+ forwards() {
52
+ return this.client.http.request("GET", "/computer/forwards");
53
+ }
54
+ /** Authorize a loopback port for this paired device. Renew the same ID every 30s;
55
+ * grants expire after two minutes. Carry traffic using SSH direct-tcpip. */
56
+ forward(request) {
57
+ return this.client.http.request("POST", "/computer/forwards", { body: request });
58
+ }
59
+ closeForward(id) {
60
+ return this.client.http.request("DELETE", `/computer/forwards/${encodeURIComponent(id)}`);
61
+ }
51
62
  };
52
63
  function computerPairingURI(invitation) {
53
64
  const bytes = new TextEncoder().encode(JSON.stringify(invitation));
@@ -58,7 +69,7 @@ function computerPairingURI(invitation) {
58
69
  }
59
70
 
60
71
  // src/version.ts
61
- var SDK_VERSION = "0.1.24" ;
72
+ var SDK_VERSION = "0.1.25" ;
62
73
 
63
74
  // src/http.ts
64
75
  var DEFAULT_TIMEOUT_MS = 12e4;