homey-api 3.4.28 → 3.4.29

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.
@@ -2596,6 +2596,202 @@
2596
2596
  }
2597
2597
  }
2598
2598
  },
2599
+ "ManagerMoods": {
2600
+ "id": "moods",
2601
+ "idCamelCase": "moods",
2602
+ "private": true,
2603
+ "items": {
2604
+ "Mood": {
2605
+ "id": "mood",
2606
+ "schema": {
2607
+ "type": "object",
2608
+ "properties": {
2609
+ "id": {
2610
+ "type": "string"
2611
+ },
2612
+ "name": {
2613
+ "type": "string"
2614
+ },
2615
+ "zone": {
2616
+ "type": "string"
2617
+ },
2618
+ "devices": {
2619
+ "type": "object",
2620
+ "additionalProperties": false,
2621
+ "patternProperties": {
2622
+ "^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$": {
2623
+ "type": "object",
2624
+ "additionalProperties": false,
2625
+ "properties": {
2626
+ "state": {
2627
+ "type": "object",
2628
+ "additionalProperties": false,
2629
+ "patternProperties": {
2630
+ ".*": {
2631
+ "anyOf": [
2632
+ {
2633
+ "type": "string"
2634
+ },
2635
+ {
2636
+ "type": "boolean"
2637
+ },
2638
+ {
2639
+ "type": "number"
2640
+ }
2641
+ ]
2642
+ }
2643
+ }
2644
+ }
2645
+ }
2646
+ }
2647
+ }
2648
+ }
2649
+ },
2650
+ "additionalProperties": false
2651
+ }
2652
+ }
2653
+ },
2654
+ "operations": {
2655
+ "getState": {
2656
+ "method": "get",
2657
+ "path": "/state",
2658
+ "private": false,
2659
+ "scopes": [
2660
+ "homey.system.readonly"
2661
+ ],
2662
+ "parameters": {}
2663
+ },
2664
+ "getMoods": {
2665
+ "method": "get",
2666
+ "path": "/mood",
2667
+ "private": false,
2668
+ "scopes": [
2669
+ "homey.mood.readonly"
2670
+ ],
2671
+ "crud": {
2672
+ "type": "getAll",
2673
+ "item": "Mood"
2674
+ },
2675
+ "parameters": {}
2676
+ },
2677
+ "getMood": {
2678
+ "method": "get",
2679
+ "path": "/mood/:id",
2680
+ "private": false,
2681
+ "scopes": [
2682
+ "homey.mood.readonly"
2683
+ ],
2684
+ "crud": {
2685
+ "type": "getOne",
2686
+ "item": "Mood"
2687
+ },
2688
+ "parameters": {
2689
+ "id": {
2690
+ "in": "path",
2691
+ "type": "string",
2692
+ "required": true
2693
+ }
2694
+ }
2695
+ },
2696
+ "createMood": {
2697
+ "method": "post",
2698
+ "path": "/mood",
2699
+ "private": false,
2700
+ "scopes": [
2701
+ "homey.mood"
2702
+ ],
2703
+ "crud": {
2704
+ "type": "createOne",
2705
+ "item": "Mood"
2706
+ },
2707
+ "parameters": {
2708
+ "mood": {
2709
+ "in": "body",
2710
+ "type": "object",
2711
+ "root": true,
2712
+ "required": true,
2713
+ "properties": {
2714
+ "name": {
2715
+ "type": "string",
2716
+ "required": true
2717
+ },
2718
+ "devices": {
2719
+ "type": "object",
2720
+ "required": true
2721
+ }
2722
+ }
2723
+ }
2724
+ }
2725
+ },
2726
+ "updateMood": {
2727
+ "method": "put",
2728
+ "path": "/mood/:id",
2729
+ "private": false,
2730
+ "scopes": [
2731
+ "homey.mood"
2732
+ ],
2733
+ "crud": {
2734
+ "type": "updateOne",
2735
+ "item": "Mood"
2736
+ },
2737
+ "parameters": {
2738
+ "id": {
2739
+ "in": "path",
2740
+ "type": "string",
2741
+ "required": true
2742
+ },
2743
+ "mood": {
2744
+ "in": "body",
2745
+ "type": "object",
2746
+ "root": true,
2747
+ "required": true,
2748
+ "properties": {
2749
+ "name": {
2750
+ "type": "string"
2751
+ },
2752
+ "devices": {
2753
+ "type": "object"
2754
+ }
2755
+ }
2756
+ }
2757
+ }
2758
+ },
2759
+ "setMood": {
2760
+ "method": "post",
2761
+ "path": "/mood/:id/set",
2762
+ "private": false,
2763
+ "scopes": [
2764
+ "homey.mood.set"
2765
+ ],
2766
+ "parameters": {
2767
+ "id": {
2768
+ "in": "path",
2769
+ "type": "string",
2770
+ "required": true
2771
+ }
2772
+ }
2773
+ },
2774
+ "deleteMood": {
2775
+ "method": "delete",
2776
+ "path": "/mood/:id",
2777
+ "private": false,
2778
+ "scopes": [
2779
+ "homey.mood"
2780
+ ],
2781
+ "crud": {
2782
+ "type": "deleteOne",
2783
+ "item": "Mood"
2784
+ },
2785
+ "parameters": {
2786
+ "id": {
2787
+ "in": "path",
2788
+ "type": "string",
2789
+ "required": true
2790
+ }
2791
+ }
2792
+ }
2793
+ }
2794
+ },
2599
2795
  "ManagerNotifications": {
2600
2796
  "id": "notifications",
2601
2797
  "idCamelCase": "notifications",
@@ -935,6 +935,18 @@ export namespace HomeyAPIV3Cloud.ManagerLogic {
935
935
  }
936
936
  }
937
937
 
938
+ export namespace HomeyAPIV3Cloud.ManagerMoods {
939
+ export class Mood {
940
+ id: string;
941
+
942
+ name: string;
943
+
944
+ zone: string;
945
+
946
+ devices: object;
947
+ }
948
+ }
949
+
938
950
  export namespace HomeyAPIV3Cloud.ManagerNotifications {
939
951
  export class Notification {
940
952
  id: string;
@@ -8501,6 +8513,36 @@ export namespace HomeyAPIV3Cloud {
8501
8513
  }): Promise<any>;
8502
8514
  }
8503
8515
 
8516
+ export class ManagerMoods extends HomeyAPIV3.ManagerMoods {
8517
+ getState(): Promise<any>;
8518
+
8519
+ getMoods(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerMoods.Mood }>;
8520
+
8521
+ getMood(opts: { id: string }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8522
+
8523
+ createMood(opts: {
8524
+ mood: {
8525
+ name: string;
8526
+
8527
+ devices: object;
8528
+ };
8529
+ }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8530
+
8531
+ updateMood(opts: {
8532
+ id: string;
8533
+
8534
+ mood: {
8535
+ name?: string;
8536
+
8537
+ devices?: object;
8538
+ };
8539
+ }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8540
+
8541
+ setMood(opts: { id: string }): Promise<any>;
8542
+
8543
+ deleteMood(opts: { id: string }): Promise<any>;
8544
+ }
8545
+
8504
8546
  export class ManagerNotifications extends HomeyAPIV3.ManagerNotifications {
8505
8547
  getState(): Promise<any>;
8506
8548
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.4.28",
3
+ "version": "3.4.29",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [