@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.
Files changed (193) hide show
  1. package/dist/agentBehaviorPolicy.d.ts +45 -86
  2. package/dist/agentBehaviorPolicy.js +0 -53
  3. package/dist/cjs/agentBehaviorPolicy.js +1 -54
  4. package/dist/cjs/contactRequest.js +0 -30
  5. package/dist/cjs/index.js +0 -8
  6. package/dist/cjs/media.js +0 -13
  7. package/dist/cjs/message.js +0 -64
  8. package/dist/cjs/runtimeCardFields.js +1 -58
  9. package/dist/cjs/turnProtocol.js +1 -41
  10. package/dist/contactRequest.d.ts +23 -42
  11. package/dist/contactRequest.js +0 -29
  12. package/dist/index.d.ts +0 -8
  13. package/dist/index.js +0 -8
  14. package/dist/media.d.ts +11 -24
  15. package/dist/media.js +0 -12
  16. package/dist/message.d.ts +50 -133
  17. package/dist/message.js +1 -64
  18. package/dist/runtimeCardFields.d.ts +39 -112
  19. package/dist/runtimeCardFields.js +0 -57
  20. package/dist/turnProtocol.d.ts +24 -91
  21. package/dist/turnProtocol.js +0 -40
  22. package/package.json +5 -8
  23. package/dist/bridgeLocal.d.ts +0 -1729
  24. package/dist/bridgeLocal.js +0 -673
  25. package/dist/cjs/bridgeLocal.js +0 -676
  26. package/dist/cjs/controlSignals.js +0 -44
  27. package/dist/cjs/endpointRegistry.js +0 -264
  28. package/dist/cjs/hitl.js +0 -0
  29. package/dist/cjs/inboundFrame.js +0 -92
  30. package/dist/cjs/restEndpoints.js +0 -237
  31. package/dist/cjs/sendContextual.js +0 -92
  32. package/dist/cjs/sseEvents.js +0 -298
  33. package/dist/controlSignals.d.ts +0 -55
  34. package/dist/controlSignals.js +0 -41
  35. package/dist/endpointRegistry.d.ts +0 -13
  36. package/dist/endpointRegistry.js +0 -261
  37. package/dist/hitl.d.ts +0 -303
  38. package/dist/hitl.js +0 -168
  39. package/dist/inboundFrame.d.ts +0 -229
  40. package/dist/inboundFrame.js +0 -89
  41. package/dist/restEndpoints.d.ts +0 -531
  42. package/dist/restEndpoints.js +0 -234
  43. package/dist/schemas/agent-behavior-settings-record.schema.json +0 -48
  44. package/dist/schemas/bridge-connection-state-notification.schema.json +0 -19
  45. package/dist/schemas/bridge-get-attachment-params.schema.json +0 -24
  46. package/dist/schemas/bridge-get-attachment-result.schema.json +0 -20
  47. package/dist/schemas/bridge-hello-params.schema.json +0 -42
  48. package/dist/schemas/bridge-hello-result.schema.json +0 -105
  49. package/dist/schemas/bridge-hitl-state.schema.json +0 -38
  50. package/dist/schemas/bridge-ok-result.schema.json +0 -15
  51. package/dist/schemas/bridge-ready-notification.schema.json +0 -79
  52. package/dist/schemas/bridge-resync-reason.schema.json +0 -9
  53. package/dist/schemas/bridge-resync.schema.json +0 -18
  54. package/dist/schemas/bridge-rpc-error.schema.json +0 -19
  55. package/dist/schemas/bridge-rpc-id.schema.json +0 -12
  56. package/dist/schemas/bridge-rpc-notification.schema.json +0 -20
  57. package/dist/schemas/bridge-rpc-request.schema.json +0 -31
  58. package/dist/schemas/bridge-rpc-response.schema.json +0 -81
  59. package/dist/schemas/bridge-status-result.schema.json +0 -76
  60. package/dist/schemas/bridge-upload-media-params.schema.json +0 -28
  61. package/dist/schemas/bridge-upstream-state.schema.json +0 -10
  62. package/dist/schemas/contacts-response.schema.json +0 -52
  63. package/dist/schemas/control-channel-key.schema.json +0 -10
  64. package/dist/schemas/control-primitive-event.schema.json +0 -30
  65. package/dist/schemas/control-primitive-map.schema.json +0 -15
  66. package/dist/schemas/control-session-event.schema.json +0 -26
  67. package/dist/schemas/control-session-node.schema.json +0 -11
  68. package/dist/schemas/control-signal-event.schema.json +0 -35
  69. package/dist/schemas/control-signal-node.schema.json +0 -22
  70. package/dist/schemas/control-signal-type.schema.json +0 -10
  71. package/dist/schemas/conversations-response.schema.json +0 -167
  72. package/dist/schemas/create-contact-request-request.schema.json +0 -17
  73. package/dist/schemas/create-contact-request-response.schema.json +0 -51
  74. package/dist/schemas/create-conversation-request.schema.json +0 -82
  75. package/dist/schemas/create-conversation-response.schema.json +0 -29
  76. package/dist/schemas/delete-message-response.schema.json +0 -11
  77. package/dist/schemas/delivery-intent.schema.json +0 -11
  78. package/dist/schemas/forward-message-request.schema.json +0 -25
  79. package/dist/schemas/forward-message-response.schema.json +0 -35
  80. package/dist/schemas/forwarded-from.schema.json +0 -18
  81. package/dist/schemas/get-messages-query.schema.json +0 -17
  82. package/dist/schemas/hitl-approval-category.schema.json +0 -15
  83. package/dist/schemas/hitl-approval-detail.schema.json +0 -21
  84. package/dist/schemas/hitl-approval-outcome-record.schema.json +0 -33
  85. package/dist/schemas/hitl-approval-reply-record.schema.json +0 -57
  86. package/dist/schemas/hitl-approval-request-record.schema.json +0 -105
  87. package/dist/schemas/hitl-approval-risk.schema.json +0 -11
  88. package/dist/schemas/hitl-card-outcome-record.schema.json +0 -48
  89. package/dist/schemas/hitl-card-reply-record.schema.json +0 -46
  90. package/dist/schemas/hitl-card-request-record.schema.json +0 -73
  91. package/dist/schemas/hitl-input-answers.schema.json +0 -23
  92. package/dist/schemas/hitl-input-kind.schema.json +0 -10
  93. package/dist/schemas/hitl-input-outcome-record.schema.json +0 -46
  94. package/dist/schemas/hitl-input-question.schema.json +0 -54
  95. package/dist/schemas/hitl-input-reply-record.schema.json +0 -44
  96. package/dist/schemas/hitl-input-request-record.schema.json +0 -134
  97. package/dist/schemas/hitl-pending.schema.json +0 -31
  98. package/dist/schemas/hitl-request-accepted.schema.json +0 -18
  99. package/dist/schemas/hitl-request-kind.schema.json +0 -10
  100. package/dist/schemas/hitl-resolution-status.schema.json +0 -10
  101. package/dist/schemas/hitl-resolution.schema.json +0 -38
  102. package/dist/schemas/hitl-session-rule.schema.json +0 -32
  103. package/dist/schemas/inbound-disposition.schema.json +0 -13
  104. package/dist/schemas/inbound-frame-attachment-v1.schema.json +0 -94
  105. package/dist/schemas/inbound-frame-contact-card-v1.schema.json +0 -59
  106. package/dist/schemas/inbound-frame-group-context-v1.schema.json +0 -96
  107. package/dist/schemas/inbound-frame-reply-context-v1.schema.json +0 -261
  108. package/dist/schemas/inbound-frame-shape-v1.schema.json +0 -12
  109. package/dist/schemas/inbound-frame-v1.schema.json +0 -506
  110. package/dist/schemas/mark-read-response.schema.json +0 -11
  111. package/dist/schemas/media-attachment-kind.schema.json +0 -11
  112. package/dist/schemas/media-attachment.schema.json +0 -42
  113. package/dist/schemas/messages-page-response.schema.json +0 -290
  114. package/dist/schemas/participation-decision-input.schema.json +0 -44
  115. package/dist/schemas/participation-history-message.schema.json +0 -23
  116. package/dist/schemas/participation-history-snapshot.schema.json +0 -37
  117. package/dist/schemas/participation-style.schema.json +0 -13
  118. package/dist/schemas/react-request.schema.json +0 -22
  119. package/dist/schemas/react-response.schema.json +0 -35
  120. package/dist/schemas/resolve-admission-request.schema.json +0 -30
  121. package/dist/schemas/resolve-admission-response.schema.json +0 -129
  122. package/dist/schemas/resolved-agent-behavior-policy-record.schema.json +0 -81
  123. package/dist/schemas/rest-contact.schema.json +0 -40
  124. package/dist/schemas/rest-conversation-last-message.schema.json +0 -77
  125. package/dist/schemas/rest-conversation.schema.json +0 -155
  126. package/dist/schemas/rest-message.schema.json +0 -252
  127. package/dist/schemas/rest-ok-response.schema.json +0 -11
  128. package/dist/schemas/rest-session-selection.schema.json +0 -40
  129. package/dist/schemas/runtime-card-field-choice.schema.json +0 -23
  130. package/dist/schemas/runtime-card-field-type.schema.json +0 -17
  131. package/dist/schemas/runtime-card-field.schema.json +0 -180
  132. package/dist/schemas/runtime-card-line-item-column-type.schema.json +0 -12
  133. package/dist/schemas/runtime-card-line-item-column.schema.json +0 -74
  134. package/dist/schemas/send-contextual-deferred-response.schema.json +0 -39
  135. package/dist/schemas/send-contextual-messaged-response.schema.json +0 -42
  136. package/dist/schemas/send-contextual-request.schema.json +0 -103
  137. package/dist/schemas/send-contextual-response.schema.json +0 -105
  138. package/dist/schemas/send-contextual-self-context.schema.json +0 -19
  139. package/dist/schemas/send-contextual-state-response.schema.json +0 -24
  140. package/dist/schemas/send-message-request.schema.json +0 -106
  141. package/dist/schemas/send-message-response.schema.json +0 -14
  142. package/dist/schemas/sender-type.schema.json +0 -9
  143. package/dist/schemas/serialize-message-input.schema.json +0 -29
  144. package/dist/schemas/serialized-agent-client-type.schema.json +0 -12
  145. package/dist/schemas/serialized-contact-card.schema.json +0 -65
  146. package/dist/schemas/serialized-contact-request-status.schema.json +0 -11
  147. package/dist/schemas/serialized-contact-request.schema.json +0 -157
  148. package/dist/schemas/serialized-content-type.schema.json +0 -13
  149. package/dist/schemas/serialized-message.schema.json +0 -249
  150. package/dist/schemas/serialized-reactions.schema.json +0 -14
  151. package/dist/schemas/serialized-sender-type.schema.json +0 -9
  152. package/dist/schemas/set-streaming-request.schema.json +0 -67
  153. package/dist/schemas/set-typing-request.schema.json +0 -25
  154. package/dist/schemas/sse-access-policy.schema.json +0 -10
  155. package/dist/schemas/sse-agent-context-payload.schema.json +0 -57
  156. package/dist/schemas/sse-connected-payload.schema.json +0 -18
  157. package/dist/schemas/sse-contact-payload.schema.json +0 -40
  158. package/dist/schemas/sse-contact-removed-payload.schema.json +0 -14
  159. package/dist/schemas/sse-contact-request-payload.schema.json +0 -157
  160. package/dist/schemas/sse-conversation-updated-payload.schema.json +0 -48
  161. package/dist/schemas/sse-error-payload.schema.json +0 -23
  162. package/dist/schemas/sse-event-envelope.schema.json +0 -42
  163. package/dist/schemas/sse-event-family.schema.json +0 -12
  164. package/dist/schemas/sse-event-type.schema.json +0 -28
  165. package/dist/schemas/sse-heartbeat-payload.schema.json +0 -14
  166. package/dist/schemas/sse-membership-change.schema.json +0 -28
  167. package/dist/schemas/sse-message-created-payload.schema.json +0 -414
  168. package/dist/schemas/sse-message-deleted-payload.schema.json +0 -18
  169. package/dist/schemas/sse-message-updated-payload.schema.json +0 -46
  170. package/dist/schemas/sse-presence-payload.schema.json +0 -21
  171. package/dist/schemas/sse-provenance.schema.json +0 -64
  172. package/dist/schemas/sse-replay-expired-payload.schema.json +0 -21
  173. package/dist/schemas/sse-runtime-control-kind.schema.json +0 -13
  174. package/dist/schemas/sse-runtime-control-payload.schema.json +0 -44
  175. package/dist/schemas/sse-runtime-updated-payload.schema.json +0 -78
  176. package/dist/schemas/sse-self-context.schema.json +0 -45
  177. package/dist/schemas/sse-turn-dispatch.schema.json +0 -29
  178. package/dist/schemas/sse-turn-updated-payload.schema.json +0 -33
  179. package/dist/schemas/sse-typing-payload.schema.json +0 -32
  180. package/dist/schemas/sse-voice-session-event-payload.schema.json +0 -170
  181. package/dist/schemas/sse-voice-session.schema.json +0 -157
  182. package/dist/schemas/trigger-decision.schema.json +0 -27
  183. package/dist/schemas/turn-lifecycle-state.schema.json +0 -14
  184. package/dist/schemas/turn-message-semantics.schema.json +0 -10
  185. package/dist/schemas/turn-metadata.schema.json +0 -56
  186. package/dist/schemas/turn-state-like.schema.json +0 -39
  187. package/dist/schemas/update-disposition-request.schema.json +0 -22
  188. package/dist/schemas/upload-media-request.schema.json +0 -25
  189. package/dist/schemas/upload-media-response.schema.json +0 -55
  190. package/dist/sendContextual.d.ts +0 -114
  191. package/dist/sendContextual.js +0 -89
  192. package/dist/sseEvents.d.ts +0 -494
  193. package/dist/sseEvents.js +0 -295
