@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.
@@ -80,22 +80,14 @@
80
80
  "excerpt": "The user selected brightness 30 after brightness 80"
81
81
  }
82
82
  ],
83
- "script": {
84
- "script": "name: Contract fixture\ntask: []\n",
85
- "scripts": {
86
- "lighting": "// Fixture source bundle\n",
87
- "empty": ""
88
- },
89
- "sdkVersion": "test-sdk-1",
90
- "parseResults": []
91
- },
92
83
  "id": "pending",
93
84
  "spaceId": "space",
94
85
  "runId": "run",
95
86
  "version": 1,
96
87
  "status": "PENDING",
97
88
  "createdAt": 2000,
98
- "updatedAt": 2000
89
+ "updatedAt": 2000,
90
+ "request": "Use lower evening brightness"
99
91
  }
100
92
  },
101
93
  {
@@ -117,15 +109,6 @@
117
109
  "excerpt": "The user selected brightness 30 after brightness 80"
118
110
  }
119
111
  ],
120
- "script": {
121
- "script": "name: Contract fixture\ntask: []\n",
122
- "scripts": {
123
- "lighting": "// Fixture source bundle\n",
124
- "empty": ""
125
- },
126
- "sdkVersion": "test-sdk-1",
127
- "parseResults": []
128
- },
129
112
  "id": "resolved",
130
113
  "spaceId": "space",
131
114
  "runId": "run",
@@ -157,7 +140,8 @@
157
140
  }
158
141
  ]
159
142
  }
160
- }
143
+ },
144
+ "request": "Use lower evening brightness"
161
145
  }
162
146
  }
163
147
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "callSchema": "schema/facade-call.v1.schema.json",
5
5
  "routing": "manifest/routing.v1.json",
6
6
  "routingSchema": "schema/routing.v1.schema.json",
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.172.0",
2
+ "contractVersion": "1.177.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/conversation/get": "spaceRead",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "contract": "contract/host-provisioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/host/provision/start",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.hub.targets.v1",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "appTargets": [
5
5
  "/app/hub/get",
6
6
  "/app/hub/remove"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.pod.targets.v1",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",
@@ -251,6 +251,9 @@
251
251
  "action"
252
252
  ],
253
253
  "output": [
254
+ "suggestionId",
255
+ "status",
256
+ "operationId",
254
257
  "automationId",
255
258
  "previousStatus",
256
259
  "restoreIssue"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "targetPrefix": "/app/",
5
5
  "default": {
6
6
  "execution": "spaceMode"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.messaging.targets.v1",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "requestTargets": [
5
5
  "/app/messaging/provider/list",
6
6
  "/app/messaging/provider-account/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/app-facade-protocol",
3
- "version": "1.172.0",
3
+ "version": "1.177.0",
4
4
  "description": "Build-time protocol artifacts for mhome.app-facade",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.app-facade",
3
- "contractVersion": "1.172.0",
3
+ "contractVersion": "1.177.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "dashboardCardAuthoring": "schema/dashboard-card-authoring.v1.schema.json",
@@ -12,7 +12,6 @@
12
12
  "ids": {
13
13
  "type": "array",
14
14
  "minItems": 1,
15
- "maxItems": 100,
16
15
  "items": {
17
16
  "type": "string",
18
17
  "pattern": "\\S"
@@ -679,6 +678,13 @@
679
678
  "INTERRUPTED",
680
679
  "CANCELLED"
681
680
  ]
681
+ },
682
+ "failureCode": {
683
+ "type": [
684
+ "string",
685
+ "null"
686
+ ],
687
+ "description": "SUPPRESSED only when the whole Automation was blocked on entry/resume; absent otherwise."
682
688
  }
683
689
  }
684
690
  }
@@ -94,7 +94,6 @@
94
94
  "ids": {
95
95
  "type": "array",
96
96
  "minItems": 1,
97
- "maxItems": 100,
98
97
  "items": {
99
98
  "type": "string",
100
99
  "pattern": "\\S"
@@ -183,7 +182,6 @@
183
182
  "properties": {
184
183
  "items": {
185
184
  "type": "array",
186
- "maxItems": 100,
187
185
  "items": {
188
186
  "$ref": "#/$defs/metaItem"
189
187
  }
@@ -23,8 +23,7 @@
23
23
  "items": {
24
24
  "type": "string",
25
25
  "minLength": 1
26
- },
27
- "maxItems": 100
26
+ }
28
27
  }
29
28
  },
30
29
  "required": [
@@ -297,6 +297,7 @@
297
297
  "status": {
298
298
  "enum": [
299
299
  "PENDING",
300
+ "PROCESSING",
300
301
  "RESOLVED",
301
302
  "DISMISSED",
302
303
  "EXPIRED"
@@ -344,6 +345,7 @@
344
345
  "properties": {
345
346
  "status": {
346
347
  "enum": [
348
+ "PROCESSING",
347
349
  "RESOLVED",
348
350
  "DISMISSED"
349
351
  ]
@@ -373,6 +375,33 @@
373
375
  },
374
376
  "type": "object"
375
377
  }
378
+ },
379
+ {
380
+ "if": {
381
+ "properties": {
382
+ "status": {
383
+ "const": "PROCESSING"
384
+ }
385
+ },
386
+ "required": [
387
+ "status"
388
+ ]
389
+ },
390
+ "then": {
391
+ "properties": {
392
+ "resolution": {
393
+ "properties": {
394
+ "result": {
395
+ "type": "null"
396
+ },
397
+ "feedback": {
398
+ "type": "null"
399
+ }
400
+ },
401
+ "type": "object"
402
+ }
403
+ }
404
+ }
376
405
  }
377
406
  ]
378
407
  },
@@ -434,19 +463,16 @@
434
463
  }
