homey-api 1.10.10 → 1.10.12
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.
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
"setAppSetting": {
|
|
162
|
-
"method": "
|
|
162
|
+
"method": "put",
|
|
163
163
|
"path": "/app/:id/setting/:name",
|
|
164
164
|
"private": false,
|
|
165
165
|
"scopes": [
|
|
@@ -183,6 +183,26 @@
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
|
+
"unsetAppSetting": {
|
|
187
|
+
"method": "delete",
|
|
188
|
+
"path": "/app/:id/setting/:name",
|
|
189
|
+
"private": false,
|
|
190
|
+
"scopes": [
|
|
191
|
+
"homey.app.control"
|
|
192
|
+
],
|
|
193
|
+
"parameters": {
|
|
194
|
+
"name": {
|
|
195
|
+
"in": "path",
|
|
196
|
+
"type": "string",
|
|
197
|
+
"required": true
|
|
198
|
+
},
|
|
199
|
+
"id": {
|
|
200
|
+
"in": "path",
|
|
201
|
+
"type": "string",
|
|
202
|
+
"required": true
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
186
206
|
"getAppStd": {
|
|
187
207
|
"method": "post",
|
|
188
208
|
"path": "/app/:id/crashlog",
|
|
@@ -2254,6 +2274,58 @@
|
|
|
2254
2274
|
}
|
|
2255
2275
|
}
|
|
2256
2276
|
},
|
|
2277
|
+
"ManagerGoogleAssistant": {
|
|
2278
|
+
"id": "google-assistant",
|
|
2279
|
+
"idCamelCase": "googleAssistant",
|
|
2280
|
+
"items": {},
|
|
2281
|
+
"operations": {
|
|
2282
|
+
"getOptionEnabled": {
|
|
2283
|
+
"method": "GET",
|
|
2284
|
+
"path": "/option/enabled",
|
|
2285
|
+
"scopes": [
|
|
2286
|
+
"homey.system"
|
|
2287
|
+
]
|
|
2288
|
+
},
|
|
2289
|
+
"setOptionEnabled": {
|
|
2290
|
+
"method": "PUT",
|
|
2291
|
+
"path": "/option/enabled",
|
|
2292
|
+
"scopes": [
|
|
2293
|
+
"homey.system"
|
|
2294
|
+
],
|
|
2295
|
+
"parameters": {
|
|
2296
|
+
"value": {
|
|
2297
|
+
"in": "body",
|
|
2298
|
+
"required": true
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
},
|
|
2302
|
+
"unsetOptionEnabled": {
|
|
2303
|
+
"method": "DELETE",
|
|
2304
|
+
"path": "/option/enabled",
|
|
2305
|
+
"scopes": [
|
|
2306
|
+
"homey.system"
|
|
2307
|
+
]
|
|
2308
|
+
},
|
|
2309
|
+
"getState": {
|
|
2310
|
+
"method": "get",
|
|
2311
|
+
"path": "/state",
|
|
2312
|
+
"private": false,
|
|
2313
|
+
"scopes": [
|
|
2314
|
+
"homey.system.readonly"
|
|
2315
|
+
],
|
|
2316
|
+
"parameters": {}
|
|
2317
|
+
},
|
|
2318
|
+
"sync": {
|
|
2319
|
+
"method": "post",
|
|
2320
|
+
"path": "/sync",
|
|
2321
|
+
"private": false,
|
|
2322
|
+
"scopes": [
|
|
2323
|
+
"homey.system"
|
|
2324
|
+
],
|
|
2325
|
+
"parameters": {}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2257
2329
|
"ManagerI18n": {
|
|
2258
2330
|
"id": "i18n",
|
|
2259
2331
|
"idCamelCase": "i18n",
|
|
@@ -3471,14 +3543,18 @@
|
|
|
3471
3543
|
"method": "get",
|
|
3472
3544
|
"path": "/update",
|
|
3473
3545
|
"private": false,
|
|
3474
|
-
"scopes": [
|
|
3546
|
+
"scopes": [
|
|
3547
|
+
"homey.updates.readonly"
|
|
3548
|
+
],
|
|
3475
3549
|
"parameters": {}
|
|
3476
3550
|
},
|
|
3477
3551
|
"installUpdate": {
|
|
3478
3552
|
"method": "post",
|
|
3479
3553
|
"path": "/update",
|
|
3480
3554
|
"private": false,
|
|
3481
|
-
"scopes": [
|
|
3555
|
+
"scopes": [
|
|
3556
|
+
"homey.updates"
|
|
3557
|
+
],
|
|
3482
3558
|
"parameters": {
|
|
3483
3559
|
"reboot": {
|
|
3484
3560
|
"in": "body",
|
|
@@ -3714,6 +3790,57 @@
|
|
|
3714
3790
|
"required": true
|
|
3715
3791
|
}
|
|
3716
3792
|
}
|
|
3793
|
+
},
|
|
3794
|
+
"swapOwner": {
|
|
3795
|
+
"method": "post",
|
|
3796
|
+
"path": "/swap-owner",
|
|
3797
|
+
"private": false,
|
|
3798
|
+
"scopes": [],
|
|
3799
|
+
"parameters": {
|
|
3800
|
+
"newOwnerUserId": {
|
|
3801
|
+
"in": "body",
|
|
3802
|
+
"type": "string",
|
|
3803
|
+
"required": true
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
},
|
|
3807
|
+
"getPersonalAccessTokens": {
|
|
3808
|
+
"method": "get",
|
|
3809
|
+
"path": "/pat",
|
|
3810
|
+
"private": false,
|
|
3811
|
+
"scopes": [],
|
|
3812
|
+
"parameters": {}
|
|
3813
|
+
},
|
|
3814
|
+
"createPersonalAccessToken": {
|
|
3815
|
+
"method": "post",
|
|
3816
|
+
"path": "/pat",
|
|
3817
|
+
"private": false,
|
|
3818
|
+
"scopes": [],
|
|
3819
|
+
"parameters": {
|
|
3820
|
+
"name": {
|
|
3821
|
+
"in": "body",
|
|
3822
|
+
"type": "string",
|
|
3823
|
+
"required": true
|
|
3824
|
+
},
|
|
3825
|
+
"scopes": {
|
|
3826
|
+
"in": "body",
|
|
3827
|
+
"type": "array",
|
|
3828
|
+
"required": true
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
},
|
|
3832
|
+
"deletePersonalAccessToken": {
|
|
3833
|
+
"method": "delete",
|
|
3834
|
+
"path": "/pat/:id",
|
|
3835
|
+
"private": false,
|
|
3836
|
+
"scopes": [],
|
|
3837
|
+
"parameters": {
|
|
3838
|
+
"id": {
|
|
3839
|
+
"in": "path",
|
|
3840
|
+
"type": "string",
|
|
3841
|
+
"required": true
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3717
3844
|
}
|
|
3718
3845
|
}
|
|
3719
3846
|
},
|
|
@@ -2617,6 +2617,8 @@
|
|
|
2617
2617
|
|
|
2618
2618
|
|
|
2619
2619
|
|
|
2620
|
+
|
|
2621
|
+
|
|
2620
2622
|
export namespace HomeyAPIV3Local.ManagerIcons {
|
|
2621
2623
|
|
|
2622
2624
|
export class Icon {
|
|
@@ -11076,6 +11078,29 @@
|
|
|
11076
11078
|
|
|
11077
11079
|
|
|
11078
11080
|
|
|
11081
|
+
):
|
|
11082
|
+
Promise<any>;
|
|
11083
|
+
|
|
11084
|
+
unsetAppSetting(
|
|
11085
|
+
|
|
11086
|
+
|
|
11087
|
+
|
|
11088
|
+
|
|
11089
|
+
opts: {
|
|
11090
|
+
|
|
11091
|
+
|
|
11092
|
+
name: string,
|
|
11093
|
+
|
|
11094
|
+
|
|
11095
|
+
|
|
11096
|
+
id: string,
|
|
11097
|
+
|
|
11098
|
+
|
|
11099
|
+
},
|
|
11100
|
+
|
|
11101
|
+
|
|
11102
|
+
|
|
11103
|
+
|
|
11079
11104
|
):
|
|
11080
11105
|
Promise<any>;
|
|
11081
11106
|
|
|
@@ -12975,6 +13000,68 @@
|
|
|
12975
13000
|
|
|
12976
13001
|
}
|
|
12977
13002
|
|
|
13003
|
+
export class ManagerGoogleAssistant extends HomeyAPIV3Local.Manager {
|
|
13004
|
+
|
|
13005
|
+
|
|
13006
|
+
|
|
13007
|
+
|
|
13008
|
+
|
|
13009
|
+
getOptionEnabled(
|
|
13010
|
+
|
|
13011
|
+
):
|
|
13012
|
+
Promise<any>;
|
|
13013
|
+
|
|
13014
|
+
setOptionEnabled(
|
|
13015
|
+
|
|
13016
|
+
|
|
13017
|
+
|
|
13018
|
+
|
|
13019
|
+
opts: {
|
|
13020
|
+
|
|
13021
|
+
|
|
13022
|
+
value: *,
|
|
13023
|
+
|
|
13024
|
+
|
|
13025
|
+
},
|
|
13026
|
+
|
|
13027
|
+
|
|
13028
|
+
|
|
13029
|
+
|
|
13030
|
+
):
|
|
13031
|
+
Promise<any>;
|
|
13032
|
+
|
|
13033
|
+
unsetOptionEnabled(
|
|
13034
|
+
|
|
13035
|
+
):
|
|
13036
|
+
Promise<any>;
|
|
13037
|
+
|
|
13038
|
+
getState(
|
|
13039
|
+
|
|
13040
|
+
):
|
|
13041
|
+
Promise<any>;
|
|
13042
|
+
|
|
13043
|
+
sync(
|
|
13044
|
+
|
|
13045
|
+
):
|
|
13046
|
+
Promise<any>;
|
|
13047
|
+
|
|
13048
|
+
isConnected(
|
|
13049
|
+
|
|
13050
|
+
):
|
|
13051
|
+
Boolean;
|
|
13052
|
+
|
|
13053
|
+
connect(
|
|
13054
|
+
|
|
13055
|
+
):
|
|
13056
|
+
Promise<void>;
|
|
13057
|
+
|
|
13058
|
+
disconnect(
|
|
13059
|
+
|
|
13060
|
+
):
|
|
13061
|
+
Promise<void>;
|
|
13062
|
+
|
|
13063
|
+
}
|
|
13064
|
+
|
|
12978
13065
|
export class ManagerI18n extends HomeyAPIV3Local.Manager {
|
|
12979
13066
|
|
|
12980
13067
|
|
|
@@ -14482,6 +14569,72 @@
|
|
|
14482
14569
|
|
|
14483
14570
|
|
|
14484
14571
|
|
|
14572
|
+
opts: {
|
|
14573
|
+
|
|
14574
|
+
|
|
14575
|
+
id: string,
|
|
14576
|
+
|
|
14577
|
+
|
|
14578
|
+
},
|
|
14579
|
+
|
|
14580
|
+
|
|
14581
|
+
|
|
14582
|
+
|
|
14583
|
+
):
|
|
14584
|
+
Promise<any>;
|
|
14585
|
+
|
|
14586
|
+
swapOwner(
|
|
14587
|
+
|
|
14588
|
+
|
|
14589
|
+
|
|
14590
|
+
|
|
14591
|
+
opts: {
|
|
14592
|
+
|
|
14593
|
+
|
|
14594
|
+
newOwnerUserId: string,
|
|
14595
|
+
|
|
14596
|
+
|
|
14597
|
+
},
|
|
14598
|
+
|
|
14599
|
+
|
|
14600
|
+
|
|
14601
|
+
|
|
14602
|
+
):
|
|
14603
|
+
Promise<any>;
|
|
14604
|
+
|
|
14605
|
+
getPersonalAccessTokens(
|
|
14606
|
+
|
|
14607
|
+
):
|
|
14608
|
+
Promise<any>;
|
|
14609
|
+
|
|
14610
|
+
createPersonalAccessToken(
|
|
14611
|
+
|
|
14612
|
+
|
|
14613
|
+
|
|
14614
|
+
|
|
14615
|
+
opts: {
|
|
14616
|
+
|
|
14617
|
+
|
|
14618
|
+
name: string,
|
|
14619
|
+
|
|
14620
|
+
|
|
14621
|
+
|
|
14622
|
+
scopes: Array<any>,
|
|
14623
|
+
|
|
14624
|
+
|
|
14625
|
+
},
|
|
14626
|
+
|
|
14627
|
+
|
|
14628
|
+
|
|
14629
|
+
|
|
14630
|
+
):
|
|
14631
|
+
Promise<any>;
|
|
14632
|
+
|
|
14633
|
+
deletePersonalAccessToken(
|
|
14634
|
+
|
|
14635
|
+
|
|
14636
|
+
|
|
14637
|
+
|
|
14485
14638
|
opts: {
|
|
14486
14639
|
|
|
14487
14640
|
|
|
@@ -8019,6 +8019,8 @@
|
|
|
8019
8019
|
|
|
8020
8020
|
|
|
8021
8021
|
|
|
8022
|
+
|
|
8023
|
+
|
|
8022
8024
|
export namespace HomeyAPIV3Local.ManagerIcons {
|
|
8023
8025
|
|
|
8024
8026
|
export class Icon {
|
|
@@ -17025,6 +17027,29 @@
|
|
|
17025
17027
|
|
|
17026
17028
|
|
|
17027
17029
|
|
|
17030
|
+
):
|
|
17031
|
+
Promise<any>;
|
|
17032
|
+
|
|
17033
|
+
unsetAppSetting(
|
|
17034
|
+
|
|
17035
|
+
|
|
17036
|
+
|
|
17037
|
+
|
|
17038
|
+
opts: {
|
|
17039
|
+
|
|
17040
|
+
|
|
17041
|
+
name: string,
|
|
17042
|
+
|
|
17043
|
+
|
|
17044
|
+
|
|
17045
|
+
id: string,
|
|
17046
|
+
|
|
17047
|
+
|
|
17048
|
+
},
|
|
17049
|
+
|
|
17050
|
+
|
|
17051
|
+
|
|
17052
|
+
|
|
17028
17053
|
):
|
|
17029
17054
|
Promise<any>;
|
|
17030
17055
|
|
|
@@ -19065,6 +19090,68 @@
|
|
|
19065
19090
|
|
|
19066
19091
|
}
|
|
19067
19092
|
|
|
19093
|
+
export class ManagerGoogleAssistant extends HomeyAPIV3Local.Manager {
|
|
19094
|
+
|
|
19095
|
+
|
|
19096
|
+
|
|
19097
|
+
|
|
19098
|
+
|
|
19099
|
+
getOptionEnabled(
|
|
19100
|
+
|
|
19101
|
+
):
|
|
19102
|
+
Promise<any>;
|
|
19103
|
+
|
|
19104
|
+
setOptionEnabled(
|
|
19105
|
+
|
|
19106
|
+
|
|
19107
|
+
|
|
19108
|
+
|
|
19109
|
+
opts: {
|
|
19110
|
+
|
|
19111
|
+
|
|
19112
|
+
value: *,
|
|
19113
|
+
|
|
19114
|
+
|
|
19115
|
+
},
|
|
19116
|
+
|
|
19117
|
+
|
|
19118
|
+
|
|
19119
|
+
|
|
19120
|
+
):
|
|
19121
|
+
Promise<any>;
|
|
19122
|
+
|
|
19123
|
+
unsetOptionEnabled(
|
|
19124
|
+
|
|
19125
|
+
):
|
|
19126
|
+
Promise<any>;
|
|
19127
|
+
|
|
19128
|
+
getState(
|
|
19129
|
+
|
|
19130
|
+
):
|
|
19131
|
+
Promise<any>;
|
|
19132
|
+
|
|
19133
|
+
sync(
|
|
19134
|
+
|
|
19135
|
+
):
|
|
19136
|
+
Promise<any>;
|
|
19137
|
+
|
|
19138
|
+
isConnected(
|
|
19139
|
+
|
|
19140
|
+
):
|
|
19141
|
+
Boolean;
|
|
19142
|
+
|
|
19143
|
+
connect(
|
|
19144
|
+
|
|
19145
|
+
):
|
|
19146
|
+
Promise<void>;
|
|
19147
|
+
|
|
19148
|
+
disconnect(
|
|
19149
|
+
|
|
19150
|
+
):
|
|
19151
|
+
Promise<void>;
|
|
19152
|
+
|
|
19153
|
+
}
|
|
19154
|
+
|
|
19068
19155
|
export class ManagerI18n extends HomeyAPIV3Local.Manager {
|
|
19069
19156
|
|
|
19070
19157
|
|
|
@@ -20572,6 +20659,72 @@
|
|
|
20572
20659
|
|
|
20573
20660
|
|
|
20574
20661
|
|
|
20662
|
+
opts: {
|
|
20663
|
+
|
|
20664
|
+
|
|
20665
|
+
id: string,
|
|
20666
|
+
|
|
20667
|
+
|
|
20668
|
+
},
|
|
20669
|
+
|
|
20670
|
+
|
|
20671
|
+
|
|
20672
|
+
|
|
20673
|
+
):
|
|
20674
|
+
Promise<any>;
|
|
20675
|
+
|
|
20676
|
+
swapOwner(
|
|
20677
|
+
|
|
20678
|
+
|
|
20679
|
+
|
|
20680
|
+
|
|
20681
|
+
opts: {
|
|
20682
|
+
|
|
20683
|
+
|
|
20684
|
+
newOwnerUserId: string,
|
|
20685
|
+
|
|
20686
|
+
|
|
20687
|
+
},
|
|
20688
|
+
|
|
20689
|
+
|
|
20690
|
+
|
|
20691
|
+
|
|
20692
|
+
):
|
|
20693
|
+
Promise<any>;
|
|
20694
|
+
|
|
20695
|
+
getPersonalAccessTokens(
|
|
20696
|
+
|
|
20697
|
+
):
|
|
20698
|
+
Promise<any>;
|
|
20699
|
+
|
|
20700
|
+
createPersonalAccessToken(
|
|
20701
|
+
|
|
20702
|
+
|
|
20703
|
+
|
|
20704
|
+
|
|
20705
|
+
opts: {
|
|
20706
|
+
|
|
20707
|
+
|
|
20708
|
+
name: string,
|
|
20709
|
+
|
|
20710
|
+
|
|
20711
|
+
|
|
20712
|
+
scopes: Array<any>,
|
|
20713
|
+
|
|
20714
|
+
|
|
20715
|
+
},
|
|
20716
|
+
|
|
20717
|
+
|
|
20718
|
+
|
|
20719
|
+
|
|
20720
|
+
):
|
|
20721
|
+
Promise<any>;
|
|
20722
|
+
|
|
20723
|
+
deletePersonalAccessToken(
|
|
20724
|
+
|
|
20725
|
+
|
|
20726
|
+
|
|
20727
|
+
|
|
20575
20728
|
opts: {
|
|
20576
20729
|
|
|
20577
20730
|
|
package/index.browser.js
CHANGED
|
@@ -8,3 +8,6 @@ global.AthomCloudAPI = require('./lib/AthomCloudAPI');
|
|
|
8
8
|
global.AthomStoreAPI = require('./lib/AthomStoreAPI');
|
|
9
9
|
global.AthomBackupAPI = require('./lib/AthomBackupAPI');
|
|
10
10
|
global.HomeyCloudAPI = require('./lib/HomeyCloudAPI');
|
|
11
|
+
global.HomeyAPIV2 = require('./lib/HomeyAPI/HomeyAPIV2');
|
|
12
|
+
global.HomeyAPIV3Local = require('./lib/HomeyAPI/HomeyAPIV3Local');
|
|
13
|
+
global.HomeyAPIV3Cloud = require('./lib/HomeyAPI/HomeyAPIV3Cloud');
|