@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.
- package/dist/agentBehaviorPolicy.d.ts +45 -86
- package/dist/agentBehaviorPolicy.js +0 -53
- package/dist/cjs/agentBehaviorPolicy.js +1 -54
- package/dist/cjs/contactRequest.js +0 -30
- package/dist/cjs/index.js +0 -8
- package/dist/cjs/media.js +0 -13
- package/dist/cjs/message.js +0 -64
- package/dist/cjs/runtimeCardFields.js +1 -58
- package/dist/cjs/turnProtocol.js +1 -41
- package/dist/contactRequest.d.ts +23 -42
- package/dist/contactRequest.js +0 -29
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/media.d.ts +11 -24
- package/dist/media.js +0 -12
- package/dist/message.d.ts +50 -133
- package/dist/message.js +1 -64
- package/dist/runtimeCardFields.d.ts +39 -112
- package/dist/runtimeCardFields.js +0 -57
- package/dist/turnProtocol.d.ts +24 -91
- package/dist/turnProtocol.js +0 -40
- package/package.json +5 -8
- package/dist/bridgeLocal.d.ts +0 -1871
- package/dist/bridgeLocal.js +0 -744
- package/dist/cjs/bridgeLocal.js +0 -747
- package/dist/cjs/controlSignals.js +0 -44
- package/dist/cjs/endpointRegistry.js +0 -264
- package/dist/cjs/hitl.js +0 -171
- package/dist/cjs/inboundFrame.js +0 -92
- package/dist/cjs/restEndpoints.js +0 -237
- package/dist/cjs/sendContextual.js +0 -92
- package/dist/cjs/sseEvents.js +0 -281
- package/dist/controlSignals.d.ts +0 -55
- package/dist/controlSignals.js +0 -41
- package/dist/endpointRegistry.d.ts +0 -13
- package/dist/endpointRegistry.js +0 -261
- package/dist/hitl.d.ts +0 -303
- package/dist/hitl.js +0 -168
- package/dist/inboundFrame.d.ts +0 -229
- package/dist/inboundFrame.js +0 -89
- package/dist/restEndpoints.d.ts +0 -531
- package/dist/restEndpoints.js +0 -234
- package/dist/schemas/agent-behavior-settings-record.schema.json +0 -48
- package/dist/schemas/bridge-connection-state-notification.schema.json +0 -19
- package/dist/schemas/bridge-get-attachment-params.schema.json +0 -24
- package/dist/schemas/bridge-get-attachment-result.schema.json +0 -20
- package/dist/schemas/bridge-hello-params.schema.json +0 -42
- package/dist/schemas/bridge-hello-result.schema.json +0 -105
- package/dist/schemas/bridge-hitl-state.schema.json +0 -38
- package/dist/schemas/bridge-ok-result.schema.json +0 -15
- package/dist/schemas/bridge-publish-streaming-event-params.schema.json +0 -138
- package/dist/schemas/bridge-ready-notification.schema.json +0 -79
- package/dist/schemas/bridge-resync-reason.schema.json +0 -9
- package/dist/schemas/bridge-resync.schema.json +0 -18
- package/dist/schemas/bridge-rpc-error.schema.json +0 -19
- package/dist/schemas/bridge-rpc-id.schema.json +0 -12
- package/dist/schemas/bridge-rpc-notification.schema.json +0 -20
- package/dist/schemas/bridge-rpc-request.schema.json +0 -31
- package/dist/schemas/bridge-rpc-response.schema.json +0 -81
- package/dist/schemas/bridge-status-result.schema.json +0 -76
- package/dist/schemas/bridge-stream-clear-event.schema.json +0 -15
- package/dist/schemas/bridge-stream-event.schema.json +0 -112
- package/dist/schemas/bridge-stream-final-event.schema.json +0 -19
- package/dist/schemas/bridge-stream-text-event.schema.json +0 -31
- package/dist/schemas/bridge-stream-thinking-event.schema.json +0 -15
- package/dist/schemas/bridge-stream-tool-event.schema.json +0 -36
- package/dist/schemas/bridge-upload-media-params.schema.json +0 -28
- package/dist/schemas/bridge-upstream-state.schema.json +0 -10
- package/dist/schemas/contacts-response.schema.json +0 -52
- package/dist/schemas/control-channel-key.schema.json +0 -10
- package/dist/schemas/control-primitive-event.schema.json +0 -30
- package/dist/schemas/control-primitive-map.schema.json +0 -15
- package/dist/schemas/control-session-event.schema.json +0 -26
- package/dist/schemas/control-session-node.schema.json +0 -11
- package/dist/schemas/control-signal-event.schema.json +0 -35
- package/dist/schemas/control-signal-node.schema.json +0 -22
- package/dist/schemas/control-signal-type.schema.json +0 -10
- package/dist/schemas/conversations-response.schema.json +0 -167
- package/dist/schemas/create-contact-request-request.schema.json +0 -17
- package/dist/schemas/create-contact-request-response.schema.json +0 -51
- package/dist/schemas/create-conversation-request.schema.json +0 -82
- package/dist/schemas/create-conversation-response.schema.json +0 -29
- package/dist/schemas/delete-message-response.schema.json +0 -11
- package/dist/schemas/delivery-intent.schema.json +0 -11
- package/dist/schemas/forward-message-request.schema.json +0 -25
- package/dist/schemas/forward-message-response.schema.json +0 -35
- package/dist/schemas/forwarded-from.schema.json +0 -18
- package/dist/schemas/get-messages-query.schema.json +0 -17
- package/dist/schemas/hitl-approval-category.schema.json +0 -15
- package/dist/schemas/hitl-approval-detail.schema.json +0 -21
- package/dist/schemas/hitl-approval-outcome-record.schema.json +0 -33
- package/dist/schemas/hitl-approval-reply-record.schema.json +0 -57
- package/dist/schemas/hitl-approval-request-record.schema.json +0 -105
- package/dist/schemas/hitl-approval-risk.schema.json +0 -11
- package/dist/schemas/hitl-card-outcome-record.schema.json +0 -48
- package/dist/schemas/hitl-card-reply-record.schema.json +0 -46
- package/dist/schemas/hitl-card-request-record.schema.json +0 -73
- package/dist/schemas/hitl-input-answers.schema.json +0 -23
- package/dist/schemas/hitl-input-kind.schema.json +0 -10
- package/dist/schemas/hitl-input-outcome-record.schema.json +0 -46
- package/dist/schemas/hitl-input-question.schema.json +0 -54
- package/dist/schemas/hitl-input-reply-record.schema.json +0 -44
- package/dist/schemas/hitl-input-request-record.schema.json +0 -134
- package/dist/schemas/hitl-pending.schema.json +0 -31
- package/dist/schemas/hitl-request-accepted.schema.json +0 -18
- package/dist/schemas/hitl-request-kind.schema.json +0 -10
- package/dist/schemas/hitl-resolution-status.schema.json +0 -10
- package/dist/schemas/hitl-resolution.schema.json +0 -38
- package/dist/schemas/hitl-session-rule.schema.json +0 -32
- package/dist/schemas/inbound-disposition.schema.json +0 -13
- package/dist/schemas/inbound-frame-attachment-v1.schema.json +0 -94
- package/dist/schemas/inbound-frame-contact-card-v1.schema.json +0 -59
- package/dist/schemas/inbound-frame-group-context-v1.schema.json +0 -96
- package/dist/schemas/inbound-frame-reply-context-v1.schema.json +0 -261
- package/dist/schemas/inbound-frame-shape-v1.schema.json +0 -12
- package/dist/schemas/inbound-frame-v1.schema.json +0 -506
- package/dist/schemas/mark-read-response.schema.json +0 -11
- package/dist/schemas/media-attachment-kind.schema.json +0 -11
- package/dist/schemas/media-attachment.schema.json +0 -42
- package/dist/schemas/messages-page-response.schema.json +0 -290
- package/dist/schemas/participation-decision-input.schema.json +0 -44
- package/dist/schemas/participation-history-message.schema.json +0 -23
- package/dist/schemas/participation-history-snapshot.schema.json +0 -37
- package/dist/schemas/participation-style.schema.json +0 -13
- package/dist/schemas/react-request.schema.json +0 -22
- package/dist/schemas/react-response.schema.json +0 -35
- package/dist/schemas/resolve-admission-request.schema.json +0 -30
- package/dist/schemas/resolve-admission-response.schema.json +0 -129
- package/dist/schemas/resolved-agent-behavior-policy-record.schema.json +0 -81
- package/dist/schemas/rest-contact.schema.json +0 -40
- package/dist/schemas/rest-conversation-last-message.schema.json +0 -77
- package/dist/schemas/rest-conversation.schema.json +0 -155
- package/dist/schemas/rest-message.schema.json +0 -252
- package/dist/schemas/rest-ok-response.schema.json +0 -11
- package/dist/schemas/rest-session-selection.schema.json +0 -40
- package/dist/schemas/runtime-card-field-choice.schema.json +0 -23
- package/dist/schemas/runtime-card-field-type.schema.json +0 -17
- package/dist/schemas/runtime-card-field.schema.json +0 -180
- package/dist/schemas/runtime-card-line-item-column-type.schema.json +0 -12
- package/dist/schemas/runtime-card-line-item-column.schema.json +0 -74
- package/dist/schemas/send-contextual-deferred-response.schema.json +0 -39
- package/dist/schemas/send-contextual-messaged-response.schema.json +0 -42
- package/dist/schemas/send-contextual-request.schema.json +0 -103
- package/dist/schemas/send-contextual-response.schema.json +0 -105
- package/dist/schemas/send-contextual-self-context.schema.json +0 -19
- package/dist/schemas/send-contextual-state-response.schema.json +0 -24
- package/dist/schemas/send-message-request.schema.json +0 -106
- package/dist/schemas/send-message-response.schema.json +0 -14
- package/dist/schemas/sender-type.schema.json +0 -9
- package/dist/schemas/serialize-message-input.schema.json +0 -29
- package/dist/schemas/serialized-agent-client-type.schema.json +0 -12
- package/dist/schemas/serialized-contact-card.schema.json +0 -65
- package/dist/schemas/serialized-contact-request-status.schema.json +0 -11
- package/dist/schemas/serialized-contact-request.schema.json +0 -157
- package/dist/schemas/serialized-content-type.schema.json +0 -13
- package/dist/schemas/serialized-message.schema.json +0 -249
- package/dist/schemas/serialized-reactions.schema.json +0 -14
- package/dist/schemas/serialized-sender-type.schema.json +0 -9
- package/dist/schemas/set-streaming-request.schema.json +0 -67
- package/dist/schemas/set-typing-request.schema.json +0 -25
- package/dist/schemas/sse-access-policy.schema.json +0 -10
- package/dist/schemas/sse-agent-context-payload.schema.json +0 -57
- package/dist/schemas/sse-connected-payload.schema.json +0 -18
- package/dist/schemas/sse-contact-payload.schema.json +0 -40
- package/dist/schemas/sse-contact-removed-payload.schema.json +0 -14
- package/dist/schemas/sse-contact-request-payload.schema.json +0 -157
- package/dist/schemas/sse-conversation-updated-payload.schema.json +0 -48
- package/dist/schemas/sse-error-payload.schema.json +0 -23
- package/dist/schemas/sse-event-envelope.schema.json +0 -40
- package/dist/schemas/sse-event-family.schema.json +0 -12
- package/dist/schemas/sse-event-type.schema.json +0 -26
- package/dist/schemas/sse-heartbeat-payload.schema.json +0 -14
- package/dist/schemas/sse-membership-change.schema.json +0 -28
- package/dist/schemas/sse-message-created-payload.schema.json +0 -414
- package/dist/schemas/sse-message-deleted-payload.schema.json +0 -18
- package/dist/schemas/sse-message-updated-payload.schema.json +0 -46
- package/dist/schemas/sse-presence-payload.schema.json +0 -21
- package/dist/schemas/sse-provenance.schema.json +0 -64
- package/dist/schemas/sse-replay-expired-payload.schema.json +0 -21
- package/dist/schemas/sse-runtime-control-kind.schema.json +0 -13
- package/dist/schemas/sse-runtime-control-payload.schema.json +0 -44
- package/dist/schemas/sse-self-context.schema.json +0 -45
- package/dist/schemas/sse-turn-dispatch.schema.json +0 -29
- package/dist/schemas/sse-typing-payload.schema.json +0 -32
- package/dist/schemas/sse-voice-session-event-payload.schema.json +0 -170
- package/dist/schemas/sse-voice-session.schema.json +0 -157
- package/dist/schemas/trigger-decision.schema.json +0 -27
- package/dist/schemas/turn-lifecycle-state.schema.json +0 -14
- package/dist/schemas/turn-message-semantics.schema.json +0 -10
- package/dist/schemas/turn-metadata.schema.json +0 -56
- package/dist/schemas/turn-state-like.schema.json +0 -39
- package/dist/schemas/update-disposition-request.schema.json +0 -22
- package/dist/schemas/upload-media-request.schema.json +0 -25
- package/dist/schemas/upload-media-response.schema.json +0 -55
- package/dist/sendContextual.d.ts +0 -114
- package/dist/sendContextual.js +0 -89
- package/dist/sseEvents.d.ts +0 -474
- package/dist/sseEvents.js +0 -278
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:InboundFrameV1Schema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"schema": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "canon.inbound_frame.v1"
|
|
9
|
-
},
|
|
10
|
-
"shape": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"enum": [
|
|
13
|
-
"direct_owner",
|
|
14
|
-
"direct_human",
|
|
15
|
-
"direct_agent",
|
|
16
|
-
"group",
|
|
17
|
-
"unknown"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"sender": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"name": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"type": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"enum": [
|
|
29
|
-
"human",
|
|
30
|
-
"ai_agent"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"isOwner": {
|
|
34
|
-
"type": "boolean"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"required": [
|
|
38
|
-
"name",
|
|
39
|
-
"type",
|
|
40
|
-
"isOwner"
|
|
41
|
-
],
|
|
42
|
-
"additionalProperties": false
|
|
43
|
-
},
|
|
44
|
-
"conversation": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"properties": {
|
|
47
|
-
"type": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"enum": [
|
|
50
|
-
"direct",
|
|
51
|
-
"group",
|
|
52
|
-
"unknown"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"memberCount": {
|
|
56
|
-
"anyOf": [
|
|
57
|
-
{
|
|
58
|
-
"type": "number"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "null"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"required": [
|
|
67
|
-
"type",
|
|
68
|
-
"memberCount"
|
|
69
|
-
],
|
|
70
|
-
"additionalProperties": false
|
|
71
|
-
},
|
|
72
|
-
"addressed": {
|
|
73
|
-
"type": "boolean"
|
|
74
|
-
},
|
|
75
|
-
"message": {
|
|
76
|
-
"type": "object",
|
|
77
|
-
"properties": {
|
|
78
|
-
"text": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
"contentType": {
|
|
82
|
-
"anyOf": [
|
|
83
|
-
{
|
|
84
|
-
"type": "string",
|
|
85
|
-
"enum": [
|
|
86
|
-
"text",
|
|
87
|
-
"image",
|
|
88
|
-
"audio",
|
|
89
|
-
"video",
|
|
90
|
-
"file",
|
|
91
|
-
"contact_card"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"type": "null"
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"required": [
|
|
101
|
-
"text",
|
|
102
|
-
"contentType"
|
|
103
|
-
],
|
|
104
|
-
"additionalProperties": false
|
|
105
|
-
},
|
|
106
|
-
"replyContext": {
|
|
107
|
-
"anyOf": [
|
|
108
|
-
{
|
|
109
|
-
"type": "object",
|
|
110
|
-
"properties": {
|
|
111
|
-
"messageId": {
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
"found": {
|
|
115
|
-
"type": "boolean"
|
|
116
|
-
},
|
|
117
|
-
"senderId": {
|
|
118
|
-
"anyOf": [
|
|
119
|
-
{
|
|
120
|
-
"type": "string"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "null"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"senderName": {
|
|
128
|
-
"anyOf": [
|
|
129
|
-
{
|
|
130
|
-
"type": "string"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "null"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
"senderType": {
|
|
138
|
-
"anyOf": [
|
|
139
|
-
{
|
|
140
|
-
"type": "string",
|
|
141
|
-
"enum": [
|
|
142
|
-
"human",
|
|
143
|
-
"ai_agent"
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"type": "null"
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
"contentType": {
|
|
152
|
-
"anyOf": [
|
|
153
|
-
{
|
|
154
|
-
"type": "string",
|
|
155
|
-
"enum": [
|
|
156
|
-
"text",
|
|
157
|
-
"image",
|
|
158
|
-
"audio",
|
|
159
|
-
"video",
|
|
160
|
-
"file",
|
|
161
|
-
"contact_card"
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"type": "null"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
"text": {
|
|
170
|
-
"anyOf": [
|
|
171
|
-
{
|
|
172
|
-
"type": "string"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"type": "null"
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
"body": {
|
|
180
|
-
"type": "string"
|
|
181
|
-
},
|
|
182
|
-
"replyToPosition": {
|
|
183
|
-
"anyOf": [
|
|
184
|
-
{
|
|
185
|
-
"type": "number"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"type": "null"
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
"attachments": {
|
|
193
|
-
"type": "array",
|
|
194
|
-
"items": {
|
|
195
|
-
"type": "object",
|
|
196
|
-
"properties": {
|
|
197
|
-
"index": {
|
|
198
|
-
"type": "number"
|
|
199
|
-
},
|
|
200
|
-
"kind": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"enum": [
|
|
203
|
-
"image",
|
|
204
|
-
"audio",
|
|
205
|
-
"video",
|
|
206
|
-
"file"
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
"placeholder": {
|
|
210
|
-
"type": "string"
|
|
211
|
-
},
|
|
212
|
-
"fileName": {
|
|
213
|
-
"anyOf": [
|
|
214
|
-
{
|
|
215
|
-
"type": "string"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"type": "null"
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
"mimeType": {
|
|
223
|
-
"anyOf": [
|
|
224
|
-
{
|
|
225
|
-
"type": "string"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"type": "null"
|
|
229
|
-
}
|
|
230
|
-
]
|
|
231
|
-
},
|
|
232
|
-
"sizeBytes": {
|
|
233
|
-
"anyOf": [
|
|
234
|
-
{
|
|
235
|
-
"type": "number"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"type": "null"
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
|
-
"width": {
|
|
243
|
-
"anyOf": [
|
|
244
|
-
{
|
|
245
|
-
"type": "number"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"type": "null"
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
"height": {
|
|
253
|
-
"anyOf": [
|
|
254
|
-
{
|
|
255
|
-
"type": "number"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"type": "null"
|
|
259
|
-
}
|
|
260
|
-
]
|
|
261
|
-
},
|
|
262
|
-
"durationMs": {
|
|
263
|
-
"anyOf": [
|
|
264
|
-
{
|
|
265
|
-
"type": "number"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"type": "null"
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"required": [
|
|
274
|
-
"index",
|
|
275
|
-
"kind",
|
|
276
|
-
"placeholder",
|
|
277
|
-
"fileName",
|
|
278
|
-
"mimeType",
|
|
279
|
-
"sizeBytes",
|
|
280
|
-
"width",
|
|
281
|
-
"height",
|
|
282
|
-
"durationMs"
|
|
283
|
-
],
|
|
284
|
-
"additionalProperties": false
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"contactCard": {
|
|
288
|
-
"anyOf": [
|
|
289
|
-
{
|
|
290
|
-
"type": "object",
|
|
291
|
-
"properties": {
|
|
292
|
-
"userId": {
|
|
293
|
-
"type": "string"
|
|
294
|
-
},
|
|
295
|
-
"canonContactId": {
|
|
296
|
-
"anyOf": [
|
|
297
|
-
{
|
|
298
|
-
"type": "string"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"type": "null"
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
"displayName": {
|
|
306
|
-
"type": "string"
|
|
307
|
-
},
|
|
308
|
-
"userType": {
|
|
309
|
-
"type": "string",
|
|
310
|
-
"enum": [
|
|
311
|
-
"human",
|
|
312
|
-
"ai_agent"
|
|
313
|
-
]
|
|
314
|
-
},
|
|
315
|
-
"ownerName": {
|
|
316
|
-
"anyOf": [
|
|
317
|
-
{
|
|
318
|
-
"type": "string"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"type": "null"
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
|
-
"about": {
|
|
326
|
-
"anyOf": [
|
|
327
|
-
{
|
|
328
|
-
"type": "string"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"type": "null"
|
|
332
|
-
}
|
|
333
|
-
]
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
"required": [
|
|
337
|
-
"userId",
|
|
338
|
-
"canonContactId",
|
|
339
|
-
"displayName",
|
|
340
|
-
"userType",
|
|
341
|
-
"ownerName",
|
|
342
|
-
"about"
|
|
343
|
-
],
|
|
344
|
-
"additionalProperties": false
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"type": "null"
|
|
348
|
-
}
|
|
349
|
-
]
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
"required": [
|
|
353
|
-
"messageId",
|
|
354
|
-
"found",
|
|
355
|
-
"senderId",
|
|
356
|
-
"senderName",
|
|
357
|
-
"senderType",
|
|
358
|
-
"contentType",
|
|
359
|
-
"text",
|
|
360
|
-
"body",
|
|
361
|
-
"replyToPosition",
|
|
362
|
-
"attachments",
|
|
363
|
-
"contactCard"
|
|
364
|
-
],
|
|
365
|
-
"additionalProperties": false
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"type": "null"
|
|
369
|
-
}
|
|
370
|
-
]
|
|
371
|
-
},
|
|
372
|
-
"groupContext": {
|
|
373
|
-
"anyOf": [
|
|
374
|
-
{
|
|
375
|
-
"type": "object",
|
|
376
|
-
"properties": {
|
|
377
|
-
"memberCount": {
|
|
378
|
-
"type": "number"
|
|
379
|
-
},
|
|
380
|
-
"memberIds": {
|
|
381
|
-
"type": "array",
|
|
382
|
-
"items": {
|
|
383
|
-
"type": "string"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"ownerId": {
|
|
387
|
-
"type": "string"
|
|
388
|
-
},
|
|
389
|
-
"ownerName": {
|
|
390
|
-
"type": "string"
|
|
391
|
-
},
|
|
392
|
-
"ownerPresent": {
|
|
393
|
-
"type": "boolean"
|
|
394
|
-
},
|
|
395
|
-
"knownRecentParticipants": {
|
|
396
|
-
"type": "array",
|
|
397
|
-
"items": {
|
|
398
|
-
"type": "object",
|
|
399
|
-
"properties": {
|
|
400
|
-
"id": {
|
|
401
|
-
"type": "string"
|
|
402
|
-
},
|
|
403
|
-
"name": {
|
|
404
|
-
"type": "string"
|
|
405
|
-
},
|
|
406
|
-
"userType": {
|
|
407
|
-
"type": "string",
|
|
408
|
-
"enum": [
|
|
409
|
-
"human",
|
|
410
|
-
"ai_agent",
|
|
411
|
-
"unknown"
|
|
412
|
-
]
|
|
413
|
-
},
|
|
414
|
-
"isOwner": {
|
|
415
|
-
"type": "boolean"
|
|
416
|
-
},
|
|
417
|
-
"isSelf": {
|
|
418
|
-
"type": "boolean"
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
"required": [
|
|
422
|
-
"id",
|
|
423
|
-
"name",
|
|
424
|
-
"userType",
|
|
425
|
-
"isOwner",
|
|
426
|
-
"isSelf"
|
|
427
|
-
],
|
|
428
|
-
"additionalProperties": false
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
"membershipChange": {
|
|
432
|
-
"type": "object",
|
|
433
|
-
"properties": {
|
|
434
|
-
"addedMemberIds": {
|
|
435
|
-
"type": "array",
|
|
436
|
-
"items": {
|
|
437
|
-
"type": "string"
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
"removedMemberIds": {
|
|
441
|
-
"type": "array",
|
|
442
|
-
"items": {
|
|
443
|
-
"type": "string"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"memberCount": {
|
|
447
|
-
"type": "number"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"required": [
|
|
451
|
-
"addedMemberIds",
|
|
452
|
-
"removedMemberIds",
|
|
453
|
-
"memberCount"
|
|
454
|
-
],
|
|
455
|
-
"additionalProperties": false
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
"required": [
|
|
459
|
-
"memberCount",
|
|
460
|
-
"memberIds",
|
|
461
|
-
"ownerId",
|
|
462
|
-
"ownerName",
|
|
463
|
-
"ownerPresent",
|
|
464
|
-
"knownRecentParticipants"
|
|
465
|
-
],
|
|
466
|
-
"additionalProperties": false
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"type": "null"
|
|
470
|
-
}
|
|
471
|
-
]
|
|
472
|
-
},
|
|
473
|
-
"groupContextMode": {
|
|
474
|
-
"type": "string",
|
|
475
|
-
"enum": [
|
|
476
|
-
"initial",
|
|
477
|
-
"membership_change"
|
|
478
|
-
]
|
|
479
|
-
},
|
|
480
|
-
"selfContexts": {
|
|
481
|
-
"type": "array",
|
|
482
|
-
"items": {
|
|
483
|
-
"type": "string"
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
"behaviorInstructions": {
|
|
487
|
-
"type": "array",
|
|
488
|
-
"items": {
|
|
489
|
-
"type": "string"
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
"required": [
|
|
494
|
-
"schema",
|
|
495
|
-
"shape",
|
|
496
|
-
"sender",
|
|
497
|
-
"conversation",
|
|
498
|
-
"addressed",
|
|
499
|
-
"message",
|
|
500
|
-
"replyContext",
|
|
501
|
-
"groupContext",
|
|
502
|
-
"selfContexts",
|
|
503
|
-
"behaviorInstructions"
|
|
504
|
-
],
|
|
505
|
-
"additionalProperties": false
|
|
506
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:MediaAttachmentSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"kind": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"enum": [
|
|
9
|
-
"image",
|
|
10
|
-
"audio",
|
|
11
|
-
"video",
|
|
12
|
-
"file"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"url": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"mimeType": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"fileName": {
|
|
22
|
-
"type": "string"
|
|
23
|
-
},
|
|
24
|
-
"sizeBytes": {
|
|
25
|
-
"type": "number"
|
|
26
|
-
},
|
|
27
|
-
"width": {
|
|
28
|
-
"type": "number"
|
|
29
|
-
},
|
|
30
|
-
"height": {
|
|
31
|
-
"type": "number"
|
|
32
|
-
},
|
|
33
|
-
"durationMs": {
|
|
34
|
-
"type": "number"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"required": [
|
|
38
|
-
"kind",
|
|
39
|
-
"url"
|
|
40
|
-
],
|
|
41
|
-
"additionalProperties": false
|
|
42
|
-
}
|