@mhome/app-facade-protocol 1.172.0 → 1.177.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/contract/automation-presentation-v1.md +11 -1
- package/contract/developer-contracts-v1.md +24 -9
- package/contract/entity-v1.md +2 -2
- package/contract/nfc-v1.md +1 -1
- package/contract/onboard-v1.md +15 -0
- package/contract/resource-read-v1.md +13 -3
- package/contract/suggestion-v1.md +31 -23
- package/contract/wave-v1.md +24 -18
- package/contract/widget-presentation-v1.md +1 -1
- package/fixtures/entity-presentation.conformance.json +22 -22
- package/fixtures/group.conformance.json +76 -76
- package/fixtures/suggestion.conformance.json +204 -228
- package/fixtures/suggestion.migration.json +4 -20
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/authorization.v1.json +1 -1
- package/manifest/host-provision-targets.v1.json +1 -1
- package/manifest/hub-targets.v1.json +1 -1
- package/manifest/pod-targets.v1.json +1 -1
- package/manifest/recording.v1.json +3 -0
- package/manifest/routing.v1.json +1 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/automation-presentation.v1.schema.json +7 -1
- package/schema/entity-presentation.v1.schema.json +0 -2
- package/schema/group.v1.schema.json +1 -2
- package/schema/suggestion.v1.schema.json +84 -46
|
@@ -20,15 +20,7 @@
|
|
|
20
20
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
|
-
"
|
|
24
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"lighting": "// Fixture source bundle\n",
|
|
27
|
-
"empty": ""
|
|
28
|
-
},
|
|
29
|
-
"sdkVersion": "test-sdk-1",
|
|
30
|
-
"parseResults": []
|
|
31
|
-
}
|
|
23
|
+
"request": "Use lower evening brightness"
|
|
32
24
|
}
|
|
33
25
|
},
|
|
34
26
|
{
|
|
@@ -50,17 +42,8 @@
|
|
|
50
42
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
51
43
|
}
|
|
52
44
|
],
|
|
53
|
-
"script": {
|
|
54
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
55
|
-
"scripts": {
|
|
56
|
-
"lighting": "// Fixture source bundle\n",
|
|
57
|
-
"empty": ""
|
|
58
|
-
},
|
|
59
|
-
"sdkVersion": "test-sdk-1",
|
|
60
|
-
"parseResults": []
|
|
61
|
-
},
|
|
62
45
|
"automationId": "fixture-automation",
|
|
63
|
-
"
|
|
46
|
+
"request": "Use lower evening brightness"
|
|
64
47
|
}
|
|
65
48
|
},
|
|
66
49
|
{
|
|
@@ -82,22 +65,14 @@
|
|
|
82
65
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
83
66
|
}
|
|
84
67
|
],
|
|
85
|
-
"script": {
|
|
86
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
87
|
-
"scripts": {
|
|
88
|
-
"lighting": "// Fixture source bundle\n",
|
|
89
|
-
"empty": ""
|
|
90
|
-
},
|
|
91
|
-
"sdkVersion": "test-sdk-1",
|
|
92
|
-
"parseResults": []
|
|
93
|
-
},
|
|
94
68
|
"id": "fixture-suggestion-1",
|
|
95
69
|
"spaceId": "fixture-space",
|
|
96
70
|
"runId": "fixture-run",
|
|
97
71
|
"version": 1,
|
|
98
72
|
"status": "PENDING",
|
|
99
73
|
"createdAt": 2000,
|
|
100
|
-
"updatedAt": 2000
|
|
74
|
+
"updatedAt": 2000,
|
|
75
|
+
"request": "Use lower evening brightness"
|
|
101
76
|
}
|
|
102
77
|
},
|
|
103
78
|
{
|
|
@@ -119,15 +94,6 @@
|
|
|
119
94
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
120
95
|
}
|
|
121
96
|
],
|
|
122
|
-
"script": {
|
|
123
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
124
|
-
"scripts": {
|
|
125
|
-
"lighting": "// Fixture source bundle\n",
|
|
126
|
-
"empty": ""
|
|
127
|
-
},
|
|
128
|
-
"sdkVersion": "test-sdk-1",
|
|
129
|
-
"parseResults": []
|
|
130
|
-
},
|
|
131
97
|
"id": "fixture-suggestion-1",
|
|
132
98
|
"spaceId": "fixture-space",
|
|
133
99
|
"runId": "fixture-run",
|
|
@@ -146,7 +112,8 @@
|
|
|
146
112
|
"resourceIds": {
|
|
147
113
|
"automationId": "fixture-automation"
|
|
148
114
|
}
|
|
149
|
-
}
|
|
115
|
+
},
|
|
116
|
+
"request": "Use lower evening brightness"
|
|
150
117
|
}
|
|
151
118
|
},
|
|
152
119
|
{
|
|
@@ -198,15 +165,7 @@
|
|
|
198
165
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
199
166
|
}
|
|
200
167
|
],
|
|
201
|
-
"
|
|
202
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
203
|
-
"scripts": {
|
|
204
|
-
"lighting": "// Fixture source bundle\n",
|
|
205
|
-
"empty": ""
|
|
206
|
-
},
|
|
207
|
-
"sdkVersion": "test-sdk-1",
|
|
208
|
-
"parseResults": []
|
|
209
|
-
}
|
|
168
|
+
"request": "Use lower evening brightness"
|
|
210
169
|
},
|
|
211
170
|
{
|
|
212
171
|
"type": "INFORMATION",
|
|
@@ -357,16 +316,8 @@
|
|
|
357
316
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
358
317
|
}
|
|
359
318
|
],
|
|
360
|
-
"
|
|
361
|
-
|
|
362
|
-
"scripts": {
|
|
363
|
-
"lighting": "// Fixture source bundle\n",
|
|
364
|
-
"empty": ""
|
|
365
|
-
},
|
|
366
|
-
"sdkVersion": "test-sdk-1",
|
|
367
|
-
"parseResults": []
|
|
368
|
-
},
|
|
369
|
-
"expiresAt": null
|
|
319
|
+
"expiresAt": null,
|
|
320
|
+
"request": "Use lower evening brightness"
|
|
370
321
|
}
|
|
371
322
|
},
|
|
372
323
|
{
|
|
@@ -433,15 +384,7 @@
|
|
|
433
384
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
434
385
|
}
|
|
435
386
|
],
|
|
436
|
-
"
|
|
437
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
438
|
-
"scripts": {
|
|
439
|
-
"lighting": "// Fixture source bundle\n",
|
|
440
|
-
"empty": ""
|
|
441
|
-
},
|
|
442
|
-
"sdkVersion": "test-sdk-1",
|
|
443
|
-
"parseResults": []
|
|
444
|
-
}
|
|
387
|
+
"request": "Use lower evening brightness"
|
|
445
388
|
}
|
|
446
389
|
},
|
|
447
390
|
{
|
|
@@ -463,15 +406,6 @@
|
|
|
463
406
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
464
407
|
}
|
|
465
408
|
],
|
|
466
|
-
"script": {
|
|
467
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
468
|
-
"scripts": {
|
|
469
|
-
"lighting": "// Fixture source bundle\n",
|
|
470
|
-
"empty": ""
|
|
471
|
-
},
|
|
472
|
-
"sdkVersion": "test-sdk-1",
|
|
473
|
-
"parseResults": []
|
|
474
|
-
},
|
|
475
409
|
"id": "fixture-suggestion-1",
|
|
476
410
|
"spaceId": "fixture-space",
|
|
477
411
|
"runId": "fixture-run",
|
|
@@ -497,7 +431,8 @@
|
|
|
497
431
|
"enabled": true
|
|
498
432
|
}
|
|
499
433
|
}
|
|
500
|
-
}
|
|
434
|
+
},
|
|
435
|
+
"request": "Use lower evening brightness"
|
|
501
436
|
}
|
|
502
437
|
},
|
|
503
438
|
{
|
|
@@ -534,15 +469,6 @@
|
|
|
534
469
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
535
470
|
}
|
|
536
471
|
],
|
|
537
|
-
"script": {
|
|
538
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
539
|
-
"scripts": {
|
|
540
|
-
"lighting": "// Fixture source bundle\n",
|
|
541
|
-
"empty": ""
|
|
542
|
-
},
|
|
543
|
-
"sdkVersion": "test-sdk-1",
|
|
544
|
-
"parseResults": []
|
|
545
|
-
},
|
|
546
472
|
"id": "fixture-suggestion-1",
|
|
547
473
|
"spaceId": "fixture-space",
|
|
548
474
|
"runId": "fixture-run",
|
|
@@ -574,7 +500,8 @@
|
|
|
574
500
|
}
|
|
575
501
|
]
|
|
576
502
|
}
|
|
577
|
-
}
|
|
503
|
+
},
|
|
504
|
+
"request": "Use lower evening brightness"
|
|
578
505
|
}
|
|
579
506
|
},
|
|
580
507
|
{
|
|
@@ -611,15 +538,6 @@
|
|
|
611
538
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
612
539
|
}
|
|
613
540
|
],
|
|
614
|
-
"script": {
|
|
615
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
616
|
-
"scripts": {
|
|
617
|
-
"lighting": "// Fixture source bundle\n",
|
|
618
|
-
"empty": ""
|
|
619
|
-
},
|
|
620
|
-
"sdkVersion": "test-sdk-1",
|
|
621
|
-
"parseResults": []
|
|
622
|
-
},
|
|
623
541
|
"id": "fixture-suggestion-1",
|
|
624
542
|
"spaceId": "fixture-space",
|
|
625
543
|
"runId": "fixture-run",
|
|
@@ -645,7 +563,8 @@
|
|
|
645
563
|
"message": "Script validation failed"
|
|
646
564
|
}
|
|
647
565
|
}
|
|
648
|
-
}
|
|
566
|
+
},
|
|
567
|
+
"request": "Use lower evening brightness"
|
|
649
568
|
}
|
|
650
569
|
},
|
|
651
570
|
{
|
|
@@ -682,15 +601,6 @@
|
|
|
682
601
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
683
602
|
}
|
|
684
603
|
],
|
|
685
|
-
"script": {
|
|
686
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
687
|
-
"scripts": {
|
|
688
|
-
"lighting": "// Fixture source bundle\n",
|
|
689
|
-
"empty": ""
|
|
690
|
-
},
|
|
691
|
-
"sdkVersion": "test-sdk-1",
|
|
692
|
-
"parseResults": []
|
|
693
|
-
},
|
|
694
604
|
"id": "fixture-suggestion-1",
|
|
695
605
|
"spaceId": "fixture-space",
|
|
696
606
|
"runId": "fixture-run",
|
|
@@ -716,7 +626,8 @@
|
|
|
716
626
|
"message": "The write outcome is unknown"
|
|
717
627
|
}
|
|
718
628
|
}
|
|
719
|
-
}
|
|
629
|
+
},
|
|
630
|
+
"request": "Use lower evening brightness"
|
|
720
631
|
}
|
|
721
632
|
},
|
|
722
633
|
{
|
|
@@ -777,6 +688,86 @@
|
|
|
777
688
|
"enabled": false,
|
|
778
689
|
"intervalMinutes": 90
|
|
779
690
|
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "processing adoption",
|
|
694
|
+
"type": "AutomationSuggestion",
|
|
695
|
+
"value": {
|
|
696
|
+
"type": "AUTOMATION",
|
|
697
|
+
"operation": "CREATE",
|
|
698
|
+
"title": "Evening lighting",
|
|
699
|
+
"summary": "Suggest a lower evening brightness",
|
|
700
|
+
"reasons": [
|
|
701
|
+
"Observed manual adjustments after the evening routine"
|
|
702
|
+
],
|
|
703
|
+
"evidence": [
|
|
704
|
+
{
|
|
705
|
+
"sourceType": "BEHAVIOR",
|
|
706
|
+
"sourceId": "fixture-operation-1",
|
|
707
|
+
"occurredAt": 1000,
|
|
708
|
+
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"id": "fixture-suggestion-1",
|
|
712
|
+
"spaceId": "fixture-space",
|
|
713
|
+
"runId": "fixture-run",
|
|
714
|
+
"version": 1,
|
|
715
|
+
"status": "PROCESSING",
|
|
716
|
+
"createdAt": 2000,
|
|
717
|
+
"updatedAt": 3000,
|
|
718
|
+
"resolution": {
|
|
719
|
+
"action": "SAVE",
|
|
720
|
+
"operationId": "fixture-apply",
|
|
721
|
+
"handledAt": 3000,
|
|
722
|
+
"actor": {
|
|
723
|
+
"kind": "user",
|
|
724
|
+
"userId": "fixture-user"
|
|
725
|
+
},
|
|
726
|
+
"resourceIds": {
|
|
727
|
+
"automationId": "fixture-automation"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"request": "Use lower evening brightness"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "processing has no final result",
|
|
735
|
+
"type": "AutomationSuggestion",
|
|
736
|
+
"value": {
|
|
737
|
+
"type": "AUTOMATION",
|
|
738
|
+
"operation": "CREATE",
|
|
739
|
+
"title": "Evening lighting",
|
|
740
|
+
"summary": "Suggest a lower evening brightness",
|
|
741
|
+
"reasons": [
|
|
742
|
+
"Observed manual adjustments after the evening routine"
|
|
743
|
+
],
|
|
744
|
+
"evidence": [
|
|
745
|
+
{
|
|
746
|
+
"sourceType": "BEHAVIOR",
|
|
747
|
+
"sourceId": "fixture-operation-1",
|
|
748
|
+
"occurredAt": 1000,
|
|
749
|
+
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"id": "fixture-suggestion-1",
|
|
753
|
+
"spaceId": "fixture-space",
|
|
754
|
+
"runId": "fixture-run",
|
|
755
|
+
"version": 1,
|
|
756
|
+
"status": "PROCESSING",
|
|
757
|
+
"createdAt": 2000,
|
|
758
|
+
"updatedAt": 2000,
|
|
759
|
+
"request": "Use lower evening brightness",
|
|
760
|
+
"resolution": {
|
|
761
|
+
"action": "APPLY",
|
|
762
|
+
"operationId": "fixture-op",
|
|
763
|
+
"handledAt": 2000,
|
|
764
|
+
"actor": {
|
|
765
|
+
"kind": "user",
|
|
766
|
+
"userId": "fixture-user"
|
|
767
|
+
},
|
|
768
|
+
"resourceIds": {}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
780
771
|
}
|
|
781
772
|
],
|
|
782
773
|
"invalid": [
|
|
@@ -799,16 +790,8 @@
|
|
|
799
790
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
800
791
|
}
|
|
801
792
|
],
|
|
802
|
-
"
|
|
803
|
-
|
|
804
|
-
"scripts": {
|
|
805
|
-
"lighting": "// Fixture source bundle\n",
|
|
806
|
-
"empty": ""
|
|
807
|
-
},
|
|
808
|
-
"sdkVersion": "test-sdk-1",
|
|
809
|
-
"parseResults": []
|
|
810
|
-
},
|
|
811
|
-
"spaceId": "forged"
|
|
793
|
+
"spaceId": "forged",
|
|
794
|
+
"request": "Use lower evening brightness"
|
|
812
795
|
}
|
|
813
796
|
},
|
|
814
797
|
{
|
|
@@ -858,15 +841,7 @@
|
|
|
858
841
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
859
842
|
}
|
|
860
843
|
],
|
|
861
|
-
"
|
|
862
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
863
|
-
"scripts": {
|
|
864
|
-
"lighting": "// Fixture source bundle\n",
|
|
865
|
-
"empty": ""
|
|
866
|
-
},
|
|
867
|
-
"sdkVersion": "test-sdk-1",
|
|
868
|
-
"parseResults": []
|
|
869
|
-
}
|
|
844
|
+
"request": "Use lower evening brightness"
|
|
870
845
|
}
|
|
871
846
|
},
|
|
872
847
|
{
|
|
@@ -888,13 +863,11 @@
|
|
|
888
863
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
889
864
|
}
|
|
890
865
|
],
|
|
891
|
-
"
|
|
892
|
-
"script": " "
|
|
893
|
-
}
|
|
866
|
+
"request": ""
|
|
894
867
|
}
|
|
895
868
|
},
|
|
896
869
|
{
|
|
897
|
-
"name": "
|
|
870
|
+
"name": "proposal cannot supply generated source",
|
|
898
871
|
"type": "AutomationDraft",
|
|
899
872
|
"value": {
|
|
900
873
|
"type": "AUTOMATION",
|
|
@@ -912,15 +885,9 @@
|
|
|
912
885
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
913
886
|
}
|
|
914
887
|
],
|
|
888
|
+
"request": "Use lower evening brightness",
|
|
915
889
|
"script": {
|
|
916
|
-
"script": "
|
|
917
|
-
"scripts": {
|
|
918
|
-
"lighting": "// Fixture source bundle\n",
|
|
919
|
-
"empty": ""
|
|
920
|
-
},
|
|
921
|
-
"sdkVersion": "test-sdk-1",
|
|
922
|
-
"parseResults": [],
|
|
923
|
-
"unsafeExecute": true
|
|
890
|
+
"script": "not allowed"
|
|
924
891
|
}
|
|
925
892
|
}
|
|
926
893
|
},
|
|
@@ -943,20 +910,12 @@
|
|
|
943
910
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
944
911
|
}
|
|
945
912
|
],
|
|
946
|
-
"
|
|
947
|
-
|
|
948
|
-
"scripts": {
|
|
949
|
-
"lighting": "// Fixture source bundle\n",
|
|
950
|
-
"empty": ""
|
|
951
|
-
},
|
|
952
|
-
"sdkVersion": "test-sdk-1",
|
|
953
|
-
"parseResults": []
|
|
954
|
-
},
|
|
955
|
-
"automationId": "old"
|
|
913
|
+
"automationId": "old",
|
|
914
|
+
"request": "Use lower evening brightness"
|
|
956
915
|
}
|
|
957
916
|
},
|
|
958
917
|
{
|
|
959
|
-
"name": "UPDATE lacks
|
|
918
|
+
"name": "UPDATE lacks target",
|
|
960
919
|
"type": "AutomationDraft",
|
|
961
920
|
"value": {
|
|
962
921
|
"type": "AUTOMATION",
|
|
@@ -974,16 +933,7 @@
|
|
|
974
933
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
975
934
|
}
|
|
976
935
|
],
|
|
977
|
-
"
|
|
978
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
979
|
-
"scripts": {
|
|
980
|
-
"lighting": "// Fixture source bundle\n",
|
|
981
|
-
"empty": ""
|
|
982
|
-
},
|
|
983
|
-
"sdkVersion": "test-sdk-1",
|
|
984
|
-
"parseResults": []
|
|
985
|
-
},
|
|
986
|
-
"automationId": "old"
|
|
936
|
+
"request": "Use lower evening brightness"
|
|
987
937
|
}
|
|
988
938
|
},
|
|
989
939
|
{
|
|
@@ -1033,22 +983,14 @@
|
|
|
1033
983
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1034
984
|
}
|
|
1035
985
|
],
|
|
1036
|
-
"script": {
|
|
1037
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1038
|
-
"scripts": {
|
|
1039
|
-
"lighting": "// Fixture source bundle\n",
|
|
1040
|
-
"empty": ""
|
|
1041
|
-
},
|
|
1042
|
-
"sdkVersion": "test-sdk-1",
|
|
1043
|
-
"parseResults": []
|
|
1044
|
-
},
|
|
1045
986
|
"id": "fixture-suggestion-1",
|
|
1046
987
|
"spaceId": "fixture-space",
|
|
1047
988
|
"runId": "fixture-run",
|
|
1048
989
|
"version": 1,
|
|
1049
990
|
"status": "RESOLVED",
|
|
1050
991
|
"createdAt": 2000,
|
|
1051
|
-
"updatedAt": 2000
|
|
992
|
+
"updatedAt": 2000,
|
|
993
|
+
"request": "Use lower evening brightness"
|
|
1052
994
|
}
|
|
1053
995
|
},
|
|
1054
996
|
{
|
|
@@ -1070,15 +1012,6 @@
|
|
|
1070
1012
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1071
1013
|
}
|
|
1072
1014
|
],
|
|
1073
|
-
"script": {
|
|
1074
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1075
|
-
"scripts": {
|
|
1076
|
-
"lighting": "// Fixture source bundle\n",
|
|
1077
|
-
"empty": ""
|
|
1078
|
-
},
|
|
1079
|
-
"sdkVersion": "test-sdk-1",
|
|
1080
|
-
"parseResults": []
|
|
1081
|
-
},
|
|
1082
1015
|
"id": "fixture-suggestion-1",
|
|
1083
1016
|
"spaceId": "fixture-space",
|
|
1084
1017
|
"runId": "fixture-run",
|
|
@@ -1097,7 +1030,8 @@
|
|
|
1097
1030
|
"resourceIds": {
|
|
1098
1031
|
"automationId": "fixture-automation"
|
|
1099
1032
|
}
|
|
1100
|
-
}
|
|
1033
|
+
},
|
|
1034
|
+
"request": "Use lower evening brightness"
|
|
1101
1035
|
}
|
|
1102
1036
|
},
|
|
1103
1037
|
{
|
|
@@ -1119,22 +1053,14 @@
|
|
|
1119
1053
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1120
1054
|
}
|
|
1121
1055
|
],
|
|
1122
|
-
"script": {
|
|
1123
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1124
|
-
"scripts": {
|
|
1125
|
-
"lighting": "// Fixture source bundle\n",
|
|
1126
|
-
"empty": ""
|
|
1127
|
-
},
|
|
1128
|
-
"sdkVersion": "test-sdk-1",
|
|
1129
|
-
"parseResults": []
|
|
1130
|
-
},
|
|
1131
1056
|
"id": "fixture-suggestion-1",
|
|
1132
1057
|
"spaceId": "fixture-space",
|
|
1133
1058
|
"runId": "fixture-run",
|
|
1134
1059
|
"version": 9007199254740992,
|
|
1135
1060
|
"status": "PENDING",
|
|
1136
1061
|
"createdAt": 2000,
|
|
1137
|
-
"updatedAt": 2000
|
|
1062
|
+
"updatedAt": 2000,
|
|
1063
|
+
"request": "Use lower evening brightness"
|
|
1138
1064
|
}
|
|
1139
1065
|
},
|
|
1140
1066
|
{
|
|
@@ -1265,15 +1191,7 @@
|
|
|
1265
1191
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1266
1192
|
}
|
|
1267
1193
|
],
|
|
1268
|
-
"
|
|
1269
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1270
|
-
"scripts": {
|
|
1271
|
-
"lighting": "// Fixture source bundle\n",
|
|
1272
|
-
"empty": ""
|
|
1273
|
-
},
|
|
1274
|
-
"sdkVersion": "test-sdk-1",
|
|
1275
|
-
"parseResults": []
|
|
1276
|
-
}
|
|
1194
|
+
"request": "Use lower evening brightness"
|
|
1277
1195
|
}
|
|
1278
1196
|
},
|
|
1279
1197
|
{
|
|
@@ -1315,15 +1233,6 @@
|
|
|
1315
1233
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1316
1234
|
}
|
|
1317
1235
|
],
|
|
1318
|
-
"script": {
|
|
1319
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1320
|
-
"scripts": {
|
|
1321
|
-
"lighting": "// Fixture source bundle\n",
|
|
1322
|
-
"empty": ""
|
|
1323
|
-
},
|
|
1324
|
-
"sdkVersion": "test-sdk-1",
|
|
1325
|
-
"parseResults": []
|
|
1326
|
-
},
|
|
1327
1236
|
"id": "fixture-suggestion-1",
|
|
1328
1237
|
"spaceId": "fixture-space",
|
|
1329
1238
|
"runId": "fixture-run",
|
|
@@ -1345,7 +1254,8 @@
|
|
|
1345
1254
|
"result": {
|
|
1346
1255
|
"status": "partial"
|
|
1347
1256
|
}
|
|
1348
|
-
}
|
|
1257
|
+
},
|
|
1258
|
+
"request": "Use lower evening brightness"
|
|
1349
1259
|
}
|
|
1350
1260
|
},
|
|
1351
1261
|
{
|
|
@@ -1367,15 +1277,6 @@
|
|
|
1367
1277
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1368
1278
|
}
|
|
1369
1279
|
],
|
|
1370
|
-
"script": {
|
|
1371
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1372
|
-
"scripts": {
|
|
1373
|
-
"lighting": "// Fixture source bundle\n",
|
|
1374
|
-
"empty": ""
|
|
1375
|
-
},
|
|
1376
|
-
"sdkVersion": "test-sdk-1",
|
|
1377
|
-
"parseResults": []
|
|
1378
|
-
},
|
|
1379
1280
|
"id": "fixture-suggestion-1",
|
|
1380
1281
|
"spaceId": "fixture-space",
|
|
1381
1282
|
"runId": "fixture-run",
|
|
@@ -1397,7 +1298,8 @@
|
|
|
1397
1298
|
"result": {
|
|
1398
1299
|
"status": "unknown"
|
|
1399
1300
|
}
|
|
1400
|
-
}
|
|
1301
|
+
},
|
|
1302
|
+
"request": "Use lower evening brightness"
|
|
1401
1303
|
}
|
|
1402
1304
|
},
|
|
1403
1305
|
{
|
|
@@ -1419,15 +1321,6 @@
|
|
|
1419
1321
|
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1420
1322
|
}
|
|
1421
1323
|
],
|
|
1422
|
-
"script": {
|
|
1423
|
-
"script": "name: Contract fixture\ntask: []\n",
|
|
1424
|
-
"scripts": {
|
|
1425
|
-
"lighting": "// Fixture source bundle\n",
|
|
1426
|
-
"empty": ""
|
|
1427
|
-
},
|
|
1428
|
-
"sdkVersion": "test-sdk-1",
|
|
1429
|
-
"parseResults": []
|
|
1430
|
-
},
|
|
1431
1324
|
"id": "fixture-suggestion-1",
|
|
1432
1325
|
"spaceId": "fixture-space",
|
|
1433
1326
|
"runId": "fixture-run",
|
|
@@ -1450,7 +1343,8 @@
|
|
|
1450
1343
|
"status": "success",
|
|
1451
1344
|
"retry": true
|
|
1452
1345
|
}
|
|
1453
|
-
}
|
|
1346
|
+
},
|
|
1347
|
+
"request": "Use lower evening brightness"
|
|
1454
1348
|
}
|
|
1455
1349
|
},
|
|
1456
1350
|
{
|
|
@@ -1569,6 +1463,88 @@
|
|
|
1569
1463
|
"enabled": true,
|
|
1570
1464
|
"intervalMinutes": null
|
|
1571
1465
|
}
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "processing rejects result",
|
|
1469
|
+
"type": "AutomationSuggestion",
|
|
1470
|
+
"value": {
|
|
1471
|
+
"type": "AUTOMATION",
|
|
1472
|
+
"operation": "CREATE",
|
|
1473
|
+
"title": "Evening lighting",
|
|
1474
|
+
"summary": "Suggest a lower evening brightness",
|
|
1475
|
+
"reasons": [
|
|
1476
|
+
"Observed manual adjustments after the evening routine"
|
|
1477
|
+
],
|
|
1478
|
+
"evidence": [
|
|
1479
|
+
{
|
|
1480
|
+
"sourceType": "BEHAVIOR",
|
|
1481
|
+
"sourceId": "fixture-operation-1",
|
|
1482
|
+
"occurredAt": 1000,
|
|
1483
|
+
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1484
|
+
}
|
|
1485
|
+
],
|
|
1486
|
+
"id": "fixture-suggestion-1",
|
|
1487
|
+
"spaceId": "fixture-space",
|
|
1488
|
+
"runId": "fixture-run",
|
|
1489
|
+
"version": 1,
|
|
1490
|
+
"status": "PROCESSING",
|
|
1491
|
+
"createdAt": 2000,
|
|
1492
|
+
"updatedAt": 2000,
|
|
1493
|
+
"request": "Use lower evening brightness",
|
|
1494
|
+
"resolution": {
|
|
1495
|
+
"action": "APPLY",
|
|
1496
|
+
"operationId": "fixture-op",
|
|
1497
|
+
"handledAt": 2000,
|
|
1498
|
+
"actor": {
|
|
1499
|
+
"kind": "user",
|
|
1500
|
+
"userId": "fixture-user"
|
|
1501
|
+
},
|
|
1502
|
+
"resourceIds": {},
|
|
1503
|
+
"result": {
|
|
1504
|
+
"status": "success"
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"name": "processing rejects feedback",
|
|
1511
|
+
"type": "AutomationSuggestion",
|
|
1512
|
+
"value": {
|
|
1513
|
+
"type": "AUTOMATION",
|
|
1514
|
+
"operation": "CREATE",
|
|
1515
|
+
"title": "Evening lighting",
|
|
1516
|
+
"summary": "Suggest a lower evening brightness",
|
|
1517
|
+
"reasons": [
|
|
1518
|
+
"Observed manual adjustments after the evening routine"
|
|
1519
|
+
],
|
|
1520
|
+
"evidence": [
|
|
1521
|
+
{
|
|
1522
|
+
"sourceType": "BEHAVIOR",
|
|
1523
|
+
"sourceId": "fixture-operation-1",
|
|
1524
|
+
"occurredAt": 1000,
|
|
1525
|
+
"excerpt": "The user selected brightness 30 after brightness 80"
|
|
1526
|
+
}
|
|
1527
|
+
],
|
|
1528
|
+
"id": "fixture-suggestion-1",
|
|
1529
|
+
"spaceId": "fixture-space",
|
|
1530
|
+
"runId": "fixture-run",
|
|
1531
|
+
"version": 1,
|
|
1532
|
+
"status": "PROCESSING",
|
|
1533
|
+
"createdAt": 2000,
|
|
1534
|
+
"updatedAt": 2000,
|
|
1535
|
+
"request": "Use lower evening brightness",
|
|
1536
|
+
"resolution": {
|
|
1537
|
+
"action": "APPLY",
|
|
1538
|
+
"operationId": "fixture-op",
|
|
1539
|
+
"handledAt": 2000,
|
|
1540
|
+
"actor": {
|
|
1541
|
+
"kind": "user",
|
|
1542
|
+
"userId": "fixture-user"
|
|
1543
|
+
},
|
|
1544
|
+
"resourceIds": {},
|
|
1545
|
+
"feedback": "already done"
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1572
1548
|
}
|
|
1573
1549
|
]
|
|
1574
1550
|
}
|