@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,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseAgentContextPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"agentId": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"canonContactId": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"clientType": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"ownerId": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"ownerName": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"defaultBehavior": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"propertyNames": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"additionalProperties": {}
|
|
27
|
-
},
|
|
28
|
-
"inboundPolicy": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"enum": [
|
|
31
|
-
"open",
|
|
32
|
-
"approval-required",
|
|
33
|
-
"owner-only"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"groupJoinPolicy": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"enum": [
|
|
39
|
-
"open",
|
|
40
|
-
"approval-required",
|
|
41
|
-
"owner-only"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"discoverable": {
|
|
45
|
-
"type": "boolean"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"required": [
|
|
49
|
-
"agentId",
|
|
50
|
-
"ownerId",
|
|
51
|
-
"ownerName",
|
|
52
|
-
"inboundPolicy",
|
|
53
|
-
"groupJoinPolicy",
|
|
54
|
-
"discoverable"
|
|
55
|
-
],
|
|
56
|
-
"additionalProperties": {}
|
|
57
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseConnectedPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"connectionId": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"agentId": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"required": [
|
|
14
|
-
"connectionId",
|
|
15
|
-
"agentId"
|
|
16
|
-
],
|
|
17
|
-
"additionalProperties": false
|
|
18
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseContactPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"source": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"addedAt": {
|
|
13
|
-
"anyOf": [
|
|
14
|
-
{
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "null"
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"displayNameOverride": {
|
|
23
|
-
"anyOf": [
|
|
24
|
-
{
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"type": "null"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": [
|
|
34
|
-
"id",
|
|
35
|
-
"source",
|
|
36
|
-
"addedAt",
|
|
37
|
-
"displayNameOverride"
|
|
38
|
-
],
|
|
39
|
-
"additionalProperties": false
|
|
40
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseContactRemovedPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"required": [
|
|
11
|
-
"id"
|
|
12
|
-
],
|
|
13
|
-
"additionalProperties": false
|
|
14
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseContactRequestPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"requesterId": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"requesterName": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"requesterAvatarUrl": {
|
|
16
|
-
"anyOf": [
|
|
17
|
-
{
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "null"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"targetId": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"targetName": {
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"targetAvatarUrl": {
|
|
32
|
-
"anyOf": [
|
|
33
|
-
{
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"type": "null"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
"targetUserType": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"enum": [
|
|
44
|
-
"human",
|
|
45
|
-
"ai_agent"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"targetOwnerId": {
|
|
49
|
-
"anyOf": [
|
|
50
|
-
{
|
|
51
|
-
"type": "string"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"type": "null"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"approverId": {
|
|
59
|
-
"type": "string"
|
|
60
|
-
},
|
|
61
|
-
"message": {
|
|
62
|
-
"anyOf": [
|
|
63
|
-
{
|
|
64
|
-
"type": "string"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "null"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"status": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"enum": [
|
|
74
|
-
"pending",
|
|
75
|
-
"approved",
|
|
76
|
-
"rejected",
|
|
77
|
-
"expired"
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"kind": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"enum": [
|
|
83
|
-
"dm",
|
|
84
|
-
"group_invite"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
"groupContext": {
|
|
88
|
-
"type": "object",
|
|
89
|
-
"properties": {
|
|
90
|
-
"conversationId": {
|
|
91
|
-
"type": "string"
|
|
92
|
-
},
|
|
93
|
-
"groupName": {
|
|
94
|
-
"anyOf": [
|
|
95
|
-
{
|
|
96
|
-
"type": "string"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"type": "null"
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"required": [
|
|
105
|
-
"conversationId",
|
|
106
|
-
"groupName"
|
|
107
|
-
],
|
|
108
|
-
"additionalProperties": false
|
|
109
|
-
},
|
|
110
|
-
"createdAt": {
|
|
111
|
-
"anyOf": [
|
|
112
|
-
{
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"type": "null"
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
"resolvedAt": {
|
|
121
|
-
"anyOf": [
|
|
122
|
-
{
|
|
123
|
-
"type": "string"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"type": "null"
|
|
127
|
-
}
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
"expiresAt": {
|
|
131
|
-
"anyOf": [
|
|
132
|
-
{
|
|
133
|
-
"type": "string"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"type": "null"
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"required": [
|
|
142
|
-
"id",
|
|
143
|
-
"requesterId",
|
|
144
|
-
"requesterName",
|
|
145
|
-
"requesterAvatarUrl",
|
|
146
|
-
"targetId",
|
|
147
|
-
"targetName",
|
|
148
|
-
"targetAvatarUrl",
|
|
149
|
-
"targetUserType",
|
|
150
|
-
"approverId",
|
|
151
|
-
"message",
|
|
152
|
-
"status",
|
|
153
|
-
"kind",
|
|
154
|
-
"createdAt"
|
|
155
|
-
],
|
|
156
|
-
"additionalProperties": false
|
|
157
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseConversationUpdatedPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"conversationId": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"changes": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"propertyNames": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"additionalProperties": {}
|
|
15
|
-
},
|
|
16
|
-
"membershipChange": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"properties": {
|
|
19
|
-
"addedMemberIds": {
|
|
20
|
-
"type": "array",
|
|
21
|
-
"items": {
|
|
22
|
-
"type": "string"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"removedMemberIds": {
|
|
26
|
-
"type": "array",
|
|
27
|
-
"items": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"memberCount": {
|
|
32
|
-
"type": "number"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"required": [
|
|
36
|
-
"addedMemberIds",
|
|
37
|
-
"removedMemberIds",
|
|
38
|
-
"memberCount"
|
|
39
|
-
],
|
|
40
|
-
"additionalProperties": false
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"required": [
|
|
44
|
-
"conversationId",
|
|
45
|
-
"changes"
|
|
46
|
-
],
|
|
47
|
-
"additionalProperties": false
|
|
48
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseErrorPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"code": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"message": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"retryAfterMs": {
|
|
13
|
-
"type": "number"
|
|
14
|
-
},
|
|
15
|
-
"activeConnections": {
|
|
16
|
-
"type": "number"
|
|
17
|
-
},
|
|
18
|
-
"maxConnections": {
|
|
19
|
-
"type": "number"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"additionalProperties": {}
|
|
23
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseEventEnvelopeSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"event": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"enum": [
|
|
12
|
-
"connected",
|
|
13
|
-
"agent.context",
|
|
14
|
-
"heartbeat",
|
|
15
|
-
"message.created",
|
|
16
|
-
"message.updated",
|
|
17
|
-
"message.deleted",
|
|
18
|
-
"conversation.updated",
|
|
19
|
-
"contact.request",
|
|
20
|
-
"contact.approved",
|
|
21
|
-
"contact.added",
|
|
22
|
-
"contact.updated",
|
|
23
|
-
"contact.removed",
|
|
24
|
-
"typing",
|
|
25
|
-
"presence",
|
|
26
|
-
"runtime.updated",
|
|
27
|
-
"turn.updated",
|
|
28
|
-
"runtime.control",
|
|
29
|
-
"voice.session.started",
|
|
30
|
-
"voice.session.ended",
|
|
31
|
-
"replay.expired",
|
|
32
|
-
"error"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"data": {}
|
|
36
|
-
},
|
|
37
|
-
"required": [
|
|
38
|
-
"event",
|
|
39
|
-
"data"
|
|
40
|
-
],
|
|
41
|
-
"additionalProperties": false
|
|
42
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseEventTypeSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "string",
|
|
5
|
-
"enum": [
|
|
6
|
-
"connected",
|
|
7
|
-
"agent.context",
|
|
8
|
-
"heartbeat",
|
|
9
|
-
"message.created",
|
|
10
|
-
"message.updated",
|
|
11
|
-
"message.deleted",
|
|
12
|
-
"conversation.updated",
|
|
13
|
-
"contact.request",
|
|
14
|
-
"contact.approved",
|
|
15
|
-
"contact.added",
|
|
16
|
-
"contact.updated",
|
|
17
|
-
"contact.removed",
|
|
18
|
-
"typing",
|
|
19
|
-
"presence",
|
|
20
|
-
"runtime.updated",
|
|
21
|
-
"turn.updated",
|
|
22
|
-
"runtime.control",
|
|
23
|
-
"voice.session.started",
|
|
24
|
-
"voice.session.ended",
|
|
25
|
-
"replay.expired",
|
|
26
|
-
"error"
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseHeartbeatPayloadSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"timestamp": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"required": [
|
|
11
|
-
"timestamp"
|
|
12
|
-
],
|
|
13
|
-
"additionalProperties": false
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "canon:SseMembershipChangeSchema",
|
|
3
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"addedMemberIds": {
|
|
7
|
-
"type": "array",
|
|
8
|
-
"items": {
|
|
9
|
-
"type": "string"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"removedMemberIds": {
|
|
13
|
-
"type": "array",
|
|
14
|
-
"items": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"memberCount": {
|
|
19
|
-
"type": "number"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": [
|
|
23
|
-
"addedMemberIds",
|
|
24
|
-
"removedMemberIds",
|
|
25
|
-
"memberCount"
|
|
26
|
-
],
|
|
27
|
-
"additionalProperties": false
|
|
28
|
-
}
|