@mhome/app-facade-protocol 1.49.2 → 1.59.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.
@@ -195,6 +195,12 @@
195
195
  "type": "string"
196
196
  }
197
197
  }
198
+ },
199
+ "clientMode": {
200
+ "enum": [
201
+ "user",
202
+ "space"
203
+ ]
198
204
  }
199
205
  },
200
206
  "allOf": [
@@ -331,10 +337,12 @@
331
337
  },
332
338
  "then": {
333
339
  "properties": {
334
- "podId": {}
340
+ "podId": {},
341
+ "clientMode": {}
335
342
  },
336
343
  "required": [
337
- "podId"
344
+ "podId",
345
+ "clientMode"
338
346
  ]
339
347
  }
340
348
  },
@@ -365,6 +373,14 @@
365
373
  "required": [
366
374
  "authorization"
367
375
  ]
376
+ },
377
+ {
378
+ "properties": {
379
+ "clientMode": {}
380
+ },
381
+ "required": [
382
+ "clientMode"
383
+ ]
368
384
  }
369
385
  ]
370
386
  }
@@ -25,6 +25,7 @@
25
25
  "additionalProperties": false,
26
26
  "required": [
27
27
  "hostId",
28
+ "env",
28
29
  "hostName",
29
30
  "hostType",
30
31
  "source",
@@ -362,6 +363,13 @@
362
363
  "string",
363
364
  "null"
364
365
  ]
366
+ },
367
+ "env": {
368
+ "enum": [
369
+ "prod",
370
+ "dev",
371
+ "e2e"
372
+ ]
365
373
  }
366
374
  }
367
375
  }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mhome.ai/schema/user-profile.v1.schema.json",
4
+ "title": "MeowLink account profile",
5
+ "description": "Cloud account display name and private avatar. The account stores an object key. Read and upload URLs are short-lived and are not durable links. Request bodies are selected by target and defined alongside the profile.",
6
+ "$ref": "#/$defs/profile",
7
+ "$defs": {
8
+ "profileGetRequest": {
9
+ "type": "object",
10
+ "additionalProperties": false
11
+ },
12
+ "profileUpdateRequest": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["name"],
16
+ "properties": {
17
+ "name": { "type": "string", "minLength": 1, "maxLength": 40 }
18
+ }
19
+ },
20
+ "prepareAvatarRequest": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": ["contentType"],
24
+ "properties": {
25
+ "contentType": {
26
+ "enum": ["image/jpeg", "image/png", "image/webp"]
27
+ }
28
+ }
29
+ },
30
+ "commitAvatarRequest": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["objectKey"],
34
+ "properties": {
35
+ "objectKey": { "type": "string", "minLength": 1, "maxLength": 512 }
36
+ }
37
+ },
38
+ "clearAvatarRequest": {
39
+ "type": "object",
40
+ "additionalProperties": false
41
+ },
42
+ "profile": {
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": ["name", "email"],
46
+ "properties": {
47
+ "name": { "type": "string" },
48
+ "email": { "type": "string" },
49
+ "avatarUrl": { "type": ["string", "null"] },
50
+ "avatarExpiresAtMs": { "type": ["integer", "null"] }
51
+ }
52
+ },
53
+ "preparedAvatarUpload": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": ["objectKey", "uploadUrl", "expiresAtMs", "contentType", "maxBytes"],
57
+ "properties": {
58
+ "objectKey": { "type": "string", "minLength": 1 },
59
+ "uploadUrl": { "type": "string", "minLength": 1 },
60
+ "expiresAtMs": { "type": "integer" },
61
+ "contentType": { "enum": ["image/jpeg", "image/png", "image/webp"] },
62
+ "maxBytes": { "type": "integer", "minimum": 1 }
63
+ }
64
+ }
65
+ }
66
+ }