homey-api 3.6.7 → 3.6.8

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.
@@ -4555,6 +4555,9 @@
4555
4555
  "number",
4556
4556
  "string"
4557
4557
  ]
4558
+ },
4559
+ "transparent": {
4560
+ "type": "boolean"
4558
4561
  }
4559
4562
  },
4560
4563
  "x-realtime-bindings": {
@@ -4564,9 +4567,106 @@
4564
4567
  "delete": "appwidget.delete"
4565
4568
  }
4566
4569
  }
4570
+ },
4571
+ "WidgetStore": {
4572
+ "id": "widgetstore",
4573
+ "type": "id",
4574
+ "schema": {
4575
+ "type": "object",
4576
+ "additionalProperties": false,
4577
+ "properties": {
4578
+ "id": {
4579
+ "type": "string",
4580
+ "format": "uuid"
4581
+ },
4582
+ "ownerUri": {
4583
+ "type": "string"
4584
+ },
4585
+ "state": {
4586
+ "type": "object"
4587
+ }
4588
+ },
4589
+ "x-realtime-bindings": {
4590
+ "read": "getWidgetStore",
4591
+ "create": "widgetstore.create",
4592
+ "update": "widgetstore.update",
4593
+ "delete": "widgetstore.delete"
4594
+ }
4595
+ }
4567
4596
  }
4568
4597
  },
4569
4598
  "operations": {
4599
+ "setWidgetStoreState": {
4600
+ "method": "POST",
4601
+ "path": "/widgetstore/:id/state",
4602
+ "private": false,
4603
+ "scopes": [
4604
+ "homey.dashboard.readonly"
4605
+ ],
4606
+ "parameters": {
4607
+ "id": {
4608
+ "in": "path",
4609
+ "required": true,
4610
+ "type": "string"
4611
+ },
4612
+ "replace": {
4613
+ "in": "body",
4614
+ "type": "boolean"
4615
+ },
4616
+ "state": {
4617
+ "in": "body",
4618
+ "type": "object",
4619
+ "required": true
4620
+ }
4621
+ }
4622
+ },
4623
+ "getWidgetStoreState": {
4624
+ "method": "GET",
4625
+ "path": "/widgetstore/:id/state",
4626
+ "private": false,
4627
+ "scopes": [
4628
+ "homey.dashboard.readonly"
4629
+ ],
4630
+ "parameters": {
4631
+ "id": {
4632
+ "in": "path",
4633
+ "required": true,
4634
+ "type": "string"
4635
+ }
4636
+ }
4637
+ },
4638
+ "getWidgetStore": {
4639
+ "method": "GET",
4640
+ "path": "/widgetstore/:id",
4641
+ "private": false,
4642
+ "scopes": [
4643
+ "homey.dashboard.readonly"
4644
+ ],
4645
+ "crud": {
4646
+ "type": "getOne",
4647
+ "item": "WidgetStore"
4648
+ },
4649
+ "parameters": {
4650
+ "id": {
4651
+ "in": "path",
4652
+ "required": true,
4653
+ "type": "string"
4654
+ }
4655
+ }
4656
+ },
4657
+ "getWidgetStores": {
4658
+ "method": "GET",
4659
+ "path": "/widgetstore",
4660
+ "private": false,
4661
+ "scopes": [
4662
+ "homey.dashboard.readonly"
4663
+ ],
4664
+ "crud": {
4665
+ "type": "getAll",
4666
+ "item": "WidgetStore"
4667
+ },
4668
+ "parameters": {}
4669
+ },
4570
4670
  "getAppWidgetAutocomplete": {
4571
4671
  "method": "GET",
4572
4672
  "path": "/appwidget/:id/autocomplete",
@@ -816,6 +816,17 @@
816
816
  }
817
817
  }
818
818
  }
819
+ },
820
+ "WidgetStore": {
821
+ "id": "widgetstore",
822
+ "schema": {
823
+ "type": "object",
824
+ "properties": {
825
+ "id": {
826
+ "type": "string"
827
+ }
828
+ }
829
+ }
819
830
  }
820
831
  },
821
832
  "operations": {
@@ -955,11 +966,32 @@
955
966
  },
956
967
  "parameters": {}
957
968
  },