@@ -1,73 +0,0 @@
1
- {
2
- "$id": "canon:HitlCardRequestRecordSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "const": "runtime_card_request"
9
- },
10
- "cardId": {
11
- "type": "string"
12
- },
13
- "cardKind": {
14
- "type": "string"
15
- },
16
- "schemaVersion": {
17
- "type": "string",
18
- "const": "canon.card.v1"
19
- },
20
- "fallbackText": {
21
- "type": "string"
22
- },
23
- "responseUserId": {
24
- "type": "string"
25
- },
26
- "expiresAt": {
27
- "type": "string"
28
- },
29
- "runtimeId": {
30
- "type": "string"
31
- },
32
- "turnId": {
33
- "type": "string"
34
- },
35
- "native": {
36
- "type": "object",
37
- "propertyNames": {
38
- "type": "string"
39
- },
40
- "additionalProperties": {}
41
- },
42
- "interactive": {
43
- "type": "boolean"
44
- },
45
- "cardPreview": {
46
- "type": "object",
47
- "propertyNames": {
48
- "type": "string"
49
- },
50
- "additionalProperties": {}
51
- },
52
- "turnSemantics": {
53
- "type": "string",
54
- "const": "control"
55
- },
56
- "replyBehavior": {
57
- "type": "string",
58
- "const": "suppress_auto_reply"
59
- }
60
- },
61
- "required": [
62
- "type",
63
- "cardId",
64
- "cardKind",
65
- "schemaVersion",
66
- "fallbackText",
67
- "expiresAt",
68
- "cardPreview",
69
- "turnSemantics",
70
- "replyBehavior"
71
- ],
72
- "additionalProperties": {}
73
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$id": "canon:HitlInputAnswersSchema",
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
- "properties": {
11
- "answers": {
12
- "type": "array",
13
- "items": {
14
- "type": "string"
15
- }
16
- }
17
- },
18
- "required": [
19
- "answers"
20
- ],
21
- "additionalProperties": false
22
- }
23
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$id": "canon:HitlInputKindSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "clarify",
7
- "sudo",
8
- "secret"
9
- ]
10
- }
@@ -1,46 +0,0 @@
1
- {
2
- "$id": "canon:HitlInputOutcomeRecordSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "const": "runtime_input_outcome"
9
- },
10
- "inputId": {
11
- "type": "string"
12
- },
13
- "kind": {
14
- "type": "string",
15
- "enum": [
16
- "clarify",
17
- "sudo",
18
- "secret"
19
- ]
20
- },
21
- "status": {
22
- "type": "string",
23
- "enum": [
24
- "submitted",
25
- "cancelled",
26
- "timeout"
27
- ]
28
- },
29
- "reason": {
30
- "type": "string",
31
- "enum": [
32
- "submitted",
33
- "cancelled",
34
- "timeout",
35
- "expired",
36
- "interrupted"
37
- ]
38
- }
39
- },
40
- "required": [
41
- "type",
42
- "inputId",
43
- "status"
44
- ],
45
- "additionalProperties": {}
46
- }
@@ -1,54 +0,0 @@
1
- {
2
- "$id": "canon:HitlInputQuestionSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "id": {
7
- "type": "string"
8
- },
9
- "question": {
10
- "type": "string"
11
- },
12
- "header": {
13
- "type": "string"
14
- },
15
- "choices": {
16
- "type": "array",
17
- "items": {
18
- "type": "object",
19
- "properties": {
20
- "label": {
21
- "type": "string"
22
- },
23
- "value": {
24
- "type": "string"
25
- },
26
- "description": {
27
- "type": "string"
28
- },
29
- "preview": {
30
- "type": "string"
31
- }
32
- },
33
- "required": [
34
- "label"
35
- ],
36
- "additionalProperties": false
37
- }
38
- },
39
- "allowOther": {
40
- "type": "boolean"
41
- },
42
- "isSecret": {
43
- "type": "boolean"
44
- },
45
- "multiSelect": {
46
- "type": "boolean"
47
- }
48
- },
49
- "required": [
50
- "id",
51
- "question"
52
- ],
53
- "additionalProperties": false
54
- }
@@ -1,44 +0,0 @@
1
- {
2
- "$id": "canon:HitlInputReplyRecordSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "const": "runtime_input_reply"
9
- },
10
- "inputId": {
11
- "type": "string"
12
- },
13
- "kind": {
14
- "type": "string",
15
- "enum": [
16
- "clarify",
17
- "sudo",
18
- "secret"
19
- ]
20
- },
21
- "status": {
22
- "type": "string",
23
- "enum": [
24
- "submitted",
25
- "cancelled"
26
- ]
27
- },
28
- "answerSummary": {
29
- "type": "string"
30
- },
31
- "answersSummary": {
32
- "type": "string"
33
- },
34
- "sensitive": {
35
- "type": "boolean"
36
- }
37
- },
38
- "required": [
39
- "type",
40
- "inputId",
41
- "status"
42
- ],
43
- "additionalProperties": {}
44
- }
@@ -1,134 +0,0 @@
1
- {
2
- "$id": "canon:HitlInputRequestRecordSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "const": "runtime_input_request"
9
- },
10
- "inputId": {
11
- "type": "string"
12
- },
13
- "responseUserId": {
14
- "type": "string"
15
- },
16
- "kind": {
17
- "type": "string",
18
- "enum": [
19
- "clarify",
20
- "sudo",
21
- "secret"
22
- ]
23
- },
24
- "prompt": {
25
- "type": "string"
26
- },
27
- "title": {
28
- "type": "string"
29
- },
30
- "choices": {
31
- "type": "array",
32
- "items": {
33
- "type": "object",
34
- "properties": {
35
- "label": {
36
- "type": "string"
37
- },
38
- "value": {
39
- "type": "string"
40
- },
41
- "description": {
42
- "type": "string"
43
- },
44
- "preview": {
45
- "type": "string"
46
- }
47
- },
48
- "required": [
49
- "label"
50
- ],
51
- "additionalProperties": false
52
- }
53
- },
54
- "questions": {
55
- "type": "array",
56
- "items": {
57
- "type": "object",
58
- "properties": {
59
- "id": {
60
- "type": "string"
61
- },
62
- "question": {
63
- "type": "string"
64
- },
65
- "header": {
66
- "type": "string"
67
- },
68
- "choices": {
69
- "type": "array",
70
- "items": {
71
- "type": "object",
72
- "properties": {
73
- "label": {
74
- "type": "string"
75
- },
76
- "value": {
77
- "type": "string"
78
- },
79
- "description": {
80
- "type": "string"
81
- },
82
- "preview": {
83
- "type": "string"
84
- }
85
- },
86
- "required": [
87
- "label"
88
- ],
89
- "additionalProperties": false
90
- }
91
- },
92
- "allowOther": {
93
- "type": "boolean"
94
- },
95
- "isSecret": {
96
- "type": "boolean"
97
- },
98
- "multiSelect": {
99
- "type": "boolean"
100
- }
101
- },
102
- "required": [
103
- "id",
104
- "question"
105
- ],
106
- "additionalProperties": false
107
- }
108
- },
109
- "secretName": {
110
- "type": "string"
111
- },
112
- "native": {
113
- "type": "object",
114
- "propertyNames": {
115
- "type": "string"
116
- },
117
- "additionalProperties": {}
118
- },
119
- "expiresAt": {
120
- "type": "string"
121
- },
122
- "sensitive": {
123
- "type": "boolean"
124
- }
125
- },
126
- "required": [
127
- "type",
128
- "inputId",
129
- "kind",
130
- "prompt",
131
- "expiresAt"
132
- ],
133
- "additionalProperties": {}
134
- }
@@ -1,31 +0,0 @@
1
- {
2
- "$id": "canon:HitlPendingSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "requestId": {
7
- "type": "string"
8
- },
9
- "kind": {
10
- "type": "string",
11
- "enum": [
12
- "approval",
13
- "input",
14
- "card"
15
- ]
16
- },
17
- "conversationId": {
18
- "type": "string"
19
- },
20
- "expiresAt": {
21
- "type": "string"
22
- }
23
- },
24
- "required": [
25
- "requestId",
26
- "kind",
27
- "conversationId",
28
- "expiresAt"
29
- ],
30
- "additionalProperties": false
31
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$id": "canon:HitlRequestAcceptedSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "requestId": {
7
- "type": "string"
8
- },
9
- "expiresAt": {
10
- "type": "string"
11
- }
12
- },
13
- "required": [
14
- "requestId",
15
- "expiresAt"
16
- ],
17
- "additionalProperties": false
18
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$id": "canon:HitlRequestKindSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "approval",
7
- "input",
8
- "card"
9
- ]
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$id": "canon:HitlResolutionStatusSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "submitted",
7
- "cancelled",
8
- "timeout"
9
- ]
10
- }
@@ -1,38 +0,0 @@
1
- {
2
- "$id": "canon:HitlResolutionSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "requestId": {
7
- "type": "string"
8
- },
9
- "kind": {
10
- "type": "string",
11
- "enum": [
12
- "approval",
13
- "input",
14
- "card"
15
- ]
16
- },
17
- "status": {
18
- "type": "string",
19
- "enum": [
20
- "submitted",
21
- "cancelled",
22
- "timeout"
23
- ]
24
- },
25
- "answer": {
26
- "type": "object",
27
- "propertyNames": {
28
- "type": "string"
29
- },
30
- "additionalProperties": {}
31
- }
32
- },
33
- "required": [
34
- "requestId",
35
- "status"
36
- ],
37
- "additionalProperties": false
38
- }
@@ -1,32 +0,0 @@
1
- {
2
- "$id": "canon:HitlSessionRuleSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "type": {
7
- "type": "string",
8
- "enum": [
9
- "approve-all",
10
- "approve-tool",
11
- "deny-tool"
12
- ]
13
- },
14
- "toolPattern": {
15
- "type": "string"
16
- },
17
- "expiresAt": {
18
- "anyOf": [
19
- {
20
- "type": "string"
21
- },
22
- {
23
- "type": "null"
24
- }
25
- ]
26
- }
27
- },
28
- "required": [
29
- "type"
30
- ],
31
- "additionalProperties": false
32
- }
@@ -1,13 +0,0 @@
1
- {
2
- "$id": "canon:InboundDispositionSchema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "string",
5
- "enum": [
6
- "queued",
7
- "accepted_now",
8
- "interleaved",
9
- "trigger_suppressed",
10
- "rejected",
11
- "cancelled"
12
- ]
13
- }
@@ -1,94 +0,0 @@
1
- {
2
- "$id": "canon:InboundFrameAttachmentV1Schema",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "properties": {
6
- "index": {
7
- "type": "number"
8
- },
9
- "kind": {
10
- "type": "string",
11
- "enum": [
12
- "image",
13
- "audio",
14
- "video",
15
- "file"
16
- ]
17
- },
18
- "placeholder": {
19
- "type": "string"
20
- },
21
- "fileName": {
22
- "anyOf": [
23
- {
24
- "type": "string"
25
- },
26
- {
27
- "type": "null"
28
- }
29
- ]
30
- },
31
- "mimeType": {
32
- "anyOf": [
33
- {
34
- "type": "string"
35
- },
36
- {
37
- "type": "null"
38
- }
39
- ]
40
- },
41
- "sizeBytes": {
42
- "anyOf": [
43
- {
44
- "type": "number"
45
- },
46
- {
47
- "type": "null"
48
- }
49
- ]
50
- },
51
- "width": {
52
- "anyOf": [
53
- {
54
- "type": "number"
55
- },
56
- {
57
- "type": "null"
58
- }
59
- ]
60
- },
61
- "height": {
62
- "anyOf": [
63
- {
64
- "type": "number"
65
- },
66
- {
67
- "type": "null"
68
- }
69
- ]
70
- },
71
- "durationMs": {
72
- "anyOf": [
73
- {
74
- "type": "number"
75
- },
76
- {
77
- "type": "null"
78
- }
79
- ]
80
- }
81
- },
82
- "required": [
83
- "index",
84
- "kind",
85
- "placeholder",
86
- "fileName",
87
- "mimeType",
88
- "sizeBytes",
89
- "width",
90
- "height",
91
- "durationMs"
92
- ],
93
- "additionalProperties": false
94
- }