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/index.js CHANGED
@@ -794,6 +794,17 @@ var ComputerApi = class {
794
794
  revoke(id) {
795
795
  return this.client.http.request("DELETE", `/computer/devices/${encodeURIComponent(id)}`);
796
796
  }
797
+ forwards() {
798
+ return this.client.http.request("GET", "/computer/forwards");
799
+ }
800
+ /** Authorize a loopback port for this paired device. Renew the same ID every 30s;
801
+ * grants expire after two minutes. Carry traffic using SSH direct-tcpip. */
802
+ forward(request) {
803
+ return this.client.http.request("POST", "/computer/forwards", { body: request });
804
+ }
805
+ closeForward(id) {
806
+ return this.client.http.request("DELETE", `/computer/forwards/${encodeURIComponent(id)}`);
807
+ }
797
808
  };
798
809
  function computerPairingURI(invitation) {
799
810
  const bytes = new TextEncoder().encode(JSON.stringify(invitation));
@@ -804,7 +815,7 @@ function computerPairingURI(invitation) {
804
815
  }
805
816
 
806
817
  // src/version.ts
807
- var SDK_VERSION = "0.1.24" ;
818
+ var SDK_VERSION = "0.1.25" ;
808
819
 
809
820
  // src/daemon-binary.ts
810
821
  function supported(platform, arch) {