435
464
  ]
436
465
  },
437
- "baseScriptHash": {
438
- "anyOf": [
439
- {
440
- "type": "string",
441
- "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
442
- },
443
- {
444
- "type": "null"
445
- }
446
- ]
466
+ "request": {
467
+ "type": "string",
468
+ "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
447
469
  },
448
- "script": {
449
- "$ref": "#/$defs/AutomationScript"
470
+ "relatedAutomationIds": {
471
+ "type": "array",
472
+ "items": {
473
+ "type": "string",
474
+ "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
475
+ }
450
476
  }
451
477
  },
452
478
  "required": [
@@ -456,7 +482,7 @@
456
482
  "reasons",
457
483
  "evidence",
458
484
  "operation",
459
- "script"
485
+ "request"
460
486
  ],
461
487
  "additionalProperties": false,
462
488
  "allOf": [
@@ -474,17 +500,12 @@
474
500
  },
475
501
  "then": {
476
502
  "required": [
477
- "automationId",
478
- "baseScriptHash"
503
+ "automationId"
479
504
  ],
480
505
  "properties": {
481
506
  "automationId": {
482
507
  "type": "string",
483
508
  "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
484
- },
485
- "baseScriptHash": {
486
- "type": "string",
487
- "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
488
509
  }
489
510
  },
490
511
  "type": "object"
@@ -493,9 +514,6 @@
493
514
  "properties": {
494
515
  "automationId": {
495
516
  "type": "null"
496
- },
497
- "baseScriptHash": {
498
- "type": "null"
499
517
  }
500
518
  },
501
519
  "type": "object"
@@ -561,20 +579,6 @@
561
579
  }
562
580
  ]
563
581
  },
564
- "baseScriptHash": {
565
- "anyOf": [
566
- {
567
- "type": "string",
568
- "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
569
- },
570
- {
571
- "type": "null"
572
- }
573
- ]
574
- },
575
- "script": {
576
- "$ref": "#/$defs/AutomationScript"
577
- },
578
582
  "id": {
579
583
  "type": "string",
580
584
  "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
@@ -595,6 +599,7 @@
595
599
  "status": {
596
600
  "enum": [
597
601
  "PENDING",
602
+ "PROCESSING",
598
603
  "RESOLVED",
599
604
  "DISMISSED",
600
605
  "EXPIRED"
@@ -619,6 +624,17 @@
619
624
  "type": "null"
620
625
  }
621
626
  ]
627
+ },
628
+ "request": {
629
+ "type": "string",
630
+ "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
631
+ },
632
+ "relatedAutomationIds": {
633
+ "type": "array",
634
+ "items": {
635
+ "type": "string",
636
+ "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
637
+ }
622
638
  }
623
639
  },
624
640
  "required": [
@@ -635,7 +651,7 @@
635
651
  "createdAt",
636
652
  "updatedAt",
637
653
  "operation",
638
- "script"
654
+ "request"
639
655
  ],
640
656
  "additionalProperties": false,
641
657
  "allOf": [
@@ -653,17 +669,12 @@
653
669
  },
654
670
  "then": {
655
671
  "required": [
656
- "automationId",
657
- "baseScriptHash"
672
+ "automationId"
658
673
  ],
659
674
  "properties": {
660
675
  "automationId": {
661
676
  "type": "string",
662
677
  "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
663
- },
664
- "baseScriptHash": {
665
- "type": "string",
666
- "pattern": "[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]"
667
678
  }
668
679
  },
669
680
  "type": "object"
@@ -672,9 +683,6 @@
672
683
  "properties": {
673
684
  "automationId": {
674
685
  "type": "null"
675
- },
676
- "baseScriptHash": {
677
- "type": "null"
678
686
  }
679
687
  },
680
688
  "type": "object"
@@ -685,6 +693,7 @@
685
693
  "properties": {
686
694
  "status": {
687
695
  "enum": [
696
+ "PROCESSING",
688
697
  "RESOLVED",
689
698
  "DISMISSED"
690
699
  ]
@@ -714,6 +723,33 @@
714
723
  },
715
724
  "type": "object"
716
725
  }
726
+ },
727
+ {
728
+ "if": {
729
+ "properties": {
730
+ "status": {
731
+ "const": "PROCESSING"
732
+ }
733
+ },
734
+ "required": [
735
+ "status"
736
+ ]
737
+ },
738
+ "then": {
739
+ "properties": {
740
+ "resolution": {
741
+ "properties": {
742
+ "result": {
743
+ "type": "null"
744
+ },
745
+ "feedback": {
746
+ "type": "null"
747
+ }
748
+ },
749
+ "type": "object"
750
+ }
751
+ }
752
+ }
717
753
  }
718
754
  ]
719
755
  },
@@ -821,6 +857,7 @@
821
857
  "items": {
822
858
  "enum": [
823
859
  "PENDING",
860
+ "PROCESSING",
824
861
  "RESOLVED",
825
862
  "DISMISSED",
826
863
  "EXPIRED"
@@ -875,6 +912,7 @@
875
912
  "status": {
876
913
  "enum": [
877
914
  "PENDING",
915
+ "PROCESSING",
878
916
  "RESOLVED",
879
917
  "DISMISSED",
880
918
  "EXPIRED"