homey-api 3.0.0-rc.19 → 3.0.0-rc.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.
@@ -483,6 +483,21 @@
483
483
  "required": true
484
484
  }
485
485
  }
486
+ },
487
+ "getAppUsage": {
488
+ "method": "get",
489
+ "path": "/app/:id/usage",
490
+ "private": false,
491
+ "scopes": [
492
+ "homey.app.readonly"
493
+ ],
494
+ "parameters": {
495
+ "id": {
496
+ "in": "path",
497
+ "type": "string",
498
+ "required": true
499
+ }
500
+ }
486
501
  }
487
502
  }
488
503
  },
@@ -693,6 +708,25 @@
693
708
  "required": true
694
709
  }
695
710
  }
711
+ },
712
+ "setDebugLogging": {
713
+ "method": "put",
714
+ "path": "/debug",
715
+ "private": true,
716
+ "scopes": [
717
+ "homey.system"
718
+ ],
719
+ "parameters": {
720
+ "peripheral": {
721
+ "in": "body",
722
+ "type": "string"
723
+ },
724
+ "enabled": {
725
+ "in": "body",
726
+ "type": "boolean",
727
+ "required": true
728
+ }
729
+ }
696
730
  }
697
731
  }
698
732
  },
@@ -1644,6 +1678,17 @@
1644
1678
  }
1645
1679
  }
1646
1680
  },
1681
+ "ExperimentHomeKit": {
1682
+ "id": "experiment-homekit",
1683
+ "schema": {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "id": {
1687
+ "type": "string"
1688
+ }
1689
+ }
1690
+ }
1691
+ },
1647
1692
  "ExperimentPowerUser": {
1648
1693
  "id": "experiment-poweruser",
1649
1694
  "schema": {
@@ -2186,7 +2231,7 @@
2186
2231
  "path": "/flowcardcondition/:uri/:id/run",
2187
2232
  "private": false,
2188
2233
  "scopes": [
2189
- "homey.flow.start"
2234
+ "homey.flow"
2190
2235
  ],
2191
2236
  "parameters": {
2192
2237
  "id": {
@@ -2259,7 +2304,7 @@
2259
2304
  "path": "/flowcardaction/:uri/:id/run",
2260
2305
  "private": false,
2261
2306
  "scopes": [
2262
- "homey.flow.start"
2307
+ "homey.flow"
2263
2308
  ],
2264
2309
  "parameters": {
2265
2310
  "id": {
@@ -3010,6 +3055,25 @@
3010
3055
  ],
3011
3056
  "parameters": {}
3012
3057
  },
3058
+ "getVariable": {
3059
+ "method": "get",
3060
+ "path": "/variable/:id",
3061
+ "private": false,
3062
+ "scopes": [
3063
+ "homey.logic.readonly"
3064
+ ],
3065
+ "crud": {
3066
+ "type": "getOne",
3067
+ "item": "Variable"
3068
+ },
3069
+ "parameters": {
3070
+ "id": {
3071
+ "in": "path",
3072
+ "type": "string",
3073
+ "required": true
3074
+ }
3075
+ }
3076
+ },
3013
3077
  "getVariables": {
3014
3078
  "method": "get",
3015
3079
  "path": "/variable",
@@ -3342,6 +3406,21 @@
3342
3406
  }
3343
3407
  }
3344
3408
  },
3409
+ "getPresent": {
3410
+ "method": "get",
3411
+ "path": "/:id/present",
3412
+ "private": false,
3413
+ "scopes": [
3414
+ "homey.presence.readonly"
3415
+ ],
3416
+ "parameters": {
3417
+ "id": {
3418
+ "in": "path",
3419
+ "type": "string",
3420
+ "required": true
3421
+ }
3422
+ }
3423
+ },
3345
3424
  "setAsleepMe": {
3346
3425
  "method": "put",
3347
3426
  "path": "/me/asleep",
@@ -3383,6 +3462,21 @@
3383
3462
  "type": "boolean"
3384
3463
  }
3385
3464
  }
3465
+ },
3466
+ "getAsleep": {
3467
+ "method": "get",
3468
+ "path": "/:id/asleep",
3469
+ "private": false,
3470
+ "scopes": [
3471
+ "homey.presence.readonly"
3472
+ ],
3473
+ "parameters": {
3474
+ "id": {
3475
+ "in": "path",
3476
+ "type": "string",
3477
+ "required": true
3478
+ }
3479
+ }
3386
3480
  }
3387
3481
  }
3388
3482
  },
@@ -2253,6 +2253,8 @@
2253
2253
 
2254
2254
 
2255
2255
 
2256
+
2257
+
2256
2258
 
2257
2259
 
2258
2260
 
@@ -2444,6 +2446,16 @@
2444
2446
 
