@mhome/conversation-protocol 4.1.0 → 4.4.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.
package/README.md CHANGED
@@ -55,11 +55,25 @@ data. The UI operates on that exact session. A status check returns its actual r
55
55
  only a new tool call can request further human interaction. Prepared approvals retain their
56
56
  business prepare/commit contract. Card state and responses are separate from model history.
57
57
 
58
+ A UserAction response may carry optional `clientReport` beside `actionId` and
59
+ `response`: `{ "warnings": [{ "code": "SYNC_PENDING", "message": "Sync pending" }] }`.
60
+ It is allowed with continue or cancel, never approve/reject. Warning code/message
61
+ must be nonblank, the list nonempty, and unknown report fields are rejected. No
62
+ report is required when the Operation observed no warning. This contains only
63
+ public client observations during the Operation; it is not proof of completion.
64
+ Business handlers still validate the input or read authoritative state. Runtime
65
+ adds the report to the final result only after execution: a framework-owned
66
+ `CLIENT_OPERATION_REPORT` warning on success/partial/cancelled, or
67
+ `error.details.clientReport` on error. The source is `frontend_operation` with
68
+ `verified: false`; neither status nor business data is overwritten. Reports are
69
+ private answer data until included, explicitly attributed, in the tool result.
70
+
58
71
  The Conversation backend accepts a nonempty subset of distinct known item answers, persists
59
72
  partial responses privately with their responder identities, and resumes Runtime only after
60
73
  all items are answered. Public `PendingInteraction.answeredActionIds` is required and carries
61
74
  only progress. Clients show the first unanswered item and advance after canonical acknowledgement.
62
- Identical retries by the same responder are idempotent; accepted answers cannot be edited.
75
+ Identical retries by the same responder are idempotent; accepted answers, including
76
+ their client reports, cannot be edited.
63
77
  Runtime's execution command still carries the complete batch. User actions may open a shared
64
78
  frontend Operation that performs its business writes before returning a safe result. The
65
79
  saved handler validates or reads that result rather than repeating the write.
@@ -85,6 +99,13 @@ adopted by Lion and Cloud together before deployment.
85
99
 
86
100
  Execution commands, events, facade responses and their typed nested objects reject undeclared fields, including null-valued unknown fields. Opaque JSON inputs/results and model continuation payloads remain extensible; known optional null fields remain accepted. Enforcement lives on the typed DTOs as well as the wire entry point because Serde's internally tagged enum buffering bypasses an outer `serde_ignored` observer. Tagged unit variants explicitly require an empty remaining map. The enclosing wire envelope retains version 1; callers must adopt the current package contract together.
87
101
 
102
+ `fixtures/response/conformance.json` defines valid and invalid final Facade
103
+ responses for all four outcomes. Rust verifies the typed response and complete
104
+ execution envelope; strict AJV verifies both the execution envelope and the
105
+ standalone App Facade response schema against the same cases. The npm protocol
106
+ descriptor exposes these cases as `fixtures.facadeResponse`. The embedded response
107
+ definition must match the standalone schema after rebasing its local references.
108
+
88
109
  ## Disposable execution presentation
89
110
 
90
111
  `assistant.preview`, `run.progress`, and `run.system_failed` are best-effort live
@@ -40,7 +40,8 @@
40
40
  "input": {
41
41
  "capability": "device.turn_on",
42
42
  "device_id": "device-1"
43
- }
43
+ },
44
+ "response_detail": "full"
44
45
  }
45
46
  }
46
47
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "target": "/chat/interaction/answer",
3
+ "direction": "request",
4
+ "body": {
5
+ "requestId": "request-1",
6
+ "batchId": "batch-1",
7
+ "occurredAtUnixMs": 1787587200000,
8
+ "responses": [
9
+ {
10
+ "actionId": "action-1",
11
+ "response": {
12
+ "action": "continue",
13
+ "data": {
14
+ "spaceId": "space-demo"
15
+ }
16
+ },
17
+ "clientReport": {
18
+ "warnings": [
19
+ {
20
+ "code": "SYNC_PENDING",
21
+ "message": "Saved; synchronization is pending"
22
+ }
23
+ ]
24
+ }
25
+ }
26
+ ]
27
+ }
28
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "target": "/chat/interaction/submit",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-2",
6
+ "batchId": "batch-1",
7
+ "responses": [
8
+ {
9
+ "actionId": "action-1",
10
+ "response": {
11
+ "action": "continue",
12
+ "data": {
13
+ "spaceId": "space-demo"
14
+ }
15
+ },
16
+ "clientReport": {
17
+ "warnings": [
18
+ {
19
+ "code": "SYNC_PENDING",
20
+ "message": "Saved; synchronization is pending"
21
+ }
22
+ ]
23
+ }
24
+ }
25
+ ]
26
+ }
27
+ }
@@ -0,0 +1,549 @@
1
+ {
2
+ "valid": [
3
+ {
4
+ "name": "success data object",
5
+ "value": {
6
+ "status": "success",
7
+ "data": {
8
+ "ids": [
9
+ "a"
10
+ ]
11
+ }
12
+ }
13
+ },
14
+ {
15
+ "name": "success data null",
16
+ "value": {
17
+ "status": "success",
18
+ "data": null
19
+ }
20
+ },
21
+ {
22
+ "name": "success data boolean",
23
+ "value": {
24
+ "status": "success",
25
+ "data": false
26
+ }
27
+ },
28
+ {
29
+ "name": "success data number",
30
+ "value": {
31
+ "status": "success",
32
+ "data": 0
33
+ }
34
+ },
35
+ {
36
+ "name": "success data array",
37
+ "value": {
38
+ "status": "success",
39
+ "data": []
40
+ }
41
+ },
42
+ {
43
+ "name": "success data string",
44
+ "value": {
45
+ "status": "success",
46
+ "data": "value"
47
+ }
48
+ },
49
+ {
50
+ "name": "success empty text",
51
+ "value": {
52
+ "status": "success",
53
+ "text": "",
54
+ "warnings": [
55
+ {
56
+ "code": "STALE",
57
+ "message": "Cached state",
58
+ "details": {
59
+ "source": "cloud"
60
+ }
61
+ }
62
+ ]
63
+ }
64
+ },
65
+ {
66
+ "name": "success YAML text",
67
+ "value": {
68
+ "status": "success",
69
+ "text": "ids:\n- a\n",
70
+ "warnings": [
71
+ {
72
+ "code": "STALE",
73
+ "message": "Cached state",
74
+ "details": {
75
+ "source": "cloud"
76
+ }
77
+ }
78
+ ]
79
+ }
80
+ },
81
+ {
82
+ "name": "success opaque data",
83
+ "value": {
84
+ "status": "success",
85
+ "data": {
86
+ "status": "failed",
87
+ "success": false,
88
+ "text": null
89
+ },
90
+ "warnings": []
91
+ }
92
+ },
93
+ {
94
+ "name": "partial data object",
95
+ "value": {
96
+ "status": "partial",
97
+ "data": {
98
+ "ids": [
99
+ "a"
100
+ ]
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "name": "partial data null",
106
+ "value": {
107
+ "status": "partial",
108
+ "data": null
109
+ }
110
+ },
111
+ {
112
+ "name": "partial data boolean",
113
+ "value": {
114
+ "status": "partial",
115
+ "data": false
116
+ }
117
+ },
118
+ {
119
+ "name": "partial data number",
120
+ "value": {
121
+ "status": "partial",
122
+ "data": 0
123
+ }
124
+ },
125
+ {
126
+ "name": "partial data array",
127
+ "value": {
128
+ "status": "partial",
129
+ "data": []
130
+ }
131
+ },
132
+ {
133
+ "name": "partial data string",
134
+ "value": {
135
+ "status": "partial",
136
+ "data": "value"
137
+ }
138
+ },
139
+ {
140
+ "name": "partial empty text",
141
+ "value": {
142
+ "status": "partial",
143
+ "text": "",
144
+ "warnings": [
145
+ {
146
+ "code": "STALE",
147
+ "message": "Cached state",
148
+ "details": {
149
+ "source": "cloud"
150
+ }
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ {
156
+ "name": "partial YAML text",
157
+ "value": {
158
+ "status": "partial",
159
+ "text": "ids:\n- a\n",
160
+ "warnings": [
161
+ {
162
+ "code": "STALE",
163
+ "message": "Cached state",
164
+ "details": {
165
+ "source": "cloud"
166
+ }
167
+ }
168
+ ]
169
+ }
170
+ },
171
+ {
172
+ "name": "partial opaque data",
173
+ "value": {
174
+ "status": "partial",
175
+ "data": {
176
+ "status": "failed",
177
+ "success": false,
178
+ "text": null
179
+ },
180
+ "warnings": []
181
+ }
182
+ },
183
+ {
184
+ "name": "error",
185
+ "value": {
186
+ "status": "error",
187
+ "error": {
188
+ "code": "CONFLICT",
189
+ "message": "Changed"
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "name": "error diagnostics",
195
+ "value": {
196
+ "status": "error",
197
+ "error": {
198
+ "code": "CONFLICT",
199
+ "message": "Changed",
200
+ "details": {
201
+ "cause": {
202
+ "revision": 3
203
+ },
204
+ "warnings": [
205
+ {
206
+ "code": "STALE",
207
+ "message": "Cached state",
208
+ "details": {
209
+ "source": "cloud"
210
+ }
211
+ }
212
+ ],
213
+ "context": "Retry after reading state"
214
+ }
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "name": "error null details",
220
+ "value": {
221
+ "status": "error",
222
+ "error": {
223
+ "code": "E",
224
+ "message": "failed",
225
+ "details": null
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "name": "cancelled",
231
+ "value": {
232
+ "status": "cancelled"
233
+ }
234
+ },
235
+ {
236
+ "name": "cancelled cleanup warning",
237
+ "value": {
238
+ "status": "cancelled",
239
+ "warnings": [
240
+ {
241
+ "code": "STALE",
242
+ "message": "Cached state",
243
+ "details": {
244
+ "source": "cloud"
245
+ }
246
+ }
247
+ ]
248
+ }
249
+ },
250
+ {
251
+ "name": "cancelled empty warnings",
252
+ "value": {
253
+ "status": "cancelled",
254
+ "warnings": []
255
+ }
256
+ }
257
+ ],
258
+ "invalid": [
259
+ {
260
+ "name": "success no content",
261
+ "value": {
262
+ "status": "success"
263
+ }
264
+ },
265
+ {
266
+ "name": "success both contents",
267
+ "value": {
268
+ "status": "success",
269
+ "data": {},
270
+ "text": "text"
271
+ }
272
+ },
273
+ {
274
+ "name": "success null data and text",
275
+ "value": {
276
+ "status": "success",
277
+ "data": null,
278
+ "text": ""
279
+ }
280
+ },
281
+ {
282
+ "name": "success null text",
283
+ "value": {
284
+ "status": "success",
285
+ "text": null
286
+ }
287
+ },
288
+ {
289
+ "name": "success number text",
290
+ "value": {
291
+ "status": "success",
292
+ "text": 2
293
+ }
294
+ },
295
+ {
296
+ "name": "success unknown property",
297
+ "value": {
298
+ "status": "success",
299
+ "data": {},
300
+ "extra": null
301
+ }
302
+ },
303
+ {
304
+ "name": "success error field",
305
+ "value": {
306
+ "status": "success",
307
+ "data": {},
308
+ "error": {
309
+ "code": "E",
310
+ "message": "bad"
311
+ }
312
+ }
313
+ },
314
+ {
315
+ "name": "success null warnings",
316
+ "value": {
317
+ "status": "success",
318
+ "data": {},
319
+ "warnings": null
320
+ }
321
+ },
322
+ {
323
+ "name": "success invalid warning",
324
+ "value": {
325
+ "status": "success",
326
+ "data": {},
327
+ "warnings": [
328
+ {
329
+ "code": "W"
330
+ }
331
+ ]
332
+ }
333
+ },
334
+ {
335
+ "name": "success unknown warning property",
336
+ "value": {
337
+ "status": "success",
338
+ "data": {},
339
+ "warnings": [
340
+ {
341
+ "code": "W",
342
+ "message": "warning",
343
+ "extra": null
344
+ }
345
+ ]
346
+ }
347
+ },
348
+ {
349
+ "name": "partial no content",
350
+ "value": {
351
+ "status": "partial"
352
+ }
353
+ },
354
+ {
355
+ "name": "partial both contents",
356
+ "value": {
357
+ "status": "partial",
358
+ "data": {},
359
+ "text": "text"
360
+ }
361
+ },
362
+ {
363
+ "name": "partial null data and text",
364
+ "value": {
365
+ "status": "partial",
366
+ "data": null,
367
+ "text": ""
368
+ }
369
+ },
370
+ {
371
+ "name": "partial null text",
372
+ "value": {
373
+ "status": "partial",
374
+ "text": null
375
+ }
376
+ },
377
+ {
378
+ "name": "partial number text",
379
+ "value": {
380
+ "status": "partial",
381
+ "text": 2
382
+ }
383
+ },
384
+ {
385
+ "name": "partial unknown property",
386
+ "value": {
387
+ "status": "partial",
388
+ "data": {},
389
+ "extra": null
390
+ }
391
+ },
392
+ {
393
+ "name": "partial error field",
394
+ "value": {
395
+ "status": "partial",
396
+ "data": {},
397
+ "error": {
398
+ "code": "E",
399
+ "message": "bad"
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "name": "partial null warnings",
405
+ "value": {
406
+ "status": "partial",
407
+ "data": {},
408
+ "warnings": null
409
+ }
410
+ },
411
+ {
412
+ "name": "partial invalid warning",
413
+ "value": {
414
+ "status": "partial",
415
+ "data": {},
416
+ "warnings": [
417
+ {
418
+ "code": "W"
419
+ }
420
+ ]
421
+ }
422
+ },
423
+ {
424
+ "name": "partial unknown warning property",
425
+ "value": {
426
+ "status": "partial",
427
+ "data": {},
428
+ "warnings": [
429
+ {
430
+ "code": "W",
431
+ "message": "warning",
432
+ "extra": null
433
+ }
434
+ ]
435
+ }
436
+ },
437
+ {
438
+ "name": "error without problem",
439
+ "value": {
440
+ "status": "error"
441
+ }
442
+ },
443
+ {
444
+ "name": "error without code",
445
+ "value": {
446
+ "status": "error",
447
+ "error": {
448
+ "message": "bad"
449
+ }
450
+ }
451
+ },
452
+ {
453
+ "name": "error with unknown field",
454
+ "value": {
455
+ "status": "error",
456
+ "error": {
457
+ "code": "E",
458
+ "message": "bad",
459
+ "extra": null
460
+ }
461
+ }
462
+ },
463
+ {
464
+ "name": "error with data",
465
+ "value": {
466
+ "status": "error",
467
+ "error": {
468
+ "code": "E",
469
+ "message": "bad"
470
+ },
471
+ "data": null
472
+ }
473
+ },
474
+ {
475
+ "name": "error with text",
476
+ "value": {
477
+ "status": "error",
478
+ "error": {
479
+ "code": "E",
480
+ "message": "bad"
481
+ },
482
+ "text": ""
483
+ }
484
+ },
485
+ {
486
+ "name": "error with warnings",
487
+ "value": {
488
+ "status": "error",
489
+ "error": {
490
+ "code": "E",
491
+ "message": "bad"
492
+ },
493
+ "warnings": []
494
+ }
495
+ },
496
+ {
497
+ "name": "cancelled with data",
498
+ "value": {
499
+ "status": "cancelled",
500
+ "data": null
501
+ }
502
+ },
503
+ {
504
+ "name": "cancelled with text",
505
+ "value": {
506
+ "status": "cancelled",
507
+ "text": ""
508
+ }
509
+ },
510
+ {
511
+ "name": "cancelled with error",
512
+ "value": {
513
+ "status": "cancelled",
514
+ "error": {
515
+ "code": "E",
516
+ "message": "bad"
517
+ }
518
+ }
519
+ },
520
+ {
521
+ "name": "cancelled with null warnings",
522
+ "value": {
523
+ "status": "cancelled",
524
+ "warnings": null
525
+ }
526
+ },
527
+ {
528
+ "name": "missing status",
529
+ "value": {
530
+ "data": {}
531
+ }
532
+ },
533
+ {
534
+ "name": "unknown status",
535
+ "value": {
536
+ "status": "done",
537
+ "data": {}
538
+ }
539
+ },
540
+ {
541
+ "name": "non object",
542
+ "value": []
543
+ },
544
+ {
545
+ "name": "null response",
546
+ "value": null
547
+ }
548
+ ]
549
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.conversation.targets.v1",
3
- "contractVersion": "4.1.0",
3
+ "contractVersion": "4.4.0",
4
4
  "requestTargets": [
5
5
  "/chat/control/get",
6
6
  "/chat/thread/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/conversation-protocol",
3
- "version": "4.1.0",
3
+ "version": "4.4.0",
4
4
  "description": "Build-time protocol artifacts for mhome.conversation",
5
5
  "license": "MIT",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.conversation",
3
- "contractVersion": "4.1.0",
3
+ "contractVersion": "4.4.0",
4
4
  "manifest": "manifest/targets.v1.json",
5
5
  "schemas": {
6
6
  "frame": "schema/conversation-frame.v2.schema.json",
@@ -8,6 +8,7 @@
8
8
  "podTalk": "schema/pod-talk.v1.schema.json"
9
9
  },
10
10
  "fixtures": {
11
- "valid": "fixtures"
11
+ "valid": "fixtures",
12
+ "facadeResponse": "fixtures/response/conformance.json"
12
13
  }
13
14
  }
@@ -3059,6 +3059,56 @@
3059
3059
  }
3060
3060
  }
3061
3061
  ]
3062
+ },
3063
+ "clientReport": {
3064
+ "type": "object",
3065
+ "additionalProperties": false,
3066
+ "required": [
3067
+ "warnings"
3068
+ ],
3069
+ "properties": {
3070
+ "warnings": {
3071
+ "type": "array",
3072
+ "minItems": 1,
3073
+ "items": {
3074
+ "type": "object",
3075
+ "additionalProperties": false,
3076
+ "required": [
3077
+ "code",
3078
+ "message"
3079
+ ],
3080
+ "properties": {
3081
+ "code": {
3082
+ "type": "string",
3083
+ "minLength": 1,
3084
+ "pattern": "\\S"
3085
+ },
3086
+ "message": {
3087
+ "type": "string",
3088
+ "minLength": 1,
3089
+ "pattern": "\\S"
3090
+ }
3091
+ }
3092
+ }
3093
+ }
3094
+ }
3095
+ }
3096
+ },
3097
+ "dependentSchemas": {
3098
+ "clientReport": {
3099
+ "properties": {
3100
+ "response": {
3101
+ "type": "object",
3102
+ "properties": {
3103
+ "action": {
3104
+ "enum": [
3105
+ "continue",
3106
+ "cancel"
3107
+ ]
3108
+ }
3109
+ }
3110
+ }
3111
+ }
3062
3112
  }
3063
3113
  }
3064
3114
  }
@@ -1132,7 +1132,8 @@
1132
1132
  "required": [
1133
1133
  "operation_id",
1134
1134
  "target",
1135
- "input"
1135
+ "input",
1136
+ "response_detail"
1136
1137
  ],
1137
1138
  "properties": {
1138
1139
  "operation_id": {
@@ -1141,7 +1142,14 @@
1141
1142
  "target": {
1142
1143
  "$ref": "#/$defs/identifier"
1143
1144
  },
1144
- "input": true
1145
+ "input": true,
1146
+ "response_detail": {
1147
+ "enum": [
1148
+ "full",
1149
+ "essential"
1150
+ ],
1151
+ "default": "full"
1152
+ }
1145
1153
  }
1146
1154
  },
1147
1155
  "app_facade_request": {
@@ -1214,7 +1222,9 @@
1214
1222
  "value"
1215
1223
  ],
1216
1224
  "properties": {
1217
- "value": true,
1225
+ "value": {
1226
+ "$ref": "#/$defs/facade_response"
1227
+ },
1218
1228
  "context_invalidation": {
1219
1229
  "type": "object",
1220
1230
  "additionalProperties": false,
@@ -2052,6 +2062,194 @@
2052
2062
  }
2053
2063
  }
2054
2064
  ]
2065
+ },
2066
+ "clientReport": {
2067
+ "type": "object",
2068
+ "additionalProperties": false,
2069
+ "required": [
2070
+ "warnings"
2071
+ ],
2072
+ "properties": {
2073
+ "warnings": {
2074
+ "type": "array",
2075
+ "minItems": 1,
2076
+ "items": {
2077
+ "type": "object",
2078
+ "additionalProperties": false,
2079
+ "required": [
2080
+ "code",
2081
+ "message"
2082
+ ],
2083
+ "properties": {
2084
+ "code": {
2085
+ "type": "string",
2086
+ "minLength": 1,
2087
+ "pattern": "\\S"
2088
+ },
2089
+ "message": {
2090
+ "type": "string",
2091
+ "minLength": 1,
2092
+ "pattern": "\\S"
2093
+ }
2094
+ }
2095
+ }
2096
+ }
2097
+ }
2098
+ }
2099
+ },
2100
+ "dependentSchemas": {
2101
+ "clientReport": {
2102
+ "properties": {
2103
+ "response": {
2104
+ "type": "object",
2105
+ "properties": {
2106
+ "action": {
2107
+ "enum": [
2108
+ "continue",
2109
+ "cancel"
2110
+ ]
2111
+ }
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ },
2118
+ "facade_response": {
2119
+ "title": "App Facade final response",
2120
+ "oneOf": [
2121
+ {
2122
+ "type": "object",
2123
+ "additionalProperties": false,
2124
+ "required": [
2125
+ "status"
2126
+ ],
2127
+ "properties": {
2128
+ "status": {
2129
+ "const": "success"
2130
+ },
2131
+ "data": true,
2132
+ "text": {
2133
+ "type": "string"
2134
+ },
2135
+ "warnings": {
2136
+ "type": "array",
2137
+ "items": {
2138
+ "$ref": "#/$defs/facade_response/$defs/problem"
2139
+ }
2140
+ }
2141
+ },
2142
+ "oneOf": [
2143
+ {
2144
+ "required": [
2145
+ "data"
2146
+ ],
2147
+ "properties": {
2148
+ "data": true
2149
+ }
2150
+ },
2151
+ {
2152
+ "required": [
2153
+ "text"
2154
+ ],
2155
+ "properties": {
2156
+ "text": true
2157
+ }
2158
+ }
2159
+ ]
2160
+ },
2161
+ {
2162
+ "type": "object",
2163
+ "additionalProperties": false,
2164
+ "required": [
2165
+ "status"
2166
+ ],
2167
+ "properties": {
2168
+ "status": {
2169
+ "const": "partial"
2170
+ },
2171
+ "data": true,
2172
+ "text": {
2173
+ "type": "string"
2174
+ },
2175
+ "warnings": {
2176
+ "type": "array",
2177
+ "items": {
2178
+ "$ref": "#/$defs/facade_response/$defs/problem"
2179
+ }
2180
+ }
2181
+ },
2182
+ "oneOf": [
2183
+ {
2184
+ "required": [
2185
+ "data"
2186
+ ],
2187
+ "properties": {
2188
+ "data": true
2189
+ }
2190
+ },
2191
+ {
2192
+ "required": [
2193
+ "text"
2194
+ ],
2195
+ "properties": {
2196
+ "text": true
2197
+ }
2198
+ }
2199
+ ]
2200
+ },
2201
+ {
2202
+ "type": "object",
2203
+ "additionalProperties": false,
2204
+ "required": [
2205
+ "status",
2206
+ "error"
2207
+ ],
2208
+ "properties": {
2209
+ "status": {
2210
+ "const": "error"
2211
+ },
2212
+ "error": {
2213
+ "$ref": "#/$defs/facade_response/$defs/problem"
2214
+ }
2215
+ }
2216
+ },
2217
+ {
2218
+ "type": "object",
2219
+ "additionalProperties": false,
2220
+ "required": [
2221
+ "status"
2222
+ ],
2223
+ "properties": {
2224
+ "status": {
2225
+ "const": "cancelled"
2226
+ },
2227
+ "warnings": {
2228
+ "type": "array",
2229
+ "items": {
2230
+ "$ref": "#/$defs/facade_response/$defs/problem"
2231
+ }
2232
+ }
2233
+ }
2234
+ }
2235
+ ],
2236
+ "$defs": {
2237
+ "problem": {
2238
+ "type": "object",
2239
+ "additionalProperties": false,
2240
+ "required": [
2241
+ "code",
2242
+ "message"
2243
+ ],
2244
+ "properties": {
2245
+ "code": {
2246
+ "type": "string"
2247
+ },
2248
+ "message": {
2249
+ "type": "string"
2250
+ },
2251
+ "details": true
2252
+ }
2055
2253
  }
2056
2254
  }
2057
2255
  }