cosmos-cloud-sdk 0.22.34 → 0.22.35

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.d.mts CHANGED
@@ -372,6 +372,7 @@ declare function createClient({ baseUrl, token }: {
372
372
  connect: (file: any) => Promise<unknown>;
373
373
  block: (nickname: any, devicename: any, block: any) => Promise<ApiResponse<any>>;
374
374
  ping: () => Promise<ApiResponse<any>>;
375
+ natsStatus: () => Promise<ApiResponse<any>>;
375
376
  create: (deviceName: any, isLighthouse: any, hostname: any, ipRange: any, natsReplicas: any) => Promise<ApiResponse<any>>;
376
377
  pingDevice: (deviceId: any) => Promise<ApiResponse<any>>;
377
378
  tunnels: () => Promise<ApiResponse<any>>;
package/dist/index.d.ts CHANGED
@@ -372,6 +372,7 @@ declare function createClient({ baseUrl, token }: {
372
372
  connect: (file: any) => Promise<unknown>;
373
373
  block: (nickname: any, devicename: any, block: any) => Promise<ApiResponse<any>>;
374
374
  ping: () => Promise<ApiResponse<any>>;
375
+ natsStatus: () => Promise<ApiResponse<any>>;
375
376
  create: (deviceName: any, isLighthouse: any, hostname: any, ipRange: any, natsReplicas: any) => Promise<ApiResponse<any>>;
376
377
  pingDevice: (deviceId: any) => Promise<ApiResponse<any>>;
377
378
  tunnels: () => Promise<ApiResponse<any>>;
package/dist/index.js CHANGED
@@ -772,6 +772,14 @@ function createConstellationAPI(apiFetch) {
772
772
  }
773
773
  }));
774
774
  }
775
+ function natsStatus() {
776
+ return wrap(apiFetch("/cosmos/api/constellation/nats-status", {
777
+ method: "GET",
778
+ headers: {
779
+ "Content-Type": "application/json"
780
+ }
781
+ }));
782
+ }
775
783
  function getNextIP() {
776
784
  return wrap(apiFetch("/cosmos/api/constellation/get-next-ip", {
777
785
  method: "GET",
@@ -942,6 +950,7 @@ function createConstellationAPI(apiFetch) {
942
950
  connect,
943
951
  block,
944
952
  ping,
953
+ natsStatus,
945
954
  create,
946
955
  pingDevice,
947
956
  tunnels,
package/dist/index.mjs CHANGED
@@ -746,6 +746,14 @@ function createConstellationAPI(apiFetch) {
746
746
  }
747
747
  }));
748
748
  }
749
+ function natsStatus() {
750
+ return wrap(apiFetch("/cosmos/api/constellation/nats-status", {
751
+ method: "GET",
752
+ headers: {
753
+ "Content-Type": "application/json"
754
+ }
755
+ }));
756
+ }
749
757
  function getNextIP() {
750
758
  return wrap(apiFetch("/cosmos/api/constellation/get-next-ip", {
751
759
  method: "GET",
@@ -916,6 +924,7 @@ function createConstellationAPI(apiFetch) {
916
924
  connect,
917
925
  block,
918
926
  ping,
927
+ natsStatus,
919
928
  create,
920
929
  pingDevice,
921
930
  tunnels,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmos-cloud-sdk",
3
- "version": "0.22.34",
3
+ "version": "0.22.35",
4
4
  "description": "JavaScript/TypeScript SDK for the Cosmos Server API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",