@rkat/sdk 0.6.4 → 0.6.6
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/README.md +2 -1
- package/dist/client.d.ts +90 -15
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +157 -30
- package/dist/client.js.map +1 -1
- package/dist/generated/types.d.ts +436 -269
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/types.js +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/live.d.ts +134 -0
- package/dist/live.d.ts.map +1 -0
- package/dist/live.js +193 -0
- package/dist/live.js.map +1 -0
- package/dist/live_webrtc.d.ts +27 -0
- package/dist/live_webrtc.d.ts.map +1 -0
- package/dist/live_webrtc.js +35 -0
- package/dist/live_webrtc.js.map +1 -0
- package/dist/mob.d.ts +1 -0
- package/dist/mob.d.ts.map +1 -1
- package/dist/mob.js.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/realtime.d.ts +0 -45
- package/dist/realtime.d.ts.map +0 -1
- package/dist/realtime.js +0 -166
- package/dist/realtime.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CONTRACT_VERSION = "0.6.
|
|
1
|
+
export declare const CONTRACT_VERSION = "0.6.6";
|
|
2
2
|
export interface WireUsage {
|
|
3
3
|
input_tokens: number;
|
|
4
4
|
output_tokens: number;
|
|
@@ -450,7 +450,6 @@ export interface MobMemberStatusResult {
|
|
|
450
450
|
kickoff?: unknown;
|
|
451
451
|
output_preview?: string;
|
|
452
452
|
peer_connectivity?: unknown;
|
|
453
|
-
realtime_attachment_status?: string;
|
|
454
453
|
resolved_capabilities?: WireResolvedModelCapabilities;
|
|
455
454
|
status: WireMobMemberStatus;
|
|
456
455
|
tokens_used: number;
|
|
@@ -823,22 +822,6 @@ export interface SessionStreamCloseResult {
|
|
|
823
822
|
closed: boolean;
|
|
824
823
|
stream_id: string;
|
|
825
824
|
}
|
|
826
|
-
export interface RuntimeRealtimeAttachmentStatusParams {
|
|
827
|
-
session_id: string;
|
|
828
|
-
}
|
|
829
|
-
export interface RealtimeOpenRequest {
|
|
830
|
-
channel_config?: RealtimeChannelConfig;
|
|
831
|
-
reconnect_policy?: RealtimeReconnectPolicy;
|
|
832
|
-
role: RealtimeChannelRole;
|
|
833
|
-
target: RealtimeChannelTarget;
|
|
834
|
-
turning_mode: RealtimeTurningMode;
|
|
835
|
-
}
|
|
836
|
-
export interface RealtimeStatusParams {
|
|
837
|
-
target: RealtimeChannelTarget;
|
|
838
|
-
}
|
|
839
|
-
export interface RealtimeCapabilitiesParams {
|
|
840
|
-
target: RealtimeChannelTarget;
|
|
841
|
-
}
|
|
842
825
|
export interface ScheduleIdParams {
|
|
843
826
|
schedule_id: string;
|
|
844
827
|
}
|
|
@@ -1049,41 +1032,9 @@ export type WireHandlingMode = "queue" | "steer";
|
|
|
1049
1032
|
export type WireRenderClass = "user_prompt" | "peer_message" | "peer_request" | "peer_response" | "external_event" | "flow_step" | "continuation" | "system_notice" | "tool_scope_notice" | "ops_progress";
|
|
1050
1033
|
export type WireRenderSalience = "background" | "normal" | "important" | "urgent";
|
|
1051
1034
|
export type WireRuntimeState = "initializing" | "idle" | "attached" | "running" | "retired" | "stopped" | "destroyed";
|
|
1052
|
-
export type WireRealtimeAttachmentStatus = "unattached" | "intent_present_unbound" | "binding_not_ready" | "binding_ready" | "replacement_pending" | "reattach_required";
|
|
1053
|
-
export interface RealtimeChannelTargetSessionTarget {
|
|
1054
|
-
session_id: string;
|
|
1055
|
-
type: "session_target";
|
|
1056
|
-
}
|
|
1057
|
-
export interface RealtimeChannelTargetMobMember {
|
|
1058
|
-
agent_identity: string;
|
|
1059
|
-
mob_id: string;
|
|
1060
|
-
type: "mob_member";
|
|
1061
|
-
}
|
|
1062
|
-
export type RealtimeChannelTarget = RealtimeChannelTargetSessionTarget | RealtimeChannelTargetMobMember;
|
|
1063
|
-
export type RealtimeChannelRole = "primary" | "observer";
|
|
1064
1035
|
export type RealtimeTurningMode = "provider_managed" | "explicit_commit";
|
|
1065
|
-
export type RealtimeProtocolVersion = "2";
|
|
1066
1036
|
export type RealtimeInputKind = "text" | "audio" | "video";
|
|
1067
1037
|
export type RealtimeOutputKind = "text" | "audio" | "video";
|
|
1068
|
-
export type RealtimeChannelState = "opening" | "ready" | "interrupted" | "reconnecting" | "closed" | "error";
|
|
1069
|
-
export type RealtimeErrorCode = "invalid_frame" | "expected_channel_open" | "invalid_open_token" | "open_token_expired" | "role_mismatch" | "turning_mode_mismatch" | "unsupported_turning_mode" | "target_busy" | "unsupported_protocol_version" | "audio_format_mismatch" | "unauthorized_realm" | "tool_call_timeout" | "internal_error" | "reconnect_exhausted" | "invalid_target" | "channel_not_bound" | "runtime_internal" | "runtime_not_ready" | "provider_session_closed" | "provider_session_failed" | "provider_session_unavailable" | "unsupported_input_kind" | "no_pending_turn" | "observer_read_only" | "unexpected_channel_open" | "commit_turn_unavailable" | "channel_reconnecting" | "binding_released" | "authentication_failed" | "content_filtered" | "model_not_found" | "invalid_request";
|
|
1070
|
-
export interface RealtimeErrorDetailsAudioFormatMismatch {
|
|
1071
|
-
actual: RealtimeAudioFormat;
|
|
1072
|
-
expected: RealtimeAudioFormat;
|
|
1073
|
-
kind: "audio_format_mismatch";
|
|
1074
|
-
}
|
|
1075
|
-
export interface RealtimeErrorDetailsToolCallTimeout {
|
|
1076
|
-
call_id: string;
|
|
1077
|
-
elapsed_ms: number;
|
|
1078
|
-
timeout_ms: number;
|
|
1079
|
-
kind: "tool_call_timeout";
|
|
1080
|
-
}
|
|
1081
|
-
export interface RealtimeErrorDetailsUnsupportedProtocolVersion {
|
|
1082
|
-
kind: "unsupported_protocol_version";
|
|
1083
|
-
requested: string;
|
|
1084
|
-
supported: RealtimeProtocolVersion[];
|
|
1085
|
-
}
|
|
1086
|
-
export type RealtimeErrorDetails = RealtimeErrorDetailsAudioFormatMismatch | RealtimeErrorDetailsToolCallTimeout | RealtimeErrorDetailsUnsupportedProtocolVersion;
|
|
1087
1038
|
export interface RealtimeInputChunkTextChunk {
|
|
1088
1039
|
text: string;
|
|
1089
1040
|
kind: "text_chunk";
|
|
@@ -1101,142 +1052,6 @@ export interface RealtimeInputChunkVideoChunk {
|
|
|
1101
1052
|
kind: "video_chunk";
|
|
1102
1053
|
}
|
|
1103
1054
|
export type RealtimeInputChunk = RealtimeInputChunkTextChunk | RealtimeInputChunkAudioChunk | RealtimeInputChunkVideoChunk;
|
|
1104
|
-
export interface RealtimeOutputChunkTextDelta {
|
|
1105
|
-
delta: string;
|
|
1106
|
-
kind: "text_delta";
|
|
1107
|
-
}
|
|
1108
|
-
export interface RealtimeOutputChunkAudioChunk {
|
|
1109
|
-
channels: number;
|
|
1110
|
-
data: string;
|
|
1111
|
-
mime_type: string;
|
|
1112
|
-
sample_rate_hz: number;
|
|
1113
|
-
kind: "audio_chunk";
|
|
1114
|
-
}
|
|
1115
|
-
export interface RealtimeOutputChunkVideoChunk {
|
|
1116
|
-
data: string;
|
|
1117
|
-
mime_type: string;
|
|
1118
|
-
kind: "video_chunk";
|
|
1119
|
-
}
|
|
1120
|
-
export type RealtimeOutputChunk = RealtimeOutputChunkTextDelta | RealtimeOutputChunkAudioChunk | RealtimeOutputChunkVideoChunk;
|
|
1121
|
-
export interface RealtimeEventInputTranscriptPartial {
|
|
1122
|
-
text: string;
|
|
1123
|
-
type: "input_transcript_partial";
|
|
1124
|
-
}
|
|
1125
|
-
export interface RealtimeEventInputTranscriptFinal {
|
|
1126
|
-
prosody_hint?: string;
|
|
1127
|
-
text: string;
|
|
1128
|
-
type: "input_transcript_final";
|
|
1129
|
-
}
|
|
1130
|
-
export interface RealtimeEventTurnStarted {
|
|
1131
|
-
type: "turn_started";
|
|
1132
|
-
}
|
|
1133
|
-
export interface RealtimeEventTurnCommitted {
|
|
1134
|
-
type: "turn_committed";
|
|
1135
|
-
}
|
|
1136
|
-
export interface RealtimeEventTurnCompleted {
|
|
1137
|
-
type: "turn_completed";
|
|
1138
|
-
}
|
|
1139
|
-
export interface RealtimeEventOutputTextDelta {
|
|
1140
|
-
delta: string;
|
|
1141
|
-
type: "output_text_delta";
|
|
1142
|
-
}
|
|
1143
|
-
export interface RealtimeEventOutputAudioChunk {
|
|
1144
|
-
chunk: RealtimeAudioChunk;
|
|
1145
|
-
type: "output_audio_chunk";
|
|
1146
|
-
}
|
|
1147
|
-
export interface RealtimeEventOutputVideoChunk {
|
|
1148
|
-
chunk: RealtimeVideoChunk;
|
|
1149
|
-
type: "output_video_chunk";
|
|
1150
|
-
}
|
|
1151
|
-
export interface RealtimeEventInterrupted {
|
|
1152
|
-
type: "interrupted";
|
|
1153
|
-
}
|
|
1154
|
-
export interface RealtimeEventToolCallRequested {
|
|
1155
|
-
call_id: string;
|
|
1156
|
-
tool_name: string;
|
|
1157
|
-
type: "tool_call_requested";
|
|
1158
|
-
}
|
|
1159
|
-
export interface RealtimeEventToolCallCompleted {
|
|
1160
|
-
call_id: string;
|
|
1161
|
-
type: "tool_call_completed";
|
|
1162
|
-
}
|
|
1163
|
-
export interface RealtimeEventToolCallFailed {
|
|
1164
|
-
call_id: string;
|
|
1165
|
-
error: string;
|
|
1166
|
-
type: "tool_call_failed";
|
|
1167
|
-
}
|
|
1168
|
-
export interface RealtimeEventToolCallTimedOut {
|
|
1169
|
-
call_id: string;
|
|
1170
|
-
elapsed_ms: number;
|
|
1171
|
-
type: "tool_call_timed_out";
|
|
1172
|
-
}
|
|
1173
|
-
export interface RealtimeEventAssistantTranscriptTruncated {
|
|
1174
|
-
audio_played_ms: number;
|
|
1175
|
-
item_id: string;
|
|
1176
|
-
truncated_text?: string;
|
|
1177
|
-
type: "assistant_transcript_truncated";
|
|
1178
|
-
}
|
|
1179
|
-
export interface RealtimeEventStatusChanged {
|
|
1180
|
-
status: RealtimeChannelStatus;
|
|
1181
|
-
type: "status_changed";
|
|
1182
|
-
}
|
|
1183
|
-
export interface RealtimeEventNeedsReattach {
|
|
1184
|
-
type: "needs_reattach";
|
|
1185
|
-
}
|
|
1186
|
-
export type RealtimeEvent = RealtimeEventInputTranscriptPartial | RealtimeEventInputTranscriptFinal | RealtimeEventTurnStarted | RealtimeEventTurnCommitted | RealtimeEventTurnCompleted | RealtimeEventOutputTextDelta | RealtimeEventOutputAudioChunk | RealtimeEventOutputVideoChunk | RealtimeEventInterrupted | RealtimeEventToolCallRequested | RealtimeEventToolCallCompleted | RealtimeEventToolCallFailed | RealtimeEventToolCallTimedOut | RealtimeEventAssistantTranscriptTruncated | RealtimeEventStatusChanged | RealtimeEventNeedsReattach;
|
|
1187
|
-
export interface RealtimeClientFrameChannelOpen {
|
|
1188
|
-
open_token: string;
|
|
1189
|
-
protocol_version: RealtimeProtocolVersion;
|
|
1190
|
-
role: RealtimeChannelRole;
|
|
1191
|
-
turning_mode: RealtimeTurningMode;
|
|
1192
|
-
type: "channel.open";
|
|
1193
|
-
}
|
|
1194
|
-
export interface RealtimeClientFrameChannelInput {
|
|
1195
|
-
chunk: RealtimeInputChunk;
|
|
1196
|
-
type: "channel.input";
|
|
1197
|
-
}
|
|
1198
|
-
export interface RealtimeClientFrameChannelCommitTurn {
|
|
1199
|
-
type: "channel.commit_turn";
|
|
1200
|
-
}
|
|
1201
|
-
export interface RealtimeClientFrameChannelInterrupt {
|
|
1202
|
-
type: "channel.interrupt";
|
|
1203
|
-
}
|
|
1204
|
-
export interface RealtimeClientFrameChannelBargeInTruncate {
|
|
1205
|
-
audio_played_ms: number;
|
|
1206
|
-
content_index: number;
|
|
1207
|
-
item_id: string;
|
|
1208
|
-
type: "channel.barge_in_truncate";
|
|
1209
|
-
}
|
|
1210
|
-
export interface RealtimeClientFrameChannelClose {
|
|
1211
|
-
type: "channel.close";
|
|
1212
|
-
}
|
|
1213
|
-
export type RealtimeClientFrame = RealtimeClientFrameChannelOpen | RealtimeClientFrameChannelInput | RealtimeClientFrameChannelCommitTurn | RealtimeClientFrameChannelInterrupt | RealtimeClientFrameChannelBargeInTruncate | RealtimeClientFrameChannelClose;
|
|
1214
|
-
export interface RealtimeServerFrameChannelOpened {
|
|
1215
|
-
capabilities: RealtimeCapabilities;
|
|
1216
|
-
protocol_version: RealtimeProtocolVersion;
|
|
1217
|
-
role: RealtimeChannelRole;
|
|
1218
|
-
status: RealtimeChannelStatus;
|
|
1219
|
-
type: "channel.opened";
|
|
1220
|
-
}
|
|
1221
|
-
export interface RealtimeServerFrameChannelStatus {
|
|
1222
|
-
status: RealtimeChannelStatus;
|
|
1223
|
-
type: "channel.status";
|
|
1224
|
-
}
|
|
1225
|
-
export interface RealtimeServerFrameChannelEvent {
|
|
1226
|
-
event: RealtimeEvent;
|
|
1227
|
-
type: "channel.event";
|
|
1228
|
-
}
|
|
1229
|
-
export interface RealtimeServerFrameChannelError {
|
|
1230
|
-
code: RealtimeErrorCode;
|
|
1231
|
-
details?: RealtimeErrorDetails;
|
|
1232
|
-
message: string;
|
|
1233
|
-
type: "channel.error";
|
|
1234
|
-
}
|
|
1235
|
-
export interface RealtimeServerFrameChannelClosed {
|
|
1236
|
-
reason?: string;
|
|
1237
|
-
type: "channel.closed";
|
|
1238
|
-
}
|
|
1239
|
-
export type RealtimeServerFrame = RealtimeServerFrameChannelOpened | RealtimeServerFrameChannelStatus | RealtimeServerFrameChannelEvent | RealtimeServerFrameChannelError | RealtimeServerFrameChannelClosed;
|
|
1240
1055
|
export type RuntimeAcceptOutcomeType = "accepted" | "deduplicated" | "rejected";
|
|
1241
1056
|
export type WireInputLifecycleState = "accepted" | "queued" | "staged" | "applied" | "applied_pending_consumption" | "consumed" | "superseded" | "coalesced" | "abandoned";
|
|
1242
1057
|
export type WireStopReason = "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "content_filter" | "cancelled";
|
|
@@ -1274,6 +1089,7 @@ export interface CommsCommandPeerRequest {
|
|
|
1274
1089
|
to: PeerId;
|
|
1275
1090
|
}
|
|
1276
1091
|
export interface CommsCommandPeerResponse {
|
|
1092
|
+
blocks?: ContentBlock[];
|
|
1277
1093
|
handling_mode?: HandlingMode;
|
|
1278
1094
|
in_reply_to: string;
|
|
1279
1095
|
kind: "peer_response";
|
|
@@ -1485,6 +1301,7 @@ export interface CommsSendParamsPeerRequest {
|
|
|
1485
1301
|
to: PeerId;
|
|
1486
1302
|
}
|
|
1487
1303
|
export interface CommsSendParamsPeerResponse {
|
|
1304
|
+
blocks?: ContentBlock[];
|
|
1488
1305
|
handling_mode?: HandlingMode;
|
|
1489
1306
|
in_reply_to: string;
|
|
1490
1307
|
kind: "peer_response";
|
|
@@ -1550,29 +1367,6 @@ export interface WireTrustedPeerSpec {
|
|
|
1550
1367
|
export interface RuntimeStateResult {
|
|
1551
1368
|
state: WireRuntimeState;
|
|
1552
1369
|
}
|
|
1553
|
-
export interface RuntimeRealtimeAttachmentStatusResult {
|
|
1554
|
-
status: "unattached" | "intent_present_unbound" | "binding_not_ready" | "binding_ready" | "replacement_pending" | "reattach_required";
|
|
1555
|
-
}
|
|
1556
|
-
export interface RealtimeReconnectPolicy {
|
|
1557
|
-
initial_backoff_ms: number;
|
|
1558
|
-
max_attempts: number;
|
|
1559
|
-
max_backoff_ms: number;
|
|
1560
|
-
max_total_ms: number;
|
|
1561
|
-
}
|
|
1562
|
-
export interface RealtimeToolTimeoutPolicyDefault {
|
|
1563
|
-
type: "default";
|
|
1564
|
-
}
|
|
1565
|
-
export interface RealtimeToolTimeoutPolicyDisabled {
|
|
1566
|
-
type: "disabled";
|
|
1567
|
-
}
|
|
1568
|
-
export interface RealtimeToolTimeoutPolicyFinite {
|
|
1569
|
-
timeout_ms: number;
|
|
1570
|
-
type: "finite";
|
|
1571
|
-
}
|
|
1572
|
-
export type RealtimeToolTimeoutPolicy = RealtimeToolTimeoutPolicyDefault | RealtimeToolTimeoutPolicyDisabled | RealtimeToolTimeoutPolicyFinite;
|
|
1573
|
-
export interface RealtimeChannelConfig {
|
|
1574
|
-
tool_timeout?: RealtimeToolTimeoutPolicy;
|
|
1575
|
-
}
|
|
1576
1370
|
export interface RealtimeAudioFormat {
|
|
1577
1371
|
channels: number;
|
|
1578
1372
|
mime_type: string;
|
|
@@ -1589,34 +1383,9 @@ export interface RealtimeCapabilities {
|
|
|
1589
1383
|
turning_modes?: RealtimeTurningMode[];
|
|
1590
1384
|
video_supported: boolean;
|
|
1591
1385
|
}
|
|
1592
|
-
export interface RealtimeChannelStatus {
|
|
1593
|
-
attempt_count?: number;
|
|
1594
|
-
deadline_at?: string;
|
|
1595
|
-
next_retry_at?: string;
|
|
1596
|
-
reason?: string;
|
|
1597
|
-
state: RealtimeChannelState;
|
|
1598
|
-
}
|
|
1599
|
-
export interface RealtimeOpenInfo {
|
|
1600
|
-
capabilities: RealtimeCapabilities;
|
|
1601
|
-
default_protocol_version: RealtimeProtocolVersion;
|
|
1602
|
-
expires_at: string;
|
|
1603
|
-
open_token: string;
|
|
1604
|
-
supported_protocol_versions?: RealtimeProtocolVersion[];
|
|
1605
|
-
target: RealtimeChannelTarget;
|
|
1606
|
-
ws_url: string;
|
|
1607
|
-
}
|
|
1608
|
-
export interface RealtimeStatusResult {
|
|
1609
|
-
status: RealtimeChannelStatus;
|
|
1610
|
-
}
|
|
1611
|
-
export interface RealtimeCapabilitiesResult {
|
|
1612
|
-
capabilities: RealtimeCapabilities;
|
|
1613
|
-
}
|
|
1614
1386
|
export interface RealtimeTextChunk {
|
|
1615
1387
|
text: string;
|
|
1616
1388
|
}
|
|
1617
|
-
export interface RealtimeTextDelta {
|
|
1618
|
-
delta: string;
|
|
1619
|
-
}
|
|
1620
1389
|
export interface RealtimeAudioChunk {
|
|
1621
1390
|
channels: number;
|
|
1622
1391
|
data: string;
|
|
@@ -1627,49 +1396,406 @@ export interface RealtimeVideoChunk {
|
|
|
1627
1396
|
data: string;
|
|
1628
1397
|
mime_type: string;
|
|
1629
1398
|
}
|
|
1630
|
-
export interface
|
|
1399
|
+
export interface LiveOpenParams {
|
|
1400
|
+
session_id: string;
|
|
1401
|
+
transport?: "websocket" | "webrtc";
|
|
1402
|
+
turning_mode?: RealtimeTurningMode;
|
|
1403
|
+
}
|
|
1404
|
+
export interface WireLiveChannelCapabilities {
|
|
1405
|
+
audio_in: boolean;
|
|
1406
|
+
audio_out: boolean;
|
|
1407
|
+
barge_in_supported: boolean;
|
|
1408
|
+
image_in: boolean;
|
|
1409
|
+
provider_native_resume: boolean;
|
|
1410
|
+
text_in: boolean;
|
|
1411
|
+
text_out: boolean;
|
|
1412
|
+
transcript_supported: boolean;
|
|
1413
|
+
video_in: boolean;
|
|
1414
|
+
}
|
|
1415
|
+
export interface WireLiveContinuityModeFresh {
|
|
1416
|
+
mode: "fresh";
|
|
1417
|
+
}
|
|
1418
|
+
export interface WireLiveContinuityModeTranscriptOnly {
|
|
1419
|
+
mode: "transcript_only";
|
|
1420
|
+
}
|
|
1421
|
+
export interface WireLiveContinuityModeDegraded {
|
|
1422
|
+
mode: "degraded";
|
|
1423
|
+
}
|
|
1424
|
+
export interface WireLiveContinuityModeProviderNativeResume {
|
|
1425
|
+
mode: "provider_native_resume";
|
|
1426
|
+
provider_session_id: string;
|
|
1427
|
+
}
|
|
1428
|
+
export interface WireLiveContinuityModeUnknown {
|
|
1429
|
+
debug: string;
|
|
1430
|
+
mode: "unknown";
|
|
1431
|
+
}
|
|
1432
|
+
export type WireLiveContinuityMode = WireLiveContinuityModeFresh | WireLiveContinuityModeTranscriptOnly | WireLiveContinuityModeDegraded | WireLiveContinuityModeProviderNativeResume | WireLiveContinuityModeUnknown;
|
|
1433
|
+
export interface WireLiveTransportBootstrapWebsocket {
|
|
1434
|
+
token: string;
|
|
1435
|
+
transport: "websocket";
|
|
1436
|
+
url: string;
|
|
1437
|
+
}
|
|
1438
|
+
export interface WireLiveTransportBootstrapWebrtc {
|
|
1439
|
+
answer_method: string;
|
|
1440
|
+
http_url?: string;
|
|
1441
|
+
token: string;
|
|
1442
|
+
transport: "webrtc";
|
|
1443
|
+
}
|
|
1444
|
+
export interface WireLiveTransportBootstrapUnknown {
|
|
1445
|
+
debug: string;
|
|
1446
|
+
transport: "unknown";
|
|
1447
|
+
}
|
|
1448
|
+
export type WireLiveTransportBootstrap = WireLiveTransportBootstrapWebsocket | WireLiveTransportBootstrapWebrtc | WireLiveTransportBootstrapUnknown;
|
|
1449
|
+
export interface LiveOpenResult {
|
|
1450
|
+
capabilities: WireLiveChannelCapabilities;
|
|
1451
|
+
channel_id: string;
|
|
1452
|
+
continuity: WireLiveContinuityMode;
|
|
1453
|
+
transport: WireLiveTransportBootstrap;
|
|
1454
|
+
}
|
|
1455
|
+
export interface LiveWebrtcAnswerParams {
|
|
1456
|
+
channel_id: string;
|
|
1457
|
+
offer_sdp: string;
|
|
1458
|
+
token: string;
|
|
1459
|
+
}
|
|
1460
|
+
export interface LiveWebrtcAnswerResult {
|
|
1461
|
+
answer_sdp: string;
|
|
1462
|
+
}
|
|
1463
|
+
export interface LiveChannelParams {
|
|
1464
|
+
channel_id: string;
|
|
1465
|
+
}
|
|
1466
|
+
export interface LiveStatusResult {
|
|
1467
|
+
channel_id: string;
|
|
1468
|
+
status: WireLiveAdapterStatus;
|
|
1469
|
+
}
|
|
1470
|
+
export interface LiveSendInputParams {
|
|
1471
|
+
channel_id: string;
|
|
1472
|
+
chunk: LiveInputChunkWire;
|
|
1473
|
+
}
|
|
1474
|
+
export interface LiveTruncateParams {
|
|
1631
1475
|
audio_played_ms: number;
|
|
1476
|
+
channel_id: string;
|
|
1477
|
+
content_index: number;
|
|
1478
|
+
item_id: string;
|
|
1479
|
+
}
|
|
1480
|
+
export interface WireLiveResponseModalityAudio {
|
|
1481
|
+
modality: "audio";
|
|
1482
|
+
}
|
|
1483
|
+
export interface WireLiveResponseModalityText {
|
|
1484
|
+
modality: "text";
|
|
1485
|
+
}
|
|
1486
|
+
export interface WireLiveResponseModalityUnknown {
|
|
1487
|
+
debug: string;
|
|
1488
|
+
modality: "unknown";
|
|
1489
|
+
}
|
|
1490
|
+
export type WireLiveResponseModality = WireLiveResponseModalityAudio | WireLiveResponseModalityText | WireLiveResponseModalityUnknown;
|
|
1491
|
+
export interface LiveCommitInputParams {
|
|
1492
|
+
channel_id: string;
|
|
1493
|
+
response_modality?: WireLiveResponseModality;
|
|
1494
|
+
}
|
|
1495
|
+
export type LiveRefreshStatus = "queued";
|
|
1496
|
+
export interface LiveRefreshResult {
|
|
1497
|
+
refresh_enqueued: boolean;
|
|
1498
|
+
status: "queued";
|
|
1499
|
+
}
|
|
1500
|
+
export interface LiveInputChunkWireAudio {
|
|
1501
|
+
channels: number;
|
|
1502
|
+
data: string;
|
|
1503
|
+
kind: "audio";
|
|
1504
|
+
sample_rate_hz: number;
|
|
1505
|
+
}
|
|
1506
|
+
export interface LiveInputChunkWireText {
|
|
1507
|
+
kind: "text";
|
|
1508
|
+
text: string;
|
|
1509
|
+
}
|
|
1510
|
+
export interface LiveInputChunkWireImage {
|
|
1511
|
+
data: string;
|
|
1512
|
+
kind: "image";
|
|
1513
|
+
mime: string;
|
|
1514
|
+
}
|
|
1515
|
+
export interface LiveInputChunkWireVideoFrame {
|
|
1516
|
+
codec: string;
|
|
1517
|
+
data: string;
|
|
1518
|
+
kind: "video_frame";
|
|
1519
|
+
timestamp_ms: number;
|
|
1520
|
+
}
|
|
1521
|
+
export type LiveInputChunkWire = LiveInputChunkWireAudio | LiveInputChunkWireText | LiveInputChunkWireImage | LiveInputChunkWireVideoFrame;
|
|
1522
|
+
export interface RealtimeTranscriptEventItemObserved {
|
|
1523
|
+
item_id: string;
|
|
1524
|
+
previous_item_id?: string;
|
|
1525
|
+
response_id?: string;
|
|
1526
|
+
role: RealtimeTranscriptRole;
|
|
1527
|
+
type: "item_observed";
|
|
1528
|
+
}
|
|
1529
|
+
export interface RealtimeTranscriptEventItemSkipped {
|
|
1530
|
+
item_id: string;
|
|
1531
|
+
previous_item_id?: string;
|
|
1532
|
+
type: "item_skipped";
|
|
1533
|
+
}
|
|
1534
|
+
export interface RealtimeTranscriptEventUserTranscriptFinal {
|
|
1535
|
+
content_index: number;
|
|
1536
|
+
item_id: string;
|
|
1537
|
+
previous_item_id?: string;
|
|
1538
|
+
text: string;
|
|
1539
|
+
type: "user_transcript_final";
|
|
1540
|
+
}
|
|
1541
|
+
export interface RealtimeTranscriptEventAssistantTextDelta {
|
|
1542
|
+
content_index: number;
|
|
1543
|
+
delta: string;
|
|
1544
|
+
delta_id: string;
|
|
1545
|
+
item_id: string;
|
|
1546
|
+
previous_item_id?: string;
|
|
1547
|
+
response_id: string;
|
|
1548
|
+
type: "assistant_text_delta";
|
|
1549
|
+
}
|
|
1550
|
+
export interface RealtimeTranscriptEventAssistantTranscriptDelta {
|
|
1551
|
+
content_index: number;
|
|
1552
|
+
delta: string;
|
|
1553
|
+
delta_id: string;
|
|
1554
|
+
item_id: string;
|
|
1555
|
+
previous_item_id?: string;
|
|
1556
|
+
response_id: string;
|
|
1557
|
+
type: "assistant_transcript_delta";
|
|
1558
|
+
}
|
|
1559
|
+
export interface RealtimeTranscriptEventAssistantTranscriptTruncated {
|
|
1632
1560
|
content_index: number;
|
|
1633
1561
|
item_id: string;
|
|
1562
|
+
response_id: string;
|
|
1563
|
+
text: string;
|
|
1564
|
+
type: "assistant_transcript_truncated";
|
|
1565
|
+
}
|
|
1566
|
+
export interface RealtimeTranscriptEventAssistantTranscriptFinalText {
|
|
1567
|
+
content_index: number;
|
|
1568
|
+
item_id: string;
|
|
1569
|
+
response_id: string;
|
|
1570
|
+
text: string;
|
|
1571
|
+
type: "assistant_transcript_final_text";
|
|
1572
|
+
}
|
|
1573
|
+
export interface RealtimeTranscriptEventAssistantTurnCompleted {
|
|
1574
|
+
response_id: string;
|
|
1575
|
+
stop_reason: unknown;
|
|
1576
|
+
type: "assistant_turn_completed";
|
|
1577
|
+
usage: unknown;
|
|
1578
|
+
}
|
|
1579
|
+
export interface RealtimeTranscriptEventAssistantTurnInterrupted {
|
|
1580
|
+
response_id: string;
|
|
1581
|
+
type: "assistant_turn_interrupted";
|
|
1582
|
+
}
|
|
1583
|
+
export type RealtimeTranscriptEvent = RealtimeTranscriptEventItemObserved | RealtimeTranscriptEventItemSkipped | RealtimeTranscriptEventUserTranscriptFinal | RealtimeTranscriptEventAssistantTextDelta | RealtimeTranscriptEventAssistantTranscriptDelta | RealtimeTranscriptEventAssistantTranscriptTruncated | RealtimeTranscriptEventAssistantTranscriptFinalText | RealtimeTranscriptEventAssistantTurnCompleted | RealtimeTranscriptEventAssistantTurnInterrupted;
|
|
1584
|
+
export type RealtimeTranscriptRole = "user" | "assistant";
|
|
1585
|
+
export interface WireLiveDegradationReasonRateLimited {
|
|
1586
|
+
kind: "rate_limited";
|
|
1587
|
+
}
|
|
1588
|
+
export interface WireLiveDegradationReasonProviderThrottled {
|
|
1589
|
+
kind: "provider_throttled";
|
|
1590
|
+
}
|
|
1591
|
+
export interface WireLiveDegradationReasonNetworkUnstable {
|
|
1592
|
+
kind: "network_unstable";
|
|
1593
|
+
}
|
|
1594
|
+
export interface WireLiveDegradationReasonOther {
|
|
1595
|
+
detail: string;
|
|
1596
|
+
kind: "other";
|
|
1597
|
+
}
|
|
1598
|
+
export interface WireLiveDegradationReasonUnknown {
|
|
1599
|
+
debug: string;
|
|
1600
|
+
kind: "unknown";
|
|
1601
|
+
}
|
|
1602
|
+
export type WireLiveDegradationReason = WireLiveDegradationReasonRateLimited | WireLiveDegradationReasonProviderThrottled | WireLiveDegradationReasonNetworkUnstable | WireLiveDegradationReasonOther | WireLiveDegradationReasonUnknown;
|
|
1603
|
+
export interface WireLiveAdapterStatusIdle {
|
|
1604
|
+
status: "idle";
|
|
1605
|
+
}
|
|
1606
|
+
export interface WireLiveAdapterStatusOpening {
|
|
1607
|
+
status: "opening";
|
|
1608
|
+
}
|
|
1609
|
+
export interface WireLiveAdapterStatusReady {
|
|
1610
|
+
status: "ready";
|
|
1634
1611
|
}
|
|
1635
|
-
export interface
|
|
1636
|
-
|
|
1637
|
-
|
|
1612
|
+
export interface WireLiveAdapterStatusDegraded {
|
|
1613
|
+
reason: WireLiveDegradationReason;
|
|
1614
|
+
status: "degraded";
|
|
1638
1615
|
}
|
|
1639
|
-
export interface
|
|
1640
|
-
|
|
1641
|
-
elapsed_ms: number;
|
|
1642
|
-
timeout_ms: number;
|
|
1616
|
+
export interface WireLiveAdapterStatusClosing {
|
|
1617
|
+
status: "closing";
|
|
1643
1618
|
}
|
|
1644
|
-
export interface
|
|
1645
|
-
|
|
1646
|
-
protocol_version: RealtimeProtocolVersion;
|
|
1647
|
-
role: RealtimeChannelRole;
|
|
1648
|
-
turning_mode: RealtimeTurningMode;
|
|
1619
|
+
export interface WireLiveAdapterStatusClosed {
|
|
1620
|
+
status: "closed";
|
|
1649
1621
|
}
|
|
1650
|
-
export interface
|
|
1651
|
-
|
|
1622
|
+
export interface WireLiveAdapterStatusUnknown {
|
|
1623
|
+
debug: string;
|
|
1624
|
+
status: "unknown";
|
|
1652
1625
|
}
|
|
1653
|
-
export
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1626
|
+
export type WireLiveAdapterStatus = WireLiveAdapterStatusIdle | WireLiveAdapterStatusOpening | WireLiveAdapterStatusReady | WireLiveAdapterStatusDegraded | WireLiveAdapterStatusClosing | WireLiveAdapterStatusClosed | WireLiveAdapterStatusUnknown;
|
|
1627
|
+
export interface WireLiveConfigRejectionReasonChannelIdentitySwap {
|
|
1628
|
+
from_model: string;
|
|
1629
|
+
from_provider: WireProvider;
|
|
1630
|
+
kind: "channel_identity_swap";
|
|
1631
|
+
to_model: string;
|
|
1632
|
+
to_provider: WireProvider;
|
|
1658
1633
|
}
|
|
1659
|
-
export interface
|
|
1660
|
-
|
|
1634
|
+
export interface WireLiveConfigRejectionReasonNonRealtimeResolution {
|
|
1635
|
+
detail: string;
|
|
1636
|
+
kind: "non_realtime_resolution";
|
|
1637
|
+
}
|
|
1638
|
+
export interface WireLiveConfigRejectionReasonImageInputNotImplemented {
|
|
1639
|
+
kind: "image_input_not_implemented";
|
|
1640
|
+
}
|
|
1641
|
+
export interface WireLiveConfigRejectionReasonVideoFrameInputNotImplemented {
|
|
1642
|
+
kind: "video_frame_input_not_implemented";
|
|
1643
|
+
}
|
|
1644
|
+
export interface WireLiveConfigRejectionReasonUnsupportedInputChunkVariant {
|
|
1645
|
+
kind: "unsupported_input_chunk_variant";
|
|
1646
|
+
}
|
|
1647
|
+
export interface WireLiveConfigRejectionReasonRefreshModelSwap {
|
|
1648
|
+
from_model: string;
|
|
1649
|
+
kind: "refresh_model_swap";
|
|
1650
|
+
to_model: string;
|
|
1651
|
+
}
|
|
1652
|
+
export interface WireLiveConfigRejectionReasonRefreshProviderSwap {
|
|
1653
|
+
from_provider: string;
|
|
1654
|
+
kind: "refresh_provider_swap";
|
|
1655
|
+
to_provider: string;
|
|
1656
|
+
}
|
|
1657
|
+
export interface WireLiveConfigRejectionReasonRefreshAudioConfigMismatch {
|
|
1658
|
+
detail: string;
|
|
1659
|
+
kind: "refresh_audio_config_mismatch";
|
|
1660
|
+
}
|
|
1661
|
+
export interface WireLiveConfigRejectionReasonAudioInputFormatMismatch {
|
|
1662
|
+
actual_channels: number;
|
|
1663
|
+
actual_sample_rate_hz: number;
|
|
1664
|
+
expected_channels: number;
|
|
1665
|
+
expected_sample_rate_hz: number;
|
|
1666
|
+
kind: "audio_input_format_mismatch";
|
|
1667
|
+
}
|
|
1668
|
+
export interface WireLiveConfigRejectionReasonOther {
|
|
1669
|
+
detail: string;
|
|
1670
|
+
kind: "other";
|
|
1671
|
+
}
|
|
1672
|
+
export interface WireLiveConfigRejectionReasonUnknown {
|
|
1673
|
+
debug: string;
|
|
1674
|
+
kind: "unknown";
|
|
1675
|
+
}
|
|
1676
|
+
export type WireLiveConfigRejectionReason = WireLiveConfigRejectionReasonChannelIdentitySwap | WireLiveConfigRejectionReasonNonRealtimeResolution | WireLiveConfigRejectionReasonImageInputNotImplemented | WireLiveConfigRejectionReasonVideoFrameInputNotImplemented | WireLiveConfigRejectionReasonUnsupportedInputChunkVariant | WireLiveConfigRejectionReasonRefreshModelSwap | WireLiveConfigRejectionReasonRefreshProviderSwap | WireLiveConfigRejectionReasonRefreshAudioConfigMismatch | WireLiveConfigRejectionReasonAudioInputFormatMismatch | WireLiveConfigRejectionReasonOther | WireLiveConfigRejectionReasonUnknown;
|
|
1677
|
+
export interface WireLiveAdapterErrorCodeConnectionFailed {
|
|
1678
|
+
code: "connection_failed";
|
|
1679
|
+
}
|
|
1680
|
+
export interface WireLiveAdapterErrorCodeConnectionLost {
|
|
1681
|
+
code: "connection_lost";
|
|
1682
|
+
}
|
|
1683
|
+
export interface WireLiveAdapterErrorCodeConfigRejected {
|
|
1684
|
+
code: "config_rejected";
|
|
1685
|
+
reason: WireLiveConfigRejectionReason;
|
|
1686
|
+
}
|
|
1687
|
+
export interface WireLiveAdapterErrorCodeProviderError {
|
|
1688
|
+
code: "provider_error";
|
|
1689
|
+
}
|
|
1690
|
+
export interface WireLiveAdapterErrorCodeAuthenticationFailed {
|
|
1691
|
+
code: "authentication_failed";
|
|
1692
|
+
}
|
|
1693
|
+
export interface WireLiveAdapterErrorCodeInternalError {
|
|
1694
|
+
code: "internal_error";
|
|
1695
|
+
}
|
|
1696
|
+
export interface WireLiveAdapterErrorCodeOther {
|
|
1697
|
+
code: "other";
|
|
1698
|
+
raw: string;
|
|
1699
|
+
}
|
|
1700
|
+
export interface WireLiveAdapterErrorCodeUnknown {
|
|
1701
|
+
code: "unknown";
|
|
1702
|
+
debug: string;
|
|
1703
|
+
}
|
|
1704
|
+
export type WireLiveAdapterErrorCode = WireLiveAdapterErrorCodeConnectionFailed | WireLiveAdapterErrorCodeConnectionLost | WireLiveAdapterErrorCodeConfigRejected | WireLiveAdapterErrorCodeProviderError | WireLiveAdapterErrorCodeAuthenticationFailed | WireLiveAdapterErrorCodeInternalError | WireLiveAdapterErrorCodeOther | WireLiveAdapterErrorCodeUnknown;
|
|
1705
|
+
export interface WireLiveAdapterObservationReady {
|
|
1706
|
+
observation: "ready";
|
|
1707
|
+
}
|
|
1708
|
+
export interface WireLiveAdapterObservationUserTranscriptFinal {
|
|
1709
|
+
content_index?: number;
|
|
1710
|
+
observation: "user_transcript_final";
|
|
1711
|
+
previous_item_id?: string;
|
|
1712
|
+
provider_item_id?: string;
|
|
1713
|
+
text: string;
|
|
1661
1714
|
}
|
|
1662
|
-
export interface
|
|
1663
|
-
|
|
1715
|
+
export interface WireLiveAdapterObservationAssistantTextDelta {
|
|
1716
|
+
content_index?: number;
|
|
1717
|
+
delta: string;
|
|
1718
|
+
delta_id?: string;
|
|
1719
|
+
observation: "assistant_text_delta";
|
|
1720
|
+
previous_item_id?: string;
|
|
1721
|
+
provider_item_id?: string;
|
|
1722
|
+
response_id?: string;
|
|
1723
|
+
}
|
|
1724
|
+
export interface WireLiveAdapterObservationAssistantTranscriptDelta {
|
|
1725
|
+
content_index?: number;
|
|
1726
|
+
delta: string;
|
|
1727
|
+
delta_id?: string;
|
|
1728
|
+
observation: "assistant_transcript_delta";
|
|
1729
|
+
previous_item_id?: string;
|
|
1730
|
+
provider_item_id?: string;
|
|
1731
|
+
response_id?: string;
|
|
1732
|
+
}
|
|
1733
|
+
export interface WireLiveAdapterObservationAssistantAudioChunk {
|
|
1734
|
+
channels: number;
|
|
1735
|
+
content_index?: number;
|
|
1736
|
+
data: string;
|
|
1737
|
+
item_id?: string;
|
|
1738
|
+
observation: "assistant_audio_chunk";
|
|
1739
|
+
response_id?: string;
|
|
1740
|
+
sample_rate_hz: number;
|
|
1741
|
+
}
|
|
1742
|
+
export interface WireLiveAdapterObservationAssistantTranscriptFinal {
|
|
1743
|
+
content_index?: number;
|
|
1744
|
+
observation: "assistant_transcript_final";
|
|
1745
|
+
previous_item_id?: string;
|
|
1746
|
+
provider_item_id: string;
|
|
1747
|
+
response_id?: string;
|
|
1748
|
+
stop_reason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "content_filter" | "cancelled";
|
|
1749
|
+
text: string;
|
|
1750
|
+
usage: Record<string, unknown>;
|
|
1751
|
+
}
|
|
1752
|
+
export interface WireLiveAdapterObservationAssistantTranscriptTruncated {
|
|
1753
|
+
content_index?: number;
|
|
1754
|
+
observation: "assistant_transcript_truncated";
|
|
1755
|
+
previous_item_id?: string;
|
|
1756
|
+
provider_item_id?: string;
|
|
1757
|
+
response_id?: string;
|
|
1758
|
+
text?: string;
|
|
1759
|
+
}
|
|
1760
|
+
export interface WireLiveAdapterObservationRealtimeTranscript {
|
|
1761
|
+
event: RealtimeTranscriptEvent;
|
|
1762
|
+
observation: "realtime_transcript";
|
|
1763
|
+
}
|
|
1764
|
+
export interface WireLiveAdapterObservationToolCallRequested {
|
|
1765
|
+
arguments: unknown;
|
|
1766
|
+
observation: "tool_call_requested";
|
|
1767
|
+
provider_call_id: string;
|
|
1768
|
+
tool_name: string;
|
|
1769
|
+
}
|
|
1770
|
+
export interface WireLiveAdapterObservationTurnInterrupted {
|
|
1771
|
+
observation: "turn_interrupted";
|
|
1772
|
+
response_id?: string;
|
|
1773
|
+
}
|
|
1774
|
+
export interface WireLiveAdapterObservationTurnCompleted {
|
|
1775
|
+
observation: "turn_completed";
|
|
1776
|
+
response_id?: string;
|
|
1777
|
+
stop_reason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "content_filter" | "cancelled";
|
|
1778
|
+
usage: Record<string, unknown>;
|
|
1779
|
+
}
|
|
1780
|
+
export interface WireLiveAdapterObservationStatusChanged {
|
|
1781
|
+
observation: "status_changed";
|
|
1782
|
+
status: WireLiveAdapterStatus;
|
|
1664
1783
|
}
|
|
1665
|
-
export interface
|
|
1666
|
-
code:
|
|
1667
|
-
details?: RealtimeErrorDetails;
|
|
1784
|
+
export interface WireLiveAdapterObservationError {
|
|
1785
|
+
code: WireLiveAdapterErrorCode;
|
|
1668
1786
|
message: string;
|
|
1787
|
+
observation: "error";
|
|
1669
1788
|
}
|
|
1670
|
-
export interface
|
|
1671
|
-
|
|
1789
|
+
export interface WireLiveAdapterObservationCommandRejected {
|
|
1790
|
+
code: WireLiveAdapterErrorCode;
|
|
1791
|
+
message: string;
|
|
1792
|
+
observation: "command_rejected";
|
|
1793
|
+
}
|
|
1794
|
+
export interface WireLiveAdapterObservationUnknown {
|
|
1795
|
+
debug: string;
|
|
1796
|
+
observation: "unknown";
|
|
1672
1797
|
}
|
|
1798
|
+
export type WireLiveAdapterObservation = WireLiveAdapterObservationReady | WireLiveAdapterObservationUserTranscriptFinal | WireLiveAdapterObservationAssistantTextDelta | WireLiveAdapterObservationAssistantTranscriptDelta | WireLiveAdapterObservationAssistantAudioChunk | WireLiveAdapterObservationAssistantTranscriptFinal | WireLiveAdapterObservationAssistantTranscriptTruncated | WireLiveAdapterObservationRealtimeTranscript | WireLiveAdapterObservationToolCallRequested | WireLiveAdapterObservationTurnInterrupted | WireLiveAdapterObservationTurnCompleted | WireLiveAdapterObservationStatusChanged | WireLiveAdapterObservationError | WireLiveAdapterObservationCommandRejected | WireLiveAdapterObservationUnknown;
|
|
1673
1799
|
export interface RuntimeAcceptResult {
|
|
1674
1800
|
existing_id?: string;
|
|
1675
1801
|
input_id?: string;
|
|
@@ -1982,30 +2108,71 @@ export interface WireAuthErrorOther {
|
|
|
1982
2108
|
kind: "other";
|
|
1983
2109
|
}
|
|
1984
2110
|
export type WireAuthError = WireAuthErrorMissingSecret | WireAuthErrorUnsupportedCombination | WireAuthErrorMissingRequiredMetadata | WireAuthErrorWorkspaceMismatch | WireAuthErrorExpired | WireAuthErrorStaleCredential | WireAuthErrorRefreshRequired | WireAuthErrorLeaseAbsent | WireAuthErrorUserReauthRequired | WireAuthErrorRefreshFailed | WireAuthErrorInteractiveLoginRequired | WireAuthErrorHostOwnedUnavailable | WireAuthErrorIo | WireAuthErrorOther;
|
|
2111
|
+
export type WireProvider = "anthropic" | "openai" | "gemini" | "self_hosted" | "other" | "unknown";
|
|
2112
|
+
export interface WireTranscriptSourceSpoken {
|
|
2113
|
+
kind: "spoken";
|
|
2114
|
+
}
|
|
2115
|
+
export interface WireTranscriptSourceUnknown {
|
|
2116
|
+
debug: string;
|
|
2117
|
+
kind: "unknown";
|
|
2118
|
+
}
|
|
2119
|
+
export type WireTranscriptSource = WireTranscriptSourceSpoken | WireTranscriptSourceUnknown;
|
|
1985
2120
|
export interface WireAssistantBlockText {
|
|
1986
2121
|
block_type: "text";
|
|
1987
|
-
data:
|
|
2122
|
+
data: {
|
|
2123
|
+
meta?: Record<string, unknown>;
|
|
2124
|
+
text: string;
|
|
2125
|
+
};
|
|
2126
|
+
}
|
|
2127
|
+
export interface WireAssistantBlockTranscript {
|
|
2128
|
+
block_type: "transcript";
|
|
2129
|
+
data: {
|
|
2130
|
+
meta?: Record<string, unknown>;
|
|
2131
|
+
source: WireTranscriptSource;
|
|
2132
|
+
text: string;
|
|
2133
|
+
};
|
|
1988
2134
|
}
|
|
1989
2135
|
export interface WireAssistantBlockReasoning {
|
|
1990
2136
|
block_type: "reasoning";
|
|
1991
|
-
data:
|
|
2137
|
+
data: {
|
|
2138
|
+
meta?: Record<string, unknown>;
|
|
2139
|
+
text?: string;
|
|
2140
|
+
};
|
|
1992
2141
|
}
|
|
1993
2142
|
export interface WireAssistantBlockToolUse {
|
|
1994
2143
|
block_type: "tool_use";
|
|
1995
|
-
data:
|
|
2144
|
+
data: {
|
|
2145
|
+
args: unknown;
|
|
2146
|
+
id: string;
|
|
2147
|
+
meta?: Record<string, unknown>;
|
|
2148
|
+
name: string;
|
|
2149
|
+
};
|
|
1996
2150
|
}
|
|
1997
2151
|
export interface WireAssistantBlockServerToolContent {
|
|
1998
2152
|
block_type: "server_tool_content";
|
|
1999
|
-
data:
|
|
2153
|
+
data: {
|
|
2154
|
+
content: unknown;
|
|
2155
|
+
id?: string;
|
|
2156
|
+
meta?: Record<string, unknown>;
|
|
2157
|
+
name: string;
|
|
2158
|
+
};
|
|
2000
2159
|
}
|
|
2001
2160
|
export interface WireAssistantBlockImage {
|
|
2002
2161
|
block_type: "image";
|
|
2003
|
-
data:
|
|
2162
|
+
data: {
|
|
2163
|
+
blob_ref: Record<string, unknown>;
|
|
2164
|
+
height: number;
|
|
2165
|
+
image_id: string;
|
|
2166
|
+
media_type: string;
|
|
2167
|
+
meta: Record<string, unknown>;
|
|
2168
|
+
revised_prompt: Record<string, unknown>;
|
|
2169
|
+
width: number;
|
|
2170
|
+
};
|
|
2004
2171
|
}
|
|
2005
2172
|
export interface WireAssistantBlockUnknown {
|
|
2006
2173
|
block_type: "unknown";
|
|
2007
2174
|
}
|
|
2008
|
-
export type WireAssistantBlock = WireAssistantBlockText | WireAssistantBlockReasoning | WireAssistantBlockToolUse | WireAssistantBlockServerToolContent | WireAssistantBlockImage | WireAssistantBlockUnknown;
|
|
2175
|
+
export type WireAssistantBlock = WireAssistantBlockText | WireAssistantBlockTranscript | WireAssistantBlockReasoning | WireAssistantBlockToolUse | WireAssistantBlockServerToolContent | WireAssistantBlockImage | WireAssistantBlockUnknown;
|
|
2009
2176
|
export interface WireImageOperationPhaseRequested {
|
|
2010
2177
|
phase: "requested";
|
|
2011
2178
|
}
|