@canonmsg/backend-contracts 1.8.1 → 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 -1729
- package/dist/bridgeLocal.js +0 -673
- package/dist/cjs/bridgeLocal.js +0 -676
- package/dist/cjs/controlSignals.js +0 -44
- package/dist/cjs/endpointRegistry.js +0 -264
- package/dist/cjs/hitl.js +0 -0
- 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 -298
- 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-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-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 -42
- package/dist/schemas/sse-event-family.schema.json +0 -12
- package/dist/schemas/sse-event-type.schema.json +0 -28
- 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-runtime-updated-payload.schema.json +0 -78
- package/dist/schemas/sse-self-context.schema.json +0 -45
- package/dist/schemas/sse-turn-dispatch.schema.json +0 -29
- package/dist/schemas/sse-turn-updated-payload.schema.json +0 -33
- 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 -494
- package/dist/sseEvents.js +0 -295
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:RuntimeCardFieldSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"label": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"text",
|
|
16
|
-
"textarea",
|
|
17
|
-
"select",
|
|
18
|
-
"multiSelect",
|
|
19
|
-
"boolean",
|
|
20
|
-
"date",
|
|
21
|
-
"number",
|
|
22
|
-
"currency",
|
|
23
|
-
"searchSelect",
|
|
24
|
-
"lineItems"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"required": {
|
|
28
|
-
"type": "boolean"
|
|
29
|
-
},
|
|
30
|
-
"placeholder": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"choices": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"properties": {
|
|
38
|
-
"label": {
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
"value": {
|
|
42
|
-
"type": "string"
|
|
43
|
-
},
|
|
44
|
-
"description": {
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
"preview": {
|
|
48
|
-
"type": "string"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"required": [
|
|
52
|
-
"label"
|
|
53
|
-
],
|
|
54
|
-
"additionalProperties": false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"allowOther": {
|
|
58
|
-
"type": "boolean"
|
|
59
|
-
},
|
|
60
|
-
"sensitive": {
|
|
61
|
-
"type": "boolean"
|
|
62
|
-
},
|
|
63
|
-
"min": {
|
|
64
|
-
"anyOf": [
|
|
65
|
-
{
|
|
66
|
-
"type": "number"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "string"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
"max": {
|
|
74
|
-
"anyOf": [
|
|
75
|
-
{
|
|
76
|
-
"type": "number"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"type": "string"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"step": {
|
|
84
|
-
"type": "number"
|
|
85
|
-
},
|
|
86
|
-
"precision": {
|
|
87
|
-
"type": "number"
|
|
88
|
-
},
|
|
89
|
-
"currencyCode": {
|
|
90
|
-
"type": "string"
|
|
91
|
-
},
|
|
92
|
-
"columns": {
|
|
93
|
-
"type": "array",
|
|
94
|
-
"items": {
|
|
95
|
-
"type": "object",
|
|
96
|
-
"properties": {
|
|
97
|
-
"id": {
|
|
98
|
-
"type": "string"
|
|
99
|
-
},
|
|
100
|
-
"label": {
|
|
101
|
-
"type": "string"
|
|
102
|
-
},
|
|
103
|
-
"type": {
|
|
104
|
-
"type": "string",
|
|
105
|
-
"enum": [
|
|
106
|
-
"text",
|
|
107
|
-
"number",
|
|
108
|
-
"currency",
|
|
109
|
-
"date",
|
|
110
|
-
"select"
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
"required": {
|
|
114
|
-
"type": "boolean"
|
|
115
|
-
},
|
|
116
|
-
"choices": {
|
|
117
|
-
"type": "array",
|
|
118
|
-
"items": {
|
|
119
|
-
"type": "object",
|
|
120
|
-
"properties": {
|
|
121
|
-
"label": {
|
|
122
|
-
"type": "string"
|
|
123
|
-
},
|
|
124
|
-
"value": {
|
|
125
|
-
"type": "string"
|
|
126
|
-
},
|
|
127
|
-
"description": {
|
|
128
|
-
"type": "string"
|
|
129
|
-
},
|
|
130
|
-
"preview": {
|
|
131
|
-
"type": "string"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"required": [
|
|
135
|
-
"label"
|
|
136
|
-
],
|
|
137
|
-
"additionalProperties": false
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"min": {
|
|
141
|
-
"type": "number"
|
|
142
|
-
},
|
|
143
|
-
"max": {
|
|
144
|
-
"type": "number"
|
|
145
|
-
},
|
|
146
|
-
"step": {
|
|
147
|
-
"type": "number"
|
|
148
|
-
},
|
|
149
|
-
"precision": {
|
|
150
|
-
"type": "number"
|
|
151
|
-
},
|
|
152
|
-
"currencyCode": {
|
|
153
|
-
"type": "string"
|
|
154
|
-
},
|
|
155
|
-
"allowOther": {
|
|
156
|
-
"type": "boolean"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"required": [
|
|
160
|
-
"id",
|
|
161
|
-
"label",
|
|
162
|
-
"type"
|
|
163
|
-
],
|
|
164
|
-
"additionalProperties": false
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"minRows": {
|
|
168
|
-
"type": "number"
|
|
169
|
-
},
|
|
170
|
-
"maxRows": {
|
|
171
|
-
"type": "number"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"required": [
|
|
175
|
-
"id",
|
|
176
|
-
"label",
|
|
177
|
-
"type"
|
|
178
|
-
],
|
|
179
|
-
"additionalProperties": false
|
|
180
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:RuntimeCardLineItemColumnSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"label": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"text",
|
|
16
|
-
"number",
|
|
17
|
-
"currency",
|
|
18
|
-
"date",
|
|
19
|
-
"select"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"required": {
|
|
23
|
-
"type": "boolean"
|
|
24
|
-
},
|
|
25
|
-
"choices": {
|
|
26
|
-
"type": "array",
|
|
27
|
-
"items": {
|
|
28
|
-
"type": "object",
|
|
29
|
-
"properties": {
|
|
30
|
-
"label": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"value": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"description": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
},
|
|
39
|
-
"preview": {
|
|
40
|
-
"type": "string"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"required": [
|
|
44
|
-
"label"
|
|
45
|
-
],
|
|
46
|
-
"additionalProperties": false
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"min": {
|
|
50
|
-
"type": "number"
|
|
51
|
-
},
|
|
52
|
-
"max": {
|
|
53
|
-
"type": "number"
|
|
54
|
-
},
|
|
55
|
-
"step": {
|
|
56
|
-
"type": "number"
|
|
57
|
-
},
|
|
58
|
-
"precision": {
|
|
59
|
-
"type": "number"
|
|
60
|
-
},
|
|
61
|
-
"currencyCode": {
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
"allowOther": {
|
|
65
|
-
"type": "boolean"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"required": [
|
|
69
|
-
"id",
|
|
70
|
-
"label",
|
|
71
|
-
"type"
|
|
72
|
-
],
|
|
73
|
-
"additionalProperties": false
|
|
74
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendContextualDeferredResponseSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"status": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"enum": [
|
|
9
|
-
"requested",
|
|
10
|
-
"pending"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
"requestId": {
|
|
14
|
-
"anyOf": [
|
|
15
|
-
{
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"type": "null"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"deferredIntentId": {
|
|
24
|
-
"anyOf": [
|
|
25
|
-
{
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "null"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"required": [
|
|
35
|
-
"status",
|
|
36
|
-
"requestId"
|
|
37
|
-
],
|
|
38
|
-
"additionalProperties": false
|
|
39
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendContextualMessagedResponseSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"status": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "messaged"
|
|
9
|
-
},
|
|
10
|
-
"messageId": {
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"conversationId": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"selfContextId": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
"created": {
|
|
20
|
-
"type": "boolean"
|
|
21
|
-
},
|
|
22
|
-
"reused": {
|
|
23
|
-
"type": "boolean"
|
|
24
|
-
},
|
|
25
|
-
"sessionSelection": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"enum": [
|
|
28
|
-
"new",
|
|
29
|
-
"continue_latest",
|
|
30
|
-
"continue_or_create",
|
|
31
|
-
"specific"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"required": [
|
|
36
|
-
"status",
|
|
37
|
-
"messageId",
|
|
38
|
-
"conversationId",
|
|
39
|
-
"selfContextId"
|
|
40
|
-
],
|
|
41
|
-
"additionalProperties": false
|
|
42
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendContextualRequestSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"sourceConversationId": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"targetConversationId": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"targetUserId": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"text": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"selfContext": {
|
|
19
|
-
"type": "object",
|
|
20
|
-
"properties": {
|
|
21
|
-
"type": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"const": "cross_session"
|
|
24
|
-
},
|
|
25
|
-
"context": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"required": [
|
|
30
|
-
"type",
|
|
31
|
-
"context"
|
|
32
|
-
],
|
|
33
|
-
"additionalProperties": false
|
|
34
|
-
},
|
|
35
|
-
"sessionConfig": {
|
|
36
|
-
"anyOf": [
|
|
37
|
-
{
|
|
38
|
-
"type": "object",
|
|
39
|
-
"propertyNames": {
|
|
40
|
-
"type": "string"
|
|
41
|
-
},
|
|
42
|
-
"additionalProperties": {}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "null"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"sessionSelection": {
|
|
50
|
-
"anyOf": [
|
|
51
|
-
{
|
|
52
|
-
"type": "object",
|
|
53
|
-
"properties": {
|
|
54
|
-
"mode": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"enum": [
|
|
57
|
-
"new",
|
|
58
|
-
"continue_latest",
|
|
59
|
-
"continue_or_create"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
"mode"
|
|
65
|
-
],
|
|
66
|
-
"additionalProperties": false
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "object",
|
|
70
|
-
"properties": {
|
|
71
|
-
"mode": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"const": "specific"
|
|
74
|
-
},
|
|
75
|
-
"conversationId": {
|
|
76
|
-
"type": "string"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"required": [
|
|
80
|
-
"mode",
|
|
81
|
-
"conversationId"
|
|
82
|
-
],
|
|
83
|
-
"additionalProperties": false
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
"requestMessage": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
},
|
|
90
|
-
"messageOptions": {
|
|
91
|
-
"type": "object",
|
|
92
|
-
"propertyNames": {
|
|
93
|
-
"type": "string"
|
|
94
|
-
},
|
|
95
|
-
"additionalProperties": {}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"required": [
|
|
99
|
-
"sourceConversationId",
|
|
100
|
-
"selfContext"
|
|
101
|
-
],
|
|
102
|
-
"additionalProperties": false
|
|
103
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendContextualResponseSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"anyOf": [
|
|
5
|
-
{
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"status": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"const": "messaged"
|
|
11
|
-
},
|
|
12
|
-
"messageId": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"conversationId": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"selfContextId": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"created": {
|
|
22
|
-
"type": "boolean"
|
|
23
|
-
},
|
|
24
|
-
"reused": {
|
|
25
|
-
"type": "boolean"
|
|
26
|
-
},
|
|
27
|
-
"sessionSelection": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"enum": [
|
|
30
|
-
"new",
|
|
31
|
-
"continue_latest",
|
|
32
|
-
"continue_or_create",
|
|
33
|
-
"specific"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"required": [
|
|
38
|
-
"status",
|
|
39
|
-
"messageId",
|
|
40
|
-
"conversationId",
|
|
41
|
-
"selfContextId"
|
|
42
|
-
],
|
|
43
|
-
"additionalProperties": false
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "object",
|
|
47
|
-
"properties": {
|
|
48
|
-
"status": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"enum": [
|
|
51
|
-
"requested",
|
|
52
|
-
"pending"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"requestId": {
|
|
56
|
-
"anyOf": [
|
|
57
|
-
{
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "null"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"deferredIntentId": {
|
|
66
|
-
"anyOf": [
|
|
67
|
-
{
|
|
68
|
-
"type": "string"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"type": "null"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"required": [
|
|
77
|
-
"status",
|
|
78
|
-
"requestId"
|
|
79
|
-
],
|
|
80
|
-
"additionalProperties": false
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"type": "object",
|
|
84
|
-
"properties": {
|
|
85
|
-
"status": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"enum": [
|
|
88
|
-
"setup_required",
|
|
89
|
-
"blocked",
|
|
90
|
-
"unavailable",
|
|
91
|
-
"no_session"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"reason": {
|
|
95
|
-
"type": "string"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"required": [
|
|
99
|
-
"status",
|
|
100
|
-
"reason"
|
|
101
|
-
],
|
|
102
|
-
"additionalProperties": false
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendContextualSelfContextSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"type": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "cross_session"
|
|
9
|
-
},
|
|
10
|
-
"context": {
|
|
11
|
-
"type": "string"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"required": [
|
|
15
|
-
"type",
|
|
16
|
-
"context"
|
|
17
|
-
],
|
|
18
|
-
"additionalProperties": false
|
|
19
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendContextualStateResponseSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"status": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"enum": [
|
|
9
|
-
"setup_required",
|
|
10
|
-
"blocked",
|
|
11
|
-
"unavailable",
|
|
12
|
-
"no_session"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"reason": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"required": [
|
|
20
|
-
"status",
|
|
21
|
-
"reason"
|
|
22
|
-
],
|
|
23
|
-
"additionalProperties": false
|
|
24
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SendMessageRequestSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"conversationId": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"text": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"messageId": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"contentType": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": [
|
|
18
|
-
"text",
|
|
19
|
-
"image",
|
|
20
|
-
"audio",
|
|
21
|
-
"video",
|
|
22
|
-
"file",
|
|
23
|
-
"contact_card"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"replyTo": {
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"replyToPosition": {
|
|
30
|
-
"type": "number"
|
|
31
|
-
},
|
|
32
|
-
"attachments": {
|
|
33
|
-
"type": "array",
|
|
34
|
-
"items": {
|
|
35
|
-
"type": "object",
|
|
36
|
-
"properties": {
|
|
37
|
-
"kind": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"enum": [
|
|
40
|
-
"image",
|
|
41
|
-
"audio",
|
|
42
|
-
"video",
|
|
43
|
-
"file"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"url": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
},
|
|
49
|
-
"mimeType": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"fileName": {
|
|
53
|
-
"type": "string"
|
|
54
|
-
},
|
|
55
|
-
"sizeBytes": {
|
|
56
|
-
"type": "number"
|
|
57
|
-
},
|
|
58
|
-
"width": {
|
|
59
|
-
"type": "number"
|
|
60
|
-
},
|
|
61
|
-
"height": {
|
|
62
|
-
"type": "number"
|
|
63
|
-
},
|
|
64
|
-
"durationMs": {
|
|
65
|
-
"type": "number"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"required": [
|
|
69
|
-
"kind",
|
|
70
|
-
"url"
|
|
71
|
-
],
|
|
72
|
-
"additionalProperties": false
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"contactCardUserId": {
|
|
76
|
-
"type": "string"
|
|
77
|
-
},
|
|
78
|
-
"mentions": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"items": {
|
|
81
|
-
"type": "string"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"selfContextId": {
|
|
85
|
-
"anyOf": [
|
|
86
|
-
{
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"type": "null"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"metadata": {
|
|
95
|
-
"type": "object",
|
|
96
|
-
"propertyNames": {
|
|
97
|
-
"type": "string"
|
|
98
|
-
},
|
|
99
|
-
"additionalProperties": {}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"required": [
|
|
103
|
-
"conversationId"
|
|
104
|
-
],
|
|
105
|
-
"additionalProperties": false
|
|
106
|
-
}
|