mindwire 0.1.33 → 0.1.36
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/binary-cache-CG52TXCZ.js +3 -0
- package/dist/{binary-cache-VM7VHCEU.js.map → binary-cache-CG52TXCZ.js.map} +1 -1
- package/dist/chunk-67BNDGRK.js +20 -0
- package/dist/chunk-67BNDGRK.js.map +1 -0
- package/dist/{chunk-3FR7BFAW.js → chunk-PFYKJ6LX.js} +56 -4
- package/dist/chunk-PFYKJ6LX.js.map +1 -0
- package/dist/{chunk-H2I3VRBS.js → chunk-RTGZDLSG.js} +529 -177
- package/dist/chunk-RTGZDLSG.js.map +1 -0
- package/dist/cli.js +763 -32
- package/dist/cli.js.map +1 -1
- package/dist/computer/connection-change.d.ts +13 -0
- package/dist/computer/connection-flow.d.ts +3 -3
- package/dist/computer/directory-http.d.ts +8 -0
- package/dist/computer/discovery.d.ts +13 -0
- package/dist/computer/lifecycle.d.ts +5 -1
- package/dist/computer/managed-relay.d.ts +27 -0
- package/dist/computer/oblien-auth.d.ts +25 -0
- package/dist/computer/provider-errors.d.ts +9 -0
- package/dist/computer/provider-info.d.ts +7 -0
- package/dist/computer/provider-setup.d.ts +20 -0
- package/dist/computer/relay-health.d.ts +22 -6
- package/dist/computer/relay.d.ts +11 -3
- package/dist/computer/setup-prompt.d.ts +9 -0
- package/dist/computer.d.ts +27 -1
- package/dist/connection-change-IBNL42BL.js +41 -0
- package/dist/connection-change-IBNL42BL.js.map +1 -0
- package/dist/{controller-QBC6L7AT.js → controller-2SJLZMJZ.js} +283 -290
- package/dist/controller-2SJLZMJZ.js.map +1 -0
- package/dist/{controller-handoff-NFDOLPJL.js → controller-handoff-RUUHODNC.js} +4 -4
- package/dist/{controller-handoff-NFDOLPJL.js.map → controller-handoff-RUUHODNC.js.map} +1 -1
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/binary-cache-VM7VHCEU.js +0 -4
- package/dist/chunk-3FR7BFAW.js.map +0 -1
- package/dist/chunk-H2I3VRBS.js.map +0 -1
- package/dist/controller-QBC6L7AT.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -940,8 +940,17 @@ var ComputerApi = class {
|
|
|
940
940
|
info() {
|
|
941
941
|
return this.client.http.request("GET", "/computer");
|
|
942
942
|
}
|
|
943
|
-
|
|
944
|
-
return this.client.http.request("
|
|
943
|
+
discovery() {
|
|
944
|
+
return this.client.http.request("GET", "/computer/discovery");
|
|
945
|
+
}
|
|
946
|
+
configureDiscovery(enabled, url) {
|
|
947
|
+
return this.client.http.request("PUT", "/computer/discovery", { body: { enabled, url } });
|
|
948
|
+
}
|
|
949
|
+
directoryEnrollment(url, challenge) {
|
|
950
|
+
return this.client.http.request("POST", "/computer/discovery/enrollment", { body: { url, challenge } });
|
|
951
|
+
}
|
|
952
|
+
setRoutes(routes, connection) {
|
|
953
|
+
return this.client.http.request("PUT", "/computer/routes", { body: { routes, connection } });
|
|
945
954
|
}
|
|
946
955
|
updateStatus() {
|
|
947
956
|
return this.client.http.request("GET", "/computer/update");
|
|
@@ -1002,7 +1011,7 @@ function computerPairingURI(invitation) {
|
|
|
1002
1011
|
}
|
|
1003
1012
|
|
|
1004
1013
|
// src/version.ts
|
|
1005
|
-
var SDK_VERSION = "0.1.
|
|
1014
|
+
var SDK_VERSION = "0.1.36" ;
|
|
1006
1015
|
function versionAtLeast(actual, desired) {
|
|
1007
1016
|
if (actual === desired) return true;
|
|
1008
1017
|
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|