cosmos-cloud-sdk 0.22.0 → 0.22.2

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
@@ -373,7 +373,7 @@ declare function createClient({ baseUrl, token }: {
373
373
  connect: (file: any) => Promise<unknown>;
374
374
  block: (nickname: any, devicename: any, block: any) => Promise<ApiResponse<any>>;
375
375
  ping: () => Promise<ApiResponse<any>>;
376
- create: (deviceName: any, isLighthouse: any, hostname: any, ipRange: any) => Promise<ApiResponse<any>>;
376
+ create: (deviceName: any, isLighthouse: any, hostname: any, ipRange: any, natsReplicas: any) => Promise<ApiResponse<any>>;
377
377
  pingDevice: (deviceId: any) => Promise<ApiResponse<any>>;
378
378
  tunnels: () => Promise<ApiResponse<any>>;
379
379
  editDevice: (device: any) => Promise<ApiResponse<any>>;
package/dist/index.d.ts CHANGED
@@ -373,7 +373,7 @@ declare function createClient({ baseUrl, token }: {
373
373
  connect: (file: any) => Promise<unknown>;
374
374
  block: (nickname: any, devicename: any, block: any) => Promise<ApiResponse<any>>;
375
375
  ping: () => Promise<ApiResponse<any>>;
376
- create: (deviceName: any, isLighthouse: any, hostname: any, ipRange: any) => Promise<ApiResponse<any>>;
376
+ create: (deviceName: any, isLighthouse: any, hostname: any, ipRange: any, natsReplicas: any) => Promise<ApiResponse<any>>;
377
377
  pingDevice: (deviceId: any) => Promise<ApiResponse<any>>;
378
378
  tunnels: () => Promise<ApiResponse<any>>;
379
379
  editDevice: (device: any) => Promise<ApiResponse<any>>;
package/dist/index.js CHANGED
@@ -860,7 +860,7 @@ function createConstellationAPI(apiFetch) {
860
860
  reader.readAsText(file);
861
861
  });
862
862
  }
863
- function create(deviceName, isLighthouse, hostname, ipRange) {
863
+ function create(deviceName, isLighthouse, hostname, ipRange, natsReplicas) {
864
864
  return wrap(apiFetch(`/cosmos/api/constellation/create`, {
865
865
  method: "POST",
866
866
  headers: {
@@ -870,7 +870,8 @@ function createConstellationAPI(apiFetch) {
870
870
  deviceName,
871
871
  isLighthouse,
872
872
  hostname,
873
- ipRange
873
+ ipRange,
874
+ natsReplicas
874
875
  })
875
876
  }));
876
877
  }
package/dist/index.mjs CHANGED
@@ -834,7 +834,7 @@ function createConstellationAPI(apiFetch) {
834
834
  reader.readAsText(file);
835
835
  });
836
836
  }
837
- function create(deviceName, isLighthouse, hostname, ipRange) {
837
+ function create(deviceName, isLighthouse, hostname, ipRange, natsReplicas) {
838
838
  return wrap(apiFetch(`/cosmos/api/constellation/create`, {
839
839
  method: "POST",
840
840
  headers: {
@@ -844,7 +844,8 @@ function createConstellationAPI(apiFetch) {
844
844
  deviceName,
845
845
  isLighthouse,
846
846
  hostname,
847
- ipRange
847
+ ipRange,
848
+ natsReplicas
848
849
  })
849
850
  }));
850
851
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmos-cloud-sdk",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "JavaScript/TypeScript SDK for the Cosmos Server API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",