2445
2447
  export namespace HomeyAPIV3Local.ManagerExperiments {
2446
2448
 
2449
+ export class ExperimentHomeKit {
2450
+
2451
+
2452
+
2453
+ id: string;
2454
+
2455
+
2456
+
2457
+ }
2458
+
2447
2459
  export class ExperimentPowerUser {
2448
2460
 
2449
2461
 
@@ -10796,6 +10808,25 @@
10796
10808
 
10797
10809
 
10798
10810
 
10811
+ opts: {
10812
+
10813
+
10814
+ id: string,
10815
+
10816
+
10817
+ },
10818
+
10819
+
10820
+
10821
+
10822
+ ):
10823
+ Promise<any>;
10824
+
10825
+ getAppUsage(
10826
+
10827
+
10828
+
10829
+
10799
10830
  opts: {
10800
10831
 
10801
10832
 
@@ -13153,6 +13184,25 @@
13153
13184
  ):
13154
13185
  Promise<any>;
13155
13186
 
13187
+ getVariable(
13188
+
13189
+
13190
+
13191
+
13192
+ opts: {
13193
+
13194
+
13195
+ id: string,
13196
+
13197
+
13198
+ },
13199
+
13200
+
13201
+
13202
+
13203
+ ):
13204
+ Promise<HomeyAPIV3Local.ManagerLogic.Variable>;
13205
+
13156
13206
  getVariables(
13157
13207
 
13158
13208
  ):
@@ -13498,6 +13548,25 @@
13498
13548
 
13499
13549
 
13500
13550
 
13551
+ ):
13552
+ Promise<any>;
13553
+
13554
+ getPresent(
13555
+
13556
+
13557
+
13558
+
13559
+ opts: {
13560
+
13561
+
13562
+ id: string,
13563
+
13564
+
13565
+ },
13566
+
13567
+
13568
+
13569
+
13501
13570
  ):
13502
13571
  Promise<any>;
13503
13572
 
@@ -13550,6 +13619,25 @@
13550
13619
 
13551
13620
 
13552
13621
 
13622
+ ):
13623
+ Promise<any>;
13624
+
13625
+ getAsleep(
13626
+
13627
+
13628
+
13629
+
13630
+ opts: {
13631
+
13632
+
13633
+ id: string,
13634
+
13635
+
13636
+ },
13637
+
13638
+
13639
+
13640
+
13553
13641
  ):
13554
13642
  Promise<any>;
13555
13643
 
@@ -7666,6 +7666,8 @@
7666
7666
 
7667
7667
 
7668
7668
 
7669
+
7670
+
7669
7671
 
7670
7672
 
7671
7673
 
@@ -7877,6 +7879,16 @@
7877
7879
 
7878
7880
  export namespace HomeyAPIV3Local.ManagerExperiments {
7879
7881
 
7882
+ export class ExperimentHomeKit {
7883
+
7884
+
7885
+
7886
+ id: string;
7887
+
7888
+
7889
+
7890
+ }
7891
+
7880
7892
  export class ExperimentPowerUser {
7881
7893
 
7882
7894
 
@@ -16716,6 +16728,25 @@
16716
16728
 
16717
16729
 
16718
16730
 
16731
+ opts: {
16732
+
16733
+
16734
+ id: string,
16735
+
16736
+
16737
+ },
16738
+
16739
+
16740
+
16741
+
16742
+ ):
16743
+ Promise<any>;
16744
+
16745
+ getAppUsage(
16746
+
16747
+
16748
+
16749
+
16719
16750
  opts: {
16720
16751
 
16721
16752
 
@@ -17005,6 +17036,29 @@
17005
17036
 
17006
17037
 
17007
17038
 
17039
+ ):
17040
+ Promise<any>;
17041
+
17042
+ setDebugLogging(
17043
+
17044
+
17045
+
17046
+
17047
+ opts: {
17048
+
17049
+
17050
+ peripheral: string,
17051
+
17052
+
17053
+
17054
+ enabled: boolean,
17055
+
17056
+
17057
+ },
17058
+
17059
+
17060
+
17061
+
17008
17062
  ):
17009
17063
  Promise<any>;
17010
17064
 
@@ -19214,6 +19268,25 @@
19214
19268
  ):
19215
19269
  Promise<any>;
19216
19270
 
19271
+ getVariable(
19272
+
19273
+
19274
+
19275
+
19276
+ opts: {
19277
+
19278
+
19279
+ id: string,
19280
+
19281
+
19282
+ },
19283
+
19284
+
19285
+
19286
+
19287
+ ):
19288
+ Promise<HomeyAPIV3Local.ManagerLogic.Variable>;
19289
+
19217
19290
  getVariables(
19218
19291
 
19219
19292
  ):
@@ -19559,6 +19632,25 @@
19559
19632
 
19560
19633
 
19561
19634
 
19635
+ ):
19636
+ Promise<any>;
19637
+
19638
+ getPresent(
19639
+
19640
+
19641
+
19642
+
19643
+ opts: {
19644
+
19645
+
19646
+ id: string,
19647
+
19648
+
19649
+ },
19650
+
19651
+
19652
+
19653
+
19562
19654
  ):
19563
19655
  Promise<any>;
19564
19656
 
@@ -19611,6 +19703,25 @@
19611
19703
 
19612
19704
 
19613
19705
 
19706
+ ):
19707
+ Promise<any>;
19708
+
19709
+ getAsleep(
19710
+
19711
+
19712
+
19713
+
19714
+ opts: {
19715
+
19716
+
19717
+ id: string,
19718
+
19719
+
19720
+ },
19721
+
19722
+
19723
+
19724
+
19614
19725
  ):
19615
19726
  Promise<any>;
19616
19727
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.0.0-rc.19",
3
+ "version": "3.0.0-rc.20",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [