@linkshell/gateway 0.4.48 → 0.4.50
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/gateway/src/embedded.js +24 -23
- package/dist/gateway/src/embedded.js.map +1 -1
- package/dist/gateway/src/index.js +28 -23
- package/dist/gateway/src/index.js.map +1 -1
- package/dist/gateway/src/presence.d.ts +28 -0
- package/dist/gateway/src/presence.js +92 -0
- package/dist/gateway/src/presence.js.map +1 -0
- package/dist/gateway/src/relay.d.ts +2 -0
- package/dist/gateway/src/relay.js +110 -1
- package/dist/gateway/src/relay.js.map +1 -1
- package/dist/gateway/src/sessions.d.ts +11 -1
- package/dist/gateway/src/sessions.js +59 -1
- package/dist/gateway/src/sessions.js.map +1 -1
- package/dist/gateway/tsconfig.tsbuildinfo +1 -1
- package/dist/shared-protocol/src/index.d.ts +541 -319
- package/dist/shared-protocol/src/index.js +43 -1
- package/dist/shared-protocol/src/index.js.map +1 -1
- package/package.json +2 -2
- package/src/embedded.ts +27 -24
- package/src/index.ts +33 -24
- package/src/presence.ts +118 -0
- package/src/relay.ts +120 -1
- package/src/sessions.ts +67 -2
|
@@ -267,8 +267,8 @@ export declare const screenStatusPayloadSchema: z.ZodObject<{
|
|
|
267
267
|
error?: string | undefined;
|
|
268
268
|
}, {
|
|
269
269
|
active: boolean;
|
|
270
|
-
mode?: "webrtc" | "fallback" | "off" | undefined;
|
|
271
270
|
error?: string | undefined;
|
|
271
|
+
mode?: "webrtc" | "fallback" | "off" | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
export declare const screenOfferPayloadSchema: z.ZodObject<{
|
|
274
274
|
sdp: z.ZodString;
|
|
@@ -558,7 +558,7 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
|
|
|
558
558
|
pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
|
|
559
559
|
machineId: z.ZodOptional<z.ZodString>;
|
|
560
560
|
}, "strip", z.ZodTypeAny, {
|
|
561
|
-
phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting"
|
|
561
|
+
phase: "idle" | "error" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
562
562
|
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
563
563
|
machineId?: string | undefined;
|
|
564
564
|
seq?: number | undefined;
|
|
@@ -581,7 +581,7 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
|
|
|
581
581
|
} | undefined;
|
|
582
582
|
pendingPermissionCount?: number | undefined;
|
|
583
583
|
}, {
|
|
584
|
-
phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting"
|
|
584
|
+
phase: "idle" | "error" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
585
585
|
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
586
586
|
machineId?: string | undefined;
|
|
587
587
|
seq?: number | undefined;
|
|
@@ -740,7 +740,7 @@ export declare const terminalHistoryResponsePayloadSchema: z.ZodObject<{
|
|
|
740
740
|
entries: string[];
|
|
741
741
|
shell?: string | undefined;
|
|
742
742
|
}>;
|
|
743
|
-
export declare const agentProviderSchema: z.
|
|
743
|
+
export declare const agentProviderSchema: z.ZodString;
|
|
744
744
|
export declare const agentReasoningEffortSchema: z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>;
|
|
745
745
|
export declare const agentPermissionModeSchema: z.ZodEnum<["read_only", "workspace_write", "full_access"]>;
|
|
746
746
|
export declare const agentCollaborationModeSchema: z.ZodEnum<["default", "plan"]>;
|
|
@@ -855,7 +855,7 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
|
|
|
855
855
|
name: z.ZodString;
|
|
856
856
|
title: z.ZodString;
|
|
857
857
|
description: z.ZodOptional<z.ZodString>;
|
|
858
|
-
provider: z.ZodOptional<z.
|
|
858
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
859
859
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
860
860
|
category: z.ZodOptional<z.ZodString>;
|
|
861
861
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -870,7 +870,7 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
|
|
|
870
870
|
title: string;
|
|
871
871
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
872
872
|
executionKind: "prompt" | "native" | "local_ui";
|
|
873
|
-
provider?:
|
|
873
|
+
provider?: string | undefined;
|
|
874
874
|
description?: string | undefined;
|
|
875
875
|
category?: string | undefined;
|
|
876
876
|
requiresIdle?: boolean | undefined;
|
|
@@ -880,7 +880,7 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
|
|
|
880
880
|
name: string;
|
|
881
881
|
id: string;
|
|
882
882
|
title: string;
|
|
883
|
-
provider?:
|
|
883
|
+
provider?: string | undefined;
|
|
884
884
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
885
885
|
description?: string | undefined;
|
|
886
886
|
category?: string | undefined;
|
|
@@ -921,7 +921,7 @@ export declare const agentMcpServerDescriptorSchema: z.ZodObject<{
|
|
|
921
921
|
toolCount?: number | undefined;
|
|
922
922
|
}>;
|
|
923
923
|
export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
924
|
-
id: z.
|
|
924
|
+
id: z.ZodString;
|
|
925
925
|
label: z.ZodString;
|
|
926
926
|
enabled: z.ZodBoolean;
|
|
927
927
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -947,7 +947,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
947
947
|
name: z.ZodString;
|
|
948
948
|
title: z.ZodString;
|
|
949
949
|
description: z.ZodOptional<z.ZodString>;
|
|
950
|
-
provider: z.ZodOptional<z.
|
|
950
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
951
951
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
952
952
|
category: z.ZodOptional<z.ZodString>;
|
|
953
953
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -962,7 +962,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
962
962
|
title: string;
|
|
963
963
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
964
964
|
executionKind: "prompt" | "native" | "local_ui";
|
|
965
|
-
provider?:
|
|
965
|
+
provider?: string | undefined;
|
|
966
966
|
description?: string | undefined;
|
|
967
967
|
category?: string | undefined;
|
|
968
968
|
requiresIdle?: boolean | undefined;
|
|
@@ -972,7 +972,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
972
972
|
name: string;
|
|
973
973
|
id: string;
|
|
974
974
|
title: string;
|
|
975
|
-
provider?:
|
|
975
|
+
provider?: string | undefined;
|
|
976
976
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
977
977
|
description?: string | undefined;
|
|
978
978
|
category?: string | undefined;
|
|
@@ -1015,7 +1015,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
1015
1015
|
}>, "many">>;
|
|
1016
1016
|
}, "strip", z.ZodTypeAny, {
|
|
1017
1017
|
enabled: boolean;
|
|
1018
|
-
id:
|
|
1018
|
+
id: string;
|
|
1019
1019
|
label: string;
|
|
1020
1020
|
reason?: string | undefined;
|
|
1021
1021
|
supportsImages?: boolean | undefined;
|
|
@@ -1036,7 +1036,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
1036
1036
|
title: string;
|
|
1037
1037
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1038
1038
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1039
|
-
provider?:
|
|
1039
|
+
provider?: string | undefined;
|
|
1040
1040
|
description?: string | undefined;
|
|
1041
1041
|
category?: string | undefined;
|
|
1042
1042
|
requiresIdle?: boolean | undefined;
|
|
@@ -1058,7 +1058,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
1058
1058
|
}[] | undefined;
|
|
1059
1059
|
}, {
|
|
1060
1060
|
enabled: boolean;
|
|
1061
|
-
id:
|
|
1061
|
+
id: string;
|
|
1062
1062
|
label: string;
|
|
1063
1063
|
reason?: string | undefined;
|
|
1064
1064
|
supportsImages?: boolean | undefined;
|
|
@@ -1076,7 +1076,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
1076
1076
|
name: string;
|
|
1077
1077
|
id: string;
|
|
1078
1078
|
title: string;
|
|
1079
|
-
provider?:
|
|
1079
|
+
provider?: string | undefined;
|
|
1080
1080
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1081
1081
|
description?: string | undefined;
|
|
1082
1082
|
category?: string | undefined;
|
|
@@ -1102,10 +1102,10 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
|
|
|
1102
1102
|
}>;
|
|
1103
1103
|
export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
1104
1104
|
enabled: z.ZodBoolean;
|
|
1105
|
-
provider: z.ZodOptional<z.
|
|
1105
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1106
1106
|
machineId: z.ZodOptional<z.ZodString>;
|
|
1107
1107
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1108
|
-
id: z.
|
|
1108
|
+
id: z.ZodString;
|
|
1109
1109
|
label: z.ZodString;
|
|
1110
1110
|
enabled: z.ZodBoolean;
|
|
1111
1111
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -1131,7 +1131,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1131
1131
|
name: z.ZodString;
|
|
1132
1132
|
title: z.ZodString;
|
|
1133
1133
|
description: z.ZodOptional<z.ZodString>;
|
|
1134
|
-
provider: z.ZodOptional<z.
|
|
1134
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1135
1135
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
1136
1136
|
category: z.ZodOptional<z.ZodString>;
|
|
1137
1137
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -1146,7 +1146,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1146
1146
|
title: string;
|
|
1147
1147
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1148
1148
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1149
|
-
provider?:
|
|
1149
|
+
provider?: string | undefined;
|
|
1150
1150
|
description?: string | undefined;
|
|
1151
1151
|
category?: string | undefined;
|
|
1152
1152
|
requiresIdle?: boolean | undefined;
|
|
@@ -1156,7 +1156,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1156
1156
|
name: string;
|
|
1157
1157
|
id: string;
|
|
1158
1158
|
title: string;
|
|
1159
|
-
provider?:
|
|
1159
|
+
provider?: string | undefined;
|
|
1160
1160
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1161
1161
|
description?: string | undefined;
|
|
1162
1162
|
category?: string | undefined;
|
|
@@ -1199,7 +1199,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1199
1199
|
}>, "many">>;
|
|
1200
1200
|
}, "strip", z.ZodTypeAny, {
|
|
1201
1201
|
enabled: boolean;
|
|
1202
|
-
id:
|
|
1202
|
+
id: string;
|
|
1203
1203
|
label: string;
|
|
1204
1204
|
reason?: string | undefined;
|
|
1205
1205
|
supportsImages?: boolean | undefined;
|
|
@@ -1220,7 +1220,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1220
1220
|
title: string;
|
|
1221
1221
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1222
1222
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1223
|
-
provider?:
|
|
1223
|
+
provider?: string | undefined;
|
|
1224
1224
|
description?: string | undefined;
|
|
1225
1225
|
category?: string | undefined;
|
|
1226
1226
|
requiresIdle?: boolean | undefined;
|
|
@@ -1242,7 +1242,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1242
1242
|
}[] | undefined;
|
|
1243
1243
|
}, {
|
|
1244
1244
|
enabled: boolean;
|
|
1245
|
-
id:
|
|
1245
|
+
id: string;
|
|
1246
1246
|
label: string;
|
|
1247
1247
|
reason?: string | undefined;
|
|
1248
1248
|
supportsImages?: boolean | undefined;
|
|
@@ -1260,7 +1260,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1260
1260
|
name: string;
|
|
1261
1261
|
id: string;
|
|
1262
1262
|
title: string;
|
|
1263
|
-
provider?:
|
|
1263
|
+
provider?: string | undefined;
|
|
1264
1264
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1265
1265
|
description?: string | undefined;
|
|
1266
1266
|
category?: string | undefined;
|
|
@@ -1302,13 +1302,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1302
1302
|
supportsSessionList: boolean;
|
|
1303
1303
|
supportsSessionLoad: boolean;
|
|
1304
1304
|
supportsAudio: boolean;
|
|
1305
|
-
provider?:
|
|
1305
|
+
provider?: string | undefined;
|
|
1306
1306
|
protocolVersion?: number | undefined;
|
|
1307
1307
|
machineId?: string | undefined;
|
|
1308
1308
|
error?: string | undefined;
|
|
1309
1309
|
providers?: {
|
|
1310
1310
|
enabled: boolean;
|
|
1311
|
-
id:
|
|
1311
|
+
id: string;
|
|
1312
1312
|
label: string;
|
|
1313
1313
|
reason?: string | undefined;
|
|
1314
1314
|
supportsImages?: boolean | undefined;
|
|
@@ -1329,7 +1329,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1329
1329
|
title: string;
|
|
1330
1330
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1331
1331
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1332
|
-
provider?:
|
|
1332
|
+
provider?: string | undefined;
|
|
1333
1333
|
description?: string | undefined;
|
|
1334
1334
|
category?: string | undefined;
|
|
1335
1335
|
requiresIdle?: boolean | undefined;
|
|
@@ -1352,7 +1352,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1352
1352
|
}[] | undefined;
|
|
1353
1353
|
}, {
|
|
1354
1354
|
enabled: boolean;
|
|
1355
|
-
provider?:
|
|
1355
|
+
provider?: string | undefined;
|
|
1356
1356
|
protocolVersion?: number | undefined;
|
|
1357
1357
|
machineId?: string | undefined;
|
|
1358
1358
|
error?: string | undefined;
|
|
@@ -1362,7 +1362,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1362
1362
|
supportsCancel?: boolean | undefined;
|
|
1363
1363
|
providers?: {
|
|
1364
1364
|
enabled: boolean;
|
|
1365
|
-
id:
|
|
1365
|
+
id: string;
|
|
1366
1366
|
label: string;
|
|
1367
1367
|
reason?: string | undefined;
|
|
1368
1368
|
supportsImages?: boolean | undefined;
|
|
@@ -1380,7 +1380,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1380
1380
|
name: string;
|
|
1381
1381
|
id: string;
|
|
1382
1382
|
title: string;
|
|
1383
|
-
provider?:
|
|
1383
|
+
provider?: string | undefined;
|
|
1384
1384
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1385
1385
|
description?: string | undefined;
|
|
1386
1386
|
category?: string | undefined;
|
|
@@ -1411,14 +1411,14 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
1411
1411
|
export declare const agentInitializePayloadSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1412
1412
|
export declare const agentSessionNewPayloadSchema: z.ZodObject<{
|
|
1413
1413
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1414
|
-
provider: z.ZodOptional<z.
|
|
1414
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1415
1415
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1416
1416
|
}, "strip", z.ZodTypeAny, {
|
|
1417
|
-
provider?:
|
|
1417
|
+
provider?: string | undefined;
|
|
1418
1418
|
cwd?: string | undefined;
|
|
1419
1419
|
mcpServers?: Record<string, unknown> | undefined;
|
|
1420
1420
|
}, {
|
|
1421
|
-
provider?:
|
|
1421
|
+
provider?: string | undefined;
|
|
1422
1422
|
cwd?: string | undefined;
|
|
1423
1423
|
mcpServers?: Record<string, unknown> | undefined;
|
|
1424
1424
|
}>;
|
|
@@ -1556,7 +1556,7 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
1556
1556
|
createdAt: number;
|
|
1557
1557
|
isStreaming?: boolean | undefined;
|
|
1558
1558
|
} | undefined;
|
|
1559
|
-
status?: "
|
|
1559
|
+
status?: "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
1560
1560
|
agentSessionId?: string | undefined;
|
|
1561
1561
|
error?: string | undefined;
|
|
1562
1562
|
plan?: {
|
|
@@ -1582,7 +1582,7 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
|
|
|
1582
1582
|
createdAt: number;
|
|
1583
1583
|
isStreaming?: boolean | undefined;
|
|
1584
1584
|
} | undefined;
|
|
1585
|
-
status?: "
|
|
1585
|
+
status?: "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
1586
1586
|
agentSessionId?: string | undefined;
|
|
1587
1587
|
error?: string | undefined;
|
|
1588
1588
|
plan?: {
|
|
@@ -1663,10 +1663,10 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1663
1663
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
1664
1664
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
1665
1665
|
enabled: z.ZodBoolean;
|
|
1666
|
-
provider: z.ZodOptional<z.
|
|
1666
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1667
1667
|
machineId: z.ZodOptional<z.ZodString>;
|
|
1668
1668
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1669
|
-
id: z.
|
|
1669
|
+
id: z.ZodString;
|
|
1670
1670
|
label: z.ZodString;
|
|
1671
1671
|
enabled: z.ZodBoolean;
|
|
1672
1672
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -1692,7 +1692,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1692
1692
|
name: z.ZodString;
|
|
1693
1693
|
title: z.ZodString;
|
|
1694
1694
|
description: z.ZodOptional<z.ZodString>;
|
|
1695
|
-
provider: z.ZodOptional<z.
|
|
1695
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1696
1696
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
1697
1697
|
category: z.ZodOptional<z.ZodString>;
|
|
1698
1698
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -1707,7 +1707,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1707
1707
|
title: string;
|
|
1708
1708
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1709
1709
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1710
|
-
provider?:
|
|
1710
|
+
provider?: string | undefined;
|
|
1711
1711
|
description?: string | undefined;
|
|
1712
1712
|
category?: string | undefined;
|
|
1713
1713
|
requiresIdle?: boolean | undefined;
|
|
@@ -1717,7 +1717,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1717
1717
|
name: string;
|
|
1718
1718
|
id: string;
|
|
1719
1719
|
title: string;
|
|
1720
|
-
provider?:
|
|
1720
|
+
provider?: string | undefined;
|
|
1721
1721
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1722
1722
|
description?: string | undefined;
|
|
1723
1723
|
category?: string | undefined;
|
|
@@ -1760,7 +1760,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1760
1760
|
}>, "many">>;
|
|
1761
1761
|
}, "strip", z.ZodTypeAny, {
|
|
1762
1762
|
enabled: boolean;
|
|
1763
|
-
id:
|
|
1763
|
+
id: string;
|
|
1764
1764
|
label: string;
|
|
1765
1765
|
reason?: string | undefined;
|
|
1766
1766
|
supportsImages?: boolean | undefined;
|
|
@@ -1781,7 +1781,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1781
1781
|
title: string;
|
|
1782
1782
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1783
1783
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1784
|
-
provider?:
|
|
1784
|
+
provider?: string | undefined;
|
|
1785
1785
|
description?: string | undefined;
|
|
1786
1786
|
category?: string | undefined;
|
|
1787
1787
|
requiresIdle?: boolean | undefined;
|
|
@@ -1803,7 +1803,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1803
1803
|
}[] | undefined;
|
|
1804
1804
|
}, {
|
|
1805
1805
|
enabled: boolean;
|
|
1806
|
-
id:
|
|
1806
|
+
id: string;
|
|
1807
1807
|
label: string;
|
|
1808
1808
|
reason?: string | undefined;
|
|
1809
1809
|
supportsImages?: boolean | undefined;
|
|
@@ -1821,7 +1821,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1821
1821
|
name: string;
|
|
1822
1822
|
id: string;
|
|
1823
1823
|
title: string;
|
|
1824
|
-
provider?:
|
|
1824
|
+
provider?: string | undefined;
|
|
1825
1825
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1826
1826
|
description?: string | undefined;
|
|
1827
1827
|
category?: string | undefined;
|
|
@@ -1863,13 +1863,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1863
1863
|
supportsSessionList: boolean;
|
|
1864
1864
|
supportsSessionLoad: boolean;
|
|
1865
1865
|
supportsAudio: boolean;
|
|
1866
|
-
provider?:
|
|
1866
|
+
provider?: string | undefined;
|
|
1867
1867
|
protocolVersion?: number | undefined;
|
|
1868
1868
|
machineId?: string | undefined;
|
|
1869
1869
|
error?: string | undefined;
|
|
1870
1870
|
providers?: {
|
|
1871
1871
|
enabled: boolean;
|
|
1872
|
-
id:
|
|
1872
|
+
id: string;
|
|
1873
1873
|
label: string;
|
|
1874
1874
|
reason?: string | undefined;
|
|
1875
1875
|
supportsImages?: boolean | undefined;
|
|
@@ -1890,7 +1890,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1890
1890
|
title: string;
|
|
1891
1891
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
1892
1892
|
executionKind: "prompt" | "native" | "local_ui";
|
|
1893
|
-
provider?:
|
|
1893
|
+
provider?: string | undefined;
|
|
1894
1894
|
description?: string | undefined;
|
|
1895
1895
|
category?: string | undefined;
|
|
1896
1896
|
requiresIdle?: boolean | undefined;
|
|
@@ -1913,7 +1913,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1913
1913
|
}[] | undefined;
|
|
1914
1914
|
}, {
|
|
1915
1915
|
enabled: boolean;
|
|
1916
|
-
provider?:
|
|
1916
|
+
provider?: string | undefined;
|
|
1917
1917
|
protocolVersion?: number | undefined;
|
|
1918
1918
|
machineId?: string | undefined;
|
|
1919
1919
|
error?: string | undefined;
|
|
@@ -1923,7 +1923,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1923
1923
|
supportsCancel?: boolean | undefined;
|
|
1924
1924
|
providers?: {
|
|
1925
1925
|
enabled: boolean;
|
|
1926
|
-
id:
|
|
1926
|
+
id: string;
|
|
1927
1927
|
label: string;
|
|
1928
1928
|
reason?: string | undefined;
|
|
1929
1929
|
supportsImages?: boolean | undefined;
|
|
@@ -1941,7 +1941,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
1941
1941
|
name: string;
|
|
1942
1942
|
id: string;
|
|
1943
1943
|
title: string;
|
|
1944
|
-
provider?:
|
|
1944
|
+
provider?: string | undefined;
|
|
1945
1945
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
1946
1946
|
description?: string | undefined;
|
|
1947
1947
|
category?: string | undefined;
|
|
@@ -2052,7 +2052,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2052
2052
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
2053
2053
|
error: z.ZodOptional<z.ZodString>;
|
|
2054
2054
|
}, "strip", z.ZodTypeAny, {
|
|
2055
|
-
status: "
|
|
2055
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
2056
2056
|
messages: {
|
|
2057
2057
|
role: "user" | "assistant" | "system";
|
|
2058
2058
|
content: string;
|
|
@@ -2090,13 +2090,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2090
2090
|
supportsSessionList: boolean;
|
|
2091
2091
|
supportsSessionLoad: boolean;
|
|
2092
2092
|
supportsAudio: boolean;
|
|
2093
|
-
provider?:
|
|
2093
|
+
provider?: string | undefined;
|
|
2094
2094
|
protocolVersion?: number | undefined;
|
|
2095
2095
|
machineId?: string | undefined;
|
|
2096
2096
|
error?: string | undefined;
|
|
2097
2097
|
providers?: {
|
|
2098
2098
|
enabled: boolean;
|
|
2099
|
-
id:
|
|
2099
|
+
id: string;
|
|
2100
2100
|
label: string;
|
|
2101
2101
|
reason?: string | undefined;
|
|
2102
2102
|
supportsImages?: boolean | undefined;
|
|
@@ -2117,7 +2117,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2117
2117
|
title: string;
|
|
2118
2118
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
2119
2119
|
executionKind: "prompt" | "native" | "local_ui";
|
|
2120
|
-
provider?:
|
|
2120
|
+
provider?: string | undefined;
|
|
2121
2121
|
description?: string | undefined;
|
|
2122
2122
|
category?: string | undefined;
|
|
2123
2123
|
requiresIdle?: boolean | undefined;
|
|
@@ -2140,12 +2140,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2140
2140
|
}[] | undefined;
|
|
2141
2141
|
} | undefined;
|
|
2142
2142
|
}, {
|
|
2143
|
-
status?: "
|
|
2143
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
2144
2144
|
agentSessionId?: string | undefined;
|
|
2145
2145
|
error?: string | undefined;
|
|
2146
2146
|
capabilities?: {
|
|
2147
2147
|
enabled: boolean;
|
|
2148
|
-
provider?:
|
|
2148
|
+
provider?: string | undefined;
|
|
2149
2149
|
protocolVersion?: number | undefined;
|
|
2150
2150
|
machineId?: string | undefined;
|
|
2151
2151
|
error?: string | undefined;
|
|
@@ -2155,7 +2155,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2155
2155
|
supportsCancel?: boolean | undefined;
|
|
2156
2156
|
providers?: {
|
|
2157
2157
|
enabled: boolean;
|
|
2158
|
-
id:
|
|
2158
|
+
id: string;
|
|
2159
2159
|
label: string;
|
|
2160
2160
|
reason?: string | undefined;
|
|
2161
2161
|
supportsImages?: boolean | undefined;
|
|
@@ -2173,7 +2173,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
|
|
|
2173
2173
|
name: string;
|
|
2174
2174
|
id: string;
|
|
2175
2175
|
title: string;
|
|
2176
|
-
provider?:
|
|
2176
|
+
provider?: string | undefined;
|
|
2177
2177
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
2178
2178
|
description?: string | undefined;
|
|
2179
2179
|
category?: string | undefined;
|
|
@@ -2891,9 +2891,10 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2891
2891
|
conversationId: string;
|
|
2892
2892
|
id: string;
|
|
2893
2893
|
createdAt: number;
|
|
2894
|
-
status?: "
|
|
2894
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
2895
2895
|
role?: "user" | "assistant" | "system" | undefined;
|
|
2896
2896
|
error?: string | undefined;
|
|
2897
|
+
updatedAt?: number | undefined;
|
|
2897
2898
|
content?: {
|
|
2898
2899
|
type: "text" | "image";
|
|
2899
2900
|
data?: string | undefined;
|
|
@@ -2916,7 +2917,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2916
2917
|
input?: string | undefined;
|
|
2917
2918
|
output?: string | undefined;
|
|
2918
2919
|
} | undefined;
|
|
2919
|
-
updatedAt?: number | undefined;
|
|
2920
2920
|
permission?: {
|
|
2921
2921
|
options: {
|
|
2922
2922
|
id: string;
|
|
@@ -2991,9 +2991,10 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
2991
2991
|
conversationId: string;
|
|
2992
2992
|
id: string;
|
|
2993
2993
|
createdAt: number;
|
|
2994
|
-
status?: "
|
|
2994
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
2995
2995
|
role?: "user" | "assistant" | "system" | undefined;
|
|
2996
2996
|
error?: string | undefined;
|
|
2997
|
+
updatedAt?: number | undefined;
|
|
2997
2998
|
content?: {
|
|
2998
2999
|
type: "text" | "image";
|
|
2999
3000
|
data?: string | undefined;
|
|
@@ -3016,7 +3017,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
|
|
|
3016
3017
|
input?: string | undefined;
|
|
3017
3018
|
output?: string | undefined;
|
|
3018
3019
|
} | undefined;
|
|
3019
|
-
updatedAt?: number | undefined;
|
|
3020
3020
|
permission?: {
|
|
3021
3021
|
requestId: string;
|
|
3022
3022
|
options?: {
|
|
@@ -3117,7 +3117,7 @@ export declare const agentV2UsageSchema: z.ZodObject<{
|
|
|
3117
3117
|
export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
3118
3118
|
id: z.ZodString;
|
|
3119
3119
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
3120
|
-
provider: z.ZodDefault<z.
|
|
3120
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
3121
3121
|
cwd: z.ZodString;
|
|
3122
3122
|
title: z.ZodOptional<z.ZodString>;
|
|
3123
3123
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -3157,8 +3157,8 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3157
3157
|
updatedAt?: number | undefined;
|
|
3158
3158
|
}>>;
|
|
3159
3159
|
}, "strip", z.ZodTypeAny, {
|
|
3160
|
-
status: "
|
|
3161
|
-
provider:
|
|
3160
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
3161
|
+
provider: string;
|
|
3162
3162
|
cwd: string;
|
|
3163
3163
|
id: string;
|
|
3164
3164
|
createdAt: number;
|
|
@@ -3185,9 +3185,9 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3185
3185
|
id: string;
|
|
3186
3186
|
createdAt: number;
|
|
3187
3187
|
lastActivityAt: number;
|
|
3188
|
-
status?: "
|
|
3188
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
3189
3189
|
agentSessionId?: string | undefined;
|
|
3190
|
-
provider?:
|
|
3190
|
+
provider?: string | undefined;
|
|
3191
3191
|
title?: string | undefined;
|
|
3192
3192
|
model?: string | undefined;
|
|
3193
3193
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -3208,10 +3208,10 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
|
|
|
3208
3208
|
export declare const agentV2CapabilitiesRequestPayloadSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3209
3209
|
export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
3210
3210
|
enabled: z.ZodBoolean;
|
|
3211
|
-
provider: z.ZodOptional<z.
|
|
3211
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3212
3212
|
machineId: z.ZodOptional<z.ZodString>;
|
|
3213
3213
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3214
|
-
id: z.
|
|
3214
|
+
id: z.ZodString;
|
|
3215
3215
|
label: z.ZodString;
|
|
3216
3216
|
enabled: z.ZodBoolean;
|
|
3217
3217
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3237,7 +3237,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3237
3237
|
name: z.ZodString;
|
|
3238
3238
|
title: z.ZodString;
|
|
3239
3239
|
description: z.ZodOptional<z.ZodString>;
|
|
3240
|
-
provider: z.ZodOptional<z.
|
|
3240
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3241
3241
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
3242
3242
|
category: z.ZodOptional<z.ZodString>;
|
|
3243
3243
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -3252,7 +3252,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3252
3252
|
title: string;
|
|
3253
3253
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
3254
3254
|
executionKind: "prompt" | "native" | "local_ui";
|
|
3255
|
-
provider?:
|
|
3255
|
+
provider?: string | undefined;
|
|
3256
3256
|
description?: string | undefined;
|
|
3257
3257
|
category?: string | undefined;
|
|
3258
3258
|
requiresIdle?: boolean | undefined;
|
|
@@ -3262,7 +3262,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3262
3262
|
name: string;
|
|
3263
3263
|
id: string;
|
|
3264
3264
|
title: string;
|
|
3265
|
-
provider?:
|
|
3265
|
+
provider?: string | undefined;
|
|
3266
3266
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
3267
3267
|
description?: string | undefined;
|
|
3268
3268
|
category?: string | undefined;
|
|
@@ -3305,7 +3305,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3305
3305
|
}>, "many">>;
|
|
3306
3306
|
}, "strip", z.ZodTypeAny, {
|
|
3307
3307
|
enabled: boolean;
|
|
3308
|
-
id:
|
|
3308
|
+
id: string;
|
|
3309
3309
|
label: string;
|
|
3310
3310
|
reason?: string | undefined;
|
|
3311
3311
|
supportsImages?: boolean | undefined;
|
|
@@ -3326,7 +3326,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3326
3326
|
title: string;
|
|
3327
3327
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
3328
3328
|
executionKind: "prompt" | "native" | "local_ui";
|
|
3329
|
-
provider?:
|
|
3329
|
+
provider?: string | undefined;
|
|
3330
3330
|
description?: string | undefined;
|
|
3331
3331
|
category?: string | undefined;
|
|
3332
3332
|
requiresIdle?: boolean | undefined;
|
|
@@ -3348,7 +3348,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3348
3348
|
}[] | undefined;
|
|
3349
3349
|
}, {
|
|
3350
3350
|
enabled: boolean;
|
|
3351
|
-
id:
|
|
3351
|
+
id: string;
|
|
3352
3352
|
label: string;
|
|
3353
3353
|
reason?: string | undefined;
|
|
3354
3354
|
supportsImages?: boolean | undefined;
|
|
@@ -3366,7 +3366,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3366
3366
|
name: string;
|
|
3367
3367
|
id: string;
|
|
3368
3368
|
title: string;
|
|
3369
|
-
provider?:
|
|
3369
|
+
provider?: string | undefined;
|
|
3370
3370
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
3371
3371
|
description?: string | undefined;
|
|
3372
3372
|
category?: string | undefined;
|
|
@@ -3411,13 +3411,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3411
3411
|
supportsSessionLoad: boolean;
|
|
3412
3412
|
supportsAudio: boolean;
|
|
3413
3413
|
workspaceProtocolVersion: number;
|
|
3414
|
-
provider?:
|
|
3414
|
+
provider?: string | undefined;
|
|
3415
3415
|
protocolVersion?: number | undefined;
|
|
3416
3416
|
machineId?: string | undefined;
|
|
3417
3417
|
error?: string | undefined;
|
|
3418
3418
|
providers?: {
|
|
3419
3419
|
enabled: boolean;
|
|
3420
|
-
id:
|
|
3420
|
+
id: string;
|
|
3421
3421
|
label: string;
|
|
3422
3422
|
reason?: string | undefined;
|
|
3423
3423
|
supportsImages?: boolean | undefined;
|
|
@@ -3438,7 +3438,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3438
3438
|
title: string;
|
|
3439
3439
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
3440
3440
|
executionKind: "prompt" | "native" | "local_ui";
|
|
3441
|
-
provider?:
|
|
3441
|
+
provider?: string | undefined;
|
|
3442
3442
|
description?: string | undefined;
|
|
3443
3443
|
category?: string | undefined;
|
|
3444
3444
|
requiresIdle?: boolean | undefined;
|
|
@@ -3461,7 +3461,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3461
3461
|
}[] | undefined;
|
|
3462
3462
|
}, {
|
|
3463
3463
|
enabled: boolean;
|
|
3464
|
-
provider?:
|
|
3464
|
+
provider?: string | undefined;
|
|
3465
3465
|
protocolVersion?: number | undefined;
|
|
3466
3466
|
machineId?: string | undefined;
|
|
3467
3467
|
error?: string | undefined;
|
|
@@ -3471,7 +3471,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3471
3471
|
supportsCancel?: boolean | undefined;
|
|
3472
3472
|
providers?: {
|
|
3473
3473
|
enabled: boolean;
|
|
3474
|
-
id:
|
|
3474
|
+
id: string;
|
|
3475
3475
|
label: string;
|
|
3476
3476
|
reason?: string | undefined;
|
|
3477
3477
|
supportsImages?: boolean | undefined;
|
|
@@ -3489,7 +3489,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
|
|
|
3489
3489
|
name: string;
|
|
3490
3490
|
id: string;
|
|
3491
3491
|
title: string;
|
|
3492
|
-
provider?:
|
|
3492
|
+
provider?: string | undefined;
|
|
3493
3493
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
3494
3494
|
description?: string | undefined;
|
|
3495
3495
|
category?: string | undefined;
|
|
@@ -3522,7 +3522,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
|
|
|
3522
3522
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
3523
3523
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
3524
3524
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3525
|
-
provider: z.ZodOptional<z.
|
|
3525
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3526
3526
|
model: z.ZodOptional<z.ZodString>;
|
|
3527
3527
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
3528
3528
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
@@ -3533,7 +3533,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
|
|
|
3533
3533
|
}, "strip", z.ZodTypeAny, {
|
|
3534
3534
|
conversationId?: string | undefined;
|
|
3535
3535
|
agentSessionId?: string | undefined;
|
|
3536
|
-
provider?:
|
|
3536
|
+
provider?: string | undefined;
|
|
3537
3537
|
cwd?: string | undefined;
|
|
3538
3538
|
title?: string | undefined;
|
|
3539
3539
|
model?: string | undefined;
|
|
@@ -3545,7 +3545,7 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
|
|
|
3545
3545
|
}, {
|
|
3546
3546
|
conversationId?: string | undefined;
|
|
3547
3547
|
agentSessionId?: string | undefined;
|
|
3548
|
-
provider?:
|
|
3548
|
+
provider?: string | undefined;
|
|
3549
3549
|
cwd?: string | undefined;
|
|
3550
3550
|
title?: string | undefined;
|
|
3551
3551
|
model?: string | undefined;
|
|
@@ -3559,7 +3559,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3559
3559
|
conversation: z.ZodObject<{
|
|
3560
3560
|
id: z.ZodString;
|
|
3561
3561
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
3562
|
-
provider: z.ZodDefault<z.
|
|
3562
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
3563
3563
|
cwd: z.ZodString;
|
|
3564
3564
|
title: z.ZodOptional<z.ZodString>;
|
|
3565
3565
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -3599,8 +3599,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3599
3599
|
updatedAt?: number | undefined;
|
|
3600
3600
|
}>>;
|
|
3601
3601
|
}, "strip", z.ZodTypeAny, {
|
|
3602
|
-
status: "
|
|
3603
|
-
provider:
|
|
3602
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
3603
|
+
provider: string;
|
|
3604
3604
|
cwd: string;
|
|
3605
3605
|
id: string;
|
|
3606
3606
|
createdAt: number;
|
|
@@ -3627,9 +3627,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3627
3627
|
id: string;
|
|
3628
3628
|
createdAt: number;
|
|
3629
3629
|
lastActivityAt: number;
|
|
3630
|
-
status?: "
|
|
3630
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
3631
3631
|
agentSessionId?: string | undefined;
|
|
3632
|
-
provider?:
|
|
3632
|
+
provider?: string | undefined;
|
|
3633
3633
|
title?: string | undefined;
|
|
3634
3634
|
model?: string | undefined;
|
|
3635
3635
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -3978,9 +3978,10 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
3978
3978
|
conversationId: string;
|
|
3979
3979
|
id: string;
|
|
3980
3980
|
createdAt: number;
|
|
3981
|
-
status?: "
|
|
3981
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
3982
3982
|
role?: "user" | "assistant" | "system" | undefined;
|
|
3983
3983
|
error?: string | undefined;
|
|
3984
|
+
updatedAt?: number | undefined;
|
|
3984
3985
|
content?: {
|
|
3985
3986
|
type: "text" | "image";
|
|
3986
3987
|
data?: string | undefined;
|
|
@@ -4003,7 +4004,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4003
4004
|
input?: string | undefined;
|
|
4004
4005
|
output?: string | undefined;
|
|
4005
4006
|
} | undefined;
|
|
4006
|
-
updatedAt?: number | undefined;
|
|
4007
4007
|
permission?: {
|
|
4008
4008
|
options: {
|
|
4009
4009
|
id: string;
|
|
@@ -4078,9 +4078,10 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4078
4078
|
conversationId: string;
|
|
4079
4079
|
id: string;
|
|
4080
4080
|
createdAt: number;
|
|
4081
|
-
status?: "
|
|
4081
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4082
4082
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4083
4083
|
error?: string | undefined;
|
|
4084
|
+
updatedAt?: number | undefined;
|
|
4084
4085
|
content?: {
|
|
4085
4086
|
type: "text" | "image";
|
|
4086
4087
|
data?: string | undefined;
|
|
@@ -4103,7 +4104,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4103
4104
|
input?: string | undefined;
|
|
4104
4105
|
output?: string | undefined;
|
|
4105
4106
|
} | undefined;
|
|
4106
|
-
updatedAt?: number | undefined;
|
|
4107
4107
|
permission?: {
|
|
4108
4108
|
requestId: string;
|
|
4109
4109
|
options?: {
|
|
@@ -4177,8 +4177,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4177
4177
|
requestedConversationId: z.ZodOptional<z.ZodString>;
|
|
4178
4178
|
}, "strip", z.ZodTypeAny, {
|
|
4179
4179
|
conversation: {
|
|
4180
|
-
status: "
|
|
4181
|
-
provider:
|
|
4180
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
4181
|
+
provider: string;
|
|
4182
4182
|
cwd: string;
|
|
4183
4183
|
id: string;
|
|
4184
4184
|
createdAt: number;
|
|
@@ -4206,9 +4206,10 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4206
4206
|
conversationId: string;
|
|
4207
4207
|
id: string;
|
|
4208
4208
|
createdAt: number;
|
|
4209
|
-
status?: "
|
|
4209
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4210
4210
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4211
4211
|
error?: string | undefined;
|
|
4212
|
+
updatedAt?: number | undefined;
|
|
4212
4213
|
content?: {
|
|
4213
4214
|
type: "text" | "image";
|
|
4214
4215
|
data?: string | undefined;
|
|
@@ -4231,7 +4232,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4231
4232
|
input?: string | undefined;
|
|
4232
4233
|
output?: string | undefined;
|
|
4233
4234
|
} | undefined;
|
|
4234
|
-
updatedAt?: number | undefined;
|
|
4235
4235
|
permission?: {
|
|
4236
4236
|
options: {
|
|
4237
4237
|
id: string;
|
|
@@ -4309,9 +4309,9 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4309
4309
|
id: string;
|
|
4310
4310
|
createdAt: number;
|
|
4311
4311
|
lastActivityAt: number;
|
|
4312
|
-
status?: "
|
|
4312
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4313
4313
|
agentSessionId?: string | undefined;
|
|
4314
|
-
provider?:
|
|
4314
|
+
provider?: string | undefined;
|
|
4315
4315
|
title?: string | undefined;
|
|
4316
4316
|
model?: string | undefined;
|
|
4317
4317
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -4334,9 +4334,10 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4334
4334
|
conversationId: string;
|
|
4335
4335
|
id: string;
|
|
4336
4336
|
createdAt: number;
|
|
4337
|
-
status?: "
|
|
4337
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4338
4338
|
role?: "user" | "assistant" | "system" | undefined;
|
|
4339
4339
|
error?: string | undefined;
|
|
4340
|
+
updatedAt?: number | undefined;
|
|
4340
4341
|
content?: {
|
|
4341
4342
|
type: "text" | "image";
|
|
4342
4343
|
data?: string | undefined;
|
|
@@ -4359,7 +4360,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
|
|
|
4359
4360
|
input?: string | undefined;
|
|
4360
4361
|
output?: string | undefined;
|
|
4361
4362
|
} | undefined;
|
|
4362
|
-
updatedAt?: number | undefined;
|
|
4363
4363
|
permission?: {
|
|
4364
4364
|
requestId: string;
|
|
4365
4365
|
options?: {
|
|
@@ -4443,7 +4443,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4443
4443
|
conversations: z.ZodArray<z.ZodObject<{
|
|
4444
4444
|
id: z.ZodString;
|
|
4445
4445
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
4446
|
-
provider: z.ZodDefault<z.
|
|
4446
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
4447
4447
|
cwd: z.ZodString;
|
|
4448
4448
|
title: z.ZodOptional<z.ZodString>;
|
|
4449
4449
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -4483,8 +4483,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4483
4483
|
updatedAt?: number | undefined;
|
|
4484
4484
|
}>>;
|
|
4485
4485
|
}, "strip", z.ZodTypeAny, {
|
|
4486
|
-
status: "
|
|
4487
|
-
provider:
|
|
4486
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
4487
|
+
provider: string;
|
|
4488
4488
|
cwd: string;
|
|
4489
4489
|
id: string;
|
|
4490
4490
|
createdAt: number;
|
|
@@ -4511,9 +4511,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4511
4511
|
id: string;
|
|
4512
4512
|
createdAt: number;
|
|
4513
4513
|
lastActivityAt: number;
|
|
4514
|
-
status?: "
|
|
4514
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4515
4515
|
agentSessionId?: string | undefined;
|
|
4516
|
-
provider?:
|
|
4516
|
+
provider?: string | undefined;
|
|
4517
4517
|
title?: string | undefined;
|
|
4518
4518
|
model?: string | undefined;
|
|
4519
4519
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -4533,8 +4533,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4533
4533
|
}>, "many">;
|
|
4534
4534
|
}, "strip", z.ZodTypeAny, {
|
|
4535
4535
|
conversations: {
|
|
4536
|
-
status: "
|
|
4537
|
-
provider:
|
|
4536
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
4537
|
+
provider: string;
|
|
4538
4538
|
cwd: string;
|
|
4539
4539
|
id: string;
|
|
4540
4540
|
createdAt: number;
|
|
@@ -4563,9 +4563,9 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
|
|
|
4563
4563
|
id: string;
|
|
4564
4564
|
createdAt: number;
|
|
4565
4565
|
lastActivityAt: number;
|
|
4566
|
-
status?: "
|
|
4566
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4567
4567
|
agentSessionId?: string | undefined;
|
|
4568
|
-
provider?:
|
|
4568
|
+
provider?: string | undefined;
|
|
4569
4569
|
title?: string | undefined;
|
|
4570
4570
|
model?: string | undefined;
|
|
4571
4571
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -4706,7 +4706,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4706
4706
|
conversations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4707
4707
|
id: z.ZodString;
|
|
4708
4708
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
4709
|
-
provider: z.ZodDefault<z.
|
|
4709
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
4710
4710
|
cwd: z.ZodString;
|
|
4711
4711
|
title: z.ZodOptional<z.ZodString>;
|
|
4712
4712
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -4746,8 +4746,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4746
4746
|
updatedAt?: number | undefined;
|
|
4747
4747
|
}>>;
|
|
4748
4748
|
}, "strip", z.ZodTypeAny, {
|
|
4749
|
-
status: "
|
|
4750
|
-
provider:
|
|
4749
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
4750
|
+
provider: string;
|
|
4751
4751
|
cwd: string;
|
|
4752
4752
|
id: string;
|
|
4753
4753
|
createdAt: number;
|
|
@@ -4774,9 +4774,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
4774
4774
|
id: string;
|
|
4775
4775
|
createdAt: number;
|
|
4776
4776
|
lastActivityAt: number;
|
|
4777
|
-
status?: "
|
|
4777
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
4778
4778
|
agentSessionId?: string | undefined;
|
|
4779
|
-
provider?:
|
|
4779
|
+
provider?: string | undefined;
|
|
4780
4780
|
title?: string | undefined;
|
|
4781
4781
|
model?: string | undefined;
|
|
4782
4782
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -5126,9 +5126,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5126
5126
|
conversationId: string;
|
|
5127
5127
|
id: string;
|
|
5128
5128
|
createdAt: number;
|
|
5129
|
-
status?: "
|
|
5129
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
5130
5130
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5131
5131
|
error?: string | undefined;
|
|
5132
|
+
updatedAt?: number | undefined;
|
|
5132
5133
|
content?: {
|
|
5133
5134
|
type: "text" | "image";
|
|
5134
5135
|
data?: string | undefined;
|
|
@@ -5151,7 +5152,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5151
5152
|
input?: string | undefined;
|
|
5152
5153
|
output?: string | undefined;
|
|
5153
5154
|
} | undefined;
|
|
5154
|
-
updatedAt?: number | undefined;
|
|
5155
5155
|
permission?: {
|
|
5156
5156
|
options: {
|
|
5157
5157
|
id: string;
|
|
@@ -5226,9 +5226,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5226
5226
|
conversationId: string;
|
|
5227
5227
|
id: string;
|
|
5228
5228
|
createdAt: number;
|
|
5229
|
-
status?: "
|
|
5229
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
5230
5230
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5231
5231
|
error?: string | undefined;
|
|
5232
|
+
updatedAt?: number | undefined;
|
|
5232
5233
|
content?: {
|
|
5233
5234
|
type: "text" | "image";
|
|
5234
5235
|
data?: string | undefined;
|
|
@@ -5251,7 +5252,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5251
5252
|
input?: string | undefined;
|
|
5252
5253
|
output?: string | undefined;
|
|
5253
5254
|
} | undefined;
|
|
5254
|
-
updatedAt?: number | undefined;
|
|
5255
5255
|
permission?: {
|
|
5256
5256
|
requestId: string;
|
|
5257
5257
|
options?: {
|
|
@@ -5325,8 +5325,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5325
5325
|
machineId: z.ZodOptional<z.ZodString>;
|
|
5326
5326
|
}, "strip", z.ZodTypeAny, {
|
|
5327
5327
|
conversations: {
|
|
5328
|
-
status: "
|
|
5329
|
-
provider:
|
|
5328
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
5329
|
+
provider: string;
|
|
5330
5330
|
cwd: string;
|
|
5331
5331
|
id: string;
|
|
5332
5332
|
createdAt: number;
|
|
@@ -5354,9 +5354,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5354
5354
|
conversationId: string;
|
|
5355
5355
|
id: string;
|
|
5356
5356
|
createdAt: number;
|
|
5357
|
-
status?: "
|
|
5357
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
5358
5358
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5359
5359
|
error?: string | undefined;
|
|
5360
|
+
updatedAt?: number | undefined;
|
|
5360
5361
|
content?: {
|
|
5361
5362
|
type: "text" | "image";
|
|
5362
5363
|
data?: string | undefined;
|
|
@@ -5379,7 +5380,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5379
5380
|
input?: string | undefined;
|
|
5380
5381
|
output?: string | undefined;
|
|
5381
5382
|
} | undefined;
|
|
5382
|
-
updatedAt?: number | undefined;
|
|
5383
5383
|
permission?: {
|
|
5384
5384
|
options: {
|
|
5385
5385
|
id: string;
|
|
@@ -5459,9 +5459,9 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5459
5459
|
id: string;
|
|
5460
5460
|
createdAt: number;
|
|
5461
5461
|
lastActivityAt: number;
|
|
5462
|
-
status?: "
|
|
5462
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
5463
5463
|
agentSessionId?: string | undefined;
|
|
5464
|
-
provider?:
|
|
5464
|
+
provider?: string | undefined;
|
|
5465
5465
|
title?: string | undefined;
|
|
5466
5466
|
model?: string | undefined;
|
|
5467
5467
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -5485,9 +5485,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5485
5485
|
conversationId: string;
|
|
5486
5486
|
id: string;
|
|
5487
5487
|
createdAt: number;
|
|
5488
|
-
status?: "
|
|
5488
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
5489
5489
|
role?: "user" | "assistant" | "system" | undefined;
|
|
5490
5490
|
error?: string | undefined;
|
|
5491
|
+
updatedAt?: number | undefined;
|
|
5491
5492
|
content?: {
|
|
5492
5493
|
type: "text" | "image";
|
|
5493
5494
|
data?: string | undefined;
|
|
@@ -5510,7 +5511,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
|
|
|
5510
5511
|
input?: string | undefined;
|
|
5511
5512
|
output?: string | undefined;
|
|
5512
5513
|
} | undefined;
|
|
5513
|
-
updatedAt?: number | undefined;
|
|
5514
5514
|
permission?: {
|
|
5515
5515
|
requestId: string;
|
|
5516
5516
|
options?: {
|
|
@@ -5587,7 +5587,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5587
5587
|
conversation: z.ZodOptional<z.ZodObject<{
|
|
5588
5588
|
id: z.ZodString;
|
|
5589
5589
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
5590
|
-
provider: z.ZodDefault<z.
|
|
5590
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
5591
5591
|
cwd: z.ZodString;
|
|
5592
5592
|
title: z.ZodOptional<z.ZodString>;
|
|
5593
5593
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -5627,8 +5627,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5627
5627
|
updatedAt?: number | undefined;
|
|
5628
5628
|
}>>;
|
|
5629
5629
|
}, "strip", z.ZodTypeAny, {
|
|
5630
|
-
status: "
|
|
5631
|
-
provider:
|
|
5630
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
5631
|
+
provider: string;
|
|
5632
5632
|
cwd: string;
|
|
5633
5633
|
id: string;
|
|
5634
5634
|
createdAt: number;
|
|
@@ -5655,9 +5655,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
5655
5655
|
id: string;
|
|
5656
5656
|
createdAt: number;
|
|
5657
5657
|
lastActivityAt: number;
|
|
5658
|
-
status?: "
|
|
5658
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
5659
5659
|
agentSessionId?: string | undefined;
|
|
5660
|
-
provider?:
|
|
5660
|
+
provider?: string | undefined;
|
|
5661
5661
|
title?: string | undefined;
|
|
5662
5662
|
model?: string | undefined;
|
|
5663
5663
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -6006,9 +6006,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6006
6006
|
conversationId: string;
|
|
6007
6007
|
id: string;
|
|
6008
6008
|
createdAt: number;
|
|
6009
|
-
status?: "
|
|
6009
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6010
6010
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6011
6011
|
error?: string | undefined;
|
|
6012
|
+
updatedAt?: number | undefined;
|
|
6012
6013
|
content?: {
|
|
6013
6014
|
type: "text" | "image";
|
|
6014
6015
|
data?: string | undefined;
|
|
@@ -6031,7 +6032,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6031
6032
|
input?: string | undefined;
|
|
6032
6033
|
output?: string | undefined;
|
|
6033
6034
|
} | undefined;
|
|
6034
|
-
updatedAt?: number | undefined;
|
|
6035
6035
|
permission?: {
|
|
6036
6036
|
options: {
|
|
6037
6037
|
id: string;
|
|
@@ -6106,9 +6106,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6106
6106
|
conversationId: string;
|
|
6107
6107
|
id: string;
|
|
6108
6108
|
createdAt: number;
|
|
6109
|
-
status?: "
|
|
6109
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6110
6110
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6111
6111
|
error?: string | undefined;
|
|
6112
|
+
updatedAt?: number | undefined;
|
|
6112
6113
|
content?: {
|
|
6113
6114
|
type: "text" | "image";
|
|
6114
6115
|
data?: string | undefined;
|
|
@@ -6131,7 +6132,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6131
6132
|
input?: string | undefined;
|
|
6132
6133
|
output?: string | undefined;
|
|
6133
6134
|
} | undefined;
|
|
6134
|
-
updatedAt?: number | undefined;
|
|
6135
6135
|
permission?: {
|
|
6136
6136
|
requestId: string;
|
|
6137
6137
|
options?: {
|
|
@@ -6526,9 +6526,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6526
6526
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
6527
6527
|
}, "strip", z.ZodTypeAny, {
|
|
6528
6528
|
itemId: string;
|
|
6529
|
-
status?: "
|
|
6529
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6530
6530
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6531
6531
|
error?: string | undefined;
|
|
6532
|
+
updatedAt?: number | undefined;
|
|
6532
6533
|
content?: {
|
|
6533
6534
|
type: "text" | "image";
|
|
6534
6535
|
data?: string | undefined;
|
|
@@ -6551,7 +6552,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6551
6552
|
input?: string | undefined;
|
|
6552
6553
|
output?: string | undefined;
|
|
6553
6554
|
} | undefined;
|
|
6554
|
-
updatedAt?: number | undefined;
|
|
6555
6555
|
permission?: {
|
|
6556
6556
|
options: {
|
|
6557
6557
|
id: string;
|
|
@@ -6622,9 +6622,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6622
6622
|
textDelta?: string | undefined;
|
|
6623
6623
|
}, {
|
|
6624
6624
|
itemId: string;
|
|
6625
|
-
status?: "
|
|
6625
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6626
6626
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6627
6627
|
error?: string | undefined;
|
|
6628
|
+
updatedAt?: number | undefined;
|
|
6628
6629
|
content?: {
|
|
6629
6630
|
type: "text" | "image";
|
|
6630
6631
|
data?: string | undefined;
|
|
@@ -6647,7 +6648,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6647
6648
|
input?: string | undefined;
|
|
6648
6649
|
output?: string | undefined;
|
|
6649
6650
|
} | undefined;
|
|
6650
|
-
updatedAt?: number | undefined;
|
|
6651
6651
|
permission?: {
|
|
6652
6652
|
requestId: string;
|
|
6653
6653
|
options?: {
|
|
@@ -6720,8 +6720,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6720
6720
|
}, "strip", z.ZodTypeAny, {
|
|
6721
6721
|
conversationId: string;
|
|
6722
6722
|
conversation?: {
|
|
6723
|
-
status: "
|
|
6724
|
-
provider:
|
|
6723
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
6724
|
+
provider: string;
|
|
6725
6725
|
cwd: string;
|
|
6726
6726
|
id: string;
|
|
6727
6727
|
createdAt: number;
|
|
@@ -6749,9 +6749,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6749
6749
|
conversationId: string;
|
|
6750
6750
|
id: string;
|
|
6751
6751
|
createdAt: number;
|
|
6752
|
-
status?: "
|
|
6752
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6753
6753
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6754
6754
|
error?: string | undefined;
|
|
6755
|
+
updatedAt?: number | undefined;
|
|
6755
6756
|
content?: {
|
|
6756
6757
|
type: "text" | "image";
|
|
6757
6758
|
data?: string | undefined;
|
|
@@ -6774,7 +6775,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6774
6775
|
input?: string | undefined;
|
|
6775
6776
|
output?: string | undefined;
|
|
6776
6777
|
} | undefined;
|
|
6777
|
-
updatedAt?: number | undefined;
|
|
6778
6778
|
permission?: {
|
|
6779
6779
|
options: {
|
|
6780
6780
|
id: string;
|
|
@@ -6847,9 +6847,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6847
6847
|
} | undefined;
|
|
6848
6848
|
patch?: {
|
|
6849
6849
|
itemId: string;
|
|
6850
|
-
status?: "
|
|
6850
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6851
6851
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6852
6852
|
error?: string | undefined;
|
|
6853
|
+
updatedAt?: number | undefined;
|
|
6853
6854
|
content?: {
|
|
6854
6855
|
type: "text" | "image";
|
|
6855
6856
|
data?: string | undefined;
|
|
@@ -6872,7 +6873,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6872
6873
|
input?: string | undefined;
|
|
6873
6874
|
output?: string | undefined;
|
|
6874
6875
|
} | undefined;
|
|
6875
|
-
updatedAt?: number | undefined;
|
|
6876
6876
|
permission?: {
|
|
6877
6877
|
options: {
|
|
6878
6878
|
id: string;
|
|
@@ -6949,9 +6949,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6949
6949
|
id: string;
|
|
6950
6950
|
createdAt: number;
|
|
6951
6951
|
lastActivityAt: number;
|
|
6952
|
-
status?: "
|
|
6952
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6953
6953
|
agentSessionId?: string | undefined;
|
|
6954
|
-
provider?:
|
|
6954
|
+
provider?: string | undefined;
|
|
6955
6955
|
title?: string | undefined;
|
|
6956
6956
|
model?: string | undefined;
|
|
6957
6957
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -6974,9 +6974,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6974
6974
|
conversationId: string;
|
|
6975
6975
|
id: string;
|
|
6976
6976
|
createdAt: number;
|
|
6977
|
-
status?: "
|
|
6977
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
6978
6978
|
role?: "user" | "assistant" | "system" | undefined;
|
|
6979
6979
|
error?: string | undefined;
|
|
6980
|
+
updatedAt?: number | undefined;
|
|
6980
6981
|
content?: {
|
|
6981
6982
|
type: "text" | "image";
|
|
6982
6983
|
data?: string | undefined;
|
|
@@ -6999,7 +7000,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
6999
7000
|
input?: string | undefined;
|
|
7000
7001
|
output?: string | undefined;
|
|
7001
7002
|
} | undefined;
|
|
7002
|
-
updatedAt?: number | undefined;
|
|
7003
7003
|
permission?: {
|
|
7004
7004
|
requestId: string;
|
|
7005
7005
|
options?: {
|
|
@@ -7072,9 +7072,10 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
7072
7072
|
} | undefined;
|
|
7073
7073
|
patch?: {
|
|
7074
7074
|
itemId: string;
|
|
7075
|
-
status?: "
|
|
7075
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
7076
7076
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7077
7077
|
error?: string | undefined;
|
|
7078
|
+
updatedAt?: number | undefined;
|
|
7078
7079
|
content?: {
|
|
7079
7080
|
type: "text" | "image";
|
|
7080
7081
|
data?: string | undefined;
|
|
@@ -7097,7 +7098,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
|
|
|
7097
7098
|
input?: string | undefined;
|
|
7098
7099
|
output?: string | undefined;
|
|
7099
7100
|
} | undefined;
|
|
7100
|
-
updatedAt?: number | undefined;
|
|
7101
7101
|
permission?: {
|
|
7102
7102
|
requestId: string;
|
|
7103
7103
|
options?: {
|
|
@@ -7519,9 +7519,10 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7519
7519
|
conversationId: string;
|
|
7520
7520
|
id: string;
|
|
7521
7521
|
createdAt: number;
|
|
7522
|
-
status?: "
|
|
7522
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
7523
7523
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7524
7524
|
error?: string | undefined;
|
|
7525
|
+
updatedAt?: number | undefined;
|
|
7525
7526
|
content?: {
|
|
7526
7527
|
type: "text" | "image";
|
|
7527
7528
|
data?: string | undefined;
|
|
@@ -7544,7 +7545,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7544
7545
|
input?: string | undefined;
|
|
7545
7546
|
output?: string | undefined;
|
|
7546
7547
|
} | undefined;
|
|
7547
|
-
updatedAt?: number | undefined;
|
|
7548
7548
|
permission?: {
|
|
7549
7549
|
options: {
|
|
7550
7550
|
id: string;
|
|
@@ -7619,9 +7619,10 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7619
7619
|
conversationId: string;
|
|
7620
7620
|
id: string;
|
|
7621
7621
|
createdAt: number;
|
|
7622
|
-
status?: "
|
|
7622
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
7623
7623
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7624
7624
|
error?: string | undefined;
|
|
7625
|
+
updatedAt?: number | undefined;
|
|
7625
7626
|
content?: {
|
|
7626
7627
|
type: "text" | "image";
|
|
7627
7628
|
data?: string | undefined;
|
|
@@ -7644,7 +7645,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7644
7645
|
input?: string | undefined;
|
|
7645
7646
|
output?: string | undefined;
|
|
7646
7647
|
} | undefined;
|
|
7647
|
-
updatedAt?: number | undefined;
|
|
7648
7648
|
permission?: {
|
|
7649
7649
|
requestId: string;
|
|
7650
7650
|
options?: {
|
|
@@ -7731,9 +7731,10 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7731
7731
|
conversationId: string;
|
|
7732
7732
|
id: string;
|
|
7733
7733
|
createdAt: number;
|
|
7734
|
-
status?: "
|
|
7734
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
7735
7735
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7736
7736
|
error?: string | undefined;
|
|
7737
|
+
updatedAt?: number | undefined;
|
|
7737
7738
|
content?: {
|
|
7738
7739
|
type: "text" | "image";
|
|
7739
7740
|
data?: string | undefined;
|
|
@@ -7756,7 +7757,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7756
7757
|
input?: string | undefined;
|
|
7757
7758
|
output?: string | undefined;
|
|
7758
7759
|
} | undefined;
|
|
7759
|
-
updatedAt?: number | undefined;
|
|
7760
7760
|
permission?: {
|
|
7761
7761
|
options: {
|
|
7762
7762
|
id: string;
|
|
@@ -7843,9 +7843,10 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7843
7843
|
conversationId: string;
|
|
7844
7844
|
id: string;
|
|
7845
7845
|
createdAt: number;
|
|
7846
|
-
status?: "
|
|
7846
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
7847
7847
|
role?: "user" | "assistant" | "system" | undefined;
|
|
7848
7848
|
error?: string | undefined;
|
|
7849
|
+
updatedAt?: number | undefined;
|
|
7849
7850
|
content?: {
|
|
7850
7851
|
type: "text" | "image";
|
|
7851
7852
|
data?: string | undefined;
|
|
@@ -7868,7 +7869,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
|
|
|
7868
7869
|
input?: string | undefined;
|
|
7869
7870
|
output?: string | undefined;
|
|
7870
7871
|
} | undefined;
|
|
7871
|
-
updatedAt?: number | undefined;
|
|
7872
7872
|
permission?: {
|
|
7873
7873
|
requestId: string;
|
|
7874
7874
|
options?: {
|
|
@@ -8305,9 +8305,10 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8305
8305
|
conversationId: string;
|
|
8306
8306
|
id: string;
|
|
8307
8307
|
createdAt: number;
|
|
8308
|
-
status?: "
|
|
8308
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
8309
8309
|
role?: "user" | "assistant" | "system" | undefined;
|
|
8310
8310
|
error?: string | undefined;
|
|
8311
|
+
updatedAt?: number | undefined;
|
|
8311
8312
|
content?: {
|
|
8312
8313
|
type: "text" | "image";
|
|
8313
8314
|
data?: string | undefined;
|
|
@@ -8330,7 +8331,6 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8330
8331
|
input?: string | undefined;
|
|
8331
8332
|
output?: string | undefined;
|
|
8332
8333
|
} | undefined;
|
|
8333
|
-
updatedAt?: number | undefined;
|
|
8334
8334
|
permission?: {
|
|
8335
8335
|
options: {
|
|
8336
8336
|
id: string;
|
|
@@ -8405,9 +8405,10 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8405
8405
|
conversationId: string;
|
|
8406
8406
|
id: string;
|
|
8407
8407
|
createdAt: number;
|
|
8408
|
-
status?: "
|
|
8408
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
8409
8409
|
role?: "user" | "assistant" | "system" | undefined;
|
|
8410
8410
|
error?: string | undefined;
|
|
8411
|
+
updatedAt?: number | undefined;
|
|
8411
8412
|
content?: {
|
|
8412
8413
|
type: "text" | "image";
|
|
8413
8414
|
data?: string | undefined;
|
|
@@ -8430,7 +8431,6 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8430
8431
|
input?: string | undefined;
|
|
8431
8432
|
output?: string | undefined;
|
|
8432
8433
|
} | undefined;
|
|
8433
|
-
updatedAt?: number | undefined;
|
|
8434
8434
|
permission?: {
|
|
8435
8435
|
requestId: string;
|
|
8436
8436
|
options?: {
|
|
@@ -8510,9 +8510,10 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8510
8510
|
conversationId: string;
|
|
8511
8511
|
id: string;
|
|
8512
8512
|
createdAt: number;
|
|
8513
|
-
status?: "
|
|
8513
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
8514
8514
|
role?: "user" | "assistant" | "system" | undefined;
|
|
8515
8515
|
error?: string | undefined;
|
|
8516
|
+
updatedAt?: number | undefined;
|
|
8516
8517
|
content?: {
|
|
8517
8518
|
type: "text" | "image";
|
|
8518
8519
|
data?: string | undefined;
|
|
@@ -8535,7 +8536,6 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8535
8536
|
input?: string | undefined;
|
|
8536
8537
|
output?: string | undefined;
|
|
8537
8538
|
} | undefined;
|
|
8538
|
-
updatedAt?: number | undefined;
|
|
8539
8539
|
permission?: {
|
|
8540
8540
|
options: {
|
|
8541
8541
|
id: string;
|
|
@@ -8615,9 +8615,10 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8615
8615
|
conversationId: string;
|
|
8616
8616
|
id: string;
|
|
8617
8617
|
createdAt: number;
|
|
8618
|
-
status?: "
|
|
8618
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
8619
8619
|
role?: "user" | "assistant" | "system" | undefined;
|
|
8620
8620
|
error?: string | undefined;
|
|
8621
|
+
updatedAt?: number | undefined;
|
|
8621
8622
|
content?: {
|
|
8622
8623
|
type: "text" | "image";
|
|
8623
8624
|
data?: string | undefined;
|
|
@@ -8640,7 +8641,6 @@ export declare const agentV2HistoryResultPayloadSchema: z.ZodObject<{
|
|
|
8640
8641
|
input?: string | undefined;
|
|
8641
8642
|
output?: string | undefined;
|
|
8642
8643
|
} | undefined;
|
|
8643
|
-
updatedAt?: number | undefined;
|
|
8644
8644
|
permission?: {
|
|
8645
8645
|
requestId: string;
|
|
8646
8646
|
options?: {
|
|
@@ -9026,15 +9026,100 @@ export declare const agentV2ConversationUpdatePayloadSchema: z.ZodObject<{
|
|
|
9026
9026
|
conversationId: z.ZodString;
|
|
9027
9027
|
title: z.ZodOptional<z.ZodString>;
|
|
9028
9028
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
9029
|
+
model: z.ZodOptional<z.ZodString>;
|
|
9030
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
9031
|
+
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
9032
|
+
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
9029
9033
|
}, "strip", z.ZodTypeAny, {
|
|
9030
9034
|
conversationId: string;
|
|
9031
9035
|
title?: string | undefined;
|
|
9036
|
+
model?: string | undefined;
|
|
9037
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
9038
|
+
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
9039
|
+
collaborationMode?: "plan" | "default" | undefined;
|
|
9032
9040
|
archived?: boolean | undefined;
|
|
9033
9041
|
}, {
|
|
9034
9042
|
conversationId: string;
|
|
9035
9043
|
title?: string | undefined;
|
|
9044
|
+
model?: string | undefined;
|
|
9045
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
9046
|
+
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
9047
|
+
collaborationMode?: "plan" | "default" | undefined;
|
|
9036
9048
|
archived?: boolean | undefined;
|
|
9037
9049
|
}>;
|
|
9050
|
+
export declare const sessionPresencePayloadSchema: z.ZodObject<{
|
|
9051
|
+
hasHost: z.ZodBoolean;
|
|
9052
|
+
agentStatus: z.ZodNullable<z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>>;
|
|
9053
|
+
agentProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9054
|
+
agentConversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9055
|
+
agentTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9056
|
+
agentDetail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9057
|
+
agentLastActivity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9058
|
+
lastActivity: z.ZodOptional<z.ZodNumber>;
|
|
9059
|
+
agentUsage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9060
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9061
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9062
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
9063
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
9064
|
+
/** Model's max context window (tokens), when known — denominator for "% used". */
|
|
9065
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
9066
|
+
/** Cumulative session cost in USD (Claude reports this; Codex usually omits). */
|
|
9067
|
+
totalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
9068
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
9069
|
+
}, "strip", z.ZodTypeAny, {
|
|
9070
|
+
inputTokens?: number | undefined;
|
|
9071
|
+
outputTokens?: number | undefined;
|
|
9072
|
+
cacheReadTokens?: number | undefined;
|
|
9073
|
+
totalTokens?: number | undefined;
|
|
9074
|
+
contextWindow?: number | undefined;
|
|
9075
|
+
totalCostUsd?: number | undefined;
|
|
9076
|
+
updatedAt?: number | undefined;
|
|
9077
|
+
}, {
|
|
9078
|
+
inputTokens?: number | undefined;
|
|
9079
|
+
outputTokens?: number | undefined;
|
|
9080
|
+
cacheReadTokens?: number | undefined;
|
|
9081
|
+
totalTokens?: number | undefined;
|
|
9082
|
+
contextWindow?: number | undefined;
|
|
9083
|
+
totalCostUsd?: number | undefined;
|
|
9084
|
+
updatedAt?: number | undefined;
|
|
9085
|
+
}>>>;
|
|
9086
|
+
}, "strip", z.ZodTypeAny, {
|
|
9087
|
+
hasHost: boolean;
|
|
9088
|
+
agentStatus?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | null | undefined;
|
|
9089
|
+
agentProvider?: string | null | undefined;
|
|
9090
|
+
agentConversationId?: string | null | undefined;
|
|
9091
|
+
agentTitle?: string | null | undefined;
|
|
9092
|
+
agentDetail?: string | null | undefined;
|
|
9093
|
+
agentLastActivity?: number | null | undefined;
|
|
9094
|
+
lastActivity?: number | undefined;
|
|
9095
|
+
agentUsage?: {
|
|
9096
|
+
inputTokens?: number | undefined;
|
|
9097
|
+
outputTokens?: number | undefined;
|
|
9098
|
+
cacheReadTokens?: number | undefined;
|
|
9099
|
+
totalTokens?: number | undefined;
|
|
9100
|
+
contextWindow?: number | undefined;
|
|
9101
|
+
totalCostUsd?: number | undefined;
|
|
9102
|
+
updatedAt?: number | undefined;
|
|
9103
|
+
} | null | undefined;
|
|
9104
|
+
}, {
|
|
9105
|
+
hasHost: boolean;
|
|
9106
|
+
agentStatus?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | null | undefined;
|
|
9107
|
+
agentProvider?: string | null | undefined;
|
|
9108
|
+
agentConversationId?: string | null | undefined;
|
|
9109
|
+
agentTitle?: string | null | undefined;
|
|
9110
|
+
agentDetail?: string | null | undefined;
|
|
9111
|
+
agentLastActivity?: number | null | undefined;
|
|
9112
|
+
lastActivity?: number | undefined;
|
|
9113
|
+
agentUsage?: {
|
|
9114
|
+
inputTokens?: number | undefined;
|
|
9115
|
+
outputTokens?: number | undefined;
|
|
9116
|
+
cacheReadTokens?: number | undefined;
|
|
9117
|
+
totalTokens?: number | undefined;
|
|
9118
|
+
contextWindow?: number | undefined;
|
|
9119
|
+
totalCostUsd?: number | undefined;
|
|
9120
|
+
updatedAt?: number | undefined;
|
|
9121
|
+
} | null | undefined;
|
|
9122
|
+
}>;
|
|
9038
9123
|
export declare const agentV2ConversationDeletePayloadSchema: z.ZodObject<{
|
|
9039
9124
|
conversationId: z.ZodString;
|
|
9040
9125
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9049,6 +9134,32 @@ export declare const agentV2ConversationDeletedPayloadSchema: z.ZodObject<{
|
|
|
9049
9134
|
}, {
|
|
9050
9135
|
conversationId: string;
|
|
9051
9136
|
}>;
|
|
9137
|
+
export declare const agentV2McpLoginPayloadSchema: z.ZodObject<{
|
|
9138
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9139
|
+
serverName: z.ZodString;
|
|
9140
|
+
}, "strip", z.ZodTypeAny, {
|
|
9141
|
+
serverName: string;
|
|
9142
|
+
provider?: string | undefined;
|
|
9143
|
+
}, {
|
|
9144
|
+
serverName: string;
|
|
9145
|
+
provider?: string | undefined;
|
|
9146
|
+
}>;
|
|
9147
|
+
export declare const agentV2McpLoginResultPayloadSchema: z.ZodObject<{
|
|
9148
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9149
|
+
serverName: z.ZodString;
|
|
9150
|
+
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
9151
|
+
error: z.ZodOptional<z.ZodString>;
|
|
9152
|
+
}, "strip", z.ZodTypeAny, {
|
|
9153
|
+
serverName: string;
|
|
9154
|
+
provider?: string | undefined;
|
|
9155
|
+
error?: string | undefined;
|
|
9156
|
+
authorizationUrl?: string | undefined;
|
|
9157
|
+
}, {
|
|
9158
|
+
serverName: string;
|
|
9159
|
+
provider?: string | undefined;
|
|
9160
|
+
error?: string | undefined;
|
|
9161
|
+
authorizationUrl?: string | undefined;
|
|
9162
|
+
}>;
|
|
9052
9163
|
export declare const protocolMessageSchemas: {
|
|
9053
9164
|
readonly "session.connect": z.ZodObject<{
|
|
9054
9165
|
role: z.ZodEnum<["host", "client"]>;
|
|
@@ -9230,6 +9341,79 @@ export declare const protocolMessageSchemas: {
|
|
|
9230
9341
|
reason?: string | undefined;
|
|
9231
9342
|
}>;
|
|
9232
9343
|
readonly "session.host_reconnected": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
9344
|
+
readonly "session.presence": z.ZodObject<{
|
|
9345
|
+
hasHost: z.ZodBoolean;
|
|
9346
|
+
agentStatus: z.ZodNullable<z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>>;
|
|
9347
|
+
agentProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9348
|
+
agentConversationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9349
|
+
agentTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9350
|
+
agentDetail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9351
|
+
agentLastActivity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9352
|
+
lastActivity: z.ZodOptional<z.ZodNumber>;
|
|
9353
|
+
agentUsage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9354
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9355
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9356
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
9357
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
9358
|
+
/** Model's max context window (tokens), when known — denominator for "% used". */
|
|
9359
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
9360
|
+
/** Cumulative session cost in USD (Claude reports this; Codex usually omits). */
|
|
9361
|
+
totalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
9362
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
9363
|
+
}, "strip", z.ZodTypeAny, {
|
|
9364
|
+
inputTokens?: number | undefined;
|
|
9365
|
+
outputTokens?: number | undefined;
|
|
9366
|
+
cacheReadTokens?: number | undefined;
|
|
9367
|
+
totalTokens?: number | undefined;
|
|
9368
|
+
contextWindow?: number | undefined;
|
|
9369
|
+
totalCostUsd?: number | undefined;
|
|
9370
|
+
updatedAt?: number | undefined;
|
|
9371
|
+
}, {
|
|
9372
|
+
inputTokens?: number | undefined;
|
|
9373
|
+
outputTokens?: number | undefined;
|
|
9374
|
+
cacheReadTokens?: number | undefined;
|
|
9375
|
+
totalTokens?: number | undefined;
|
|
9376
|
+
contextWindow?: number | undefined;
|
|
9377
|
+
totalCostUsd?: number | undefined;
|
|
9378
|
+
updatedAt?: number | undefined;
|
|
9379
|
+
}>>>;
|
|
9380
|
+
}, "strip", z.ZodTypeAny, {
|
|
9381
|
+
hasHost: boolean;
|
|
9382
|
+
agentStatus?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | null | undefined;
|
|
9383
|
+
agentProvider?: string | null | undefined;
|
|
9384
|
+
agentConversationId?: string | null | undefined;
|
|
9385
|
+
agentTitle?: string | null | undefined;
|
|
9386
|
+
agentDetail?: string | null | undefined;
|
|
9387
|
+
agentLastActivity?: number | null | undefined;
|
|
9388
|
+
lastActivity?: number | undefined;
|
|
9389
|
+
agentUsage?: {
|
|
9390
|
+
inputTokens?: number | undefined;
|
|
9391
|
+
outputTokens?: number | undefined;
|
|
9392
|
+
cacheReadTokens?: number | undefined;
|
|
9393
|
+
totalTokens?: number | undefined;
|
|
9394
|
+
contextWindow?: number | undefined;
|
|
9395
|
+
totalCostUsd?: number | undefined;
|
|
9396
|
+
updatedAt?: number | undefined;
|
|
9397
|
+
} | null | undefined;
|
|
9398
|
+
}, {
|
|
9399
|
+
hasHost: boolean;
|
|
9400
|
+
agentStatus?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | null | undefined;
|
|
9401
|
+
agentProvider?: string | null | undefined;
|
|
9402
|
+
agentConversationId?: string | null | undefined;
|
|
9403
|
+
agentTitle?: string | null | undefined;
|
|
9404
|
+
agentDetail?: string | null | undefined;
|
|
9405
|
+
agentLastActivity?: number | null | undefined;
|
|
9406
|
+
lastActivity?: number | undefined;
|
|
9407
|
+
agentUsage?: {
|
|
9408
|
+
inputTokens?: number | undefined;
|
|
9409
|
+
outputTokens?: number | undefined;
|
|
9410
|
+
cacheReadTokens?: number | undefined;
|
|
9411
|
+
totalTokens?: number | undefined;
|
|
9412
|
+
contextWindow?: number | undefined;
|
|
9413
|
+
totalCostUsd?: number | undefined;
|
|
9414
|
+
updatedAt?: number | undefined;
|
|
9415
|
+
} | null | undefined;
|
|
9416
|
+
}>;
|
|
9233
9417
|
readonly "screen.start": z.ZodObject<{
|
|
9234
9418
|
fps: z.ZodDefault<z.ZodNumber>;
|
|
9235
9419
|
quality: z.ZodDefault<z.ZodNumber>;
|
|
@@ -9276,8 +9460,8 @@ export declare const protocolMessageSchemas: {
|
|
|
9276
9460
|
error?: string | undefined;
|
|
9277
9461
|
}, {
|
|
9278
9462
|
active: boolean;
|
|
9279
|
-
mode?: "webrtc" | "fallback" | "off" | undefined;
|
|
9280
9463
|
error?: string | undefined;
|
|
9464
|
+
mode?: "webrtc" | "fallback" | "off" | undefined;
|
|
9281
9465
|
}>;
|
|
9282
9466
|
readonly "screen.offer": z.ZodObject<{
|
|
9283
9467
|
sdp: z.ZodString;
|
|
@@ -9539,7 +9723,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9539
9723
|
pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
|
|
9540
9724
|
machineId: z.ZodOptional<z.ZodString>;
|
|
9541
9725
|
}, "strip", z.ZodTypeAny, {
|
|
9542
|
-
phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting"
|
|
9726
|
+
phase: "idle" | "error" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
9543
9727
|
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
9544
9728
|
machineId?: string | undefined;
|
|
9545
9729
|
seq?: number | undefined;
|
|
@@ -9562,7 +9746,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9562
9746
|
} | undefined;
|
|
9563
9747
|
pendingPermissionCount?: number | undefined;
|
|
9564
9748
|
}, {
|
|
9565
|
-
phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting"
|
|
9749
|
+
phase: "idle" | "error" | "thinking" | "tool_use" | "outputting" | "waiting";
|
|
9566
9750
|
provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
|
|
9567
9751
|
machineId?: string | undefined;
|
|
9568
9752
|
seq?: number | undefined;
|
|
@@ -9704,10 +9888,10 @@ export declare const protocolMessageSchemas: {
|
|
|
9704
9888
|
readonly "agent.initialize": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
9705
9889
|
readonly "agent.capabilities": z.ZodObject<{
|
|
9706
9890
|
enabled: z.ZodBoolean;
|
|
9707
|
-
provider: z.ZodOptional<z.
|
|
9891
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9708
9892
|
machineId: z.ZodOptional<z.ZodString>;
|
|
9709
9893
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9710
|
-
id: z.
|
|
9894
|
+
id: z.ZodString;
|
|
9711
9895
|
label: z.ZodString;
|
|
9712
9896
|
enabled: z.ZodBoolean;
|
|
9713
9897
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -9733,7 +9917,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9733
9917
|
name: z.ZodString;
|
|
9734
9918
|
title: z.ZodString;
|
|
9735
9919
|
description: z.ZodOptional<z.ZodString>;
|
|
9736
|
-
provider: z.ZodOptional<z.
|
|
9920
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9737
9921
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
9738
9922
|
category: z.ZodOptional<z.ZodString>;
|
|
9739
9923
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -9748,7 +9932,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9748
9932
|
title: string;
|
|
9749
9933
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
9750
9934
|
executionKind: "prompt" | "native" | "local_ui";
|
|
9751
|
-
provider?:
|
|
9935
|
+
provider?: string | undefined;
|
|
9752
9936
|
description?: string | undefined;
|
|
9753
9937
|
category?: string | undefined;
|
|
9754
9938
|
requiresIdle?: boolean | undefined;
|
|
@@ -9758,7 +9942,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9758
9942
|
name: string;
|
|
9759
9943
|
id: string;
|
|
9760
9944
|
title: string;
|
|
9761
|
-
provider?:
|
|
9945
|
+
provider?: string | undefined;
|
|
9762
9946
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
9763
9947
|
description?: string | undefined;
|
|
9764
9948
|
category?: string | undefined;
|
|
@@ -9801,7 +9985,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9801
9985
|
}>, "many">>;
|
|
9802
9986
|
}, "strip", z.ZodTypeAny, {
|
|
9803
9987
|
enabled: boolean;
|
|
9804
|
-
id:
|
|
9988
|
+
id: string;
|
|
9805
9989
|
label: string;
|
|
9806
9990
|
reason?: string | undefined;
|
|
9807
9991
|
supportsImages?: boolean | undefined;
|
|
@@ -9822,7 +10006,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9822
10006
|
title: string;
|
|
9823
10007
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
9824
10008
|
executionKind: "prompt" | "native" | "local_ui";
|
|
9825
|
-
provider?:
|
|
10009
|
+
provider?: string | undefined;
|
|
9826
10010
|
description?: string | undefined;
|
|
9827
10011
|
category?: string | undefined;
|
|
9828
10012
|
requiresIdle?: boolean | undefined;
|
|
@@ -9844,7 +10028,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9844
10028
|
}[] | undefined;
|
|
9845
10029
|
}, {
|
|
9846
10030
|
enabled: boolean;
|
|
9847
|
-
id:
|
|
10031
|
+
id: string;
|
|
9848
10032
|
label: string;
|
|
9849
10033
|
reason?: string | undefined;
|
|
9850
10034
|
supportsImages?: boolean | undefined;
|
|
@@ -9862,7 +10046,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9862
10046
|
name: string;
|
|
9863
10047
|
id: string;
|
|
9864
10048
|
title: string;
|
|
9865
|
-
provider?:
|
|
10049
|
+
provider?: string | undefined;
|
|
9866
10050
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
9867
10051
|
description?: string | undefined;
|
|
9868
10052
|
category?: string | undefined;
|
|
@@ -9904,13 +10088,13 @@ export declare const protocolMessageSchemas: {
|
|
|
9904
10088
|
supportsSessionList: boolean;
|
|
9905
10089
|
supportsSessionLoad: boolean;
|
|
9906
10090
|
supportsAudio: boolean;
|
|
9907
|
-
provider?:
|
|
10091
|
+
provider?: string | undefined;
|
|
9908
10092
|
protocolVersion?: number | undefined;
|
|
9909
10093
|
machineId?: string | undefined;
|
|
9910
10094
|
error?: string | undefined;
|
|
9911
10095
|
providers?: {
|
|
9912
10096
|
enabled: boolean;
|
|
9913
|
-
id:
|
|
10097
|
+
id: string;
|
|
9914
10098
|
label: string;
|
|
9915
10099
|
reason?: string | undefined;
|
|
9916
10100
|
supportsImages?: boolean | undefined;
|
|
@@ -9931,7 +10115,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9931
10115
|
title: string;
|
|
9932
10116
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
9933
10117
|
executionKind: "prompt" | "native" | "local_ui";
|
|
9934
|
-
provider?:
|
|
10118
|
+
provider?: string | undefined;
|
|
9935
10119
|
description?: string | undefined;
|
|
9936
10120
|
category?: string | undefined;
|
|
9937
10121
|
requiresIdle?: boolean | undefined;
|
|
@@ -9954,7 +10138,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9954
10138
|
}[] | undefined;
|
|
9955
10139
|
}, {
|
|
9956
10140
|
enabled: boolean;
|
|
9957
|
-
provider?:
|
|
10141
|
+
provider?: string | undefined;
|
|
9958
10142
|
protocolVersion?: number | undefined;
|
|
9959
10143
|
machineId?: string | undefined;
|
|
9960
10144
|
error?: string | undefined;
|
|
@@ -9964,7 +10148,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9964
10148
|
supportsCancel?: boolean | undefined;
|
|
9965
10149
|
providers?: {
|
|
9966
10150
|
enabled: boolean;
|
|
9967
|
-
id:
|
|
10151
|
+
id: string;
|
|
9968
10152
|
label: string;
|
|
9969
10153
|
reason?: string | undefined;
|
|
9970
10154
|
supportsImages?: boolean | undefined;
|
|
@@ -9982,7 +10166,7 @@ export declare const protocolMessageSchemas: {
|
|
|
9982
10166
|
name: string;
|
|
9983
10167
|
id: string;
|
|
9984
10168
|
title: string;
|
|
9985
|
-
provider?:
|
|
10169
|
+
provider?: string | undefined;
|
|
9986
10170
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
9987
10171
|
description?: string | undefined;
|
|
9988
10172
|
category?: string | undefined;
|
|
@@ -10012,14 +10196,14 @@ export declare const protocolMessageSchemas: {
|
|
|
10012
10196
|
}>;
|
|
10013
10197
|
readonly "agent.session.new": z.ZodObject<{
|
|
10014
10198
|
cwd: z.ZodOptional<z.ZodString>;
|
|
10015
|
-
provider: z.ZodOptional<z.
|
|
10199
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10016
10200
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10017
10201
|
}, "strip", z.ZodTypeAny, {
|
|
10018
|
-
provider?:
|
|
10202
|
+
provider?: string | undefined;
|
|
10019
10203
|
cwd?: string | undefined;
|
|
10020
10204
|
mcpServers?: Record<string, unknown> | undefined;
|
|
10021
10205
|
}, {
|
|
10022
|
-
provider?:
|
|
10206
|
+
provider?: string | undefined;
|
|
10023
10207
|
cwd?: string | undefined;
|
|
10024
10208
|
mcpServers?: Record<string, unknown> | undefined;
|
|
10025
10209
|
}>;
|
|
@@ -10157,7 +10341,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10157
10341
|
createdAt: number;
|
|
10158
10342
|
isStreaming?: boolean | undefined;
|
|
10159
10343
|
} | undefined;
|
|
10160
|
-
status?: "
|
|
10344
|
+
status?: "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
10161
10345
|
agentSessionId?: string | undefined;
|
|
10162
10346
|
error?: string | undefined;
|
|
10163
10347
|
plan?: {
|
|
@@ -10183,7 +10367,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10183
10367
|
createdAt: number;
|
|
10184
10368
|
isStreaming?: boolean | undefined;
|
|
10185
10369
|
} | undefined;
|
|
10186
|
-
status?: "
|
|
10370
|
+
status?: "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
10187
10371
|
agentSessionId?: string | undefined;
|
|
10188
10372
|
error?: string | undefined;
|
|
10189
10373
|
plan?: {
|
|
@@ -10264,10 +10448,10 @@ export declare const protocolMessageSchemas: {
|
|
|
10264
10448
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
10265
10449
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
10266
10450
|
enabled: z.ZodBoolean;
|
|
10267
|
-
provider: z.ZodOptional<z.
|
|
10451
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10268
10452
|
machineId: z.ZodOptional<z.ZodString>;
|
|
10269
10453
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10270
|
-
id: z.
|
|
10454
|
+
id: z.ZodString;
|
|
10271
10455
|
label: z.ZodString;
|
|
10272
10456
|
enabled: z.ZodBoolean;
|
|
10273
10457
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -10293,7 +10477,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10293
10477
|
name: z.ZodString;
|
|
10294
10478
|
title: z.ZodString;
|
|
10295
10479
|
description: z.ZodOptional<z.ZodString>;
|
|
10296
|
-
provider: z.ZodOptional<z.
|
|
10480
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10297
10481
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
10298
10482
|
category: z.ZodOptional<z.ZodString>;
|
|
10299
10483
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -10308,7 +10492,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10308
10492
|
title: string;
|
|
10309
10493
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
10310
10494
|
executionKind: "prompt" | "native" | "local_ui";
|
|
10311
|
-
provider?:
|
|
10495
|
+
provider?: string | undefined;
|
|
10312
10496
|
description?: string | undefined;
|
|
10313
10497
|
category?: string | undefined;
|
|
10314
10498
|
requiresIdle?: boolean | undefined;
|
|
@@ -10318,7 +10502,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10318
10502
|
name: string;
|
|
10319
10503
|
id: string;
|
|
10320
10504
|
title: string;
|
|
10321
|
-
provider?:
|
|
10505
|
+
provider?: string | undefined;
|
|
10322
10506
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
10323
10507
|
description?: string | undefined;
|
|
10324
10508
|
category?: string | undefined;
|
|
@@ -10361,7 +10545,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10361
10545
|
}>, "many">>;
|
|
10362
10546
|
}, "strip", z.ZodTypeAny, {
|
|
10363
10547
|
enabled: boolean;
|
|
10364
|
-
id:
|
|
10548
|
+
id: string;
|
|
10365
10549
|
label: string;
|
|
10366
10550
|
reason?: string | undefined;
|
|
10367
10551
|
supportsImages?: boolean | undefined;
|
|
@@ -10382,7 +10566,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10382
10566
|
title: string;
|
|
10383
10567
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
10384
10568
|
executionKind: "prompt" | "native" | "local_ui";
|
|
10385
|
-
provider?:
|
|
10569
|
+
provider?: string | undefined;
|
|
10386
10570
|
description?: string | undefined;
|
|
10387
10571
|
category?: string | undefined;
|
|
10388
10572
|
requiresIdle?: boolean | undefined;
|
|
@@ -10404,7 +10588,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10404
10588
|
}[] | undefined;
|
|
10405
10589
|
}, {
|
|
10406
10590
|
enabled: boolean;
|
|
10407
|
-
id:
|
|
10591
|
+
id: string;
|
|
10408
10592
|
label: string;
|
|
10409
10593
|
reason?: string | undefined;
|
|
10410
10594
|
supportsImages?: boolean | undefined;
|
|
@@ -10422,7 +10606,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10422
10606
|
name: string;
|
|
10423
10607
|
id: string;
|
|
10424
10608
|
title: string;
|
|
10425
|
-
provider?:
|
|
10609
|
+
provider?: string | undefined;
|
|
10426
10610
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
10427
10611
|
description?: string | undefined;
|
|
10428
10612
|
category?: string | undefined;
|
|
@@ -10464,13 +10648,13 @@ export declare const protocolMessageSchemas: {
|
|
|
10464
10648
|
supportsSessionList: boolean;
|
|
10465
10649
|
supportsSessionLoad: boolean;
|
|
10466
10650
|
supportsAudio: boolean;
|
|
10467
|
-
provider?:
|
|
10651
|
+
provider?: string | undefined;
|
|
10468
10652
|
protocolVersion?: number | undefined;
|
|
10469
10653
|
machineId?: string | undefined;
|
|
10470
10654
|
error?: string | undefined;
|
|
10471
10655
|
providers?: {
|
|
10472
10656
|
enabled: boolean;
|
|
10473
|
-
id:
|
|
10657
|
+
id: string;
|
|
10474
10658
|
label: string;
|
|
10475
10659
|
reason?: string | undefined;
|
|
10476
10660
|
supportsImages?: boolean | undefined;
|
|
@@ -10491,7 +10675,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10491
10675
|
title: string;
|
|
10492
10676
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
10493
10677
|
executionKind: "prompt" | "native" | "local_ui";
|
|
10494
|
-
provider?:
|
|
10678
|
+
provider?: string | undefined;
|
|
10495
10679
|
description?: string | undefined;
|
|
10496
10680
|
category?: string | undefined;
|
|
10497
10681
|
requiresIdle?: boolean | undefined;
|
|
@@ -10514,7 +10698,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10514
10698
|
}[] | undefined;
|
|
10515
10699
|
}, {
|
|
10516
10700
|
enabled: boolean;
|
|
10517
|
-
provider?:
|
|
10701
|
+
provider?: string | undefined;
|
|
10518
10702
|
protocolVersion?: number | undefined;
|
|
10519
10703
|
machineId?: string | undefined;
|
|
10520
10704
|
error?: string | undefined;
|
|
@@ -10524,7 +10708,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10524
10708
|
supportsCancel?: boolean | undefined;
|
|
10525
10709
|
providers?: {
|
|
10526
10710
|
enabled: boolean;
|
|
10527
|
-
id:
|
|
10711
|
+
id: string;
|
|
10528
10712
|
label: string;
|
|
10529
10713
|
reason?: string | undefined;
|
|
10530
10714
|
supportsImages?: boolean | undefined;
|
|
@@ -10542,7 +10726,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10542
10726
|
name: string;
|
|
10543
10727
|
id: string;
|
|
10544
10728
|
title: string;
|
|
10545
|
-
provider?:
|
|
10729
|
+
provider?: string | undefined;
|
|
10546
10730
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
10547
10731
|
description?: string | undefined;
|
|
10548
10732
|
category?: string | undefined;
|
|
@@ -10653,7 +10837,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10653
10837
|
status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
|
|
10654
10838
|
error: z.ZodOptional<z.ZodString>;
|
|
10655
10839
|
}, "strip", z.ZodTypeAny, {
|
|
10656
|
-
status: "
|
|
10840
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
10657
10841
|
messages: {
|
|
10658
10842
|
role: "user" | "assistant" | "system";
|
|
10659
10843
|
content: string;
|
|
@@ -10691,13 +10875,13 @@ export declare const protocolMessageSchemas: {
|
|
|
10691
10875
|
supportsSessionList: boolean;
|
|
10692
10876
|
supportsSessionLoad: boolean;
|
|
10693
10877
|
supportsAudio: boolean;
|
|
10694
|
-
provider?:
|
|
10878
|
+
provider?: string | undefined;
|
|
10695
10879
|
protocolVersion?: number | undefined;
|
|
10696
10880
|
machineId?: string | undefined;
|
|
10697
10881
|
error?: string | undefined;
|
|
10698
10882
|
providers?: {
|
|
10699
10883
|
enabled: boolean;
|
|
10700
|
-
id:
|
|
10884
|
+
id: string;
|
|
10701
10885
|
label: string;
|
|
10702
10886
|
reason?: string | undefined;
|
|
10703
10887
|
supportsImages?: boolean | undefined;
|
|
@@ -10718,7 +10902,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10718
10902
|
title: string;
|
|
10719
10903
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
10720
10904
|
executionKind: "prompt" | "native" | "local_ui";
|
|
10721
|
-
provider?:
|
|
10905
|
+
provider?: string | undefined;
|
|
10722
10906
|
description?: string | undefined;
|
|
10723
10907
|
category?: string | undefined;
|
|
10724
10908
|
requiresIdle?: boolean | undefined;
|
|
@@ -10741,12 +10925,12 @@ export declare const protocolMessageSchemas: {
|
|
|
10741
10925
|
}[] | undefined;
|
|
10742
10926
|
} | undefined;
|
|
10743
10927
|
}, {
|
|
10744
|
-
status?: "
|
|
10928
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
10745
10929
|
agentSessionId?: string | undefined;
|
|
10746
10930
|
error?: string | undefined;
|
|
10747
10931
|
capabilities?: {
|
|
10748
10932
|
enabled: boolean;
|
|
10749
|
-
provider?:
|
|
10933
|
+
provider?: string | undefined;
|
|
10750
10934
|
protocolVersion?: number | undefined;
|
|
10751
10935
|
machineId?: string | undefined;
|
|
10752
10936
|
error?: string | undefined;
|
|
@@ -10756,7 +10940,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10756
10940
|
supportsCancel?: boolean | undefined;
|
|
10757
10941
|
providers?: {
|
|
10758
10942
|
enabled: boolean;
|
|
10759
|
-
id:
|
|
10943
|
+
id: string;
|
|
10760
10944
|
label: string;
|
|
10761
10945
|
reason?: string | undefined;
|
|
10762
10946
|
supportsImages?: boolean | undefined;
|
|
@@ -10774,7 +10958,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10774
10958
|
name: string;
|
|
10775
10959
|
id: string;
|
|
10776
10960
|
title: string;
|
|
10777
|
-
provider?:
|
|
10961
|
+
provider?: string | undefined;
|
|
10778
10962
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
10779
10963
|
description?: string | undefined;
|
|
10780
10964
|
category?: string | undefined;
|
|
@@ -10832,10 +11016,10 @@ export declare const protocolMessageSchemas: {
|
|
|
10832
11016
|
readonly "agent.v2.capabilities.request": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
10833
11017
|
readonly "agent.v2.capabilities": z.ZodObject<{
|
|
10834
11018
|
enabled: z.ZodBoolean;
|
|
10835
|
-
provider: z.ZodOptional<z.
|
|
11019
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10836
11020
|
machineId: z.ZodOptional<z.ZodString>;
|
|
10837
11021
|
providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10838
|
-
id: z.
|
|
11022
|
+
id: z.ZodString;
|
|
10839
11023
|
label: z.ZodString;
|
|
10840
11024
|
enabled: z.ZodBoolean;
|
|
10841
11025
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -10861,7 +11045,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10861
11045
|
name: z.ZodString;
|
|
10862
11046
|
title: z.ZodString;
|
|
10863
11047
|
description: z.ZodOptional<z.ZodString>;
|
|
10864
|
-
provider: z.ZodOptional<z.
|
|
11048
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10865
11049
|
source: z.ZodDefault<z.ZodEnum<["built_in", "custom", "project", "user", "linkshell"]>>;
|
|
10866
11050
|
category: z.ZodOptional<z.ZodString>;
|
|
10867
11051
|
argsMode: z.ZodDefault<z.ZodEnum<["none", "optional", "required", "raw"]>>;
|
|
@@ -10876,7 +11060,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10876
11060
|
title: string;
|
|
10877
11061
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
10878
11062
|
executionKind: "prompt" | "native" | "local_ui";
|
|
10879
|
-
provider?:
|
|
11063
|
+
provider?: string | undefined;
|
|
10880
11064
|
description?: string | undefined;
|
|
10881
11065
|
category?: string | undefined;
|
|
10882
11066
|
requiresIdle?: boolean | undefined;
|
|
@@ -10886,7 +11070,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10886
11070
|
name: string;
|
|
10887
11071
|
id: string;
|
|
10888
11072
|
title: string;
|
|
10889
|
-
provider?:
|
|
11073
|
+
provider?: string | undefined;
|
|
10890
11074
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
10891
11075
|
description?: string | undefined;
|
|
10892
11076
|
category?: string | undefined;
|
|
@@ -10929,7 +11113,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10929
11113
|
}>, "many">>;
|
|
10930
11114
|
}, "strip", z.ZodTypeAny, {
|
|
10931
11115
|
enabled: boolean;
|
|
10932
|
-
id:
|
|
11116
|
+
id: string;
|
|
10933
11117
|
label: string;
|
|
10934
11118
|
reason?: string | undefined;
|
|
10935
11119
|
supportsImages?: boolean | undefined;
|
|
@@ -10950,7 +11134,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10950
11134
|
title: string;
|
|
10951
11135
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
10952
11136
|
executionKind: "prompt" | "native" | "local_ui";
|
|
10953
|
-
provider?:
|
|
11137
|
+
provider?: string | undefined;
|
|
10954
11138
|
description?: string | undefined;
|
|
10955
11139
|
category?: string | undefined;
|
|
10956
11140
|
requiresIdle?: boolean | undefined;
|
|
@@ -10972,7 +11156,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10972
11156
|
}[] | undefined;
|
|
10973
11157
|
}, {
|
|
10974
11158
|
enabled: boolean;
|
|
10975
|
-
id:
|
|
11159
|
+
id: string;
|
|
10976
11160
|
label: string;
|
|
10977
11161
|
reason?: string | undefined;
|
|
10978
11162
|
supportsImages?: boolean | undefined;
|
|
@@ -10990,7 +11174,7 @@ export declare const protocolMessageSchemas: {
|
|
|
10990
11174
|
name: string;
|
|
10991
11175
|
id: string;
|
|
10992
11176
|
title: string;
|
|
10993
|
-
provider?:
|
|
11177
|
+
provider?: string | undefined;
|
|
10994
11178
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
10995
11179
|
description?: string | undefined;
|
|
10996
11180
|
category?: string | undefined;
|
|
@@ -11035,13 +11219,13 @@ export declare const protocolMessageSchemas: {
|
|
|
11035
11219
|
supportsSessionLoad: boolean;
|
|
11036
11220
|
supportsAudio: boolean;
|
|
11037
11221
|
workspaceProtocolVersion: number;
|
|
11038
|
-
provider?:
|
|
11222
|
+
provider?: string | undefined;
|
|
11039
11223
|
protocolVersion?: number | undefined;
|
|
11040
11224
|
machineId?: string | undefined;
|
|
11041
11225
|
error?: string | undefined;
|
|
11042
11226
|
providers?: {
|
|
11043
11227
|
enabled: boolean;
|
|
11044
|
-
id:
|
|
11228
|
+
id: string;
|
|
11045
11229
|
label: string;
|
|
11046
11230
|
reason?: string | undefined;
|
|
11047
11231
|
supportsImages?: boolean | undefined;
|
|
@@ -11062,7 +11246,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11062
11246
|
title: string;
|
|
11063
11247
|
argsMode: "none" | "optional" | "required" | "raw";
|
|
11064
11248
|
executionKind: "prompt" | "native" | "local_ui";
|
|
11065
|
-
provider?:
|
|
11249
|
+
provider?: string | undefined;
|
|
11066
11250
|
description?: string | undefined;
|
|
11067
11251
|
category?: string | undefined;
|
|
11068
11252
|
requiresIdle?: boolean | undefined;
|
|
@@ -11085,7 +11269,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11085
11269
|
}[] | undefined;
|
|
11086
11270
|
}, {
|
|
11087
11271
|
enabled: boolean;
|
|
11088
|
-
provider?:
|
|
11272
|
+
provider?: string | undefined;
|
|
11089
11273
|
protocolVersion?: number | undefined;
|
|
11090
11274
|
machineId?: string | undefined;
|
|
11091
11275
|
error?: string | undefined;
|
|
@@ -11095,7 +11279,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11095
11279
|
supportsCancel?: boolean | undefined;
|
|
11096
11280
|
providers?: {
|
|
11097
11281
|
enabled: boolean;
|
|
11098
|
-
id:
|
|
11282
|
+
id: string;
|
|
11099
11283
|
label: string;
|
|
11100
11284
|
reason?: string | undefined;
|
|
11101
11285
|
supportsImages?: boolean | undefined;
|
|
@@ -11113,7 +11297,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11113
11297
|
name: string;
|
|
11114
11298
|
id: string;
|
|
11115
11299
|
title: string;
|
|
11116
|
-
provider?:
|
|
11300
|
+
provider?: string | undefined;
|
|
11117
11301
|
source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
|
|
11118
11302
|
description?: string | undefined;
|
|
11119
11303
|
category?: string | undefined;
|
|
@@ -11146,7 +11330,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11146
11330
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
11147
11331
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
11148
11332
|
cwd: z.ZodOptional<z.ZodString>;
|
|
11149
|
-
provider: z.ZodOptional<z.
|
|
11333
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
11150
11334
|
model: z.ZodOptional<z.ZodString>;
|
|
11151
11335
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
11152
11336
|
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
@@ -11157,7 +11341,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11157
11341
|
}, "strip", z.ZodTypeAny, {
|
|
11158
11342
|
conversationId?: string | undefined;
|
|
11159
11343
|
agentSessionId?: string | undefined;
|
|
11160
|
-
provider?:
|
|
11344
|
+
provider?: string | undefined;
|
|
11161
11345
|
cwd?: string | undefined;
|
|
11162
11346
|
title?: string | undefined;
|
|
11163
11347
|
model?: string | undefined;
|
|
@@ -11169,7 +11353,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11169
11353
|
}, {
|
|
11170
11354
|
conversationId?: string | undefined;
|
|
11171
11355
|
agentSessionId?: string | undefined;
|
|
11172
|
-
provider?:
|
|
11356
|
+
provider?: string | undefined;
|
|
11173
11357
|
cwd?: string | undefined;
|
|
11174
11358
|
title?: string | undefined;
|
|
11175
11359
|
model?: string | undefined;
|
|
@@ -11183,7 +11367,7 @@ export declare const protocolMessageSchemas: {
|
|
|
11183
11367
|
conversation: z.ZodObject<{
|
|
11184
11368
|
id: z.ZodString;
|
|
11185
11369
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
11186
|
-
provider: z.ZodDefault<z.
|
|
11370
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
11187
11371
|
cwd: z.ZodString;
|
|
11188
11372
|
title: z.ZodOptional<z.ZodString>;
|
|
11189
11373
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -11223,8 +11407,8 @@ export declare const protocolMessageSchemas: {
|
|
|
11223
11407
|
updatedAt?: number | undefined;
|
|
11224
11408
|
}>>;
|
|
11225
11409
|
}, "strip", z.ZodTypeAny, {
|
|
11226
|
-
status: "
|
|
11227
|
-
provider:
|
|
11410
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
11411
|
+
provider: string;
|
|
11228
11412
|
cwd: string;
|
|
11229
11413
|
id: string;
|
|
11230
11414
|
createdAt: number;
|
|
@@ -11251,9 +11435,9 @@ export declare const protocolMessageSchemas: {
|
|
|
11251
11435
|
id: string;
|
|
11252
11436
|
createdAt: number;
|
|
11253
11437
|
lastActivityAt: number;
|
|
11254
|
-
status?: "
|
|
11438
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
11255
11439
|
agentSessionId?: string | undefined;
|
|
11256
|
-
provider?:
|
|
11440
|
+
provider?: string | undefined;
|
|
11257
11441
|
title?: string | undefined;
|
|
11258
11442
|
model?: string | undefined;
|
|
11259
11443
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -11602,9 +11786,10 @@ export declare const protocolMessageSchemas: {
|
|
|
11602
11786
|
conversationId: string;
|
|
11603
11787
|
id: string;
|
|
11604
11788
|
createdAt: number;
|
|
11605
|
-
status?: "
|
|
11789
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
11606
11790
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11607
11791
|
error?: string | undefined;
|
|
11792
|
+
updatedAt?: number | undefined;
|
|
11608
11793
|
content?: {
|
|
11609
11794
|
type: "text" | "image";
|
|
11610
11795
|
data?: string | undefined;
|
|
@@ -11627,7 +11812,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11627
11812
|
input?: string | undefined;
|
|
11628
11813
|
output?: string | undefined;
|
|
11629
11814
|
} | undefined;
|
|
11630
|
-
updatedAt?: number | undefined;
|
|
11631
11815
|
permission?: {
|
|
11632
11816
|
options: {
|
|
11633
11817
|
id: string;
|
|
@@ -11702,9 +11886,10 @@ export declare const protocolMessageSchemas: {
|
|
|
11702
11886
|
conversationId: string;
|
|
11703
11887
|
id: string;
|
|
11704
11888
|
createdAt: number;
|
|
11705
|
-
status?: "
|
|
11889
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
11706
11890
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11707
11891
|
error?: string | undefined;
|
|
11892
|
+
updatedAt?: number | undefined;
|
|
11708
11893
|
content?: {
|
|
11709
11894
|
type: "text" | "image";
|
|
11710
11895
|
data?: string | undefined;
|
|
@@ -11727,7 +11912,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11727
11912
|
input?: string | undefined;
|
|
11728
11913
|
output?: string | undefined;
|
|
11729
11914
|
} | undefined;
|
|
11730
|
-
updatedAt?: number | undefined;
|
|
11731
11915
|
permission?: {
|
|
11732
11916
|
requestId: string;
|
|
11733
11917
|
options?: {
|
|
@@ -11801,8 +11985,8 @@ export declare const protocolMessageSchemas: {
|
|
|
11801
11985
|
requestedConversationId: z.ZodOptional<z.ZodString>;
|
|
11802
11986
|
}, "strip", z.ZodTypeAny, {
|
|
11803
11987
|
conversation: {
|
|
11804
|
-
status: "
|
|
11805
|
-
provider:
|
|
11988
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
11989
|
+
provider: string;
|
|
11806
11990
|
cwd: string;
|
|
11807
11991
|
id: string;
|
|
11808
11992
|
createdAt: number;
|
|
@@ -11830,9 +12014,10 @@ export declare const protocolMessageSchemas: {
|
|
|
11830
12014
|
conversationId: string;
|
|
11831
12015
|
id: string;
|
|
11832
12016
|
createdAt: number;
|
|
11833
|
-
status?: "
|
|
12017
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
11834
12018
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11835
12019
|
error?: string | undefined;
|
|
12020
|
+
updatedAt?: number | undefined;
|
|
11836
12021
|
content?: {
|
|
11837
12022
|
type: "text" | "image";
|
|
11838
12023
|
data?: string | undefined;
|
|
@@ -11855,7 +12040,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11855
12040
|
input?: string | undefined;
|
|
11856
12041
|
output?: string | undefined;
|
|
11857
12042
|
} | undefined;
|
|
11858
|
-
updatedAt?: number | undefined;
|
|
11859
12043
|
permission?: {
|
|
11860
12044
|
options: {
|
|
11861
12045
|
id: string;
|
|
@@ -11933,9 +12117,9 @@ export declare const protocolMessageSchemas: {
|
|
|
11933
12117
|
id: string;
|
|
11934
12118
|
createdAt: number;
|
|
11935
12119
|
lastActivityAt: number;
|
|
11936
|
-
status?: "
|
|
12120
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
11937
12121
|
agentSessionId?: string | undefined;
|
|
11938
|
-
provider?:
|
|
12122
|
+
provider?: string | undefined;
|
|
11939
12123
|
title?: string | undefined;
|
|
11940
12124
|
model?: string | undefined;
|
|
11941
12125
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -11958,9 +12142,10 @@ export declare const protocolMessageSchemas: {
|
|
|
11958
12142
|
conversationId: string;
|
|
11959
12143
|
id: string;
|
|
11960
12144
|
createdAt: number;
|
|
11961
|
-
status?: "
|
|
12145
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
11962
12146
|
role?: "user" | "assistant" | "system" | undefined;
|
|
11963
12147
|
error?: string | undefined;
|
|
12148
|
+
updatedAt?: number | undefined;
|
|
11964
12149
|
content?: {
|
|
11965
12150
|
type: "text" | "image";
|
|
11966
12151
|
data?: string | undefined;
|
|
@@ -11983,7 +12168,6 @@ export declare const protocolMessageSchemas: {
|
|
|
11983
12168
|
input?: string | undefined;
|
|
11984
12169
|
output?: string | undefined;
|
|
11985
12170
|
} | undefined;
|
|
11986
|
-
updatedAt?: number | undefined;
|
|
11987
12171
|
permission?: {
|
|
11988
12172
|
requestId: string;
|
|
11989
12173
|
options?: {
|
|
@@ -12067,7 +12251,7 @@ export declare const protocolMessageSchemas: {
|
|
|
12067
12251
|
conversations: z.ZodArray<z.ZodObject<{
|
|
12068
12252
|
id: z.ZodString;
|
|
12069
12253
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
12070
|
-
provider: z.ZodDefault<z.
|
|
12254
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
12071
12255
|
cwd: z.ZodString;
|
|
12072
12256
|
title: z.ZodOptional<z.ZodString>;
|
|
12073
12257
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -12107,8 +12291,8 @@ export declare const protocolMessageSchemas: {
|
|
|
12107
12291
|
updatedAt?: number | undefined;
|
|
12108
12292
|
}>>;
|
|
12109
12293
|
}, "strip", z.ZodTypeAny, {
|
|
12110
|
-
status: "
|
|
12111
|
-
provider:
|
|
12294
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
12295
|
+
provider: string;
|
|
12112
12296
|
cwd: string;
|
|
12113
12297
|
id: string;
|
|
12114
12298
|
createdAt: number;
|
|
@@ -12135,9 +12319,9 @@ export declare const protocolMessageSchemas: {
|
|
|
12135
12319
|
id: string;
|
|
12136
12320
|
createdAt: number;
|
|
12137
12321
|
lastActivityAt: number;
|
|
12138
|
-
status?: "
|
|
12322
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
12139
12323
|
agentSessionId?: string | undefined;
|
|
12140
|
-
provider?:
|
|
12324
|
+
provider?: string | undefined;
|
|
12141
12325
|
title?: string | undefined;
|
|
12142
12326
|
model?: string | undefined;
|
|
12143
12327
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -12157,8 +12341,8 @@ export declare const protocolMessageSchemas: {
|
|
|
12157
12341
|
}>, "many">;
|
|
12158
12342
|
}, "strip", z.ZodTypeAny, {
|
|
12159
12343
|
conversations: {
|
|
12160
|
-
status: "
|
|
12161
|
-
provider:
|
|
12344
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
12345
|
+
provider: string;
|
|
12162
12346
|
cwd: string;
|
|
12163
12347
|
id: string;
|
|
12164
12348
|
createdAt: number;
|
|
@@ -12187,9 +12371,9 @@ export declare const protocolMessageSchemas: {
|
|
|
12187
12371
|
id: string;
|
|
12188
12372
|
createdAt: number;
|
|
12189
12373
|
lastActivityAt: number;
|
|
12190
|
-
status?: "
|
|
12374
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
12191
12375
|
agentSessionId?: string | undefined;
|
|
12192
|
-
provider?:
|
|
12376
|
+
provider?: string | undefined;
|
|
12193
12377
|
title?: string | undefined;
|
|
12194
12378
|
model?: string | undefined;
|
|
12195
12379
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -12212,13 +12396,25 @@ export declare const protocolMessageSchemas: {
|
|
|
12212
12396
|
conversationId: z.ZodString;
|
|
12213
12397
|
title: z.ZodOptional<z.ZodString>;
|
|
12214
12398
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
12399
|
+
model: z.ZodOptional<z.ZodString>;
|
|
12400
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
12401
|
+
permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
|
|
12402
|
+
collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
|
|
12215
12403
|
}, "strip", z.ZodTypeAny, {
|
|
12216
12404
|
conversationId: string;
|
|
12217
12405
|
title?: string | undefined;
|
|
12406
|
+
model?: string | undefined;
|
|
12407
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12408
|
+
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12409
|
+
collaborationMode?: "plan" | "default" | undefined;
|
|
12218
12410
|
archived?: boolean | undefined;
|
|
12219
12411
|
}, {
|
|
12220
12412
|
conversationId: string;
|
|
12221
12413
|
title?: string | undefined;
|
|
12414
|
+
model?: string | undefined;
|
|
12415
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12416
|
+
permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
|
|
12417
|
+
collaborationMode?: "plan" | "default" | undefined;
|
|
12222
12418
|
archived?: boolean | undefined;
|
|
12223
12419
|
}>;
|
|
12224
12420
|
readonly "agent.v2.conversation.delete": z.ZodObject<{
|
|
@@ -12684,9 +12880,10 @@ export declare const protocolMessageSchemas: {
|
|
|
12684
12880
|
conversationId: string;
|
|
12685
12881
|
id: string;
|
|
12686
12882
|
createdAt: number;
|
|
12687
|
-
status?: "
|
|
12883
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
12688
12884
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12689
12885
|
error?: string | undefined;
|
|
12886
|
+
updatedAt?: number | undefined;
|
|
12690
12887
|
content?: {
|
|
12691
12888
|
type: "text" | "image";
|
|
12692
12889
|
data?: string | undefined;
|
|
@@ -12709,7 +12906,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12709
12906
|
input?: string | undefined;
|
|
12710
12907
|
output?: string | undefined;
|
|
12711
12908
|
} | undefined;
|
|
12712
|
-
updatedAt?: number | undefined;
|
|
12713
12909
|
permission?: {
|
|
12714
12910
|
options: {
|
|
12715
12911
|
id: string;
|
|
@@ -12784,9 +12980,10 @@ export declare const protocolMessageSchemas: {
|
|
|
12784
12980
|
conversationId: string;
|
|
12785
12981
|
id: string;
|
|
12786
12982
|
createdAt: number;
|
|
12787
|
-
status?: "
|
|
12983
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
12788
12984
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12789
12985
|
error?: string | undefined;
|
|
12986
|
+
updatedAt?: number | undefined;
|
|
12790
12987
|
content?: {
|
|
12791
12988
|
type: "text" | "image";
|
|
12792
12989
|
data?: string | undefined;
|
|
@@ -12809,7 +13006,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12809
13006
|
input?: string | undefined;
|
|
12810
13007
|
output?: string | undefined;
|
|
12811
13008
|
} | undefined;
|
|
12812
|
-
updatedAt?: number | undefined;
|
|
12813
13009
|
permission?: {
|
|
12814
13010
|
requestId: string;
|
|
12815
13011
|
options?: {
|
|
@@ -12896,9 +13092,10 @@ export declare const protocolMessageSchemas: {
|
|
|
12896
13092
|
conversationId: string;
|
|
12897
13093
|
id: string;
|
|
12898
13094
|
createdAt: number;
|
|
12899
|
-
status?: "
|
|
13095
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
12900
13096
|
role?: "user" | "assistant" | "system" | undefined;
|
|
12901
13097
|
error?: string | undefined;
|
|
13098
|
+
updatedAt?: number | undefined;
|
|
12902
13099
|
content?: {
|
|
12903
13100
|
type: "text" | "image";
|
|
12904
13101
|
data?: string | undefined;
|
|
@@ -12921,7 +13118,6 @@ export declare const protocolMessageSchemas: {
|
|
|
12921
13118
|
input?: string | undefined;
|
|
12922
13119
|
output?: string | undefined;
|
|
12923
13120
|
} | undefined;
|
|
12924
|
-
updatedAt?: number | undefined;
|
|
12925
13121
|
permission?: {
|
|
12926
13122
|
options: {
|
|
12927
13123
|
id: string;
|
|
@@ -13008,9 +13204,10 @@ export declare const protocolMessageSchemas: {
|
|
|
13008
13204
|
conversationId: string;
|
|
13009
13205
|
id: string;
|
|
13010
13206
|
createdAt: number;
|
|
13011
|
-
status?: "
|
|
13207
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13012
13208
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13013
13209
|
error?: string | undefined;
|
|
13210
|
+
updatedAt?: number | undefined;
|
|
13014
13211
|
content?: {
|
|
13015
13212
|
type: "text" | "image";
|
|
13016
13213
|
data?: string | undefined;
|
|
@@ -13033,7 +13230,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13033
13230
|
input?: string | undefined;
|
|
13034
13231
|
output?: string | undefined;
|
|
13035
13232
|
} | undefined;
|
|
13036
|
-
updatedAt?: number | undefined;
|
|
13037
13233
|
permission?: {
|
|
13038
13234
|
requestId: string;
|
|
13039
13235
|
options?: {
|
|
@@ -13129,7 +13325,7 @@ export declare const protocolMessageSchemas: {
|
|
|
13129
13325
|
conversations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13130
13326
|
id: z.ZodString;
|
|
13131
13327
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
13132
|
-
provider: z.ZodDefault<z.
|
|
13328
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
13133
13329
|
cwd: z.ZodString;
|
|
13134
13330
|
title: z.ZodOptional<z.ZodString>;
|
|
13135
13331
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -13169,8 +13365,8 @@ export declare const protocolMessageSchemas: {
|
|
|
13169
13365
|
updatedAt?: number | undefined;
|
|
13170
13366
|
}>>;
|
|
13171
13367
|
}, "strip", z.ZodTypeAny, {
|
|
13172
|
-
status: "
|
|
13173
|
-
provider:
|
|
13368
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
13369
|
+
provider: string;
|
|
13174
13370
|
cwd: string;
|
|
13175
13371
|
id: string;
|
|
13176
13372
|
createdAt: number;
|
|
@@ -13197,9 +13393,9 @@ export declare const protocolMessageSchemas: {
|
|
|
13197
13393
|
id: string;
|
|
13198
13394
|
createdAt: number;
|
|
13199
13395
|
lastActivityAt: number;
|
|
13200
|
-
status?: "
|
|
13396
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13201
13397
|
agentSessionId?: string | undefined;
|
|
13202
|
-
provider?:
|
|
13398
|
+
provider?: string | undefined;
|
|
13203
13399
|
title?: string | undefined;
|
|
13204
13400
|
model?: string | undefined;
|
|
13205
13401
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -13549,9 +13745,10 @@ export declare const protocolMessageSchemas: {
|
|
|
13549
13745
|
conversationId: string;
|
|
13550
13746
|
id: string;
|
|
13551
13747
|
createdAt: number;
|
|
13552
|
-
status?: "
|
|
13748
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13553
13749
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13554
13750
|
error?: string | undefined;
|
|
13751
|
+
updatedAt?: number | undefined;
|
|
13555
13752
|
content?: {
|
|
13556
13753
|
type: "text" | "image";
|
|
13557
13754
|
data?: string | undefined;
|
|
@@ -13574,7 +13771,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13574
13771
|
input?: string | undefined;
|
|
13575
13772
|
output?: string | undefined;
|
|
13576
13773
|
} | undefined;
|
|
13577
|
-
updatedAt?: number | undefined;
|
|
13578
13774
|
permission?: {
|
|
13579
13775
|
options: {
|
|
13580
13776
|
id: string;
|
|
@@ -13649,9 +13845,10 @@ export declare const protocolMessageSchemas: {
|
|
|
13649
13845
|
conversationId: string;
|
|
13650
13846
|
id: string;
|
|
13651
13847
|
createdAt: number;
|
|
13652
|
-
status?: "
|
|
13848
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13653
13849
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13654
13850
|
error?: string | undefined;
|
|
13851
|
+
updatedAt?: number | undefined;
|
|
13655
13852
|
content?: {
|
|
13656
13853
|
type: "text" | "image";
|
|
13657
13854
|
data?: string | undefined;
|
|
@@ -13674,7 +13871,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13674
13871
|
input?: string | undefined;
|
|
13675
13872
|
output?: string | undefined;
|
|
13676
13873
|
} | undefined;
|
|
13677
|
-
updatedAt?: number | undefined;
|
|
13678
13874
|
permission?: {
|
|
13679
13875
|
requestId: string;
|
|
13680
13876
|
options?: {
|
|
@@ -13748,8 +13944,8 @@ export declare const protocolMessageSchemas: {
|
|
|
13748
13944
|
machineId: z.ZodOptional<z.ZodString>;
|
|
13749
13945
|
}, "strip", z.ZodTypeAny, {
|
|
13750
13946
|
conversations: {
|
|
13751
|
-
status: "
|
|
13752
|
-
provider:
|
|
13947
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
13948
|
+
provider: string;
|
|
13753
13949
|
cwd: string;
|
|
13754
13950
|
id: string;
|
|
13755
13951
|
createdAt: number;
|
|
@@ -13777,9 +13973,10 @@ export declare const protocolMessageSchemas: {
|
|
|
13777
13973
|
conversationId: string;
|
|
13778
13974
|
id: string;
|
|
13779
13975
|
createdAt: number;
|
|
13780
|
-
status?: "
|
|
13976
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13781
13977
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13782
13978
|
error?: string | undefined;
|
|
13979
|
+
updatedAt?: number | undefined;
|
|
13783
13980
|
content?: {
|
|
13784
13981
|
type: "text" | "image";
|
|
13785
13982
|
data?: string | undefined;
|
|
@@ -13802,7 +13999,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13802
13999
|
input?: string | undefined;
|
|
13803
14000
|
output?: string | undefined;
|
|
13804
14001
|
} | undefined;
|
|
13805
|
-
updatedAt?: number | undefined;
|
|
13806
14002
|
permission?: {
|
|
13807
14003
|
options: {
|
|
13808
14004
|
id: string;
|
|
@@ -13882,9 +14078,9 @@ export declare const protocolMessageSchemas: {
|
|
|
13882
14078
|
id: string;
|
|
13883
14079
|
createdAt: number;
|
|
13884
14080
|
lastActivityAt: number;
|
|
13885
|
-
status?: "
|
|
14081
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13886
14082
|
agentSessionId?: string | undefined;
|
|
13887
|
-
provider?:
|
|
14083
|
+
provider?: string | undefined;
|
|
13888
14084
|
title?: string | undefined;
|
|
13889
14085
|
model?: string | undefined;
|
|
13890
14086
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -13908,9 +14104,10 @@ export declare const protocolMessageSchemas: {
|
|
|
13908
14104
|
conversationId: string;
|
|
13909
14105
|
id: string;
|
|
13910
14106
|
createdAt: number;
|
|
13911
|
-
status?: "
|
|
14107
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
13912
14108
|
role?: "user" | "assistant" | "system" | undefined;
|
|
13913
14109
|
error?: string | undefined;
|
|
14110
|
+
updatedAt?: number | undefined;
|
|
13914
14111
|
content?: {
|
|
13915
14112
|
type: "text" | "image";
|
|
13916
14113
|
data?: string | undefined;
|
|
@@ -13933,7 +14130,6 @@ export declare const protocolMessageSchemas: {
|
|
|
13933
14130
|
input?: string | undefined;
|
|
13934
14131
|
output?: string | undefined;
|
|
13935
14132
|
} | undefined;
|
|
13936
|
-
updatedAt?: number | undefined;
|
|
13937
14133
|
permission?: {
|
|
13938
14134
|
requestId: string;
|
|
13939
14135
|
options?: {
|
|
@@ -14010,7 +14206,7 @@ export declare const protocolMessageSchemas: {
|
|
|
14010
14206
|
conversation: z.ZodOptional<z.ZodObject<{
|
|
14011
14207
|
id: z.ZodString;
|
|
14012
14208
|
agentSessionId: z.ZodOptional<z.ZodString>;
|
|
14013
|
-
provider: z.ZodDefault<z.
|
|
14209
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
14014
14210
|
cwd: z.ZodString;
|
|
14015
14211
|
title: z.ZodOptional<z.ZodString>;
|
|
14016
14212
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -14050,8 +14246,8 @@ export declare const protocolMessageSchemas: {
|
|
|
14050
14246
|
updatedAt?: number | undefined;
|
|
14051
14247
|
}>>;
|
|
14052
14248
|
}, "strip", z.ZodTypeAny, {
|
|
14053
|
-
status: "
|
|
14054
|
-
provider:
|
|
14249
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
14250
|
+
provider: string;
|
|
14055
14251
|
cwd: string;
|
|
14056
14252
|
id: string;
|
|
14057
14253
|
createdAt: number;
|
|
@@ -14078,9 +14274,9 @@ export declare const protocolMessageSchemas: {
|
|
|
14078
14274
|
id: string;
|
|
14079
14275
|
createdAt: number;
|
|
14080
14276
|
lastActivityAt: number;
|
|
14081
|
-
status?: "
|
|
14277
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
14082
14278
|
agentSessionId?: string | undefined;
|
|
14083
|
-
provider?:
|
|
14279
|
+
provider?: string | undefined;
|
|
14084
14280
|
title?: string | undefined;
|
|
14085
14281
|
model?: string | undefined;
|
|
14086
14282
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -14429,9 +14625,10 @@ export declare const protocolMessageSchemas: {
|
|
|
14429
14625
|
conversationId: string;
|
|
14430
14626
|
id: string;
|
|
14431
14627
|
createdAt: number;
|
|
14432
|
-
status?: "
|
|
14628
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
14433
14629
|
role?: "user" | "assistant" | "system" | undefined;
|
|
14434
14630
|
error?: string | undefined;
|
|
14631
|
+
updatedAt?: number | undefined;
|
|
14435
14632
|
content?: {
|
|
14436
14633
|
type: "text" | "image";
|
|
14437
14634
|
data?: string | undefined;
|
|
@@ -14454,7 +14651,6 @@ export declare const protocolMessageSchemas: {
|
|
|
14454
14651
|
input?: string | undefined;
|
|
14455
14652
|
output?: string | undefined;
|
|
14456
14653
|
} | undefined;
|
|
14457
|
-
updatedAt?: number | undefined;
|
|
14458
14654
|
permission?: {
|
|
14459
14655
|
options: {
|
|
14460
14656
|
id: string;
|
|
@@ -14529,9 +14725,10 @@ export declare const protocolMessageSchemas: {
|
|
|
14529
14725
|
conversationId: string;
|
|
14530
14726
|
id: string;
|
|
14531
14727
|
createdAt: number;
|
|
14532
|
-
status?: "
|
|
14728
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
14533
14729
|
role?: "user" | "assistant" | "system" | undefined;
|
|
14534
14730
|
error?: string | undefined;
|
|
14731
|
+
updatedAt?: number | undefined;
|
|
14535
14732
|
content?: {
|
|
14536
14733
|
type: "text" | "image";
|
|
14537
14734
|
data?: string | undefined;
|
|
@@ -14554,7 +14751,6 @@ export declare const protocolMessageSchemas: {
|
|
|
14554
14751
|
input?: string | undefined;
|
|
14555
14752
|
output?: string | undefined;
|
|
14556
14753
|
} | undefined;
|
|
14557
|
-
updatedAt?: number | undefined;
|
|
14558
14754
|
permission?: {
|
|
14559
14755
|
requestId: string;
|
|
14560
14756
|
options?: {
|
|
@@ -14949,9 +15145,10 @@ export declare const protocolMessageSchemas: {
|
|
|
14949
15145
|
isStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
14950
15146
|
}, "strip", z.ZodTypeAny, {
|
|
14951
15147
|
itemId: string;
|
|
14952
|
-
status?: "
|
|
15148
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
14953
15149
|
role?: "user" | "assistant" | "system" | undefined;
|
|
14954
15150
|
error?: string | undefined;
|
|
15151
|
+
updatedAt?: number | undefined;
|
|
14955
15152
|
content?: {
|
|
14956
15153
|
type: "text" | "image";
|
|
14957
15154
|
data?: string | undefined;
|
|
@@ -14974,7 +15171,6 @@ export declare const protocolMessageSchemas: {
|
|
|
14974
15171
|
input?: string | undefined;
|
|
14975
15172
|
output?: string | undefined;
|
|
14976
15173
|
} | undefined;
|
|
14977
|
-
updatedAt?: number | undefined;
|
|
14978
15174
|
permission?: {
|
|
14979
15175
|
options: {
|
|
14980
15176
|
id: string;
|
|
@@ -15045,9 +15241,10 @@ export declare const protocolMessageSchemas: {
|
|
|
15045
15241
|
textDelta?: string | undefined;
|
|
15046
15242
|
}, {
|
|
15047
15243
|
itemId: string;
|
|
15048
|
-
status?: "
|
|
15244
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15049
15245
|
role?: "user" | "assistant" | "system" | undefined;
|
|
15050
15246
|
error?: string | undefined;
|
|
15247
|
+
updatedAt?: number | undefined;
|
|
15051
15248
|
content?: {
|
|
15052
15249
|
type: "text" | "image";
|
|
15053
15250
|
data?: string | undefined;
|
|
@@ -15070,7 +15267,6 @@ export declare const protocolMessageSchemas: {
|
|
|
15070
15267
|
input?: string | undefined;
|
|
15071
15268
|
output?: string | undefined;
|
|
15072
15269
|
} | undefined;
|
|
15073
|
-
updatedAt?: number | undefined;
|
|
15074
15270
|
permission?: {
|
|
15075
15271
|
requestId: string;
|
|
15076
15272
|
options?: {
|
|
@@ -15143,8 +15339,8 @@ export declare const protocolMessageSchemas: {
|
|
|
15143
15339
|
}, "strip", z.ZodTypeAny, {
|
|
15144
15340
|
conversationId: string;
|
|
15145
15341
|
conversation?: {
|
|
15146
|
-
status: "
|
|
15147
|
-
provider:
|
|
15342
|
+
status: "unavailable" | "idle" | "running" | "waiting_permission" | "error";
|
|
15343
|
+
provider: string;
|
|
15148
15344
|
cwd: string;
|
|
15149
15345
|
id: string;
|
|
15150
15346
|
createdAt: number;
|
|
@@ -15172,9 +15368,10 @@ export declare const protocolMessageSchemas: {
|
|
|
15172
15368
|
conversationId: string;
|
|
15173
15369
|
id: string;
|
|
15174
15370
|
createdAt: number;
|
|
15175
|
-
status?: "
|
|
15371
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15176
15372
|
role?: "user" | "assistant" | "system" | undefined;
|
|
15177
15373
|
error?: string | undefined;
|
|
15374
|
+
updatedAt?: number | undefined;
|
|
15178
15375
|
content?: {
|
|
15179
15376
|
type: "text" | "image";
|
|
15180
15377
|
data?: string | undefined;
|
|
@@ -15197,7 +15394,6 @@ export declare const protocolMessageSchemas: {
|
|
|
15197
15394
|
input?: string | undefined;
|
|
15198
15395
|
output?: string | undefined;
|
|
15199
15396
|
} | undefined;
|
|
15200
|
-
updatedAt?: number | undefined;
|
|
15201
15397
|
permission?: {
|
|
15202
15398
|
options: {
|
|
15203
15399
|
id: string;
|
|
@@ -15270,9 +15466,10 @@ export declare const protocolMessageSchemas: {
|
|
|
15270
15466
|
} | undefined;
|
|
15271
15467
|
patch?: {
|
|
15272
15468
|
itemId: string;
|
|
15273
|
-
status?: "
|
|
15469
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15274
15470
|
role?: "user" | "assistant" | "system" | undefined;
|
|
15275
15471
|
error?: string | undefined;
|
|
15472
|
+
updatedAt?: number | undefined;
|
|
15276
15473
|
content?: {
|
|
15277
15474
|
type: "text" | "image";
|
|
15278
15475
|
data?: string | undefined;
|
|
@@ -15295,7 +15492,6 @@ export declare const protocolMessageSchemas: {
|
|
|
15295
15492
|
input?: string | undefined;
|
|
15296
15493
|
output?: string | undefined;
|
|
15297
15494
|
} | undefined;
|
|
15298
|
-
updatedAt?: number | undefined;
|
|
15299
15495
|
permission?: {
|
|
15300
15496
|
options: {
|
|
15301
15497
|
id: string;
|
|
@@ -15372,9 +15568,9 @@ export declare const protocolMessageSchemas: {
|
|
|
15372
15568
|
id: string;
|
|
15373
15569
|
createdAt: number;
|
|
15374
15570
|
lastActivityAt: number;
|
|
15375
|
-
status?: "
|
|
15571
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15376
15572
|
agentSessionId?: string | undefined;
|
|
15377
|
-
provider?:
|
|
15573
|
+
provider?: string | undefined;
|
|
15378
15574
|
title?: string | undefined;
|
|
15379
15575
|
model?: string | undefined;
|
|
15380
15576
|
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
@@ -15397,9 +15593,10 @@ export declare const protocolMessageSchemas: {
|
|
|
15397
15593
|
conversationId: string;
|
|
15398
15594
|
id: string;
|
|
15399
15595
|
createdAt: number;
|
|
15400
|
-
status?: "
|
|
15596
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15401
15597
|
role?: "user" | "assistant" | "system" | undefined;
|
|
15402
15598
|
error?: string | undefined;
|
|
15599
|
+
updatedAt?: number | undefined;
|
|
15403
15600
|
content?: {
|
|
15404
15601
|
type: "text" | "image";
|
|
15405
15602
|
data?: string | undefined;
|
|
@@ -15422,7 +15619,6 @@ export declare const protocolMessageSchemas: {
|
|
|
15422
15619
|
input?: string | undefined;
|
|
15423
15620
|
output?: string | undefined;
|
|
15424
15621
|
} | undefined;
|
|
15425
|
-
updatedAt?: number | undefined;
|
|
15426
15622
|
permission?: {
|
|
15427
15623
|
requestId: string;
|
|
15428
15624
|
options?: {
|
|
@@ -15495,9 +15691,10 @@ export declare const protocolMessageSchemas: {
|
|
|
15495
15691
|
} | undefined;
|
|
15496
15692
|
patch?: {
|
|
15497
15693
|
itemId: string;
|
|
15498
|
-
status?: "
|
|
15694
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15499
15695
|
role?: "user" | "assistant" | "system" | undefined;
|
|
15500
15696
|
error?: string | undefined;
|
|
15697
|
+
updatedAt?: number | undefined;
|
|
15501
15698
|
content?: {
|
|
15502
15699
|
type: "text" | "image";
|
|
15503
15700
|
data?: string | undefined;
|
|
@@ -15520,7 +15717,6 @@ export declare const protocolMessageSchemas: {
|
|
|
15520
15717
|
input?: string | undefined;
|
|
15521
15718
|
output?: string | undefined;
|
|
15522
15719
|
} | undefined;
|
|
15523
|
-
updatedAt?: number | undefined;
|
|
15524
15720
|
permission?: {
|
|
15525
15721
|
requestId: string;
|
|
15526
15722
|
options?: {
|
|
@@ -15956,9 +16152,10 @@ export declare const protocolMessageSchemas: {
|
|
|
15956
16152
|
conversationId: string;
|
|
15957
16153
|
id: string;
|
|
15958
16154
|
createdAt: number;
|
|
15959
|
-
status?: "
|
|
16155
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
15960
16156
|
role?: "user" | "assistant" | "system" | undefined;
|
|
15961
16157
|
error?: string | undefined;
|
|
16158
|
+
updatedAt?: number | undefined;
|
|
15962
16159
|
content?: {
|
|
15963
16160
|
type: "text" | "image";
|
|
15964
16161
|
data?: string | undefined;
|
|
@@ -15981,7 +16178,6 @@ export declare const protocolMessageSchemas: {
|
|
|
15981
16178
|
input?: string | undefined;
|
|
15982
16179
|
output?: string | undefined;
|
|
15983
16180
|
} | undefined;
|
|
15984
|
-
updatedAt?: number | undefined;
|
|
15985
16181
|
permission?: {
|
|
15986
16182
|
options: {
|
|
15987
16183
|
id: string;
|
|
@@ -16056,9 +16252,10 @@ export declare const protocolMessageSchemas: {
|
|
|
16056
16252
|
conversationId: string;
|
|
16057
16253
|
id: string;
|
|
16058
16254
|
createdAt: number;
|
|
16059
|
-
status?: "
|
|
16255
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
16060
16256
|
role?: "user" | "assistant" | "system" | undefined;
|
|
16061
16257
|
error?: string | undefined;
|
|
16258
|
+
updatedAt?: number | undefined;
|
|
16062
16259
|
content?: {
|
|
16063
16260
|
type: "text" | "image";
|
|
16064
16261
|
data?: string | undefined;
|
|
@@ -16081,7 +16278,6 @@ export declare const protocolMessageSchemas: {
|
|
|
16081
16278
|
input?: string | undefined;
|
|
16082
16279
|
output?: string | undefined;
|
|
16083
16280
|
} | undefined;
|
|
16084
|
-
updatedAt?: number | undefined;
|
|
16085
16281
|
permission?: {
|
|
16086
16282
|
requestId: string;
|
|
16087
16283
|
options?: {
|
|
@@ -16161,9 +16357,10 @@ export declare const protocolMessageSchemas: {
|
|
|
16161
16357
|
conversationId: string;
|
|
16162
16358
|
id: string;
|
|
16163
16359
|
createdAt: number;
|
|
16164
|
-
status?: "
|
|
16360
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
16165
16361
|
role?: "user" | "assistant" | "system" | undefined;
|
|
16166
16362
|
error?: string | undefined;
|
|
16363
|
+
updatedAt?: number | undefined;
|
|
16167
16364
|
content?: {
|
|
16168
16365
|
type: "text" | "image";
|
|
16169
16366
|
data?: string | undefined;
|
|
@@ -16186,7 +16383,6 @@ export declare const protocolMessageSchemas: {
|
|
|
16186
16383
|
input?: string | undefined;
|
|
16187
16384
|
output?: string | undefined;
|
|
16188
16385
|
} | undefined;
|
|
16189
|
-
updatedAt?: number | undefined;
|
|
16190
16386
|
permission?: {
|
|
16191
16387
|
options: {
|
|
16192
16388
|
id: string;
|
|
@@ -16266,9 +16462,10 @@ export declare const protocolMessageSchemas: {
|
|
|
16266
16462
|
conversationId: string;
|
|
16267
16463
|
id: string;
|
|
16268
16464
|
createdAt: number;
|
|
16269
|
-
status?: "
|
|
16465
|
+
status?: "unavailable" | "idle" | "running" | "waiting_permission" | "error" | undefined;
|
|
16270
16466
|
role?: "user" | "assistant" | "system" | undefined;
|
|
16271
16467
|
error?: string | undefined;
|
|
16468
|
+
updatedAt?: number | undefined;
|
|
16272
16469
|
content?: {
|
|
16273
16470
|
type: "text" | "image";
|
|
16274
16471
|
data?: string | undefined;
|
|
@@ -16291,7 +16488,6 @@ export declare const protocolMessageSchemas: {
|
|
|
16291
16488
|
input?: string | undefined;
|
|
16292
16489
|
output?: string | undefined;
|
|
16293
16490
|
} | undefined;
|
|
16294
|
-
updatedAt?: number | undefined;
|
|
16295
16491
|
permission?: {
|
|
16296
16492
|
requestId: string;
|
|
16297
16493
|
options?: {
|
|
@@ -16625,10 +16821,36 @@ export declare const protocolMessageSchemas: {
|
|
|
16625
16821
|
calls?: number | undefined;
|
|
16626
16822
|
}[] | undefined;
|
|
16627
16823
|
}>;
|
|
16824
|
+
readonly "agent.v2.mcp.login": z.ZodObject<{
|
|
16825
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
16826
|
+
serverName: z.ZodString;
|
|
16827
|
+
}, "strip", z.ZodTypeAny, {
|
|
16828
|
+
serverName: string;
|
|
16829
|
+
provider?: string | undefined;
|
|
16830
|
+
}, {
|
|
16831
|
+
serverName: string;
|
|
16832
|
+
provider?: string | undefined;
|
|
16833
|
+
}>;
|
|
16834
|
+
readonly "agent.v2.mcp.login.result": z.ZodObject<{
|
|
16835
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
16836
|
+
serverName: z.ZodString;
|
|
16837
|
+
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
16838
|
+
error: z.ZodOptional<z.ZodString>;
|
|
16839
|
+
}, "strip", z.ZodTypeAny, {
|
|
16840
|
+
serverName: string;
|
|
16841
|
+
provider?: string | undefined;
|
|
16842
|
+
error?: string | undefined;
|
|
16843
|
+
authorizationUrl?: string | undefined;
|
|
16844
|
+
}, {
|
|
16845
|
+
serverName: string;
|
|
16846
|
+
provider?: string | undefined;
|
|
16847
|
+
error?: string | undefined;
|
|
16848
|
+
authorizationUrl?: string | undefined;
|
|
16849
|
+
}>;
|
|
16628
16850
|
};
|
|
16629
16851
|
export type ProtocolMessageType = keyof typeof protocolMessageSchemas;
|
|
16630
|
-
export declare const agentV2HostToClientMessageTypes: readonly ["agent.v2.capabilities", "agent.v2.conversation.opened", "agent.v2.conversation.list.result", "agent.v2.event", "agent.v2.snapshot", "agent.v2.permission.request", "agent.v2.notice", "agent.v2.history.result", "agent.v2.conversation.deleted", "agent.v2.usage.report"];
|
|
16631
|
-
export declare const agentV2ClientWriteMessageTypes: readonly ["agent.v2.conversation.open", "agent.v2.conversation.update", "agent.v2.conversation.delete", "agent.v2.prompt", "agent.v2.command.execute", "agent.v2.cancel", "agent.v2.permission.respond", "agent.v2.structured_input.respond"];
|
|
16852
|
+
export declare const agentV2HostToClientMessageTypes: readonly ["agent.v2.capabilities", "agent.v2.conversation.opened", "agent.v2.conversation.list.result", "agent.v2.event", "agent.v2.snapshot", "agent.v2.permission.request", "agent.v2.notice", "agent.v2.history.result", "agent.v2.conversation.deleted", "agent.v2.usage.report", "agent.v2.mcp.login.result"];
|
|
16853
|
+
export declare const agentV2ClientWriteMessageTypes: readonly ["agent.v2.conversation.open", "agent.v2.conversation.update", "agent.v2.conversation.delete", "agent.v2.prompt", "agent.v2.command.execute", "agent.v2.cancel", "agent.v2.permission.respond", "agent.v2.structured_input.respond", "agent.v2.mcp.login"];
|
|
16632
16854
|
export declare const agentV2ClientReadMessageTypes: readonly ["agent.v2.capabilities.request", "agent.v2.conversation.list", "agent.v2.snapshot.request", "agent.v2.history.request", "agent.v2.usage.request"];
|
|
16633
16855
|
export type AgentV2MessageRoute = "host_to_client" | "client_write" | "client_read";
|
|
16634
16856
|
export declare function agentV2MessageRoute(type: string): AgentV2MessageRoute | null;
|