homey-api 1.10.9 → 1.10.11

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": "get",
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
  },
@@ -264,6 +264,9 @@
264
264
 
265
265
 
266
266
 
267
+ args: {
268
+
269
+
267
270
  homey: Homey,
268
271
 
269
272
 
@@ -271,6 +274,9 @@
271
274
  debug: boolean,
272
275
 
273
276
 
277
+ },
278
+
279
+
274
280
 
275
281
 
276
282
  )
@@ -2611,6 +2617,8 @@
2611
2617
 
2612
2618
 
2613
2619
 
2620
+
2621
+
2614
2622
  export namespace HomeyAPIV3Local.ManagerIcons {
2615
2623
 
2616
2624
  export class Icon {
@@ -11070,6 +11078,29 @@
11070
11078
 
11071
11079
 
11072
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
+
11073
11104
  ):
11074
11105
  Promise<any>;
11075
11106
 
@@ -12969,6 +13000,68 @@
12969
13000
 
12970
13001
  }
12971
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
+
12972
13065
  export class ManagerI18n extends HomeyAPIV3Local.Manager {
12973
13066
 
12974
13067
 
@@ -14476,6 +14569,72 @@
14476
14569
 
14477
14570
 
14478
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
+
14479
14638
  opts: {
14480
14639
 
14481
14640
 
@@ -5348,6 +5348,9 @@
5348
5348
 
5349
5349
 
5350
5350
 
5351
+ args: {
5352
+
5353
+
5351
5354
  homey: Homey,
5352
5355
 
5353
5356
 
@@ -5355,6 +5358,9 @@
5355
5358
  debug: boolean,
5356
5359
 
5357
5360
 
5361
+ },
5362
+
5363
+
5358
5364
 
5359
5365
 
5360
5366
  )
@@ -8013,6 +8019,8 @@
8013
8019
 
8014
8020
 
8015
8021
 
8022
+
8023
+
8016
8024
  export namespace HomeyAPIV3Local.ManagerIcons {
8017
8025
 
8018
8026
  export class Icon {
@@ -17019,6 +17027,29 @@
17019
17027
 
17020
17028
 
17021
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
+
17022
17053
  ):
17023
17054
  Promise<any>;
17024
17055
 
@@ -19059,6 +19090,68 @@
19059
19090
 
19060
19091
  }
19061
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
+
19062
19155
  export class ManagerI18n extends HomeyAPIV3Local.Manager {
19063
19156
 
19064
19157
 
@@ -20566,6 +20659,72 @@
20566
20659
 
20567
20660
 
20568
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
+
20569
20728
  opts: {
20570
20729
 
20571
20730
 
@@ -48,8 +48,9 @@ class HomeyAPIApp extends HomeyAPIV2 {
48
48
  static DISCOVERY_STRATEGIES = {};
49
49
 
50
50
  /**
51
- * @param {Homey} homey - The Homey instance of your app, usually `this.homey`.
52
- * @param {boolean} [debug=false] - Enable debug logs.
51
+ * @param {Object} args
52
+ * @param {Homey} args.homey - The Homey instance of your app, usually `this.homey`.
53
+ * @param {boolean} [args.debug=false] - Enable debug logs.
53
54
  */
54
55
  constructor({
55
56
  homey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.10.9",
3
+ "version": "1.10.11",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [