@canonmsg/backend-contracts 1.9.0 → 2.1.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 (201) 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/diffRedaction.js +73 -0
  6. package/dist/cjs/index.js +1 -8
  7. package/dist/cjs/media.js +0 -13
  8. package/dist/cjs/message.js +44 -65
  9. package/dist/cjs/runtimeCardFields.js +1 -58
  10. package/dist/cjs/turnProtocol.js +1 -41
  11. package/dist/contactRequest.d.ts +23 -42
  12. package/dist/contactRequest.js +0 -29
  13. package/dist/diffRedaction.d.ts +6 -0
  14. package/dist/diffRedaction.js +68 -0
  15. package/dist/index.d.ts +1 -8
  16. package/dist/index.js +1 -8
  17. package/dist/media.d.ts +11 -24
  18. package/dist/media.js +0 -12
  19. package/dist/message.d.ts +79 -132
  20. package/dist/message.js +45 -65
  21. package/dist/runtimeCardFields.d.ts +39 -112
  22. package/dist/runtimeCardFields.js +0 -57
  23. package/dist/turnProtocol.d.ts +24 -91
  24. package/dist/turnProtocol.js +0 -40
  25. package/package.json +5 -8
  26. package/dist/bridgeLocal.d.ts +0 -1871
  27. package/dist/bridgeLocal.js +0 -744
  28. package/dist/cjs/bridgeLocal.js +0 -747
  29. package/dist/cjs/controlSignals.js +0 -44
  30. package/dist/cjs/endpointRegistry.js +0 -264
  31. package/dist/cjs/hitl.js +0 -171
  32. package/dist/cjs/inboundFrame.js +0 -92
  33. package/dist/cjs/restEndpoints.js +0 -237
  34. package/dist/cjs/sendContextual.js +0 -92
  35. package/dist/cjs/sseEvents.js +0 -281
  36. package/dist/controlSignals.d.ts +0 -55
  37. package/dist/controlSignals.js +0 -41
  38. package/dist/endpointRegistry.d.ts +0 -13
  39. package/dist/endpointRegistry.js +0 -261
  40. package/dist/hitl.d.ts +0 -303
  41. package/dist/hitl.js +0 -168
  42. package/dist/inboundFrame.d.ts +0 -229
  43. package/dist/inboundFrame.js +0 -89
  44. package/dist/restEndpoints.d.ts +0 -531
  45. package/dist/restEndpoints.js +0 -234
  46. package/dist/schemas/agent-behavior-settings-record.schema.json +0 -48
  47. package/dist/schemas/bridge-connection-state-notification.schema.json +0 -19
  48. package/dist/schemas/bridge-get-attachment-params.schema.json +0 -24
  49. package/dist/schemas/bridge-get-attachment-result.schema.json +0 -20
  50. package/dist/schemas/bridge-hello-params.schema.json +0 -42
  51. package/dist/schemas/bridge-hello-result.schema.json +0 -105
  52. package/dist/schemas/bridge-hitl-state.schema.json +0 -38
  53. package/dist/schemas/bridge-ok-result.schema.json +0 -15
  54. package/dist/schemas/bridge-publish-streaming-event-params.schema.json +0 -138
  55. package/dist/schemas/bridge-ready-notification.schema.json +0 -79
  56. package/dist/schemas/bridge-resync-reason.schema.json +0 -9
  57. package/dist/schemas/bridge-resync.schema.json +0 -18
  58. package/dist/schemas/bridge-rpc-error.schema.json +0 -19
  59. package/dist/schemas/bridge-rpc-id.schema.json +0 -12
  60. package/dist/schemas/bridge-rpc-notification.schema.json +0 -20
  61. package/dist/schemas/bridge-rpc-request.schema.json +0 -31
  62. package/dist/schemas/bridge-rpc-response.schema.json +0 -81
  63. package/dist/schemas/bridge-status-result.schema.json +0 -76
  64. package/dist/schemas/bridge-stream-clear-event.schema.json +0 -15
  65. package/dist/schemas/bridge-stream-event.schema.json +0 -112
  66. package/dist/schemas/bridge-stream-final-event.schema.json +0 -19
  67. package/dist/schemas/bridge-stream-text-event.schema.json +0 -31
  68. package/dist/schemas/bridge-stream-thinking-event.schema.json +0 -15
  69. package/dist/schemas/bridge-stream-tool-event.schema.json +0 -36
  70. package/dist/schemas/bridge-upload-media-params.schema.json +0 -28
  71. package/dist/schemas/bridge-upstream-state.schema.json +0 -10
  72. package/dist/schemas/contacts-response.schema.json +0 -52
  73. package/dist/schemas/control-channel-key.schema.json +0 -10
  74. package/dist/schemas/control-primitive-event.schema.json +0 -30
  75. package/dist/schemas/control-primitive-map.schema.json +0 -15
  76. package/dist/schemas/control-session-event.schema.json +0 -26
  77. package/dist/schemas/control-session-node.schema.json +0 -11
  78. package/dist/schemas/control-signal-event.schema.json +0 -35
  79. package/dist/schemas/control-signal-node.schema.json +0 -22
  80. package/dist/schemas/control-signal-type.schema.json +0 -10
  81. package/dist/schemas/conversations-response.schema.json +0 -167
  82. package/dist/schemas/create-contact-request-request.schema.json +0 -17
  83. package/dist/schemas/create-contact-request-response.schema.json +0 -51
  84. package/dist/schemas/create-conversation-request.schema.json +0 -82
  85. package/dist/schemas/create-conversation-response.schema.json +0 -29
  86. package/dist/schemas/delete-message-response.schema.json +0 -11
  87. package/dist/schemas/delivery-intent.schema.json +0 -11
  88. package/dist/schemas/forward-message-request.schema.json +0 -25
  89. package/dist/schemas/forward-message-response.schema.json +0 -35
  90. package/dist/schemas/forwarded-from.schema.json +0 -18
  91. package/dist/schemas/get-messages-query.schema.json +0 -17
  92. package/dist/schemas/hitl-approval-category.schema.json +0 -15
  93. package/dist/schemas/hitl-approval-detail.schema.json +0 -21
  94. package/dist/schemas/hitl-approval-outcome-record.schema.json +0 -33
  95. package/dist/schemas/hitl-approval-reply-record.schema.json +0 -57
  96. package/dist/schemas/hitl-approval-request-record.schema.json +0 -105
  97. package/dist/schemas/hitl-approval-risk.schema.json +0 -11
  98. package/dist/schemas/hitl-card-outcome-record.schema.json +0 -48
  99. package/dist/schemas/hitl-card-reply-record.schema.json +0 -46
  100. package/dist/schemas/hitl-card-request-record.schema.json +0 -73
  101. package/dist/schemas/hitl-input-answers.schema.json +0 -23
  102. package/dist/schemas/hitl-input-kind.schema.json +0 -10
  103. package/dist/schemas/hitl-input-outcome-record.schema.json +0 -46
  104. package/dist/schemas/hitl-input-question.schema.json +0 -54
  105. package/dist/schemas/hitl-input-reply-record.schema.json +0 -44
  106. package/dist/schemas/hitl-input-request-record.schema.json +0 -134
  107. package/dist/schemas/hitl-pending.schema.json +0 -31
  108. package/dist/schemas/hitl-request-accepted.schema.json +0 -18
  109. package/dist/schemas/hitl-request-kind.schema.json +0 -10
  110. package/dist/schemas/hitl-resolution-status.schema.json +0 -10
  111. package/dist/schemas/hitl-resolution.schema.json +0 -38
  112. package/dist/schemas/hitl-session-rule.schema.json +0 -32
  113. package/dist/schemas/inbound-disposition.schema.json +0 -13
  114. package/dist/schemas/inbound-frame-attachment-v1.schema.json +0 -94
  115. package/dist/schemas/inbound-frame-contact-card-v1.schema.json +0 -59
  116. package/dist/schemas/inbound-frame-group-context-v1.schema.json +0 -96
  117. package/dist/schemas/inbound-frame-reply-context-v1.schema.json +0 -261
  118. package/dist/schemas/inbound-frame-shape-v1.schema.json +0 -12
  119. package/dist/schemas/inbound-frame-v1.schema.json +0 -506
  120. package/dist/schemas/mark-read-response.schema.json +0 -11
  121. package/dist/schemas/media-attachment-kind.schema.json +0 -11
  122. package/dist/schemas/media-attachment.schema.json +0 -42
  123. package/dist/schemas/messages-page-response.schema.json +0 -290
  124. package/dist/schemas/participation-decision-input.schema.json +0 -44
  125. package/dist/schemas/participation-history-message.schema.json +0 -23
  126. package/dist/schemas/participation-history-snapshot.schema.json +0 -37
  127. package/dist/schemas/participation-style.schema.json +0 -13
  128. package/dist/schemas/react-request.schema.json +0 -22
  129. package/dist/schemas/react-response.schema.json +0 -35
  130. package/dist/schemas/resolve-admission-request.schema.json +0 -30
  131. package/dist/schemas/resolve-admission-response.schema.json +0 -129
  132. package/dist/schemas/resolved-agent-behavior-policy-record.schema.json +0 -81
  133. package/dist/schemas/rest-contact.schema.json +0 -40
  134. package/dist/schemas/rest-conversation-last-message.schema.json +0 -77
  135. package/dist/schemas/rest-conversation.schema.json +0 -155
  136. package/dist/schemas/rest-message.schema.json +0 -252
  137. package/dist/schemas/rest-ok-response.schema.json +0 -11
  138. package/dist/schemas/rest-session-selection.schema.json +0 -40
  139. package/dist/schemas/runtime-card-field-choice.schema.json +0 -23
  140. package/dist/schemas/runtime-card-field-type.schema.json +0 -17
  141. package/dist/schemas/runtime-card-field.schema.json +0 -180
  142. package/dist/schemas/runtime-card-line-item-column-type.schema.json +0 -12
  143. package/dist/schemas/runtime-card-line-item-column.schema.json +0 -74
  144. package/dist/schemas/send-contextual-deferred-response.schema.json +0 -39
  145. package/dist/schemas/send-contextual-messaged-response.schema.json +0 -42
  146. package/dist/schemas/send-contextual-request.schema.json +0 -103
  147. package/dist/schemas/send-contextual-response.schema.json +0 -105
  148. package/dist/schemas/send-contextual-self-context.schema.json +0 -19
  149. package/dist/schemas/send-contextual-state-response.schema.json +0 -24
  150. package/dist/schemas/send-message-request.schema.json +0 -106
  151. package/dist/schemas/send-message-response.schema.json +0 -14
  152. package/dist/schemas/sender-type.schema.json +0 -9
  153. package/dist/schemas/serialize-message-input.schema.json +0 -29
  154. package/dist/schemas/serialized-agent-client-type.schema.json +0 -12
  155. package/dist/schemas/serialized-contact-card.schema.json +0 -65
  156. package/dist/schemas/serialized-contact-request-status.schema.json +0 -11
  157. package/dist/schemas/serialized-contact-request.schema.json +0 -157
  158. package/dist/schemas/serialized-content-type.schema.json +0 -13
  159. package/dist/schemas/serialized-message.schema.json +0 -249
  160. package/dist/schemas/serialized-reactions.schema.json +0 -14
  161. package/dist/schemas/serialized-sender-type.schema.json +0 -9
  162. package/dist/schemas/set-streaming-request.schema.json +0 -67
  163. package/dist/schemas/set-typing-request.schema.json +0 -25
  164. package/dist/schemas/sse-access-policy.schema.json +0 -10
  165. package/dist/schemas/sse-agent-context-payload.schema.json +0 -57
  166. package/dist/schemas/sse-connected-payload.schema.json +0 -18
  167. package/dist/schemas/sse-contact-payload.schema.json +0 -40
  168. package/dist/schemas/sse-contact-removed-payload.schema.json +0 -14
  169. package/dist/schemas/sse-contact-request-payload.schema.json +0 -157
  170. package/dist/schemas/sse-conversation-updated-payload.schema.json +0 -48
  171. package/dist/schemas/sse-error-payload.schema.json +0 -23
  172. package/dist/schemas/sse-event-envelope.schema.json +0 -40
  173. package/dist/schemas/sse-event-family.schema.json +0 -12
  174. package/dist/schemas/sse-event-type.schema.json +0 -26
  175. package/dist/schemas/sse-heartbeat-payload.schema.json +0 -14
  176. package/dist/schemas/sse-membership-change.schema.json +0 -28
  177. package/dist/schemas/sse-message-created-payload.schema.json +0 -414
  178. package/dist/schemas/sse-message-deleted-payload.schema.json +0 -18
  179. package/dist/schemas/sse-message-updated-payload.schema.json +0 -46
  180. package/dist/schemas/sse-presence-payload.schema.json +0 -21
  181. package/dist/schemas/sse-provenance.schema.json +0 -64
  182. package/dist/schemas/sse-replay-expired-payload.schema.json +0 -21
  183. package/dist/schemas/sse-runtime-control-kind.schema.json +0 -13
  184. package/dist/schemas/sse-runtime-control-payload.schema.json +0 -44
  185. package/dist/schemas/sse-self-context.schema.json +0 -45
  186. package/dist/schemas/sse-turn-dispatch.schema.json +0 -29
  187. package/dist/schemas/sse-typing-payload.schema.json +0 -32
  188. package/dist/schemas/sse-voice-session-event-payload.schema.json +0 -170
  189. package/dist/schemas/sse-voice-session.schema.json +0 -157
  190. package/dist/schemas/trigger-decision.schema.json +0 -27
  191. package/dist/schemas/turn-lifecycle-state.schema.json +0 -14
  192. package/dist/schemas/turn-message-semantics.schema.json +0 -10
  193. package/dist/schemas/turn-metadata.schema.json +0 -56
  194. package/dist/schemas/turn-state-like.schema.json +0 -39
  195. package/dist/schemas/update-disposition-request.schema.json +0 -22
  196. package/dist/schemas/upload-media-request.schema.json +0 -25
  197. package/dist/schemas/upload-media-response.schema.json +0 -55
  198. package/dist/sendContextual.d.ts +0 -114
  199. package/dist/sendContextual.js +0 -89
  200. package/dist/sseEvents.d.ts +0 -474
  201. package/dist/sseEvents.js +0 -278
@@ -1,30 +0,0 @@
1
- {
2
- "$id": "canon:ControlPrimitiveEventSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "requestId": {
10
- "type": "string"
11
- },
12
- "updatedAt": {
13
- "type": "number"
14
- },
15
- "value": {
16
- "type": "object",
17
- "propertyNames": {
18
- "type": "string"
19
- },
20
- "additionalProperties": {}
21
- }
22
- },
23
- "required": [
24
- "conversationId",
25
- "requestId",
26
- "updatedAt",
27
- "value"
28
- ],
29
- "additionalProperties": false
30
- }
@@ -1,15 +0,0 @@
1
- {
2
- "$id": "canon:ControlPrimitiveMapSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "propertyNames": {
6
- "type": "string"
7
- },
8
- "additionalProperties": {
9
- "type": "object",
10
- "propertyNames": {
11
- "type": "string"
12
- },
13
- "additionalProperties": {}
14
- }
15
- }
@@ -1,26 +0,0 @@
1
- {
2
- "$id": "canon:ControlSessionEventSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "updatedAt": {
10
- "type": "number"
11
- },
12
- "control": {
13
- "type": "object",
14
- "propertyNames": {
15
- "type": "string"
16
- },
17
- "additionalProperties": {}
18
- }
19
- },
20
- "required": [
21
- "conversationId",
22
- "updatedAt",
23
- "control"
24
- ],
25
- "additionalProperties": false
26
- }
@@ -1,11 +0,0 @@
1
- {
2
- "$id": "canon:ControlSessionNodeSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "updatedAt": {
7
- "type": "number"
8
- }
9
- },
10
- "additionalProperties": {}
11
- }
@@ -1,35 +0,0 @@
1
- {
2
- "$id": "canon:ControlSignalEventSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "type": {
10
- "type": "string",
11
- "enum": [
12
- "interrupt",
13
- "stop_and_drop",
14
- "new_session"
15
- ]
16
- },
17
- "updatedAt": {
18
- "type": "number"
19
- },
20
- "raw": {
21
- "type": "object",
22
- "propertyNames": {
23
- "type": "string"
24
- },
25
- "additionalProperties": {}
26
- }
27
- },
28
- "required": [
29
- "conversationId",
30
- "type",
31
- "updatedAt",
32
- "raw"
33
- ],
34
- "additionalProperties": false
35
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$id": "canon:ControlSignalNodeSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "enum": [
9
- "interrupt",
10
- "stop_and_drop",
11
- "new_session"
12
- ]
13
- },
14
- "updatedAt": {
15
- "type": "number"
16
- }
17
- },
18
- "required": [
19
- "type"
20
- ],
21
- "additionalProperties": {}
22
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$id": "canon:ControlSignalTypeSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "interrupt",
7
- "stop_and_drop",
8
- "new_session"
9
- ]
10
- }
@@ -1,167 +0,0 @@
1
- {
2
- "$id": "canon:ConversationsResponseSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversations": {
7
- "type": "array",
8
- "items": {
9
- "type": "object",
10
- "properties": {
11
- "id": {
12
- "type": "string"
13
- },
14
- "type": {
15
- "type": "string",
16
- "enum": [
17
- "direct",
18
- "group"
19
- ]
20
- },
21
- "name": {
22
- "anyOf": [
23
- {
24
- "type": "string"
25
- },
26
- {
27
- "type": "null"
28
- }
29
- ]
30
- },
31
- "topic": {
32
- "anyOf": [
33
- {
34
- "type": "string"
35
- },
36
- {
37
- "type": "null"
38
- }
39
- ]
40
- },
41
- "memberIds": {
42
- "type": "array",
43
- "items": {
44
- "type": "string"
45
- }
46
- },
47
- "isAgentChat": {
48
- "type": "boolean"
49
- },
50
- "behavior": {
51
- "type": "object",
52
- "propertyNames": {
53
- "type": "string"
54
- },
55
- "additionalProperties": {}
56
- },
57
- "hasUnread": {
58
- "type": "boolean"
59
- },
60
- "lastMessage": {
61
- "anyOf": [
62
- {
63
- "type": "object",
64
- "properties": {
65
- "text": {
66
- "anyOf": [
67
- {
68
- "type": "string"
69
- },
70
- {
71
- "type": "null"
72
- }
73
- ]
74
- },
75
- "messageId": {
76
- "type": "string"
77
- },
78
- "senderId": {
79
- "anyOf": [
80
- {
81
- "type": "string"
82
- },
83
- {
84
- "type": "null"
85
- }
86
- ]
87
- },
88
- "senderType": {
89
- "anyOf": [
90
- {
91
- "type": "string",
92
- "enum": [
93
- "human",
94
- "ai_agent"
95
- ]
96
- },
97
- {
98
- "type": "null"
99
- }
100
- ]
101
- },
102
- "contentType": {
103
- "anyOf": [
104
- {
105
- "type": "string",
106
- "enum": [
107
- "text",
108
- "image",
109
- "audio",
110
- "video",
111
- "file",
112
- "contact_card"
113
- ]
114
- },
115
- {
116
- "type": "null"
117
- }
118
- ]
119
- },
120
- "timestamp": {
121
- "anyOf": [
122
- {
123
- "type": "string"
124
- },
125
- {
126
- "type": "null"
127
- }
128
- ]
129
- }
130
- },
131
- "required": [
132
- "text",
133
- "timestamp"
134
- ],
135
- "additionalProperties": {}
136
- },
137
- {
138
- "type": "null"
139
- }
140
- ]
141
- },
142
- "createdAt": {
143
- "anyOf": [
144
- {
145
- "type": "string"
146
- },
147
- {
148
- "type": "null"
149
- }
150
- ]
151
- }
152
- },
153
- "required": [
154
- "id",
155
- "type",
156
- "memberIds",
157
- "lastMessage"
158
- ],
159
- "additionalProperties": {}
160
- }
161
- }
162
- },
163
- "required": [
164
- "conversations"
165
- ],
166
- "additionalProperties": false
167
- }
@@ -1,17 +0,0 @@
1
- {
2
- "$id": "canon:CreateContactRequestRequestSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "targetId": {
7
- "type": "string"
8
- },
9
- "message": {
10
- "type": "string"
11
- }
12
- },
13
- "required": [
14
- "targetId"
15
- ],
16
- "additionalProperties": false
17
- }
@@ -1,51 +0,0 @@
1
- {
2
- "$id": "canon:CreateContactRequestResponseSchema",
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": "open"
11
- }
12
- },
13
- "required": [
14
- "status"
15
- ],
16
- "additionalProperties": {}
17
- },
18
- {
19
- "type": "object",
20
- "properties": {
21
- "status": {
22
- "type": "string",
23
- "enum": [
24
- "created",
25
- "duplicate"
26
- ]
27
- },
28
- "requestId": {
29
- "type": "string"
30
- }
31
- },
32
- "required": [
33
- "status",
34
- "requestId"
35
- ],
36
- "additionalProperties": {}
37
- },
38
- {
39
- "type": "object",
40
- "properties": {
41
- "message": {
42
- "type": "string"
43
- }
44
- },
45
- "required": [
46
- "message"
47
- ],
48
- "additionalProperties": {}
49
- }
50
- ]
51
- }
@@ -1,82 +0,0 @@
1
- {
2
- "$id": "canon:CreateConversationRequestSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "enum": [
9
- "direct",
10
- "group"
11
- ]
12
- },
13
- "targetUserId": {
14
- "type": "string"
15
- },
16
- "memberIds": {
17
- "type": "array",
18
- "items": {
19
- "type": "string"
20
- }
21
- },
22
- "name": {
23
- "type": "string"
24
- },
25
- "sessionConfig": {
26
- "anyOf": [
27
- {
28
- "type": "object",
29
- "propertyNames": {
30
- "type": "string"
31
- },
32
- "additionalProperties": {}
33
- },
34
- {
35
- "type": "null"
36
- }
37
- ]
38
- },
39
- "sessionSelection": {
40
- "anyOf": [
41
- {
42
- "type": "object",
43
- "properties": {
44
- "mode": {
45
- "type": "string",
46
- "enum": [
47
- "new",
48
- "continue_latest",
49
- "continue_or_create"
50
- ]
51
- }
52
- },
53
- "required": [
54
- "mode"
55
- ],
56
- "additionalProperties": false
57
- },
58
- {
59
- "type": "object",
60
- "properties": {
61
- "mode": {
62
- "type": "string",
63
- "const": "specific"
64
- },
65
- "conversationId": {
66
- "type": "string"
67
- }
68
- },
69
- "required": [
70
- "mode",
71
- "conversationId"
72
- ],
73
- "additionalProperties": false
74
- }
75
- ]
76
- }
77
- },
78
- "required": [
79
- "type"
80
- ],
81
- "additionalProperties": false
82
- }
@@ -1,29 +0,0 @@
1
- {
2
- "$id": "canon:CreateConversationResponseSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "conversationId": {
7
- "type": "string"
8
- },
9
- "created": {
10
- "type": "boolean"
11
- },
12
- "reused": {
13
- "type": "boolean"
14
- },
15
- "sessionSelection": {
16
- "type": "string",
17
- "enum": [
18
- "new",
19
- "continue_latest",
20
- "continue_or_create",
21
- "specific"
22
- ]
23
- }
24
- },
25
- "required": [
26
- "conversationId"
27
- ],
28
- "additionalProperties": false
29
- }
@@ -1,11 +0,0 @@
1
- {
2
- "$id": "canon:DeleteMessageResponseSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "success": {
7
- "type": "boolean"
8
- }
9
- },
10
- "additionalProperties": {}
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "$id": "canon:DeliveryIntentSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "queue",
7
- "interrupt",
8
- "interleave",
9
- "stop"
10
- ]
11
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$id": "canon:ForwardMessageRequestSchema",
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
- "messageId": {
13
- "type": "string"
14
- },
15
- "text": {
16
- "type": "string"
17
- }
18
- },
19
- "required": [
20
- "sourceConversationId",
21
- "targetConversationId",
22
- "messageId"
23
- ],
24
- "additionalProperties": false
25
- }
@@ -1,35 +0,0 @@
1
- {
2
- "$id": "canon:ForwardMessageResponseSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "messageId": {
7
- "type": "string"
8
- },
9
- "targetConversationId": {
10
- "type": "string"
11
- },
12
- "forwardedFrom": {
13
- "type": "object",
14
- "properties": {
15
- "sourceConversationId": {
16
- "type": "string"
17
- },
18
- "messageId": {
19
- "type": "string"
20
- }
21
- },
22
- "required": [
23
- "sourceConversationId",
24
- "messageId"
25
- ],
26
- "additionalProperties": false
27
- }
28
- },
29
- "required": [
30
- "messageId",
31
- "targetConversationId",
32
- "forwardedFrom"
33
- ],
34
- "additionalProperties": false
35
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$id": "canon:ForwardedFromSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "sourceConversationId": {
7
- "type": "string"
8
- },
9
- "messageId": {
10
- "type": "string"
11
- }
12
- },
13
- "required": [
14
- "sourceConversationId",
15
- "messageId"
16
- ],
17
- "additionalProperties": false
18
- }
@@ -1,17 +0,0 @@
1
- {
2
- "$id": "canon:GetMessagesQuerySchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "limit": {
7
- "type": "string"
8
- },
9
- "before": {
10
- "type": "string"
11
- },
12
- "includeBehavior": {
13
- "type": "string"
14
- }
15
- },
16
- "additionalProperties": false
17
- }
@@ -1,15 +0,0 @@
1
- {
2
- "$id": "canon:HitlApprovalCategorySchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "command",
7
- "file",
8
- "network",
9
- "browser",
10
- "mcp",
11
- "plugin",
12
- "canon",
13
- "tool"
14
- ]
15
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$id": "canon:HitlApprovalDetailSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "label": {
7
- "type": "string"
8
- },
9
- "value": {
10
- "type": "string"
11
- },
12
- "monospace": {
13
- "type": "boolean"
14
- }
15
- },
16
- "required": [
17
- "label",
18
- "value"
19
- ],
20
- "additionalProperties": false
21
- }