@canonmsg/backend-contracts 1.9.0 → 2.0.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.
Files changed (198) hide show
  1. package/dist/agentBehaviorPolicy.d.ts +45 -86
  2. package/dist/agentBehaviorPolicy.js +0 -53
  3. package/dist/cjs/agentBehaviorPolicy.js +1 -54
  4. package/dist/cjs/contactRequest.js +0 -30
  5. package/dist/cjs/index.js +0 -8
  6. package/dist/cjs/media.js +0 -13
  7. package/dist/cjs/message.js +0 -64
  8. package/dist/cjs/runtimeCardFields.js +1 -58
  9. package/dist/cjs/turnProtocol.js +1 -41
  10. package/dist/contactRequest.d.ts +23 -42
  11. package/dist/contactRequest.js +0 -29
  12. package/dist/index.d.ts +0 -8
  13. package/dist/index.js +0 -8
  14. package/dist/media.d.ts +11 -24
  15. package/dist/media.js +0 -12
  16. package/dist/message.d.ts +50 -133
  17. package/dist/message.js +1 -64
  18. package/dist/runtimeCardFields.d.ts +39 -112
  19. package/dist/runtimeCardFields.js +0 -57
  20. package/dist/turnProtocol.d.ts +24 -91
  21. package/dist/turnProtocol.js +0 -40
  22. package/package.json +5 -8
  23. package/dist/bridgeLocal.d.ts +0 -1871
  24. package/dist/bridgeLocal.js +0 -744
  25. package/dist/cjs/bridgeLocal.js +0 -747
  26. package/dist/cjs/controlSignals.js +0 -44
  27. package/dist/cjs/endpointRegistry.js +0 -264
  28. package/dist/cjs/hitl.js +0 -171
  29. package/dist/cjs/inboundFrame.js +0 -92
  30. package/dist/cjs/restEndpoints.js +0 -237
  31. package/dist/cjs/sendContextual.js +0 -92
  32. package/dist/cjs/sseEvents.js +0 -281
  33. package/dist/controlSignals.d.ts +0 -55
  34. package/dist/controlSignals.js +0 -41
  35. package/dist/endpointRegistry.d.ts +0 -13
  36. package/dist/endpointRegistry.js +0 -261
  37. package/dist/hitl.d.ts +0 -303
  38. package/dist/hitl.js +0 -168
  39. package/dist/inboundFrame.d.ts +0 -229
  40. package/dist/inboundFrame.js +0 -89
  41. package/dist/restEndpoints.d.ts +0 -531
  42. package/dist/restEndpoints.js +0 -234
  43. package/dist/schemas/agent-behavior-settings-record.schema.json +0 -48
  44. package/dist/schemas/bridge-connection-state-notification.schema.json +0 -19
  45. package/dist/schemas/bridge-get-attachment-params.schema.json +0 -24
  46. package/dist/schemas/bridge-get-attachment-result.schema.json +0 -20
  47. package/dist/schemas/bridge-hello-params.schema.json +0 -42
  48. package/dist/schemas/bridge-hello-result.schema.json +0 -105
  49. package/dist/schemas/bridge-hitl-state.schema.json +0 -38
  50. package/dist/schemas/bridge-ok-result.schema.json +0 -15
  51. package/dist/schemas/bridge-publish-streaming-event-params.schema.json +0 -138
  52. package/dist/schemas/bridge-ready-notification.schema.json +0 -79
  53. package/dist/schemas/bridge-resync-reason.schema.json +0 -9
  54. package/dist/schemas/bridge-resync.schema.json +0 -18
  55. package/dist/schemas/bridge-rpc-error.schema.json +0 -19
  56. package/dist/schemas/bridge-rpc-id.schema.json +0 -12
  57. package/dist/schemas/bridge-rpc-notification.schema.json +0 -20
  58. package/dist/schemas/bridge-rpc-request.schema.json +0 -31
  59. package/dist/schemas/bridge-rpc-response.schema.json +0 -81
  60. package/dist/schemas/bridge-status-result.schema.json +0 -76
  61. package/dist/schemas/bridge-stream-clear-event.schema.json +0 -15
  62. package/dist/schemas/bridge-stream-event.schema.json +0 -112
  63. package/dist/schemas/bridge-stream-final-event.schema.json +0 -19
  64. package/dist/schemas/bridge-stream-text-event.schema.json +0 -31
  65. package/dist/schemas/bridge-stream-thinking-event.schema.json +0 -15
  66. package/dist/schemas/bridge-stream-tool-event.schema.json +0 -36
  67. package/dist/schemas/bridge-upload-media-params.schema.json +0 -28
  68. package/dist/schemas/bridge-upstream-state.schema.json +0 -10
  69. package/dist/schemas/contacts-response.schema.json +0 -52
  70. package/dist/schemas/control-channel-key.schema.json +0 -10
  71. package/dist/schemas/control-primitive-event.schema.json +0 -30
  72. package/dist/schemas/control-primitive-map.schema.json +0 -15
  73. package/dist/schemas/control-session-event.schema.json +0 -26
  74. package/dist/schemas/control-session-node.schema.json +0 -11
  75. package/dist/schemas/control-signal-event.schema.json +0 -35
  76. package/dist/schemas/control-signal-node.schema.json +0 -22
  77. package/dist/schemas/control-signal-type.schema.json +0 -10
  78. package/dist/schemas/conversations-response.schema.json +0 -167
  79. package/dist/schemas/create-contact-request-request.schema.json +0 -17
  80. package/dist/schemas/create-contact-request-response.schema.json +0 -51
  81. package/dist/schemas/create-conversation-request.schema.json +0 -82
  82. package/dist/schemas/create-conversation-response.schema.json +0 -29
  83. package/dist/schemas/delete-message-response.schema.json +0 -11
  84. package/dist/schemas/delivery-intent.schema.json +0 -11
  85. package/dist/schemas/forward-message-request.schema.json +0 -25
  86. package/dist/schemas/forward-message-response.schema.json +0 -35
  87. package/dist/schemas/forwarded-from.schema.json +0 -18
  88. package/dist/schemas/get-messages-query.schema.json +0 -17
  89. package/dist/schemas/hitl-approval-category.schema.json +0 -15
  90. package/dist/schemas/hitl-approval-detail.schema.json +0 -21
  91. package/dist/schemas/hitl-approval-outcome-record.schema.json +0 -33
  92. package/dist/schemas/hitl-approval-reply-record.schema.json +0 -57
  93. package/dist/schemas/hitl-approval-request-record.schema.json +0 -105
  94. package/dist/schemas/hitl-approval-risk.schema.json +0 -11
  95. package/dist/schemas/hitl-card-outcome-record.schema.json +0 -48
  96. package/dist/schemas/hitl-card-reply-record.schema.json +0 -46
  97. package/dist/schemas/hitl-card-request-record.schema.json +0 -73
  98. package/dist/schemas/hitl-input-answers.schema.json +0 -23
  99. package/dist/schemas/hitl-input-kind.schema.json +0 -10
  100. package/dist/schemas/hitl-input-outcome-record.schema.json +0 -46
  101. package/dist/schemas/hitl-input-question.schema.json +0 -54
  102. package/dist/schemas/hitl-input-reply-record.schema.json +0 -44
  103. package/dist/schemas/hitl-input-request-record.schema.json +0 -134
  104. package/dist/schemas/hitl-pending.schema.json +0 -31
  105. package/dist/schemas/hitl-request-accepted.schema.json +0 -18
  106. package/dist/schemas/hitl-request-kind.schema.json +0 -10
  107. package/dist/schemas/hitl-resolution-status.schema.json +0 -10
  108. package/dist/schemas/hitl-resolution.schema.json +0 -38
  109. package/dist/schemas/hitl-session-rule.schema.json +0 -32
  110. package/dist/schemas/inbound-disposition.schema.json +0 -13
  111. package/dist/schemas/inbound-frame-attachment-v1.schema.json +0 -94
  112. package/dist/schemas/inbound-frame-contact-card-v1.schema.json +0 -59
  113. package/dist/schemas/inbound-frame-group-context-v1.schema.json +0 -96
  114. package/dist/schemas/inbound-frame-reply-context-v1.schema.json +0 -261
  115. package/dist/schemas/inbound-frame-shape-v1.schema.json +0 -12
  116. package/dist/schemas/inbound-frame-v1.schema.json +0 -506
  117. package/dist/schemas/mark-read-response.schema.json +0 -11
  118. package/dist/schemas/media-attachment-kind.schema.json +0 -11
  119. package/dist/schemas/media-attachment.schema.json +0 -42
  120. package/dist/schemas/messages-page-response.schema.json +0 -290
  121. package/dist/schemas/participation-decision-input.schema.json +0 -44
  122. package/dist/schemas/participation-history-message.schema.json +0 -23
  123. package/dist/schemas/participation-history-snapshot.schema.json +0 -37
  124. package/dist/schemas/participation-style.schema.json +0 -13
  125. package/dist/schemas/react-request.schema.json +0 -22
  126. package/dist/schemas/react-response.schema.json +0 -35
  127. package/dist/schemas/resolve-admission-request.schema.json +0 -30
  128. package/dist/schemas/resolve-admission-response.schema.json +0 -129
  129. package/dist/schemas/resolved-agent-behavior-policy-record.schema.json +0 -81
  130. package/dist/schemas/rest-contact.schema.json +0 -40
  131. package/dist/schemas/rest-conversation-last-message.schema.json +0 -77
  132. package/dist/schemas/rest-conversation.schema.json +0 -155
  133. package/dist/schemas/rest-message.schema.json +0 -252
  134. package/dist/schemas/rest-ok-response.schema.json +0 -11
  135. package/dist/schemas/rest-session-selection.schema.json +0 -40
  136. package/dist/schemas/runtime-card-field-choice.schema.json +0 -23
  137. package/dist/schemas/runtime-card-field-type.schema.json +0 -17
  138. package/dist/schemas/runtime-card-field.schema.json +0 -180
  139. package/dist/schemas/runtime-card-line-item-column-type.schema.json +0 -12
  140. package/dist/schemas/runtime-card-line-item-column.schema.json +0 -74
  141. package/dist/schemas/send-contextual-deferred-response.schema.json +0 -39
  142. package/dist/schemas/send-contextual-messaged-response.schema.json +0 -42
  143. package/dist/schemas/send-contextual-request.schema.json +0 -103
  144. package/dist/schemas/send-contextual-response.schema.json +0 -105
  145. package/dist/schemas/send-contextual-self-context.schema.json +0 -19
  146. package/dist/schemas/send-contextual-state-response.schema.json +0 -24
  147. package/dist/schemas/send-message-request.schema.json +0 -106
  148. package/dist/schemas/send-message-response.schema.json +0 -14
  149. package/dist/schemas/sender-type.schema.json +0 -9
  150. package/dist/schemas/serialize-message-input.schema.json +0 -29
  151. package/dist/schemas/serialized-agent-client-type.schema.json +0 -12
  152. package/dist/schemas/serialized-contact-card.schema.json +0 -65
  153. package/dist/schemas/serialized-contact-request-status.schema.json +0 -11
  154. package/dist/schemas/serialized-contact-request.schema.json +0 -157
  155. package/dist/schemas/serialized-content-type.schema.json +0 -13
  156. package/dist/schemas/serialized-message.schema.json +0 -249
  157. package/dist/schemas/serialized-reactions.schema.json +0 -14
  158. package/dist/schemas/serialized-sender-type.schema.json +0 -9
  159. package/dist/schemas/set-streaming-request.schema.json +0 -67
  160. package/dist/schemas/set-typing-request.schema.json +0 -25
  161. package/dist/schemas/sse-access-policy.schema.json +0 -10
  162. package/dist/schemas/sse-agent-context-payload.schema.json +0 -57
  163. package/dist/schemas/sse-connected-payload.schema.json +0 -18
  164. package/dist/schemas/sse-contact-payload.schema.json +0 -40
  165. package/dist/schemas/sse-contact-removed-payload.schema.json +0 -14
  166. package/dist/schemas/sse-contact-request-payload.schema.json +0 -157
  167. package/dist/schemas/sse-conversation-updated-payload.schema.json +0 -48
  168. package/dist/schemas/sse-error-payload.schema.json +0 -23
  169. package/dist/schemas/sse-event-envelope.schema.json +0 -40
  170. package/dist/schemas/sse-event-family.schema.json +0 -12
  171. package/dist/schemas/sse-event-type.schema.json +0 -26
  172. package/dist/schemas/sse-heartbeat-payload.schema.json +0 -14
  173. package/dist/schemas/sse-membership-change.schema.json +0 -28
  174. package/dist/schemas/sse-message-created-payload.schema.json +0 -414
  175. package/dist/schemas/sse-message-deleted-payload.schema.json +0 -18
  176. package/dist/schemas/sse-message-updated-payload.schema.json +0 -46
  177. package/dist/schemas/sse-presence-payload.schema.json +0 -21
  178. package/dist/schemas/sse-provenance.schema.json +0 -64
  179. package/dist/schemas/sse-replay-expired-payload.schema.json +0 -21
  180. package/dist/schemas/sse-runtime-control-kind.schema.json +0 -13
  181. package/dist/schemas/sse-runtime-control-payload.schema.json +0 -44
  182. package/dist/schemas/sse-self-context.schema.json +0 -45
  183. package/dist/schemas/sse-turn-dispatch.schema.json +0 -29
  184. package/dist/schemas/sse-typing-payload.schema.json +0 -32
  185. package/dist/schemas/sse-voice-session-event-payload.schema.json +0 -170
  186. package/dist/schemas/sse-voice-session.schema.json +0 -157
  187. package/dist/schemas/trigger-decision.schema.json +0 -27
  188. package/dist/schemas/turn-lifecycle-state.schema.json +0 -14
  189. package/dist/schemas/turn-message-semantics.schema.json +0 -10
  190. package/dist/schemas/turn-metadata.schema.json +0 -56
  191. package/dist/schemas/turn-state-like.schema.json +0 -39
  192. package/dist/schemas/update-disposition-request.schema.json +0 -22
  193. package/dist/schemas/upload-media-request.schema.json +0 -25
  194. package/dist/schemas/upload-media-response.schema.json +0 -55
  195. package/dist/sendContextual.d.ts +0 -114
  196. package/dist/sendContextual.js +0 -89
  197. package/dist/sseEvents.d.ts +0 -474
  198. package/dist/sseEvents.js +0 -278
