@mhome/app-facade-protocol 1.85.0 → 1.90.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,259 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.mhome.ai/app-facade/now-attention.v1.schema.json",
4
+ "$defs": {
5
+ "Input": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {},
9
+ "required": []
10
+ },
11
+ "Time": {
12
+ "oneOf": [
13
+ {
14
+ "type": "object",
15
+ "additionalProperties": false,
16
+ "properties": {
17
+ "mode": {
18
+ "const": "persistent"
19
+ }
20
+ },
21
+ "required": [
22
+ "mode"
23
+ ]
24
+ },
25
+ {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "mode": {
30
+ "const": "decay"
31
+ },
32
+ "occurredAt": {
33
+ "type": "integer",
34
+ "minimum": 1
35
+ },
36
+ "halfLifeMs": {
37
+ "type": "integer",
38
+ "minimum": 1
39
+ }
40
+ },
41
+ "required": [
42
+ "mode",
43
+ "occurredAt",
44
+ "halfLifeMs"
45
+ ]
46
+ },
47
+ {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "mode": {
52
+ "const": "window"
53
+ },
54
+ "start": {
55
+ "type": "integer",
56
+ "minimum": 0
57
+ },
58
+ "peak": {
59
+ "type": "integer",
60
+ "minimum": 0
61
+ },
62
+ "deadline": {
63
+ "type": "integer",
64
+ "minimum": 0
65
+ }
66
+ },
67
+ "required": [
68
+ "mode",
69
+ "start",
70
+ "peak",
71
+ "deadline"
72
+ ]
73
+ }
74
+ ]
75
+ },
76
+ "Association": {
77
+ "oneOf": [
78
+ {
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "properties": {
82
+ "kind": {
83
+ "const": "household"
84
+ }
85
+ },
86
+ "required": [
87
+ "kind"
88
+ ]
89
+ },
90
+ {
91
+ "type": "object",
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "kind": {
95
+ "const": "personal"
96
+ },
97
+ "ownerUserId": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ }
101
+ },
102
+ "required": [
103
+ "kind",
104
+ "ownerUserId"
105
+ ]
106
+ }
107
+ ]
108
+ },
109
+ "Context": {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "properties": {
113
+ "reasonCode": {
114
+ "type": "string",
115
+ "minLength": 1
116
+ },
117
+ "association": {
118
+ "$ref": "#/$defs/Association"
119
+ },
120
+ "time": {
121
+ "$ref": "#/$defs/Time"
122
+ }
123
+ },
124
+ "required": [
125
+ "reasonCode",
126
+ "association",
127
+ "time"
128
+ ]
129
+ },
130
+ "Source": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "properties": {
134
+ "kind": {
135
+ "enum": [
136
+ "dialog",
137
+ "device"
138
+ ]
139
+ },
140
+ "id": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ },
144
+ "capabilityId": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ }
148
+ },
149
+ "required": [
150
+ "kind",
151
+ "id"
152
+ ]
153
+ },
154
+ "Item": {
155
+ "type": "object",
156
+ "additionalProperties": false,
157
+ "properties": {
158
+ "id": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ },
162
+ "reasonCode": {
163
+ "type": "string",
164
+ "minLength": 1
165
+ },
166
+ "title": {
167
+ "type": "string"
168
+ },
169
+ "summary": {
170
+ "type": "string"
171
+ },
172
+ "source": {
173
+ "$ref": "#/$defs/Source"
174
+ },
175
+ "score": {
176
+ "type": "number",
177
+ "minimum": 0,
178
+ "maximum": 100
179
+ },
180
+ "time": {
181
+ "$ref": "#/$defs/Time"
182
+ },
183
+ "validUntil": {
184
+ "type": "integer"
185
+ },
186
+ "sourceUpdatedAt": {
187
+ "type": "integer"
188
+ },
189
+ "verificationRequired": {
190
+ "type": "boolean"
191
+ }
192
+ },
193
+ "required": [
194
+ "id",
195
+ "reasonCode",
196
+ "title",
197
+ "summary",
198
+ "source",
199
+ "score",
200
+ "time",
201
+ "sourceUpdatedAt",
202
+ "verificationRequired"
203
+ ]
204
+ },
205
+ "SourceError": {
206
+ "type": "object",
207
+ "additionalProperties": false,
208
+ "properties": {
209
+ "source": {
210
+ "type": "string",
211
+ "minLength": 1
212
+ },
213
+ "code": {
214
+ "type": "string",
215
+ "minLength": 1
216
+ }
217
+ },
218
+ "required": [
219
+ "source",
220
+ "code"
221
+ ]
222
+ },
223
+ "Output": {
224
+ "type": "object",
225
+ "additionalProperties": false,
226
+ "properties": {
227
+ "items": {
228
+ "type": "array",
229
+ "items": {
230
+ "$ref": "#/$defs/Item"
231
+ }
232
+ },
233
+ "evaluatedAt": {
234
+ "type": "integer"
235
+ },
236
+ "nextRefreshAt": {
237
+ "type": "integer"
238
+ },
239
+ "policyVersion": {
240
+ "type": "string",
241
+ "minLength": 1
242
+ },
243
+ "sourceErrors": {
244
+ "type": "array",
245
+ "items": {
246
+ "$ref": "#/$defs/SourceError"
247
+ }
248
+ }
249
+ },
250
+ "required": [
251
+ "items",
252
+ "evaluatedAt",
253
+ "nextRefreshAt",
254
+ "policyVersion",
255
+ "sourceErrors"
256
+ ]
257
+ }
258
+ }
259
+ }