@rkat/sdk 0.6.4 → 0.6.5
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 +87 -15
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +141 -30
- package/dist/client.js.map +1 -1
- package/dist/generated/types.d.ts +421 -269
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/types.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/live.d.ts +130 -0
- package/dist/live.d.ts.map +1 -0
- package/dist/live.js +188 -0
- package/dist/live.js.map +1 -0
- package/dist/types.d.ts +14 -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.5";
|
|
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,391 @@ 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
|
+
turning_mode?: RealtimeTurningMode;
|
|
1402
|
+
}
|
|
1403
|
+
export interface WireLiveChannelCapabilities {
|
|
1404
|
+
audio_in: boolean;
|
|
1405
|
+
audio_out: boolean;
|
|
1406
|
+
barge_in_supported: boolean;
|
|
1407
|
+
image_in: boolean;
|
|
1408
|
+
provider_native_resume: boolean;
|
|
1409
|
+
text_in: boolean;
|
|
1410
|
+
text_out: boolean;
|
|
1411
|
+
transcript_supported: boolean;
|
|
1412
|
+
video_in: boolean;
|
|
1413
|
+
}
|
|
1414
|
+
export interface WireLiveContinuityModeFresh {
|
|
1415
|
+
mode: "fresh";
|
|
1416
|
+
}
|
|
1417
|
+
export interface WireLiveContinuityModeTranscriptOnly {
|
|
1418
|
+
mode: "transcript_only";
|
|
1419
|
+
}
|
|
1420
|
+
export interface WireLiveContinuityModeDegraded {
|
|
1421
|
+
mode: "degraded";
|
|
1422
|
+
}
|
|
1423
|
+
export interface WireLiveContinuityModeProviderNativeResume {
|
|
1424
|
+
mode: "provider_native_resume";
|
|
1425
|
+
provider_session_id: string;
|
|
1426
|
+
}
|
|
1427
|
+
export interface WireLiveContinuityModeUnknown {
|
|
1428
|
+
debug: string;
|
|
1429
|
+
mode: "unknown";
|
|
1430
|
+
}
|
|
1431
|
+
export type WireLiveContinuityMode = WireLiveContinuityModeFresh | WireLiveContinuityModeTranscriptOnly | WireLiveContinuityModeDegraded | WireLiveContinuityModeProviderNativeResume | WireLiveContinuityModeUnknown;
|
|
1432
|
+
export interface WireLiveTransportBootstrapWebsocket {
|
|
1433
|
+
token: string;
|
|
1434
|
+
transport: "websocket";
|
|
1435
|
+
url: string;
|
|
1436
|
+
}
|
|
1437
|
+
export interface WireLiveTransportBootstrapUnknown {
|
|
1438
|
+
debug: string;
|
|
1439
|
+
transport: "unknown";
|
|
1440
|
+
}
|
|
1441
|
+
export type WireLiveTransportBootstrap = WireLiveTransportBootstrapWebsocket | WireLiveTransportBootstrapUnknown;
|
|
1442
|
+
export interface LiveOpenResult {
|
|
1443
|
+
capabilities: WireLiveChannelCapabilities;
|
|
1444
|
+
channel_id: string;
|
|
1445
|
+
continuity: WireLiveContinuityMode;
|
|
1446
|
+
transport: WireLiveTransportBootstrap;
|
|
1447
|
+
}
|
|
1448
|
+
export interface LiveChannelParams {
|
|
1449
|
+
channel_id: string;
|
|
1450
|
+
}
|
|
1451
|
+
export interface LiveStatusResult {
|
|
1452
|
+
channel_id: string;
|
|
1453
|
+
status: WireLiveAdapterStatus;
|
|
1454
|
+
}
|
|
1455
|
+
export interface LiveSendInputParams {
|
|
1456
|
+
channel_id: string;
|
|
1457
|
+
chunk: LiveInputChunkWire;
|
|
1458
|
+
}
|
|
1459
|
+
export interface LiveTruncateParams {
|
|
1631
1460
|
audio_played_ms: number;
|
|
1461
|
+
channel_id: string;
|
|
1462
|
+
content_index: number;
|
|
1463
|
+
item_id: string;
|
|
1464
|
+
}
|
|
1465
|
+
export interface WireLiveResponseModalityAudio {
|
|
1466
|
+
modality: "audio";
|
|
1467
|
+
}
|
|
1468
|
+
export interface WireLiveResponseModalityText {
|
|
1469
|
+
modality: "text";
|
|
1470
|
+
}
|
|
1471
|
+
export interface WireLiveResponseModalityUnknown {
|
|
1472
|
+
debug: string;
|
|
1473
|
+
modality: "unknown";
|
|
1474
|
+
}
|
|
1475
|
+
export type WireLiveResponseModality = WireLiveResponseModalityAudio | WireLiveResponseModalityText | WireLiveResponseModalityUnknown;
|
|
1476
|
+
export interface LiveCommitInputParams {
|
|
1477
|
+
channel_id: string;
|
|
1478
|
+
response_modality?: WireLiveResponseModality;
|
|
1479
|
+
}
|
|
1480
|
+
export type LiveRefreshStatus = "queued";
|
|
1481
|
+
export interface LiveRefreshResult {
|
|
1482
|
+
refresh_enqueued: boolean;
|
|
1483
|
+
status: "queued";
|
|
1484
|
+
}
|
|
1485
|
+
export interface LiveInputChunkWireAudio {
|
|
1486
|
+
channels: number;
|
|
1487
|
+
data: string;
|
|
1488
|
+
kind: "audio";
|
|
1489
|
+
sample_rate_hz: number;
|
|
1490
|
+
}
|
|
1491
|
+
export interface LiveInputChunkWireText {
|
|
1492
|
+
kind: "text";
|
|
1493
|
+
text: string;
|
|
1494
|
+
}
|
|
1495
|
+
export interface LiveInputChunkWireImage {
|
|
1496
|
+
data: string;
|
|
1497
|
+
kind: "image";
|
|
1498
|
+
mime: string;
|
|
1499
|
+
}
|
|
1500
|
+
export interface LiveInputChunkWireVideoFrame {
|
|
1501
|
+
codec: string;
|
|
1502
|
+
data: string;
|
|
1503
|
+
kind: "video_frame";
|
|
1504
|
+
timestamp_ms: number;
|
|
1505
|
+
}
|
|
1506
|
+
export type LiveInputChunkWire = LiveInputChunkWireAudio | LiveInputChunkWireText | LiveInputChunkWireImage | LiveInputChunkWireVideoFrame;
|
|
1507
|
+
export interface RealtimeTranscriptEventItemObserved {
|
|
1508
|
+
item_id: string;
|
|
1509
|
+
previous_item_id?: string;
|
|
1510
|
+
response_id?: string;
|
|
1511
|
+
role: RealtimeTranscriptRole;
|
|
1512
|
+
type: "item_observed";
|
|
1513
|
+
}
|
|
1514
|
+
export interface RealtimeTranscriptEventItemSkipped {
|
|
1515
|
+
item_id: string;
|
|
1516
|
+
previous_item_id?: string;
|
|
1517
|
+
type: "item_skipped";
|
|
1518
|
+
}
|
|
1519
|
+
export interface RealtimeTranscriptEventUserTranscriptFinal {
|
|
1520
|
+
content_index: number;
|
|
1521
|
+
item_id: string;
|
|
1522
|
+
previous_item_id?: string;
|
|
1523
|
+
text: string;
|
|
1524
|
+
type: "user_transcript_final";
|
|
1525
|
+
}
|
|
1526
|
+
export interface RealtimeTranscriptEventAssistantTextDelta {
|
|
1527
|
+
content_index: number;
|
|
1528
|
+
delta: string;
|
|
1529
|
+
delta_id: string;
|
|
1530
|
+
item_id: string;
|
|
1531
|
+
previous_item_id?: string;
|
|
1532
|
+
response_id: string;
|
|
1533
|
+
type: "assistant_text_delta";
|
|
1534
|
+
}
|
|
1535
|
+
export interface RealtimeTranscriptEventAssistantTranscriptDelta {
|
|
1536
|
+
content_index: number;
|
|
1537
|
+
delta: string;
|
|
1538
|
+
delta_id: string;
|
|
1539
|
+
item_id: string;
|
|
1540
|
+
previous_item_id?: string;
|
|
1541
|
+
response_id: string;
|
|
1542
|
+
type: "assistant_transcript_delta";
|
|
1543
|
+
}
|
|
1544
|
+
export interface RealtimeTranscriptEventAssistantTranscriptTruncated {
|
|
1545
|
+
content_index: number;
|
|
1546
|
+
item_id: string;
|
|
1547
|
+
response_id: string;
|
|
1548
|
+
text: string;
|
|
1549
|
+
type: "assistant_transcript_truncated";
|
|
1550
|
+
}
|
|
1551
|
+
export interface RealtimeTranscriptEventAssistantTranscriptFinalText {
|
|
1632
1552
|
content_index: number;
|
|
1633
1553
|
item_id: string;
|
|
1554
|
+
response_id: string;
|
|
1555
|
+
text: string;
|
|
1556
|
+
type: "assistant_transcript_final_text";
|
|
1557
|
+
}
|
|
1558
|
+
export interface RealtimeTranscriptEventAssistantTurnCompleted {
|
|
1559
|
+
response_id: string;
|
|
1560
|
+
stop_reason: unknown;
|
|
1561
|
+
type: "assistant_turn_completed";
|
|
1562
|
+
usage: unknown;
|
|
1634
1563
|
}
|
|
1635
|
-
export interface
|
|
1636
|
-
|
|
1637
|
-
|
|
1564
|
+
export interface RealtimeTranscriptEventAssistantTurnInterrupted {
|
|
1565
|
+
response_id: string;
|
|
1566
|
+
type: "assistant_turn_interrupted";
|
|
1638
1567
|
}
|
|
1639
|
-
export
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1568
|
+
export type RealtimeTranscriptEvent = RealtimeTranscriptEventItemObserved | RealtimeTranscriptEventItemSkipped | RealtimeTranscriptEventUserTranscriptFinal | RealtimeTranscriptEventAssistantTextDelta | RealtimeTranscriptEventAssistantTranscriptDelta | RealtimeTranscriptEventAssistantTranscriptTruncated | RealtimeTranscriptEventAssistantTranscriptFinalText | RealtimeTranscriptEventAssistantTurnCompleted | RealtimeTranscriptEventAssistantTurnInterrupted;
|
|
1569
|
+
export type RealtimeTranscriptRole = "user" | "assistant";
|
|
1570
|
+
export interface WireLiveDegradationReasonRateLimited {
|
|
1571
|
+
kind: "rate_limited";
|
|
1643
1572
|
}
|
|
1644
|
-
export interface
|
|
1645
|
-
|
|
1646
|
-
protocol_version: RealtimeProtocolVersion;
|
|
1647
|
-
role: RealtimeChannelRole;
|
|
1648
|
-
turning_mode: RealtimeTurningMode;
|
|
1573
|
+
export interface WireLiveDegradationReasonProviderThrottled {
|
|
1574
|
+
kind: "provider_throttled";
|
|
1649
1575
|
}
|
|
1650
|
-
export interface
|
|
1651
|
-
|
|
1576
|
+
export interface WireLiveDegradationReasonNetworkUnstable {
|
|
1577
|
+
kind: "network_unstable";
|
|
1652
1578
|
}
|
|
1653
|
-
export interface
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1579
|
+
export interface WireLiveDegradationReasonOther {
|
|
1580
|
+
detail: string;
|
|
1581
|
+
kind: "other";
|
|
1582
|
+
}
|
|
1583
|
+
export interface WireLiveDegradationReasonUnknown {
|
|
1584
|
+
debug: string;
|
|
1585
|
+
kind: "unknown";
|
|
1586
|
+
}
|
|
1587
|
+
export type WireLiveDegradationReason = WireLiveDegradationReasonRateLimited | WireLiveDegradationReasonProviderThrottled | WireLiveDegradationReasonNetworkUnstable | WireLiveDegradationReasonOther | WireLiveDegradationReasonUnknown;
|
|
1588
|
+
export interface WireLiveAdapterStatusIdle {
|
|
1589
|
+
status: "idle";
|
|
1590
|
+
}
|
|
1591
|
+
export interface WireLiveAdapterStatusOpening {
|
|
1592
|
+
status: "opening";
|
|
1593
|
+
}
|
|
1594
|
+
export interface WireLiveAdapterStatusReady {
|
|
1595
|
+
status: "ready";
|
|
1658
1596
|
}
|
|
1659
|
-
export interface
|
|
1660
|
-
|
|
1597
|
+
export interface WireLiveAdapterStatusDegraded {
|
|
1598
|
+
reason: WireLiveDegradationReason;
|
|
1599
|
+
status: "degraded";
|
|
1600
|
+
}
|
|
1601
|
+
export interface WireLiveAdapterStatusClosing {
|
|
1602
|
+
status: "closing";
|
|
1603
|
+
}
|
|
1604
|
+
export interface WireLiveAdapterStatusClosed {
|
|
1605
|
+
status: "closed";
|
|
1606
|
+
}
|
|
1607
|
+
export interface WireLiveAdapterStatusUnknown {
|
|
1608
|
+
debug: string;
|
|
1609
|
+
status: "unknown";
|
|
1610
|
+
}
|
|
1611
|
+
export type WireLiveAdapterStatus = WireLiveAdapterStatusIdle | WireLiveAdapterStatusOpening | WireLiveAdapterStatusReady | WireLiveAdapterStatusDegraded | WireLiveAdapterStatusClosing | WireLiveAdapterStatusClosed | WireLiveAdapterStatusUnknown;
|
|
1612
|
+
export interface WireLiveConfigRejectionReasonChannelIdentitySwap {
|
|
1613
|
+
from_model: string;
|
|
1614
|
+
from_provider: WireProvider;
|
|
1615
|
+
kind: "channel_identity_swap";
|
|
1616
|
+
to_model: string;
|
|
1617
|
+
to_provider: WireProvider;
|
|
1618
|
+
}
|
|
1619
|
+
export interface WireLiveConfigRejectionReasonNonRealtimeResolution {
|
|
1620
|
+
detail: string;
|
|
1621
|
+
kind: "non_realtime_resolution";
|
|
1661
1622
|
}
|
|
1662
|
-
export interface
|
|
1663
|
-
|
|
1623
|
+
export interface WireLiveConfigRejectionReasonImageInputNotImplemented {
|
|
1624
|
+
kind: "image_input_not_implemented";
|
|
1664
1625
|
}
|
|
1665
|
-
export interface
|
|
1666
|
-
|
|
1667
|
-
|
|
1626
|
+
export interface WireLiveConfigRejectionReasonVideoFrameInputNotImplemented {
|
|
1627
|
+
kind: "video_frame_input_not_implemented";
|
|
1628
|
+
}
|
|
1629
|
+
export interface WireLiveConfigRejectionReasonUnsupportedInputChunkVariant {
|
|
1630
|
+
kind: "unsupported_input_chunk_variant";
|
|
1631
|
+
}
|
|
1632
|
+
export interface WireLiveConfigRejectionReasonRefreshModelSwap {
|
|
1633
|
+
from_model: string;
|
|
1634
|
+
kind: "refresh_model_swap";
|
|
1635
|
+
to_model: string;
|
|
1636
|
+
}
|
|
1637
|
+
export interface WireLiveConfigRejectionReasonRefreshProviderSwap {
|
|
1638
|
+
from_provider: string;
|
|
1639
|
+
kind: "refresh_provider_swap";
|
|
1640
|
+
to_provider: string;
|
|
1641
|
+
}
|
|
1642
|
+
export interface WireLiveConfigRejectionReasonRefreshAudioConfigMismatch {
|
|
1643
|
+
detail: string;
|
|
1644
|
+
kind: "refresh_audio_config_mismatch";
|
|
1645
|
+
}
|
|
1646
|
+
export interface WireLiveConfigRejectionReasonAudioInputFormatMismatch {
|
|
1647
|
+
actual_channels: number;
|
|
1648
|
+
actual_sample_rate_hz: number;
|
|
1649
|
+
expected_channels: number;
|
|
1650
|
+
expected_sample_rate_hz: number;
|
|
1651
|
+
kind: "audio_input_format_mismatch";
|
|
1652
|
+
}
|
|
1653
|
+
export interface WireLiveConfigRejectionReasonOther {
|
|
1654
|
+
detail: string;
|
|
1655
|
+
kind: "other";
|
|
1656
|
+
}
|
|
1657
|
+
export interface WireLiveConfigRejectionReasonUnknown {
|
|
1658
|
+
debug: string;
|
|
1659
|
+
kind: "unknown";
|
|
1660
|
+
}
|
|
1661
|
+
export type WireLiveConfigRejectionReason = WireLiveConfigRejectionReasonChannelIdentitySwap | WireLiveConfigRejectionReasonNonRealtimeResolution | WireLiveConfigRejectionReasonImageInputNotImplemented | WireLiveConfigRejectionReasonVideoFrameInputNotImplemented | WireLiveConfigRejectionReasonUnsupportedInputChunkVariant | WireLiveConfigRejectionReasonRefreshModelSwap | WireLiveConfigRejectionReasonRefreshProviderSwap | WireLiveConfigRejectionReasonRefreshAudioConfigMismatch | WireLiveConfigRejectionReasonAudioInputFormatMismatch | WireLiveConfigRejectionReasonOther | WireLiveConfigRejectionReasonUnknown;
|
|
1662
|
+
export interface WireLiveAdapterErrorCodeConnectionFailed {
|
|
1663
|
+
code: "connection_failed";
|
|
1664
|
+
}
|
|
1665
|
+
export interface WireLiveAdapterErrorCodeConnectionLost {
|
|
1666
|
+
code: "connection_lost";
|
|
1667
|
+
}
|
|
1668
|
+
export interface WireLiveAdapterErrorCodeConfigRejected {
|
|
1669
|
+
code: "config_rejected";
|
|
1670
|
+
reason: WireLiveConfigRejectionReason;
|
|
1671
|
+
}
|
|
1672
|
+
export interface WireLiveAdapterErrorCodeProviderError {
|
|
1673
|
+
code: "provider_error";
|
|
1674
|
+
}
|
|
1675
|
+
export interface WireLiveAdapterErrorCodeAuthenticationFailed {
|
|
1676
|
+
code: "authentication_failed";
|
|
1677
|
+
}
|
|
1678
|
+
export interface WireLiveAdapterErrorCodeInternalError {
|
|
1679
|
+
code: "internal_error";
|
|
1680
|
+
}
|
|
1681
|
+
export interface WireLiveAdapterErrorCodeOther {
|
|
1682
|
+
code: "other";
|
|
1683
|
+
raw: string;
|
|
1684
|
+
}
|
|
1685
|
+
export interface WireLiveAdapterErrorCodeUnknown {
|
|
1686
|
+
code: "unknown";
|
|
1687
|
+
debug: string;
|
|
1688
|
+
}
|
|
1689
|
+
export type WireLiveAdapterErrorCode = WireLiveAdapterErrorCodeConnectionFailed | WireLiveAdapterErrorCodeConnectionLost | WireLiveAdapterErrorCodeConfigRejected | WireLiveAdapterErrorCodeProviderError | WireLiveAdapterErrorCodeAuthenticationFailed | WireLiveAdapterErrorCodeInternalError | WireLiveAdapterErrorCodeOther | WireLiveAdapterErrorCodeUnknown;
|
|
1690
|
+
export interface WireLiveAdapterObservationReady {
|
|
1691
|
+
observation: "ready";
|
|
1692
|
+
}
|
|
1693
|
+
export interface WireLiveAdapterObservationUserTranscriptFinal {
|
|
1694
|
+
content_index?: number;
|
|
1695
|
+
observation: "user_transcript_final";
|
|
1696
|
+
previous_item_id?: string;
|
|
1697
|
+
provider_item_id?: string;
|
|
1698
|
+
text: string;
|
|
1699
|
+
}
|
|
1700
|
+
export interface WireLiveAdapterObservationAssistantTextDelta {
|
|
1701
|
+
content_index?: number;
|
|
1702
|
+
delta: string;
|
|
1703
|
+
delta_id?: string;
|
|
1704
|
+
observation: "assistant_text_delta";
|
|
1705
|
+
previous_item_id?: string;
|
|
1706
|
+
provider_item_id?: string;
|
|
1707
|
+
response_id?: string;
|
|
1708
|
+
}
|
|
1709
|
+
export interface WireLiveAdapterObservationAssistantTranscriptDelta {
|
|
1710
|
+
content_index?: number;
|
|
1711
|
+
delta: string;
|
|
1712
|
+
delta_id?: string;
|
|
1713
|
+
observation: "assistant_transcript_delta";
|
|
1714
|
+
previous_item_id?: string;
|
|
1715
|
+
provider_item_id?: string;
|
|
1716
|
+
response_id?: string;
|
|
1717
|
+
}
|
|
1718
|
+
export interface WireLiveAdapterObservationAssistantAudioChunk {
|
|
1719
|
+
channels: number;
|
|
1720
|
+
content_index?: number;
|
|
1721
|
+
data: string;
|
|
1722
|
+
item_id?: string;
|
|
1723
|
+
observation: "assistant_audio_chunk";
|
|
1724
|
+
response_id?: string;
|
|
1725
|
+
sample_rate_hz: number;
|
|
1726
|
+
}
|
|
1727
|
+
export interface WireLiveAdapterObservationAssistantTranscriptFinal {
|
|
1728
|
+
content_index?: number;
|
|
1729
|
+
observation: "assistant_transcript_final";
|
|
1730
|
+
previous_item_id?: string;
|
|
1731
|
+
provider_item_id: string;
|
|
1732
|
+
response_id?: string;
|
|
1733
|
+
stop_reason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "content_filter" | "cancelled";
|
|
1734
|
+
text: string;
|
|
1735
|
+
usage: Record<string, unknown>;
|
|
1736
|
+
}
|
|
1737
|
+
export interface WireLiveAdapterObservationAssistantTranscriptTruncated {
|
|
1738
|
+
content_index?: number;
|
|
1739
|
+
observation: "assistant_transcript_truncated";
|
|
1740
|
+
previous_item_id?: string;
|
|
1741
|
+
provider_item_id?: string;
|
|
1742
|
+
response_id?: string;
|
|
1743
|
+
text?: string;
|
|
1744
|
+
}
|
|
1745
|
+
export interface WireLiveAdapterObservationRealtimeTranscript {
|
|
1746
|
+
event: RealtimeTranscriptEvent;
|
|
1747
|
+
observation: "realtime_transcript";
|
|
1748
|
+
}
|
|
1749
|
+
export interface WireLiveAdapterObservationToolCallRequested {
|
|
1750
|
+
arguments: unknown;
|
|
1751
|
+
observation: "tool_call_requested";
|
|
1752
|
+
provider_call_id: string;
|
|
1753
|
+
tool_name: string;
|
|
1754
|
+
}
|
|
1755
|
+
export interface WireLiveAdapterObservationTurnInterrupted {
|
|
1756
|
+
observation: "turn_interrupted";
|
|
1757
|
+
response_id?: string;
|
|
1758
|
+
}
|
|
1759
|
+
export interface WireLiveAdapterObservationTurnCompleted {
|
|
1760
|
+
observation: "turn_completed";
|
|
1761
|
+
response_id?: string;
|
|
1762
|
+
stop_reason: "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "content_filter" | "cancelled";
|
|
1763
|
+
usage: Record<string, unknown>;
|
|
1764
|
+
}
|
|
1765
|
+
export interface WireLiveAdapterObservationStatusChanged {
|
|
1766
|
+
observation: "status_changed";
|
|
1767
|
+
status: WireLiveAdapterStatus;
|
|
1768
|
+
}
|
|
1769
|
+
export interface WireLiveAdapterObservationError {
|
|
1770
|
+
code: WireLiveAdapterErrorCode;
|
|
1668
1771
|
message: string;
|
|
1772
|
+
observation: "error";
|
|
1669
1773
|
}
|
|
1670
|
-
export interface
|
|
1671
|
-
|
|
1774
|
+
export interface WireLiveAdapterObservationCommandRejected {
|
|
1775
|
+
code: WireLiveAdapterErrorCode;
|
|
1776
|
+
message: string;
|
|
1777
|
+
observation: "command_rejected";
|
|
1778
|
+
}
|
|
1779
|
+
export interface WireLiveAdapterObservationUnknown {
|
|
1780
|
+
debug: string;
|
|
1781
|
+
observation: "unknown";
|
|
1672
1782
|
}
|
|
1783
|
+
export type WireLiveAdapterObservation = WireLiveAdapterObservationReady | WireLiveAdapterObservationUserTranscriptFinal | WireLiveAdapterObservationAssistantTextDelta | WireLiveAdapterObservationAssistantTranscriptDelta | WireLiveAdapterObservationAssistantAudioChunk | WireLiveAdapterObservationAssistantTranscriptFinal | WireLiveAdapterObservationAssistantTranscriptTruncated | WireLiveAdapterObservationRealtimeTranscript | WireLiveAdapterObservationToolCallRequested | WireLiveAdapterObservationTurnInterrupted | WireLiveAdapterObservationTurnCompleted | WireLiveAdapterObservationStatusChanged | WireLiveAdapterObservationError | WireLiveAdapterObservationCommandRejected | WireLiveAdapterObservationUnknown;
|
|
1673
1784
|
export interface RuntimeAcceptResult {
|
|
1674
1785
|
existing_id?: string;
|
|
1675
1786
|
input_id?: string;
|
|
@@ -1982,30 +2093,71 @@ export interface WireAuthErrorOther {
|
|
|
1982
2093
|
kind: "other";
|
|
1983
2094
|
}
|
|
1984
2095
|
export type WireAuthError = WireAuthErrorMissingSecret | WireAuthErrorUnsupportedCombination | WireAuthErrorMissingRequiredMetadata | WireAuthErrorWorkspaceMismatch | WireAuthErrorExpired | WireAuthErrorStaleCredential | WireAuthErrorRefreshRequired | WireAuthErrorLeaseAbsent | WireAuthErrorUserReauthRequired | WireAuthErrorRefreshFailed | WireAuthErrorInteractiveLoginRequired | WireAuthErrorHostOwnedUnavailable | WireAuthErrorIo | WireAuthErrorOther;
|
|
2096
|
+
export type WireProvider = "anthropic" | "openai" | "gemini" | "self_hosted" | "other" | "unknown";
|
|
2097
|
+
export interface WireTranscriptSourceSpoken {
|
|
2098
|
+
kind: "spoken";
|
|
2099
|
+
}
|
|
2100
|
+
export interface WireTranscriptSourceUnknown {
|
|
2101
|
+
debug: string;
|
|
2102
|
+
kind: "unknown";
|
|
2103
|
+
}
|
|
2104
|
+
export type WireTranscriptSource = WireTranscriptSourceSpoken | WireTranscriptSourceUnknown;
|
|
1985
2105
|
export interface WireAssistantBlockText {
|
|
1986
2106
|
block_type: "text";
|
|
1987
|
-
data:
|
|
2107
|
+
data: {
|
|
2108
|
+
meta?: Record<string, unknown>;
|
|
2109
|
+
text: string;
|
|
2110
|
+
};
|
|
2111
|
+
}
|
|
2112
|
+
export interface WireAssistantBlockTranscript {
|
|
2113
|
+
block_type: "transcript";
|
|
2114
|
+
data: {
|
|
2115
|
+
meta?: Record<string, unknown>;
|
|
2116
|
+
source: WireTranscriptSource;
|
|
2117
|
+
text: string;
|
|
2118
|
+
};
|
|
1988
2119
|
}
|
|
1989
2120
|
export interface WireAssistantBlockReasoning {
|
|
1990
2121
|
block_type: "reasoning";
|
|
1991
|
-
data:
|
|
2122
|
+
data: {
|
|
2123
|
+
meta?: Record<string, unknown>;
|
|
2124
|
+
text?: string;
|
|
2125
|
+
};
|
|
1992
2126
|
}
|
|
1993
2127
|
export interface WireAssistantBlockToolUse {
|
|
1994
2128
|
block_type: "tool_use";
|
|
1995
|
-
data:
|
|
2129
|
+
data: {
|
|
2130
|
+
args: unknown;
|
|
2131
|
+
id: string;
|
|
2132
|
+
meta?: Record<string, unknown>;
|
|
2133
|
+
name: string;
|
|
2134
|
+
};
|
|
1996
2135
|
}
|
|
1997
2136
|
export interface WireAssistantBlockServerToolContent {
|
|
1998
2137
|
block_type: "server_tool_content";
|
|
1999
|
-
data:
|
|
2138
|
+
data: {
|
|
2139
|
+
content: unknown;
|
|
2140
|
+
id?: string;
|
|
2141
|
+
meta?: Record<string, unknown>;
|
|
2142
|
+
name: string;
|
|
2143
|
+
};
|
|
2000
2144
|
}
|
|
2001
2145
|
export interface WireAssistantBlockImage {
|
|
2002
2146
|
block_type: "image";
|
|
2003
|
-
data:
|
|
2147
|
+
data: {
|
|
2148
|
+
blob_ref: Record<string, unknown>;
|
|
2149
|
+
height: number;
|
|
2150
|
+
image_id: string;
|
|
2151
|
+
media_type: string;
|
|
2152
|
+
meta: Record<string, unknown>;
|
|
2153
|
+
revised_prompt: Record<string, unknown>;
|
|
2154
|
+
width: number;
|
|
2155
|
+
};
|
|
2004
2156
|
}
|
|
2005
2157
|
export interface WireAssistantBlockUnknown {
|
|
2006
2158
|
block_type: "unknown";
|
|
2007
2159
|
}
|
|
2008
|
-
export type WireAssistantBlock = WireAssistantBlockText | WireAssistantBlockReasoning | WireAssistantBlockToolUse | WireAssistantBlockServerToolContent | WireAssistantBlockImage | WireAssistantBlockUnknown;
|
|
2160
|
+
export type WireAssistantBlock = WireAssistantBlockText | WireAssistantBlockTranscript | WireAssistantBlockReasoning | WireAssistantBlockToolUse | WireAssistantBlockServerToolContent | WireAssistantBlockImage | WireAssistantBlockUnknown;
|
|
2009
2161
|
export interface WireImageOperationPhaseRequested {
|
|
2010
2162
|
phase: "requested";
|
|
2011
2163
|
}
|