@mhome/app-facade-protocol 1.127.1 → 1.129.1

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,431 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://schemas.meowlink.app/dashboard-composition.v1.json",
4
+ "definitions": {
5
+ "create": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "canvasId",
10
+ "expectedRevision",
11
+ "itemIds"
12
+ ],
13
+ "properties": {
14
+ "canvasId": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 512,
18
+ "pattern": "^\\S(?:.*\\S)?$"
19
+ },
20
+ "expectedRevision": {
21
+ "type": "integer",
22
+ "minimum": 0,
23
+ "maximum": 2147483646
24
+ },
25
+ "itemIds": {
26
+ "type": "array",
27
+ "minItems": 2,
28
+ "uniqueItems": true,
29
+ "items": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 512,
33
+ "pattern": "^\\S(?:.*\\S)?$"
34
+ }
35
+ },
36
+ "rootDraft": {
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "layoutSize",
41
+ "items"
42
+ ],
43
+ "properties": {
44
+ "layoutSize": {
45
+ "enum": [
46
+ "sm",
47
+ "md",
48
+ "lg"
49
+ ]
50
+ },
51
+ "items": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "itemId",
58
+ "layout"
59
+ ],
60
+ "properties": {
61
+ "itemId": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 512,
65
+ "pattern": "^\\S(?:.*\\S)?$"
66
+ },
67
+ "layout": {
68
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "rootDrafts": {
76
+ "type": "array",
77
+ "maxItems": 3,
78
+ "items": {
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": [
82
+ "layoutSize",
83
+ "items"
84
+ ],
85
+ "properties": {
86
+ "layoutSize": {
87
+ "enum": [
88
+ "sm",
89
+ "md",
90
+ "lg"
91
+ ]
92
+ },
93
+ "items": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "required": [
99
+ "itemId",
100
+ "layout"
101
+ ],
102
+ "properties": {
103
+ "itemId": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "maxLength": 512,
107
+ "pattern": "^\\S(?:.*\\S)?$"
108
+ },
109
+ "layout": {
110
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "allOf": [
120
+ {
121
+ "not": {
122
+ "required": [
123
+ "rootDraft",
124
+ "rootDrafts"
125
+ ]
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ "ungroup": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "canvasId",
135
+ "expectedRevision",
136
+ "compositionId"
137
+ ],
138
+ "properties": {
139
+ "canvasId": {
140
+ "type": "string",
141
+ "minLength": 1,
142
+ "maxLength": 512,
143
+ "pattern": "^\\S(?:.*\\S)?$"
144
+ },
145
+ "expectedRevision": {
146
+ "type": "integer",
147
+ "minimum": 0,
148
+ "maximum": 2147483646
149
+ },
150
+ "compositionId": {
151
+ "type": "string",
152
+ "minLength": 1,
153
+ "maxLength": 512,
154
+ "pattern": "^\\S(?:.*\\S)?$"
155
+ },
156
+ "rootDraft": {
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": [
160
+ "layoutSize",
161
+ "items"
162
+ ],
163
+ "properties": {
164
+ "layoutSize": {
165
+ "enum": [
166
+ "sm",
167
+ "md",
168
+ "lg"
169
+ ]
170
+ },
171
+ "items": {
172
+ "type": "array",
173
+ "items": {
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "required": [
177
+ "itemId",
178
+ "layout"
179
+ ],
180
+ "properties": {
181
+ "itemId": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 512,
185
+ "pattern": "^\\S(?:.*\\S)?$"
186
+ },
187
+ "layout": {
188
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "rootDrafts": {
196
+ "type": "array",
197
+ "maxItems": 3,
198
+ "items": {
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "layoutSize",
203
+ "items"
204
+ ],
205
+ "properties": {
206
+ "layoutSize": {
207
+ "enum": [
208
+ "sm",
209
+ "md",
210
+ "lg"
211
+ ]
212
+ },
213
+ "items": {
214
+ "type": "array",
215
+ "items": {
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "itemId",
220
+ "layout"
221
+ ],
222
+ "properties": {
223
+ "itemId": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 512,
227
+ "pattern": "^\\S(?:.*\\S)?$"
228
+ },
229
+ "layout": {
230
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
231
+ }
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+ },
239
+ "allOf": [
240
+ {
241
+ "not": {
242
+ "required": [
243
+ "rootDraft",
244
+ "rootDrafts"
245
+ ]
246
+ }
247
+ }
248
+ ]
249
+ },
250
+ "updateMembers": {
251
+ "type": "object",
252
+ "additionalProperties": false,
253
+ "required": [
254
+ "canvasId",
255
+ "expectedRevision",
256
+ "compositionId",
257
+ "layoutSize"
258
+ ],
259
+ "properties": {
260
+ "canvasId": {
261
+ "type": "string",
262
+ "minLength": 1,
263
+ "maxLength": 512,
264
+ "pattern": "^\\S(?:.*\\S)?$"
265
+ },
266
+ "expectedRevision": {
267
+ "type": "integer",
268
+ "minimum": 0,
269
+ "maximum": 2147483646
270
+ },
271
+ "compositionId": {
272
+ "type": "string",
273
+ "minLength": 1,
274
+ "maxLength": 512,
275
+ "pattern": "^\\S(?:.*\\S)?$"
276
+ },
277
+ "layoutSize": {
278
+ "enum": [
279
+ "sm",
280
+ "md",
281
+ "lg"
282
+ ]
283
+ },
284
+ "members": {
285
+ "type": "array",
286
+ "items": {
287
+ "type": "object",
288
+ "additionalProperties": false,
289
+ "required": [
290
+ "itemId",
291
+ "layout"
292
+ ],
293
+ "properties": {
294
+ "itemId": {
295
+ "type": "string",
296
+ "minLength": 1,
297
+ "maxLength": 512,
298
+ "pattern": "^\\S(?:.*\\S)?$"
299
+ },
300
+ "layout": {
301
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
302
+ }
303
+ }
304
+ }
305
+ },
306
+ "reset": {
307
+ "type": "boolean"
308
+ },
309
+ "rootDraft": {
310
+ "type": "object",
311
+ "additionalProperties": false,
312
+ "required": [
313
+ "layoutSize",
314
+ "items"
315
+ ],
316
+ "properties": {
317
+ "layoutSize": {
318
+ "enum": [
319
+ "sm",
320
+ "md",
321
+ "lg"
322
+ ]
323
+ },
324
+ "items": {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "object",
328
+ "additionalProperties": false,
329
+ "required": [
330
+ "itemId",
331
+ "layout"
332
+ ],
333
+ "properties": {
334
+ "itemId": {
335
+ "type": "string",
336
+ "minLength": 1,
337
+ "maxLength": 512,
338
+ "pattern": "^\\S(?:.*\\S)?$"
339
+ },
340
+ "layout": {
341
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
342
+ }
343
+ }
344
+ }
345
+ }
346
+ }
347
+ },
348
+ "rootDrafts": {
349
+ "type": "array",
350
+ "maxItems": 3,
351
+ "items": {
352
+ "type": "object",
353
+ "additionalProperties": false,
354
+ "required": [
355
+ "layoutSize",
356
+ "items"
357
+ ],
358
+ "properties": {
359
+ "layoutSize": {
360
+ "enum": [
361
+ "sm",
362
+ "md",
363
+ "lg"
364
+ ]
365
+ },
366
+ "items": {
367
+ "type": "array",
368
+ "items": {
369
+ "type": "object",
370
+ "additionalProperties": false,
371
+ "required": [
372
+ "itemId",
373
+ "layout"
374
+ ],
375
+ "properties": {
376
+ "itemId": {
377
+ "type": "string",
378
+ "minLength": 1,
379
+ "maxLength": 512,
380
+ "pattern": "^\\S(?:.*\\S)?$"
381
+ },
382
+ "layout": {
383
+ "$ref": "canvas-layout.v1.schema.json#/definitions/rect"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+ }
391
+ },
392
+ "oneOf": [
393
+ {
394
+ "required": [
395
+ "members"
396
+ ],
397
+ "properties": {
398
+ "reset": {
399
+ "const": false
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "required": [
405
+ "reset"
406
+ ],
407
+ "properties": {
408
+ "reset": {
409
+ "const": true
410
+ }
411
+ },
412
+ "not": {
413
+ "required": [
414
+ "members"
415
+ ]
416
+ }
417
+ }
418
+ ],
419
+ "allOf": [
420
+ {
421
+ "not": {
422
+ "required": [
423
+ "rootDraft",
424
+ "rootDrafts"
425
+ ]
426
+ }
427
+ }
428
+ ]
429
+ }
430
+ }
431
+ }
@@ -0,0 +1,190 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://schemas.meowlink.app/space-member-changes.v1.json",
4
+ "title": "Space member changes",
5
+ "definitions": {
6
+ "input": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "removeEmails": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string"
14
+ }
15
+ },
16
+ "inviteEmails": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ }
22
+ },
23
+ "anyOf": [
24
+ {
25
+ "required": [
26
+ "removeEmails"
27
+ ],
28
+ "properties": {
29
+ "removeEmails": {
30
+ "minItems": 1
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "required": [
36
+ "inviteEmails"
37
+ ],
38
+ "properties": {
39
+ "inviteEmails": {
40
+ "minItems": 1
41
+ }
42
+ }
43
+ }
44
+ ]
45
+ },
46
+ "output": {
47
+ "type": "object",
48
+ "required": [
49
+ "action",
50
+ "spaceId",
51
+ "removal",
52
+ "invitation",
53
+ "problems"
54
+ ],
55
+ "properties": {
56
+ "action": {
57
+ "enum": [
58
+ "Updated",
59
+ "DryRun"
60
+ ]
61
+ },
62
+ "spaceId": {
63
+ "type": "string"
64
+ },
65
+ "removal": {
66
+ "type": "object",
67
+ "required": [
68
+ "action",
69
+ "spaceId",
70
+ "requested",
71
+ "removed",
72
+ "notMembership",
73
+ "failed"
74
+ ],
75
+ "properties": {
76
+ "action": {
77
+ "type": "string"
78
+ },
79
+ "spaceId": {
80
+ "type": "string"
81
+ },
82
+ "requested": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ "removed": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string"
92
+ }
93
+ },
94
+ "notMembership": {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ "failed": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "string"
104
+ }
105
+ }
106
+ }
107
+ },
108
+ "invitation": {
109
+ "anyOf": [
110
+ {
111
+ "type": "object",
112
+ "required": [
113
+ "action",
114
+ "spaceId",
115
+ "requested",
116
+ "invited",
117
+ "alreadyPending",
118
+ "alreadyMembers",
119
+ "failed"
120
+ ],
121
+ "properties": {
122
+ "action": {
123
+ "type": "string"
124
+ },
125
+ "spaceId": {
126
+ "type": "string"
127
+ },
128
+ "requested": {
129
+ "type": "array",
130
+ "items": {
131
+ "type": "string"
132
+ }
133
+ },
134
+ "invited": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string"
138
+ }
139
+ },
140
+ "alreadyPending": {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ "alreadyMembers": {
147
+ "type": "array",
148
+ "items": {
149
+ "type": "string"
150
+ }
151
+ },
152
+ "failed": {
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string"
156
+ }
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ]
164
+ },
165
+ "problems": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "object",
169
+ "required": [
170
+ "step",
171
+ "code",
172
+ "message"
173
+ ],
174
+ "properties": {
175
+ "step": {
176
+ "type": "string"
177
+ },
178
+ "code": {
179
+ "type": "string"
180
+ },
181
+ "message": {
182
+ "type": "string"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }