@mhome/core-protocol 1.57.0 → 1.60.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.
@@ -1,672 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://mhome.ai/schema/camera-plugin-management.v1.schema.json",
4
- "title": "Camera Plugin management values",
5
- "anyOf": [
6
- {
7
- "$ref": "#/$defs/emptyRequest"
8
- },
9
- {
10
- "$ref": "#/$defs/deviceIdRequest"
11
- },
12
- {
13
- "$ref": "#/$defs/deviceSettingsUpdateRequest"
14
- },
15
- {
16
- "$ref": "#/$defs/managementSnapshot"
17
- },
18
- {
19
- "$ref": "#/$defs/deviceListResponse"
20
- },
21
- {
22
- "$ref": "#/$defs/connectionMutationResponse"
23
- },
24
- {
25
- "$ref": "#/$defs/deviceSettingsResponse"
26
- },
27
- {
28
- "$ref": "#/$defs/errorResponse"
29
- },
30
- {
31
- "$ref": "#/$defs/connectionIdRequest"
32
- },
33
- {
34
- "$ref": "#/$defs/connectionDisconnectRequest"
35
- },
36
- {
37
- "$ref": "#/$defs/connectionListResponse"
38
- },
39
- {
40
- "$ref": "#/$defs/providerListResponse"
41
- },
42
- {
43
- "$ref": "#/$defs/connectionDetailResponse"
44
- }
45
- ],
46
- "$defs": {
47
- "emptyRequest": {
48
- "type": "object",
49
- "additionalProperties": false
50
- },
51
- "deviceIdRequest": {
52
- "type": "object",
53
- "required": [
54
- "deviceId"
55
- ],
56
- "properties": {
57
- "deviceId": {
58
- "type": "string",
59
- "minLength": 1
60
- }
61
- },
62
- "additionalProperties": false
63
- },
64
- "providerCatalogItem": {
65
- "type": "object",
66
- "required": [
67
- "id",
68
- "displayName",
69
- "description",
70
- "supportsMultipleCameras"
71
- ],
72
- "properties": {
73
- "id": {
74
- "type": "string",
75
- "minLength": 1
76
- },
77
- "displayName": {
78
- "type": "string",
79
- "minLength": 1
80
- },
81
- "description": {
82
- "type": "string"
83
- },
84
- "supportsMultipleCameras": {
85
- "type": "boolean"
86
- }
87
- },
88
- "additionalProperties": false
89
- },
90
- "cameraDevice": {
91
- "type": "object",
92
- "required": [
93
- "id",
94
- "name",
95
- "capabilities",
96
- "health",
97
- "connectionId",
98
- "resolutionStatus"
99
- ],
100
- "properties": {
101
- "id": {
102
- "type": "string",
103
- "minLength": 1
104
- },
105
- "name": {
106
- "type": "string",
107
- "minLength": 1
108
- },
109
- "manufacturerName": {
110
- "type": "string",
111
- "minLength": 1
112
- },
113
- "capabilities": {
114
- "type": "array",
115
- "items": {
116
- "type": "string",
117
- "minLength": 1
118
- },
119
- "uniqueItems": true
120
- },
121
- "health": {
122
- "enum": [
123
- "applying",
124
- "ready",
125
- "degraded",
126
- "error"
127
- ]
128
- },
129
- "lastError": {
130
- "type": "string",
131
- "minLength": 1
132
- },
133
- "connectionId": {
134
- "type": "string",
135
- "minLength": 1
136
- },
137
- "resolutionStatus": {
138
- "enum": [
139
- "unresolved",
140
- "ready",
141
- "failed"
142
- ]
143
- }
144
- },
145
- "additionalProperties": false
146
- },
147
- "onlineStateObservation": {
148
- "type": "object",
149
- "required": [
150
- "id",
151
- "state"
152
- ],
153
- "properties": {
154
- "id": {
155
- "type": "string",
156
- "minLength": 1
157
- },
158
- "state": {
159
- "enum": [
160
- "online",
161
- "offline"
162
- ]
163
- },
164
- "observedAt": {
165
- "type": "integer"
166
- },
167
- "source": {
168
- "type": "string",
169
- "minLength": 1
170
- },
171
- "reason": {
172
- "type": "string",
173
- "minLength": 1
174
- }
175
- },
176
- "additionalProperties": false
177
- },
178
- "managementSnapshot": {
179
- "type": "object",
180
- "required": [
181
- "providers",
182
- "devices",
183
- "onlineStates",
184
- "cameraSettings",
185
- "connections"
186
- ],
187
- "properties": {
188
- "providers": {
189
- "type": "array",
190
- "items": {
191
- "$ref": "#/$defs/providerCatalogItem"
192
- }
193
- },
194
- "devices": {
195
- "type": "array",
196
- "items": {
197
- "$ref": "#/$defs/cameraDevice"
198
- }
199
- },
200
- "onlineStates": {
201
- "type": "array",
202
- "items": {
203
- "$ref": "#/$defs/onlineStateObservation"
204
- }
205
- },
206
- "connections": {
207
- "type": "array",
208
- "items": {
209
- "$ref": "#/$defs/cameraConnection"
210
- }
211
- },
212
- "cameraSettings": {
213
- "type": "array",
214
- "items": {
215
- "$ref": "#/$defs/deviceSettingsResponse"
216
- }
217
- }
218
- },
219
- "additionalProperties": false
220
- },
221
- "deviceListResponse": {
222
- "type": "object",
223
- "additionalProperties": false,
224
- "required": [
225
- "connections"
226
- ],
227
- "properties": {
228
- "connections": {
229
- "type": "array",
230
- "items": {
231
- "$ref": "#/$defs/connectionBrief"
232
- }
233
- }
234
- }
235
- },
236
- "connectionMutationResponse": {
237
- "type": "object",
238
- "required": [
239
- "deviceIds",
240
- "changed",
241
- "connectionId"
242
- ],
243
- "properties": {
244
- "deviceIds": {
245
- "type": "array",
246
- "items": {
247
- "type": "string",
248
- "minLength": 1
249
- },
250
- "uniqueItems": true
251
- },
252
- "changed": {
253
- "type": "boolean"
254
- },
255
- "connectionId": {
256
- "type": "string",
257
- "minLength": 1
258
- }
259
- },
260
- "additionalProperties": false
261
- },
262
- "errorResponse": {
263
- "type": "object",
264
- "required": [
265
- "ok",
266
- "reason",
267
- "detail"
268
- ],
269
- "properties": {
270
- "ok": {
271
- "const": false
272
- },
273
- "reason": {
274
- "type": "string",
275
- "minLength": 1
276
- },
277
- "detail": {
278
- "type": "string",
279
- "minLength": 1
280
- }
281
- },
282
- "additionalProperties": false
283
- },
284
- "connectionIdRequest": {
285
- "type": "object",
286
- "required": [
287
- "connectionId"
288
- ],
289
- "properties": {
290
- "connectionId": {
291
- "type": "string",
292
- "minLength": 1
293
- }
294
- },
295
- "additionalProperties": false
296
- },
297
- "cameraConnection": {
298
- "type": "object",
299
- "required": [
300
- "id",
301
- "name",
302
- "deviceCount",
303
- "provider",
304
- "revision"
305
- ],
306
- "properties": {
307
- "id": {
308
- "type": "string",
309
- "minLength": 1
310
- },
311
- "name": {
312
- "type": "string",
313
- "minLength": 1
314
- },
315
- "deviceCount": {
316
- "type": "integer",
317
- "minimum": 0
318
- },
319
- "lastError": {
320
- "type": [
321
- "string",
322
- "null"
323
- ]
324
- },
325
- "lastRefreshedAt": {
326
- "type": [
327
- "string",
328
- "null"
329
- ]
330
- },
331
- "provider": {
332
- "type": "string",
333
- "minLength": 1
334
- },
335
- "revision": {
336
- "type": "integer",
337
- "minimum": 1
338
- }
339
- },
340
- "additionalProperties": false
341
- },
342
- "cameraSettings": {
343
- "type": "object",
344
- "properties": {
345
- "watchMode": {
346
- "enum": [
347
- "off",
348
- "auto"
349
- ]
350
- },
351
- "objectDetectionMode": {
352
- "enum": [
353
- "off",
354
- "auto"
355
- ]
356
- },
357
- "personDetectionMode": {
358
- "enum": [
359
- "off",
360
- "auto"
361
- ]
362
- },
363
- "recordMode": {
364
- "enum": [
365
- "off",
366
- "event"
367
- ]
368
- },
369
- "preRollSeconds": {
370
- "type": "integer",
371
- "minimum": 0,
372
- "maximum": 120
373
- },
374
- "postRollSeconds": {
375
- "type": "integer",
376
- "minimum": 0,
377
- "maximum": 300
378
- }
379
- },
380
- "additionalProperties": false,
381
- "required": [
382
- "watchMode",
383
- "objectDetectionMode",
384
- "personDetectionMode",
385
- "recordMode",
386
- "preRollSeconds",
387
- "postRollSeconds"
388
- ]
389
- },
390
- "cameraSettingsPatch": {
391
- "type": "object",
392
- "properties": {
393
- "watchMode": {
394
- "enum": [
395
- "off",
396
- "auto"
397
- ]
398
- },
399
- "objectDetectionMode": {
400
- "enum": [
401
- "off",
402
- "auto"
403
- ]
404
- },
405
- "personDetectionMode": {
406
- "enum": [
407
- "off",
408
- "auto"
409
- ]
410
- },
411
- "recordMode": {
412
- "enum": [
413
- "off",
414
- "event"
415
- ]
416
- },
417
- "preRollSeconds": {
418
- "type": "integer",
419
- "minimum": 0,
420
- "maximum": 120
421
- },
422
- "postRollSeconds": {
423
- "type": "integer",
424
- "minimum": 0,
425
- "maximum": 300
426
- }
427
- },
428
- "additionalProperties": false,
429
- "minProperties": 1
430
- },
431
- "deviceSettingsUpdateRequest": {
432
- "type": "object",
433
- "required": [
434
- "deviceId",
435
- "settings"
436
- ],
437
- "properties": {
438
- "deviceId": {
439
- "type": "string",
440
- "minLength": 1
441
- },
442
- "settings": {
443
- "$ref": "#/$defs/cameraSettingsPatch"
444
- }
445
- },
446
- "additionalProperties": false
447
- },
448
- "deviceSettingsResponse": {
449
- "type": "object",
450
- "required": [
451
- "deviceId",
452
- "revision",
453
- "settings"
454
- ],
455
- "properties": {
456
- "deviceId": {
457
- "type": "string",
458
- "minLength": 1
459
- },
460
- "revision": {
461
- "type": "integer",
462
- "minimum": 0
463
- },
464
- "settings": {
465
- "$ref": "#/$defs/cameraSettings"
466
- }
467
- },
468
- "additionalProperties": false
469
- },
470
- "connectionDisconnectRequest": {
471
- "type": "object",
472
- "required": [
473
- "connectionId",
474
- "expectedRevision"
475
- ],
476
- "properties": {
477
- "connectionId": {
478
- "type": "string",
479
- "minLength": 1
480
- },
481
- "expectedRevision": {
482
- "type": "integer",
483
- "minimum": 1
484
- },
485
- "expectedDeviceIds": {
486
- "type": "array",
487
- "items": {
488
- "type": "string"
489
- },
490
- "uniqueItems": true
491
- }
492
- },
493
- "additionalProperties": false
494
- },
495
- "connectionListResponse": {
496
- "type": "object",
497
- "required": [
498
- "connections"
499
- ],
500
- "properties": {
501
- "connections": {
502
- "type": "array",
503
- "items": {
504
- "$ref": "#/$defs/cameraConnection"
505
- }
506
- }
507
- },
508
- "additionalProperties": false
509
- },
510
- "providerListResponse": {
511
- "type": "object",
512
- "required": [
513
- "providers"
514
- ],
515
- "properties": {
516
- "providers": {
517
- "type": "array",
518
- "items": {
519
- "$ref": "#/$defs/providerCatalogItem"
520
- }
521
- }
522
- },
523
- "additionalProperties": false
524
- },
525
- "connectionDetailResponse": {
526
- "type": "object",
527
- "required": [
528
- "connection",
529
- "devices"
530
- ],
531
- "properties": {
532
- "connection": {
533
- "anyOf": [
534
- {
535
- "$ref": "#/$defs/cameraConnection"
536
- },
537
- {
538
- "type": "null"
539
- }
540
- ]
541
- },
542
- "devices": {
543
- "type": "array",
544
- "items": {
545
- "$ref": "#/$defs/cameraDevice"
546
- }
547
- }
548
- },
549
- "additionalProperties": false
550
- },
551
- "connectionBrief": {
552
- "type": "object",
553
- "additionalProperties": false,
554
- "required": [
555
- "id",
556
- "provider",
557
- "name",
558
- "revision",
559
- "deviceCount",
560
- "devices"
561
- ],
562
- "properties": {
563
- "id": {
564
- "type": "string"
565
- },
566
- "provider": {
567
- "type": "string"
568
- },
569
- "name": {
570
- "type": "string"
571
- },
572
- "revision": {
573
- "type": "integer",
574
- "minimum": 1
575
- },
576
- "lastError": {
577
- "type": [
578
- "string",
579
- "null"
580
- ]
581
- },
582
- "deviceCount": {
583
- "type": "integer",
584
- "minimum": 0
585
- },
586
- "devices": {
587
- "type": "array",
588
- "items": {
589
- "$ref": "#/$defs/deviceBrief"
590
- }
591
- }
592
- }
593
- },
594
- "deviceBrief": {
595
- "type": "object",
596
- "additionalProperties": false,
597
- "required": [
598
- "id",
599
- "name",
600
- "health",
601
- "resolutionStatus",
602
- "online"
603
- ],
604
- "properties": {
605
- "id": {
606
- "type": "string"
607
- },
608
- "name": {
609
- "type": "string"
610
- },
611
- "manufacturerName": {
612
- "type": [
613
- "string",
614
- "null"
615
- ]
616
- },
617
- "health": {
618
- "enum": [
619
- "applying",
620
- "ready",
621
- "degraded",
622
- "error"
623
- ]
624
- },
625
- "resolutionStatus": {
626
- "enum": [
627
- "unresolved",
628
- "ready",
629
- "failed"
630
- ]
631
- },
632
- "lastError": {
633
- "type": [
634
- "string",
635
- "null"
636
- ]
637
- },
638
- "online": {
639
- "anyOf": [
640
- {
641
- "type": "null"
642
- },
643
- {
644
- "type": "object",
645
- "additionalProperties": false,
646
- "required": [
647
- "state"
648
- ],
649
- "properties": {
650
- "state": {
651
- "type": "string"
652
- },
653
- "observedAt": {
654
- "type": [
655
- "integer",
656
- "null"
657
- ]
658
- },
659
- "reason": {
660
- "type": [
661
- "string",
662
- "null"
663
- ]
664
- }
665
- }
666
- }
667
- ]
668
- }
669
- }
670
- }
671
- }
672
- }