969
+ "getAppWidget": {
970
+ "method": "get",
971
+ "path": "/appwidget/:id",
972
+ "private": false,
973
+ "scopes": [
974
+ "homey.dashboard.readonly"
975
+ ],
976
+ "crud": {
977
+ "type": "getOne",
978
+ "item": "AppWidget"
979
+ },
980
+ "parameters": {
981
+ "id": {
982
+ "in": "path",
983
+ "type": "string",
984
+ "required": true
985
+ }
986
+ }
987
+ },
958
988
  "getAppWidgetAutocomplete": {
959
989
  "method": "get",
960
990
  "path": "/appwidget/:id/autocomplete",
961
991
  "private": false,
962
- "scopes": [],
992
+ "scopes": [
993
+ "homey.dashboard.readonly"
994
+ ],
963
995
  "parameters": {
964
996
  "id": {
965
997
  "in": "path",
@@ -981,6 +1013,77 @@
981
1013
  "type": "object"
982
1014
  }
983
1015
  }
1016
+ },
1017
+ "getWidgetStores": {
1018
+ "method": "get",
1019
+ "path": "/widgetstore",
1020
+ "private": false,
1021
+ "scopes": [
1022
+ "homey.dashboard.readonly"
1023
+ ],
1024
+ "crud": {
1025
+ "type": "getAll",
1026
+ "item": "WidgetStore"
1027
+ },
1028
+ "parameters": {}
1029
+ },
1030
+ "getWidgetStore": {
1031
+ "method": "get",
1032
+ "path": "/widgetstore/:id",
1033
+ "private": false,
1034
+ "scopes": [
1035
+ "homey.dashboard.readonly"
1036
+ ],
1037
+ "crud": {
1038
+ "type": "getOne",
1039
+ "item": "WidgetStore"
1040
+ },
1041
+ "parameters": {
1042
+ "id": {
1043
+ "in": "path",
1044
+ "type": "string",
1045
+ "required": true
1046
+ }
1047
+ }
1048
+ },
1049
+ "getWidgetStoreState": {
1050
+ "method": "get",
1051
+ "path": "/widgetstore/:id/state",
1052
+ "private": false,
1053
+ "scopes": [
1054
+ "homey.dashboard.readonly"
1055
+ ],
1056
+ "parameters": {
1057
+ "id": {
1058
+ "in": "path",
1059
+ "type": "string",
1060
+ "required": true
1061
+ }
1062
+ }
1063
+ },
1064
+ "setWidgetStoreState": {
1065
+ "method": "post",
1066
+ "path": "/widgetstore/:id/state",
1067
+ "private": false,
1068
+ "scopes": [
1069
+ "homey.dashboard.readonly"
1070
+ ],
1071
+ "parameters": {
1072
+ "id": {
1073
+ "in": "path",
1074
+ "type": "string",
1075
+ "required": true
1076
+ },
1077
+ "state": {
1078
+ "in": "body",
1079
+ "type": "object",
1080
+ "required": true
1081
+ },
1082
+ "replace": {
1083
+ "in": "body",
1084
+ "type": "boolean"
1085
+ }
1086
+ }
984
1087
  }
985
1088
  }
986
1089
  },
@@ -3278,6 +3381,29 @@
3278
3381
  "required": true
3279
3382
  }
3280
3383
  }
3384
+ },
3385
+ "openCommissioningWindow": {
3386
+ "method": "post",
3387
+ "path": "/open-commissioning-window",
3388
+ "private": true,
3389
+ "scopes": [
3390
+ "homey.system"
3391
+ ],
3392
+ "parameters": {
3393
+ "deviceId": {
3394
+ "in": "body",
3395
+ "type": "string",
3396
+ "required": true
3397
+ },
3398
+ "timeout": {
3399
+ "in": "body",
3400
+ "type": "number"
3401
+ },
3402
+ "revokeExisting": {
3403
+ "in": "body",
3404
+ "type": "boolean"
3405
+ }
3406
+ }
3281
3407
  }
3282
3408
  }
3283
3409
  },
@@ -4237,19 +4363,14 @@
4237
4363
  ],
4238
4364
  "parameters": {}
4239
4365
  },
4240
- "reset": {
4366
+ "apiReset": {
4241
4367
  "method": "get",
4242
4368
  "path": "/reset",
4243
4369
  "private": true,
4244
4370
  "scopes": [
4245
4371
  "homey.system"
4246
4372
  ],
4247
- "parameters": {
4248
- "target": {
4249
- "in": "query",
4250
- "type": "string"
4251
- }
4252
- }
4373
+ "parameters": {}
4253
4374
  },
4254
4375
  "executeCommand": {
4255
4376
  "method": "post",
@@ -4263,6 +4384,18 @@
4263
4384
  "in": "body",
4264
4385
  "type": "string",
4265
4386
  "required": true
4387
+ },
4388
+ "timeout": {
4389
+ "in": "body",
4390
+ "type": "number"
4391
+ },
4392
+ "flush": {
4393
+ "in": "body",
4394
+ "type": "boolean"
4395
+ },
4396
+ "preventThreadSetup": {
4397
+ "in": "body",
4398
+ "type": "boolean"
4266
4399
  }
4267
4400
  }
