@ahmadposten/talos-wire 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as z from 'zod';
2
+ import { z as z$1 } from 'zod';
2
3
 
3
4
  declare const MessageMetaSchema: z.ZodObject<{
4
5
  sentFrom: z.ZodOptional<z.ZodString>;
@@ -906,5 +907,697 @@ declare function normalizeMetadata<T>(value: T): T;
906
907
  /** Include wire aliases so accounts explicitly shared with an earlier client remain usable. */
907
908
  declare function toWireMetadata<T>(value: T): T;
908
909
 
909
- export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, LegacyMessageContentSchema, MessageContentSchema, MessageMetaSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, UpdateBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceConversationDeniedSchema, VoiceConversationGrantedSchema, VoiceConversationResponseSchema, VoiceUsageResponseSchema, authenticationContexts, createEnvelope, encryptionContexts, legacyInstallation, legacyServerBanner, normalizeMetadata, rpcMethods, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStopEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, toWireMetadata };
910
- export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, LegacyMessageContent, MessageContent, MessageMeta, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, Update, UpdateBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceConversationResponse, VoiceUsageResponse };
910
+ declare const UsageProviderSchema: z.ZodEnum<{
911
+ codex: "codex";
912
+ claude: "claude";
913
+ }>;
914
+ type UsageProvider = z.infer<typeof UsageProviderSchema>;
915
+ declare const ProviderUsageRequestSchema: z.ZodObject<{
916
+ provider: z.ZodEnum<{
917
+ codex: "codex";
918
+ claude: "claude";
919
+ }>;
920
+ refresh: z.ZodOptional<z.ZodBoolean>;
921
+ }, z.core.$strip>;
922
+ type ProviderUsageRequest = z.infer<typeof ProviderUsageRequestSchema>;
923
+ /** Provider timestamps are normalized to epoch milliseconds. Null means unknown. */
924
+ declare const ProviderUsageWindowSchema: z.ZodObject<{
925
+ id: z.ZodString;
926
+ label: z.ZodString;
927
+ scope: z.ZodOptional<z.ZodString>;
928
+ usedPercent: z.ZodNullable<z.ZodNumber>;
929
+ remainingPercent: z.ZodNullable<z.ZodNumber>;
930
+ resetsAt: z.ZodNullable<z.ZodNumber>;
931
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
932
+ }, z.core.$strip>;
933
+ type ProviderUsageWindow = z.infer<typeof ProviderUsageWindowSchema>;
934
+ /** Currency amounts use major units; provider credits are a separate unit. */
935
+ declare const ProviderUsageBalanceSchema: z.ZodObject<{
936
+ id: z.ZodString;
937
+ label: z.ZodString;
938
+ kind: z.ZodEnum<{
939
+ credits: "credits";
940
+ spend_limit: "spend_limit";
941
+ resets: "resets";
942
+ }>;
943
+ unit: z.ZodEnum<{
944
+ credits: "credits";
945
+ currency: "currency";
946
+ count: "count";
947
+ }>;
948
+ currency: z.ZodOptional<z.ZodString>;
949
+ used: z.ZodNullable<z.ZodNumber>;
950
+ limit: z.ZodNullable<z.ZodNumber>;
951
+ remaining: z.ZodNullable<z.ZodNumber>;
952
+ usedPercent: z.ZodNullable<z.ZodNumber>;
953
+ unlimited: z.ZodOptional<z.ZodBoolean>;
954
+ enabled: z.ZodOptional<z.ZodBoolean>;
955
+ disabledReason: z.ZodOptional<z.ZodEnum<{
956
+ out_of_credits: "out_of_credits";
957
+ spend_limit_reached: "spend_limit_reached";
958
+ user_disabled: "user_disabled";
959
+ unavailable: "unavailable";
960
+ }>>;
961
+ resetsAt: z.ZodNullable<z.ZodNumber>;
962
+ expiresAt: z.ZodNullable<z.ZodNumber>;
963
+ }, z.core.$strip>;
964
+ type ProviderUsageBalance = z.infer<typeof ProviderUsageBalanceSchema>;
965
+ declare const ProviderUsageSnapshotSchema: z.ZodObject<{
966
+ provider: z.ZodEnum<{
967
+ codex: "codex";
968
+ claude: "claude";
969
+ }>;
970
+ status: z.ZodEnum<{
971
+ error: "error";
972
+ unavailable: "unavailable";
973
+ ok: "ok";
974
+ unauthenticated: "unauthenticated";
975
+ unsupported: "unsupported";
976
+ }>;
977
+ account: z.ZodNullable<z.ZodObject<{
978
+ id: z.ZodOptional<z.ZodString>;
979
+ label: z.ZodString;
980
+ plan: z.ZodOptional<z.ZodString>;
981
+ }, z.core.$strip>>;
982
+ checkedAt: z.ZodNumber;
983
+ dataAsOf: z.ZodNullable<z.ZodNumber>;
984
+ freshness: z.ZodEnum<{
985
+ unknown: "unknown";
986
+ live: "live";
987
+ provider_cache_possible: "provider_cache_possible";
988
+ cached: "cached";
989
+ stale: "stale";
990
+ }>;
991
+ windows: z.ZodArray<z.ZodObject<{
992
+ id: z.ZodString;
993
+ label: z.ZodString;
994
+ scope: z.ZodOptional<z.ZodString>;
995
+ usedPercent: z.ZodNullable<z.ZodNumber>;
996
+ remainingPercent: z.ZodNullable<z.ZodNumber>;
997
+ resetsAt: z.ZodNullable<z.ZodNumber>;
998
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
999
+ }, z.core.$strip>>;
1000
+ balances: z.ZodArray<z.ZodObject<{
1001
+ id: z.ZodString;
1002
+ label: z.ZodString;
1003
+ kind: z.ZodEnum<{
1004
+ credits: "credits";
1005
+ spend_limit: "spend_limit";
1006
+ resets: "resets";
1007
+ }>;
1008
+ unit: z.ZodEnum<{
1009
+ credits: "credits";
1010
+ currency: "currency";
1011
+ count: "count";
1012
+ }>;
1013
+ currency: z.ZodOptional<z.ZodString>;
1014
+ used: z.ZodNullable<z.ZodNumber>;
1015
+ limit: z.ZodNullable<z.ZodNumber>;
1016
+ remaining: z.ZodNullable<z.ZodNumber>;
1017
+ usedPercent: z.ZodNullable<z.ZodNumber>;
1018
+ unlimited: z.ZodOptional<z.ZodBoolean>;
1019
+ enabled: z.ZodOptional<z.ZodBoolean>;
1020
+ disabledReason: z.ZodOptional<z.ZodEnum<{
1021
+ out_of_credits: "out_of_credits";
1022
+ spend_limit_reached: "spend_limit_reached";
1023
+ user_disabled: "user_disabled";
1024
+ unavailable: "unavailable";
1025
+ }>>;
1026
+ resetsAt: z.ZodNullable<z.ZodNumber>;
1027
+ expiresAt: z.ZodNullable<z.ZodNumber>;
1028
+ }, z.core.$strip>>;
1029
+ message: z.ZodOptional<z.ZodString>;
1030
+ retryAt: z.ZodOptional<z.ZodNumber>;
1031
+ }, z.core.$strip>;
1032
+ type ProviderUsageSnapshot = z.infer<typeof ProviderUsageSnapshotSchema>;
1033
+
1034
+ declare const WorkflowAgentSchema: z$1.ZodObject<{
1035
+ id: z$1.ZodString;
1036
+ revision: z$1.ZodNumber;
1037
+ name: z$1.ZodString;
1038
+ description: z$1.ZodString;
1039
+ provider: z$1.ZodLiteral<"codex">;
1040
+ model: z$1.ZodString;
1041
+ effort: z$1.ZodNullable<z$1.ZodString>;
1042
+ permissionMode: z$1.ZodEnum<{
1043
+ default: "default";
1044
+ "read-only": "read-only";
1045
+ }>;
1046
+ instructions: z$1.ZodString;
1047
+ documents: z$1.ZodArray<z$1.ZodObject<{
1048
+ name: z$1.ZodString;
1049
+ content: z$1.ZodString;
1050
+ }, z$1.core.$strip>>;
1051
+ }, z$1.core.$strip>;
1052
+ declare const WorkflowSlotSchema: z$1.ZodObject<{
1053
+ agent: z$1.ZodObject<{
1054
+ id: z$1.ZodString;
1055
+ revision: z$1.ZodNumber;
1056
+ name: z$1.ZodString;
1057
+ description: z$1.ZodString;
1058
+ provider: z$1.ZodLiteral<"codex">;
1059
+ model: z$1.ZodString;
1060
+ effort: z$1.ZodNullable<z$1.ZodString>;
1061
+ permissionMode: z$1.ZodEnum<{
1062
+ default: "default";
1063
+ "read-only": "read-only";
1064
+ }>;
1065
+ instructions: z$1.ZodString;
1066
+ documents: z$1.ZodArray<z$1.ZodObject<{
1067
+ name: z$1.ZodString;
1068
+ content: z$1.ZodString;
1069
+ }, z$1.core.$strip>>;
1070
+ }, z$1.core.$strip>;
1071
+ assignment: z$1.ZodString;
1072
+ }, z$1.core.$strip>;
1073
+ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
1074
+ id: z$1.ZodString;
1075
+ revision: z$1.ZodNumber;
1076
+ name: z$1.ZodString;
1077
+ description: z$1.ZodString;
1078
+ planners: z$1.ZodArray<z$1.ZodObject<{
1079
+ agent: z$1.ZodObject<{
1080
+ id: z$1.ZodString;
1081
+ revision: z$1.ZodNumber;
1082
+ name: z$1.ZodString;
1083
+ description: z$1.ZodString;
1084
+ provider: z$1.ZodLiteral<"codex">;
1085
+ model: z$1.ZodString;
1086
+ effort: z$1.ZodNullable<z$1.ZodString>;
1087
+ permissionMode: z$1.ZodEnum<{
1088
+ default: "default";
1089
+ "read-only": "read-only";
1090
+ }>;
1091
+ instructions: z$1.ZodString;
1092
+ documents: z$1.ZodArray<z$1.ZodObject<{
1093
+ name: z$1.ZodString;
1094
+ content: z$1.ZodString;
1095
+ }, z$1.core.$strip>>;
1096
+ }, z$1.core.$strip>;
1097
+ assignment: z$1.ZodString;
1098
+ }, z$1.core.$strip>>;
1099
+ executor: z$1.ZodObject<{
1100
+ agent: z$1.ZodObject<{
1101
+ id: z$1.ZodString;
1102
+ revision: z$1.ZodNumber;
1103
+ name: z$1.ZodString;
1104
+ description: z$1.ZodString;
1105
+ provider: z$1.ZodLiteral<"codex">;
1106
+ model: z$1.ZodString;
1107
+ effort: z$1.ZodNullable<z$1.ZodString>;
1108
+ permissionMode: z$1.ZodEnum<{
1109
+ default: "default";
1110
+ "read-only": "read-only";
1111
+ }>;
1112
+ instructions: z$1.ZodString;
1113
+ documents: z$1.ZodArray<z$1.ZodObject<{
1114
+ name: z$1.ZodString;
1115
+ content: z$1.ZodString;
1116
+ }, z$1.core.$strip>>;
1117
+ }, z$1.core.$strip>;
1118
+ assignment: z$1.ZodString;
1119
+ }, z$1.core.$strip>;
1120
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1121
+ agent: z$1.ZodObject<{
1122
+ id: z$1.ZodString;
1123
+ revision: z$1.ZodNumber;
1124
+ name: z$1.ZodString;
1125
+ description: z$1.ZodString;
1126
+ provider: z$1.ZodLiteral<"codex">;
1127
+ model: z$1.ZodString;
1128
+ effort: z$1.ZodNullable<z$1.ZodString>;
1129
+ permissionMode: z$1.ZodEnum<{
1130
+ default: "default";
1131
+ "read-only": "read-only";
1132
+ }>;
1133
+ instructions: z$1.ZodString;
1134
+ documents: z$1.ZodArray<z$1.ZodObject<{
1135
+ name: z$1.ZodString;
1136
+ content: z$1.ZodString;
1137
+ }, z$1.core.$strip>>;
1138
+ }, z$1.core.$strip>;
1139
+ assignment: z$1.ZodString;
1140
+ }, z$1.core.$strip>>;
1141
+ criteria: z$1.ZodString;
1142
+ checks: z$1.ZodArray<z$1.ZodObject<{
1143
+ name: z$1.ZodString;
1144
+ command: z$1.ZodString;
1145
+ }, z$1.core.$strip>>;
1146
+ planningRounds: z$1.ZodNumber;
1147
+ reviewRounds: z$1.ZodNumber;
1148
+ turnMinutes: z$1.ZodNumber;
1149
+ maxTurns: z$1.ZodNumber;
1150
+ approvePlan: z$1.ZodBoolean;
1151
+ updatedAt: z$1.ZodNumber;
1152
+ }, z$1.core.$strip>;
1153
+ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
1154
+ id: z$1.ZodString;
1155
+ revision: z$1.ZodNumber;
1156
+ name: z$1.ZodString;
1157
+ description: z$1.ZodString;
1158
+ planners: z$1.ZodArray<z$1.ZodObject<{
1159
+ agent: z$1.ZodObject<{
1160
+ id: z$1.ZodString;
1161
+ revision: z$1.ZodNumber;
1162
+ name: z$1.ZodString;
1163
+ description: z$1.ZodString;
1164
+ provider: z$1.ZodLiteral<"codex">;
1165
+ model: z$1.ZodString;
1166
+ effort: z$1.ZodNullable<z$1.ZodString>;
1167
+ permissionMode: z$1.ZodEnum<{
1168
+ default: "default";
1169
+ "read-only": "read-only";
1170
+ }>;
1171
+ instructions: z$1.ZodString;
1172
+ documents: z$1.ZodArray<z$1.ZodObject<{
1173
+ name: z$1.ZodString;
1174
+ content: z$1.ZodString;
1175
+ }, z$1.core.$strip>>;
1176
+ }, z$1.core.$strip>;
1177
+ assignment: z$1.ZodString;
1178
+ }, z$1.core.$strip>>;
1179
+ executor: z$1.ZodObject<{
1180
+ agent: z$1.ZodObject<{
1181
+ id: z$1.ZodString;
1182
+ revision: z$1.ZodNumber;
1183
+ name: z$1.ZodString;
1184
+ description: z$1.ZodString;
1185
+ provider: z$1.ZodLiteral<"codex">;
1186
+ model: z$1.ZodString;
1187
+ effort: z$1.ZodNullable<z$1.ZodString>;
1188
+ permissionMode: z$1.ZodEnum<{
1189
+ default: "default";
1190
+ "read-only": "read-only";
1191
+ }>;
1192
+ instructions: z$1.ZodString;
1193
+ documents: z$1.ZodArray<z$1.ZodObject<{
1194
+ name: z$1.ZodString;
1195
+ content: z$1.ZodString;
1196
+ }, z$1.core.$strip>>;
1197
+ }, z$1.core.$strip>;
1198
+ assignment: z$1.ZodString;
1199
+ }, z$1.core.$strip>;
1200
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1201
+ agent: z$1.ZodObject<{
1202
+ id: z$1.ZodString;
1203
+ revision: z$1.ZodNumber;
1204
+ name: z$1.ZodString;
1205
+ description: z$1.ZodString;
1206
+ provider: z$1.ZodLiteral<"codex">;
1207
+ model: z$1.ZodString;
1208
+ effort: z$1.ZodNullable<z$1.ZodString>;
1209
+ permissionMode: z$1.ZodEnum<{
1210
+ default: "default";
1211
+ "read-only": "read-only";
1212
+ }>;
1213
+ instructions: z$1.ZodString;
1214
+ documents: z$1.ZodArray<z$1.ZodObject<{
1215
+ name: z$1.ZodString;
1216
+ content: z$1.ZodString;
1217
+ }, z$1.core.$strip>>;
1218
+ }, z$1.core.$strip>;
1219
+ assignment: z$1.ZodString;
1220
+ }, z$1.core.$strip>>;
1221
+ criteria: z$1.ZodString;
1222
+ checks: z$1.ZodArray<z$1.ZodObject<{
1223
+ name: z$1.ZodString;
1224
+ command: z$1.ZodString;
1225
+ }, z$1.core.$strip>>;
1226
+ planningRounds: z$1.ZodNumber;
1227
+ reviewRounds: z$1.ZodNumber;
1228
+ turnMinutes: z$1.ZodNumber;
1229
+ maxTurns: z$1.ZodNumber;
1230
+ approvePlan: z$1.ZodBoolean;
1231
+ updatedAt: z$1.ZodNumber;
1232
+ }, z$1.core.$strip>>;
1233
+ type WorkflowDefinition = z$1.infer<typeof WorkflowDefinitionSchema>;
1234
+ type WorkflowSlot = z$1.infer<typeof WorkflowSlotSchema>;
1235
+ type WorkflowAgent = z$1.infer<typeof WorkflowAgentSchema>;
1236
+ declare const WorkflowStageSchema: z$1.ZodEnum<{
1237
+ propose: "propose";
1238
+ consolidate: "consolidate";
1239
+ plan_vote: "plan_vote";
1240
+ execute: "execute";
1241
+ review: "review";
1242
+ verify: "verify";
1243
+ }>;
1244
+ type WorkflowStage = z$1.infer<typeof WorkflowStageSchema>;
1245
+ declare const WorkflowDecisionSchema: z$1.ZodObject<{
1246
+ decision: z$1.ZodEnum<{
1247
+ approve: "approve";
1248
+ changes: "changes";
1249
+ information: "information";
1250
+ replan: "replan";
1251
+ }>;
1252
+ summary: z$1.ZodString;
1253
+ document: z$1.ZodString;
1254
+ findings: z$1.ZodArray<z$1.ZodObject<{
1255
+ title: z$1.ZodString;
1256
+ evidence: z$1.ZodString;
1257
+ correction: z$1.ZodString;
1258
+ blocking: z$1.ZodBoolean;
1259
+ }, z$1.core.$strip>>;
1260
+ }, z$1.core.$strip>;
1261
+ type WorkflowDecision = z$1.infer<typeof WorkflowDecisionSchema>;
1262
+ declare const WorkflowTaskSchema: z$1.ZodObject<{
1263
+ id: z$1.ZodString;
1264
+ stage: z$1.ZodEnum<{
1265
+ propose: "propose";
1266
+ consolidate: "consolidate";
1267
+ plan_vote: "plan_vote";
1268
+ execute: "execute";
1269
+ review: "review";
1270
+ verify: "verify";
1271
+ }>;
1272
+ round: z$1.ZodNumber;
1273
+ agentId: z$1.ZodString;
1274
+ agentName: z$1.ZodString;
1275
+ clarifications: z$1.ZodOptional<z$1.ZodNumber>;
1276
+ assignment: z$1.ZodString;
1277
+ version: z$1.ZodString;
1278
+ status: z$1.ZodEnum<{
1279
+ running: "running";
1280
+ done: "done";
1281
+ interrupted: "interrupted";
1282
+ }>;
1283
+ startedAt: z$1.ZodNumber;
1284
+ completedAt: z$1.ZodOptional<z$1.ZodNumber>;
1285
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
1286
+ threadId: z$1.ZodOptional<z$1.ZodString>;
1287
+ prompt: z$1.ZodString;
1288
+ result: z$1.ZodOptional<z$1.ZodObject<{
1289
+ decision: z$1.ZodEnum<{
1290
+ approve: "approve";
1291
+ changes: "changes";
1292
+ information: "information";
1293
+ replan: "replan";
1294
+ }>;
1295
+ summary: z$1.ZodString;
1296
+ document: z$1.ZodString;
1297
+ findings: z$1.ZodArray<z$1.ZodObject<{
1298
+ title: z$1.ZodString;
1299
+ evidence: z$1.ZodString;
1300
+ correction: z$1.ZodString;
1301
+ blocking: z$1.ZodBoolean;
1302
+ }, z$1.core.$strip>>;
1303
+ }, z$1.core.$strip>>;
1304
+ error: z$1.ZodOptional<z$1.ZodString>;
1305
+ }, z$1.core.$strip>;
1306
+ declare const WorkflowRunSchema: z$1.ZodObject<{
1307
+ id: z$1.ZodString;
1308
+ revision: z$1.ZodNumber;
1309
+ definition: z$1.ZodObject<{
1310
+ id: z$1.ZodString;
1311
+ revision: z$1.ZodNumber;
1312
+ name: z$1.ZodString;
1313
+ description: z$1.ZodString;
1314
+ planners: z$1.ZodArray<z$1.ZodObject<{
1315
+ agent: z$1.ZodObject<{
1316
+ id: z$1.ZodString;
1317
+ revision: z$1.ZodNumber;
1318
+ name: z$1.ZodString;
1319
+ description: z$1.ZodString;
1320
+ provider: z$1.ZodLiteral<"codex">;
1321
+ model: z$1.ZodString;
1322
+ effort: z$1.ZodNullable<z$1.ZodString>;
1323
+ permissionMode: z$1.ZodEnum<{
1324
+ default: "default";
1325
+ "read-only": "read-only";
1326
+ }>;
1327
+ instructions: z$1.ZodString;
1328
+ documents: z$1.ZodArray<z$1.ZodObject<{
1329
+ name: z$1.ZodString;
1330
+ content: z$1.ZodString;
1331
+ }, z$1.core.$strip>>;
1332
+ }, z$1.core.$strip>;
1333
+ assignment: z$1.ZodString;
1334
+ }, z$1.core.$strip>>;
1335
+ executor: z$1.ZodObject<{
1336
+ agent: z$1.ZodObject<{
1337
+ id: z$1.ZodString;
1338
+ revision: z$1.ZodNumber;
1339
+ name: z$1.ZodString;
1340
+ description: z$1.ZodString;
1341
+ provider: z$1.ZodLiteral<"codex">;
1342
+ model: z$1.ZodString;
1343
+ effort: z$1.ZodNullable<z$1.ZodString>;
1344
+ permissionMode: z$1.ZodEnum<{
1345
+ default: "default";
1346
+ "read-only": "read-only";
1347
+ }>;
1348
+ instructions: z$1.ZodString;
1349
+ documents: z$1.ZodArray<z$1.ZodObject<{
1350
+ name: z$1.ZodString;
1351
+ content: z$1.ZodString;
1352
+ }, z$1.core.$strip>>;
1353
+ }, z$1.core.$strip>;
1354
+ assignment: z$1.ZodString;
1355
+ }, z$1.core.$strip>;
1356
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1357
+ agent: z$1.ZodObject<{
1358
+ id: z$1.ZodString;
1359
+ revision: z$1.ZodNumber;
1360
+ name: z$1.ZodString;
1361
+ description: z$1.ZodString;
1362
+ provider: z$1.ZodLiteral<"codex">;
1363
+ model: z$1.ZodString;
1364
+ effort: z$1.ZodNullable<z$1.ZodString>;
1365
+ permissionMode: z$1.ZodEnum<{
1366
+ default: "default";
1367
+ "read-only": "read-only";
1368
+ }>;
1369
+ instructions: z$1.ZodString;
1370
+ documents: z$1.ZodArray<z$1.ZodObject<{
1371
+ name: z$1.ZodString;
1372
+ content: z$1.ZodString;
1373
+ }, z$1.core.$strip>>;
1374
+ }, z$1.core.$strip>;
1375
+ assignment: z$1.ZodString;
1376
+ }, z$1.core.$strip>>;
1377
+ criteria: z$1.ZodString;
1378
+ checks: z$1.ZodArray<z$1.ZodObject<{
1379
+ name: z$1.ZodString;
1380
+ command: z$1.ZodString;
1381
+ }, z$1.core.$strip>>;
1382
+ planningRounds: z$1.ZodNumber;
1383
+ reviewRounds: z$1.ZodNumber;
1384
+ turnMinutes: z$1.ZodNumber;
1385
+ maxTurns: z$1.ZodNumber;
1386
+ approvePlan: z$1.ZodBoolean;
1387
+ updatedAt: z$1.ZodNumber;
1388
+ }, z$1.core.$strip>;
1389
+ machineId: z$1.ZodString;
1390
+ task: z$1.ZodString;
1391
+ requestedDirectory: z$1.ZodOptional<z$1.ZodString>;
1392
+ sourceDirectory: z$1.ZodString;
1393
+ directory: z$1.ZodString;
1394
+ branch: z$1.ZodString;
1395
+ baseCommit: z$1.ZodString;
1396
+ status: z$1.ZodEnum<{
1397
+ cancelled: "cancelled";
1398
+ running: "running";
1399
+ paused: "paused";
1400
+ needs_input: "needs_input";
1401
+ complete: "complete";
1402
+ }>;
1403
+ stage: z$1.ZodEnum<{
1404
+ propose: "propose";
1405
+ consolidate: "consolidate";
1406
+ plan_vote: "plan_vote";
1407
+ execute: "execute";
1408
+ review: "review";
1409
+ verify: "verify";
1410
+ }>;
1411
+ planningRound: z$1.ZodNumber;
1412
+ reviewRound: z$1.ZodNumber;
1413
+ planVersion: z$1.ZodNumber;
1414
+ plan: z$1.ZodString;
1415
+ artifactVersion: z$1.ZodString;
1416
+ reason: z$1.ZodString;
1417
+ tasks: z$1.ZodArray<z$1.ZodObject<{
1418
+ id: z$1.ZodString;
1419
+ stage: z$1.ZodEnum<{
1420
+ propose: "propose";
1421
+ consolidate: "consolidate";
1422
+ plan_vote: "plan_vote";
1423
+ execute: "execute";
1424
+ review: "review";
1425
+ verify: "verify";
1426
+ }>;
1427
+ round: z$1.ZodNumber;
1428
+ agentId: z$1.ZodString;
1429
+ agentName: z$1.ZodString;
1430
+ clarifications: z$1.ZodOptional<z$1.ZodNumber>;
1431
+ assignment: z$1.ZodString;
1432
+ version: z$1.ZodString;
1433
+ status: z$1.ZodEnum<{
1434
+ running: "running";
1435
+ done: "done";
1436
+ interrupted: "interrupted";
1437
+ }>;
1438
+ startedAt: z$1.ZodNumber;
1439
+ completedAt: z$1.ZodOptional<z$1.ZodNumber>;
1440
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
1441
+ threadId: z$1.ZodOptional<z$1.ZodString>;
1442
+ prompt: z$1.ZodString;
1443
+ result: z$1.ZodOptional<z$1.ZodObject<{
1444
+ decision: z$1.ZodEnum<{
1445
+ approve: "approve";
1446
+ changes: "changes";
1447
+ information: "information";
1448
+ replan: "replan";
1449
+ }>;
1450
+ summary: z$1.ZodString;
1451
+ document: z$1.ZodString;
1452
+ findings: z$1.ZodArray<z$1.ZodObject<{
1453
+ title: z$1.ZodString;
1454
+ evidence: z$1.ZodString;
1455
+ correction: z$1.ZodString;
1456
+ blocking: z$1.ZodBoolean;
1457
+ }, z$1.core.$strip>>;
1458
+ }, z$1.core.$strip>>;
1459
+ error: z$1.ZodOptional<z$1.ZodString>;
1460
+ }, z$1.core.$strip>>;
1461
+ checks: z$1.ZodArray<z$1.ZodObject<{
1462
+ name: z$1.ZodString;
1463
+ exitCode: z$1.ZodNullable<z$1.ZodNumber>;
1464
+ output: z$1.ZodString;
1465
+ version: z$1.ZodString;
1466
+ }, z$1.core.$strip>>;
1467
+ events: z$1.ZodArray<z$1.ZodObject<{
1468
+ at: z$1.ZodNumber;
1469
+ text: z$1.ZodString;
1470
+ }, z$1.core.$strip>>;
1471
+ notes: z$1.ZodArray<z$1.ZodString>;
1472
+ approvedPlanVersion: z$1.ZodNullable<z$1.ZodNumber>;
1473
+ createdAt: z$1.ZodNumber;
1474
+ updatedAt: z$1.ZodNumber;
1475
+ }, z$1.core.$strip>;
1476
+ type WorkflowRun = z$1.infer<typeof WorkflowRunSchema>;
1477
+ type WorkflowTask = z$1.infer<typeof WorkflowTaskSchema>;
1478
+ declare const WorkflowStartSchema: z$1.ZodObject<{
1479
+ id: z$1.ZodString;
1480
+ definition: z$1.ZodObject<{
1481
+ id: z$1.ZodString;
1482
+ revision: z$1.ZodNumber;
1483
+ name: z$1.ZodString;
1484
+ description: z$1.ZodString;
1485
+ planners: z$1.ZodArray<z$1.ZodObject<{
1486
+ agent: z$1.ZodObject<{
1487
+ id: z$1.ZodString;
1488
+ revision: z$1.ZodNumber;
1489
+ name: z$1.ZodString;
1490
+ description: z$1.ZodString;
1491
+ provider: z$1.ZodLiteral<"codex">;
1492
+ model: z$1.ZodString;
1493
+ effort: z$1.ZodNullable<z$1.ZodString>;
1494
+ permissionMode: z$1.ZodEnum<{
1495
+ default: "default";
1496
+ "read-only": "read-only";
1497
+ }>;
1498
+ instructions: z$1.ZodString;
1499
+ documents: z$1.ZodArray<z$1.ZodObject<{
1500
+ name: z$1.ZodString;
1501
+ content: z$1.ZodString;
1502
+ }, z$1.core.$strip>>;
1503
+ }, z$1.core.$strip>;
1504
+ assignment: z$1.ZodString;
1505
+ }, z$1.core.$strip>>;
1506
+ executor: z$1.ZodObject<{
1507
+ agent: z$1.ZodObject<{
1508
+ id: z$1.ZodString;
1509
+ revision: z$1.ZodNumber;
1510
+ name: z$1.ZodString;
1511
+ description: z$1.ZodString;
1512
+ provider: z$1.ZodLiteral<"codex">;
1513
+ model: z$1.ZodString;
1514
+ effort: z$1.ZodNullable<z$1.ZodString>;
1515
+ permissionMode: z$1.ZodEnum<{
1516
+ default: "default";
1517
+ "read-only": "read-only";
1518
+ }>;
1519
+ instructions: z$1.ZodString;
1520
+ documents: z$1.ZodArray<z$1.ZodObject<{
1521
+ name: z$1.ZodString;
1522
+ content: z$1.ZodString;
1523
+ }, z$1.core.$strip>>;
1524
+ }, z$1.core.$strip>;
1525
+ assignment: z$1.ZodString;
1526
+ }, z$1.core.$strip>;
1527
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1528
+ agent: z$1.ZodObject<{
1529
+ id: z$1.ZodString;
1530
+ revision: z$1.ZodNumber;
1531
+ name: z$1.ZodString;
1532
+ description: z$1.ZodString;
1533
+ provider: z$1.ZodLiteral<"codex">;
1534
+ model: z$1.ZodString;
1535
+ effort: z$1.ZodNullable<z$1.ZodString>;
1536
+ permissionMode: z$1.ZodEnum<{
1537
+ default: "default";
1538
+ "read-only": "read-only";
1539
+ }>;
1540
+ instructions: z$1.ZodString;
1541
+ documents: z$1.ZodArray<z$1.ZodObject<{
1542
+ name: z$1.ZodString;
1543
+ content: z$1.ZodString;
1544
+ }, z$1.core.$strip>>;
1545
+ }, z$1.core.$strip>;
1546
+ assignment: z$1.ZodString;
1547
+ }, z$1.core.$strip>>;
1548
+ criteria: z$1.ZodString;
1549
+ checks: z$1.ZodArray<z$1.ZodObject<{
1550
+ name: z$1.ZodString;
1551
+ command: z$1.ZodString;
1552
+ }, z$1.core.$strip>>;
1553
+ planningRounds: z$1.ZodNumber;
1554
+ reviewRounds: z$1.ZodNumber;
1555
+ turnMinutes: z$1.ZodNumber;
1556
+ maxTurns: z$1.ZodNumber;
1557
+ approvePlan: z$1.ZodBoolean;
1558
+ updatedAt: z$1.ZodNumber;
1559
+ }, z$1.core.$strip>;
1560
+ task: z$1.ZodString;
1561
+ directory: z$1.ZodString;
1562
+ }, z$1.core.$strip>;
1563
+ declare const WorkflowActionSchema: z$1.ZodObject<{
1564
+ id: z$1.ZodString;
1565
+ expectedRevision: z$1.ZodNumber;
1566
+ action: z$1.ZodEnum<{
1567
+ pause: "pause";
1568
+ resume: "resume";
1569
+ cancel: "cancel";
1570
+ approve_plan: "approve_plan";
1571
+ revise_plan: "revise_plan";
1572
+ retry_review: "retry_review";
1573
+ replace_agent: "replace_agent";
1574
+ }>;
1575
+ note: z$1.ZodDefault<z$1.ZodString>;
1576
+ agentId: z$1.ZodOptional<z$1.ZodString>;
1577
+ replacement: z$1.ZodOptional<z$1.ZodObject<{
1578
+ id: z$1.ZodString;
1579
+ revision: z$1.ZodNumber;
1580
+ name: z$1.ZodString;
1581
+ description: z$1.ZodString;
1582
+ provider: z$1.ZodLiteral<"codex">;
1583
+ model: z$1.ZodString;
1584
+ effort: z$1.ZodNullable<z$1.ZodString>;
1585
+ permissionMode: z$1.ZodEnum<{
1586
+ default: "default";
1587
+ "read-only": "read-only";
1588
+ }>;
1589
+ instructions: z$1.ZodString;
1590
+ documents: z$1.ZodArray<z$1.ZodObject<{
1591
+ name: z$1.ZodString;
1592
+ content: z$1.ZodString;
1593
+ }, z$1.core.$strip>>;
1594
+ }, z$1.core.$strip>>;
1595
+ }, z$1.core.$strip>;
1596
+ declare function workflowEnabled(s: {
1597
+ experiments?: boolean;
1598
+ expWorkflows?: boolean;
1599
+ }): boolean;
1600
+ declare const workflowStageLabel: Record<WorkflowStage, string>;
1601
+
1602
+ export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, LegacyMessageContentSchema, MessageContentSchema, MessageMetaSchema, ProviderUsageBalanceSchema, ProviderUsageRequestSchema, ProviderUsageSnapshotSchema, ProviderUsageWindowSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, UpdateBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UsageProviderSchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceConversationDeniedSchema, VoiceConversationGrantedSchema, VoiceConversationResponseSchema, VoiceUsageResponseSchema, WorkflowActionSchema, WorkflowAgentSchema, WorkflowDecisionSchema, WorkflowDefinitionSchema, WorkflowLibrarySchema, WorkflowRunSchema, WorkflowSlotSchema, WorkflowStageSchema, WorkflowStartSchema, WorkflowTaskSchema, authenticationContexts, createEnvelope, encryptionContexts, legacyInstallation, legacyServerBanner, normalizeMetadata, rpcMethods, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStopEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, toWireMetadata, workflowEnabled, workflowStageLabel };
1603
+ export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, LegacyMessageContent, MessageContent, MessageMeta, ProviderUsageBalance, ProviderUsageRequest, ProviderUsageSnapshot, ProviderUsageWindow, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, Update, UpdateBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UsageProvider, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceConversationResponse, VoiceUsageResponse, WorkflowAgent, WorkflowDecision, WorkflowDefinition, WorkflowRun, WorkflowSlot, WorkflowStage, WorkflowTask };