@mhome/app-facade-protocol 1.113.0 → 1.115.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.
@@ -0,0 +1,644 @@
1
+ [
2
+ {
3
+ "target": "/app/widget/data/update",
4
+ "input": {
5
+ "widgetId": "lamp-d",
6
+ "typedValue": 0,
7
+ "internal": "secret"
8
+ },
9
+ "outcome": {
10
+ "status": "success"
11
+ },
12
+ "expected": {
13
+ "event": "widget.value.set",
14
+ "widgetId": "lamp-d",
15
+ "typedValue": 0,
16
+ "status": "success"
17
+ }
18
+ },
19
+ {
20
+ "target": "/app/widget/data/update",
21
+ "input": {
22
+ "widgetId": "lamp-d",
23
+ "typedValue": null
24
+ },
25
+ "outcome": {
26
+ "status": "error",
27
+ "error": {
28
+ "code": "UNREACHABLE",
29
+ "message": "private",
30
+ "details": {
31
+ "token": "secret"
32
+ }
33
+ }
34
+ },
35
+ "expected": {
36
+ "event": "widget.value.set",
37
+ "widgetId": "lamp-d",
38
+ "typedValue": null,
39
+ "status": "error",
40
+ "errorCode": "UNREACHABLE"
41
+ }
42
+ },
43
+ {
44
+ "target": "/app/widget/delete",
45
+ "input": {
46
+ "widgetIds": [
47
+ "x-d",
48
+ "wake-c"
49
+ ]
50
+ },
51
+ "outcome": {
52
+ "status": "success"
53
+ },
54
+ "expected": {
55
+ "event": "circadian.deleted",
56
+ "widgetIds": [
57
+ "wake-c"
58
+ ],
59
+ "status": "success"
60
+ }
61
+ },
62
+ {
63
+ "target": "/app/widget/delete",
64
+ "input": {
65
+ "widgetIds": [
66
+ "x-d"
67
+ ]
68
+ },
69
+ "outcome": {
70
+ "status": "success"
71
+ },
72
+ "expected": null
73
+ },
74
+ {
75
+ "target": "/app/widget/circadian/config/update",
76
+ "input": {
77
+ "widgetId": "wake-c",
78
+ "displayName": "Wake"
79
+ },
80
+ "outcome": {
81
+ "status": "success"
82
+ },
83
+ "expected": null
84
+ },
85
+ {
86
+ "target": "/app/widget/circadian/runtime/update",
87
+ "input": {
88
+ "widgetId": "wake-c",
89
+ "offset": 0,
90
+ "multiplier": 1
91
+ },
92
+ "outcome": {
93
+ "status": "success"
94
+ },
95
+ "expected": {
96
+ "event": "circadian.adjusted",
97
+ "widgetId": "wake-c",
98
+ "offset": 0,
99
+ "multiplier": 1,
100
+ "status": "success"
101
+ }
102
+ },
103
+ {
104
+ "target": "/app/automation/start",
105
+ "input": {
106
+ "automationId": "a",
107
+ "timezone": "Asia/Shanghai"
108
+ },
109
+ "outcome": {
110
+ "status": "success",
111
+ "data": {
112
+ "enabled": true,
113
+ "running": false
114
+ }
115
+ },
116
+ "expected": {
117
+ "event": "automation.start",
118
+ "automationId": "a",
119
+ "enabled": true,
120
+ "running": false,
121
+ "status": "success"
122
+ }
123
+ },
124
+ {
125
+ "target": "/app/dialog/reply",
126
+ "input": {
127
+ "dialogId": "d",
128
+ "value": {
129
+ "choice": false
130
+ }
131
+ },
132
+ "outcome": {
133
+ "status": "success",
134
+ "data": {
135
+ "accepted": true,
136
+ "dialog": {
137
+ "images": [
138
+ "private"
139
+ ]
140
+ }
141
+ }
142
+ },
143
+ "expected": {
144
+ "event": "dialog.answered",
145
+ "dialogId": "d",
146
+ "value": {
147
+ "choice": false
148
+ },
149
+ "accepted": true,
150
+ "status": "success"
151
+ }
152
+ },
153
+ {
154
+ "target": "/app/capability/invoke/json",
155
+ "input": {
156
+ "capabilityId": "mlinkHue.device.command.onOff",
157
+ "request": {
158
+ "device": "device1",
159
+ "command": "off",
160
+ "internal": "secret"
161
+ }
162
+ },
163
+ "outcome": {
164
+ "status": "partial",
165
+ "data": {}
166
+ },
167
+ "expected": {
168
+ "event": "device.command",
169
+ "capabilityId": "mlinkHue.device.command.onOff",
170
+ "parameters": {
171
+ "device": "device1",
172
+ "command": "off"
173
+ },
174
+ "status": "partial"
175
+ }
176
+ },
177
+ {
178
+ "target": "/app/capability/invoke",
179
+ "input": {
180
+ "capabilityId": "basic.device.command.onOff",
181
+ "request": "device: lamp\ncommand: 'off'"
182
+ },
183
+ "outcome": {
184
+ "status": "success"
185
+ },
186
+ "expected": {
187
+ "event": "device.command",
188
+ "capabilityId": "basic.device.command.onOff",
189
+ "parameters": {
190
+ "device": "lamp",
191
+ "command": "off"
192
+ },
193
+ "status": "success"
194
+ }
195
+ },
196
+ {
197
+ "target": "/app/device/disable",
198
+ "input": {},
199
+ "outcome": {
200
+ "status": "success"
201
+ },
202
+ "expected": null
203
+ },
204
+ {
205
+ "target": "/app/room/rename",
206
+ "input": {},
207
+ "outcome": {
208
+ "status": "success"
209
+ },
210
+ "expected": null
211
+ },
212
+ {
213
+ "target": "/app/plugin/camera/device/settings/update",
214
+ "input": {},
215
+ "outcome": {
216
+ "status": "success"
217
+ },
218
+ "expected": null
219
+ },
220
+ {
221
+ "target": "/app/agent/memory/save",
222
+ "input": {},
223
+ "outcome": {
224
+ "status": "success"
225
+ },
226
+ "expected": null
227
+ },
228
+ {
229
+ "target": "/app/automation/list",
230
+ "input": {},
231
+ "outcome": {
232
+ "status": "success"
233
+ },
234
+ "expected": null
235
+ },
236
+ {
237
+ "target": "/app/capability/invoke/json",
238
+ "input": {
239
+ "capabilityId": "basic.device.command.getImageSnapshot",
240
+ "request": {}
241
+ },
242
+ "outcome": {
243
+ "status": "success"
244
+ },
245
+ "expected": null
246
+ },
247
+ {
248
+ "target": "/app/capability/invoke/json",
249
+ "input": {
250
+ "capabilityId": "basic.device.command.prepareWebrtcSession",
251
+ "request": {}
252
+ },
253
+ "outcome": {
254
+ "status": "success"
255
+ },
256
+ "expected": null
257
+ },
258
+ {
259
+ "target": "/app/capability/invoke/json",
260
+ "input": {
261
+ "capabilityId": "basic.device.command.identify",
262
+ "request": {}
263
+ },
264
+ "outcome": {
265
+ "status": "success"
266
+ },
267
+ "expected": null
268
+ },
269
+ {
270
+ "target": "/app/capability/invoke/json",
271
+ "input": {
272
+ "capabilityId": "basic.device.command.onOff",
273
+ "request": {
274
+ "device": {
275
+ "uid": "lamp",
276
+ "name": "Desk lamp",
277
+ "attributes": {
278
+ "private": "hidden"
279
+ }
280
+ },
281
+ "command": "on"
282
+ }
283
+ },
284
+ "outcome": {
285
+ "status": "success"
286
+ },
287
+ "expected": {
288
+ "event": "device.command",
289
+ "capabilityId": "basic.device.command.onOff",
290
+ "parameters": {
291
+ "device": {
292
+ "uid": "lamp",
293
+ "name": "Desk lamp"
294
+ },
295
+ "command": "on"
296
+ },
297
+ "status": "success"
298
+ }
299
+ },
300
+ {
301
+ "target": "/app/presentation/automation/copy",
302
+ "input": {
303
+ "automationId": "old",
304
+ "name": "Bedtime"
305
+ },
306
+ "outcome": {
307
+ "status": "success",
308
+ "data": {
309
+ "automationId": "new"
310
+ }
311
+ },
312
+ "expected": {
313
+ "event": "automation.copy",
314
+ "fromAutomationId": "old",
315
+ "automationId": "new",
316
+ "name": "Bedtime",
317
+ "status": "success"
318
+ }
319
+ },
320
+ {
321
+ "target": "/app/capability/invoke",
322
+ "input": {
323
+ "capabilityId": "basic.device.command.onOff",
324
+ "request": "device: lamp\ncommand: on"
325
+ },
326
+ "outcome": {
327
+ "status": "success"
328
+ },
329
+ "expected": {
330
+ "event": "device.command",
331
+ "capabilityId": "basic.device.command.onOff",
332
+ "parameters": {
333
+ "device": "lamp",
334
+ "command": "on"
335
+ },
336
+ "status": "success"
337
+ }
338
+ },
339
+ {
340
+ "target": "/app/capability/invoke",
341
+ "input": {
342
+ "capabilityId": "basic.device.command.setBrightness",
343
+ "request": "device: lamp\nbrightness: 08"
344
+ },
345
+ "outcome": {
346
+ "status": "success"
347
+ },
348
+ "expected": {
349
+ "event": "device.command",
350
+ "capabilityId": "basic.device.command.setBrightness",
351
+ "parameters": {
352
+ "device": "lamp",
353
+ "brightness": "08"
354
+ },
355
+ "status": "success"
356
+ }
357
+ },
358
+ {
359
+ "target": "/app/capability/invoke",
360
+ "input": {
361
+ "capabilityId": "basic.device.command.setBrightness",
362
+ "request": "device: lamp\nbrightness: 010"
363
+ },
364
+ "outcome": {
365
+ "status": "success"
366
+ },
367
+ "expected": {
368
+ "event": "device.command",
369
+ "capabilityId": "basic.device.command.setBrightness",
370
+ "parameters": {
371
+ "device": "lamp",
372
+ "brightness": "010"
373
+ },
374
+ "status": "success"
375
+ }
376
+ },
377
+ {
378
+ "target": "/app/widget/circadian/config/update",
379
+ "input": {
380
+ "widget_id": "w-c",
381
+ "location_id": "home"
382
+ },
383
+ "outcome": {
384
+ "status": "success"
385
+ },
386
+ "expected": {
387
+ "event": "circadian.configured",
388
+ "widgetId": "w-c",
389
+ "locationId": "home",
390
+ "status": "success"
391
+ }
392
+ },
393
+ {
394
+ "target": "/app/widget/button/trigger",
395
+ "input": {
396
+ "widgetId": "button-b",
397
+ "clickType": "single"
398
+ },
399
+ "outcome": {
400
+ "status": "success",
401
+ "data": {}
402
+ },
403
+ "expected": {
404
+ "event": "widget.button.pressed",
405
+ "widgetId": "button-b",
406
+ "clickType": "single",
407
+ "status": "success"
408
+ }
409
+ },
410
+ {
411
+ "target": "/app/automation/stop",
412
+ "input": {
413
+ "automationId": "A-1"
414
+ },
415
+ "outcome": {
416
+ "status": "success",
417
+ "data": {
418
+ "enabled": false,
419
+ "running": false
420
+ }
421
+ },
422
+ "expected": {
423
+ "event": "automation.stop",
424
+ "automationId": "A-1",
425
+ "enabled": false,
426
+ "running": false,
427
+ "status": "success"
428
+ }
429
+ },
430
+ {
431
+ "target": "/app/presentation/automation/generated/enable",
432
+ "input": {
433
+ "automationId": "P-1"
434
+ },
435
+ "outcome": {
436
+ "status": "success",
437
+ "data": {
438
+ "enabled": true,
439
+ "running": false
440
+ }
441
+ },
442
+ "expected": {
443
+ "event": "automation.enable",
444
+ "automationId": "P-1",
445
+ "enabled": true,
446
+ "running": false,
447
+ "status": "success"
448
+ }
449
+ },
450
+ {
451
+ "target": "/app/presentation/automation/generated/disable",
452
+ "input": {
453
+ "automationId": "P-1"
454
+ },
455
+ "outcome": {
456
+ "status": "success",
457
+ "data": {
458
+ "enabled": false,
459
+ "running": false
460
+ }
461
+ },
462
+ "expected": {
463
+ "event": "automation.disable",
464
+ "automationId": "P-1",
465
+ "enabled": false,
466
+ "running": false,
467
+ "status": "success"
468
+ }
469
+ },
470
+ {
471
+ "target": "/app/presentation/automation/generated/run",
472
+ "input": {
473
+ "automationId": "P-1"
474
+ },
475
+ "outcome": {
476
+ "status": "success",
477
+ "data": {
478
+ "enabled": false,
479
+ "running": true
480
+ }
481
+ },
482
+ "expected": {
483
+ "event": "automation.run",
484
+ "automationId": "P-1",
485
+ "enabled": false,
486
+ "running": true,
487
+ "status": "success"
488
+ }
489
+ },
490
+ {
491
+ "target": "/app/quickword/run",
492
+ "input": {
493
+ "quickWord": "good night",
494
+ "values": {
495
+ "time": "23:00"
496
+ }
497
+ },
498
+ "outcome": {
499
+ "status": "success",
500
+ "data": {
501
+ "dispatched": true
502
+ }
503
+ },
504
+ "expected": {
505
+ "event": "quickword.invoked",
506
+ "quickWord": "good night",
507
+ "values": {
508
+ "time": "23:00"
509
+ },
510
+ "dispatched": true,
511
+ "status": "success"
512
+ }
513
+ },
514
+ {
515
+ "target": "/app/automation/save",
516
+ "input": {
517
+ "singleUse": false,
518
+ "restoreEnabled": true,
519
+ "script": {
520
+ "script": "name: Bedtime\ndescription: Good night\n$time: \"23:00\"\ntask: internal-code"
521
+ }
522
+ },
523
+ "outcome": {
524
+ "status": "success",
525
+ "data": {
526
+ "automationId": "A-new"
527
+ }
528
+ },
529
+ "expected": {
530
+ "event": "automation.saved",
531
+ "singleUse": false,
532
+ "restoreEnabled": true,
533
+ "automationId": "A-new",
534
+ "definition": {
535
+ "name": "Bedtime",
536
+ "description": "Good night"
537
+ },
538
+ "status": "success"
539
+ }
540
+ },
541
+ {
542
+ "target": "/app/presentation/automation/overview/save",
543
+ "input": {
544
+ "sessionId": "editor",
545
+ "automationId": "A-1"
546
+ },
547
+ "outcome": {
548
+ "status": "success",
549
+ "data": {
550
+ "enabled": true
551
+ }
552
+ },
553
+ "expected": {
554
+ "event": "automation.saved",
555
+ "automationId": "A-1",
556
+ "enabled": true,
557
+ "status": "success"
558
+ }
559
+ },
560
+ {
561
+ "target": "/app/presentation/automation/enroll",
562
+ "input": {
563
+ "automationId": "S-source",
564
+ "name": "Bedtime"
565
+ },
566
+ "outcome": {
567
+ "status": "success",
568
+ "data": {
569
+ "automationId": "A-new"
570
+ }
571
+ },
572
+ "expected": {
573
+ "event": "automation.enroll",
574
+ "fromAutomationId": "S-source",
575
+ "name": "Bedtime",
576
+ "automationId": "A-new",
577
+ "status": "success"
578
+ }
579
+ },
580
+ {
581
+ "target": "/app/automation/delete",
582
+ "input": {
583
+ "automationIds": [
584
+ "A-1",
585
+ "A-2"
586
+ ]
587
+ },
588
+ "outcome": {
589
+ "status": "success",
590
+ "data": {}
591
+ },
592
+ "expected": {
593
+ "event": "automation.deleted",
594
+ "automationIds": [
595
+ "A-1",
596
+ "A-2"
597
+ ],
598
+ "status": "success"
599
+ }
600
+ },
601
+ {
602
+ "target": "/app/automation/snapshot/rollback",
603
+ "input": {
604
+ "automationId": "A-1",
605
+ "snapshotId": "snap"
606
+ },
607
+ "outcome": {
608
+ "status": "success",
609
+ "data": {
610
+ "automationId": "A-1"
611
+ }
612
+ },
613
+ "expected": {
614
+ "event": "automation.restored",
615
+ "automationId": "A-1",
616
+ "snapshotId": "snap",
617
+ "status": "success"
618
+ }
619
+ },
620
+ {
621
+ "target": "/app/widget/circadian/create",
622
+ "input": {
623
+ "locationId": "home",
624
+ "curve": "daylight",
625
+ "offset": 0,
626
+ "multiplier": 1.0
627
+ },
628
+ "outcome": {
629
+ "status": "success",
630
+ "data": {
631
+ "widgetId": "new-c"
632
+ }
633
+ },
634
+ "expected": {
635
+ "event": "circadian.configured",
636
+ "locationId": "home",
637
+ "curve": "daylight",
638
+ "offset": 0,
639
+ "multiplier": 1.0,
640
+ "widgetId": "new-c",
641
+ "status": "success"
642
+ }
643
+ }
644
+ ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.113.0",
3
+ "contractVersion": "1.115.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.113.0",
2
+ "contractVersion": "1.115.0",
3
3
  "operations": {
4
4
  "/app/agent/context/get": "spaceRead",
5
5
  "/app/agent/credit/usage": "spaceRead",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.host-provision.targets.v1",
3
- "contractVersion": "1.113.0",
3
+ "contractVersion": "1.115.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.113.0",
3
+ "contractVersion": "1.115.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.113.0",
3
+ "contractVersion": "1.115.0",
4
4
  "contract": "contract/pod-commissioning-v1.md",
5
5
  "localTargets": [
6
6
  "/local/pod/discovery/start",