@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.
- 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/diffRedaction.js +73 -0
- package/dist/cjs/index.js +1 -8
- package/dist/cjs/media.js +0 -13
- package/dist/cjs/message.js +44 -65
- 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/diffRedaction.d.ts +6 -0
- package/dist/diffRedaction.js +68 -0
- package/dist/index.d.ts +1 -8
- package/dist/index.js +1 -8
- package/dist/media.d.ts +11 -24
- package/dist/media.js +0 -12
- package/dist/message.d.ts +79 -132
- package/dist/message.js +45 -65
- 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 -1871
- package/dist/bridgeLocal.js +0 -744
- package/dist/cjs/bridgeLocal.js +0 -747
- package/dist/cjs/controlSignals.js +0 -44
- package/dist/cjs/endpointRegistry.js +0 -264
- package/dist/cjs/hitl.js +0 -171
- 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 -281
- 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-publish-streaming-event-params.schema.json +0 -138
- 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-stream-clear-event.schema.json +0 -15
- package/dist/schemas/bridge-stream-event.schema.json +0 -112
- package/dist/schemas/bridge-stream-final-event.schema.json +0 -19
- package/dist/schemas/bridge-stream-text-event.schema.json +0 -31
- package/dist/schemas/bridge-stream-thinking-event.schema.json +0 -15
- package/dist/schemas/bridge-stream-tool-event.schema.json +0 -36
- 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 -40
- package/dist/schemas/sse-event-family.schema.json +0 -12
- package/dist/schemas/sse-event-type.schema.json +0 -26
- 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-self-context.schema.json +0 -45
- package/dist/schemas/sse-turn-dispatch.schema.json +0 -29
- 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 -474
- package/dist/sseEvents.js +0 -278
package/dist/bridgeLocal.d.ts
DELETED
|
@@ -1,1871 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const BRIDGE_LOCAL_PROTOCOL_VERSION: 1;
|
|
3
|
-
declare const OkResultSchema: z.ZodObject<{
|
|
4
|
-
ok: z.ZodLiteral<true>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export { OkResultSchema as BridgeOkResultSchema };
|
|
7
|
-
export type BridgeOkResult = z.infer<typeof OkResultSchema>;
|
|
8
|
-
export declare const BridgeHelloParamsSchema: z.ZodObject<{
|
|
9
|
-
protocolVersion: z.ZodNumber;
|
|
10
|
-
clientType: z.ZodString;
|
|
11
|
-
wantFamilies: z.ZodArray<z.ZodEnum<{
|
|
12
|
-
messages: "messages";
|
|
13
|
-
contacts: "contacts";
|
|
14
|
-
typing_presence: "typing_presence";
|
|
15
|
-
runtime_turn: "runtime_turn";
|
|
16
|
-
voice: "voice";
|
|
17
|
-
}>>;
|
|
18
|
-
resumeCursor: z.ZodOptional<z.ZodString>;
|
|
19
|
-
runtimeDescriptor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type BridgeHelloParams = z.infer<typeof BridgeHelloParamsSchema>;
|
|
22
|
-
export declare const BridgeResyncReasonSchema: z.ZodEnum<{
|
|
23
|
-
"cursor-expired": "cursor-expired";
|
|
24
|
-
"unknown-cursor": "unknown-cursor";
|
|
25
|
-
}>;
|
|
26
|
-
export type BridgeResyncReason = z.infer<typeof BridgeResyncReasonSchema>;
|
|
27
|
-
export declare const BridgeResyncSchema: z.ZodObject<{
|
|
28
|
-
reason: z.ZodEnum<{
|
|
29
|
-
"cursor-expired": "cursor-expired";
|
|
30
|
-
"unknown-cursor": "unknown-cursor";
|
|
31
|
-
}>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type BridgeResync = z.infer<typeof BridgeResyncSchema>;
|
|
34
|
-
/**
|
|
35
|
-
* Shape mixin for replayable §C notification params (`.extend(...)` onto the
|
|
36
|
-
* payload schema). `cursor` is optional in the schema for compatibility, but
|
|
37
|
-
* the bridge always sends it on log-delivered notifications. `ready` and
|
|
38
|
-
* `connectionState` are connection-scoped (never replayed) and carry none.
|
|
39
|
-
*/
|
|
40
|
-
export declare const BRIDGE_EVENT_CURSOR_SHAPE: {
|
|
41
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
42
|
-
};
|
|
43
|
-
export declare const BridgeHelloResultSchema: z.ZodObject<{
|
|
44
|
-
protocolVersion: z.ZodNumber;
|
|
45
|
-
agentId: z.ZodString;
|
|
46
|
-
agentName: z.ZodString;
|
|
47
|
-
agentContext: z.ZodObject<{
|
|
48
|
-
agentId: z.ZodString;
|
|
49
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
50
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
51
|
-
ownerId: z.ZodString;
|
|
52
|
-
ownerName: z.ZodString;
|
|
53
|
-
defaultBehavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
54
|
-
inboundPolicy: z.ZodEnum<{
|
|
55
|
-
open: "open";
|
|
56
|
-
"approval-required": "approval-required";
|
|
57
|
-
"owner-only": "owner-only";
|
|
58
|
-
}>;
|
|
59
|
-
groupJoinPolicy: z.ZodEnum<{
|
|
60
|
-
open: "open";
|
|
61
|
-
"approval-required": "approval-required";
|
|
62
|
-
"owner-only": "owner-only";
|
|
63
|
-
}>;
|
|
64
|
-
discoverable: z.ZodBoolean;
|
|
65
|
-
}, z.core.$loose>;
|
|
66
|
-
sinceCursor: z.ZodNullable<z.ZodString>;
|
|
67
|
-
resync: z.ZodOptional<z.ZodObject<{
|
|
68
|
-
reason: z.ZodEnum<{
|
|
69
|
-
"cursor-expired": "cursor-expired";
|
|
70
|
-
"unknown-cursor": "unknown-cursor";
|
|
71
|
-
}>;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
|
-
}, z.core.$strip>;
|
|
74
|
-
export type BridgeHelloResult = z.infer<typeof BridgeHelloResultSchema>;
|
|
75
|
-
export declare const BridgeUpstreamStateSchema: z.ZodEnum<{
|
|
76
|
-
connected: "connected";
|
|
77
|
-
reconnecting: "reconnecting";
|
|
78
|
-
down: "down";
|
|
79
|
-
}>;
|
|
80
|
-
export type BridgeUpstreamState = z.infer<typeof BridgeUpstreamStateSchema>;
|
|
81
|
-
export declare const BridgeReadyNotificationSchema: z.ZodObject<{
|
|
82
|
-
agentId: z.ZodString;
|
|
83
|
-
agentContext: z.ZodObject<{
|
|
84
|
-
agentId: z.ZodString;
|
|
85
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
86
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
87
|
-
ownerId: z.ZodString;
|
|
88
|
-
ownerName: z.ZodString;
|
|
89
|
-
defaultBehavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
90
|
-
inboundPolicy: z.ZodEnum<{
|
|
91
|
-
open: "open";
|
|
92
|
-
"approval-required": "approval-required";
|
|
93
|
-
"owner-only": "owner-only";
|
|
94
|
-
}>;
|
|
95
|
-
groupJoinPolicy: z.ZodEnum<{
|
|
96
|
-
open: "open";
|
|
97
|
-
"approval-required": "approval-required";
|
|
98
|
-
"owner-only": "owner-only";
|
|
99
|
-
}>;
|
|
100
|
-
discoverable: z.ZodBoolean;
|
|
101
|
-
}, z.core.$loose>;
|
|
102
|
-
upstreamState: z.ZodEnum<{
|
|
103
|
-
connected: "connected";
|
|
104
|
-
reconnecting: "reconnecting";
|
|
105
|
-
down: "down";
|
|
106
|
-
}>;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
|
-
export type BridgeReadyNotification = z.infer<typeof BridgeReadyNotificationSchema>;
|
|
109
|
-
export declare const BridgeConnectionStateNotificationSchema: z.ZodObject<{
|
|
110
|
-
upstream: z.ZodEnum<{
|
|
111
|
-
connected: "connected";
|
|
112
|
-
reconnecting: "reconnecting";
|
|
113
|
-
down: "down";
|
|
114
|
-
}>;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
export type BridgeConnectionStateNotification = z.infer<typeof BridgeConnectionStateNotificationSchema>;
|
|
117
|
-
/**
|
|
118
|
-
* `status` result (B4.6 observability): a live snapshot of the daemon
|
|
119
|
-
* process, its upstream health, and the B4.2 hub counters. Additive to
|
|
120
|
-
* contract v1 — served by the daemon and rendered by `canon-bridge status`.
|
|
121
|
-
*/
|
|
122
|
-
export declare const BridgeStatusResultSchema: z.ZodObject<{
|
|
123
|
-
pid: z.ZodNumber;
|
|
124
|
-
version: z.ZodString;
|
|
125
|
-
protocolVersion: z.ZodNumber;
|
|
126
|
-
startedAt: z.ZodString;
|
|
127
|
-
uptimeMs: z.ZodNumber;
|
|
128
|
-
profile: z.ZodString;
|
|
129
|
-
socketPath: z.ZodNullable<z.ZodString>;
|
|
130
|
-
agentId: z.ZodString;
|
|
131
|
-
agentName: z.ZodString;
|
|
132
|
-
upstream: z.ZodEnum<{
|
|
133
|
-
connected: "connected";
|
|
134
|
-
reconnecting: "reconnecting";
|
|
135
|
-
down: "down";
|
|
136
|
-
}>;
|
|
137
|
-
connectedClients: z.ZodNumber;
|
|
138
|
-
counters: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
139
|
-
}, z.core.$strip>;
|
|
140
|
-
export type BridgeStatusResult = z.infer<typeof BridgeStatusResultSchema>;
|
|
141
|
-
export declare const BridgeHitlStateSchema: z.ZodObject<{
|
|
142
|
-
status: z.ZodUnion<readonly [z.ZodLiteral<"pending">, z.ZodEnum<{
|
|
143
|
-
cancelled: "cancelled";
|
|
144
|
-
submitted: "submitted";
|
|
145
|
-
timeout: "timeout";
|
|
146
|
-
}>]>;
|
|
147
|
-
answer: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
148
|
-
expiresAt: z.ZodString;
|
|
149
|
-
}, z.core.$strip>;
|
|
150
|
-
export type BridgeHitlState = z.infer<typeof BridgeHitlStateSchema>;
|
|
151
|
-
export declare const BridgeUploadMediaParamsSchema: z.ZodObject<{
|
|
152
|
-
path: z.ZodOptional<z.ZodString>;
|
|
153
|
-
bytes: z.ZodOptional<z.ZodString>;
|
|
154
|
-
mime: z.ZodString;
|
|
155
|
-
fileName: z.ZodString;
|
|
156
|
-
conversationId: z.ZodString;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
export type BridgeUploadMediaParams = z.infer<typeof BridgeUploadMediaParamsSchema>;
|
|
159
|
-
export declare const BridgeGetAttachmentParamsSchema: z.ZodObject<{
|
|
160
|
-
url: z.ZodOptional<z.ZodString>;
|
|
161
|
-
attachmentId: z.ZodOptional<z.ZodString>;
|
|
162
|
-
as: z.ZodEnum<{
|
|
163
|
-
path: "path";
|
|
164
|
-
bytes: "bytes";
|
|
165
|
-
}>;
|
|
166
|
-
}, z.core.$strip>;
|
|
167
|
-
export type BridgeGetAttachmentParams = z.infer<typeof BridgeGetAttachmentParamsSchema>;
|
|
168
|
-
export declare const BridgeGetAttachmentResultSchema: z.ZodObject<{
|
|
169
|
-
path: z.ZodOptional<z.ZodString>;
|
|
170
|
-
bytes: z.ZodOptional<z.ZodString>;
|
|
171
|
-
mime: z.ZodString;
|
|
172
|
-
}, z.core.$strip>;
|
|
173
|
-
export type BridgeGetAttachmentResult = z.infer<typeof BridgeGetAttachmentResultSchema>;
|
|
174
|
-
export interface BridgeLocalMethodContract {
|
|
175
|
-
params: z.ZodType;
|
|
176
|
-
result: z.ZodType;
|
|
177
|
-
}
|
|
178
|
-
/** A single tool-trail item forwarded raw; the bridge folds it into `blocks`. */
|
|
179
|
-
export declare const BridgeStreamToolEventSchema: z.ZodObject<{
|
|
180
|
-
kind: z.ZodLiteral<"tool">;
|
|
181
|
-
id: z.ZodString;
|
|
182
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
183
|
-
completed: "completed";
|
|
184
|
-
running: "running";
|
|
185
|
-
failed: "failed";
|
|
186
|
-
}>>;
|
|
187
|
-
title: z.ZodOptional<z.ZodString>;
|
|
188
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
189
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
190
|
-
}, z.core.$strip>;
|
|
191
|
-
/**
|
|
192
|
-
* A visible-text segment. `mode:'append'` concatenates onto the segment's
|
|
193
|
-
* running text; `mode:'replace'` overwrites it (the adapter already holds the
|
|
194
|
-
* full segment). The bridge rebuilds the bubble text from its text segments in
|
|
195
|
-
* sequence order, exactly as the core turn-output-controller does today.
|
|
196
|
-
*/
|
|
197
|
-
export declare const BridgeStreamTextEventSchema: z.ZodObject<{
|
|
198
|
-
kind: z.ZodLiteral<"text">;
|
|
199
|
-
id: z.ZodString;
|
|
200
|
-
mode: z.ZodEnum<{
|
|
201
|
-
replace: "replace";
|
|
202
|
-
append: "append";
|
|
203
|
-
}>;
|
|
204
|
-
text: z.ZodString;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
/** A thinking tick (onset or keepalive) — no content; keeps the bubble warm. */
|
|
207
|
-
export declare const BridgeStreamThinkingEventSchema: z.ZodObject<{
|
|
208
|
-
kind: z.ZodLiteral<"thinking">;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
/**
|
|
211
|
-
* Final compose: the assembled reply text is written one last time (status
|
|
212
|
-
* settles to `streaming`) and the node is LEFT in place for the final-message
|
|
213
|
-
* handoff. Clearing is a separate `clear` event / `clearStreaming`.
|
|
214
|
-
*/
|
|
215
|
-
export declare const BridgeStreamFinalEventSchema: z.ZodObject<{
|
|
216
|
-
kind: z.ZodLiteral<"final">;
|
|
217
|
-
text: z.ZodString;
|
|
218
|
-
}, z.core.$strip>;
|
|
219
|
-
/** Clear the streaming node (turn ended / interrupted). */
|
|
220
|
-
export declare const BridgeStreamClearEventSchema: z.ZodObject<{
|
|
221
|
-
kind: z.ZodLiteral<"clear">;
|
|
222
|
-
}, z.core.$strip>;
|
|
223
|
-
export declare const BridgeStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
224
|
-
kind: z.ZodLiteral<"text">;
|
|
225
|
-
id: z.ZodString;
|
|
226
|
-
mode: z.ZodEnum<{
|
|
227
|
-
replace: "replace";
|
|
228
|
-
append: "append";
|
|
229
|
-
}>;
|
|
230
|
-
text: z.ZodString;
|
|
231
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
232
|
-
kind: z.ZodLiteral<"tool">;
|
|
233
|
-
id: z.ZodString;
|
|
234
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
235
|
-
completed: "completed";
|
|
236
|
-
running: "running";
|
|
237
|
-
failed: "failed";
|
|
238
|
-
}>>;
|
|
239
|
-
title: z.ZodOptional<z.ZodString>;
|
|
240
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
241
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
242
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
-
kind: z.ZodLiteral<"thinking">;
|
|
244
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
-
kind: z.ZodLiteral<"final">;
|
|
246
|
-
text: z.ZodString;
|
|
247
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
-
kind: z.ZodLiteral<"clear">;
|
|
249
|
-
}, z.core.$strip>], "kind">;
|
|
250
|
-
export type BridgeStreamEvent = z.infer<typeof BridgeStreamEventSchema>;
|
|
251
|
-
export declare const BridgePublishStreamingEventParamsSchema: z.ZodObject<{
|
|
252
|
-
conversationId: z.ZodString;
|
|
253
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
255
|
-
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
256
|
-
kind: z.ZodLiteral<"text">;
|
|
257
|
-
id: z.ZodString;
|
|
258
|
-
mode: z.ZodEnum<{
|
|
259
|
-
replace: "replace";
|
|
260
|
-
append: "append";
|
|
261
|
-
}>;
|
|
262
|
-
text: z.ZodString;
|
|
263
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
-
kind: z.ZodLiteral<"tool">;
|
|
265
|
-
id: z.ZodString;
|
|
266
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
267
|
-
completed: "completed";
|
|
268
|
-
running: "running";
|
|
269
|
-
failed: "failed";
|
|
270
|
-
}>>;
|
|
271
|
-
title: z.ZodOptional<z.ZodString>;
|
|
272
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
273
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
274
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
-
kind: z.ZodLiteral<"thinking">;
|
|
276
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
-
kind: z.ZodLiteral<"final">;
|
|
278
|
-
text: z.ZodString;
|
|
279
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
-
kind: z.ZodLiteral<"clear">;
|
|
281
|
-
}, z.core.$strip>], "kind">;
|
|
282
|
-
}, z.core.$strip>;
|
|
283
|
-
export declare const BRIDGE_LOCAL_METHODS: {
|
|
284
|
-
readonly hello: {
|
|
285
|
-
readonly params: z.ZodObject<{
|
|
286
|
-
protocolVersion: z.ZodNumber;
|
|
287
|
-
clientType: z.ZodString;
|
|
288
|
-
wantFamilies: z.ZodArray<z.ZodEnum<{
|
|
289
|
-
messages: "messages";
|
|
290
|
-
contacts: "contacts";
|
|
291
|
-
typing_presence: "typing_presence";
|
|
292
|
-
runtime_turn: "runtime_turn";
|
|
293
|
-
voice: "voice";
|
|
294
|
-
}>>;
|
|
295
|
-
resumeCursor: z.ZodOptional<z.ZodString>;
|
|
296
|
-
runtimeDescriptor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
297
|
-
}, z.core.$strip>;
|
|
298
|
-
readonly result: z.ZodObject<{
|
|
299
|
-
protocolVersion: z.ZodNumber;
|
|
300
|
-
agentId: z.ZodString;
|
|
301
|
-
agentName: z.ZodString;
|
|
302
|
-
agentContext: z.ZodObject<{
|
|
303
|
-
agentId: z.ZodString;
|
|
304
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
305
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
306
|
-
ownerId: z.ZodString;
|
|
307
|
-
ownerName: z.ZodString;
|
|
308
|
-
defaultBehavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
-
inboundPolicy: z.ZodEnum<{
|
|
310
|
-
open: "open";
|
|
311
|
-
"approval-required": "approval-required";
|
|
312
|
-
"owner-only": "owner-only";
|
|
313
|
-
}>;
|
|
314
|
-
groupJoinPolicy: z.ZodEnum<{
|
|
315
|
-
open: "open";
|
|
316
|
-
"approval-required": "approval-required";
|
|
317
|
-
"owner-only": "owner-only";
|
|
318
|
-
}>;
|
|
319
|
-
discoverable: z.ZodBoolean;
|
|
320
|
-
}, z.core.$loose>;
|
|
321
|
-
sinceCursor: z.ZodNullable<z.ZodString>;
|
|
322
|
-
resync: z.ZodOptional<z.ZodObject<{
|
|
323
|
-
reason: z.ZodEnum<{
|
|
324
|
-
"cursor-expired": "cursor-expired";
|
|
325
|
-
"unknown-cursor": "unknown-cursor";
|
|
326
|
-
}>;
|
|
327
|
-
}, z.core.$strip>>;
|
|
328
|
-
}, z.core.$strip>;
|
|
329
|
-
};
|
|
330
|
-
/** Liveness probe — the bridge answers without touching upstream. */
|
|
331
|
-
readonly ping: {
|
|
332
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
333
|
-
readonly result: z.ZodObject<{
|
|
334
|
-
ok: z.ZodLiteral<true>;
|
|
335
|
-
}, z.core.$strip>;
|
|
336
|
-
};
|
|
337
|
-
readonly shutdown: {
|
|
338
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
339
|
-
readonly result: z.ZodObject<{
|
|
340
|
-
ok: z.ZodLiteral<true>;
|
|
341
|
-
}, z.core.$strip>;
|
|
342
|
-
};
|
|
343
|
-
/** Daemon snapshot (B4.6): process, upstream health, hub counters. */
|
|
344
|
-
readonly status: {
|
|
345
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
346
|
-
readonly result: z.ZodObject<{
|
|
347
|
-
pid: z.ZodNumber;
|
|
348
|
-
version: z.ZodString;
|
|
349
|
-
protocolVersion: z.ZodNumber;
|
|
350
|
-
startedAt: z.ZodString;
|
|
351
|
-
uptimeMs: z.ZodNumber;
|
|
352
|
-
profile: z.ZodString;
|
|
353
|
-
socketPath: z.ZodNullable<z.ZodString>;
|
|
354
|
-
agentId: z.ZodString;
|
|
355
|
-
agentName: z.ZodString;
|
|
356
|
-
upstream: z.ZodEnum<{
|
|
357
|
-
connected: "connected";
|
|
358
|
-
reconnecting: "reconnecting";
|
|
359
|
-
down: "down";
|
|
360
|
-
}>;
|
|
361
|
-
connectedClients: z.ZodNumber;
|
|
362
|
-
counters: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
363
|
-
}, z.core.$strip>;
|
|
364
|
-
};
|
|
365
|
-
readonly sendMessage: {
|
|
366
|
-
readonly params: z.ZodObject<{
|
|
367
|
-
conversationId: z.ZodString;
|
|
368
|
-
text: z.ZodOptional<z.ZodString>;
|
|
369
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
370
|
-
contentType: z.ZodOptional<z.ZodEnum<{
|
|
371
|
-
file: "file";
|
|
372
|
-
image: "image";
|
|
373
|
-
audio: "audio";
|
|
374
|
-
video: "video";
|
|
375
|
-
text: "text";
|
|
376
|
-
contact_card: "contact_card";
|
|
377
|
-
}>>;
|
|
378
|
-
replyTo: z.ZodOptional<z.ZodString>;
|
|
379
|
-
replyToPosition: z.ZodOptional<z.ZodNumber>;
|
|
380
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
381
|
-
kind: z.ZodEnum<{
|
|
382
|
-
file: "file";
|
|
383
|
-
image: "image";
|
|
384
|
-
audio: "audio";
|
|
385
|
-
video: "video";
|
|
386
|
-
}>;
|
|
387
|
-
url: z.ZodString;
|
|
388
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
389
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
390
|
-
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
391
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
392
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
393
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
394
|
-
}, z.core.$strip>>>;
|
|
395
|
-
contactCardUserId: z.ZodOptional<z.ZodString>;
|
|
396
|
-
mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
397
|
-
selfContextId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
399
|
-
}, z.core.$strip>;
|
|
400
|
-
readonly result: z.ZodObject<{
|
|
401
|
-
messageId: z.ZodString;
|
|
402
|
-
messageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
-
}, z.core.$strip>;
|
|
404
|
-
};
|
|
405
|
-
readonly sendContextualMessage: {
|
|
406
|
-
readonly params: z.ZodObject<{
|
|
407
|
-
sourceConversationId: z.ZodString;
|
|
408
|
-
targetConversationId: z.ZodOptional<z.ZodString>;
|
|
409
|
-
targetUserId: z.ZodOptional<z.ZodString>;
|
|
410
|
-
text: z.ZodOptional<z.ZodString>;
|
|
411
|
-
selfContext: z.ZodObject<{
|
|
412
|
-
type: z.ZodLiteral<"cross_session">;
|
|
413
|
-
context: z.ZodString;
|
|
414
|
-
}, z.core.$strip>;
|
|
415
|
-
sessionConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
416
|
-
sessionSelection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
417
|
-
mode: z.ZodEnum<{
|
|
418
|
-
new: "new";
|
|
419
|
-
continue_latest: "continue_latest";
|
|
420
|
-
continue_or_create: "continue_or_create";
|
|
421
|
-
}>;
|
|
422
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
423
|
-
mode: z.ZodLiteral<"specific">;
|
|
424
|
-
conversationId: z.ZodString;
|
|
425
|
-
}, z.core.$strip>]>>;
|
|
426
|
-
requestMessage: z.ZodOptional<z.ZodString>;
|
|
427
|
-
messageOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
428
|
-
}, z.core.$strip>;
|
|
429
|
-
readonly result: z.ZodUnion<readonly [z.ZodObject<{
|
|
430
|
-
status: z.ZodLiteral<"messaged">;
|
|
431
|
-
messageId: z.ZodString;
|
|
432
|
-
conversationId: z.ZodString;
|
|
433
|
-
selfContextId: z.ZodString;
|
|
434
|
-
created: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
-
reused: z.ZodOptional<z.ZodBoolean>;
|
|
436
|
-
sessionSelection: z.ZodOptional<z.ZodEnum<{
|
|
437
|
-
new: "new";
|
|
438
|
-
continue_latest: "continue_latest";
|
|
439
|
-
continue_or_create: "continue_or_create";
|
|
440
|
-
specific: "specific";
|
|
441
|
-
}>>;
|
|
442
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
-
status: z.ZodEnum<{
|
|
444
|
-
pending: "pending";
|
|
445
|
-
requested: "requested";
|
|
446
|
-
}>;
|
|
447
|
-
requestId: z.ZodNullable<z.ZodString>;
|
|
448
|
-
deferredIntentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
449
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
450
|
-
status: z.ZodEnum<{
|
|
451
|
-
blocked: "blocked";
|
|
452
|
-
setup_required: "setup_required";
|
|
453
|
-
unavailable: "unavailable";
|
|
454
|
-
no_session: "no_session";
|
|
455
|
-
}>;
|
|
456
|
-
reason: z.ZodString;
|
|
457
|
-
}, z.core.$strip>]>;
|
|
458
|
-
};
|
|
459
|
-
readonly reactToMessage: {
|
|
460
|
-
readonly params: z.ZodObject<{
|
|
461
|
-
conversationId: z.ZodString;
|
|
462
|
-
messageId: z.ZodString;
|
|
463
|
-
emoji: z.ZodString;
|
|
464
|
-
}, z.core.$strip>;
|
|
465
|
-
readonly result: z.ZodObject<{
|
|
466
|
-
success: z.ZodBoolean;
|
|
467
|
-
action: z.ZodEnum<{
|
|
468
|
-
added: "added";
|
|
469
|
-
removed: "removed";
|
|
470
|
-
}>;
|
|
471
|
-
reactions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
472
|
-
}, z.core.$strip>;
|
|
473
|
-
};
|
|
474
|
-
readonly forwardMessage: {
|
|
475
|
-
readonly params: z.ZodObject<{
|
|
476
|
-
sourceConversationId: z.ZodString;
|
|
477
|
-
targetConversationId: z.ZodString;
|
|
478
|
-
messageId: z.ZodString;
|
|
479
|
-
text: z.ZodOptional<z.ZodString>;
|
|
480
|
-
}, z.core.$strip>;
|
|
481
|
-
readonly result: z.ZodObject<{
|
|
482
|
-
messageId: z.ZodString;
|
|
483
|
-
targetConversationId: z.ZodString;
|
|
484
|
-
forwardedFrom: z.ZodObject<{
|
|
485
|
-
sourceConversationId: z.ZodString;
|
|
486
|
-
messageId: z.ZodString;
|
|
487
|
-
}, z.core.$strip>;
|
|
488
|
-
}, z.core.$strip>;
|
|
489
|
-
};
|
|
490
|
-
readonly deleteMessage: {
|
|
491
|
-
readonly params: z.ZodObject<{
|
|
492
|
-
conversationId: z.ZodString;
|
|
493
|
-
messageId: z.ZodString;
|
|
494
|
-
}, z.core.$strip>;
|
|
495
|
-
readonly result: z.ZodObject<{
|
|
496
|
-
ok: z.ZodLiteral<true>;
|
|
497
|
-
}, z.core.$strip>;
|
|
498
|
-
};
|
|
499
|
-
readonly markRead: {
|
|
500
|
-
readonly params: z.ZodObject<{
|
|
501
|
-
conversationId: z.ZodString;
|
|
502
|
-
}, z.core.$strip>;
|
|
503
|
-
readonly result: z.ZodObject<{
|
|
504
|
-
ok: z.ZodLiteral<true>;
|
|
505
|
-
}, z.core.$strip>;
|
|
506
|
-
};
|
|
507
|
-
readonly setDisposition: {
|
|
508
|
-
readonly params: z.ZodObject<{
|
|
509
|
-
conversationId: z.ZodString;
|
|
510
|
-
messageId: z.ZodString;
|
|
511
|
-
inboundDisposition: z.ZodEnum<{
|
|
512
|
-
queued: "queued";
|
|
513
|
-
accepted_now: "accepted_now";
|
|
514
|
-
interleaved: "interleaved";
|
|
515
|
-
trigger_suppressed: "trigger_suppressed";
|
|
516
|
-
rejected: "rejected";
|
|
517
|
-
cancelled: "cancelled";
|
|
518
|
-
}>;
|
|
519
|
-
}, z.core.$strip>;
|
|
520
|
-
readonly result: z.ZodObject<{
|
|
521
|
-
ok: z.ZodLiteral<true>;
|
|
522
|
-
}, z.core.$strip>;
|
|
523
|
-
};
|
|
524
|
-
readonly getMessages: {
|
|
525
|
-
readonly params: z.ZodObject<{
|
|
526
|
-
conversationId: z.ZodString;
|
|
527
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
528
|
-
before: z.ZodOptional<z.ZodString>;
|
|
529
|
-
includeBehavior: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
-
}, z.core.$strip>;
|
|
531
|
-
readonly result: z.ZodObject<{
|
|
532
|
-
messages: z.ZodArray<z.ZodObject<{
|
|
533
|
-
id: z.ZodString;
|
|
534
|
-
senderId: z.ZodString;
|
|
535
|
-
senderName: z.ZodOptional<z.ZodString>;
|
|
536
|
-
senderType: z.ZodEnum<{
|
|
537
|
-
human: "human";
|
|
538
|
-
ai_agent: "ai_agent";
|
|
539
|
-
}>;
|
|
540
|
-
isOwner: z.ZodBoolean;
|
|
541
|
-
contentType: z.ZodEnum<{
|
|
542
|
-
file: "file";
|
|
543
|
-
image: "image";
|
|
544
|
-
audio: "audio";
|
|
545
|
-
video: "video";
|
|
546
|
-
text: "text";
|
|
547
|
-
contact_card: "contact_card";
|
|
548
|
-
}>;
|
|
549
|
-
text: z.ZodNullable<z.ZodString>;
|
|
550
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
551
|
-
kind: z.ZodEnum<{
|
|
552
|
-
file: "file";
|
|
553
|
-
image: "image";
|
|
554
|
-
audio: "audio";
|
|
555
|
-
video: "video";
|
|
556
|
-
}>;
|
|
557
|
-
url: z.ZodString;
|
|
558
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
559
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
560
|
-
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
561
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
562
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
563
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
564
|
-
}, z.core.$strip>>;
|
|
565
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
566
|
-
replyTo: z.ZodNullable<z.ZodString>;
|
|
567
|
-
replyToPosition: z.ZodNullable<z.ZodNumber>;
|
|
568
|
-
forwarded: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
-
forwardedFrom: z.ZodOptional<z.ZodObject<{
|
|
570
|
-
sourceConversationId: z.ZodString;
|
|
571
|
-
messageId: z.ZodString;
|
|
572
|
-
}, z.core.$strip>>;
|
|
573
|
-
status: z.ZodEnum<{
|
|
574
|
-
sent: "sent";
|
|
575
|
-
read: "read";
|
|
576
|
-
}>;
|
|
577
|
-
createdAt: z.ZodString;
|
|
578
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
579
|
-
contactCard: z.ZodOptional<z.ZodObject<{
|
|
580
|
-
userId: z.ZodString;
|
|
581
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
582
|
-
displayName: z.ZodString;
|
|
583
|
-
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
584
|
-
userType: z.ZodEnum<{
|
|
585
|
-
human: "human";
|
|
586
|
-
ai_agent: "ai_agent";
|
|
587
|
-
}>;
|
|
588
|
-
clientType: z.ZodOptional<z.ZodEnum<{
|
|
589
|
-
"claude-code": "claude-code";
|
|
590
|
-
openclaw: "openclaw";
|
|
591
|
-
codex: "codex";
|
|
592
|
-
hermes: "hermes";
|
|
593
|
-
generic: "generic";
|
|
594
|
-
}>>;
|
|
595
|
-
about: z.ZodOptional<z.ZodString>;
|
|
596
|
-
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
597
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
598
|
-
ownerName: z.ZodOptional<z.ZodString>;
|
|
599
|
-
lifecycleState: z.ZodOptional<z.ZodString>;
|
|
600
|
-
}, z.core.$strip>>;
|
|
601
|
-
runtimeCard: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
602
|
-
reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
603
|
-
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
604
|
-
}, z.core.$strip>>;
|
|
605
|
-
behavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
606
|
-
activeSelfContextIdByMessageId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
607
|
-
selfContexts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
608
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
609
|
-
}, z.core.$loose>;
|
|
610
|
-
};
|
|
611
|
-
readonly getConversations: {
|
|
612
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
613
|
-
readonly result: z.ZodObject<{
|
|
614
|
-
conversations: z.ZodArray<z.ZodObject<{
|
|
615
|
-
id: z.ZodString;
|
|
616
|
-
type: z.ZodEnum<{
|
|
617
|
-
direct: "direct";
|
|
618
|
-
group: "group";
|
|
619
|
-
}>;
|
|
620
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
621
|
-
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
|
-
memberIds: z.ZodArray<z.ZodString>;
|
|
623
|
-
isAgentChat: z.ZodOptional<z.ZodBoolean>;
|
|
624
|
-
behavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
625
|
-
hasUnread: z.ZodOptional<z.ZodBoolean>;
|
|
626
|
-
lastMessage: z.ZodNullable<z.ZodObject<{
|
|
627
|
-
text: z.ZodNullable<z.ZodString>;
|
|
628
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
629
|
-
senderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
630
|
-
senderType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
631
|
-
human: "human";
|
|
632
|
-
ai_agent: "ai_agent";
|
|
633
|
-
}>>>;
|
|
634
|
-
contentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
635
|
-
file: "file";
|
|
636
|
-
image: "image";
|
|
637
|
-
audio: "audio";
|
|
638
|
-
video: "video";
|
|
639
|
-
text: "text";
|
|
640
|
-
contact_card: "contact_card";
|
|
641
|
-
}>>>;
|
|
642
|
-
timestamp: z.ZodNullable<z.ZodString>;
|
|
643
|
-
}, z.core.$loose>>;
|
|
644
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
-
}, z.core.$loose>>;
|
|
646
|
-
}, z.core.$strip>;
|
|
647
|
-
};
|
|
648
|
-
readonly createConversation: {
|
|
649
|
-
readonly params: z.ZodObject<{
|
|
650
|
-
type: z.ZodEnum<{
|
|
651
|
-
direct: "direct";
|
|
652
|
-
group: "group";
|
|
653
|
-
}>;
|
|
654
|
-
targetUserId: z.ZodOptional<z.ZodString>;
|
|
655
|
-
memberIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
656
|
-
name: z.ZodOptional<z.ZodString>;
|
|
657
|
-
sessionConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
658
|
-
sessionSelection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
659
|
-
mode: z.ZodEnum<{
|
|
660
|
-
new: "new";
|
|
661
|
-
continue_latest: "continue_latest";
|
|
662
|
-
continue_or_create: "continue_or_create";
|
|
663
|
-
}>;
|
|
664
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
665
|
-
mode: z.ZodLiteral<"specific">;
|
|
666
|
-
conversationId: z.ZodString;
|
|
667
|
-
}, z.core.$strip>]>>;
|
|
668
|
-
}, z.core.$strip>;
|
|
669
|
-
readonly result: z.ZodObject<{
|
|
670
|
-
conversationId: z.ZodString;
|
|
671
|
-
created: z.ZodOptional<z.ZodBoolean>;
|
|
672
|
-
reused: z.ZodOptional<z.ZodBoolean>;
|
|
673
|
-
sessionSelection: z.ZodOptional<z.ZodEnum<{
|
|
674
|
-
new: "new";
|
|
675
|
-
continue_latest: "continue_latest";
|
|
676
|
-
continue_or_create: "continue_or_create";
|
|
677
|
-
specific: "specific";
|
|
678
|
-
}>>;
|
|
679
|
-
}, z.core.$strip>;
|
|
680
|
-
};
|
|
681
|
-
readonly updateTopic: {
|
|
682
|
-
readonly params: z.ZodObject<{
|
|
683
|
-
conversationId: z.ZodString;
|
|
684
|
-
topic: z.ZodString;
|
|
685
|
-
}, z.core.$strip>;
|
|
686
|
-
readonly result: z.ZodObject<{
|
|
687
|
-
ok: z.ZodLiteral<true>;
|
|
688
|
-
}, z.core.$strip>;
|
|
689
|
-
};
|
|
690
|
-
readonly updateName: {
|
|
691
|
-
readonly params: z.ZodObject<{
|
|
692
|
-
conversationId: z.ZodString;
|
|
693
|
-
name: z.ZodString;
|
|
694
|
-
}, z.core.$strip>;
|
|
695
|
-
readonly result: z.ZodObject<{
|
|
696
|
-
ok: z.ZodLiteral<true>;
|
|
697
|
-
}, z.core.$strip>;
|
|
698
|
-
};
|
|
699
|
-
readonly updateAvatar: {
|
|
700
|
-
readonly params: z.ZodObject<{
|
|
701
|
-
conversationId: z.ZodString;
|
|
702
|
-
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
703
|
-
}, z.core.$strip>;
|
|
704
|
-
readonly result: z.ZodObject<{
|
|
705
|
-
ok: z.ZodLiteral<true>;
|
|
706
|
-
}, z.core.$strip>;
|
|
707
|
-
};
|
|
708
|
-
readonly addMember: {
|
|
709
|
-
readonly params: z.ZodObject<{
|
|
710
|
-
conversationId: z.ZodString;
|
|
711
|
-
userId: z.ZodString;
|
|
712
|
-
}, z.core.$strip>;
|
|
713
|
-
readonly result: z.ZodUnion<readonly [z.ZodObject<{
|
|
714
|
-
status: z.ZodLiteral<"added">;
|
|
715
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
716
|
-
status: z.ZodLiteral<"pending">;
|
|
717
|
-
requestId: z.ZodString;
|
|
718
|
-
}, z.core.$strip>]>;
|
|
719
|
-
};
|
|
720
|
-
readonly removeMember: {
|
|
721
|
-
readonly params: z.ZodObject<{
|
|
722
|
-
conversationId: z.ZodString;
|
|
723
|
-
userId: z.ZodString;
|
|
724
|
-
}, z.core.$strip>;
|
|
725
|
-
readonly result: z.ZodObject<{
|
|
726
|
-
ok: z.ZodLiteral<true>;
|
|
727
|
-
}, z.core.$strip>;
|
|
728
|
-
};
|
|
729
|
-
readonly leaveConversation: {
|
|
730
|
-
readonly params: z.ZodObject<{
|
|
731
|
-
conversationId: z.ZodString;
|
|
732
|
-
}, z.core.$strip>;
|
|
733
|
-
readonly result: z.ZodObject<{
|
|
734
|
-
ok: z.ZodLiteral<true>;
|
|
735
|
-
}, z.core.$strip>;
|
|
736
|
-
};
|
|
737
|
-
readonly muteConversation: {
|
|
738
|
-
readonly params: z.ZodObject<{
|
|
739
|
-
conversationId: z.ZodString;
|
|
740
|
-
until: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
}, z.core.$strip>;
|
|
742
|
-
readonly result: z.ZodObject<{
|
|
743
|
-
ok: z.ZodLiteral<true>;
|
|
744
|
-
}, z.core.$strip>;
|
|
745
|
-
};
|
|
746
|
-
readonly unmuteConversation: {
|
|
747
|
-
readonly params: z.ZodObject<{
|
|
748
|
-
conversationId: z.ZodString;
|
|
749
|
-
}, z.core.$strip>;
|
|
750
|
-
readonly result: z.ZodObject<{
|
|
751
|
-
ok: z.ZodLiteral<true>;
|
|
752
|
-
}, z.core.$strip>;
|
|
753
|
-
};
|
|
754
|
-
readonly hideConversation: {
|
|
755
|
-
readonly params: z.ZodObject<{
|
|
756
|
-
conversationId: z.ZodString;
|
|
757
|
-
}, z.core.$strip>;
|
|
758
|
-
readonly result: z.ZodObject<{
|
|
759
|
-
ok: z.ZodLiteral<true>;
|
|
760
|
-
}, z.core.$strip>;
|
|
761
|
-
};
|
|
762
|
-
readonly createContactRequest: {
|
|
763
|
-
readonly params: z.ZodObject<{
|
|
764
|
-
targetId: z.ZodString;
|
|
765
|
-
message: z.ZodOptional<z.ZodString>;
|
|
766
|
-
}, z.core.$strip>;
|
|
767
|
-
readonly result: z.ZodUnion<readonly [z.ZodObject<{
|
|
768
|
-
status: z.ZodLiteral<"open">;
|
|
769
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
770
|
-
status: z.ZodEnum<{
|
|
771
|
-
created: "created";
|
|
772
|
-
duplicate: "duplicate";
|
|
773
|
-
}>;
|
|
774
|
-
requestId: z.ZodString;
|
|
775
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
776
|
-
message: z.ZodString;
|
|
777
|
-
}, z.core.$loose>]>;
|
|
778
|
-
};
|
|
779
|
-
readonly listContacts: {
|
|
780
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
781
|
-
readonly result: z.ZodObject<{
|
|
782
|
-
contacts: z.ZodArray<z.ZodObject<{
|
|
783
|
-
id: z.ZodString;
|
|
784
|
-
source: z.ZodString;
|
|
785
|
-
addedAt: z.ZodNullable<z.ZodString>;
|
|
786
|
-
displayNameOverride: z.ZodNullable<z.ZodString>;
|
|
787
|
-
}, z.core.$strip>>;
|
|
788
|
-
}, z.core.$strip>;
|
|
789
|
-
};
|
|
790
|
-
readonly getContact: {
|
|
791
|
-
readonly params: z.ZodObject<{
|
|
792
|
-
contactId: z.ZodString;
|
|
793
|
-
}, z.core.$strip>;
|
|
794
|
-
readonly result: z.ZodNullable<z.ZodObject<{
|
|
795
|
-
id: z.ZodString;
|
|
796
|
-
source: z.ZodString;
|
|
797
|
-
addedAt: z.ZodNullable<z.ZodString>;
|
|
798
|
-
displayNameOverride: z.ZodNullable<z.ZodString>;
|
|
799
|
-
}, z.core.$strip>>;
|
|
800
|
-
};
|
|
801
|
-
readonly removeContact: {
|
|
802
|
-
readonly params: z.ZodObject<{
|
|
803
|
-
contactId: z.ZodString;
|
|
804
|
-
}, z.core.$strip>;
|
|
805
|
-
readonly result: z.ZodObject<{
|
|
806
|
-
ok: z.ZodLiteral<true>;
|
|
807
|
-
}, z.core.$strip>;
|
|
808
|
-
};
|
|
809
|
-
readonly listContactRequests: {
|
|
810
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
811
|
-
readonly result: z.ZodObject<{
|
|
812
|
-
requests: z.ZodArray<z.ZodObject<{
|
|
813
|
-
id: z.ZodString;
|
|
814
|
-
requesterId: z.ZodString;
|
|
815
|
-
requesterName: z.ZodString;
|
|
816
|
-
requesterAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
817
|
-
targetId: z.ZodString;
|
|
818
|
-
targetName: z.ZodString;
|
|
819
|
-
targetAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
820
|
-
targetUserType: z.ZodEnum<{
|
|
821
|
-
human: "human";
|
|
822
|
-
ai_agent: "ai_agent";
|
|
823
|
-
}>;
|
|
824
|
-
targetOwnerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
825
|
-
approverId: z.ZodString;
|
|
826
|
-
message: z.ZodNullable<z.ZodString>;
|
|
827
|
-
status: z.ZodEnum<{
|
|
828
|
-
rejected: "rejected";
|
|
829
|
-
pending: "pending";
|
|
830
|
-
approved: "approved";
|
|
831
|
-
expired: "expired";
|
|
832
|
-
}>;
|
|
833
|
-
kind: z.ZodEnum<{
|
|
834
|
-
dm: "dm";
|
|
835
|
-
group_invite: "group_invite";
|
|
836
|
-
}>;
|
|
837
|
-
groupContext: z.ZodOptional<z.ZodObject<{
|
|
838
|
-
conversationId: z.ZodString;
|
|
839
|
-
groupName: z.ZodNullable<z.ZodString>;
|
|
840
|
-
}, z.core.$strip>>;
|
|
841
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
842
|
-
resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
844
|
-
}, z.core.$strip>>;
|
|
845
|
-
}, z.core.$strip>;
|
|
846
|
-
};
|
|
847
|
-
readonly resolveAdmission: {
|
|
848
|
-
readonly params: z.ZodUnion<readonly [z.ZodObject<{
|
|
849
|
-
targetUserId: z.ZodString;
|
|
850
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
851
|
-
canonContactId: z.ZodString;
|
|
852
|
-
}, z.core.$strip>]>;
|
|
853
|
-
readonly result: z.ZodObject<{
|
|
854
|
-
resolvedTargetUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
855
|
-
target: z.ZodNullable<z.ZodObject<{
|
|
856
|
-
id: z.ZodString;
|
|
857
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
858
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
859
|
-
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
860
|
-
about: z.ZodOptional<z.ZodString>;
|
|
861
|
-
userType: z.ZodOptional<z.ZodEnum<{
|
|
862
|
-
human: "human";
|
|
863
|
-
ai_agent: "ai_agent";
|
|
864
|
-
}>>;
|
|
865
|
-
discoverable: z.ZodOptional<z.ZodBoolean>;
|
|
866
|
-
inboundPolicy: z.ZodOptional<z.ZodEnum<{
|
|
867
|
-
open: "open";
|
|
868
|
-
"approval-required": "approval-required";
|
|
869
|
-
"owner-only": "owner-only";
|
|
870
|
-
}>>;
|
|
871
|
-
groupJoinPolicy: z.ZodOptional<z.ZodEnum<{
|
|
872
|
-
open: "open";
|
|
873
|
-
"approval-required": "approval-required";
|
|
874
|
-
"owner-only": "owner-only";
|
|
875
|
-
}>>;
|
|
876
|
-
}, z.core.$loose>>;
|
|
877
|
-
admission: z.ZodObject<{
|
|
878
|
-
state: z.ZodEnum<{
|
|
879
|
-
"owner-only": "owner-only";
|
|
880
|
-
self: "self";
|
|
881
|
-
"not-found": "not-found";
|
|
882
|
-
allowed: "allowed";
|
|
883
|
-
"request-required": "request-required";
|
|
884
|
-
"pending-outbound": "pending-outbound";
|
|
885
|
-
blocked: "blocked";
|
|
886
|
-
inactive: "inactive";
|
|
887
|
-
}>;
|
|
888
|
-
canMessage: z.ZodBoolean;
|
|
889
|
-
canRequestContact: z.ZodBoolean;
|
|
890
|
-
isContact: z.ZodBoolean;
|
|
891
|
-
pendingRequestId: z.ZodOptional<z.ZodString>;
|
|
892
|
-
blockedByViewer: z.ZodOptional<z.ZodBoolean>;
|
|
893
|
-
blockedByTarget: z.ZodOptional<z.ZodBoolean>;
|
|
894
|
-
}, z.core.$loose>;
|
|
895
|
-
}, z.core.$loose>;
|
|
896
|
-
};
|
|
897
|
-
readonly reachOut: {
|
|
898
|
-
readonly params: z.ZodObject<{
|
|
899
|
-
targetId: z.ZodString;
|
|
900
|
-
text: z.ZodOptional<z.ZodString>;
|
|
901
|
-
selfContext: z.ZodOptional<z.ZodString>;
|
|
902
|
-
requestMessage: z.ZodOptional<z.ZodString>;
|
|
903
|
-
sessionConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
904
|
-
sessionSelection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
905
|
-
mode: z.ZodEnum<{
|
|
906
|
-
new: "new";
|
|
907
|
-
continue_latest: "continue_latest";
|
|
908
|
-
continue_or_create: "continue_or_create";
|
|
909
|
-
}>;
|
|
910
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
-
mode: z.ZodLiteral<"specific">;
|
|
912
|
-
conversationId: z.ZodString;
|
|
913
|
-
}, z.core.$strip>]>>;
|
|
914
|
-
sendMessageOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
915
|
-
}, z.core.$strip>;
|
|
916
|
-
readonly result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
917
|
-
};
|
|
918
|
-
readonly blockUser: {
|
|
919
|
-
readonly params: z.ZodObject<{
|
|
920
|
-
userId: z.ZodString;
|
|
921
|
-
}, z.core.$strip>;
|
|
922
|
-
readonly result: z.ZodObject<{
|
|
923
|
-
ok: z.ZodLiteral<true>;
|
|
924
|
-
}, z.core.$strip>;
|
|
925
|
-
};
|
|
926
|
-
readonly unblockUser: {
|
|
927
|
-
readonly params: z.ZodObject<{
|
|
928
|
-
userId: z.ZodString;
|
|
929
|
-
}, z.core.$strip>;
|
|
930
|
-
readonly result: z.ZodObject<{
|
|
931
|
-
ok: z.ZodLiteral<true>;
|
|
932
|
-
}, z.core.$strip>;
|
|
933
|
-
};
|
|
934
|
-
readonly setTyping: {
|
|
935
|
-
readonly params: z.ZodObject<{
|
|
936
|
-
conversationId: z.ZodString;
|
|
937
|
-
state: z.ZodEnum<{
|
|
938
|
-
thinking: "thinking";
|
|
939
|
-
typing: "typing";
|
|
940
|
-
clear: "clear";
|
|
941
|
-
}>;
|
|
942
|
-
}, z.core.$strip>;
|
|
943
|
-
readonly result: z.ZodObject<{
|
|
944
|
-
ok: z.ZodLiteral<true>;
|
|
945
|
-
}, z.core.$strip>;
|
|
946
|
-
};
|
|
947
|
-
readonly publishStreaming: {
|
|
948
|
-
readonly params: z.ZodObject<{
|
|
949
|
-
conversationId: z.ZodString;
|
|
950
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
951
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
952
|
-
text: z.ZodOptional<z.ZodString>;
|
|
953
|
-
delta: z.ZodOptional<z.ZodString>;
|
|
954
|
-
blocks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
955
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
956
|
-
thinking: "thinking";
|
|
957
|
-
streaming: "streaming";
|
|
958
|
-
tool: "tool";
|
|
959
|
-
waiting_input: "waiting_input";
|
|
960
|
-
}>>;
|
|
961
|
-
done: z.ZodOptional<z.ZodBoolean>;
|
|
962
|
-
}, z.core.$strip>;
|
|
963
|
-
readonly result: z.ZodObject<{
|
|
964
|
-
ok: z.ZodLiteral<true>;
|
|
965
|
-
}, z.core.$strip>;
|
|
966
|
-
};
|
|
967
|
-
readonly clearStreaming: {
|
|
968
|
-
readonly params: z.ZodObject<{
|
|
969
|
-
conversationId: z.ZodString;
|
|
970
|
-
}, z.core.$strip>;
|
|
971
|
-
readonly result: z.ZodObject<{
|
|
972
|
-
ok: z.ZodLiteral<true>;
|
|
973
|
-
}, z.core.$strip>;
|
|
974
|
-
};
|
|
975
|
-
readonly publishStreamingEvent: {
|
|
976
|
-
readonly params: z.ZodObject<{
|
|
977
|
-
conversationId: z.ZodString;
|
|
978
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
980
|
-
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
981
|
-
kind: z.ZodLiteral<"text">;
|
|
982
|
-
id: z.ZodString;
|
|
983
|
-
mode: z.ZodEnum<{
|
|
984
|
-
replace: "replace";
|
|
985
|
-
append: "append";
|
|
986
|
-
}>;
|
|
987
|
-
text: z.ZodString;
|
|
988
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
989
|
-
kind: z.ZodLiteral<"tool">;
|
|
990
|
-
id: z.ZodString;
|
|
991
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
992
|
-
completed: "completed";
|
|
993
|
-
running: "running";
|
|
994
|
-
failed: "failed";
|
|
995
|
-
}>>;
|
|
996
|
-
title: z.ZodOptional<z.ZodString>;
|
|
997
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
998
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
999
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1000
|
-
kind: z.ZodLiteral<"thinking">;
|
|
1001
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1002
|
-
kind: z.ZodLiteral<"final">;
|
|
1003
|
-
text: z.ZodString;
|
|
1004
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1005
|
-
kind: z.ZodLiteral<"clear">;
|
|
1006
|
-
}, z.core.$strip>], "kind">;
|
|
1007
|
-
}, z.core.$strip>;
|
|
1008
|
-
readonly result: z.ZodObject<{
|
|
1009
|
-
ok: z.ZodLiteral<true>;
|
|
1010
|
-
}, z.core.$strip>;
|
|
1011
|
-
};
|
|
1012
|
-
readonly publishRuntimeDescriptor: {
|
|
1013
|
-
readonly params: z.ZodObject<{
|
|
1014
|
-
descriptor: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1015
|
-
hostMode: z.ZodOptional<z.ZodBoolean>;
|
|
1016
|
-
}, z.core.$strip>;
|
|
1017
|
-
readonly result: z.ZodObject<{
|
|
1018
|
-
ok: z.ZodLiteral<true>;
|
|
1019
|
-
}, z.core.$strip>;
|
|
1020
|
-
};
|
|
1021
|
-
readonly publishRuntimeStatus: {
|
|
1022
|
-
readonly params: z.ZodObject<{
|
|
1023
|
-
conversationId: z.ZodString;
|
|
1024
|
-
statusItems: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1025
|
-
presentation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1026
|
-
}, z.core.$strip>;
|
|
1027
|
-
readonly result: z.ZodObject<{
|
|
1028
|
-
ok: z.ZodLiteral<true>;
|
|
1029
|
-
}, z.core.$strip>;
|
|
1030
|
-
};
|
|
1031
|
-
readonly publishTurnState: {
|
|
1032
|
-
readonly params: z.ZodObject<{
|
|
1033
|
-
conversationId: z.ZodString;
|
|
1034
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1035
|
-
state: z.ZodEnum<{
|
|
1036
|
-
idle: "idle";
|
|
1037
|
-
thinking: "thinking";
|
|
1038
|
-
streaming: "streaming";
|
|
1039
|
-
tool: "tool";
|
|
1040
|
-
waiting_input: "waiting_input";
|
|
1041
|
-
completed: "completed";
|
|
1042
|
-
interrupted: "interrupted";
|
|
1043
|
-
}>;
|
|
1044
|
-
queueDepth: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
-
capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1046
|
-
currentSpeakerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1047
|
-
lastAcceptedIntent: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1048
|
-
queue: "queue";
|
|
1049
|
-
interrupt: "interrupt";
|
|
1050
|
-
interleave: "interleave";
|
|
1051
|
-
stop: "stop";
|
|
1052
|
-
}>>>;
|
|
1053
|
-
activeMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1054
|
-
openedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1055
|
-
'.sv': z.ZodLiteral<"timestamp">;
|
|
1056
|
-
}, z.core.$strip>]>>;
|
|
1057
|
-
turnUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1058
|
-
'.sv': z.ZodLiteral<"timestamp">;
|
|
1059
|
-
}, z.core.$strip>]>>>;
|
|
1060
|
-
completedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1061
|
-
'.sv': z.ZodLiteral<"timestamp">;
|
|
1062
|
-
}, z.core.$strip>]>]>>>;
|
|
1063
|
-
}, z.core.$strip>;
|
|
1064
|
-
readonly result: z.ZodObject<{
|
|
1065
|
-
ok: z.ZodLiteral<true>;
|
|
1066
|
-
}, z.core.$strip>;
|
|
1067
|
-
};
|
|
1068
|
-
readonly clearTurnState: {
|
|
1069
|
-
readonly params: z.ZodObject<{
|
|
1070
|
-
conversationId: z.ZodString;
|
|
1071
|
-
}, z.core.$strip>;
|
|
1072
|
-
readonly result: z.ZodObject<{
|
|
1073
|
-
ok: z.ZodLiteral<true>;
|
|
1074
|
-
}, z.core.$strip>;
|
|
1075
|
-
};
|
|
1076
|
-
readonly publishActivity: {
|
|
1077
|
-
readonly params: z.ZodObject<{
|
|
1078
|
-
conversationId: z.ZodString;
|
|
1079
|
-
activityItems: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1080
|
-
}, z.core.$strip>;
|
|
1081
|
-
readonly result: z.ZodObject<{
|
|
1082
|
-
ok: z.ZodLiteral<true>;
|
|
1083
|
-
}, z.core.$strip>;
|
|
1084
|
-
};
|
|
1085
|
-
readonly clearActivity: {
|
|
1086
|
-
readonly params: z.ZodObject<{
|
|
1087
|
-
conversationId: z.ZodString;
|
|
1088
|
-
all: z.ZodOptional<z.ZodBoolean>;
|
|
1089
|
-
itemIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1090
|
-
}, z.core.$strip>;
|
|
1091
|
-
readonly result: z.ZodObject<{
|
|
1092
|
-
ok: z.ZodLiteral<true>;
|
|
1093
|
-
}, z.core.$strip>;
|
|
1094
|
-
};
|
|
1095
|
-
/** B6.1 additive: clear the per-conversation runtime-info node. */
|
|
1096
|
-
readonly clearRuntimeStatus: {
|
|
1097
|
-
readonly params: z.ZodObject<{
|
|
1098
|
-
conversationId: z.ZodString;
|
|
1099
|
-
}, z.core.$strip>;
|
|
1100
|
-
readonly result: z.ZodObject<{
|
|
1101
|
-
ok: z.ZodLiteral<true>;
|
|
1102
|
-
}, z.core.$strip>;
|
|
1103
|
-
};
|
|
1104
|
-
/**
|
|
1105
|
-
* B6.1 additive: clear /agent-runtime for this identity (preserves
|
|
1106
|
-
* descriptor-bearing payloads with updatedAt: 0, like hosts do today).
|
|
1107
|
-
*/
|
|
1108
|
-
readonly clearRuntimeDescriptor: {
|
|
1109
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
1110
|
-
readonly result: z.ZodObject<{
|
|
1111
|
-
ok: z.ZodLiteral<true>;
|
|
1112
|
-
}, z.core.$strip>;
|
|
1113
|
-
};
|
|
1114
|
-
readonly requestApproval: {
|
|
1115
|
-
readonly params: z.ZodObject<{
|
|
1116
|
-
conversationId: z.ZodString;
|
|
1117
|
-
detail: z.ZodString;
|
|
1118
|
-
risk: z.ZodEnum<{
|
|
1119
|
-
low: "low";
|
|
1120
|
-
normal: "normal";
|
|
1121
|
-
high: "high";
|
|
1122
|
-
destructive: "destructive";
|
|
1123
|
-
}>;
|
|
1124
|
-
category: z.ZodEnum<{
|
|
1125
|
-
tool: "tool";
|
|
1126
|
-
file: "file";
|
|
1127
|
-
command: "command";
|
|
1128
|
-
network: "network";
|
|
1129
|
-
browser: "browser";
|
|
1130
|
-
mcp: "mcp";
|
|
1131
|
-
plugin: "plugin";
|
|
1132
|
-
canon: "canon";
|
|
1133
|
-
}>;
|
|
1134
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1135
|
-
approvalId: z.ZodOptional<z.ZodString>;
|
|
1136
|
-
toolName: z.ZodOptional<z.ZodString>;
|
|
1137
|
-
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
1138
|
-
normal: "normal";
|
|
1139
|
-
destructive: "destructive";
|
|
1140
|
-
}>>;
|
|
1141
|
-
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1142
|
-
label: z.ZodString;
|
|
1143
|
-
value: z.ZodString;
|
|
1144
|
-
monospace: z.ZodOptional<z.ZodBoolean>;
|
|
1145
|
-
}, z.core.$strip>>>;
|
|
1146
|
-
diff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1147
|
-
native: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1148
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
1149
|
-
runtimeId: z.ZodOptional<z.ZodString>;
|
|
1150
|
-
allowSessionRule: z.ZodOptional<z.ZodBoolean>;
|
|
1151
|
-
responseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1152
|
-
}, z.core.$strip>;
|
|
1153
|
-
readonly result: z.ZodObject<{
|
|
1154
|
-
requestId: z.ZodString;
|
|
1155
|
-
expiresAt: z.ZodString;
|
|
1156
|
-
}, z.core.$strip>;
|
|
1157
|
-
};
|
|
1158
|
-
readonly requestInput: {
|
|
1159
|
-
readonly params: z.ZodObject<{
|
|
1160
|
-
conversationId: z.ZodString;
|
|
1161
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
1162
|
-
id: z.ZodString;
|
|
1163
|
-
question: z.ZodString;
|
|
1164
|
-
header: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1166
|
-
label: z.ZodString;
|
|
1167
|
-
value: z.ZodOptional<z.ZodString>;
|
|
1168
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1169
|
-
preview: z.ZodOptional<z.ZodString>;
|
|
1170
|
-
}, z.core.$strip>>>;
|
|
1171
|
-
allowOther: z.ZodOptional<z.ZodBoolean>;
|
|
1172
|
-
isSecret: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
-
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
1174
|
-
}, z.core.$strip>>;
|
|
1175
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1176
|
-
inputId: z.ZodOptional<z.ZodString>;
|
|
1177
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1178
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
1179
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
1180
|
-
clarify: "clarify";
|
|
1181
|
-
sudo: "sudo";
|
|
1182
|
-
secret: "secret";
|
|
1183
|
-
}>>;
|
|
1184
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
1185
|
-
native: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1186
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
responseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1188
|
-
}, z.core.$strip>;
|
|
1189
|
-
readonly result: z.ZodObject<{
|
|
1190
|
-
requestId: z.ZodString;
|
|
1191
|
-
expiresAt: z.ZodString;
|
|
1192
|
-
}, z.core.$strip>;
|
|
1193
|
-
};
|
|
1194
|
-
readonly requestCard: {
|
|
1195
|
-
readonly params: z.ZodObject<{
|
|
1196
|
-
conversationId: z.ZodString;
|
|
1197
|
-
card: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1198
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1199
|
-
cardId: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
native: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1201
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
1202
|
-
responseUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
|
-
}, z.core.$strip>;
|
|
1204
|
-
readonly result: z.ZodObject<{
|
|
1205
|
-
requestId: z.ZodString;
|
|
1206
|
-
expiresAt: z.ZodString;
|
|
1207
|
-
}, z.core.$strip>;
|
|
1208
|
-
};
|
|
1209
|
-
readonly getHitlState: {
|
|
1210
|
-
readonly params: z.ZodObject<{
|
|
1211
|
-
requestId: z.ZodString;
|
|
1212
|
-
}, z.core.$strip>;
|
|
1213
|
-
readonly result: z.ZodObject<{
|
|
1214
|
-
status: z.ZodUnion<readonly [z.ZodLiteral<"pending">, z.ZodEnum<{
|
|
1215
|
-
cancelled: "cancelled";
|
|
1216
|
-
submitted: "submitted";
|
|
1217
|
-
timeout: "timeout";
|
|
1218
|
-
}>]>;
|
|
1219
|
-
answer: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1220
|
-
expiresAt: z.ZodString;
|
|
1221
|
-
}, z.core.$strip>;
|
|
1222
|
-
};
|
|
1223
|
-
readonly cancelHitl: {
|
|
1224
|
-
readonly params: z.ZodObject<{
|
|
1225
|
-
requestId: z.ZodString;
|
|
1226
|
-
}, z.core.$strip>;
|
|
1227
|
-
readonly result: z.ZodObject<{
|
|
1228
|
-
ok: z.ZodLiteral<true>;
|
|
1229
|
-
}, z.core.$strip>;
|
|
1230
|
-
};
|
|
1231
|
-
readonly uploadMedia: {
|
|
1232
|
-
readonly params: z.ZodObject<{
|
|
1233
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1234
|
-
bytes: z.ZodOptional<z.ZodString>;
|
|
1235
|
-
mime: z.ZodString;
|
|
1236
|
-
fileName: z.ZodString;
|
|
1237
|
-
conversationId: z.ZodString;
|
|
1238
|
-
}, z.core.$strip>;
|
|
1239
|
-
readonly result: z.ZodObject<{
|
|
1240
|
-
url: z.ZodString;
|
|
1241
|
-
attachment: z.ZodObject<{
|
|
1242
|
-
kind: z.ZodEnum<{
|
|
1243
|
-
file: "file";
|
|
1244
|
-
image: "image";
|
|
1245
|
-
audio: "audio";
|
|
1246
|
-
video: "video";
|
|
1247
|
-
}>;
|
|
1248
|
-
url: z.ZodString;
|
|
1249
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
1250
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
1252
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
1253
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
1254
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1255
|
-
}, z.core.$strip>;
|
|
1256
|
-
}, z.core.$strip>;
|
|
1257
|
-
};
|
|
1258
|
-
readonly getAttachment: {
|
|
1259
|
-
readonly params: z.ZodObject<{
|
|
1260
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1261
|
-
attachmentId: z.ZodOptional<z.ZodString>;
|
|
1262
|
-
as: z.ZodEnum<{
|
|
1263
|
-
path: "path";
|
|
1264
|
-
bytes: "bytes";
|
|
1265
|
-
}>;
|
|
1266
|
-
}, z.core.$strip>;
|
|
1267
|
-
readonly result: z.ZodObject<{
|
|
1268
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1269
|
-
bytes: z.ZodOptional<z.ZodString>;
|
|
1270
|
-
mime: z.ZodString;
|
|
1271
|
-
}, z.core.$strip>;
|
|
1272
|
-
};
|
|
1273
|
-
readonly createVoiceSession: {
|
|
1274
|
-
readonly params: z.ZodObject<{
|
|
1275
|
-
conversationId: z.ZodString;
|
|
1276
|
-
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
1277
|
-
}, z.core.$strip>;
|
|
1278
|
-
readonly result: z.ZodObject<{
|
|
1279
|
-
sessionId: z.ZodString;
|
|
1280
|
-
}, z.core.$loose>;
|
|
1281
|
-
};
|
|
1282
|
-
readonly joinVoiceSession: {
|
|
1283
|
-
readonly params: z.ZodObject<{
|
|
1284
|
-
sessionId: z.ZodString;
|
|
1285
|
-
conversationId: z.ZodString;
|
|
1286
|
-
}, z.core.$strip>;
|
|
1287
|
-
readonly result: z.ZodObject<{
|
|
1288
|
-
url: z.ZodString;
|
|
1289
|
-
token: z.ZodString;
|
|
1290
|
-
}, z.core.$loose>;
|
|
1291
|
-
};
|
|
1292
|
-
readonly endVoiceSession: {
|
|
1293
|
-
readonly params: z.ZodObject<{
|
|
1294
|
-
sessionId: z.ZodString;
|
|
1295
|
-
conversationId: z.ZodString;
|
|
1296
|
-
}, z.core.$strip>;
|
|
1297
|
-
readonly result: z.ZodObject<{
|
|
1298
|
-
ok: z.ZodLiteral<true>;
|
|
1299
|
-
}, z.core.$strip>;
|
|
1300
|
-
};
|
|
1301
|
-
readonly getVoiceSession: {
|
|
1302
|
-
readonly params: z.ZodObject<{
|
|
1303
|
-
sessionId: z.ZodString;
|
|
1304
|
-
conversationId: z.ZodString;
|
|
1305
|
-
}, z.core.$strip>;
|
|
1306
|
-
readonly result: z.ZodObject<{
|
|
1307
|
-
conversationId: z.ZodString;
|
|
1308
|
-
session: z.ZodObject<{
|
|
1309
|
-
id: z.ZodString;
|
|
1310
|
-
conversationId: z.ZodString;
|
|
1311
|
-
roomName: z.ZodString;
|
|
1312
|
-
mode: z.ZodEnum<{
|
|
1313
|
-
human: "human";
|
|
1314
|
-
runtime_voice: "runtime_voice";
|
|
1315
|
-
}>;
|
|
1316
|
-
status: z.ZodEnum<{
|
|
1317
|
-
error: "error";
|
|
1318
|
-
active: "active";
|
|
1319
|
-
ended: "ended";
|
|
1320
|
-
}>;
|
|
1321
|
-
createdBy: z.ZodString;
|
|
1322
|
-
participantIds: z.ZodArray<z.ZodString>;
|
|
1323
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1324
|
-
userId: z.ZodString;
|
|
1325
|
-
userType: z.ZodEnum<{
|
|
1326
|
-
human: "human";
|
|
1327
|
-
ai_agent: "ai_agent";
|
|
1328
|
-
system: "system";
|
|
1329
|
-
}>;
|
|
1330
|
-
displayName: z.ZodNullable<z.ZodString>;
|
|
1331
|
-
joinedAt: z.ZodNullable<z.ZodString>;
|
|
1332
|
-
leftAt: z.ZodNullable<z.ZodString>;
|
|
1333
|
-
}, z.core.$loose>>>;
|
|
1334
|
-
targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1335
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1336
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1337
|
-
endedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1338
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1339
|
-
}, z.core.$loose>;
|
|
1340
|
-
}, z.core.$strip>;
|
|
1341
|
-
};
|
|
1342
|
-
readonly getAgent: {
|
|
1343
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
1344
|
-
readonly result: z.ZodObject<{
|
|
1345
|
-
agentId: z.ZodString;
|
|
1346
|
-
agentName: z.ZodString;
|
|
1347
|
-
context: z.ZodObject<{
|
|
1348
|
-
agentId: z.ZodString;
|
|
1349
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
1350
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
1351
|
-
ownerId: z.ZodString;
|
|
1352
|
-
ownerName: z.ZodString;
|
|
1353
|
-
defaultBehavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1354
|
-
inboundPolicy: z.ZodEnum<{
|
|
1355
|
-
open: "open";
|
|
1356
|
-
"approval-required": "approval-required";
|
|
1357
|
-
"owner-only": "owner-only";
|
|
1358
|
-
}>;
|
|
1359
|
-
groupJoinPolicy: z.ZodEnum<{
|
|
1360
|
-
open: "open";
|
|
1361
|
-
"approval-required": "approval-required";
|
|
1362
|
-
"owner-only": "owner-only";
|
|
1363
|
-
}>;
|
|
1364
|
-
discoverable: z.ZodBoolean;
|
|
1365
|
-
}, z.core.$loose>;
|
|
1366
|
-
}, z.core.$strip>;
|
|
1367
|
-
};
|
|
1368
|
-
readonly register: {
|
|
1369
|
-
readonly params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1370
|
-
readonly result: z.ZodObject<{
|
|
1371
|
-
requestId: z.ZodString;
|
|
1372
|
-
pollToken: z.ZodOptional<z.ZodString>;
|
|
1373
|
-
}, z.core.$strip>;
|
|
1374
|
-
};
|
|
1375
|
-
readonly getRegistrationStatus: {
|
|
1376
|
-
readonly params: z.ZodObject<{
|
|
1377
|
-
requestId: z.ZodString;
|
|
1378
|
-
pollToken: z.ZodOptional<z.ZodString>;
|
|
1379
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1380
|
-
}, z.core.$strip>;
|
|
1381
|
-
readonly result: z.ZodObject<{
|
|
1382
|
-
status: z.ZodString;
|
|
1383
|
-
}, z.core.$loose>;
|
|
1384
|
-
};
|
|
1385
|
-
/**
|
|
1386
|
-
* Acknowledge one-time API-key delivery after an approved registration
|
|
1387
|
-
* (POST /agents/status/:id/ack). Best-effort on the wire; failures surface
|
|
1388
|
-
* as upstream-band errors. Additive union of Phase 5 + P6 openclaw: the
|
|
1389
|
-
* Hermes port consumed it through the GENERIC Python escape hatch first
|
|
1390
|
-
* (a bridge-side method addition with zero framework-py release), and
|
|
1391
|
-
* `baseUrl` (B6.1) supports the wizard's per-call pre-identity bootstrap.
|
|
1392
|
-
*/
|
|
1393
|
-
readonly ackRegistrationStatus: {
|
|
1394
|
-
readonly params: z.ZodObject<{
|
|
1395
|
-
requestId: z.ZodString;
|
|
1396
|
-
pollToken: z.ZodOptional<z.ZodString>;
|
|
1397
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1398
|
-
}, z.core.$strip>;
|
|
1399
|
-
readonly result: z.ZodObject<{
|
|
1400
|
-
ok: z.ZodLiteral<true>;
|
|
1401
|
-
}, z.core.$strip>;
|
|
1402
|
-
};
|
|
1403
|
-
readonly publishHostAgentRuntime: {
|
|
1404
|
-
readonly params: z.ZodObject<{
|
|
1405
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
1406
|
-
runtime: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1407
|
-
}, z.core.$strip>;
|
|
1408
|
-
readonly result: z.ZodObject<{
|
|
1409
|
-
ok: z.ZodLiteral<true>;
|
|
1410
|
-
}, z.core.$strip>;
|
|
1411
|
-
};
|
|
1412
|
-
readonly publishHostSessionSnapshots: {
|
|
1413
|
-
readonly params: z.ZodObject<{
|
|
1414
|
-
conversationIds: z.ZodArray<z.ZodString>;
|
|
1415
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
1416
|
-
runtime: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1417
|
-
workspaceOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1418
|
-
id: z.ZodString;
|
|
1419
|
-
cwd: z.ZodString;
|
|
1420
|
-
}, z.core.$strip>>>;
|
|
1421
|
-
defaultCwd: z.ZodOptional<z.ZodString>;
|
|
1422
|
-
extraSessionConfigFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1423
|
-
liveSessionConfigByConversation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1424
|
-
}, z.core.$strip>;
|
|
1425
|
-
readonly result: z.ZodObject<{
|
|
1426
|
-
ok: z.ZodLiteral<true>;
|
|
1427
|
-
}, z.core.$strip>;
|
|
1428
|
-
};
|
|
1429
|
-
readonly getSessionConfig: {
|
|
1430
|
-
readonly params: z.ZodObject<{
|
|
1431
|
-
conversationId: z.ZodString;
|
|
1432
|
-
}, z.core.$strip>;
|
|
1433
|
-
/** Raw `/session-config/{convoId}/{agentId}` node; adapters parse locally. */
|
|
1434
|
-
readonly result: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1435
|
-
};
|
|
1436
|
-
readonly publishSessionState: {
|
|
1437
|
-
readonly params: z.ZodObject<{
|
|
1438
|
-
conversationId: z.ZodString;
|
|
1439
|
-
state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1440
|
-
}, z.core.$strip>;
|
|
1441
|
-
readonly result: z.ZodObject<{
|
|
1442
|
-
ok: z.ZodLiteral<true>;
|
|
1443
|
-
}, z.core.$strip>;
|
|
1444
|
-
};
|
|
1445
|
-
readonly clearSessionState: {
|
|
1446
|
-
readonly params: z.ZodObject<{
|
|
1447
|
-
conversationId: z.ZodString;
|
|
1448
|
-
}, z.core.$strip>;
|
|
1449
|
-
readonly result: z.ZodObject<{
|
|
1450
|
-
ok: z.ZodLiteral<true>;
|
|
1451
|
-
}, z.core.$strip>;
|
|
1452
|
-
};
|
|
1453
|
-
/**
|
|
1454
|
-
* Terminal /agent-runtime clear through the HOST publisher. Same RTDB
|
|
1455
|
-
* effect as §B6.1 clearRuntimeDescriptor (preserve descriptor-bearing
|
|
1456
|
-
* payloads with updatedAt: 0) — kept as a distinct §5b name because host
|
|
1457
|
-
* consumers correlate it with the publishHostAgentRuntime plane.
|
|
1458
|
-
*/
|
|
1459
|
-
readonly clearAgentRuntime: {
|
|
1460
|
-
readonly params: z.ZodObject<{}, z.core.$strip>;
|
|
1461
|
-
readonly result: z.ZodObject<{
|
|
1462
|
-
ok: z.ZodLiteral<true>;
|
|
1463
|
-
}, z.core.$strip>;
|
|
1464
|
-
};
|
|
1465
|
-
};
|
|
1466
|
-
export type BridgeLocalMethodName = keyof typeof BRIDGE_LOCAL_METHODS;
|
|
1467
|
-
export declare const BRIDGE_LOCAL_METHOD_NAMES: BridgeLocalMethodName[];
|
|
1468
|
-
/** Per-method wire types derived from the registry (typed Framework wrappers). */
|
|
1469
|
-
export type BridgeLocalMethods = typeof BRIDGE_LOCAL_METHODS;
|
|
1470
|
-
export type BridgeMethodParams<M extends BridgeLocalMethodName> = z.input<BridgeLocalMethods[M]['params']>;
|
|
1471
|
-
export type BridgeMethodResult<M extends BridgeLocalMethodName> = z.output<BridgeLocalMethods[M]['result']>;
|
|
1472
|
-
export declare const BRIDGE_LOCAL_NOTIFICATIONS: {
|
|
1473
|
-
readonly ready: z.ZodObject<{
|
|
1474
|
-
agentId: z.ZodString;
|
|
1475
|
-
agentContext: z.ZodObject<{
|
|
1476
|
-
agentId: z.ZodString;
|
|
1477
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
1478
|
-
clientType: z.ZodOptional<z.ZodString>;
|
|
1479
|
-
ownerId: z.ZodString;
|
|
1480
|
-
ownerName: z.ZodString;
|
|
1481
|
-
defaultBehavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1482
|
-
inboundPolicy: z.ZodEnum<{
|
|
1483
|
-
open: "open";
|
|
1484
|
-
"approval-required": "approval-required";
|
|
1485
|
-
"owner-only": "owner-only";
|
|
1486
|
-
}>;
|
|
1487
|
-
groupJoinPolicy: z.ZodEnum<{
|
|
1488
|
-
open: "open";
|
|
1489
|
-
"approval-required": "approval-required";
|
|
1490
|
-
"owner-only": "owner-only";
|
|
1491
|
-
}>;
|
|
1492
|
-
discoverable: z.ZodBoolean;
|
|
1493
|
-
}, z.core.$loose>;
|
|
1494
|
-
upstreamState: z.ZodEnum<{
|
|
1495
|
-
connected: "connected";
|
|
1496
|
-
reconnecting: "reconnecting";
|
|
1497
|
-
down: "down";
|
|
1498
|
-
}>;
|
|
1499
|
-
}, z.core.$strip>;
|
|
1500
|
-
readonly connectionState: z.ZodObject<{
|
|
1501
|
-
upstream: z.ZodEnum<{
|
|
1502
|
-
connected: "connected";
|
|
1503
|
-
reconnecting: "reconnecting";
|
|
1504
|
-
down: "down";
|
|
1505
|
-
}>;
|
|
1506
|
-
}, z.core.$strip>;
|
|
1507
|
-
readonly onMessage: z.ZodObject<{
|
|
1508
|
-
conversationId: z.ZodString;
|
|
1509
|
-
behavior: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1510
|
-
activeSelfContextId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1511
|
-
selfContexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1512
|
-
id: z.ZodString;
|
|
1513
|
-
type: z.ZodLiteral<"cross_session">;
|
|
1514
|
-
context: z.ZodString;
|
|
1515
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1516
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
1517
|
-
}, z.core.$strip>>>;
|
|
1518
|
-
provenance: z.ZodOptional<z.ZodObject<{
|
|
1519
|
-
conversation: z.ZodObject<{
|
|
1520
|
-
id: z.ZodString;
|
|
1521
|
-
type: z.ZodEnum<{
|
|
1522
|
-
unknown: "unknown";
|
|
1523
|
-
direct: "direct";
|
|
1524
|
-
group: "group";
|
|
1525
|
-
}>;
|
|
1526
|
-
}, z.core.$loose>;
|
|
1527
|
-
sender: z.ZodObject<{
|
|
1528
|
-
id: z.ZodString;
|
|
1529
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1530
|
-
type: z.ZodEnum<{
|
|
1531
|
-
human: "human";
|
|
1532
|
-
ai_agent: "ai_agent";
|
|
1533
|
-
}>;
|
|
1534
|
-
isOwner: z.ZodBoolean;
|
|
1535
|
-
}, z.core.$loose>;
|
|
1536
|
-
mentionedAgent: z.ZodBoolean;
|
|
1537
|
-
}, z.core.$loose>>;
|
|
1538
|
-
turnDispatch: z.ZodOptional<z.ZodObject<{
|
|
1539
|
-
kind: z.ZodEnum<{
|
|
1540
|
-
run_turn: "run_turn";
|
|
1541
|
-
observe_only: "observe_only";
|
|
1542
|
-
}>;
|
|
1543
|
-
reason: z.ZodString;
|
|
1544
|
-
addressed: z.ZodBoolean;
|
|
1545
|
-
policyVersion: z.ZodOptional<z.ZodString>;
|
|
1546
|
-
}, z.core.$loose>>;
|
|
1547
|
-
message: z.ZodObject<{
|
|
1548
|
-
id: z.ZodString;
|
|
1549
|
-
senderId: z.ZodString;
|
|
1550
|
-
senderName: z.ZodOptional<z.ZodString>;
|
|
1551
|
-
senderType: z.ZodEnum<{
|
|
1552
|
-
human: "human";
|
|
1553
|
-
ai_agent: "ai_agent";
|
|
1554
|
-
}>;
|
|
1555
|
-
isOwner: z.ZodBoolean;
|
|
1556
|
-
contentType: z.ZodEnum<{
|
|
1557
|
-
file: "file";
|
|
1558
|
-
image: "image";
|
|
1559
|
-
audio: "audio";
|
|
1560
|
-
video: "video";
|
|
1561
|
-
text: "text";
|
|
1562
|
-
contact_card: "contact_card";
|
|
1563
|
-
}>;
|
|
1564
|
-
text: z.ZodNullable<z.ZodString>;
|
|
1565
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
1566
|
-
kind: z.ZodEnum<{
|
|
1567
|
-
file: "file";
|
|
1568
|
-
image: "image";
|
|
1569
|
-
audio: "audio";
|
|
1570
|
-
video: "video";
|
|
1571
|
-
}>;
|
|
1572
|
-
url: z.ZodString;
|
|
1573
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
1574
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
1575
|
-
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
1576
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
1577
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
1578
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1579
|
-
}, z.core.$strip>>;
|
|
1580
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1581
|
-
replyTo: z.ZodNullable<z.ZodString>;
|
|
1582
|
-
replyToPosition: z.ZodNullable<z.ZodNumber>;
|
|
1583
|
-
forwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1584
|
-
forwardedFrom: z.ZodOptional<z.ZodObject<{
|
|
1585
|
-
sourceConversationId: z.ZodString;
|
|
1586
|
-
messageId: z.ZodString;
|
|
1587
|
-
}, z.core.$strip>>;
|
|
1588
|
-
status: z.ZodEnum<{
|
|
1589
|
-
sent: "sent";
|
|
1590
|
-
read: "read";
|
|
1591
|
-
}>;
|
|
1592
|
-
createdAt: z.ZodString;
|
|
1593
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1594
|
-
contactCard: z.ZodOptional<z.ZodObject<{
|
|
1595
|
-
userId: z.ZodString;
|
|
1596
|
-
canonContactId: z.ZodOptional<z.ZodString>;
|
|
1597
|
-
displayName: z.ZodString;
|
|
1598
|
-
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1599
|
-
userType: z.ZodEnum<{
|
|
1600
|
-
human: "human";
|
|
1601
|
-
ai_agent: "ai_agent";
|
|
1602
|
-
}>;
|
|
1603
|
-
clientType: z.ZodOptional<z.ZodEnum<{
|
|
1604
|
-
"claude-code": "claude-code";
|
|
1605
|
-
openclaw: "openclaw";
|
|
1606
|
-
codex: "codex";
|
|
1607
|
-
hermes: "hermes";
|
|
1608
|
-
generic: "generic";
|
|
1609
|
-
}>>;
|
|
1610
|
-
about: z.ZodOptional<z.ZodString>;
|
|
1611
|
-
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1612
|
-
ownerId: z.ZodOptional<z.ZodString>;
|
|
1613
|
-
ownerName: z.ZodOptional<z.ZodString>;
|
|
1614
|
-
lifecycleState: z.ZodOptional<z.ZodString>;
|
|
1615
|
-
}, z.core.$strip>>;
|
|
1616
|
-
runtimeCard: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1617
|
-
reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1618
|
-
}, z.core.$strip>;
|
|
1619
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1620
|
-
}, z.core.$loose>;
|
|
1621
|
-
readonly onMessageUpdated: z.ZodObject<{
|
|
1622
|
-
conversationId: z.ZodString;
|
|
1623
|
-
messageId: z.ZodString;
|
|
1624
|
-
actorId: z.ZodOptional<z.ZodString>;
|
|
1625
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1626
|
-
changes: z.ZodObject<{
|
|
1627
|
-
reactions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
1628
|
-
}, z.core.$loose>;
|
|
1629
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1630
|
-
}, z.core.$strip>;
|
|
1631
|
-
readonly onMessageDeleted: z.ZodObject<{
|
|
1632
|
-
conversationId: z.ZodString;
|
|
1633
|
-
messageId: z.ZodString;
|
|
1634
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1635
|
-
}, z.core.$strip>;
|
|
1636
|
-
readonly onConversationUpdated: z.ZodObject<{
|
|
1637
|
-
conversationId: z.ZodString;
|
|
1638
|
-
changes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1639
|
-
membershipChange: z.ZodOptional<z.ZodObject<{
|
|
1640
|
-
addedMemberIds: z.ZodArray<z.ZodString>;
|
|
1641
|
-
removedMemberIds: z.ZodArray<z.ZodString>;
|
|
1642
|
-
memberCount: z.ZodNumber;
|
|
1643
|
-
}, z.core.$strip>>;
|
|
1644
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1645
|
-
}, z.core.$strip>;
|
|
1646
|
-
readonly onControlSignal: z.ZodObject<{
|
|
1647
|
-
conversationId: z.ZodString;
|
|
1648
|
-
type: z.ZodEnum<{
|
|
1649
|
-
interrupt: "interrupt";
|
|
1650
|
-
stop_and_drop: "stop_and_drop";
|
|
1651
|
-
new_session: "new_session";
|
|
1652
|
-
}>;
|
|
1653
|
-
updatedAt: z.ZodNumber;
|
|
1654
|
-
raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1655
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1656
|
-
}, z.core.$strip>;
|
|
1657
|
-
readonly onSessionControl: z.ZodObject<{
|
|
1658
|
-
conversationId: z.ZodString;
|
|
1659
|
-
updatedAt: z.ZodNumber;
|
|
1660
|
-
control: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1661
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1662
|
-
}, z.core.$strip>;
|
|
1663
|
-
readonly onControlPrimitive: z.ZodObject<{
|
|
1664
|
-
conversationId: z.ZodString;
|
|
1665
|
-
requestId: z.ZodString;
|
|
1666
|
-
updatedAt: z.ZodNumber;
|
|
1667
|
-
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1668
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1669
|
-
}, z.core.$strip>;
|
|
1670
|
-
readonly onHitlResolved: z.ZodObject<{
|
|
1671
|
-
requestId: z.ZodString;
|
|
1672
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
1673
|
-
input: "input";
|
|
1674
|
-
approval: "approval";
|
|
1675
|
-
card: "card";
|
|
1676
|
-
}>>;
|
|
1677
|
-
status: z.ZodEnum<{
|
|
1678
|
-
cancelled: "cancelled";
|
|
1679
|
-
submitted: "submitted";
|
|
1680
|
-
timeout: "timeout";
|
|
1681
|
-
}>;
|
|
1682
|
-
answer: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1683
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1684
|
-
}, z.core.$strip>;
|
|
1685
|
-
readonly onHitlPending: z.ZodObject<{
|
|
1686
|
-
requestId: z.ZodString;
|
|
1687
|
-
kind: z.ZodEnum<{
|
|
1688
|
-
input: "input";
|
|
1689
|
-
approval: "approval";
|
|
1690
|
-
card: "card";
|
|
1691
|
-
}>;
|
|
1692
|
-
conversationId: z.ZodString;
|
|
1693
|
-
expiresAt: z.ZodString;
|
|
1694
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1695
|
-
}, z.core.$strip>;
|
|
1696
|
-
/**
|
|
1697
|
-
* §C6 addition (P6 host surface): a stripped HITL control-reply message
|
|
1698
|
-
* (metadata.type approval_reply / plan_approval_reply) that matched NO
|
|
1699
|
-
* bridge-owned HITL record fans out here instead of being dropped —
|
|
1700
|
-
* process-executing hosts run reply flows the bridge did not raise
|
|
1701
|
-
* (claude plan approval is a plain sendMessage + metadata-reply waiter).
|
|
1702
|
-
* `message` is the serialized Canon message, opaque pass-through.
|
|
1703
|
-
*/
|
|
1704
|
-
readonly onControlReply: z.ZodObject<{
|
|
1705
|
-
conversationId: z.ZodString;
|
|
1706
|
-
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1707
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1708
|
-
}, z.core.$strip>;
|
|
1709
|
-
readonly onContactChanged: z.ZodObject<{
|
|
1710
|
-
kind: z.ZodEnum<{
|
|
1711
|
-
approved: "approved";
|
|
1712
|
-
added: "added";
|
|
1713
|
-
removed: "removed";
|
|
1714
|
-
request: "request";
|
|
1715
|
-
updated: "updated";
|
|
1716
|
-
}>;
|
|
1717
|
-
contact: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1718
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1719
|
-
}, z.core.$strip>;
|
|
1720
|
-
readonly onTyping: z.ZodObject<{
|
|
1721
|
-
conversationId: z.ZodString;
|
|
1722
|
-
userId: z.ZodString;
|
|
1723
|
-
isTyping: z.ZodBoolean;
|
|
1724
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
1725
|
-
thinking: "thinking";
|
|
1726
|
-
typing: "typing";
|
|
1727
|
-
}>>;
|
|
1728
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1729
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1730
|
-
}, z.core.$strip>;
|
|
1731
|
-
readonly onPresence: z.ZodObject<{
|
|
1732
|
-
userId: z.ZodString;
|
|
1733
|
-
online: z.ZodBoolean;
|
|
1734
|
-
lastSeen: z.ZodOptional<z.ZodString>;
|
|
1735
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1736
|
-
}, z.core.$strip>;
|
|
1737
|
-
readonly onVoiceSessionStarted: z.ZodObject<{
|
|
1738
|
-
conversationId: z.ZodString;
|
|
1739
|
-
session: z.ZodObject<{
|
|
1740
|
-
id: z.ZodString;
|
|
1741
|
-
conversationId: z.ZodString;
|
|
1742
|
-
roomName: z.ZodString;
|
|
1743
|
-
mode: z.ZodEnum<{
|
|
1744
|
-
human: "human";
|
|
1745
|
-
runtime_voice: "runtime_voice";
|
|
1746
|
-
}>;
|
|
1747
|
-
status: z.ZodEnum<{
|
|
1748
|
-
error: "error";
|
|
1749
|
-
active: "active";
|
|
1750
|
-
ended: "ended";
|
|
1751
|
-
}>;
|
|
1752
|
-
createdBy: z.ZodString;
|
|
1753
|
-
participantIds: z.ZodArray<z.ZodString>;
|
|
1754
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1755
|
-
userId: z.ZodString;
|
|
1756
|
-
userType: z.ZodEnum<{
|
|
1757
|
-
human: "human";
|
|
1758
|
-
ai_agent: "ai_agent";
|
|
1759
|
-
system: "system";
|
|
1760
|
-
}>;
|
|
1761
|
-
displayName: z.ZodNullable<z.ZodString>;
|
|
1762
|
-
joinedAt: z.ZodNullable<z.ZodString>;
|
|
1763
|
-
leftAt: z.ZodNullable<z.ZodString>;
|
|
1764
|
-
}, z.core.$loose>>>;
|
|
1765
|
-
targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1766
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1767
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1768
|
-
endedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1769
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1770
|
-
}, z.core.$loose>;
|
|
1771
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1772
|
-
}, z.core.$strip>;
|
|
1773
|
-
readonly onVoiceSessionEnded: z.ZodObject<{
|
|
1774
|
-
conversationId: z.ZodString;
|
|
1775
|
-
session: z.ZodObject<{
|
|
1776
|
-
id: z.ZodString;
|
|
1777
|
-
conversationId: z.ZodString;
|
|
1778
|
-
roomName: z.ZodString;
|
|
1779
|
-
mode: z.ZodEnum<{
|
|
1780
|
-
human: "human";
|
|
1781
|
-
runtime_voice: "runtime_voice";
|
|
1782
|
-
}>;
|
|
1783
|
-
status: z.ZodEnum<{
|
|
1784
|
-
error: "error";
|
|
1785
|
-
active: "active";
|
|
1786
|
-
ended: "ended";
|
|
1787
|
-
}>;
|
|
1788
|
-
createdBy: z.ZodString;
|
|
1789
|
-
participantIds: z.ZodArray<z.ZodString>;
|
|
1790
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1791
|
-
userId: z.ZodString;
|
|
1792
|
-
userType: z.ZodEnum<{
|
|
1793
|
-
human: "human";
|
|
1794
|
-
ai_agent: "ai_agent";
|
|
1795
|
-
system: "system";
|
|
1796
|
-
}>;
|
|
1797
|
-
displayName: z.ZodNullable<z.ZodString>;
|
|
1798
|
-
joinedAt: z.ZodNullable<z.ZodString>;
|
|
1799
|
-
leftAt: z.ZodNullable<z.ZodString>;
|
|
1800
|
-
}, z.core.$loose>>>;
|
|
1801
|
-
targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1802
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1803
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1804
|
-
endedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1805
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1806
|
-
}, z.core.$loose>;
|
|
1807
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1808
|
-
}, z.core.$strip>;
|
|
1809
|
-
};
|
|
1810
|
-
export type BridgeLocalNotificationName = keyof typeof BRIDGE_LOCAL_NOTIFICATIONS;
|
|
1811
|
-
export declare const BRIDGE_LOCAL_NOTIFICATION_NAMES: BridgeLocalNotificationName[];
|
|
1812
|
-
/**
|
|
1813
|
-
* Event family per §C notification, mirroring SSE_EVENT_FAMILY_BY_TYPE.
|
|
1814
|
-
* `lifecycle` notifications are connection-scoped and delivered to every
|
|
1815
|
-
* client; family notifications are filtered by `hello.wantFamilies`
|
|
1816
|
-
* (`wantFamilies: []` = pure-request adapter, no §C events at all).
|
|
1817
|
-
*/
|
|
1818
|
-
export declare const BRIDGE_LOCAL_NOTIFICATION_FAMILIES: {
|
|
1819
|
-
readonly ready: "lifecycle";
|
|
1820
|
-
readonly connectionState: "lifecycle";
|
|
1821
|
-
readonly onMessage: "messages";
|
|
1822
|
-
readonly onMessageUpdated: "messages";
|
|
1823
|
-
readonly onMessageDeleted: "messages";
|
|
1824
|
-
readonly onConversationUpdated: "messages";
|
|
1825
|
-
readonly onControlSignal: "runtime_turn";
|
|
1826
|
-
readonly onSessionControl: "runtime_turn";
|
|
1827
|
-
readonly onControlPrimitive: "runtime_turn";
|
|
1828
|
-
readonly onHitlResolved: "runtime_turn";
|
|
1829
|
-
readonly onHitlPending: "runtime_turn";
|
|
1830
|
-
readonly onControlReply: "runtime_turn";
|
|
1831
|
-
readonly onContactChanged: "contacts";
|
|
1832
|
-
readonly onTyping: "typing_presence";
|
|
1833
|
-
readonly onPresence: "typing_presence";
|
|
1834
|
-
readonly onVoiceSessionStarted: "voice";
|
|
1835
|
-
readonly onVoiceSessionEnded: "voice";
|
|
1836
|
-
};
|
|
1837
|
-
export declare const BridgeRpcIdSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1838
|
-
export type BridgeRpcId = z.infer<typeof BridgeRpcIdSchema>;
|
|
1839
|
-
export declare const BridgeRpcRequestSchema: z.ZodObject<{
|
|
1840
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1841
|
-
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1842
|
-
method: z.ZodString;
|
|
1843
|
-
params: z.ZodOptional<z.ZodUnknown>;
|
|
1844
|
-
}, z.core.$strip>;
|
|
1845
|
-
export type BridgeRpcRequest = z.infer<typeof BridgeRpcRequestSchema>;
|
|
1846
|
-
export declare const BridgeRpcNotificationSchema: z.ZodObject<{
|
|
1847
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1848
|
-
method: z.ZodString;
|
|
1849
|
-
params: z.ZodOptional<z.ZodUnknown>;
|
|
1850
|
-
}, z.core.$strip>;
|
|
1851
|
-
export type BridgeRpcNotification = z.infer<typeof BridgeRpcNotificationSchema>;
|
|
1852
|
-
export declare const BridgeRpcErrorSchema: z.ZodObject<{
|
|
1853
|
-
code: z.ZodNumber;
|
|
1854
|
-
message: z.ZodString;
|
|
1855
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
1856
|
-
}, z.core.$strip>;
|
|
1857
|
-
export type BridgeRpcError = z.infer<typeof BridgeRpcErrorSchema>;
|
|
1858
|
-
export declare const BridgeRpcResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1859
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1860
|
-
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1861
|
-
result: z.ZodUnknown;
|
|
1862
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1863
|
-
jsonrpc: z.ZodLiteral<"2.0">;
|
|
1864
|
-
id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1865
|
-
error: z.ZodObject<{
|
|
1866
|
-
code: z.ZodNumber;
|
|
1867
|
-
message: z.ZodString;
|
|
1868
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
1869
|
-
}, z.core.$strip>;
|
|
1870
|
-
}, z.core.$strip>]>;
|
|
1871
|
-
export type BridgeRpcResponse = z.infer<typeof BridgeRpcResponseSchema>;
|