@mhome/app-facade-protocol 1.21.0 → 1.25.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,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.v1",
3
- "contractVersion": "1.21.0",
3
+ "contractVersion": "1.25.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",
@@ -91,6 +91,29 @@
91
91
  "/app/integration/capability/detail/get"
92
92
  ],
93
93
  "includeDocumentationDefault": true
94
+ },
95
+ "person": {
96
+ "contract": "mhome.person.v1",
97
+ "schema": "schema/person.v1.schema.json",
98
+ "requestTargets": [
99
+ "/app/person/backup/export",
100
+ "/app/person/backup/import/commit",
101
+ "/app/person/backup/import/start",
102
+ "/app/person/backup/import/write",
103
+ "/app/person/backup/read",
104
+ "/app/person/backup/close",
105
+ "/app/person/clusters/name",
106
+ "/app/person/clusters/delete",
107
+ "/app/person/clusters/list",
108
+ "/app/person/get",
109
+ "/app/person/list",
110
+ "/app/person/reset",
111
+ "/app/person/clusters/image",
112
+ "/app/person/status"
113
+ ],
114
+ "managementPermission": "spaceMember",
115
+ "owner": "scopeHub",
116
+ "cloudPersistence": false
94
117
  }
95
118
  }
96
119
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.hub.targets.v1",
3
- "contractVersion": "1.21.0",
3
+ "contractVersion": "1.25.0",
4
4
  "appTargets": [
5
5
  "/app/hub/get",
6
6
  "/app/hub/remove",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.app-facade.routing.v1",
3
- "contractVersion": "1.21.0",
3
+ "contractVersion": "1.25.0",
4
4
  "targetPrefix": "/app/",
5
5
  "default": {
6
6
  "execution": "scopeMode",
@@ -34,7 +34,8 @@
34
34
  "/app/runtime/",
35
35
  "/app/system/instances/",
36
36
  "/app/system/clients/",
37
- "/app/system/hosts/"
37
+ "/app/system/hosts/",
38
+ "/app/person/"
38
39
  ],
39
40
  "requestPlacementPrefixes": [
40
41
  "/app/messaging/"
@@ -53,7 +54,21 @@
53
54
  "/app/system/clients/get",
54
55
  "/app/system/hosts/get",
55
56
  "/app/system/hosts/runtime",
56
- "/app/system/hosts/claim"
57
+ "/app/system/hosts/claim",
58
+ "/app/person/status",
59
+ "/app/person/list",
60
+ "/app/person/get",
61
+ "/app/person/reset",
62
+ "/app/person/clusters/list",
63
+ "/app/person/clusters/image",
64
+ "/app/person/backup/export",
65
+ "/app/person/backup/read",
66
+ "/app/person/backup/close",
67
+ "/app/person/backup/import/start",
68
+ "/app/person/backup/import/write",
69
+ "/app/person/backup/import/commit",
70
+ "/app/person/clusters/name",
71
+ "/app/person/clusters/delete"
57
72
  ]
58
73
  }
59
74
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.messaging.targets.v1",
3
- "contractVersion": "1.21.0",
3
+ "contractVersion": "1.25.0",
4
4
  "requestTargets": [
5
5
  "/app/messaging/provider/list",
6
6
  "/app/messaging/provider-account/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/app-facade-protocol",
3
- "version": "1.21.0",
3
+ "version": "1.25.0",
4
4
  "description": "Build-time protocol artifacts for mhome.app-facade",
5
5
  "license": "MIT",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.app-facade",
3
- "contractVersion": "1.21.0",
3
+ "contractVersion": "1.25.0",
4
4
  "manifest": "manifest/app-facade.v1.json",
5
5
  "schemas": {
6
6
  "capabilityDescriptor": "schema/capability-descriptor.v1.schema.json",
@@ -14,7 +14,8 @@
14
14
  "systemHosts": "schema/system-hosts.v1.schema.json",
15
15
  "systemHostsRuntime": "schema/system-hosts-runtime.v1.schema.json",
16
16
  "systemInstances": "schema/system-instances.v1.schema.json",
17
- "topology": "schema/topology.v1.schema.json"
17
+ "topology": "schema/topology.v1.schema.json",
18
+ "person": "schema/person.v1.schema.json"
18
19
  },
19
20
  "fixtures": {
20
21
  "valid": "fixtures",
@@ -0,0 +1,200 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "mhome.person.v1",
4
+ "title": "Person management inputs",
5
+ "$defs": {
6
+ "ListInput": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "cursor": {
11
+ "type": "string"
12
+ },
13
+ "limit": {
14
+ "type": "integer",
15
+ "minimum": 1,
16
+ "maximum": 100
17
+ }
18
+ },
19
+ "required": []
20
+ },
21
+ "IdInput": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "id": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": [
30
+ "id"
31
+ ]
32
+ },
33
+ "RevisionInput": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "properties": {
37
+ "id": {
38
+ "type": "string"
39
+ },
40
+ "expectedRevision": {
41
+ "type": "string",
42
+ "pattern": "^[0-9]+$"
43
+ },
44
+ "expectedEpoch": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ }
48
+ },
49
+ "required": [
50
+ "id",
51
+ "expectedRevision",
52
+ "expectedEpoch"
53
+ ]
54
+ },
55
+ "ResetInput": {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "properties": {
59
+ "expectedEpoch": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": [
64
+ "expectedEpoch"
65
+ ]
66
+ },
67
+ "ExportInput": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "password": {
72
+ "type": "string"
73
+ }
74
+ },
75
+ "required": [
76
+ "password"
77
+ ]
78
+ },
79
+ "ReadInput": {
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "properties": {
83
+ "id": {
84
+ "type": "string"
85
+ },
86
+ "offset": {
87
+ "type": "integer",
88
+ "minimum": 0
89
+ }
90
+ },
91
+ "required": [
92
+ "id",
93
+ "offset"
94
+ ]
95
+ },
96
+ "ImportStart": {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "properties": {
100
+ "sizeBytes": {
101
+ "type": "integer",
102
+ "minimum": 1
103
+ }
104
+ },
105
+ "required": [
106
+ "sizeBytes"
107
+ ]
108
+ },
109
+ "ImportWrite": {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "properties": {
113
+ "id": {
114
+ "type": "string"
115
+ },
116
+ "offset": {
117
+ "type": "integer",
118
+ "minimum": 0
119
+ },
120
+ "dataBase64": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "id",
126
+ "offset",
127
+ "dataBase64"
128
+ ]
129
+ },
130
+ "ImportCommit": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "properties": {
134
+ "id": {
135
+ "type": "string"
136
+ },
137
+ "password": {
138
+ "type": "string"
139
+ },
140
+ "expectedEpoch": {
141
+ "type": "string"
142
+ }
143
+ },
144
+ "required": [
145
+ "id",
146
+ "password",
147
+ "expectedEpoch"
148
+ ]
149
+ },
150
+ "ClusterName": {
151
+ "type": "object",
152
+ "additionalProperties": false,
153
+ "properties": {
154
+ "id": {
155
+ "type": "string"
156
+ },
157
+ "expectedRevision": {
158
+ "type": "string",
159
+ "pattern": "^[0-9]+$"
160
+ },
161
+ "expectedEpoch": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "name": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "maxLength": 80
169
+ },
170
+ "representativeSampleId": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ }
174
+ },
175
+ "required": [
176
+ "id",
177
+ "expectedRevision",
178
+ "expectedEpoch",
179
+ "name",
180
+ "representativeSampleId"
181
+ ]
182
+ },
183
+ "ImageInput": {
184
+ "type": "object",
185
+ "additionalProperties": false,
186
+ "properties": {
187
+ "id": {
188
+ "type": "string"
189
+ },
190
+ "representativeSampleId": {
191
+ "type": "string"
192
+ }
193
+ },
194
+ "required": [
195
+ "id",
196
+ "representativeSampleId"
197
+ ]
198
+ }
199
+ }
200
+ }