@mhome/app-facade-protocol 1.66.0 → 1.69.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,474 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://mhome.ai/schemas/app-facade/group.v1.schema.json",
4
+ "$defs": {
5
+ "ListGroupsInput": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "memberType": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ }
13
+ },
14
+ "required": []
15
+ },
16
+ "GetGroupsInput": {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "ids": {
21
+ "type": "array",
22
+ "minItems": 1,
23
+ "items": {
24
+ "type": "string",
25
+ "minLength": 1
26
+ },
27
+ "maxItems": 100
28
+ }
29
+ },
30
+ "required": [
31
+ "ids"
32
+ ]
33
+ },
34
+ "GroupPresentationInput": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "properties": {
38
+ "groupId": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ }
42
+ },
43
+ "required": [
44
+ "groupId"
45
+ ]
46
+ },
47
+ "CreateGroupInput": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "creationId": {
52
+ "type": "string",
53
+ "minLength": 1,
54
+ "format": "uuid"
55
+ },
56
+ "name": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "memberType": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "memberIds": {
65
+ "type": "array",
66
+ "minItems": 1,
67
+ "items": {
68
+ "type": "string",
69
+ "minLength": 1
70
+ }
71
+ }
72
+ },
73
+ "required": [
74
+ "creationId",
75
+ "name",
76
+ "memberType",
77
+ "memberIds"
78
+ ]
79
+ },
80
+ "RenameGroupInput": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "properties": {
84
+ "groupId": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ "name": {
89
+ "type": "string",
90
+ "minLength": 1
91
+ },
92
+ "expectedRevision": {
93
+ "type": "integer",
94
+ "minimum": 1
95
+ }
96
+ },
97
+ "required": [
98
+ "groupId",
99
+ "name",
100
+ "expectedRevision"
101
+ ]
102
+ },
103
+ "UpdateGroupMembersInput": {
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "properties": {
107
+ "groupId": {
108
+ "type": "string",
109
+ "minLength": 1
110
+ },
111
+ "memberIds": {
112
+ "type": "array",
113
+ "minItems": 1,
114
+ "items": {
115
+ "type": "string",
116
+ "minLength": 1
117
+ }
118
+ },
119
+ "expectedRevision": {
120
+ "type": "integer",
121
+ "minimum": 1
122
+ }
123
+ },
124
+ "required": [
125
+ "groupId",
126
+ "memberIds",
127
+ "expectedRevision"
128
+ ]
129
+ },
130
+ "DeleteGroupInput": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "properties": {
134
+ "groupId": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "expectedRevision": {
139
+ "type": "integer",
140
+ "minimum": 1
141
+ }
142
+ },
143
+ "required": [
144
+ "groupId",
145
+ "expectedRevision"
146
+ ]
147
+ },
148
+ "GroupSummary": {
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "properties": {
152
+ "groupId": {
153
+ "type": "string",
154
+ "minLength": 1
155
+ },
156
+ "name": {
157
+ "type": "string",
158
+ "minLength": 1
159
+ },
160
+ "memberType": {
161
+ "type": "string",
162
+ "minLength": 1
163
+ },
164
+ "memberCount": {
165
+ "type": "integer",
166
+ "minimum": 0
167
+ },
168
+ "revision": {
169
+ "type": "integer",
170
+ "minimum": 1
171
+ },
172
+ "applyState": {
173
+ "enum": [
174
+ "applying",
175
+ "ready",
176
+ "failed",
177
+ "deleting"
178
+ ]
179
+ },
180
+ "createdAt": {
181
+ "type": "integer",
182
+ "minimum": 1
183
+ },
184
+ "updatedAt": {
185
+ "type": "integer",
186
+ "minimum": 1
187
+ }
188
+ },
189
+ "required": [
190
+ "groupId",
191
+ "name",
192
+ "memberType",
193
+ "memberCount",
194
+ "revision",
195
+ "applyState",
196
+ "createdAt",
197
+ "updatedAt"
198
+ ]
199
+ },
200
+ "GroupDetail": {
201
+ "type": "object",
202
+ "additionalProperties": false,
203
+ "properties": {
204
+ "groupId": {
205
+ "type": "string",
206
+ "minLength": 1
207
+ },
208
+ "name": {
209
+ "type": "string",
210
+ "minLength": 1
211
+ },
212
+ "memberType": {
213
+ "type": "string",
214
+ "minLength": 1
215
+ },
216
+ "memberCount": {
217
+ "type": "integer",
218
+ "minimum": 0
219
+ },
220
+ "revision": {
221
+ "type": "integer",
222
+ "minimum": 1
223
+ },
224
+ "applyState": {
225
+ "enum": [
226
+ "applying",
227
+ "ready",
228
+ "failed",
229
+ "deleting"
230
+ ]
231
+ },
232
+ "createdAt": {
233
+ "type": "integer",
234
+ "minimum": 1
235
+ },
236
+ "updatedAt": {
237
+ "type": "integer",
238
+ "minimum": 1
239
+ },
240
+ "memberIds": {
241
+ "type": "array",
242
+ "minItems": 1,
243
+ "items": {
244
+ "type": "string",
245
+ "minLength": 1
246
+ },
247
+ "uniqueItems": true
248
+ },
249
+ "capabilities": {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "properties": {
255
+ "id": {
256
+ "type": "string",
257
+ "minLength": 1
258
+ },
259
+ "memberCount": {
260
+ "type": "integer",
261
+ "minimum": 0
262
+ }
263
+ },
264
+ "required": [
265
+ "id",
266
+ "memberCount"
267
+ ]
268
+ }
269
+ },
270
+ "memberProblems": {
271
+ "type": "array",
272
+ "items": {
273
+ "type": "object",
274
+ "additionalProperties": false,
275
+ "properties": {
276
+ "memberId": {
277
+ "type": "string",
278
+ "minLength": 1
279
+ },
280
+ "code": {
281
+ "type": "string",
282
+ "minLength": 1
283
+ },
284
+ "message": {
285
+ "type": "string",
286
+ "minLength": 1
287
+ }
288
+ },
289
+ "required": [
290
+ "memberId",
291
+ "code",
292
+ "message"
293
+ ]
294
+ }
295
+ },
296
+ "applicationProblem": {
297
+ "type": "object",
298
+ "additionalProperties": false,
299
+ "properties": {
300
+ "code": {
301
+ "type": "string",
302
+ "minLength": 1
303
+ },
304
+ "message": {
305
+ "type": "string",
306
+ "minLength": 1
307
+ },
308
+ "details": {}
309
+ },
310
+ "required": [
311
+ "code",
312
+ "message"
313
+ ]
314
+ }
315
+ },
316
+ "required": [
317
+ "groupId",
318
+ "name",
319
+ "memberType",
320
+ "memberCount",
321
+ "revision",
322
+ "applyState",
323
+ "createdAt",
324
+ "updatedAt",
325
+ "memberIds",
326
+ "capabilities",
327
+ "memberProblems"
328
+ ]
329
+ },
330
+ "GroupMutationOutput": {
331
+ "type": "object",
332
+ "additionalProperties": false,
333
+ "properties": {
334
+ "groupId": {
335
+ "type": "string",
336
+ "minLength": 1
337
+ },
338
+ "revision": {
339
+ "type": "integer",
340
+ "minimum": 1
341
+ },
342
+ "applyState": {
343
+ "enum": [
344
+ "applying",
345
+ "ready",
346
+ "failed",
347
+ "deleting"
348
+ ]
349
+ },
350
+ "applicationProblem": {
351
+ "type": "object",
352
+ "additionalProperties": false,
353
+ "properties": {
354
+ "code": {
355
+ "type": "string",
356
+ "minLength": 1
357
+ },
358
+ "message": {
359
+ "type": "string",
360
+ "minLength": 1
361
+ },
362
+ "details": {}
363
+ },
364
+ "required": [
365
+ "code",
366
+ "message"
367
+ ]
368
+ }
369
+ },
370
+ "required": [
371
+ "groupId",
372
+ "revision",
373
+ "applyState"
374
+ ]
375
+ },
376
+ "DeleteGroupOutput": {
377
+ "type": "object",
378
+ "additionalProperties": false,
379
+ "properties": {
380
+ "groupId": {
381
+ "type": "string",
382
+ "minLength": 1
383
+ },
384
+ "deleted": {
385
+ "type": "boolean"
386
+ },
387
+ "applicationProblem": {
388
+ "type": "object",
389
+ "additionalProperties": false,
390
+ "properties": {
391
+ "code": {
392
+ "type": "string",
393
+ "minLength": 1
394
+ },
395
+ "message": {
396
+ "type": "string",
397
+ "minLength": 1
398
+ },
399
+ "details": {}
400
+ },
401
+ "required": [
402
+ "code",
403
+ "message"
404
+ ]
405
+ }
406
+ },
407
+ "required": [
408
+ "groupId",
409
+ "deleted"
410
+ ]
411
+ },
412
+ "ListGroupsOutput": {
413
+ "type": "object",
414
+ "additionalProperties": false,
415
+ "properties": {
416
+ "spaceId": {
417
+ "type": "string",
418
+ "minLength": 1
419
+ },
420
+ "groups": {
421
+ "type": "array",
422
+ "items": {
423
+ "$ref": "#/$defs/GroupSummary"
424
+ }
425
+ }
426
+ },
427
+ "required": [
428
+ "spaceId",
429
+ "groups"
430
+ ]
431
+ },
432
+ "GetGroupsOutput": {
433
+ "type": "object",
434
+ "additionalProperties": false,
435
+ "properties": {
436
+ "spaceId": {
437
+ "type": "string",
438
+ "minLength": 1
439
+ },
440
+ "items": {
441
+ "type": "array",
442
+ "items": {
443
+ "type": "object",
444
+ "additionalProperties": false,
445
+ "properties": {
446
+ "requestedId": {
447
+ "type": "string",
448
+ "minLength": 1
449
+ },
450
+ "found": {
451
+ "type": "boolean"
452
+ },
453
+ "reason": {
454
+ "type": "string",
455
+ "minLength": 1
456
+ },
457
+ "group": {
458
+ "$ref": "#/$defs/GroupDetail"
459
+ }
460
+ },
461
+ "required": [
462
+ "requestedId",
463
+ "found"
464
+ ]
465
+ }
466
+ }
467
+ },
468
+ "required": [
469
+ "spaceId",
470
+ "items"
471
+ ]
472
+ }
473
+ }
474
+ }