4268
4401
  },
@@ -145,6 +145,8 @@ export namespace HomeyAPIV2.ManagerDashboards {
145
145
  settings: object;
146
146
 
147
147
  height: number | string;
148
+
149
+ transparent: boolean;
148
150
  }
149
151
 
150
152
  export class Dashboard extends HomeyAPIV3Local.ManagerDashboards.Dashboard {
@@ -154,6 +156,15 @@ export namespace HomeyAPIV2.ManagerDashboards {
154
156
 
155
157
  columns: Array<any>;
156
158
  }
159
+
160
+ export class WidgetStore extends HomeyAPIV3Local.ManagerDashboards
161
+ .WidgetStore {
162
+ id: string;
163
+
164
+ ownerUri: string;
165
+
166
+ state: object;
167
+ }
157
168
  }
158
169
 
159
170
  export namespace HomeyAPIV2.ManagerDevices {
@@ -1141,6 +1152,10 @@ export namespace HomeyAPIV3Local.ManagerDashboards {
1141
1152
 
1142
1153
  columns: Array<any>;
1143
1154
  }
1155
+
1156
+ export class WidgetStore {
1157
+ id: string;
1158
+ }
1144
1159
  }
1145
1160
 
1146
1161
  export namespace HomeyAPIV3Local.ManagerDevices {
@@ -9948,6 +9963,10 @@ export namespace HomeyAPIV3Local {
9948
9963
  [key: string]: HomeyAPIV3Local.ManagerDashboards.AppWidget;
9949
9964
  }>;
9950
9965
 
9966
+ getAppWidget(opts: {
9967
+ id: string;
9968
+ }): Promise<HomeyAPIV3Local.ManagerDashboards.AppWidget>;
9969
+
9951
9970
  getAppWidgetAutocomplete(opts: {
9952
9971
  id: string;
9953
9972
 
@@ -9957,6 +9976,24 @@ export namespace HomeyAPIV3Local {
9957
9976
 
9958
9977
  settings?: object;
9959
9978
  }): Promise<any>;
9979
+
9980
+ getWidgetStores(): Promise<{
9981
+ [key: string]: HomeyAPIV3Local.ManagerDashboards.WidgetStore;
9982
+ }>;
9983
+
9984
+ getWidgetStore(opts: {
9985
+ id: string;
9986
+ }): Promise<HomeyAPIV3Local.ManagerDashboards.WidgetStore>;
9987
+
9988
+ getWidgetStoreState(opts: { id: string }): Promise<any>;
9989
+
9990
+ setWidgetStoreState(opts: {
9991
+ id: string;
9992
+
9993
+ state: object;
9994
+
9995
+ replace?: boolean;
9996
+ }): Promise<any>;
9960
9997
  }
9961
9998
 
9962
9999
  export class ManagerDatabase extends HomeyAPIV3.ManagerDatabase {
@@ -10537,6 +10574,14 @@ export namespace HomeyAPIV3Local {
10537
10574
  makeDeviceApi(opts: { nodeId: string }): Promise<any>;
10538
10575
 
10539
10576
  readBasicInformation(opts: { nodeId: string }): Promise<any>;
10577
+
10578
+ openCommissioningWindow(opts: {
10579
+ deviceId: string;
10580
+
10581
+ timeout?: number;
10582
+
10583
+ revokeExisting?: boolean;
10584
+ }): Promise<any>;
10540
10585
  }
10541
10586
 
10542
10587
  export class ManagerMobile extends HomeyAPIV3.ManagerMobile {
@@ -10744,9 +10789,17 @@ export namespace HomeyAPIV3Local {
10744
10789
 
10745
10790
  getActiveDataset(): Promise<any>;
10746
10791
 
10747
- reset(opts: { target?: string }): Promise<any>;
10792
+ apiReset(): Promise<any>;
10793
+
10794
+ executeCommand(opts: {
10795
+ command: string;
10796
+
10797
+ timeout?: number;
10798
+
10799
+ flush?: boolean;
10748
10800
 
10749
- executeCommand(opts: { command: string }): Promise<any>;
10801
+ preventThreadSetup?: boolean;
10802
+ }): Promise<any>;
10750
10803
 
10751
10804
  apiDisable(): Promise<any>;
10752
10805
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.6.7",
3
+ "version": "3.6.8",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [