@canonmsg/backend-contracts 8.6.1 → 8.6.2
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.
|
@@ -42,7 +42,7 @@ exports.ENDPOINT_CONTENT_EPHEMERAL_FAMILIES = [
|
|
|
42
42
|
'runtime-silence', 'runtime-attention', 'call-attention', 'agent-runtime', 'presence',
|
|
43
43
|
];
|
|
44
44
|
exports.ENDPOINT_CONTENT_EVENTS = [
|
|
45
|
-
'connected', 'heartbeat', 'agent.context', 'replay.expired',
|
|
45
|
+
'connected', 'heartbeat', 'agent.context', 'replay.expired', 'error', 'participation.suppressed',
|
|
46
46
|
'message.created', 'message.snapshot', 'message.updated', 'message.deleted',
|
|
47
47
|
'message.media_terminal', 'conversation.updated', 'conversation.changed',
|
|
48
48
|
'conversation.removed', 'conversations.changed', 'contacts.changed',
|
|
@@ -121,6 +121,10 @@ function eventRouting(name) {
|
|
|
121
121
|
return ['protocol', 'connectionId', 'agentId', 'principalId', 'principalType'];
|
|
122
122
|
if (name === 'heartbeat')
|
|
123
123
|
return ['timestamp'];
|
|
124
|
+
if (name === 'error')
|
|
125
|
+
return ['code', 'status', 'retryable', 'retryAfterMs', 'retryAfter', 'activeConnections', 'maxConnections'];
|
|
126
|
+
if (name === 'participation.suppressed')
|
|
127
|
+
return ['conversationId', 'agentId', 'messageId'];
|
|
124
128
|
if (name === 'agent.context')
|
|
125
129
|
return ['agentId', 'ownerId', 'ownershipVersion'];
|
|
126
130
|
if (name === 'conversations.changed')
|
|
@@ -9,7 +9,7 @@ export declare const ENDPOINT_CONTENT_FUNCTION_QUERIES: readonly ["discover_agen
|
|
|
9
9
|
export declare const ENDPOINT_CONTENT_QUERIES: readonly ["discover_agents", "get_unread_summary", "peek_runtime_signal", "list_runtime_primitives", "get_work_session_catalog", "get_work_session_request", "get_agent_behavior_policy", "get_conversation_agent_behavior_policy", "get_ephemeral", "list_voice_sessions", "list_contact_requests", "list_conversations", "list_messages", "get_messages", "admission_fences", "list_contacts", "get_contact", "get_members", "resolve_admission", "resolve_group_admission", "get_runtime_card_state", "conversation", "conversation_changes", "get_upload", "get_voice_session", "get_image_generation", "get_image_generation_status", "admit_messages"];
|
|
10
10
|
export declare const ENDPOINT_CONTENT_EPHEMERALS: readonly ["create_memo_stream", "publish_presence", "publish_typing", "publish_streaming", "publish_turn", "publish_runtime_status", "publish_session_state", "publish_runtime_info", "publish_runtime_activity", "append_memo_chunk"];
|
|
11
11
|
export declare const ENDPOINT_CONTENT_EPHEMERAL_FAMILIES: readonly ["typing", "streaming", "turn-state", "agent-session", "runtime-card-state", "memo-streams", "runtime-info", "runtime-activity", "runtime-suppression", "runtime-silence", "runtime-attention", "call-attention", "agent-runtime", "presence"];
|
|
12
|
-
export declare const ENDPOINT_CONTENT_EVENTS: readonly ["connected", "heartbeat", "agent.context", "replay.expired", "message.created", "message.snapshot", "message.updated", "message.deleted", "message.media_terminal", "conversation.updated", "conversation.changed", "conversation.removed", "conversations.changed", "contacts.changed", "contact.added", "contact.updated", "contact.removed", "presence", "typing", "runtime.updated", "runtime.control", "turn.updated", "voice.session.started", "voice.session.ended", ...string[]];
|
|
12
|
+
export declare const ENDPOINT_CONTENT_EVENTS: readonly ["connected", "heartbeat", "agent.context", "replay.expired", "error", "participation.suppressed", "message.created", "message.snapshot", "message.updated", "message.deleted", "message.media_terminal", "conversation.updated", "conversation.changed", "conversation.removed", "conversations.changed", "contacts.changed", "contact.added", "contact.updated", "contact.removed", "presence", "typing", "runtime.updated", "runtime.control", "turn.updated", "voice.session.started", "voice.session.ended", ...string[]];
|
|
13
13
|
export declare class EndpointContentPolicyError extends Error {
|
|
14
14
|
readonly code = "ENDPOINT_CONTENT_UNCLASSIFIED";
|
|
15
15
|
constructor(lane: string, name: string);
|
|
@@ -37,7 +37,7 @@ export const ENDPOINT_CONTENT_EPHEMERAL_FAMILIES = [
|
|
|
37
37
|
'runtime-silence', 'runtime-attention', 'call-attention', 'agent-runtime', 'presence',
|
|
38
38
|
];
|
|
39
39
|
export const ENDPOINT_CONTENT_EVENTS = [
|
|
40
|
-
'connected', 'heartbeat', 'agent.context', 'replay.expired',
|
|
40
|
+
'connected', 'heartbeat', 'agent.context', 'replay.expired', 'error', 'participation.suppressed',
|
|
41
41
|
'message.created', 'message.snapshot', 'message.updated', 'message.deleted',
|
|
42
42
|
'message.media_terminal', 'conversation.updated', 'conversation.changed',
|
|
43
43
|
'conversation.removed', 'conversations.changed', 'contacts.changed',
|
|
@@ -115,6 +115,10 @@ function eventRouting(name) {
|
|
|
115
115
|
return ['protocol', 'connectionId', 'agentId', 'principalId', 'principalType'];
|
|
116
116
|
if (name === 'heartbeat')
|
|
117
117
|
return ['timestamp'];
|
|
118
|
+
if (name === 'error')
|
|
119
|
+
return ['code', 'status', 'retryable', 'retryAfterMs', 'retryAfter', 'activeConnections', 'maxConnections'];
|
|
120
|
+
if (name === 'participation.suppressed')
|
|
121
|
+
return ['conversationId', 'agentId', 'messageId'];
|
|
118
122
|
if (name === 'agent.context')
|
|
119
123
|
return ['agentId', 'ownerId', 'ownershipVersion'];
|
|
120
124
|
if (name === 'conversations.changed')
|