homey-api 1.10.18 → 1.10.20

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.
@@ -1,5 +1,177 @@
1
1
  {
2
2
  "managers": {
3
+ "ManagerAlarms": {
4
+ "id": "alarms",
5
+ "idCamelCase": "alarms",
6
+ "items": {
7
+ "Alarm": {
8
+ "id": "alarm",
9
+ "schema": {
10
+ "repetition": {
11
+ "type": "object",
12
+ "properties": {
13
+ "required": [
14
+ "monday",
15
+ "tuesday",
16
+ "wednesday",
17
+ "thursday",
18
+ "friday",
19
+ "saturday",
20
+ "sunday"
21
+ ],
22
+ "monday": {
23
+ "type": "boolean"
24
+ },
25
+ "tuesday": {
26
+ "type": "boolean"
27
+ },
28
+ "wednesday": {
29
+ "type": "boolean"
30
+ },
31
+ "thursday": {
32
+ "type": "boolean"
33
+ },
34
+ "friday": {
35
+ "type": "boolean"
36
+ },
37
+ "saturday": {
38
+ "type": "boolean"
39
+ },
40
+ "sunday": {
41
+ "type": "boolean"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "operations": {
49
+ "getAlarms": {
50
+ "method": "get",
51
+ "path": "/alarm",
52
+ "private": false,
53
+ "scopes": [
54
+ "homey.alarm.readonly"
55
+ ],
56
+ "crud": {
57
+ "type": "getAll",
58
+ "item": "Alarm"
59
+ },
60
+ "parameters": {}
61
+ },
62
+ "getAlarm": {
63
+ "method": "get",
64
+ "path": "/alarm/:id",
65
+ "private": false,
66
+ "scopes": [
67
+ "homey.alarm.readonly"
68
+ ],
69
+ "crud": {
70
+ "type": "getOne",
71
+ "item": "Alarm"
72
+ },
73
+ "parameters": {
74
+ "id": {
75
+ "in": "path",
76
+ "type": "string",
77
+ "required": true
78
+ }
79
+ }
80
+ },
81
+ "createAlarm": {
82
+ "method": "post",
83
+ "path": "/alarm",
84
+ "private": false,
85
+ "scopes": [
86
+ "homey.alarm"
87
+ ],
88
+ "crud": {
89
+ "type": "createOne",
90
+ "item": "Alarm"
91
+ },
92
+ "parameters": {
93
+ "alarm": {
94
+ "in": "body",
95
+ "type": "object",
96
+ "root": true,
97
+ "required": true,
98
+ "properties": {
99
+ "name": {
100
+ "type": "string"
101
+ },
102
+ "time": {
103
+ "type": "string"
104
+ },
105
+ "enabled": {
106
+ "type": "boolean"
107
+ },
108
+ "repetition": {
109
+ "type": "object"
110
+ }
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "updateAlarm": {
116
+ "method": "put",
117
+ "path": "/alarm/:id",
118
+ "private": false,
119
+ "scopes": [
120
+ "homey.alarm"
121
+ ],
122
+ "crud": {
123
+ "type": "updateOne",
124
+ "item": "Alarm"
125
+ },
126
+ "parameters": {
127
+ "id": {
128
+ "in": "path",
129
+ "type": "string",
130
+ "required": true
131
+ },
132
+ "alarm": {
133
+ "in": "body",
134
+ "type": "object",
135
+ "root": true,
136
+ "required": true,
137
+ "properties": {
138
+ "name": {
139
+ "type": "string"
140
+ },
141
+ "time": {
142
+ "type": "string"
143
+ },
144
+ "enabled": {
145
+ "type": "boolean"
146
+ },
147
+ "repetition": {
148
+ "type": "object"
149
+ }
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "deleteAlarm": {
155
+ "method": "delete",
156
+ "path": "/alarm/:id",
157
+ "private": false,
158
+ "scopes": [
159
+ "homey.alarm"
160
+ ],
161
+ "crud": {
162
+ "type": "deleteOne",
163
+ "item": "Alarm"
164
+ },
165
+ "parameters": {
166
+ "id": {
167
+ "in": "path",
168
+ "type": "string",
169
+ "required": true
170
+ }
171
+ }
172
+ }
173
+ }
174
+ },
3
175
  "ManagerApi": {
4
176
  "id": "api",
5
177
  "idCamelCase": "api",
@@ -418,6 +590,25 @@
418
590
  "homey.system.readonly"
419
591
  ],
420
592
  "parameters": {}
593
+ },
594
+ "runCommand": {
595
+ "method": "post",
596
+ "path": "/command",
597
+ "private": false,
598
+ "scopes": [
599
+ "homey.system"
600
+ ],
601
+ "parameters": {
602
+ "command": {
603
+ "in": "body",
604
+ "type": "string",
605
+ "required": true
606
+ },
607
+ "opts": {
608
+ "in": "body",
609
+ "type": "object"
610
+ }
611
+ }
421
612
  }
422
613
  }
423
614
  },
@@ -1308,8 +1499,7 @@
1308
1499
  "required": true
1309
1500
  },
1310
1501
  "data": {
1311
- "in": "body",
1312
- "type": "object"
1502
+ "in": "body"
1313
1503
  }
1314
1504
  }
1315
1505
  },
@@ -1332,8 +1522,7 @@
1332
1522
  "required": true
1333
1523
  },
1334
1524
  "data": {
1335
- "in": "body",
1336
- "type": "object"
1525
+ "in": "body"
1337
1526
  }
1338
1527
  }
1339
1528
  },
@@ -2291,6 +2480,40 @@
2291
2480
  "item": "FlowToken"
2292
2481
  },
2293
2482
  "parameters": {}
2483
+ },
2484
+ "getFlowToken": {
2485
+ "method": "get",
2486
+ "path": "/flowtoken/:id",
2487
+ "private": false,
2488
+ "scopes": [
2489
+ "homey.flow.readonly"
2490
+ ],
2491
+ "crud": {
2492
+ "type": "getOne",
2493
+ "item": "FlowToken"
2494
+ },
2495
+ "parameters": {
2496
+ "id": {
2497
+ "in": "path",
2498
+ "type": "string",
2499
+ "required": true
2500
+ }
2501
+ }
2502
+ },
2503
+ "getFlowTokenValue": {
2504
+ "method": "get",
2505
+ "path": "/flowtoken/:id/value",
2506
+ "private": false,
2507
+ "scopes": [
2508
+ "homey.flow.readonly"
2509
+ ],
2510
+ "parameters": {
2511
+ "id": {
2512
+ "in": "path",
2513
+ "type": "string",
2514
+ "required": true
2515
+ }
2516
+ }
2294
2517
  }
2295
2518
  }
2296
2519
  },
@@ -3543,6 +3766,21 @@
3543
3766
  "homey.system"
3544
3767
  ],
3545
3768
  "parameters": {}
3769
+ },
3770
+ "setDebug": {
3771
+ "method": "put",
3772
+ "path": "/debug",
3773
+ "private": false,
3774
+ "scopes": [
3775
+ "homey.system"
3776
+ ],
3777
+ "parameters": {
3778
+ "namespace": {
3779
+ "in": "body",
3780
+ "type": "string",
3781
+ "required": true
3782
+ }
3783
+ }
3546
3784
  }
3547
3785
  }
