homey-api 3.0.0-rc.8 → 3.0.0

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.
package/README.md CHANGED
@@ -42,7 +42,7 @@ You can then access the APIs using `window.AthomCloudAPI` etc.
42
42
 
43
43
  ### In-app
44
44
 
45
- To use Homey API inside of an Homey Pro app with the `homey:manager:api` permission, see {@link HomeyAPI#createAppAPI}.
45
+ To use Homey API inside of an Homey Pro app with the `homey:manager:api` permission, see [HomeyAPI.createAppAPI](./HomeyAPI.html#.createAppAPI).
46
46
 
47
47
  ## Issues
48
48
 
@@ -863,6 +863,22 @@
863
863
  }
864
864
  }
865
865
  },
866
+ "activateHomey": {
867
+ "path": "/homey/{id}/activate",
868
+ "method": "post",
869
+ "private": true,
870
+ "parameters": {
871
+ "id": {
872
+ "in": "path",
873
+ "type": "string",
874
+ "required": true
875
+ },
876
+ "userId": {
877
+ "type": "string",
878
+ "in": "body"
879
+ }
880
+ }
881
+ },
866
882
  "addHomeyLicense": {
867
883
  "path": "/homey/{homeyId}/license/{license}",
868
884
  "method": "post",
@@ -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
  },
@@ -590,6 +605,25 @@
590
605
  "homey.system.readonly"
591
606
  ],
592
607
  "parameters": {}
608
+ },
609
+ "runCommand": {
610
+ "method": "post",
611
+ "path": "/command",
612
+ "private": false,
613
+ "scopes": [
614
+ "homey.system"
615
+ ],
616
+ "parameters": {
617
+ "command": {
618
+ "in": "body",
619
+ "type": "string",
620
+ "required": true
621
+ },
622
+ "opts": {
623
+ "in": "body",
624
+ "type": "object"
625
+ }
626
+ }
593
627
  }
594
628
  }
595
629
  },
@@ -674,6 +708,25 @@
674
708
  "required": true
675
709
  }
676
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
+ }
677
730
  }
678
731
  }
679
732
  },
@@ -1480,8 +1533,7 @@
1480
1533
  "required": true
1481
1534
  },
1482
1535
  "data": {
1483
- "in": "body",
1484
- "type": "object"
1536
+ "in": "body"
1485
1537
  }
1486
1538
  }
1487
1539
  },
@@ -1504,8 +1556,7 @@
1504
1556
  "required": true
1505
1557
  },
1506
1558
  "data": {
1507
- "in": "body",
1508
- "type": "object"
1559
+ "in": "body"
1509
1560
  }
1510
1561
  }
1511
1562
  },
@@ -1627,6 +1678,17 @@
1627
1678
  }
1628
1679
  }
1629
1680
  },
1681
+ "ExperimentHomeKit": {
1682
+ "id": "experiment-homekit",
1683
+ "schema": {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "id": {
1687
+ "type": "string"
1688
+ }
1689
+ }
1690
+ }
1691
+ },
1630
1692
  "ExperimentPowerUser": {
1631
1693
  "id": "experiment-poweruser",
1632
1694
  "schema": {
@@ -2169,7 +2231,7 @@
2169
2231
  "path": "/flowcardcondition/:uri/:id/run",
2170
2232
  "private": false,
2171
2233
  "scopes": [
2172
- "homey.flow.start"
2234
+ "homey.flow"
2173
2235
  ],
2174
2236
  "parameters": {
2175
2237
  "id": {
@@ -2242,7 +2304,7 @@
2242
2304
  "path": "/flowcardaction/:uri/:id/run",
2243
2305
  "private": false,
2244
2306
  "scopes": [
2245
- "homey.flow.start"
2307
+ "homey.flow"
2246
2308
  ],
2247
2309
  "parameters": {
2248
2310
  "id": {
@@ -2463,6 +2525,40 @@
2463
2525
  "item": "FlowToken"
2464
2526
  },
2465
2527
  "parameters": {}
2528
+ },
2529
+ "getFlowToken": {
2530
+ "method": "get",
2531
+ "path": "/flowtoken/:id",
2532
+ "private": false,
2533
+ "scopes": [
2534
+ "homey.flow.readonly"
2535
+ ],
2536
+ "crud": {
2537
+ "type": "getOne",
2538
+ "item": "FlowToken"
2539
+ },
2540
+ "parameters": {
2541
+ "id": {
2542
+ "in": "path",
2543
+ "type": "string",
2544
+ "required": true
2545
+ }
2546
+ }
2547
+ },
2548
+ "getFlowTokenValue": {
2549
+ "method": "get",
2550
+ "path": "/flowtoken/:id/value",
2551
+ "private": false,
2552
+ "scopes": [
2553
+ "homey.flow.readonly"
2554
+ ],
2555
+ "parameters": {
2556
+ "id": {
2557
+ "in": "path",
2558
+ "type": "string",
2559
+ "required": true
2560
+ }
2561
+ }
2466
2562
  }
2467
2563
  }
2468
2564
  },
@@ -2959,6 +3055,25 @@
2959
3055
  ],
2960
3056
  "parameters": {}
2961
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
+ },
2962
3077
  "getVariables": {
2963
3078
  "method": "get",
2964
3079
  "path": "/variable",
@@ -3291,6 +3406,21 @@
3291
3406
  }
3292
3407
  }
3293
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
+ },
3294
3424
  "setAsleepMe": {
3295
3425
  "method": "put",
3296
3426
  "path": "/me/asleep",
@@ -3332,6 +3462,21 @@
3332
3462
  "type": "boolean"
3333
3463
  }
3334
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
+ }
3335
3480
  }
3336
3481
  }
3337
3482
  },
@@ -4430,13 +4575,34 @@
4430
4575
  "method": "get",
4431
4576
  "path": "/zone",
4432
4577
  "private": false,
4433
- "scopes": [],
4578
+ "scopes": [
4579
+ "homey.zone.readonly"
4580
+ ],
4434
4581
  "crud": {
4435
4582
  "type": "getAll",
4436
4583
  "item": "Zone"
4437
4584
  },
4438
4585
  "parameters": {}
4439
4586
  },
4587
+ "getZone": {
4588
+ "method": "get",
4589
+ "path": "/zone/:id",
4590
+ "private": false,
4591
+ "scopes": [
4592
+ "homey.zone.readonly"
4593
+ ],
4594
+ "crud": {
4595
+ "type": "getOne",
4596
+ "item": "Zone"
4597
+ },
4598
+ "parameters": {
4599
+ "id": {
4600
+ "in": "path",
4601
+ "type": "string",
4602
+ "required": true
4603
+ }
4604
+ }
4605
+ },
4440
4606
  "createZone": {
4441
4607
  "method": "post",
4442
4608
  "path": "/zone",