@@ -1,414 +0,0 @@
1
- {
2
- "$id": "canon:SseMessageCreatedPayloadSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "behavior": {
10
- "type": "object",
11
- "propertyNames": {
12
- "type": "string"
13
- },
14
- "additionalProperties": {}
15
- },
16
- "activeSelfContextId": {
17
- "anyOf": [
18
- {
19
- "type": "string"
20
- },
21
- {
22
- "type": "null"
23
- }
24
- ]
25
- },
26
- "selfContexts": {
27
- "type": "array",
28
- "items": {
29
- "type": "object",
30
- "properties": {
31
- "id": {
32
- "type": "string"
33
- },
34
- "type": {
35
- "type": "string",
36
- "const": "cross_session"
37
- },
38
- "context": {
39
- "type": "string"
40
- },
41
- "createdAt": {
42
- "anyOf": [
43
- {
44
- "type": "string"
45
- },
46
- {
47
- "type": "null"
48
- }
49
- ]
50
- },
51
- "updatedAt": {
52
- "anyOf": [
53
- {
54
- "type": "string"
55
- },
56
- {
57
- "type": "null"
58
- }
59
- ]
60
- }
61
- },
62
- "required": [
63
- "id",
64
- "type",
65
- "context",
66
- "createdAt",
67
- "updatedAt"
68
- ],
69
- "additionalProperties": false
70
- }
71
- },
72
- "provenance": {
73
- "type": "object",
74
- "properties": {
75
- "conversation": {
76
- "type": "object",
77
- "properties": {
78
- "id": {
79
- "type": "string"
80
- },
81
- "type": {
82
- "type": "string",
83
- "enum": [
84
- "direct",
85
- "group",
86
- "unknown"
87
- ]
88
- }
89
- },
90
- "required": [
91
- "id",
92
- "type"
93
- ],
94
- "additionalProperties": {}
95
- },
96
- "sender": {
97
- "type": "object",
98
- "properties": {
99
- "id": {
100
- "type": "string"
101
- },
102
- "name": {
103
- "type": "string"
104
- },
105
- "type": {
106
- "type": "string",
107
- "enum": [
108
- "human",
109
- "ai_agent"
110
- ]
111
- },
112
- "isOwner": {
113
- "type": "boolean"
114
- }
115
- },
116
- "required": [
117
- "id",
118
- "type",
119
- "isOwner"
120
- ],
121
- "additionalProperties": {}
122
- },
123
- "mentionedAgent": {
124
- "type": "boolean"
125
- }
126
- },
127
- "required": [
128
- "conversation",
129
- "sender",
130
- "mentionedAgent"
131
- ],
132
- "additionalProperties": {}
133
- },
134
- "turnDispatch": {
135
- "type": "object",
136
- "properties": {
137
- "kind": {
138
- "type": "string",
139
- "enum": [
140
- "run_turn",
141
- "observe_only"
142
- ]
143
- },
144
- "reason": {
145
- "type": "string"
146
- },
147
- "addressed": {
148
- "type": "boolean"
149
- },
150
- "policyVersion": {
151
- "type": "string"
152
- }
153
- },
154
- "required": [
155
- "kind",
156
- "reason",
157
- "addressed"
158
- ],
159
- "additionalProperties": {}
160
- },
161
- "message": {
162
- "type": "object",
163
- "properties": {
164
- "id": {
165
- "type": "string"
166
- },
167
- "senderId": {
168
- "type": "string"
169
- },
170
- "senderName": {
171
- "type": "string"
172
- },
173
- "senderType": {
174
- "type": "string",
175
- "enum": [
176
- "human",
177
- "ai_agent"
178
- ]
179
- },
180
- "isOwner": {
181
- "type": "boolean"
182
- },
183
- "contentType": {
184
- "type": "string",
185
- "enum": [
186
- "text",
187
- "image",
188
- "audio",
189
- "video",
190
- "file",
191
- "contact_card"
192
- ]
193
- },
194
- "text": {
195
- "anyOf": [
196
- {
197
- "type": "string"
198
- },
199
- {
200
- "type": "null"
201
- }
202
- ]
203
- },
204
- "attachments": {
205
- "type": "array",
206
- "items": {
207
- "type": "object",
208
- "properties": {
209
- "kind": {
210
- "type": "string",
211
- "enum": [
212
- "image",
213
- "audio",
214
- "video",
215
- "file"
216
- ]
217
- },
218
- "url": {
219
- "type": "string"
220
- },
221
- "mimeType": {
222
- "type": "string"
223
- },
224
- "fileName": {
225
- "type": "string"
226
- },
227
- "sizeBytes": {
228
- "type": "number"
229
- },
230
- "width": {
231
- "type": "number"
232
- },
233
- "height": {
234
- "type": "number"
235
- },
236
- "durationMs": {
237
- "type": "number"
238
- }
239
- },
240
- "required": [
241
- "kind",
242
- "url"
243
- ],
244
- "additionalProperties": false
245
- }
246
- },
247
- "mentions": {
248
- "type": "array",
249
- "items": {
250
- "type": "string"
251
- }
252
- },
253
- "replyTo": {
254
- "anyOf": [
255
- {
256
- "type": "string"
257
- },
258
- {
259
- "type": "null"
260
- }
261
- ]
262
- },
263
- "replyToPosition": {
264
- "anyOf": [
265
- {
266
- "type": "number"
267
- },
268
- {
269
- "type": "null"
270
- }
271
- ]
272
- },
273
- "forwarded": {
274
- "type": "boolean"
275
- },
276
- "forwardedFrom": {
277
- "type": "object",
278
- "properties": {
279
- "sourceConversationId": {
280
- "type": "string"
281
- },
282
- "messageId": {
283
- "type": "string"
284
- }
285
- },
286
- "required": [
287
- "sourceConversationId",
288
- "messageId"
289
- ],
290
- "additionalProperties": false
291
- },
292
- "status": {
293
- "type": "string",
294
- "enum": [
295
- "sent",
296
- "read"
297
- ]
298
- },
299
- "createdAt": {
300
- "type": "string"
301
- },
302
- "metadata": {
303
- "type": "object",
304
- "propertyNames": {
305
- "type": "string"
306
- },
307
- "additionalProperties": {}
308
- },
309
- "contactCard": {
310
- "type": "object",
311
- "properties": {
312
- "userId": {
313
- "type": "string"
314
- },
315
- "canonContactId": {
316
- "type": "string"
317
- },
318
- "displayName": {
319
- "type": "string"
320
- },
321
- "avatarUrl": {
322
- "anyOf": [
323
- {
324
- "type": "string"
325
- },
326
- {
327
- "type": "null"
328
- }
329
- ]
330
- },
331
- "userType": {
332
- "type": "string",
333
- "enum": [
334
- "human",
335
- "ai_agent"
336
- ]
337
- },
338
- "clientType": {
339
- "type": "string",
340
- "enum": [
341
- "claude-code",
342
- "openclaw",
343
- "codex",
344
- "hermes",
345
- "generic"
346
- ]
347
- },
348
- "about": {
349
- "type": "string"
350
- },
351
- "isActive": {
352
- "type": "boolean"
353
- },
354
- "ownerId": {
355
- "type": "string"
356
- },
357
- "ownerName": {
358
- "type": "string"
359
- },
360
- "lifecycleState": {
361
- "type": "string"
362
- }
363
- },
364
- "required": [
365
- "userId",
366
- "displayName",
367
- "avatarUrl",
368
- "userType"
369
- ],
370
- "additionalProperties": false
371
- },
372
- "runtimeCard": {
373
- "type": "object",
374
- "propertyNames": {
375
- "type": "string"
376
- },
377
- "additionalProperties": {}
378
- },
379
- "reactions": {
380
- "type": "object",
381
- "propertyNames": {
382
- "type": "string"
383
- },
384
- "additionalProperties": {
385
- "type": "array",
386
- "items": {
387
- "type": "string"
388
- }
389
- }
390
- }
391
- },
392
- "required": [
393
- "id",
394
- "senderId",
395
- "senderType",
396
- "isOwner",
397
- "contentType",
398
- "text",
399
- "attachments",
400
- "mentions",
401
- "replyTo",
402
- "replyToPosition",
403
- "status",
404
- "createdAt"
405
- ],
406
- "additionalProperties": false
407
- }
408
- },
409
- "required": [
410
- "conversationId",
411
- "message"
412
- ],
413
- "additionalProperties": {}
414
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$id": "canon:SseMessageDeletedPayloadSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "messageId": {
10
- "type": "string"
11
- }
12
- },
13
- "required": [
14
- "conversationId",
15
- "messageId"
16
- ],
17
- "additionalProperties": false
18
- }
@@ -1,46 +0,0 @@
1
- {
2
- "$id": "canon:SseMessageUpdatedPayloadSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "messageId": {
10
- "type": "string"
11
- },
12
- "actorId": {
13
- "type": "string"
14
- },
15
- "updatedAt": {
16
- "type": "string"
17
- },
18
- "changes": {
19
- "type": "object",
20
- "properties": {
21
- "reactions": {
22
- "type": "object",
23
- "propertyNames": {
24
- "type": "string"
25
- },
26
- "additionalProperties": {
27
- "type": "array",
28
- "items": {
29
- "type": "string"
30
- }
31
- }
32
- }
33
- },
34
- "required": [
35
- "reactions"
36
- ],
37
- "additionalProperties": {}
38
- }
39
- },
40
- "required": [
41
- "conversationId",
42
- "messageId",
43
- "changes"
44
- ],
45
- "additionalProperties": false
46
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$id": "canon:SsePresencePayloadSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "userId": {
7
- "type": "string"
8
- },
9
- "online": {
10
- "type": "boolean"
11
- },
12
- "lastSeen": {
13
- "type": "string"
14
- }
15
- },
16
- "required": [
17
- "userId",
18
- "online"
19
- ],
20
- "additionalProperties": false
21
- }
@@ -1,64 +0,0 @@
1
- {
2
- "$id": "canon:SseProvenanceSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversation": {
7
- "type": "object",
8
- "properties": {
9
- "id": {
10
- "type": "string"
11
- },
12
- "type": {
13
- "type": "string",
14
- "enum": [
15
- "direct",
16
- "group",
17
- "unknown"
18
- ]
19
- }
20
- },
21
- "required": [
22
- "id",
23
- "type"
24
- ],
25
- "additionalProperties": {}
26
- },
27
- "sender": {
28
- "type": "object",
29
- "properties": {
30
- "id": {
31
- "type": "string"
32
- },
33
- "name": {
34
- "type": "string"
35
- },
36
- "type": {
37
- "type": "string",
38
- "enum": [
39
- "human",
40
- "ai_agent"
41
- ]
42
- },
43
- "isOwner": {
44
- "type": "boolean"
45
- }
46
- },
47
- "required": [
48
- "id",
49
- "type",
50
- "isOwner"
51
- ],
52
- "additionalProperties": {}
53
- },
54
- "mentionedAgent": {
55
- "type": "boolean"
56
- }
57
- },
58
- "required": [
59
- "conversation",
60
- "sender",
61
- "mentionedAgent"
62
- ],
63
- "additionalProperties": {}
64
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$id": "canon:SseReplayExpiredPayloadSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "lastAvailableId": {
7
- "anyOf": [
8
- {
9
- "type": "string"
10
- },
11
- {
12
- "type": "null"
13
- }
14
- ]
15
- },
16
- "message": {
17
- "type": "string"
18
- }
19
- },
20
- "additionalProperties": {}
21
- }
@@ -1,13 +0,0 @@
1
- {
2
- "$id": "canon:SseRuntimeControlKindSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "session",
7
- "signal",
8
- "primitive",
9
- "runtimeInput",
10
- "runtimeCard",
11
- "runtimeApproval"
12
- ]
13
- }
@@ -1,44 +0,0 @@
1
- {
2
- "$id": "canon:SseRuntimeControlPayloadSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "agentId": {
10
- "type": "string"
11
- },
12
- "kind": {
13
- "type": "string",
14
- "enum": [
15
- "session",
16
- "signal",
17
- "primitive",
18
- "runtimeInput",
19
- "runtimeCard",
20
- "runtimeApproval"
21
- ]
22
- },
23
- "requestId": {
24
- "type": "string"
25
- },
26
- "updatedAt": {
27
- "type": "number"
28
- },
29
- "value": {
30
- "type": "object",
31
- "propertyNames": {
32
- "type": "string"
33
- },
34
- "additionalProperties": {}
35
- }
36
- },
37
- "required": [
38
- "conversationId",
39
- "agentId",
40
- "kind",
41
- "value"
42
- ],
43
- "additionalProperties": false
44
- }
@@ -1,45 +0,0 @@
1
- {
2
- "$id": "canon:SseSelfContextSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string"
8
- },
9
- "type": {
10
- "type": "string",
11
- "const": "cross_session"
12
- },
13
- "context": {
14
- "type": "string"
15
- },
16
- "createdAt": {
17
- "anyOf": [
18
- {
19
- "type": "string"
20
- },
21
- {
22
- "type": "null"
23
- }
24
- ]
25
- },
26
- "updatedAt": {
27
- "anyOf": [
28
- {
29
- "type": "string"
30
- },
31
- {
32
- "type": "null"
33
- }
34
- ]
35
- }
36
- },
37
- "required": [
38
- "id",
39
- "type",
40
- "context",
41
- "createdAt",
42
- "updatedAt"
43
- ],
44
- "additionalProperties": false
45
- }