3548
3786
  },
@@ -4243,13 +4481,34 @@
4243
4481
  "method": "get",
4244
4482
  "path": "/zone",
4245
4483
  "private": false,
4246
- "scopes": [],
4484
+ "scopes": [
4485
+ "homey.zone.readonly"
4486
+ ],
4247
4487
  "crud": {
4248
4488
  "type": "getAll",
4249
4489
  "item": "Zone"
4250
4490
  },
4251
4491
  "parameters": {}
4252
4492
  },
4493
+ "getZone": {
4494
+ "method": "get",
4495
+ "path": "/zone/:id",
4496
+ "private": false,
4497
+ "scopes": [
4498
+ "homey.zone.readonly"
4499
+ ],
4500
+ "crud": {
4501
+ "type": "getOne",
4502
+ "item": "Zone"
4503
+ },
4504
+ "parameters": {
4505
+ "id": {
4506
+ "in": "path",
4507
+ "type": "string",
4508
+ "required": true
4509
+ }
4510
+ }
4511
+ },
4253
4512
  "createZone": {
4254
4513
  "method": "post",
4255
4514
  "path": "/zone",
@@ -2310,6 +2310,22 @@
2310
2310
 
2311
2311
 
2312
2312
 
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+ export namespace HomeyAPIV3Local.ManagerAlarms {
2319
+
2320
+ export class Alarm {
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+ }
2327
+
2328
+ }
2313
2329
 
2314
2330
 
2315
2331
 
@@ -10878,6 +10894,150 @@
10878
10894
 
10879
10895
 
10880
10896
 
10897
+ isConnected(
10898
+
10899
+ ):
10900
+ Boolean;
10901
+
10902
+ connect(
10903
+
10904
+ ):
10905
+ Promise<void>;
10906
+
10907
+ disconnect(
10908
+
10909
+ ):
10910
+ Promise<void>;
10911
+
10912
+ }
10913
+
10914
+ export class ManagerAlarms extends HomeyAPIV3Local.Manager {
10915
+
10916
+
10917
+
10918
+
10919
+
10920
+ getAlarms(
10921
+
10922
+ ):
10923
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
10924
+
10925
+ getAlarm(
10926
+
10927
+
10928
+
10929
+
10930
+ opts: {
10931
+
10932
+
10933
+ id: string,
10934
+
10935
+
10936
+ },
10937
+
10938
+
10939
+
10940
+
10941
+ ):
10942
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
10943
+
10944
+ createAlarm(
10945
+
10946
+
10947
+
10948
+
10949
+ opts: {
10950
+
10951
+
10952
+ alarm: {
10953
+
10954
+
10955
+ name: string,
10956
+
10957
+
10958
+
10959
+ time: string,
10960
+
10961
+
10962
+
10963
+ enabled: boolean,
10964
+
10965
+
10966
+
10967
+ repetition: object,
10968
+
10969
+
10970
+ },
10971
+
10972
+
10973
+ },
10974
+
10975
+
10976
+
10977
+
10978
+ ):
10979
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
10980
+
10981
+ updateAlarm(
10982
+
10983
+
10984
+
10985
+
10986
+ opts: {
10987
+
10988
+
10989
+ id: string,
10990
+
10991
+
10992
+
10993
+ alarm: {
10994
+
10995
+
10996
+ name: string,
10997
+
10998
+
10999
+
11000
+ time: string,
11001
+
11002
+
11003
+
11004
+ enabled: boolean,
11005
+
11006
+
11007
+
11008
+ repetition: object,
11009
+
11010
+
11011
+ },
11012
+
11013
+
11014
+ },
11015
+
11016
+
11017
+
11018
+
11019
+ ):
11020
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
11021
+
11022
+ deleteAlarm(
11023
+
11024
+
11025
+
11026
+
11027
+ opts: {
11028
+
11029
+
11030
+ id: string,
11031
+
11032
+
11033
+ },
11034
+
11035
+
11036
+
11037
+
11038
+ ):
11039
+ Promise<any>;
11040
+
10881
11041
  isConnected(
10882
11042
 
10883
11043
  ):
@@ -11364,6 +11524,29 @@
11364
11524
 
11365
11525
  getState(
11366
11526
 
11527
+ ):
11528
+ Promise<any>;
11529
+
11530
+ runCommand(
11531
+
11532
+
11533
+
11534
+
11535
+ opts: {
11536
+
11537
+
11538
+ command: string,
11539
+
11540
+
11541
+
11542
+ opts: object,
11543
+
11544
+
11545
+ },
11546
+
11547
+
11548
+
11549
+
11367
11550
  ):
11368
11551
  Promise<any>;
11369
11552
 
@@ -12057,7 +12240,7 @@
12057
12240
 
12058
12241
 
12059
12242
 
12060
- data: object,
12243
+ data: *,
12061
12244
 
12062
12245
 
12063
12246
  },
@@ -12084,7 +12267,7 @@
12084
12267
 
12085
12268
 
12086
12269
 
12087
- data: object,
12270
+ data: *,
12088
12271
 
12089
12272
 
12090
12273
  },
@@ -12992,6 +13175,44 @@
12992
13175
  ):
12993
13176
  Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
12994
13177
 
13178
+ getFlowToken(
13179
+
13180
+
13181
+
13182
+
13183
+ opts: {
13184
+
13185
+
13186
+ id: string,
13187
+
13188
+
13189
+ },
13190
+
13191
+
13192
+
13193
+
13194
+ ):
13195
+ Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
13196
+
13197
+ getFlowTokenValue(
13198
+
13199
+
13200
+
13201
+
13202
+ opts: {
13203
+
13204
+
13205
+ id: string,
13206
+
13207
+
13208
+ },
13209
+
13210
+
13211
+
13212
+
13213
+ ):
13214
+ Promise<any>;
13215
+
12995
13216
  isConnected(
12996
13217
 
12997
13218
  ):
@@ -14309,6 +14530,25 @@
14309
14530
 
14310
14531
  rebootOTA(
14311
14532
 
14533
+ ):
14534
+ Promise<any>;
14535
+
14536
+ setDebug(
14537
+
14538
+
14539
+
14540
+
14541
+ opts: {
14542
+
14543
+
14544
+ namespace: string,
14545
+
14546
+
14547
+ },
14548
+
14549
+
14550
+
14551
+
14312
14552
  ):
14313
14553
  Promise<any>;
14314
14554
 
@@ -14914,6 +15154,25 @@
14914
15154
 
14915
15155
  getZones(
14916
15156
 
15157
+ ):
15158
+ Promise<HomeyAPIV3Local.ManagerZones.Zone>;
15159
+
15160
+ getZone(
15161
+
15162
+
15163
+
15164
+
15165
+ opts: {
15166
+
15167
+
15168
+ id: string,
15169
+
15170
+
15171
+ },
15172
+
15173
+
15174
+
15175
+
14917
15176
  ):
14918
15177
  Promise<HomeyAPIV3Local.ManagerZones.Zone>;
14919
15178
 
@@ -7700,6 +7700,22 @@
7700
7700
 
7701
7701
 
7702
7702
 
7703
+
7704
+
7705
+
7706
+
7707
+
7708
+ export namespace HomeyAPIV3Local.ManagerAlarms {
7709
+
7710
+ export class Alarm {
7711
+
7712
+
7713
+
7714
+
7715
+
7716
+ }
7717
+
7718
+ }
7703
7719
 
7704
7720
 
7705
7721
 
@@ -16835,6 +16851,150 @@
16835
16851
 
16836
16852
 
16837
16853
 
16854
+ isConnected(
16855
+
16856
+ ):
16857
+ Boolean;
16858
+
16859
+ connect(
16860
+
16861
+ ):
16862
+ Promise<void>;
16863
+
16864
+ disconnect(
16865
+
16866
+ ):
16867
+ Promise<void>;
16868
+
16869
+ }
16870
+
16871
+ export class ManagerAlarms extends HomeyAPIV3Local.Manager {
16872
+
16873
+
16874
+
16875
+
16876
+
16877
+ getAlarms(
16878
+
16879
+ ):
16880
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
16881
+
16882
+ getAlarm(
16883
+
16884
+
16885
+
16886
+
16887
+ opts: {
16888
+
16889
+
16890
+ id: string,
16891
+
16892
+
16893
+ },
16894
+
16895
+
16896
+
16897
+
16898
+ ):
16899
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
16900
+
16901
+ createAlarm(
16902
+
16903
+
16904
+
16905
+
16906
+ opts: {
16907
+
16908
+
16909
+ alarm: {
16910
+
16911
+
16912
+ name: string,
16913
+
16914
+
16915
+
16916
+ time: string,
16917
+
16918
+
16919
+
16920
+ enabled: boolean,
16921
+
16922
+
16923
+
16924
+ repetition: object,
16925
+
16926
+
16927
+ },
16928
+
16929
+
16930
+ },
16931
+
16932
+
16933
+
16934
+
16935
+ ):
16936
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
16937
+
16938
+ updateAlarm(
16939
+
16940
+
16941
+
16942
+
16943
+ opts: {
16944
+
16945
+
16946
+ id: string,
16947
+
16948
+
16949
+
16950
+ alarm: {
16951
+
16952
+
16953
+ name: string,
16954
+
16955
+
16956
+
16957
+ time: string,
16958
+
16959
+
16960
+
16961
+ enabled: boolean,
16962
+
16963
+
16964
+
16965
+ repetition: object,
16966
+
16967
+
16968
+ },
16969
+
16970
+
16971
+ },
16972
+
16973
+
16974
+
16975
+
16976
+ ):
16977
+ Promise<HomeyAPIV3Local.ManagerAlarms.Alarm>;
16978
+
16979
+ deleteAlarm(
16980
+
16981
+
16982
+
16983
+
16984
+ opts: {
16985
+
16986
+
16987
+ id: string,
16988
+
16989
+
16990
+ },
16991
+
16992
+
16993
+
16994
+
16995
+ ):
16996
+ Promise<any>;
16997
+
16838
16998
  isConnected(
16839
16999
 
16840
17000
  ):
@@ -17321,6 +17481,29 @@
17321
17481
 
17322
17482
  getState(
17323
17483
 
17484
+ ):
17485
+ Promise<any>;
17486
+
17487
+ runCommand(
17488
+
17489
+
17490
+
17491
+
17492
+ opts: {
17493
+
17494
+
17495
+ command: string,
17496
+
17497
+
17498
+
17499
+ opts: object,
17500
+
17501
+
17502
+ },
17503
+
17504
+
17505
+
17506
+
17324
17507
  ):
17325
17508
  Promise<any>;
17326
17509
 
@@ -18155,7 +18338,7 @@
18155
18338
 
18156
18339
 
18157
18340
 
18158
- data: object,
18341
+ data: *,
18159
18342
 
18160
18343
 
18161
18344
  },
@@ -18182,7 +18365,7 @@
18182
18365
 
18183
18366
 
18184
18367
 
18185
- data: object,
18368
+ data: *,
18186
18369
 
18187
18370
 
18188
18371
  },
@@ -19090,6 +19273,44 @@
19090
19273
  ):
19091
19274
  Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
19092
19275
 
19276
+ getFlowToken(
19277
+
19278
+
19279
+
19280
+
19281
+ opts: {
19282
+
19283
+
19284
+ id: string,
19285
+
19286
+
19287
+ },
19288
+
19289
+
19290
+
19291
+
19292
+ ):
19293
+ Promise<HomeyAPIV3Local.ManagerFlowToken.FlowToken>;
19294
+
19295
+ getFlowTokenValue(
19296
+
19297
+
19298
+
19299
+
19300
+ opts: {
19301
+
19302
+
19303
+ id: string,
19304
+
19305
+
19306
+ },
19307
+
19308
+
19309
+
19310
+
19311
+ ):
19312
+ Promise<any>;
19313
+
19093
19314
  isConnected(
19094
19315
 
19095
19316
  ):
@@ -20407,6 +20628,25 @@
20407
20628
 
20408
20629
  rebootOTA(
20409
20630
 
20631
+ ):
20632
+ Promise<any>;
20633
+
20634
+ setDebug(
20635
+
20636
+
20637
+
20638
+
20639
+ opts: {
20640
+
20641
+
20642
+ namespace: string,
20643
+
20644
+
20645
+ },
20646
+
20647
+
20648
+
20649
+
20410
20650
  ):
20411
20651
  Promise<any>;
20412
20652
 
@@ -21017,6 +21257,25 @@
21017
21257
 
21018
21258
  getZones(
21019
21259
 
21260
+ ):
21261
+ Promise<HomeyAPIV3Local.ManagerZones.Zone>;
21262
+
21263
+ getZone(
21264
+
21265
+
21266
+
21267
+
21268
+ opts: {
21269
+
21270
+
21271
+ id: string,
21272
+
21273
+
21274
+ },
21275
+
21276
+
21277
+
21278
+
21020
21279
  ):
21021
21280
  Promise<HomeyAPIV3Local.ManagerZones.Zone>;
21022
21281
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.10.18",
3
+ "version": "1.10.20",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [