@agentrix/shared 1.0.12 → 1.0.13

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.cts CHANGED
@@ -16,12 +16,12 @@ declare const ApiErrorSchema: z.ZodObject<{
16
16
  message: z.ZodString;
17
17
  details: z.ZodOptional<z.ZodAny>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- message: string;
20
19
  error: string;
20
+ message: string;
21
21
  details?: any;
22
22
  }, {
23
- message: string;
24
23
  error: string;
24
+ message: string;
25
25
  details?: any;
26
26
  }>;
27
27
  type ApiError = z.infer<typeof ApiErrorSchema>;
@@ -278,12 +278,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
278
278
  }>, "many">>;
279
279
  }, "strip", z.ZodTypeAny, {
280
280
  id: string;
281
+ createdAt: string;
281
282
  username: string;
282
283
  email: string | null;
283
284
  avatar: string | null;
284
285
  encryptedSecret: string | null;
285
286
  secretSalt: string | null;
286
- createdAt: string;
287
287
  oauthAccounts?: {
288
288
  username: string;
289
289
  email: string | null;
@@ -292,12 +292,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
292
292
  }[] | undefined;
293
293
  }, {
294
294
  id: string;
295
+ createdAt: string;
295
296
  username: string;
296
297
  email: string | null;
297
298
  avatar: string | null;
298
299
  encryptedSecret: string | null;
299
300
  secretSalt: string | null;
300
- createdAt: string;
301
301
  oauthAccounts?: {
302
302
  username: string;
303
303
  email: string | null;
@@ -308,12 +308,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  user: {
310
310
  id: string;
311
+ createdAt: string;
311
312
  username: string;
312
313
  email: string | null;
313
314
  avatar: string | null;
314
315
  encryptedSecret: string | null;
315
316
  secretSalt: string | null;
316
- createdAt: string;
317
317
  oauthAccounts?: {
318
318
  username: string;
319
319
  email: string | null;
@@ -324,12 +324,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
324
324
  }, {
325
325
  user: {
326
326
  id: string;
327
+ createdAt: string;
327
328
  username: string;
328
329
  email: string | null;
329
330
  avatar: string | null;
330
331
  encryptedSecret: string | null;
331
332
  secretSalt: string | null;
332
- createdAt: string;
333
333
  oauthAccounts?: {
334
334
  username: string;
335
335
  email: string | null;
@@ -599,15 +599,15 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
599
599
  token: z.ZodString;
600
600
  content: z.ZodString;
601
601
  }, "strip", z.ZodTypeAny, {
602
- id: string;
603
- token: string;
604
602
  state: "authorized";
605
603
  content: string;
606
- }, {
607
604
  id: string;
608
605
  token: string;
606
+ }, {
609
607
  state: "authorized";
610
608
  content: string;
609
+ id: string;
610
+ token: string;
611
611
  }>;
612
612
  type MachineAuthAuthorizedResponse = z.infer<typeof MachineAuthAuthorizedResponseSchema>;
613
613
  /**
@@ -675,11 +675,11 @@ declare const CloudJoinStatusQuerySchema: z.ZodObject<{
675
675
  userId: z.ZodString;
676
676
  cloudId: z.ZodString;
677
677
  }, "strip", z.ZodTypeAny, {
678
- cloudId: string;
679
678
  userId: string;
680
- }, {
681
679
  cloudId: string;
680
+ }, {
682
681
  userId: string;
682
+ cloudId: string;
683
683
  }>;
684
684
  type CloudJoinStatusQuery = z.infer<typeof CloudJoinStatusQuerySchema>;
685
685
  /**
@@ -689,11 +689,11 @@ declare const CloudJoinApprovalRequestSchema: z.ZodObject<{
689
689
  userId: z.ZodString;
690
690
  cloudId: z.ZodString;
691
691
  }, "strip", z.ZodTypeAny, {
692
- cloudId: string;
693
692
  userId: string;
694
- }, {
695
693
  cloudId: string;
694
+ }, {
696
695
  userId: string;
696
+ cloudId: string;
697
697
  }>;
698
698
  type CloudJoinApprovalRequest = z.infer<typeof CloudJoinApprovalRequestSchema>;
699
699
  /**
@@ -758,8 +758,8 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
758
758
  }>;
759
759
  }, "strip", z.ZodTypeAny, {
760
760
  success: true;
761
- shareToken: string;
762
761
  taskId: string;
762
+ shareToken: string;
763
763
  permissions: {
764
764
  canSendMessage: boolean;
765
765
  canCreatePr: boolean;
@@ -769,8 +769,8 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
769
769
  };
770
770
  }, {
771
771
  success: true;
772
- shareToken: string;
773
772
  taskId: string;
773
+ shareToken: string;
774
774
  permissions: {
775
775
  canSendMessage: boolean;
776
776
  canCreatePr: boolean;
@@ -804,68 +804,68 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
804
804
  chatId: string;
805
805
  message?: SDKUserMessage | undefined;
806
806
  machineId?: string | undefined;
807
- cloudId?: string | undefined;
808
- encryptedMessage?: string | undefined;
809
807
  cwd?: string | undefined;
810
- repositoryId?: string | undefined;
811
808
  baseBranch?: string | undefined;
812
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
813
809
  dataEncryptionKey?: string | undefined;
810
+ repositoryId?: string | undefined;
811
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
812
+ encryptedMessage?: string | undefined;
813
+ cloudId?: string | undefined;
814
814
  }, {
815
815
  chatId: string;
816
816
  message?: SDKUserMessage | undefined;
817
817
  machineId?: string | undefined;
818
- cloudId?: string | undefined;
819
- encryptedMessage?: string | undefined;
820
818
  cwd?: string | undefined;
821
- repositoryId?: string | undefined;
822
819
  baseBranch?: string | undefined;
823
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
824
820
  dataEncryptionKey?: string | undefined;
821
+ repositoryId?: string | undefined;
822
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
823
+ encryptedMessage?: string | undefined;
824
+ cloudId?: string | undefined;
825
825
  }>, {
826
826
  chatId: string;
827
827
  message?: SDKUserMessage | undefined;
828
828
  machineId?: string | undefined;
829
- cloudId?: string | undefined;
830
- encryptedMessage?: string | undefined;
831
829
  cwd?: string | undefined;
832
- repositoryId?: string | undefined;
833
830
  baseBranch?: string | undefined;
834
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
835
831
  dataEncryptionKey?: string | undefined;
832
+ repositoryId?: string | undefined;
833
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
834
+ encryptedMessage?: string | undefined;
835
+ cloudId?: string | undefined;
836
836
  }, {
837
837
  chatId: string;
838
838
  message?: SDKUserMessage | undefined;
839
839
  machineId?: string | undefined;
840
- cloudId?: string | undefined;
841
- encryptedMessage?: string | undefined;
842
840
  cwd?: string | undefined;
843
- repositoryId?: string | undefined;
844
841
  baseBranch?: string | undefined;
845
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
846
842
  dataEncryptionKey?: string | undefined;
843
+ repositoryId?: string | undefined;
844
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
845
+ encryptedMessage?: string | undefined;
846
+ cloudId?: string | undefined;
847
847
  }>, {
848
848
  chatId: string;
849
849
  message?: SDKUserMessage | undefined;
850
850
  machineId?: string | undefined;
851
- cloudId?: string | undefined;
852
- encryptedMessage?: string | undefined;
853
851
  cwd?: string | undefined;
854
- repositoryId?: string | undefined;
855
852
  baseBranch?: string | undefined;
856
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
857
853
  dataEncryptionKey?: string | undefined;
854
+ repositoryId?: string | undefined;
855
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
856
+ encryptedMessage?: string | undefined;
857
+ cloudId?: string | undefined;
858
858
  }, {
859
859
  chatId: string;
860
860
  message?: SDKUserMessage | undefined;
861
861
  machineId?: string | undefined;
862
- cloudId?: string | undefined;
863
- encryptedMessage?: string | undefined;
864
862
  cwd?: string | undefined;
865
- repositoryId?: string | undefined;
866
863
  baseBranch?: string | undefined;
867
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
868
864
  dataEncryptionKey?: string | undefined;
865
+ repositoryId?: string | undefined;
866
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
867
+ encryptedMessage?: string | undefined;
868
+ cloudId?: string | undefined;
869
869
  }>;
870
870
  type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
871
871
  declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
@@ -883,68 +883,68 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
883
883
  chatId: string;
884
884
  message?: SDKUserMessage | undefined;
885
885
  machineId?: string | undefined;
886
- cloudId?: string | undefined;
887
- encryptedMessage?: string | undefined;
888
886
  cwd?: string | undefined;
889
- repositoryId?: string | undefined;
890
887
  baseBranch?: string | undefined;
891
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
892
888
  dataEncryptionKey?: string | undefined;
889
+ repositoryId?: string | undefined;
890
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
891
+ encryptedMessage?: string | undefined;
892
+ cloudId?: string | undefined;
893
893
  }, {
894
894
  chatId: string;
895
895
  message?: SDKUserMessage | undefined;
896
896
  machineId?: string | undefined;
897
- cloudId?: string | undefined;
898
- encryptedMessage?: string | undefined;
899
897
  cwd?: string | undefined;
900
- repositoryId?: string | undefined;
901
898
  baseBranch?: string | undefined;
902
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
903
899
  dataEncryptionKey?: string | undefined;
900
+ repositoryId?: string | undefined;
901
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
902
+ encryptedMessage?: string | undefined;
903
+ cloudId?: string | undefined;
904
904
  }>, {
905
905
  chatId: string;
906
906
  message?: SDKUserMessage | undefined;
907
907
  machineId?: string | undefined;
908
- cloudId?: string | undefined;
909
- encryptedMessage?: string | undefined;
910
908
  cwd?: string | undefined;
911
- repositoryId?: string | undefined;
912
909
  baseBranch?: string | undefined;
913
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
914
910
  dataEncryptionKey?: string | undefined;
911
+ repositoryId?: string | undefined;
912
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
913
+ encryptedMessage?: string | undefined;
914
+ cloudId?: string | undefined;
915
915
  }, {
916
916
  chatId: string;
917
917
  message?: SDKUserMessage | undefined;
918
918
  machineId?: string | undefined;
919
- cloudId?: string | undefined;
920
- encryptedMessage?: string | undefined;
921
919
  cwd?: string | undefined;
922
- repositoryId?: string | undefined;
923
920
  baseBranch?: string | undefined;
924
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
925
921
  dataEncryptionKey?: string | undefined;
922
+ repositoryId?: string | undefined;
923
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
924
+ encryptedMessage?: string | undefined;
925
+ cloudId?: string | undefined;
926
926
  }>, {
927
927
  chatId: string;
928
928
  message?: SDKUserMessage | undefined;
929
929
  machineId?: string | undefined;
930
- cloudId?: string | undefined;
931
- encryptedMessage?: string | undefined;
932
930
  cwd?: string | undefined;
933
- repositoryId?: string | undefined;
934
931
  baseBranch?: string | undefined;
935
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
936
932
  dataEncryptionKey?: string | undefined;
933
+ repositoryId?: string | undefined;
934
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
935
+ encryptedMessage?: string | undefined;
936
+ cloudId?: string | undefined;
937
937
  }, {
938
938
  chatId: string;
939
939
  message?: SDKUserMessage | undefined;
940
940
  machineId?: string | undefined;
941
- cloudId?: string | undefined;
942
- encryptedMessage?: string | undefined;
943
941
  cwd?: string | undefined;
944
- repositoryId?: string | undefined;
945
942
  baseBranch?: string | undefined;
946
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
947
943
  dataEncryptionKey?: string | undefined;
944
+ repositoryId?: string | undefined;
945
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
946
+ encryptedMessage?: string | undefined;
947
+ cloudId?: string | undefined;
948
948
  }>;
949
949
  /**
950
950
  * POST /v1/tasks/start - Response schema (201 Created)
@@ -963,31 +963,31 @@ declare const StartTaskResponseSchema: z.ZodObject<{
963
963
  createdAt: z.ZodString;
964
964
  updatedAt: z.ZodString;
965
965
  }, "strip", z.ZodTypeAny, {
966
- createdAt: string;
967
- state: string;
968
966
  machineId: string | null;
969
- cloudId: string | null;
970
- userId: string;
971
967
  taskId: string;
968
+ userId: string;
972
969
  chatId: string;
973
- repositoryId: string | null;
974
- baseBranch: string | null;
975
970
  agentId: string;
971
+ baseBranch: string | null;
972
+ repositoryId: string | null;
976
973
  title: string | null;
974
+ state: string;
977
975
  updatedAt: string;
978
- }, {
979
976
  createdAt: string;
980
- state: string;
981
- machineId: string | null;
982
977
  cloudId: string | null;
983
- userId: string;
978
+ }, {
979
+ machineId: string | null;
984
980
  taskId: string;
981
+ userId: string;
985
982
  chatId: string;
986
- repositoryId: string | null;
987
- baseBranch: string | null;
988
983
  agentId: string;
984
+ baseBranch: string | null;
985
+ repositoryId: string | null;
989
986
  title: string | null;
987
+ state: string;
990
988
  updatedAt: string;
989
+ createdAt: string;
990
+ cloudId: string | null;
991
991
  }>;
992
992
  type StartTaskResponse = z.infer<typeof StartTaskResponseSchema>;
993
993
  /**
@@ -1051,26 +1051,26 @@ declare const TaskItemSchema: z.ZodObject<{
1051
1051
  createdAt: z.ZodString;
1052
1052
  updatedAt: z.ZodString;
1053
1053
  }, "strip", z.ZodTypeAny, {
1054
- id: string;
1055
- createdAt: string;
1056
- state: string;
1057
1054
  machineId: string | null;
1058
- cloudId: string | null;
1055
+ cwd: string | null;
1059
1056
  userId: string;
1060
1057
  chatId: string;
1061
- cwd: string | null;
1062
- repositoryId: string | null;
1058
+ agentId: string;
1063
1059
  baseBranch: string | null;
1064
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1065
1060
  dataEncryptionKey: string | null;
1066
- agentId: string;
1061
+ repositoryId: string | null;
1062
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1063
+ agentSessionId: string | null;
1067
1064
  title: string | null;
1065
+ state: string;
1068
1066
  updatedAt: string;
1069
- workerStatus: "initializing" | "ready" | "running" | null;
1070
- customTitle: string | null;
1071
- agentSessionId: string | null;
1067
+ id: string;
1068
+ createdAt: string;
1072
1069
  pullRequestNumber: number | null;
1073
1070
  pullRequestUrl: string | null;
1071
+ cloudId: string | null;
1072
+ workerStatus: "initializing" | "ready" | "running" | null;
1073
+ customTitle: string | null;
1074
1074
  pullRequestState: "open" | "closed" | "merged" | null;
1075
1075
  pullRequestStateChangedAt: string | null;
1076
1076
  gitStats: {
@@ -1084,26 +1084,26 @@ declare const TaskItemSchema: z.ZodObject<{
1084
1084
  } | null;
1085
1085
  totalDuration: number | null;
1086
1086
  }, {
1087
- id: string;
1088
- createdAt: string;
1089
- state: string;
1090
1087
  machineId: string | null;
1091
- cloudId: string | null;
1088
+ cwd: string | null;
1092
1089
  userId: string;
1093
1090
  chatId: string;
1094
- cwd: string | null;
1095
- repositoryId: string | null;
1091
+ agentId: string;
1096
1092
  baseBranch: string | null;
1097
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1098
1093
  dataEncryptionKey: string | null;
1099
- agentId: string;
1094
+ repositoryId: string | null;
1095
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1096
+ agentSessionId: string | null;
1100
1097
  title: string | null;
1098
+ state: string;
1101
1099
  updatedAt: string;
1102
- workerStatus: "initializing" | "ready" | "running" | null;
1103
- customTitle: string | null;
1104
- agentSessionId: string | null;
1100
+ id: string;
1101
+ createdAt: string;
1105
1102
  pullRequestNumber: number | null;
1106
1103
  pullRequestUrl: string | null;
1104
+ cloudId: string | null;
1105
+ workerStatus: "initializing" | "ready" | "running" | null;
1106
+ customTitle: string | null;
1107
1107
  pullRequestState: "open" | "closed" | "merged" | null;
1108
1108
  pullRequestStateChangedAt: string | null;
1109
1109
  gitStats: {
@@ -1200,26 +1200,26 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1200
1200
  createdAt: z.ZodString;
1201
1201
  updatedAt: z.ZodString;
1202
1202
  }, "strip", z.ZodTypeAny, {
1203
- id: string;
1204
- createdAt: string;
1205
- state: string;
1206
1203
  machineId: string | null;
1207
- cloudId: string | null;
1204
+ cwd: string | null;
1208
1205
  userId: string;
1209
1206
  chatId: string;
1210
- cwd: string | null;
1211
- repositoryId: string | null;
1207
+ agentId: string;
1212
1208
  baseBranch: string | null;
1213
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1214
1209
  dataEncryptionKey: string | null;
1215
- agentId: string;
1210
+ repositoryId: string | null;
1211
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1212
+ agentSessionId: string | null;
1216
1213
  title: string | null;
1214
+ state: string;
1217
1215
  updatedAt: string;
1218
- workerStatus: "initializing" | "ready" | "running" | null;
1219
- customTitle: string | null;
1220
- agentSessionId: string | null;
1216
+ id: string;
1217
+ createdAt: string;
1221
1218
  pullRequestNumber: number | null;
1222
1219
  pullRequestUrl: string | null;
1220
+ cloudId: string | null;
1221
+ workerStatus: "initializing" | "ready" | "running" | null;
1222
+ customTitle: string | null;
1223
1223
  pullRequestState: "open" | "closed" | "merged" | null;
1224
1224
  pullRequestStateChangedAt: string | null;
1225
1225
  gitStats: {
@@ -1233,26 +1233,26 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1233
1233
  } | null;
1234
1234
  totalDuration: number | null;
1235
1235
  }, {
1236
- id: string;
1237
- createdAt: string;
1238
- state: string;
1239
1236
  machineId: string | null;
1240
- cloudId: string | null;
1237
+ cwd: string | null;
1241
1238
  userId: string;
1242
1239
  chatId: string;
1243
- cwd: string | null;
1244
- repositoryId: string | null;
1240
+ agentId: string;
1245
1241
  baseBranch: string | null;
1246
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1247
1242
  dataEncryptionKey: string | null;
1248
- agentId: string;
1243
+ repositoryId: string | null;
1244
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1245
+ agentSessionId: string | null;
1249
1246
  title: string | null;
1247
+ state: string;
1250
1248
  updatedAt: string;
1251
- workerStatus: "initializing" | "ready" | "running" | null;
1252
- customTitle: string | null;
1253
- agentSessionId: string | null;
1249
+ id: string;
1250
+ createdAt: string;
1254
1251
  pullRequestNumber: number | null;
1255
1252
  pullRequestUrl: string | null;
1253
+ cloudId: string | null;
1254
+ workerStatus: "initializing" | "ready" | "running" | null;
1255
+ customTitle: string | null;
1256
1256
  pullRequestState: "open" | "closed" | "merged" | null;
1257
1257
  pullRequestStateChangedAt: string | null;
1258
1258
  gitStats: {
@@ -1270,26 +1270,26 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1270
1270
  hasMore: z.ZodBoolean;
1271
1271
  }, "strip", z.ZodTypeAny, {
1272
1272
  tasks: {
1273
- id: string;
1274
- createdAt: string;
1275
- state: string;
1276
1273
  machineId: string | null;
1277
- cloudId: string | null;
1274
+ cwd: string | null;
1278
1275
  userId: string;
1279
1276
  chatId: string;
1280
- cwd: string | null;
1281
- repositoryId: string | null;
1277
+ agentId: string;
1282
1278
  baseBranch: string | null;
1283
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1284
1279
  dataEncryptionKey: string | null;
1285
- agentId: string;
1280
+ repositoryId: string | null;
1281
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1282
+ agentSessionId: string | null;
1286
1283
  title: string | null;
1284
+ state: string;
1287
1285
  updatedAt: string;
1288
- workerStatus: "initializing" | "ready" | "running" | null;
1289
- customTitle: string | null;
1290
- agentSessionId: string | null;
1291
- pullRequestNumber: number | null;
1286
+ id: string;
1287
+ createdAt: string;
1288
+ pullRequestNumber: number | null;
1292
1289
  pullRequestUrl: string | null;
1290
+ cloudId: string | null;
1291
+ workerStatus: "initializing" | "ready" | "running" | null;
1292
+ customTitle: string | null;
1293
1293
  pullRequestState: "open" | "closed" | "merged" | null;
1294
1294
  pullRequestStateChangedAt: string | null;
1295
1295
  gitStats: {
@@ -1307,26 +1307,26 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1307
1307
  hasMore: boolean;
1308
1308
  }, {
1309
1309
  tasks: {
1310
- id: string;
1311
- createdAt: string;
1312
- state: string;
1313
1310
  machineId: string | null;
1314
- cloudId: string | null;
1311
+ cwd: string | null;
1315
1312
  userId: string;
1316
1313
  chatId: string;
1317
- cwd: string | null;
1318
- repositoryId: string | null;
1314
+ agentId: string;
1319
1315
  baseBranch: string | null;
1320
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1321
1316
  dataEncryptionKey: string | null;
1322
- agentId: string;
1317
+ repositoryId: string | null;
1318
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1319
+ agentSessionId: string | null;
1323
1320
  title: string | null;
1321
+ state: string;
1324
1322
  updatedAt: string;
1325
- workerStatus: "initializing" | "ready" | "running" | null;
1326
- customTitle: string | null;
1327
- agentSessionId: string | null;
1323
+ id: string;
1324
+ createdAt: string;
1328
1325
  pullRequestNumber: number | null;
1329
1326
  pullRequestUrl: string | null;
1327
+ cloudId: string | null;
1328
+ workerStatus: "initializing" | "ready" | "running" | null;
1329
+ customTitle: string | null;
1330
1330
  pullRequestState: "open" | "closed" | "merged" | null;
1331
1331
  pullRequestStateChangedAt: string | null;
1332
1332
  gitStats: {
@@ -1355,23 +1355,23 @@ declare const ResumeTaskRequestSchema: z.ZodEffects<z.ZodObject<{
1355
1355
  }, "strip", z.ZodTypeAny, {
1356
1356
  taskId: string;
1357
1357
  message?: SDKUserMessage | undefined;
1358
- encryptedMessage?: string | undefined;
1359
1358
  dataEncryptionKey?: string | undefined;
1359
+ encryptedMessage?: string | undefined;
1360
1360
  }, {
1361
1361
  taskId: string;
1362
1362
  message?: SDKUserMessage | undefined;
1363
- encryptedMessage?: string | undefined;
1364
1363
  dataEncryptionKey?: string | undefined;
1364
+ encryptedMessage?: string | undefined;
1365
1365
  }>, {
1366
1366
  taskId: string;
1367
1367
  message?: SDKUserMessage | undefined;
1368
- encryptedMessage?: string | undefined;
1369
1368
  dataEncryptionKey?: string | undefined;
1369
+ encryptedMessage?: string | undefined;
1370
1370
  }, {
1371
1371
  taskId: string;
1372
1372
  message?: SDKUserMessage | undefined;
1373
- encryptedMessage?: string | undefined;
1374
1373
  dataEncryptionKey?: string | undefined;
1374
+ encryptedMessage?: string | undefined;
1375
1375
  }>;
1376
1376
  type ResumeTaskRequest = z.infer<typeof ResumeTaskRequestSchema>;
1377
1377
  declare const resumeTaskRequestSchema: z.ZodEffects<z.ZodObject<{
@@ -1382,23 +1382,23 @@ declare const resumeTaskRequestSchema: z.ZodEffects<z.ZodObject<{
1382
1382
  }, "strip", z.ZodTypeAny, {
1383
1383
  taskId: string;
1384
1384
  message?: SDKUserMessage | undefined;
1385
- encryptedMessage?: string | undefined;
1386
1385
  dataEncryptionKey?: string | undefined;
1386
+ encryptedMessage?: string | undefined;
1387
1387
  }, {
1388
1388
  taskId: string;
1389
1389
  message?: SDKUserMessage | undefined;
1390
- encryptedMessage?: string | undefined;
1391
1390
  dataEncryptionKey?: string | undefined;
1391
+ encryptedMessage?: string | undefined;
1392
1392
  }>, {
1393
1393
  taskId: string;
1394
1394
  message?: SDKUserMessage | undefined;
1395
- encryptedMessage?: string | undefined;
1396
1395
  dataEncryptionKey?: string | undefined;
1396
+ encryptedMessage?: string | undefined;
1397
1397
  }, {
1398
1398
  taskId: string;
1399
1399
  message?: SDKUserMessage | undefined;
1400
- encryptedMessage?: string | undefined;
1401
1400
  dataEncryptionKey?: string | undefined;
1401
+ encryptedMessage?: string | undefined;
1402
1402
  }>;
1403
1403
  /**
1404
1404
  * POST /v1/tasks/:taskId/resume - Response schema (202 Accepted)
@@ -1491,22 +1491,22 @@ declare const PermissionResponseRequestSchema: z.ZodObject<{
1491
1491
  approved: z.ZodOptional<z.ZodBoolean>;
1492
1492
  data: z.ZodOptional<z.ZodAny>;
1493
1493
  }, "strip", z.ZodTypeAny, {
1494
- approved?: boolean | undefined;
1495
1494
  data?: any;
1496
- }, {
1497
1495
  approved?: boolean | undefined;
1496
+ }, {
1498
1497
  data?: any;
1498
+ approved?: boolean | undefined;
1499
1499
  }>;
1500
1500
  type PermissionResponseRequest = z.infer<typeof PermissionResponseRequestSchema>;
1501
1501
  declare const permissionResponseRequestSchema: z.ZodObject<{
1502
1502
  approved: z.ZodOptional<z.ZodBoolean>;
1503
1503
  data: z.ZodOptional<z.ZodAny>;
1504
1504
  }, "strip", z.ZodTypeAny, {
1505
- approved?: boolean | undefined;
1506
1505
  data?: any;
1507
- }, {
1508
1506
  approved?: boolean | undefined;
1507
+ }, {
1509
1508
  data?: any;
1509
+ approved?: boolean | undefined;
1510
1510
  }>;
1511
1511
  /**
1512
1512
  * POST /v1/tasks/:taskId/permission-response - Response schema
@@ -1646,14 +1646,14 @@ declare const CreateMergeRequestSchema: z.ZodObject<{
1646
1646
  autoMerge: z.ZodOptional<z.ZodBoolean>;
1647
1647
  }, "strip", z.ZodTypeAny, {
1648
1648
  taskId: string;
1649
- title?: string | undefined;
1650
1649
  description?: string | undefined;
1650
+ title?: string | undefined;
1651
1651
  draft?: boolean | undefined;
1652
1652
  autoMerge?: boolean | undefined;
1653
1653
  }, {
1654
1654
  taskId: string;
1655
- title?: string | undefined;
1656
1655
  description?: string | undefined;
1656
+ title?: string | undefined;
1657
1657
  draft?: boolean | undefined;
1658
1658
  autoMerge?: boolean | undefined;
1659
1659
  }>;
@@ -1666,14 +1666,14 @@ declare const createMergeRequestSchema: z.ZodObject<{
1666
1666
  autoMerge: z.ZodOptional<z.ZodBoolean>;
1667
1667
  }, "strip", z.ZodTypeAny, {
1668
1668
  taskId: string;
1669
- title?: string | undefined;
1670
1669
  description?: string | undefined;
1670
+ title?: string | undefined;
1671
1671
  draft?: boolean | undefined;
1672
1672
  autoMerge?: boolean | undefined;
1673
1673
  }, {
1674
1674
  taskId: string;
1675
- title?: string | undefined;
1676
1675
  description?: string | undefined;
1676
+ title?: string | undefined;
1677
1677
  draft?: boolean | undefined;
1678
1678
  autoMerge?: boolean | undefined;
1679
1679
  }>;
@@ -1689,15 +1689,15 @@ declare const CreateMergeRequestResponseSchema: z.ZodObject<{
1689
1689
  }, "strip", z.ZodTypeAny, {
1690
1690
  status: "success" | "failed";
1691
1691
  taskId: string;
1692
+ reason?: string | undefined;
1692
1693
  pullRequestNumber?: number | undefined;
1693
1694
  pullRequestUrl?: string | undefined;
1694
- reason?: string | undefined;
1695
1695
  }, {
1696
1696
  status: "success" | "failed";
1697
1697
  taskId: string;
1698
+ reason?: string | undefined;
1698
1699
  pullRequestNumber?: number | undefined;
1699
1700
  pullRequestUrl?: string | undefined;
1700
- reason?: string | undefined;
1701
1701
  }>;
1702
1702
  type CreateMergeRequestResponse = z.infer<typeof CreateMergeRequestResponseSchema>;
1703
1703
  /**
@@ -1842,26 +1842,26 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1842
1842
  createdAt: z.ZodString;
1843
1843
  updatedAt: z.ZodString;
1844
1844
  }, "strip", z.ZodTypeAny, {
1845
- id: string;
1846
- createdAt: string;
1847
- state: string;
1848
1845
  machineId: string | null;
1849
- cloudId: string | null;
1846
+ cwd: string | null;
1850
1847
  userId: string;
1851
1848
  chatId: string;
1852
- cwd: string | null;
1853
- repositoryId: string | null;
1849
+ agentId: string;
1854
1850
  baseBranch: string | null;
1855
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1856
1851
  dataEncryptionKey: string | null;
1857
- agentId: string;
1852
+ repositoryId: string | null;
1853
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1854
+ agentSessionId: string | null;
1858
1855
  title: string | null;
1856
+ state: string;
1859
1857
  updatedAt: string;
1860
- workerStatus: "initializing" | "ready" | "running" | null;
1861
- customTitle: string | null;
1862
- agentSessionId: string | null;
1858
+ id: string;
1859
+ createdAt: string;
1863
1860
  pullRequestNumber: number | null;
1864
1861
  pullRequestUrl: string | null;
1862
+ cloudId: string | null;
1863
+ workerStatus: "initializing" | "ready" | "running" | null;
1864
+ customTitle: string | null;
1865
1865
  pullRequestState: "open" | "closed" | "merged" | null;
1866
1866
  pullRequestStateChangedAt: string | null;
1867
1867
  gitStats: {
@@ -1875,26 +1875,26 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1875
1875
  } | null;
1876
1876
  totalDuration: number | null;
1877
1877
  }, {
1878
- id: string;
1879
- createdAt: string;
1880
- state: string;
1881
1878
  machineId: string | null;
1882
- cloudId: string | null;
1879
+ cwd: string | null;
1883
1880
  userId: string;
1884
1881
  chatId: string;
1885
- cwd: string | null;
1886
- repositoryId: string | null;
1882
+ agentId: string;
1887
1883
  baseBranch: string | null;
1888
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1889
1884
  dataEncryptionKey: string | null;
1890
- agentId: string;
1885
+ repositoryId: string | null;
1886
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1887
+ agentSessionId: string | null;
1891
1888
  title: string | null;
1889
+ state: string;
1892
1890
  updatedAt: string;
1893
- workerStatus: "initializing" | "ready" | "running" | null;
1894
- customTitle: string | null;
1895
- agentSessionId: string | null;
1891
+ id: string;
1892
+ createdAt: string;
1896
1893
  pullRequestNumber: number | null;
1897
1894
  pullRequestUrl: string | null;
1895
+ cloudId: string | null;
1896
+ workerStatus: "initializing" | "ready" | "running" | null;
1897
+ customTitle: string | null;
1898
1898
  pullRequestState: "open" | "closed" | "merged" | null;
1899
1899
  pullRequestStateChangedAt: string | null;
1900
1900
  gitStats: {
@@ -1911,26 +1911,26 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1911
1911
  }, "strip", z.ZodTypeAny, {
1912
1912
  success: boolean;
1913
1913
  task: {
1914
- id: string;
1915
- createdAt: string;
1916
- state: string;
1917
1914
  machineId: string | null;
1918
- cloudId: string | null;
1915
+ cwd: string | null;
1919
1916
  userId: string;
1920
1917
  chatId: string;
1921
- cwd: string | null;
1922
- repositoryId: string | null;
1918
+ agentId: string;
1923
1919
  baseBranch: string | null;
1924
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1925
1920
  dataEncryptionKey: string | null;
1926
- agentId: string;
1921
+ repositoryId: string | null;
1922
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1923
+ agentSessionId: string | null;
1927
1924
  title: string | null;
1925
+ state: string;
1928
1926
  updatedAt: string;
1929
- workerStatus: "initializing" | "ready" | "running" | null;
1930
- customTitle: string | null;
1931
- agentSessionId: string | null;
1927
+ id: string;
1928
+ createdAt: string;
1932
1929
  pullRequestNumber: number | null;
1933
1930
  pullRequestUrl: string | null;
1931
+ cloudId: string | null;
1932
+ workerStatus: "initializing" | "ready" | "running" | null;
1933
+ customTitle: string | null;
1934
1934
  pullRequestState: "open" | "closed" | "merged" | null;
1935
1935
  pullRequestStateChangedAt: string | null;
1936
1936
  gitStats: {
@@ -1947,26 +1947,26 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1947
1947
  }, {
1948
1948
  success: boolean;
1949
1949
  task: {
1950
- id: string;
1951
- createdAt: string;
1952
- state: string;
1953
1950
  machineId: string | null;
1954
- cloudId: string | null;
1951
+ cwd: string | null;
1955
1952
  userId: string;
1956
1953
  chatId: string;
1957
- cwd: string | null;
1958
- repositoryId: string | null;
1954
+ agentId: string;
1959
1955
  baseBranch: string | null;
1960
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
1961
1956
  dataEncryptionKey: string | null;
1962
- agentId: string;
1957
+ repositoryId: string | null;
1958
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1959
+ agentSessionId: string | null;
1963
1960
  title: string | null;
1961
+ state: string;
1964
1962
  updatedAt: string;
1965
- workerStatus: "initializing" | "ready" | "running" | null;
1966
- customTitle: string | null;
1967
- agentSessionId: string | null;
1963
+ id: string;
1964
+ createdAt: string;
1968
1965
  pullRequestNumber: number | null;
1969
1966
  pullRequestUrl: string | null;
1967
+ cloudId: string | null;
1968
+ workerStatus: "initializing" | "ready" | "running" | null;
1969
+ customTitle: string | null;
1970
1970
  pullRequestState: "open" | "closed" | "merged" | null;
1971
1971
  pullRequestStateChangedAt: string | null;
1972
1972
  gitStats: {
@@ -2050,26 +2050,26 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2050
2050
  createdAt: z.ZodString;
2051
2051
  updatedAt: z.ZodString;
2052
2052
  }, "strip", z.ZodTypeAny, {
2053
- id: string;
2054
- createdAt: string;
2055
- state: string;
2056
2053
  machineId: string | null;
2057
- cloudId: string | null;
2054
+ cwd: string | null;
2058
2055
  userId: string;
2059
2056
  chatId: string;
2060
- cwd: string | null;
2061
- repositoryId: string | null;
2057
+ agentId: string;
2062
2058
  baseBranch: string | null;
2063
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2064
2059
  dataEncryptionKey: string | null;
2065
- agentId: string;
2060
+ repositoryId: string | null;
2061
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2062
+ agentSessionId: string | null;
2066
2063
  title: string | null;
2064
+ state: string;
2067
2065
  updatedAt: string;
2068
- workerStatus: "initializing" | "ready" | "running" | null;
2069
- customTitle: string | null;
2070
- agentSessionId: string | null;
2066
+ id: string;
2067
+ createdAt: string;
2071
2068
  pullRequestNumber: number | null;
2072
2069
  pullRequestUrl: string | null;
2070
+ cloudId: string | null;
2071
+ workerStatus: "initializing" | "ready" | "running" | null;
2072
+ customTitle: string | null;
2073
2073
  pullRequestState: "open" | "closed" | "merged" | null;
2074
2074
  pullRequestStateChangedAt: string | null;
2075
2075
  gitStats: {
@@ -2083,26 +2083,26 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2083
2083
  } | null;
2084
2084
  totalDuration: number | null;
2085
2085
  }, {
2086
- id: string;
2087
- createdAt: string;
2088
- state: string;
2089
2086
  machineId: string | null;
2090
- cloudId: string | null;
2087
+ cwd: string | null;
2091
2088
  userId: string;
2092
2089
  chatId: string;
2093
- cwd: string | null;
2094
- repositoryId: string | null;
2090
+ agentId: string;
2095
2091
  baseBranch: string | null;
2096
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2097
2092
  dataEncryptionKey: string | null;
2098
- agentId: string;
2093
+ repositoryId: string | null;
2094
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2095
+ agentSessionId: string | null;
2099
2096
  title: string | null;
2097
+ state: string;
2100
2098
  updatedAt: string;
2101
- workerStatus: "initializing" | "ready" | "running" | null;
2102
- customTitle: string | null;
2103
- agentSessionId: string | null;
2099
+ id: string;
2100
+ createdAt: string;
2104
2101
  pullRequestNumber: number | null;
2105
2102
  pullRequestUrl: string | null;
2103
+ cloudId: string | null;
2104
+ workerStatus: "initializing" | "ready" | "running" | null;
2105
+ customTitle: string | null;
2106
2106
  pullRequestState: "open" | "closed" | "merged" | null;
2107
2107
  pullRequestStateChangedAt: string | null;
2108
2108
  gitStats: {
@@ -2119,26 +2119,26 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2119
2119
  }, "strip", z.ZodTypeAny, {
2120
2120
  success: boolean;
2121
2121
  task: {
2122
- id: string;
2123
- createdAt: string;
2124
- state: string;
2125
2122
  machineId: string | null;
2126
- cloudId: string | null;
2123
+ cwd: string | null;
2127
2124
  userId: string;
2128
2125
  chatId: string;
2129
- cwd: string | null;
2130
- repositoryId: string | null;
2126
+ agentId: string;
2131
2127
  baseBranch: string | null;
2132
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2133
2128
  dataEncryptionKey: string | null;
2134
- agentId: string;
2129
+ repositoryId: string | null;
2130
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2131
+ agentSessionId: string | null;
2135
2132
  title: string | null;
2133
+ state: string;
2136
2134
  updatedAt: string;
2137
- workerStatus: "initializing" | "ready" | "running" | null;
2138
- customTitle: string | null;
2139
- agentSessionId: string | null;
2135
+ id: string;
2136
+ createdAt: string;
2140
2137
  pullRequestNumber: number | null;
2141
2138
  pullRequestUrl: string | null;
2139
+ cloudId: string | null;
2140
+ workerStatus: "initializing" | "ready" | "running" | null;
2141
+ customTitle: string | null;
2142
2142
  pullRequestState: "open" | "closed" | "merged" | null;
2143
2143
  pullRequestStateChangedAt: string | null;
2144
2144
  gitStats: {
@@ -2155,26 +2155,26 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2155
2155
  }, {
2156
2156
  success: boolean;
2157
2157
  task: {
2158
- id: string;
2159
- createdAt: string;
2160
- state: string;
2161
2158
  machineId: string | null;
2162
- cloudId: string | null;
2159
+ cwd: string | null;
2163
2160
  userId: string;
2164
2161
  chatId: string;
2165
- cwd: string | null;
2166
- repositoryId: string | null;
2162
+ agentId: string;
2167
2163
  baseBranch: string | null;
2168
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2169
2164
  dataEncryptionKey: string | null;
2170
- agentId: string;
2165
+ repositoryId: string | null;
2166
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2167
+ agentSessionId: string | null;
2171
2168
  title: string | null;
2169
+ state: string;
2172
2170
  updatedAt: string;
2173
- workerStatus: "initializing" | "ready" | "running" | null;
2174
- customTitle: string | null;
2175
- agentSessionId: string | null;
2171
+ id: string;
2172
+ createdAt: string;
2176
2173
  pullRequestNumber: number | null;
2177
2174
  pullRequestUrl: string | null;
2175
+ cloudId: string | null;
2176
+ workerStatus: "initializing" | "ready" | "running" | null;
2177
+ customTitle: string | null;
2178
2178
  pullRequestState: "open" | "closed" | "merged" | null;
2179
2179
  pullRequestStateChangedAt: string | null;
2180
2180
  gitStats: {
@@ -2264,26 +2264,26 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2264
2264
  createdAt: z.ZodString;
2265
2265
  updatedAt: z.ZodString;
2266
2266
  }, "strip", z.ZodTypeAny, {
2267
- id: string;
2268
- createdAt: string;
2269
- state: string;
2270
2267
  machineId: string | null;
2271
- cloudId: string | null;
2268
+ cwd: string | null;
2272
2269
  userId: string;
2273
2270
  chatId: string;
2274
- cwd: string | null;
2275
- repositoryId: string | null;
2271
+ agentId: string;
2276
2272
  baseBranch: string | null;
2277
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2278
2273
  dataEncryptionKey: string | null;
2279
- agentId: string;
2274
+ repositoryId: string | null;
2275
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2276
+ agentSessionId: string | null;
2280
2277
  title: string | null;
2278
+ state: string;
2281
2279
  updatedAt: string;
2282
- workerStatus: "initializing" | "ready" | "running" | null;
2283
- customTitle: string | null;
2284
- agentSessionId: string | null;
2280
+ id: string;
2281
+ createdAt: string;
2285
2282
  pullRequestNumber: number | null;
2286
2283
  pullRequestUrl: string | null;
2284
+ cloudId: string | null;
2285
+ workerStatus: "initializing" | "ready" | "running" | null;
2286
+ customTitle: string | null;
2287
2287
  pullRequestState: "open" | "closed" | "merged" | null;
2288
2288
  pullRequestStateChangedAt: string | null;
2289
2289
  gitStats: {
@@ -2297,26 +2297,26 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2297
2297
  } | null;
2298
2298
  totalDuration: number | null;
2299
2299
  }, {
2300
- id: string;
2301
- createdAt: string;
2302
- state: string;
2303
2300
  machineId: string | null;
2304
- cloudId: string | null;
2301
+ cwd: string | null;
2305
2302
  userId: string;
2306
2303
  chatId: string;
2307
- cwd: string | null;
2308
- repositoryId: string | null;
2304
+ agentId: string;
2309
2305
  baseBranch: string | null;
2310
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2311
2306
  dataEncryptionKey: string | null;
2312
- agentId: string;
2307
+ repositoryId: string | null;
2308
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2309
+ agentSessionId: string | null;
2313
2310
  title: string | null;
2311
+ state: string;
2314
2312
  updatedAt: string;
2315
- workerStatus: "initializing" | "ready" | "running" | null;
2316
- customTitle: string | null;
2317
- agentSessionId: string | null;
2313
+ id: string;
2314
+ createdAt: string;
2318
2315
  pullRequestNumber: number | null;
2319
2316
  pullRequestUrl: string | null;
2317
+ cloudId: string | null;
2318
+ workerStatus: "initializing" | "ready" | "running" | null;
2319
+ customTitle: string | null;
2320
2320
  pullRequestState: "open" | "closed" | "merged" | null;
2321
2321
  pullRequestStateChangedAt: string | null;
2322
2322
  gitStats: {
@@ -2333,26 +2333,26 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2333
2333
  }, "strip", z.ZodTypeAny, {
2334
2334
  success: boolean;
2335
2335
  task: {
2336
- id: string;
2337
- createdAt: string;
2338
- state: string;
2339
2336
  machineId: string | null;
2340
- cloudId: string | null;
2337
+ cwd: string | null;
2341
2338
  userId: string;
2342
2339
  chatId: string;
2343
- cwd: string | null;
2344
- repositoryId: string | null;
2340
+ agentId: string;
2345
2341
  baseBranch: string | null;
2346
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2347
2342
  dataEncryptionKey: string | null;
2348
- agentId: string;
2343
+ repositoryId: string | null;
2344
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2345
+ agentSessionId: string | null;
2349
2346
  title: string | null;
2347
+ state: string;
2350
2348
  updatedAt: string;
2351
- workerStatus: "initializing" | "ready" | "running" | null;
2352
- customTitle: string | null;
2353
- agentSessionId: string | null;
2349
+ id: string;
2350
+ createdAt: string;
2354
2351
  pullRequestNumber: number | null;
2355
2352
  pullRequestUrl: string | null;
2353
+ cloudId: string | null;
2354
+ workerStatus: "initializing" | "ready" | "running" | null;
2355
+ customTitle: string | null;
2356
2356
  pullRequestState: "open" | "closed" | "merged" | null;
2357
2357
  pullRequestStateChangedAt: string | null;
2358
2358
  gitStats: {
@@ -2369,26 +2369,26 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2369
2369
  }, {
2370
2370
  success: boolean;
2371
2371
  task: {
2372
- id: string;
2373
- createdAt: string;
2374
- state: string;
2375
2372
  machineId: string | null;
2376
- cloudId: string | null;
2373
+ cwd: string | null;
2377
2374
  userId: string;
2378
2375
  chatId: string;
2379
- cwd: string | null;
2380
- repositoryId: string | null;
2376
+ agentId: string;
2381
2377
  baseBranch: string | null;
2382
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
2383
2378
  dataEncryptionKey: string | null;
2384
- agentId: string;
2379
+ repositoryId: string | null;
2380
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2381
+ agentSessionId: string | null;
2385
2382
  title: string | null;
2383
+ state: string;
2386
2384
  updatedAt: string;
2387
- workerStatus: "initializing" | "ready" | "running" | null;
2388
- customTitle: string | null;
2389
- agentSessionId: string | null;
2385
+ id: string;
2386
+ createdAt: string;
2390
2387
  pullRequestNumber: number | null;
2391
2388
  pullRequestUrl: string | null;
2389
+ cloudId: string | null;
2390
+ workerStatus: "initializing" | "ready" | "running" | null;
2391
+ customTitle: string | null;
2392
2392
  pullRequestState: "open" | "closed" | "merged" | null;
2393
2393
  pullRequestStateChangedAt: string | null;
2394
2394
  gitStats: {
@@ -2422,19 +2422,19 @@ declare const ChatMemberSchema: z.ZodObject<{
2422
2422
  createdAt: z.ZodString;
2423
2423
  updatedAt: z.ZodString;
2424
2424
  }, "strip", z.ZodTypeAny, {
2425
- id: string;
2426
2425
  type: "human" | "agent";
2427
- createdAt: string;
2428
2426
  chatId: string;
2429
2427
  updatedAt: string;
2428
+ id: string;
2429
+ createdAt: string;
2430
2430
  memberCode: string;
2431
2431
  role: string;
2432
2432
  }, {
2433
- id: string;
2434
2433
  type: "human" | "agent";
2435
- createdAt: string;
2436
2434
  chatId: string;
2437
2435
  updatedAt: string;
2436
+ id: string;
2437
+ createdAt: string;
2438
2438
  memberCode: string;
2439
2439
  role: string;
2440
2440
  }>;
@@ -2454,17 +2454,17 @@ declare const ChatSchema: z.ZodObject<{
2454
2454
  createdAt: z.ZodString;
2455
2455
  updatedAt: z.ZodString;
2456
2456
  }, "strip", z.ZodTypeAny, {
2457
- id: string;
2458
2457
  type: "direct" | "group";
2459
- createdAt: string;
2460
2458
  updatedAt: string;
2461
2459
  owner: string;
2462
- }, {
2463
2460
  id: string;
2464
- type: "direct" | "group";
2465
2461
  createdAt: string;
2462
+ }, {
2463
+ type: "direct" | "group";
2466
2464
  updatedAt: string;
2467
2465
  owner: string;
2466
+ id: string;
2467
+ createdAt: string;
2468
2468
  }>;
2469
2469
  type Chat = z.infer<typeof ChatSchema>;
2470
2470
  /**
@@ -2486,49 +2486,49 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2486
2486
  createdAt: z.ZodString;
2487
2487
  updatedAt: z.ZodString;
2488
2488
  }, "strip", z.ZodTypeAny, {
2489
- id: string;
2490
2489
  type: "human" | "agent";
2491
- createdAt: string;
2492
2490
  chatId: string;
2493
2491
  updatedAt: string;
2492
+ id: string;
2493
+ createdAt: string;
2494
2494
  memberCode: string;
2495
2495
  role: string;
2496
2496
  }, {
2497
- id: string;
2498
2497
  type: "human" | "agent";
2499
- createdAt: string;
2500
2498
  chatId: string;
2501
2499
  updatedAt: string;
2500
+ id: string;
2501
+ createdAt: string;
2502
2502
  memberCode: string;
2503
2503
  role: string;
2504
2504
  }>, "many">;
2505
2505
  }, "strip", z.ZodTypeAny, {
2506
- id: string;
2507
2506
  type: "direct" | "group";
2508
- createdAt: string;
2509
2507
  updatedAt: string;
2510
2508
  owner: string;
2509
+ id: string;
2510
+ createdAt: string;
2511
2511
  members: {
2512
- id: string;
2513
2512
  type: "human" | "agent";
2514
- createdAt: string;
2515
2513
  chatId: string;
2516
2514
  updatedAt: string;
2515
+ id: string;
2516
+ createdAt: string;
2517
2517
  memberCode: string;
2518
2518
  role: string;
2519
2519
  }[];
2520
2520
  }, {
2521
- id: string;
2522
2521
  type: "direct" | "group";
2523
- createdAt: string;
2524
2522
  updatedAt: string;
2525
2523
  owner: string;
2524
+ id: string;
2525
+ createdAt: string;
2526
2526
  members: {
2527
- id: string;
2528
2527
  type: "human" | "agent";
2529
- createdAt: string;
2530
2528
  chatId: string;
2531
2529
  updatedAt: string;
2530
+ id: string;
2531
+ createdAt: string;
2532
2532
  memberCode: string;
2533
2533
  role: string;
2534
2534
  }[];
@@ -2596,49 +2596,49 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2596
2596
  createdAt: z.ZodString;
2597
2597
  updatedAt: z.ZodString;
2598
2598
  }, "strip", z.ZodTypeAny, {
2599
- id: string;
2600
2599
  type: "human" | "agent";
2601
- createdAt: string;
2602
2600
  chatId: string;
2603
2601
  updatedAt: string;
2602
+ id: string;
2603
+ createdAt: string;
2604
2604
  memberCode: string;
2605
2605
  role: string;
2606
2606
  }, {
2607
- id: string;
2608
2607
  type: "human" | "agent";
2609
- createdAt: string;
2610
2608
  chatId: string;
2611
2609
  updatedAt: string;
2610
+ id: string;
2611
+ createdAt: string;
2612
2612
  memberCode: string;
2613
2613
  role: string;
2614
2614
  }>, "many">;
2615
2615
  }, "strip", z.ZodTypeAny, {
2616
- id: string;
2617
2616
  type: "direct" | "group";
2618
- createdAt: string;
2619
2617
  updatedAt: string;
2620
2618
  owner: string;
2619
+ id: string;
2620
+ createdAt: string;
2621
2621
  members: {
2622
- id: string;
2623
2622
  type: "human" | "agent";
2624
- createdAt: string;
2625
2623
  chatId: string;
2626
2624
  updatedAt: string;
2625
+ id: string;
2626
+ createdAt: string;
2627
2627
  memberCode: string;
2628
2628
  role: string;
2629
2629
  }[];
2630
2630
  }, {
2631
- id: string;
2632
2631
  type: "direct" | "group";
2633
- createdAt: string;
2634
2632
  updatedAt: string;
2635
2633
  owner: string;
2634
+ id: string;
2635
+ createdAt: string;
2636
2636
  members: {
2637
- id: string;
2638
2637
  type: "human" | "agent";
2639
- createdAt: string;
2640
2638
  chatId: string;
2641
2639
  updatedAt: string;
2640
+ id: string;
2641
+ createdAt: string;
2642
2642
  memberCode: string;
2643
2643
  role: string;
2644
2644
  }[];
@@ -2664,83 +2664,83 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2664
2664
  createdAt: z.ZodString;
2665
2665
  updatedAt: z.ZodString;
2666
2666
  }, "strip", z.ZodTypeAny, {
2667
- id: string;
2668
2667
  type: "human" | "agent";
2669
- createdAt: string;
2670
2668
  chatId: string;
2671
2669
  updatedAt: string;
2670
+ id: string;
2671
+ createdAt: string;
2672
2672
  memberCode: string;
2673
2673
  role: string;
2674
2674
  }, {
2675
- id: string;
2676
2675
  type: "human" | "agent";
2677
- createdAt: string;
2678
2676
  chatId: string;
2679
2677
  updatedAt: string;
2678
+ id: string;
2679
+ createdAt: string;
2680
2680
  memberCode: string;
2681
2681
  role: string;
2682
2682
  }>, "many">;
2683
2683
  }, "strip", z.ZodTypeAny, {
2684
- id: string;
2685
2684
  type: "direct" | "group";
2686
- createdAt: string;
2687
2685
  updatedAt: string;
2688
2686
  owner: string;
2687
+ id: string;
2688
+ createdAt: string;
2689
2689
  members: {
2690
- id: string;
2691
2690
  type: "human" | "agent";
2692
- createdAt: string;
2693
2691
  chatId: string;
2694
2692
  updatedAt: string;
2693
+ id: string;
2694
+ createdAt: string;
2695
2695
  memberCode: string;
2696
2696
  role: string;
2697
2697
  }[];
2698
2698
  }, {
2699
- id: string;
2700
2699
  type: "direct" | "group";
2701
- createdAt: string;
2702
2700
  updatedAt: string;
2703
2701
  owner: string;
2702
+ id: string;
2703
+ createdAt: string;
2704
2704
  members: {
2705
- id: string;
2706
2705
  type: "human" | "agent";
2707
- createdAt: string;
2708
2706
  chatId: string;
2709
2707
  updatedAt: string;
2708
+ id: string;
2709
+ createdAt: string;
2710
2710
  memberCode: string;
2711
2711
  role: string;
2712
2712
  }[];
2713
2713
  }>, "many">;
2714
2714
  }, "strip", z.ZodTypeAny, {
2715
2715
  chats: {
2716
- id: string;
2717
2716
  type: "direct" | "group";
2718
- createdAt: string;
2719
2717
  updatedAt: string;
2720
2718
  owner: string;
2719
+ id: string;
2720
+ createdAt: string;
2721
2721
  members: {
2722
- id: string;
2723
2722
  type: "human" | "agent";
2724
- createdAt: string;
2725
2723
  chatId: string;
2726
2724
  updatedAt: string;
2725
+ id: string;
2726
+ createdAt: string;
2727
2727
  memberCode: string;
2728
2728
  role: string;
2729
2729
  }[];
2730
2730
  }[];
2731
2731
  }, {
2732
2732
  chats: {
2733
- id: string;
2734
2733
  type: "direct" | "group";
2735
- createdAt: string;
2736
2734
  updatedAt: string;
2737
2735
  owner: string;
2736
+ id: string;
2737
+ createdAt: string;
2738
2738
  members: {
2739
- id: string;
2740
2739
  type: "human" | "agent";
2741
- createdAt: string;
2742
2740
  chatId: string;
2743
2741
  updatedAt: string;
2742
+ id: string;
2743
+ createdAt: string;
2744
2744
  memberCode: string;
2745
2745
  role: string;
2746
2746
  }[];
@@ -2766,49 +2766,49 @@ declare const GetChatResponseSchema: z.ZodObject<{
2766
2766
  createdAt: z.ZodString;
2767
2767
  updatedAt: z.ZodString;
2768
2768
  }, "strip", z.ZodTypeAny, {
2769
- id: string;
2770
2769
  type: "human" | "agent";
2771
- createdAt: string;
2772
2770
  chatId: string;
2773
2771
  updatedAt: string;
2772
+ id: string;
2773
+ createdAt: string;
2774
2774
  memberCode: string;
2775
2775
  role: string;
2776
2776
  }, {
2777
- id: string;
2778
2777
  type: "human" | "agent";
2779
- createdAt: string;
2780
2778
  chatId: string;
2781
2779
  updatedAt: string;
2780
+ id: string;
2781
+ createdAt: string;
2782
2782
  memberCode: string;
2783
2783
  role: string;
2784
2784
  }>, "many">;
2785
2785
  }, "strip", z.ZodTypeAny, {
2786
- id: string;
2787
2786
  type: "direct" | "group";
2788
- createdAt: string;
2789
2787
  updatedAt: string;
2790
2788
  owner: string;
2789
+ id: string;
2790
+ createdAt: string;
2791
2791
  members: {
2792
- id: string;
2793
2792
  type: "human" | "agent";
2794
- createdAt: string;
2795
2793
  chatId: string;
2796
2794
  updatedAt: string;
2795
+ id: string;
2796
+ createdAt: string;
2797
2797
  memberCode: string;
2798
2798
  role: string;
2799
2799
  }[];
2800
2800
  }, {
2801
- id: string;
2802
2801
  type: "direct" | "group";
2803
- createdAt: string;
2804
2802
  updatedAt: string;
2805
2803
  owner: string;
2804
+ id: string;
2805
+ createdAt: string;
2806
2806
  members: {
2807
- id: string;
2808
2807
  type: "human" | "agent";
2809
- createdAt: string;
2810
2808
  chatId: string;
2811
2809
  updatedAt: string;
2810
+ id: string;
2811
+ createdAt: string;
2812
2812
  memberCode: string;
2813
2813
  role: string;
2814
2814
  }[];
@@ -2827,39 +2827,39 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
2827
2827
  createdAt: z.ZodString;
2828
2828
  updatedAt: z.ZodString;
2829
2829
  }, "strip", z.ZodTypeAny, {
2830
- id: string;
2831
2830
  type: "human" | "agent";
2832
- createdAt: string;
2833
2831
  chatId: string;
2834
2832
  updatedAt: string;
2833
+ id: string;
2834
+ createdAt: string;
2835
2835
  memberCode: string;
2836
2836
  role: string;
2837
2837
  }, {
2838
- id: string;
2839
2838
  type: "human" | "agent";
2840
- createdAt: string;
2841
2839
  chatId: string;
2842
2840
  updatedAt: string;
2841
+ id: string;
2842
+ createdAt: string;
2843
2843
  memberCode: string;
2844
2844
  role: string;
2845
2845
  }>, "many">;
2846
2846
  }, "strip", z.ZodTypeAny, {
2847
2847
  members: {
2848
- id: string;
2849
2848
  type: "human" | "agent";
2850
- createdAt: string;
2851
2849
  chatId: string;
2852
2850
  updatedAt: string;
2851
+ id: string;
2852
+ createdAt: string;
2853
2853
  memberCode: string;
2854
2854
  role: string;
2855
2855
  }[];
2856
2856
  }, {
2857
2857
  members: {
2858
- id: string;
2859
2858
  type: "human" | "agent";
2860
- createdAt: string;
2861
2859
  chatId: string;
2862
2860
  updatedAt: string;
2861
+ id: string;
2862
+ createdAt: string;
2863
2863
  memberCode: string;
2864
2864
  role: string;
2865
2865
  }[];
@@ -2905,39 +2905,39 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2905
2905
  createdAt: z.ZodString;
2906
2906
  updatedAt: z.ZodString;
2907
2907
  }, "strip", z.ZodTypeAny, {
2908
- id: string;
2909
2908
  type: "human" | "agent";
2910
- createdAt: string;
2911
2909
  chatId: string;
2912
2910
  updatedAt: string;
2911
+ id: string;
2912
+ createdAt: string;
2913
2913
  memberCode: string;
2914
2914
  role: string;
2915
2915
  }, {
2916
- id: string;
2917
2916
  type: "human" | "agent";
2918
- createdAt: string;
2919
2917
  chatId: string;
2920
2918
  updatedAt: string;
2919
+ id: string;
2920
+ createdAt: string;
2921
2921
  memberCode: string;
2922
2922
  role: string;
2923
2923
  }>, "many">;
2924
2924
  }, "strip", z.ZodTypeAny, {
2925
2925
  members: {
2926
- id: string;
2927
2926
  type: "human" | "agent";
2928
- createdAt: string;
2929
2927
  chatId: string;
2930
2928
  updatedAt: string;
2929
+ id: string;
2930
+ createdAt: string;
2931
2931
  memberCode: string;
2932
2932
  role: string;
2933
2933
  }[];
2934
2934
  }, {
2935
2935
  members: {
2936
- id: string;
2937
2936
  type: "human" | "agent";
2938
- createdAt: string;
2939
2937
  chatId: string;
2940
2938
  updatedAt: string;
2939
+ id: string;
2940
+ createdAt: string;
2941
2941
  memberCode: string;
2942
2942
  role: string;
2943
2943
  }[];
@@ -3035,26 +3035,26 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3035
3035
  createdAt: z.ZodString;
3036
3036
  updatedAt: z.ZodString;
3037
3037
  }, "strip", z.ZodTypeAny, {
3038
- id: string;
3039
- createdAt: string;
3040
- state: string;
3041
3038
  machineId: string | null;
3042
- cloudId: string | null;
3039
+ cwd: string | null;
3043
3040
  userId: string;
3044
3041
  chatId: string;
3045
- cwd: string | null;
3046
- repositoryId: string | null;
3042
+ agentId: string;
3047
3043
  baseBranch: string | null;
3048
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
3049
3044
  dataEncryptionKey: string | null;
3050
- agentId: string;
3045
+ repositoryId: string | null;
3046
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
3047
+ agentSessionId: string | null;
3051
3048
  title: string | null;
3049
+ state: string;
3052
3050
  updatedAt: string;
3053
- workerStatus: "initializing" | "ready" | "running" | null;
3054
- customTitle: string | null;
3055
- agentSessionId: string | null;
3051
+ id: string;
3052
+ createdAt: string;
3056
3053
  pullRequestNumber: number | null;
3057
3054
  pullRequestUrl: string | null;
3055
+ cloudId: string | null;
3056
+ workerStatus: "initializing" | "ready" | "running" | null;
3057
+ customTitle: string | null;
3058
3058
  pullRequestState: "open" | "closed" | "merged" | null;
3059
3059
  pullRequestStateChangedAt: string | null;
3060
3060
  gitStats: {
@@ -3068,26 +3068,26 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3068
3068
  } | null;
3069
3069
  totalDuration: number | null;
3070
3070
  }, {
3071
- id: string;
3072
- createdAt: string;
3073
- state: string;
3074
3071
  machineId: string | null;
3075
- cloudId: string | null;
3072
+ cwd: string | null;
3076
3073
  userId: string;
3077
3074
  chatId: string;
3078
- cwd: string | null;
3079
- repositoryId: string | null;
3075
+ agentId: string;
3080
3076
  baseBranch: string | null;
3081
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
3082
3077
  dataEncryptionKey: string | null;
3083
- agentId: string;
3078
+ repositoryId: string | null;
3079
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
3080
+ agentSessionId: string | null;
3084
3081
  title: string | null;
3082
+ state: string;
3085
3083
  updatedAt: string;
3086
- workerStatus: "initializing" | "ready" | "running" | null;
3087
- customTitle: string | null;
3088
- agentSessionId: string | null;
3084
+ id: string;
3085
+ createdAt: string;
3089
3086
  pullRequestNumber: number | null;
3090
3087
  pullRequestUrl: string | null;
3088
+ cloudId: string | null;
3089
+ workerStatus: "initializing" | "ready" | "running" | null;
3090
+ customTitle: string | null;
3091
3091
  pullRequestState: "open" | "closed" | "merged" | null;
3092
3092
  pullRequestStateChangedAt: string | null;
3093
3093
  gitStats: {
@@ -3103,26 +3103,26 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3103
3103
  }>, "many">;
3104
3104
  }, "strip", z.ZodTypeAny, {
3105
3105
  tasks: {
3106
- id: string;
3107
- createdAt: string;
3108
- state: string;
3109
3106
  machineId: string | null;
3110
- cloudId: string | null;
3107
+ cwd: string | null;
3111
3108
  userId: string;
3112
3109
  chatId: string;
3113
- cwd: string | null;
3114
- repositoryId: string | null;
3110
+ agentId: string;
3115
3111
  baseBranch: string | null;
3116
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
3117
3112
  dataEncryptionKey: string | null;
3118
- agentId: string;
3113
+ repositoryId: string | null;
3114
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
3115
+ agentSessionId: string | null;
3119
3116
  title: string | null;
3117
+ state: string;
3120
3118
  updatedAt: string;
3121
- workerStatus: "initializing" | "ready" | "running" | null;
3122
- customTitle: string | null;
3123
- agentSessionId: string | null;
3119
+ id: string;
3120
+ createdAt: string;
3124
3121
  pullRequestNumber: number | null;
3125
3122
  pullRequestUrl: string | null;
3123
+ cloudId: string | null;
3124
+ workerStatus: "initializing" | "ready" | "running" | null;
3125
+ customTitle: string | null;
3126
3126
  pullRequestState: "open" | "closed" | "merged" | null;
3127
3127
  pullRequestStateChangedAt: string | null;
3128
3128
  gitStats: {
@@ -3138,26 +3138,26 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3138
3138
  }[];
3139
3139
  }, {
3140
3140
  tasks: {
3141
- id: string;
3142
- createdAt: string;
3143
- state: string;
3144
3141
  machineId: string | null;
3145
- cloudId: string | null;
3142
+ cwd: string | null;
3146
3143
  userId: string;
3147
3144
  chatId: string;
3148
- cwd: string | null;
3149
- repositoryId: string | null;
3145
+ agentId: string;
3150
3146
  baseBranch: string | null;
3151
- repositorySourceType: "temporary" | "directory" | "git-server" | null;
3152
3147
  dataEncryptionKey: string | null;
3153
- agentId: string;
3148
+ repositoryId: string | null;
3149
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
3150
+ agentSessionId: string | null;
3154
3151
  title: string | null;
3152
+ state: string;
3155
3153
  updatedAt: string;
3156
- workerStatus: "initializing" | "ready" | "running" | null;
3157
- customTitle: string | null;
3158
- agentSessionId: string | null;
3154
+ id: string;
3155
+ createdAt: string;
3159
3156
  pullRequestNumber: number | null;
3160
3157
  pullRequestUrl: string | null;
3158
+ cloudId: string | null;
3159
+ workerStatus: "initializing" | "ready" | "running" | null;
3160
+ customTitle: string | null;
3161
3161
  pullRequestState: "open" | "closed" | "merged" | null;
3162
3162
  pullRequestStateChangedAt: string | null;
3163
3163
  gitStats: {
@@ -3519,13 +3519,13 @@ declare const AgentSchema: z.ZodObject<{
3519
3519
  }> | undefined;
3520
3520
  }>>;
3521
3521
  }, "strip", z.ZodTypeAny, {
3522
- id: string;
3523
- avatar: string | null;
3524
3522
  type: "claude" | "codex";
3525
- signature: string | null;
3523
+ description: string | null;
3526
3524
  userId: string;
3527
3525
  name: string;
3528
- description: string | null;
3526
+ id: string;
3527
+ avatar: string | null;
3528
+ signature: string | null;
3529
3529
  guildMsg: string;
3530
3530
  placeholderMsg: string;
3531
3531
  developerName: string;
@@ -3555,13 +3555,13 @@ declare const AgentSchema: z.ZodObject<{
3555
3555
  }> | undefined;
3556
3556
  } | null;
3557
3557
  }, {
3558
- id: string;
3559
- avatar: string | null;
3560
3558
  type: "claude" | "codex";
3561
- signature: string | null;
3559
+ description: string | null;
3562
3560
  userId: string;
3563
3561
  name: string;
3564
- description: string | null;
3562
+ id: string;
3563
+ avatar: string | null;
3564
+ signature: string | null;
3565
3565
  guildMsg: string;
3566
3566
  placeholderMsg: string;
3567
3567
  developerName: string;
@@ -3709,13 +3709,13 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
3709
3709
  }> | undefined;
3710
3710
  }>>;
3711
3711
  }, "strip", z.ZodTypeAny, {
3712
- id: string;
3713
- avatar: string | null;
3714
3712
  type: "claude" | "codex";
3715
- signature: string | null;
3713
+ description: string | null;
3716
3714
  userId: string;
3717
3715
  name: string;
3718
- description: string | null;
3716
+ id: string;
3717
+ avatar: string | null;
3718
+ signature: string | null;
3719
3719
  guildMsg: string;
3720
3720
  placeholderMsg: string;
3721
3721
  developerName: string;
@@ -3745,13 +3745,13 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
3745
3745
  }> | undefined;
3746
3746
  } | null;
3747
3747
  }, {
3748
- id: string;
3749
- avatar: string | null;
3750
3748
  type: "claude" | "codex";
3751
- signature: string | null;
3749
+ description: string | null;
3752
3750
  userId: string;
3753
3751
  name: string;
3754
- description: string | null;
3752
+ id: string;
3753
+ avatar: string | null;
3754
+ signature: string | null;
3755
3755
  guildMsg: string;
3756
3756
  placeholderMsg: string;
3757
3757
  developerName: string;
@@ -3783,13 +3783,13 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
3783
3783
  }>, "many">;
3784
3784
  }, "strip", z.ZodTypeAny, {
3785
3785
  agents: {
3786
- id: string;
3787
- avatar: string | null;
3788
3786
  type: "claude" | "codex";
3789
- signature: string | null;
3787
+ description: string | null;
3790
3788
  userId: string;
3791
3789
  name: string;
3792
- description: string | null;
3790
+ id: string;
3791
+ avatar: string | null;
3792
+ signature: string | null;
3793
3793
  guildMsg: string;
3794
3794
  placeholderMsg: string;
3795
3795
  developerName: string;
@@ -3821,13 +3821,13 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
3821
3821
  }[];
3822
3822
  }, {
3823
3823
  agents: {
3824
- id: string;
3825
- avatar: string | null;
3826
3824
  type: "claude" | "codex";
3827
- signature: string | null;
3825
+ description: string | null;
3828
3826
  userId: string;
3829
3827
  name: string;
3830
- description: string | null;
3828
+ id: string;
3829
+ avatar: string | null;
3830
+ signature: string | null;
3831
3831
  guildMsg: string;
3832
3832
  placeholderMsg: string;
3833
3833
  developerName: string;
@@ -3975,13 +3975,13 @@ declare const GetAgentResponseSchema: z.ZodObject<{
3975
3975
  }> | undefined;
3976
3976
  }>>;
3977
3977
  }, "strip", z.ZodTypeAny, {
3978
- id: string;
3979
- avatar: string | null;
3980
3978
  type: "claude" | "codex";
3981
- signature: string | null;
3979
+ description: string | null;
3982
3980
  userId: string;
3983
3981
  name: string;
3984
- description: string | null;
3982
+ id: string;
3983
+ avatar: string | null;
3984
+ signature: string | null;
3985
3985
  guildMsg: string;
3986
3986
  placeholderMsg: string;
3987
3987
  developerName: string;
@@ -4011,13 +4011,13 @@ declare const GetAgentResponseSchema: z.ZodObject<{
4011
4011
  }> | undefined;
4012
4012
  } | null;
4013
4013
  }, {
4014
- id: string;
4015
- avatar: string | null;
4016
4014
  type: "claude" | "codex";
4017
- signature: string | null;
4015
+ description: string | null;
4018
4016
  userId: string;
4019
4017
  name: string;
4020
- description: string | null;
4018
+ id: string;
4019
+ avatar: string | null;
4020
+ signature: string | null;
4021
4021
  guildMsg: string;
4022
4022
  placeholderMsg: string;
4023
4023
  developerName: string;
@@ -4164,9 +4164,9 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
4164
4164
  guildMsg: string;
4165
4165
  placeholderMsg: string;
4166
4166
  supportLocal: boolean;
4167
+ description?: string | undefined;
4167
4168
  avatar?: string | undefined;
4168
4169
  signature?: string | undefined;
4169
- description?: string | undefined;
4170
4170
  gitRepoId?: string | undefined;
4171
4171
  config?: {
4172
4172
  displayConfig?: Record<string, {
@@ -4192,9 +4192,9 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
4192
4192
  }, {
4193
4193
  type: "claude" | "codex";
4194
4194
  name: string;
4195
+ description?: string | undefined;
4195
4196
  avatar?: string | undefined;
4196
4197
  signature?: string | undefined;
4197
- description?: string | undefined;
4198
4198
  guildMsg?: string | undefined;
4199
4199
  placeholderMsg?: string | undefined;
4200
4200
  gitRepoId?: string | undefined;
@@ -4338,13 +4338,13 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
4338
4338
  }> | undefined;
4339
4339
  }>>;
4340
4340
  }, "strip", z.ZodTypeAny, {
4341
- id: string;
4342
- avatar: string | null;
4343
4341
  type: "claude" | "codex";
4344
- signature: string | null;
4342
+ description: string | null;
4345
4343
  userId: string;
4346
4344
  name: string;
4347
- description: string | null;
4345
+ id: string;
4346
+ avatar: string | null;
4347
+ signature: string | null;
4348
4348
  guildMsg: string;
4349
4349
  placeholderMsg: string;
4350
4350
  developerName: string;
@@ -4374,13 +4374,13 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
4374
4374
  }> | undefined;
4375
4375
  } | null;
4376
4376
  }, {
4377
- id: string;
4378
- avatar: string | null;
4379
4377
  type: "claude" | "codex";
4380
- signature: string | null;
4378
+ description: string | null;
4381
4379
  userId: string;
4382
4380
  name: string;
4383
- description: string | null;
4381
+ id: string;
4382
+ avatar: string | null;
4383
+ signature: string | null;
4384
4384
  guildMsg: string;
4385
4385
  placeholderMsg: string;
4386
4386
  developerName: string;
@@ -4522,11 +4522,11 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
4522
4522
  }> | undefined;
4523
4523
  }>>>;
4524
4524
  }, "strip", z.ZodTypeAny, {
4525
- avatar?: string | null | undefined;
4526
4525
  type?: "claude" | "codex" | undefined;
4527
- signature?: string | null | undefined;
4528
- name?: string | undefined;
4529
4526
  description?: string | null | undefined;
4527
+ name?: string | undefined;
4528
+ avatar?: string | null | undefined;
4529
+ signature?: string | null | undefined;
4530
4530
  guildMsg?: string | undefined;
4531
4531
  placeholderMsg?: string | undefined;
4532
4532
  gitRepoId?: string | null | undefined;
@@ -4553,11 +4553,11 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
4553
4553
  }> | undefined;
4554
4554
  } | null | undefined;
4555
4555
  }, {
4556
- avatar?: string | null | undefined;
4557
4556
  type?: "claude" | "codex" | undefined;
4558
- signature?: string | null | undefined;
4559
- name?: string | undefined;
4560
4557
  description?: string | null | undefined;
4558
+ name?: string | undefined;
4559
+ avatar?: string | null | undefined;
4560
+ signature?: string | null | undefined;
4561
4561
  guildMsg?: string | undefined;
4562
4562
  placeholderMsg?: string | undefined;
4563
4563
  gitRepoId?: string | null | undefined;
@@ -4701,13 +4701,13 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
4701
4701
  }> | undefined;
4702
4702
  }>>;
4703
4703
  }, "strip", z.ZodTypeAny, {
4704
- id: string;
4705
- avatar: string | null;
4706
4704
  type: "claude" | "codex";
4707
- signature: string | null;
4705
+ description: string | null;
4708
4706
  userId: string;
4709
4707
  name: string;
4710
- description: string | null;
4708
+ id: string;
4709
+ avatar: string | null;
4710
+ signature: string | null;
4711
4711
  guildMsg: string;
4712
4712
  placeholderMsg: string;
4713
4713
  developerName: string;
@@ -4737,13 +4737,13 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
4737
4737
  }> | undefined;
4738
4738
  } | null;
4739
4739
  }, {
4740
- id: string;
4741
- avatar: string | null;
4742
4740
  type: "claude" | "codex";
4743
- signature: string | null;
4741
+ description: string | null;
4744
4742
  userId: string;
4745
4743
  name: string;
4746
- description: string | null;
4744
+ id: string;
4745
+ avatar: string | null;
4746
+ signature: string | null;
4747
4747
  guildMsg: string;
4748
4748
  placeholderMsg: string;
4749
4749
  developerName: string;
@@ -4808,25 +4808,25 @@ declare const LocalMachineSchema: z.ZodObject<{
4808
4808
  createdAt: z.ZodString;
4809
4809
  updatedAt: z.ZodString;
4810
4810
  }, "strip", z.ZodTypeAny, {
4811
- id: string;
4812
4811
  status: string;
4813
- createdAt: string;
4812
+ controlPort: number | null;
4814
4813
  dataEncryptionKey: string;
4815
4814
  updatedAt: string;
4816
- owner: string;
4817
4815
  metadata: string | null;
4816
+ owner: string;
4817
+ id: string;
4818
+ createdAt: string;
4818
4819
  approval: string;
4819
- controlPort: number | null;
4820
4820
  }, {
4821
- id: string;
4822
4821
  status: string;
4823
- createdAt: string;
4822
+ controlPort: number | null;
4824
4823
  dataEncryptionKey: string;
4825
4824
  updatedAt: string;
4826
- owner: string;
4827
4825
  metadata: string | null;
4826
+ owner: string;
4827
+ id: string;
4828
+ createdAt: string;
4828
4829
  approval: string;
4829
- controlPort: number | null;
4830
4830
  }>;
4831
4831
  type LocalMachine = z.infer<typeof LocalMachineSchema>;
4832
4832
  /**
@@ -4841,20 +4841,20 @@ declare const CloudMachineSchema: z.ZodObject<{
4841
4841
  createdAt: z.ZodString;
4842
4842
  updatedAt: z.ZodString;
4843
4843
  }, "strip", z.ZodTypeAny, {
4844
- id: string;
4845
4844
  status: string;
4846
- createdAt: string;
4847
- cloudId: string;
4848
4845
  updatedAt: string;
4849
4846
  metadata: string | null;
4850
- deviceId: string;
4851
- }, {
4852
4847
  id: string;
4853
- status: string;
4854
4848
  createdAt: string;
4855
4849
  cloudId: string;
4850
+ deviceId: string;
4851
+ }, {
4852
+ status: string;
4856
4853
  updatedAt: string;
4857
4854
  metadata: string | null;
4855
+ id: string;
4856
+ createdAt: string;
4857
+ cloudId: string;
4858
4858
  deviceId: string;
4859
4859
  }>;
4860
4860
  type CloudMachine = z.infer<typeof CloudMachineSchema>;
@@ -4877,52 +4877,52 @@ declare const CloudSchema: z.ZodObject<{
4877
4877
  createdAt: z.ZodString;
4878
4878
  updatedAt: z.ZodString;
4879
4879
  }, "strip", z.ZodTypeAny, {
4880
- id: string;
4881
4880
  status: string;
4882
- createdAt: string;
4883
- cloudId: string;
4884
4881
  updatedAt: string;
4885
4882
  metadata: string | null;
4886
- deviceId: string;
4887
- }, {
4888
4883
  id: string;
4889
- status: string;
4890
4884
  createdAt: string;
4891
4885
  cloudId: string;
4886
+ deviceId: string;
4887
+ }, {
4888
+ status: string;
4892
4889
  updatedAt: string;
4893
4890
  metadata: string | null;
4891
+ id: string;
4892
+ createdAt: string;
4893
+ cloudId: string;
4894
4894
  deviceId: string;
4895
4895
  }>, "many">>;
4896
4896
  }, "strip", z.ZodTypeAny, {
4897
- id: string;
4898
4897
  type: "public" | "private";
4899
- createdAt: string;
4900
4898
  updatedAt: string;
4901
4899
  name: string;
4902
4900
  owner: string;
4901
+ id: string;
4902
+ createdAt: string;
4903
4903
  machines?: {
4904
- id: string;
4905
4904
  status: string;
4906
- createdAt: string;
4907
- cloudId: string;
4908
4905
  updatedAt: string;
4909
4906
  metadata: string | null;
4907
+ id: string;
4908
+ createdAt: string;
4909
+ cloudId: string;
4910
4910
  deviceId: string;
4911
4911
  }[] | undefined;
4912
4912
  }, {
4913
- id: string;
4914
4913
  type: "public" | "private";
4915
- createdAt: string;
4916
4914
  updatedAt: string;
4917
4915
  name: string;
4918
4916
  owner: string;
4917
+ id: string;
4918
+ createdAt: string;
4919
4919
  machines?: {
4920
- id: string;
4921
4920
  status: string;
4922
- createdAt: string;
4923
- cloudId: string;
4924
4921
  updatedAt: string;
4925
4922
  metadata: string | null;
4923
+ id: string;
4924
+ createdAt: string;
4925
+ cloudId: string;
4926
4926
  deviceId: string;
4927
4927
  }[] | undefined;
4928
4928
  }>;
@@ -4947,52 +4947,52 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
4947
4947
  createdAt: z.ZodString;
4948
4948
  updatedAt: z.ZodString;
4949
4949
  }, "strip", z.ZodTypeAny, {
4950
- id: string;
4951
4950
  status: string;
4952
- createdAt: string;
4953
- cloudId: string;
4954
4951
  updatedAt: string;
4955
4952
  metadata: string | null;
4956
- deviceId: string;
4957
- }, {
4958
4953
  id: string;
4959
- status: string;
4960
4954
  createdAt: string;
4961
4955
  cloudId: string;
4956
+ deviceId: string;
4957
+ }, {
4958
+ status: string;
4962
4959
  updatedAt: string;
4963
4960
  metadata: string | null;
4961
+ id: string;
4962
+ createdAt: string;
4963
+ cloudId: string;
4964
4964
  deviceId: string;
4965
4965
  }>, "many">>;
4966
4966
  }, "strip", z.ZodTypeAny, {
4967
- id: string;
4968
4967
  type: "public" | "private";
4969
- createdAt: string;
4970
4968
  updatedAt: string;
4971
4969
  name: string;
4972
4970
  owner: string;
4971
+ id: string;
4972
+ createdAt: string;
4973
4973
  machines?: {
4974
+ status: string;
4975
+ updatedAt: string;
4976
+ metadata: string | null;
4974
4977
  id: string;
4975
- status: string;
4976
4978
  createdAt: string;
4977
4979
  cloudId: string;
4978
- updatedAt: string;
4979
- metadata: string | null;
4980
4980
  deviceId: string;
4981
4981
  }[] | undefined;
4982
4982
  }, {
4983
- id: string;
4984
4983
  type: "public" | "private";
4985
- createdAt: string;
4986
4984
  updatedAt: string;
4987
4985
  name: string;
4988
4986
  owner: string;
4987
+ id: string;
4988
+ createdAt: string;
4989
4989
  machines?: {
4990
- id: string;
4991
4990
  status: string;
4992
- createdAt: string;
4993
- cloudId: string;
4994
4991
  updatedAt: string;
4995
4992
  metadata: string | null;
4993
+ id: string;
4994
+ createdAt: string;
4995
+ cloudId: string;
4996
4996
  deviceId: string;
4997
4997
  }[] | undefined;
4998
4998
  }>, "many">;
@@ -5007,83 +5007,83 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
5007
5007
  createdAt: z.ZodString;
5008
5008
  updatedAt: z.ZodString;
5009
5009
  }, "strip", z.ZodTypeAny, {
5010
- id: string;
5011
5010
  status: string;
5012
- createdAt: string;
5011
+ controlPort: number | null;
5013
5012
  dataEncryptionKey: string;
5014
5013
  updatedAt: string;
5015
- owner: string;
5016
5014
  metadata: string | null;
5015
+ owner: string;
5016
+ id: string;
5017
+ createdAt: string;
5017
5018
  approval: string;
5018
- controlPort: number | null;
5019
5019
  }, {
5020
- id: string;
5021
5020
  status: string;
5022
- createdAt: string;
5021
+ controlPort: number | null;
5023
5022
  dataEncryptionKey: string;
5024
5023
  updatedAt: string;
5025
- owner: string;
5026
5024
  metadata: string | null;
5025
+ owner: string;
5026
+ id: string;
5027
+ createdAt: string;
5027
5028
  approval: string;
5028
- controlPort: number | null;
5029
5029
  }>, "many">;
5030
5030
  }, "strip", z.ZodTypeAny, {
5031
5031
  clouds: {
5032
- id: string;
5033
5032
  type: "public" | "private";
5034
- createdAt: string;
5035
5033
  updatedAt: string;
5036
5034
  name: string;
5037
5035
  owner: string;
5036
+ id: string;
5037
+ createdAt: string;
5038
5038
  machines?: {
5039
- id: string;
5040
5039
  status: string;
5041
- createdAt: string;
5042
- cloudId: string;
5043
5040
  updatedAt: string;
5044
5041
  metadata: string | null;
5042
+ id: string;
5043
+ createdAt: string;
5044
+ cloudId: string;
5045
5045
  deviceId: string;
5046
5046
  }[] | undefined;
5047
5047
  }[];
5048
5048
  localMachines: {
5049
- id: string;
5050
5049
  status: string;
5051
- createdAt: string;
5050
+ controlPort: number | null;
5052
5051
  dataEncryptionKey: string;
5053
5052
  updatedAt: string;
5054
- owner: string;
5055
5053
  metadata: string | null;
5054
+ owner: string;
5055
+ id: string;
5056
+ createdAt: string;
5056
5057
  approval: string;
5057
- controlPort: number | null;
5058
5058
  }[];
5059
5059
  }, {
5060
5060
  clouds: {
5061
- id: string;
5062
5061
  type: "public" | "private";
5063
- createdAt: string;
5064
5062
  updatedAt: string;
5065
5063
  name: string;
5066
5064
  owner: string;
5065
+ id: string;
5066
+ createdAt: string;
5067
5067
  machines?: {
5068
- id: string;
5069
5068
  status: string;
5070
- createdAt: string;
5071
- cloudId: string;
5072
5069
  updatedAt: string;
5073
5070
  metadata: string | null;
5071
+ id: string;
5072
+ createdAt: string;
5073
+ cloudId: string;
5074
5074
  deviceId: string;
5075
5075
  }[] | undefined;
5076
5076
  }[];
5077
5077
  localMachines: {
5078
- id: string;
5079
5078
  status: string;
5080
- createdAt: string;
5079
+ controlPort: number | null;
5081
5080
  dataEncryptionKey: string;
5082
5081
  updatedAt: string;
5083
- owner: string;
5084
5082
  metadata: string | null;
5083
+ owner: string;
5084
+ id: string;
5085
+ createdAt: string;
5085
5086
  approval: string;
5086
- controlPort: number | null;
5087
5087
  }[];
5088
5088
  }>;
5089
5089
  type ListMachinesResponse = z.infer<typeof ListMachinesResponseSchema>;
@@ -5095,12 +5095,12 @@ declare const SyncMachineRequestSchema: z.ZodObject<{
5095
5095
  metadata: z.ZodString;
5096
5096
  dataEncryptionKey: z.ZodOptional<z.ZodString>;
5097
5097
  }, "strip", z.ZodTypeAny, {
5098
- id: string;
5099
5098
  metadata: string;
5099
+ id: string;
5100
5100
  dataEncryptionKey?: string | undefined;
5101
5101
  }, {
5102
- id: string;
5103
5102
  metadata: string;
5103
+ id: string;
5104
5104
  dataEncryptionKey?: string | undefined;
5105
5105
  }>;
5106
5106
  type SyncMachineRequest = z.infer<typeof SyncMachineRequestSchema>;
@@ -5112,21 +5112,21 @@ declare const SyncLocalMachineResponseSchema: z.ZodObject<{
5112
5112
  id: z.ZodString;
5113
5113
  metadata: z.ZodNullable<z.ZodString>;
5114
5114
  }, "strip", z.ZodTypeAny, {
5115
- id: string;
5116
5115
  metadata: string | null;
5117
- }, {
5118
5116
  id: string;
5117
+ }, {
5119
5118
  metadata: string | null;
5119
+ id: string;
5120
5120
  }>;
5121
5121
  }, "strip", z.ZodTypeAny, {
5122
5122
  machine: {
5123
- id: string;
5124
5123
  metadata: string | null;
5124
+ id: string;
5125
5125
  };
5126
5126
  }, {
5127
5127
  machine: {
5128
- id: string;
5129
5128
  metadata: string | null;
5129
+ id: string;
5130
5130
  };
5131
5131
  }>;
5132
5132
  type SyncLocalMachineResponse = z.infer<typeof SyncLocalMachineResponseSchema>;
@@ -5139,24 +5139,24 @@ declare const SyncCloudMachineResponseSchema: z.ZodObject<{
5139
5139
  deviceId: z.ZodString;
5140
5140
  metadata: z.ZodNullable<z.ZodString>;
5141
5141
  }, "strip", z.ZodTypeAny, {
5142
- id: string;
5143
5142
  metadata: string | null;
5143
+ id: string;
5144
5144
  deviceId: string;
5145
5145
  }, {
5146
- id: string;
5147
5146
  metadata: string | null;
5147
+ id: string;
5148
5148
  deviceId: string;
5149
5149
  }>;
5150
5150
  }, "strip", z.ZodTypeAny, {
5151
5151
  machine: {
5152
- id: string;
5153
5152
  metadata: string | null;
5153
+ id: string;
5154
5154
  deviceId: string;
5155
5155
  };
5156
5156
  }, {
5157
5157
  machine: {
5158
- id: string;
5159
5158
  metadata: string | null;
5159
+ id: string;
5160
5160
  deviceId: string;
5161
5161
  };
5162
5162
  }>;
@@ -5241,15 +5241,15 @@ declare const FileItemSchema: z.ZodObject<{
5241
5241
  contentType: z.ZodString;
5242
5242
  createdAt: z.ZodString;
5243
5243
  }, "strip", z.ZodTypeAny, {
5244
- createdAt: string;
5245
5244
  name: string;
5246
5245
  size: number;
5246
+ createdAt: string;
5247
5247
  fileId: string;
5248
5248
  contentType: string;
5249
5249
  }, {
5250
- createdAt: string;
5251
5250
  name: string;
5252
5251
  size: number;
5252
+ createdAt: string;
5253
5253
  fileId: string;
5254
5254
  contentType: string;
5255
5255
  }>;
@@ -5288,31 +5288,31 @@ declare const ConfirmUploadResponseSchema: z.ZodObject<{
5288
5288
  contentType: z.ZodString;
5289
5289
  createdAt: z.ZodString;
5290
5290
  }, "strip", z.ZodTypeAny, {
5291
- createdAt: string;
5292
5291
  name: string;
5293
5292
  size: number;
5293
+ createdAt: string;
5294
5294
  fileId: string;
5295
5295
  contentType: string;
5296
5296
  }, {
5297
- createdAt: string;
5298
5297
  name: string;
5299
5298
  size: number;
5299
+ createdAt: string;
5300
5300
  fileId: string;
5301
5301
  contentType: string;
5302
5302
  }>;
5303
5303
  }, "strip", z.ZodTypeAny, {
5304
5304
  file: {
5305
- createdAt: string;
5306
5305
  name: string;
5307
5306
  size: number;
5307
+ createdAt: string;
5308
5308
  fileId: string;
5309
5309
  contentType: string;
5310
5310
  };
5311
5311
  }, {
5312
5312
  file: {
5313
- createdAt: string;
5314
5313
  name: string;
5315
5314
  size: number;
5315
+ createdAt: string;
5316
5316
  fileId: string;
5317
5317
  contentType: string;
5318
5318
  };
@@ -5349,15 +5349,15 @@ declare const ListFilesResponseSchema: z.ZodObject<{
5349
5349
  contentType: z.ZodString;
5350
5350
  createdAt: z.ZodString;
5351
5351
  }, "strip", z.ZodTypeAny, {
5352
- createdAt: string;
5353
5352
  name: string;
5354
5353
  size: number;
5354
+ createdAt: string;
5355
5355
  fileId: string;
5356
5356
  contentType: string;
5357
5357
  }, {
5358
- createdAt: string;
5359
5358
  name: string;
5360
5359
  size: number;
5360
+ createdAt: string;
5361
5361
  fileId: string;
5362
5362
  contentType: string;
5363
5363
  }>, "many">;
@@ -5366,9 +5366,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
5366
5366
  page: number;
5367
5367
  limit: number;
5368
5368
  files: {
5369
- createdAt: string;
5370
5369
  name: string;
5371
5370
  size: number;
5371
+ createdAt: string;
5372
5372
  fileId: string;
5373
5373
  contentType: string;
5374
5374
  }[];
@@ -5377,9 +5377,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
5377
5377
  page: number;
5378
5378
  limit: number;
5379
5379
  files: {
5380
- createdAt: string;
5381
5380
  name: string;
5382
5381
  size: number;
5382
+ createdAt: string;
5383
5383
  fileId: string;
5384
5384
  contentType: string;
5385
5385
  }[];
@@ -5407,28 +5407,28 @@ declare const RepositorySchema: z.ZodObject<{
5407
5407
  updatedAt: z.ZodString;
5408
5408
  gitServerId: z.ZodString;
5409
5409
  }, "strip", z.ZodTypeAny, {
5410
- id: string;
5411
- createdAt: string;
5410
+ description: string | null;
5412
5411
  updatedAt: string;
5413
5412
  name: string;
5414
- description: string | null;
5415
5413
  owner: string;
5416
- url: string;
5414
+ id: string;
5415
+ createdAt: string;
5417
5416
  fullName: string;
5418
5417
  defaultBranch: string;
5419
5418
  isPrivate: boolean;
5419
+ url: string;
5420
5420
  gitServerId: string;
5421
5421
  }, {
5422
- id: string;
5423
- createdAt: string;
5422
+ description: string | null;
5424
5423
  updatedAt: string;
5425
5424
  name: string;
5426
- description: string | null;
5427
5425
  owner: string;
5428
- url: string;
5426
+ id: string;
5427
+ createdAt: string;
5429
5428
  fullName: string;
5430
5429
  defaultBranch: string;
5431
5430
  isPrivate: boolean;
5431
+ url: string;
5432
5432
  gitServerId: string;
5433
5433
  }>;
5434
5434
  type Repository = z.infer<typeof RepositorySchema>;
@@ -5449,56 +5449,56 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
5449
5449
  updatedAt: z.ZodString;
5450
5450
  gitServerId: z.ZodString;
5451
5451
  }, "strip", z.ZodTypeAny, {
5452
- id: string;
5453
- createdAt: string;
5452
+ description: string | null;
5454
5453
  updatedAt: string;
5455
5454
  name: string;
5456
- description: string | null;
5457
5455
  owner: string;
5458
- url: string;
5456
+ id: string;
5457
+ createdAt: string;
5459
5458
  fullName: string;
5460
5459
  defaultBranch: string;
5461
5460
  isPrivate: boolean;
5461
+ url: string;
5462
5462
  gitServerId: string;
5463
5463
  }, {
5464
- id: string;
5465
- createdAt: string;
5464
+ description: string | null;
5466
5465
  updatedAt: string;
5467
5466
  name: string;
5468
- description: string | null;
5469
5467
  owner: string;
5470
- url: string;
5468
+ id: string;
5469
+ createdAt: string;
5471
5470
  fullName: string;
5472
5471
  defaultBranch: string;
5473
5472
  isPrivate: boolean;
5473
+ url: string;
5474
5474
  gitServerId: string;
5475
5475
  }>, "many">;
5476
5476
  }, "strip", z.ZodTypeAny, {
5477
5477
  repositories: {
5478
- id: string;
5479
- createdAt: string;
5478
+ description: string | null;
5480
5479
  updatedAt: string;
5481
5480
  name: string;
5482
- description: string | null;
5483
5481
  owner: string;
5484
- url: string;
5482
+ id: string;
5483
+ createdAt: string;
5485
5484
  fullName: string;
5486
5485
  defaultBranch: string;
5487
5486
  isPrivate: boolean;
5487
+ url: string;
5488
5488
  gitServerId: string;
5489
5489
  }[];
5490
5490
  }, {
5491
5491
  repositories: {
5492
- id: string;
5493
- createdAt: string;
5492
+ description: string | null;
5494
5493
  updatedAt: string;
5495
5494
  name: string;
5496
- description: string | null;
5497
5495
  owner: string;
5498
- url: string;
5496
+ id: string;
5497
+ createdAt: string;
5499
5498
  fullName: string;
5500
5499
  defaultBranch: string;
5501
5500
  isPrivate: boolean;
5501
+ url: string;
5502
5502
  gitServerId: string;
5503
5503
  }[];
5504
5504
  }>;
@@ -5520,56 +5520,56 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
5520
5520
  updatedAt: z.ZodString;
5521
5521
  gitServerId: z.ZodString;
5522
5522
  }, "strip", z.ZodTypeAny, {
5523
- id: string;
5524
- createdAt: string;
5523
+ description: string | null;
5525
5524
  updatedAt: string;
5526
5525
  name: string;
5527
- description: string | null;
5528
5526
  owner: string;
5529
- url: string;
5527
+ id: string;
5528
+ createdAt: string;
5530
5529
  fullName: string;
5531
5530
  defaultBranch: string;
5532
5531
  isPrivate: boolean;
5532
+ url: string;
5533
5533
  gitServerId: string;
5534
5534
  }, {
5535
- id: string;
5536
- createdAt: string;
5535
+ description: string | null;
5537
5536
  updatedAt: string;
5538
5537
  name: string;
5539
- description: string | null;
5540
5538
  owner: string;
5541
- url: string;
5539
+ id: string;
5540
+ createdAt: string;
5542
5541
  fullName: string;
5543
5542
  defaultBranch: string;
5544
5543
  isPrivate: boolean;
5544
+ url: string;
5545
5545
  gitServerId: string;
5546
5546
  }>;
5547
5547
  }, "strip", z.ZodTypeAny, {
5548
5548
  repository: {
5549
- id: string;
5550
- createdAt: string;
5549
+ description: string | null;
5551
5550
  updatedAt: string;
5552
5551
  name: string;
5553
- description: string | null;
5554
5552
  owner: string;
5555
- url: string;
5553
+ id: string;
5554
+ createdAt: string;
5556
5555
  fullName: string;
5557
5556
  defaultBranch: string;
5558
5557
  isPrivate: boolean;
5558
+ url: string;
5559
5559
  gitServerId: string;
5560
5560
  };
5561
5561
  }, {
5562
5562
  repository: {
5563
- id: string;
5564
- createdAt: string;
5563
+ description: string | null;
5565
5564
  updatedAt: string;
5566
5565
  name: string;
5567
- description: string | null;
5568
5566
  owner: string;
5569
- url: string;
5567
+ id: string;
5568
+ createdAt: string;
5570
5569
  fullName: string;
5571
5570
  defaultBranch: string;
5572
5571
  isPrivate: boolean;
5572
+ url: string;
5573
5573
  gitServerId: string;
5574
5574
  };
5575
5575
  }>;
@@ -5605,21 +5605,21 @@ declare const GetGitUrlResponseSchema: z.ZodObject<{
5605
5605
  fullName: string;
5606
5606
  }>;
5607
5607
  }, "strip", z.ZodTypeAny, {
5608
+ gitUrl: string;
5608
5609
  repository: {
5609
5610
  name: string;
5610
5611
  owner: string;
5611
5612
  fullName: string;
5612
5613
  };
5613
5614
  branch: string;
5614
- gitUrl: string;
5615
5615
  }, {
5616
+ gitUrl: string;
5616
5617
  repository: {
5617
5618
  name: string;
5618
5619
  owner: string;
5619
5620
  fullName: string;
5620
5621
  };
5621
5622
  branch: string;
5622
- gitUrl: string;
5623
5623
  }>;
5624
5624
  type GetGitUrlResponse = z.infer<typeof GetGitUrlResponseSchema>;
5625
5625
  /**
@@ -5842,16 +5842,16 @@ declare const CreateCloudResponseSchema: z.ZodObject<{
5842
5842
  secret: z.ZodString;
5843
5843
  createdAt: z.ZodString;
5844
5844
  }, "strip", z.ZodTypeAny, {
5845
- id: string;
5846
- createdAt: string;
5847
5845
  name: string;
5848
5846
  owner: string;
5849
- secret: string;
5850
- }, {
5851
5847
  id: string;
5852
5848
  createdAt: string;
5849
+ secret: string;
5850
+ }, {
5853
5851
  name: string;
5854
5852
  owner: string;
5853
+ id: string;
5854
+ createdAt: string;
5855
5855
  secret: string;
5856
5856
  }>;
5857
5857
  type CreateCloudResponse = z.infer<typeof CreateCloudResponseSchema>;
@@ -5881,10 +5881,10 @@ declare const OAuthServerSchema: z.ZodObject<{
5881
5881
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5882
5882
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5883
5883
  }, "strip", z.ZodTypeAny, {
5884
+ updatedAt: string;
5884
5885
  id: string;
5885
- provider: string;
5886
5886
  createdAt: string;
5887
- updatedAt: string;
5887
+ provider: string;
5888
5888
  displayName: string;
5889
5889
  authorizeUrl: string;
5890
5890
  tokenUrl: string;
@@ -5897,10 +5897,10 @@ declare const OAuthServerSchema: z.ZodObject<{
5897
5897
  enabled: boolean;
5898
5898
  avatar?: string | undefined;
5899
5899
  }, {
5900
+ updatedAt: string | Date;
5900
5901
  id: string;
5901
- provider: string;
5902
5902
  createdAt: string | Date;
5903
- updatedAt: string | Date;
5903
+ provider: string;
5904
5904
  displayName: string;
5905
5905
  authorizeUrl: string;
5906
5906
  tokenUrl: string;
@@ -5927,18 +5927,18 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
5927
5927
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5928
5928
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5929
5929
  }, "strip", z.ZodTypeAny, {
5930
+ updatedAt: string;
5930
5931
  id: string;
5931
- provider: string;
5932
5932
  createdAt: string;
5933
- updatedAt: string;
5933
+ provider: string;
5934
5934
  displayName: string;
5935
5935
  enabled: boolean;
5936
5936
  avatar?: string | undefined;
5937
5937
  }, {
5938
+ updatedAt: string | Date;
5938
5939
  id: string;
5939
- provider: string;
5940
5940
  createdAt: string | Date;
5941
- updatedAt: string | Date;
5941
+ provider: string;
5942
5942
  displayName: string;
5943
5943
  enabled: boolean;
5944
5944
  avatar?: string | undefined;
@@ -6002,10 +6002,10 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
6002
6002
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6003
6003
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6004
6004
  }, "strip", z.ZodTypeAny, {
6005
+ updatedAt: string;
6005
6006
  id: string;
6006
- provider: string;
6007
6007
  createdAt: string;
6008
- updatedAt: string;
6008
+ provider: string;
6009
6009
  displayName: string;
6010
6010
  authorizeUrl: string;
6011
6011
  tokenUrl: string;
@@ -6018,10 +6018,10 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
6018
6018
  enabled: boolean;
6019
6019
  avatar?: string | undefined;
6020
6020
  }, {
6021
+ updatedAt: string | Date;
6021
6022
  id: string;
6022
- provider: string;
6023
6023
  createdAt: string | Date;
6024
- updatedAt: string | Date;
6024
+ provider: string;
6025
6025
  displayName: string;
6026
6026
  authorizeUrl: string;
6027
6027
  tokenUrl: string;
@@ -6063,10 +6063,10 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
6063
6063
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6064
6064
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6065
6065
  }, "strip", z.ZodTypeAny, {
6066
+ updatedAt: string;
6066
6067
  id: string;
6067
- provider: string;
6068
6068
  createdAt: string;
6069
- updatedAt: string;
6069
+ provider: string;
6070
6070
  displayName: string;
6071
6071
  authorizeUrl: string;
6072
6072
  tokenUrl: string;
@@ -6079,10 +6079,10 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
6079
6079
  enabled: boolean;
6080
6080
  avatar?: string | undefined;
6081
6081
  }, {
6082
+ updatedAt: string | Date;
6082
6083
  id: string;
6083
- provider: string;
6084
6084
  createdAt: string | Date;
6085
- updatedAt: string | Date;
6085
+ provider: string;
6086
6086
  displayName: string;
6087
6087
  authorizeUrl: string;
6088
6088
  tokenUrl: string;
@@ -6116,10 +6116,10 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
6116
6116
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6117
6117
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6118
6118
  }, "strip", z.ZodTypeAny, {
6119
+ updatedAt: string;
6119
6120
  id: string;
6120
- provider: string;
6121
6121
  createdAt: string;
6122
- updatedAt: string;
6122
+ provider: string;
6123
6123
  displayName: string;
6124
6124
  authorizeUrl: string;
6125
6125
  tokenUrl: string;
@@ -6132,10 +6132,10 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
6132
6132
  enabled: boolean;
6133
6133
  avatar?: string | undefined;
6134
6134
  }, {
6135
+ updatedAt: string | Date;
6135
6136
  id: string;
6136
- provider: string;
6137
6137
  createdAt: string | Date;
6138
- updatedAt: string | Date;
6138
+ provider: string;
6139
6139
  displayName: string;
6140
6140
  authorizeUrl: string;
6141
6141
  tokenUrl: string;
@@ -6207,10 +6207,10 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
6207
6207
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6208
6208
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6209
6209
  }, "strip", z.ZodTypeAny, {
6210
+ updatedAt: string;
6210
6211
  id: string;
6211
- provider: string;
6212
6212
  createdAt: string;
6213
- updatedAt: string;
6213
+ provider: string;
6214
6214
  displayName: string;
6215
6215
  authorizeUrl: string;
6216
6216
  tokenUrl: string;
@@ -6223,10 +6223,10 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
6223
6223
  enabled: boolean;
6224
6224
  avatar?: string | undefined;
6225
6225
  }, {
6226
+ updatedAt: string | Date;
6226
6227
  id: string;
6227
- provider: string;
6228
6228
  createdAt: string | Date;
6229
- updatedAt: string | Date;
6229
+ provider: string;
6230
6230
  displayName: string;
6231
6231
  authorizeUrl: string;
6232
6232
  tokenUrl: string;
@@ -6279,10 +6279,10 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
6279
6279
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6280
6280
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6281
6281
  }, "strip", z.ZodTypeAny, {
6282
+ updatedAt: string;
6282
6283
  id: string;
6283
- provider: string;
6284
6284
  createdAt: string;
6285
- updatedAt: string;
6285
+ provider: string;
6286
6286
  displayName: string;
6287
6287
  authorizeUrl: string;
6288
6288
  tokenUrl: string;
@@ -6295,10 +6295,10 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
6295
6295
  enabled: boolean;
6296
6296
  avatar?: string | undefined;
6297
6297
  }, {
6298
+ updatedAt: string | Date;
6298
6299
  id: string;
6299
- provider: string;
6300
6300
  createdAt: string | Date;
6301
- updatedAt: string | Date;
6301
+ provider: string;
6302
6302
  displayName: string;
6303
6303
  authorizeUrl: string;
6304
6304
  tokenUrl: string;
@@ -6324,18 +6324,18 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
6324
6324
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6325
6325
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6326
6326
  }, "strip", z.ZodTypeAny, {
6327
+ updatedAt: string;
6327
6328
  id: string;
6328
- provider: string;
6329
6329
  createdAt: string;
6330
- updatedAt: string;
6330
+ provider: string;
6331
6331
  displayName: string;
6332
6332
  enabled: boolean;
6333
6333
  avatar?: string | undefined;
6334
6334
  }, {
6335
+ updatedAt: string | Date;
6335
6336
  id: string;
6336
- provider: string;
6337
6337
  createdAt: string | Date;
6338
- updatedAt: string | Date;
6338
+ provider: string;
6339
6339
  displayName: string;
6340
6340
  enabled: boolean;
6341
6341
  avatar?: string | undefined;
@@ -6401,21 +6401,21 @@ declare const CreditsPackageSchema: z.ZodObject<{
6401
6401
  createdAt: z.ZodString;
6402
6402
  updatedAt: z.ZodString;
6403
6403
  }, "strip", z.ZodTypeAny, {
6404
- id: string;
6405
- createdAt: string;
6406
6404
  userId: string;
6407
6405
  updatedAt: string;
6408
6406
  name: string;
6407
+ id: string;
6408
+ createdAt: string;
6409
6409
  credit: number;
6410
6410
  usage: number;
6411
6411
  remaining: number;
6412
6412
  expiredAt: string;
6413
6413
  }, {
6414
- id: string;
6415
- createdAt: string;
6416
6414
  userId: string;
6417
6415
  updatedAt: string;
6418
6416
  name: string;
6417
+ id: string;
6418
+ createdAt: string;
6419
6419
  credit: number;
6420
6420
  usage: number;
6421
6421
  remaining: number;
@@ -6454,21 +6454,21 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
6454
6454
  createdAt: z.ZodString;
6455
6455
  updatedAt: z.ZodString;
6456
6456
  }, "strip", z.ZodTypeAny, {
6457
- id: string;
6458
- createdAt: string;
6459
6457
  userId: string;
6460
6458
  updatedAt: string;
6461
6459
  name: string;
6460
+ id: string;
6461
+ createdAt: string;
6462
6462
  credit: number;
6463
6463
  usage: number;
6464
6464
  remaining: number;
6465
6465
  expiredAt: string;
6466
6466
  }, {
6467
- id: string;
6468
- createdAt: string;
6469
6467
  userId: string;
6470
6468
  updatedAt: string;
6471
6469
  name: string;
6470
+ id: string;
6471
+ createdAt: string;
6472
6472
  credit: number;
6473
6473
  usage: number;
6474
6474
  remaining: number;
@@ -6478,11 +6478,11 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
6478
6478
  }, "strip", z.ZodTypeAny, {
6479
6479
  total: number;
6480
6480
  packages: {
6481
- id: string;
6482
- createdAt: string;
6483
6481
  userId: string;
6484
6482
  updatedAt: string;
6485
6483
  name: string;
6484
+ id: string;
6485
+ createdAt: string;
6486
6486
  credit: number;
6487
6487
  usage: number;
6488
6488
  remaining: number;
@@ -6491,11 +6491,11 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
6491
6491
  }, {
6492
6492
  total: number;
6493
6493
  packages: {
6494
- id: string;
6495
- createdAt: string;
6496
6494
  userId: string;
6497
6495
  updatedAt: string;
6498
6496
  name: string;
6497
+ id: string;
6498
+ createdAt: string;
6499
6499
  credit: number;
6500
6500
  usage: number;
6501
6501
  remaining: number;
@@ -6521,10 +6521,10 @@ declare const ChargeTransactionSchema: z.ZodObject<{
6521
6521
  createdAt: z.ZodString;
6522
6522
  transactionType: z.ZodLiteral<"charge">;
6523
6523
  }, "strip", z.ZodTypeAny, {
6524
- id: string;
6525
6524
  type: "user_recharge" | "system_bonus" | "refund";
6526
- createdAt: string;
6527
6525
  userId: string;
6526
+ id: string;
6527
+ createdAt: string;
6528
6528
  creditsPackageId: string;
6529
6529
  amount: number;
6530
6530
  balanceBefore: number;
@@ -6535,10 +6535,10 @@ declare const ChargeTransactionSchema: z.ZodObject<{
6535
6535
  metadata?: any;
6536
6536
  packageName?: string | undefined;
6537
6537
  }, {
6538
- id: string;
6539
6538
  type: "user_recharge" | "system_bonus" | "refund";
6540
- createdAt: string;
6541
6539
  userId: string;
6540
+ id: string;
6541
+ createdAt: string;
6542
6542
  creditsPackageId: string;
6543
6543
  amount: number;
6544
6544
  balanceBefore: number;
@@ -6567,11 +6567,11 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
6567
6567
  createdAt: z.ZodString;
6568
6568
  transactionType: z.ZodLiteral<"consume">;
6569
6569
  }, "strip", z.ZodTypeAny, {
6570
- id: string;
6571
- createdAt: string;
6572
- userId: string;
6573
6570
  taskId: string;
6571
+ userId: string;
6574
6572
  agentId: string;
6573
+ id: string;
6574
+ createdAt: string;
6575
6575
  creditsPackageId: string;
6576
6576
  amount: number;
6577
6577
  balanceBefore: number;
@@ -6580,11 +6580,11 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
6580
6580
  metadata?: any;
6581
6581
  packageName?: string | undefined;
6582
6582
  }, {
6583
- id: string;
6584
- createdAt: string;
6585
- userId: string;
6586
6583
  taskId: string;
6584
+ userId: string;
6587
6585
  agentId: string;
6586
+ id: string;
6587
+ createdAt: string;
6588
6588
  creditsPackageId: string;
6589
6589
  amount: number;
6590
6590
  balanceBefore: number;
@@ -6612,10 +6612,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
6612
6612
  createdAt: z.ZodString;
6613
6613
  transactionType: z.ZodLiteral<"charge">;
6614
6614
  }, "strip", z.ZodTypeAny, {
6615
- id: string;
6616
6615
  type: "user_recharge" | "system_bonus" | "refund";
6617
- createdAt: string;
6618
6616
  userId: string;
6617
+ id: string;
6618
+ createdAt: string;
6619
6619
  creditsPackageId: string;
6620
6620
  amount: number;
6621
6621
  balanceBefore: number;
@@ -6626,10 +6626,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
6626
6626
  metadata?: any;
6627
6627
  packageName?: string | undefined;
6628
6628
  }, {
6629
- id: string;
6630
6629
  type: "user_recharge" | "system_bonus" | "refund";
6631
- createdAt: string;
6632
6630
  userId: string;
6631
+ id: string;
6632
+ createdAt: string;
6633
6633
  creditsPackageId: string;
6634
6634
  amount: number;
6635
6635
  balanceBefore: number;
@@ -6653,11 +6653,11 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
6653
6653
  createdAt: z.ZodString;
6654
6654
  transactionType: z.ZodLiteral<"consume">;
6655
6655
  }, "strip", z.ZodTypeAny, {
6656
- id: string;
6657
- createdAt: string;
6658
- userId: string;
6659
6656
  taskId: string;
6657
+ userId: string;
6660
6658
  agentId: string;
6659
+ id: string;
6660
+ createdAt: string;
6661
6661
  creditsPackageId: string;
6662
6662
  amount: number;
6663
6663
  balanceBefore: number;
@@ -6666,11 +6666,11 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
6666
6666
  metadata?: any;
6667
6667
  packageName?: string | undefined;
6668
6668
  }, {
6669
- id: string;
6670
- createdAt: string;
6671
- userId: string;
6672
6669
  taskId: string;
6670
+ userId: string;
6673
6671
  agentId: string;
6672
+ id: string;
6673
+ createdAt: string;
6674
6674
  creditsPackageId: string;
6675
6675
  amount: number;
6676
6676
  balanceBefore: number;
@@ -6722,10 +6722,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6722
6722
  createdAt: z.ZodString;
6723
6723
  transactionType: z.ZodLiteral<"charge">;
6724
6724
  }, "strip", z.ZodTypeAny, {
6725
- id: string;
6726
6725
  type: "user_recharge" | "system_bonus" | "refund";
6727
- createdAt: string;
6728
6726
  userId: string;
6727
+ id: string;
6728
+ createdAt: string;
6729
6729
  creditsPackageId: string;
6730
6730
  amount: number;
6731
6731
  balanceBefore: number;
@@ -6736,10 +6736,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6736
6736
  metadata?: any;
6737
6737
  packageName?: string | undefined;
6738
6738
  }, {
6739
- id: string;
6740
6739
  type: "user_recharge" | "system_bonus" | "refund";
6741
- createdAt: string;
6742
6740
  userId: string;
6741
+ id: string;
6742
+ createdAt: string;
6743
6743
  creditsPackageId: string;
6744
6744
  amount: number;
6745
6745
  balanceBefore: number;
@@ -6763,11 +6763,11 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6763
6763
  createdAt: z.ZodString;
6764
6764
  transactionType: z.ZodLiteral<"consume">;
6765
6765
  }, "strip", z.ZodTypeAny, {
6766
- id: string;
6767
- createdAt: string;
6768
- userId: string;
6769
6766
  taskId: string;
6767
+ userId: string;
6770
6768
  agentId: string;
6769
+ id: string;
6770
+ createdAt: string;
6771
6771
  creditsPackageId: string;
6772
6772
  amount: number;
6773
6773
  balanceBefore: number;
@@ -6776,11 +6776,11 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6776
6776
  metadata?: any;
6777
6777
  packageName?: string | undefined;
6778
6778
  }, {
6779
- id: string;
6780
- createdAt: string;
6781
- userId: string;
6782
6779
  taskId: string;
6780
+ userId: string;
6783
6781
  agentId: string;
6782
+ id: string;
6783
+ createdAt: string;
6784
6784
  creditsPackageId: string;
6785
6785
  amount: number;
6786
6786
  balanceBefore: number;
@@ -6793,10 +6793,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6793
6793
  }, "strip", z.ZodTypeAny, {
6794
6794
  total: number;
6795
6795
  transactions: ({
6796
- id: string;
6797
6796
  type: "user_recharge" | "system_bonus" | "refund";
6798
- createdAt: string;
6799
6797
  userId: string;
6798
+ id: string;
6799
+ createdAt: string;
6800
6800
  creditsPackageId: string;
6801
6801
  amount: number;
6802
6802
  balanceBefore: number;
@@ -6807,11 +6807,11 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6807
6807
  metadata?: any;
6808
6808
  packageName?: string | undefined;
6809
6809
  } | {
6810
- id: string;
6811
- createdAt: string;
6812
- userId: string;
6813
6810
  taskId: string;
6811
+ userId: string;
6814
6812
  agentId: string;
6813
+ id: string;
6814
+ createdAt: string;
6815
6815
  creditsPackageId: string;
6816
6816
  amount: number;
6817
6817
  balanceBefore: number;
@@ -6823,10 +6823,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6823
6823
  }, {
6824
6824
  total: number;
6825
6825
  transactions: ({
6826
- id: string;
6827
6826
  type: "user_recharge" | "system_bonus" | "refund";
6828
- createdAt: string;
6829
6827
  userId: string;
6828
+ id: string;
6829
+ createdAt: string;
6830
6830
  creditsPackageId: string;
6831
6831
  amount: number;
6832
6832
  balanceBefore: number;
@@ -6837,11 +6837,11 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
6837
6837
  metadata?: any;
6838
6838
  packageName?: string | undefined;
6839
6839
  } | {
6840
- id: string;
6841
- createdAt: string;
6842
- userId: string;
6843
6840
  taskId: string;
6841
+ userId: string;
6844
6842
  agentId: string;
6843
+ id: string;
6844
+ createdAt: string;
6845
6845
  creditsPackageId: string;
6846
6846
  amount: number;
6847
6847
  balanceBefore: number;
@@ -6870,11 +6870,11 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
6870
6870
  createdAt: z.ZodString;
6871
6871
  transactionType: z.ZodLiteral<"consume">;
6872
6872
  }, "strip", z.ZodTypeAny, {
6873
- id: string;
6874
- createdAt: string;
6875
- userId: string;
6876
6873
  taskId: string;
6874
+ userId: string;
6877
6875
  agentId: string;
6876
+ id: string;
6877
+ createdAt: string;
6878
6878
  creditsPackageId: string;
6879
6879
  amount: number;
6880
6880
  balanceBefore: number;
@@ -6883,11 +6883,11 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
6883
6883
  metadata?: any;
6884
6884
  packageName?: string | undefined;
6885
6885
  }, {
6886
- id: string;
6887
- createdAt: string;
6888
- userId: string;
6889
6886
  taskId: string;
6887
+ userId: string;
6890
6888
  agentId: string;
6889
+ id: string;
6890
+ createdAt: string;
6891
6891
  creditsPackageId: string;
6892
6892
  amount: number;
6893
6893
  balanceBefore: number;
@@ -6900,11 +6900,11 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
6900
6900
  }, "strip", z.ZodTypeAny, {
6901
6901
  total: number;
6902
6902
  transactions: {
6903
- id: string;
6904
- createdAt: string;
6905
- userId: string;
6906
6903
  taskId: string;
6904
+ userId: string;
6907
6905
  agentId: string;
6906
+ id: string;
6907
+ createdAt: string;
6908
6908
  creditsPackageId: string;
6909
6909
  amount: number;
6910
6910
  balanceBefore: number;
@@ -6916,11 +6916,11 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
6916
6916
  }, {
6917
6917
  total: number;
6918
6918
  transactions: {
6919
- id: string;
6920
- createdAt: string;
6921
- userId: string;
6922
6919
  taskId: string;
6920
+ userId: string;
6923
6921
  agentId: string;
6922
+ id: string;
6923
+ createdAt: string;
6924
6924
  creditsPackageId: string;
6925
6925
  amount: number;
6926
6926
  balanceBefore: number;
@@ -6988,21 +6988,21 @@ declare const GitServerSchema: z.ZodObject<{
6988
6988
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6989
6989
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
6990
6990
  }, "strip", z.ZodTypeAny, {
6991
- id: string;
6992
6991
  type: string;
6993
- createdAt: string;
6994
6992
  updatedAt: string;
6995
6993
  name: string;
6994
+ id: string;
6995
+ createdAt: string;
6996
6996
  enabled: boolean;
6997
6997
  baseUrl: string;
6998
6998
  apiUrl: string;
6999
6999
  oauthServerId: string | null;
7000
7000
  }, {
7001
- id: string;
7002
7001
  type: string;
7003
- createdAt: string | Date;
7004
7002
  updatedAt: string | Date;
7005
7003
  name: string;
7004
+ id: string;
7005
+ createdAt: string | Date;
7006
7006
  enabled: boolean;
7007
7007
  baseUrl: string;
7008
7008
  apiUrl: string;
@@ -7023,21 +7023,21 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
7023
7023
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
7024
7024
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
7025
7025
  }, "strip", z.ZodTypeAny, {
7026
- id: string;
7027
7026
  type: string;
7028
- createdAt: string;
7029
7027
  updatedAt: string;
7030
7028
  name: string;
7029
+ id: string;
7030
+ createdAt: string;
7031
7031
  enabled: boolean;
7032
7032
  baseUrl: string;
7033
7033
  apiUrl: string;
7034
7034
  oauthServerId: string | null;
7035
7035
  }, {
7036
- id: string;
7037
7036
  type: string;
7038
- createdAt: string | Date;
7039
7037
  updatedAt: string | Date;
7040
7038
  name: string;
7039
+ id: string;
7040
+ createdAt: string | Date;
7041
7041
  enabled: boolean;
7042
7042
  baseUrl: string;
7043
7043
  apiUrl: string;
@@ -7058,21 +7058,21 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
7058
7058
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
7059
7059
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
7060
7060
  }, "strip", z.ZodTypeAny, {
7061
- id: string;
7062
7061
  type: string;
7063
- createdAt: string;
7064
7062
  updatedAt: string;
7065
7063
  name: string;
7064
+ id: string;
7065
+ createdAt: string;
7066
7066
  enabled: boolean;
7067
7067
  baseUrl: string;
7068
7068
  apiUrl: string;
7069
7069
  oauthServerId: string | null;
7070
7070
  }, {
7071
- id: string;
7072
7071
  type: string;
7073
- createdAt: string | Date;
7074
7072
  updatedAt: string | Date;
7075
7073
  name: string;
7074
+ id: string;
7075
+ createdAt: string | Date;
7076
7076
  enabled: boolean;
7077
7077
  baseUrl: string;
7078
7078
  apiUrl: string;
@@ -7080,6 +7080,10 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
7080
7080
  }>;
7081
7081
  type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
7082
7082
 
7083
+ /**
7084
+ * WebSocket event schemas and mappings.
7085
+ */
7086
+
7083
7087
  /**
7084
7088
  * Option schema for ask-user questions
7085
7089
  */
@@ -7087,11 +7091,11 @@ declare const AskUserOptionSchema: z.ZodObject<{
7087
7091
  label: z.ZodString;
7088
7092
  description: z.ZodString;
7089
7093
  }, "strip", z.ZodTypeAny, {
7090
- description: string;
7091
7094
  label: string;
7092
- }, {
7093
7095
  description: string;
7096
+ }, {
7094
7097
  label: string;
7098
+ description: string;
7095
7099
  }>;
7096
7100
  type AskUserOption = z.infer<typeof AskUserOptionSchema>;
7097
7101
  /**
@@ -7105,24 +7109,24 @@ declare const AskUserQuestionSchema: z.ZodObject<{
7105
7109
  label: z.ZodString;
7106
7110
  description: z.ZodString;
7107
7111
  }, "strip", z.ZodTypeAny, {
7108
- description: string;
7109
7112
  label: string;
7110
- }, {
7111
7113
  description: string;
7114
+ }, {
7112
7115
  label: string;
7116
+ description: string;
7113
7117
  }>, "many">;
7114
7118
  }, "strip", z.ZodTypeAny, {
7115
7119
  options: {
7116
- description: string;
7117
7120
  label: string;
7121
+ description: string;
7118
7122
  }[];
7119
7123
  question: string;
7120
7124
  header: string;
7121
7125
  multiSelect: boolean;
7122
7126
  }, {
7123
7127
  options: {
7124
- description: string;
7125
7128
  label: string;
7129
+ description: string;
7126
7130
  }[];
7127
7131
  question: string;
7128
7132
  header: string;
@@ -7142,24 +7146,24 @@ declare const AskUserMessageSchema: z.ZodObject<{
7142
7146
  label: z.ZodString;
7143
7147
  description: z.ZodString;
7144
7148
  }, "strip", z.ZodTypeAny, {
7145
- description: string;
7146
7149
  label: string;
7147
- }, {
7148
7150
  description: string;
7151
+ }, {
7149
7152
  label: string;
7153
+ description: string;
7150
7154
  }>, "many">;
7151
7155
  }, "strip", z.ZodTypeAny, {
7152
7156
  options: {
7153
- description: string;
7154
7157
  label: string;
7158
+ description: string;
7155
7159
  }[];
7156
7160
  question: string;
7157
7161
  header: string;
7158
7162
  multiSelect: boolean;
7159
7163
  }, {
7160
7164
  options: {
7161
- description: string;
7162
7165
  label: string;
7166
+ description: string;
7163
7167
  }[];
7164
7168
  question: string;
7165
7169
  header: string;
@@ -7169,8 +7173,8 @@ declare const AskUserMessageSchema: z.ZodObject<{
7169
7173
  type: "ask_user";
7170
7174
  questions: {
7171
7175
  options: {
7172
- description: string;
7173
7176
  label: string;
7177
+ description: string;
7174
7178
  }[];
7175
7179
  question: string;
7176
7180
  header: string;
@@ -7180,8 +7184,8 @@ declare const AskUserMessageSchema: z.ZodObject<{
7180
7184
  type: "ask_user";
7181
7185
  questions: {
7182
7186
  options: {
7183
- description: string;
7184
7187
  label: string;
7188
+ description: string;
7185
7189
  }[];
7186
7190
  question: string;
7187
7191
  header: string;
@@ -7241,14 +7245,14 @@ declare const EventAckSchema: z.ZodObject<{
7241
7245
  status: "success" | "failed";
7242
7246
  eventId: string;
7243
7247
  message?: string | undefined;
7244
- data?: any;
7245
7248
  opCode?: string | undefined;
7249
+ data?: any;
7246
7250
  }, {
7247
7251
  status: "success" | "failed";
7248
7252
  eventId: string;
7249
7253
  message?: string | undefined;
7250
- data?: any;
7251
7254
  opCode?: string | undefined;
7255
+ data?: any;
7252
7256
  }>;
7253
7257
  type EventAckData = z.infer<typeof EventAckSchema>;
7254
7258
  declare const AppAliveEventSchema: z.ZodObject<{
@@ -7282,14 +7286,14 @@ declare const MachineAliveEventSchema: z.ZodObject<{
7282
7286
  timestamp: z.ZodString;
7283
7287
  controlPort: z.ZodOptional<z.ZodNumber>;
7284
7288
  }, "strip", z.ZodTypeAny, {
7285
- machineId: string;
7286
7289
  eventId: string;
7287
7290
  timestamp: string;
7291
+ machineId: string;
7288
7292
  controlPort?: number | undefined;
7289
7293
  }, {
7290
- machineId: string;
7291
7294
  eventId: string;
7292
7295
  timestamp: string;
7296
+ machineId: string;
7293
7297
  controlPort?: number | undefined;
7294
7298
  }>;
7295
7299
  type MachineAliveEventData = z.infer<typeof MachineAliveEventSchema>;
@@ -7299,12 +7303,12 @@ declare const ShutdownMachineSchema: z.ZodObject<{
7299
7303
  machineId: z.ZodString;
7300
7304
  reason: z.ZodOptional<z.ZodString>;
7301
7305
  }, "strip", z.ZodTypeAny, {
7302
- machineId: string;
7303
7306
  eventId: string;
7307
+ machineId: string;
7304
7308
  reason?: string | undefined;
7305
7309
  }, {
7306
- machineId: string;
7307
7310
  eventId: string;
7311
+ machineId: string;
7308
7312
  reason?: string | undefined;
7309
7313
  }>;
7310
7314
  type ShutdownMachineData = z.infer<typeof ShutdownMachineSchema>;
@@ -7316,16 +7320,16 @@ declare const WorkerInitializingSchema: z.ZodObject<{
7316
7320
  timestamp: z.ZodString;
7317
7321
  cwd: z.ZodOptional<z.ZodString>;
7318
7322
  }, "strip", z.ZodTypeAny, {
7319
- machineId: string;
7320
- taskId: string;
7321
7323
  eventId: string;
7322
7324
  timestamp: string;
7323
- cwd?: string | undefined;
7324
- }, {
7325
7325
  machineId: string;
7326
7326
  taskId: string;
7327
+ cwd?: string | undefined;
7328
+ }, {
7327
7329
  eventId: string;
7328
7330
  timestamp: string;
7331
+ machineId: string;
7332
+ taskId: string;
7329
7333
  cwd?: string | undefined;
7330
7334
  }>;
7331
7335
  type WorkerInitializingEventData = z.infer<typeof WorkerInitializingSchema>;
@@ -7337,16 +7341,16 @@ declare const WorkerReadySchema: z.ZodObject<{
7337
7341
  timestamp: z.ZodString;
7338
7342
  duration: z.ZodOptional<z.ZodNumber>;
7339
7343
  }, "strip", z.ZodTypeAny, {
7340
- machineId: string;
7341
- taskId: string;
7342
7344
  eventId: string;
7343
7345
  timestamp: string;
7344
- duration?: number | undefined;
7345
- }, {
7346
7346
  machineId: string;
7347
7347
  taskId: string;
7348
+ duration?: number | undefined;
7349
+ }, {
7348
7350
  eventId: string;
7349
7351
  timestamp: string;
7352
+ machineId: string;
7353
+ taskId: string;
7350
7354
  duration?: number | undefined;
7351
7355
  }>;
7352
7356
  type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
@@ -7359,16 +7363,16 @@ declare const WorkerAliveEventSchema: z.ZodObject<{
7359
7363
  timestamp: z.ZodString;
7360
7364
  }, "strip", z.ZodTypeAny, {
7361
7365
  status: string;
7362
- machineId: string;
7363
- taskId: string;
7364
7366
  eventId: string;
7365
7367
  timestamp: string;
7366
- }, {
7367
- status: string;
7368
7368
  machineId: string;
7369
7369
  taskId: string;
7370
+ }, {
7371
+ status: string;
7370
7372
  eventId: string;
7371
7373
  timestamp: string;
7374
+ machineId: string;
7375
+ taskId: string;
7372
7376
  }>;
7373
7377
  type WorkerAliveEventData = z.infer<typeof WorkerAliveEventSchema>;
7374
7378
  declare const WorkerExitSchema: z.ZodObject<{
@@ -7379,16 +7383,16 @@ declare const WorkerExitSchema: z.ZodObject<{
7379
7383
  timestamp: z.ZodString;
7380
7384
  reason: z.ZodOptional<z.ZodString>;
7381
7385
  }, "strip", z.ZodTypeAny, {
7382
- machineId: string;
7383
- taskId: string;
7384
7386
  eventId: string;
7385
7387
  timestamp: string;
7386
- reason?: string | undefined;
7387
- }, {
7388
7388
  machineId: string;
7389
7389
  taskId: string;
7390
+ reason?: string | undefined;
7391
+ }, {
7390
7392
  eventId: string;
7391
7393
  timestamp: string;
7394
+ machineId: string;
7395
+ taskId: string;
7392
7396
  reason?: string | undefined;
7393
7397
  }>;
7394
7398
  type WorkerExitEventData = z.infer<typeof WorkerExitSchema>;
@@ -7399,17 +7403,32 @@ declare const WorkerRunningSchema: z.ZodObject<{
7399
7403
  machineId: z.ZodString;
7400
7404
  timestamp: z.ZodString;
7401
7405
  }, "strip", z.ZodTypeAny, {
7406
+ eventId: string;
7407
+ timestamp: string;
7402
7408
  machineId: string;
7403
7409
  taskId: string;
7410
+ }, {
7404
7411
  eventId: string;
7405
7412
  timestamp: string;
7406
- }, {
7407
7413
  machineId: string;
7408
7414
  taskId: string;
7415
+ }>;
7416
+ type WorkerRunningEventData = z.infer<typeof WorkerRunningSchema>;
7417
+ declare const WorkerStatusRequestSchema: z.ZodObject<{
7418
+ eventId: z.ZodString;
7419
+ } & {
7420
+ taskId: z.ZodString;
7421
+ timestamp: z.ZodString;
7422
+ }, "strip", z.ZodTypeAny, {
7423
+ eventId: string;
7424
+ timestamp: string;
7425
+ taskId: string;
7426
+ }, {
7409
7427
  eventId: string;
7410
7428
  timestamp: string;
7429
+ taskId: string;
7411
7430
  }>;
7412
- type WorkerRunningEventData = z.infer<typeof WorkerRunningSchema>;
7431
+ type WorkerStatusRequestEventData = z.infer<typeof WorkerStatusRequestSchema>;
7413
7432
  declare const baseTaskSchema: z.ZodObject<{
7414
7433
  eventId: z.ZodString;
7415
7434
  } & {
@@ -7430,41 +7449,41 @@ declare const baseTaskSchema: z.ZodObject<{
7430
7449
  repositoryId: z.ZodOptional<z.ZodString>;
7431
7450
  repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
7432
7451
  }, "strip", z.ZodTypeAny, {
7433
- userId: string;
7452
+ eventId: string;
7434
7453
  taskId: string;
7454
+ userId: string;
7435
7455
  chatId: string;
7436
7456
  agentId: string;
7437
- eventId: string;
7438
7457
  agentType: string;
7439
7458
  cwd?: string | undefined;
7440
- repositoryId?: string | undefined;
7459
+ gitUrl?: string | undefined;
7441
7460
  baseBranch?: string | undefined;
7442
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7443
7461
  dataEncryptionKey?: string | undefined;
7444
- gitUrl?: string | undefined;
7445
7462
  model?: string | undefined;
7446
7463
  fallbackModel?: string | undefined;
7447
7464
  api_base_url?: string | undefined;
7448
7465
  api_key?: string | undefined;
7449
7466
  maxTurns?: number | undefined;
7467
+ repositoryId?: string | undefined;
7468
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7450
7469
  }, {
7451
- userId: string;
7470
+ eventId: string;
7452
7471
  taskId: string;
7472
+ userId: string;
7453
7473
  chatId: string;
7454
7474
  agentId: string;
7455
- eventId: string;
7456
7475
  cwd?: string | undefined;
7457
- repositoryId?: string | undefined;
7476
+ agentType?: string | undefined;
7477
+ gitUrl?: string | undefined;
7458
7478
  baseBranch?: string | undefined;
7459
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7460
7479
  dataEncryptionKey?: string | undefined;
7461
- gitUrl?: string | undefined;
7462
- agentType?: string | undefined;
7463
7480
  model?: string | undefined;
7464
7481
  fallbackModel?: string | undefined;
7465
7482
  api_base_url?: string | undefined;
7466
7483
  api_key?: string | undefined;
7467
7484
  maxTurns?: number | undefined;
7485
+ repositoryId?: string | undefined;
7486
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7468
7487
  }>;
7469
7488
  declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
7470
7489
  eventId: z.ZodString;
@@ -7489,85 +7508,85 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
7489
7508
  message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
7490
7509
  encryptedMessage: z.ZodOptional<z.ZodString>;
7491
7510
  }, "strip", z.ZodTypeAny, {
7492
- userId: string;
7511
+ eventId: string;
7493
7512
  taskId: string;
7513
+ userId: string;
7494
7514
  chatId: string;
7495
7515
  agentId: string;
7496
- eventId: string;
7497
7516
  agentType: string;
7498
7517
  message?: SDKUserMessage | undefined;
7499
- encryptedMessage?: string | undefined;
7500
7518
  cwd?: string | undefined;
7501
- repositoryId?: string | undefined;
7519
+ gitUrl?: string | undefined;
7502
7520
  baseBranch?: string | undefined;
7503
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7504
7521
  dataEncryptionKey?: string | undefined;
7505
- gitUrl?: string | undefined;
7506
7522
  model?: string | undefined;
7507
7523
  fallbackModel?: string | undefined;
7508
7524
  api_base_url?: string | undefined;
7509
7525
  api_key?: string | undefined;
7510
7526
  maxTurns?: number | undefined;
7527
+ repositoryId?: string | undefined;
7528
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7529
+ encryptedMessage?: string | undefined;
7511
7530
  }, {
7512
- userId: string;
7531
+ eventId: string;
7513
7532
  taskId: string;
7533
+ userId: string;
7514
7534
  chatId: string;
7515
7535
  agentId: string;
7516
- eventId: string;
7517
7536
  message?: SDKUserMessage | undefined;
7518
- encryptedMessage?: string | undefined;
7519
7537
  cwd?: string | undefined;
7520
- repositoryId?: string | undefined;
7538
+ agentType?: string | undefined;
7539
+ gitUrl?: string | undefined;
7521
7540
  baseBranch?: string | undefined;
7522
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7523
7541
  dataEncryptionKey?: string | undefined;
7524
- gitUrl?: string | undefined;
7525
- agentType?: string | undefined;
7526
7542
  model?: string | undefined;
7527
7543
  fallbackModel?: string | undefined;
7528
7544
  api_base_url?: string | undefined;
7529
7545
  api_key?: string | undefined;
7530
7546
  maxTurns?: number | undefined;
7547
+ repositoryId?: string | undefined;
7548
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7549
+ encryptedMessage?: string | undefined;
7531
7550
  }>, {
7532
- userId: string;
7551
+ eventId: string;
7533
7552
  taskId: string;
7553
+ userId: string;
7534
7554
  chatId: string;
7535
7555
  agentId: string;
7536
- eventId: string;
7537
7556
  agentType: string;
7538
7557
  message?: SDKUserMessage | undefined;
7539
- encryptedMessage?: string | undefined;
7540
7558
  cwd?: string | undefined;
7541
- repositoryId?: string | undefined;
7559
+ gitUrl?: string | undefined;
7542
7560
  baseBranch?: string | undefined;
7543
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7544
7561
  dataEncryptionKey?: string | undefined;
7545
- gitUrl?: string | undefined;
7546
7562
  model?: string | undefined;
7547
7563
  fallbackModel?: string | undefined;
7548
7564
  api_base_url?: string | undefined;
7549
7565
  api_key?: string | undefined;
7550
7566
  maxTurns?: number | undefined;
7567
+ repositoryId?: string | undefined;
7568
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7569
+ encryptedMessage?: string | undefined;
7551
7570
  }, {
7552
- userId: string;
7571
+ eventId: string;
7553
7572
  taskId: string;
7573
+ userId: string;
7554
7574
  chatId: string;
7555
7575
  agentId: string;
7556
- eventId: string;
7557
7576
  message?: SDKUserMessage | undefined;
7558
- encryptedMessage?: string | undefined;
7559
7577
  cwd?: string | undefined;
7560
- repositoryId?: string | undefined;
7578
+ agentType?: string | undefined;
7579
+ gitUrl?: string | undefined;
7561
7580
  baseBranch?: string | undefined;
7562
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7563
7581
  dataEncryptionKey?: string | undefined;
7564
- gitUrl?: string | undefined;
7565
- agentType?: string | undefined;
7566
7582
  model?: string | undefined;
7567
7583
  fallbackModel?: string | undefined;
7568
7584
  api_base_url?: string | undefined;
7569
7585
  api_key?: string | undefined;
7570
7586
  maxTurns?: number | undefined;
7587
+ repositoryId?: string | undefined;
7588
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7589
+ encryptedMessage?: string | undefined;
7571
7590
  }>;
7572
7591
  type CreateTaskEventData = z.infer<typeof createTaskSchema>;
7573
7592
  declare const resumeTaskSchema: z.ZodObject<{
@@ -7596,49 +7615,49 @@ declare const resumeTaskSchema: z.ZodObject<{
7596
7615
  message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
7597
7616
  encryptedMessage: z.ZodOptional<z.ZodString>;
7598
7617
  }, "strip", z.ZodTypeAny, {
7599
- userId: string;
7618
+ eventId: string;
7600
7619
  taskId: string;
7620
+ userId: string;
7601
7621
  chatId: string;
7602
7622
  agentId: string;
7603
- agentSessionId: string;
7604
- eventId: string;
7605
7623
  agentType: string;
7624
+ agentSessionId: string;
7606
7625
  message?: SDKUserMessage | undefined;
7607
- encryptedMessage?: string | undefined;
7608
7626
  cwd?: string | undefined;
7609
- repositoryId?: string | undefined;
7627
+ gitUrl?: string | undefined;
7610
7628
  baseBranch?: string | undefined;
7611
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7612
7629
  dataEncryptionKey?: string | undefined;
7613
- gitUrl?: string | undefined;
7614
7630
  model?: string | undefined;
7615
7631
  fallbackModel?: string | undefined;
7616
7632
  api_base_url?: string | undefined;
7617
7633
  api_key?: string | undefined;
7618
7634
  maxTurns?: number | undefined;
7635
+ repositoryId?: string | undefined;
7636
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7637
+ encryptedMessage?: string | undefined;
7619
7638
  event?: string | undefined;
7620
7639
  eventData?: any;
7621
7640
  }, {
7622
- userId: string;
7641
+ eventId: string;
7623
7642
  taskId: string;
7643
+ userId: string;
7624
7644
  chatId: string;
7625
7645
  agentId: string;
7626
7646
  agentSessionId: string;
7627
- eventId: string;
7628
7647
  message?: SDKUserMessage | undefined;
7629
- encryptedMessage?: string | undefined;
7630
7648
  cwd?: string | undefined;
7631
- repositoryId?: string | undefined;
7649
+ agentType?: string | undefined;
7650
+ gitUrl?: string | undefined;
7632
7651
  baseBranch?: string | undefined;
7633
- repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7634
7652
  dataEncryptionKey?: string | undefined;
7635
- gitUrl?: string | undefined;
7636
- agentType?: string | undefined;
7637
7653
  model?: string | undefined;
7638
7654
  fallbackModel?: string | undefined;
7639
7655
  api_base_url?: string | undefined;
7640
7656
  api_key?: string | undefined;
7641
7657
  maxTurns?: number | undefined;
7658
+ repositoryId?: string | undefined;
7659
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
7660
+ encryptedMessage?: string | undefined;
7642
7661
  event?: string | undefined;
7643
7662
  eventData?: any;
7644
7663
  }>;
@@ -7652,18 +7671,18 @@ declare const cancelTaskSchema: z.ZodObject<{
7652
7671
  agentId: z.ZodString;
7653
7672
  reason: z.ZodOptional<z.ZodString>;
7654
7673
  }, "strip", z.ZodTypeAny, {
7655
- userId: string;
7674
+ eventId: string;
7656
7675
  taskId: string;
7676
+ userId: string;
7657
7677
  chatId: string;
7658
7678
  agentId: string;
7659
- eventId: string;
7660
7679
  reason?: string | undefined;
7661
7680
  }, {
7662
- userId: string;
7681
+ eventId: string;
7663
7682
  taskId: string;
7683
+ userId: string;
7664
7684
  chatId: string;
7665
7685
  agentId: string;
7666
- eventId: string;
7667
7686
  reason?: string | undefined;
7668
7687
  }>;
7669
7688
  type CancelTaskEventData = z.infer<typeof cancelTaskSchema>;
@@ -7673,12 +7692,12 @@ declare const StopTaskSchema: z.ZodObject<{
7673
7692
  taskId: z.ZodString;
7674
7693
  reason: z.ZodOptional<z.ZodString>;
7675
7694
  }, "strip", z.ZodTypeAny, {
7676
- taskId: string;
7677
7695
  eventId: string;
7696
+ taskId: string;
7678
7697
  reason?: string | undefined;
7679
7698
  }, {
7680
- taskId: string;
7681
7699
  eventId: string;
7700
+ taskId: string;
7682
7701
  reason?: string | undefined;
7683
7702
  }>;
7684
7703
  type StopTaskEventData = z.infer<typeof StopTaskSchema>;
@@ -7691,33 +7710,33 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
7691
7710
  message: z.ZodOptional<z.ZodType<TaskMessagePayload, z.ZodTypeDef, TaskMessagePayload>>;
7692
7711
  encryptedMessage: z.ZodOptional<z.ZodString>;
7693
7712
  }, "strip", z.ZodTypeAny, {
7694
- taskId: string;
7695
7713
  eventId: string;
7696
- from: "machine" | "app" | "api-server" | "worker";
7714
+ taskId: string;
7715
+ from: "app" | "api-server" | "machine" | "worker";
7697
7716
  message?: TaskMessagePayload | undefined;
7698
- encryptedMessage?: string | undefined;
7699
7717
  opCode?: string | undefined;
7718
+ encryptedMessage?: string | undefined;
7700
7719
  }, {
7701
- taskId: string;
7702
7720
  eventId: string;
7703
- from: "machine" | "app" | "api-server" | "worker";
7721
+ taskId: string;
7722
+ from: "app" | "api-server" | "machine" | "worker";
7704
7723
  message?: TaskMessagePayload | undefined;
7705
- encryptedMessage?: string | undefined;
7706
7724
  opCode?: string | undefined;
7725
+ encryptedMessage?: string | undefined;
7707
7726
  }>, {
7708
- taskId: string;
7709
7727
  eventId: string;
7710
- from: "machine" | "app" | "api-server" | "worker";
7728
+ taskId: string;
7729
+ from: "app" | "api-server" | "machine" | "worker";
7711
7730
  message?: TaskMessagePayload | undefined;
7712
- encryptedMessage?: string | undefined;
7713
7731
  opCode?: string | undefined;
7732
+ encryptedMessage?: string | undefined;
7714
7733
  }, {
7715
- taskId: string;
7716
7734
  eventId: string;
7717
- from: "machine" | "app" | "api-server" | "worker";
7735
+ taskId: string;
7736
+ from: "app" | "api-server" | "machine" | "worker";
7718
7737
  message?: TaskMessagePayload | undefined;
7719
- encryptedMessage?: string | undefined;
7720
7738
  opCode?: string | undefined;
7739
+ encryptedMessage?: string | undefined;
7721
7740
  }>;
7722
7741
  type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
7723
7742
  /**
@@ -7764,9 +7783,9 @@ declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
7764
7783
  }[];
7765
7784
  }>;
7766
7785
  }, "strip", z.ZodTypeAny, {
7767
- taskId: string;
7768
7786
  eventId: string;
7769
7787
  timestamp: string;
7788
+ taskId: string;
7770
7789
  commitHash: string;
7771
7790
  stats: {
7772
7791
  totalInsertions: number;
@@ -7778,9 +7797,9 @@ declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
7778
7797
  }[];
7779
7798
  };
7780
7799
  }, {
7781
- taskId: string;
7782
7800
  eventId: string;
7783
7801
  timestamp: string;
7802
+ taskId: string;
7784
7803
  commitHash: string;
7785
7804
  stats: {
7786
7805
  totalInsertions: number;
@@ -7799,13 +7818,13 @@ declare const ChangeTaskTitleEventSchema: z.ZodObject<{
7799
7818
  taskId: z.ZodString;
7800
7819
  title: z.ZodString;
7801
7820
  }, "strip", z.ZodTypeAny, {
7821
+ eventId: string;
7802
7822
  taskId: string;
7803
7823
  title: string;
7804
- eventId: string;
7805
7824
  }, {
7825
+ eventId: string;
7806
7826
  taskId: string;
7807
7827
  title: string;
7808
- eventId: string;
7809
7828
  }>;
7810
7829
  type ChangeTaskTitleEventData = z.infer<typeof ChangeTaskTitleEventSchema>;
7811
7830
  declare const TaskStateChangeEventSchema: z.ZodObject<{
@@ -7816,17 +7835,17 @@ declare const TaskStateChangeEventSchema: z.ZodObject<{
7816
7835
  state: z.ZodString;
7817
7836
  updatedAt: z.ZodString;
7818
7837
  }, "strip", z.ZodTypeAny, {
7819
- state: string;
7838
+ eventId: string;
7820
7839
  taskId: string;
7821
7840
  chatId: string;
7841
+ state: string;
7822
7842
  updatedAt: string;
7823
- eventId: string;
7824
7843
  }, {
7825
- state: string;
7844
+ eventId: string;
7826
7845
  taskId: string;
7827
7846
  chatId: string;
7847
+ state: string;
7828
7848
  updatedAt: string;
7829
- eventId: string;
7830
7849
  }>;
7831
7850
  type TaskStateChangeEventData = z.infer<typeof TaskStateChangeEventSchema>;
7832
7851
  declare const CreditExhaustedEventSchema: z.ZodObject<{
@@ -7848,18 +7867,18 @@ declare const WorkspaceFileRequestSchema: z.ZodObject<{
7848
7867
  ifModifiedSince: z.ZodOptional<z.ZodString>;
7849
7868
  dataEncryptionKey: z.ZodOptional<z.ZodString>;
7850
7869
  }, "strip", z.ZodTypeAny, {
7851
- userId: string;
7852
- taskId: string;
7853
7870
  eventId: string;
7871
+ taskId: string;
7872
+ userId: string;
7854
7873
  relativePath: string;
7855
7874
  requestId: string;
7856
7875
  dataEncryptionKey?: string | undefined;
7857
7876
  maxFileSizeMB?: number | undefined;
7858
7877
  ifModifiedSince?: string | undefined;
7859
7878
  }, {
7860
- userId: string;
7861
- taskId: string;
7862
7879
  eventId: string;
7880
+ taskId: string;
7881
+ userId: string;
7863
7882
  relativePath: string;
7864
7883
  requestId: string;
7865
7884
  dataEncryptionKey?: string | undefined;
@@ -7952,20 +7971,20 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
7952
7971
  code: z.ZodString;
7953
7972
  message: z.ZodString;
7954
7973
  }, "strip", z.ZodTypeAny, {
7955
- code: string;
7956
7974
  message: string;
7957
- }, {
7958
7975
  code: string;
7976
+ }, {
7959
7977
  message: string;
7978
+ code: string;
7960
7979
  }>>;
7961
7980
  }, "strip", z.ZodTypeAny, {
7962
7981
  success: boolean;
7963
- taskId: string;
7964
7982
  eventId: string;
7983
+ taskId: string;
7965
7984
  requestId: string;
7966
7985
  error?: {
7967
- code: string;
7968
7986
  message: string;
7987
+ code: string;
7969
7988
  } | undefined;
7970
7989
  data?: {
7971
7990
  type: "directory" | "file";
@@ -7988,12 +8007,12 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
7988
8007
  notModified?: boolean | undefined;
7989
8008
  }, {
7990
8009
  success: boolean;
7991
- taskId: string;
7992
8010
  eventId: string;
8011
+ taskId: string;
7993
8012
  requestId: string;
7994
8013
  error?: {
7995
- code: string;
7996
8014
  message: string;
8015
+ code: string;
7997
8016
  } | undefined;
7998
8017
  data?: {
7999
8018
  type: "directory" | "file";
@@ -8023,14 +8042,14 @@ declare const UpdateTaskAgentSessionIdEventSchema: z.ZodObject<{
8023
8042
  agentSessionId: z.ZodString;
8024
8043
  cwd: z.ZodOptional<z.ZodString>;
8025
8044
  }, "strip", z.ZodTypeAny, {
8045
+ eventId: string;
8026
8046
  taskId: string;
8027
8047
  agentSessionId: string;
8028
- eventId: string;
8029
8048
  cwd?: string | undefined;
8030
8049
  }, {
8050
+ eventId: string;
8031
8051
  taskId: string;
8032
8052
  agentSessionId: string;
8033
- eventId: string;
8034
8053
  cwd?: string | undefined;
8035
8054
  }>;
8036
8055
  type UpdateTaskAgentSessionIdEventData = z.infer<typeof UpdateTaskAgentSessionIdEventSchema>;
@@ -8039,20 +8058,20 @@ declare const TaskInfoUpdateEventDataSchema: z.ZodObject<{
8039
8058
  } & {
8040
8059
  taskId: z.ZodString;
8041
8060
  chatId: z.ZodString;
8042
- updates: z.ZodRecord<z.ZodString, z.ZodAny>;
8061
+ updates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8043
8062
  updatedAt: z.ZodString;
8044
8063
  }, "strip", z.ZodTypeAny, {
8064
+ eventId: string;
8045
8065
  taskId: string;
8046
8066
  chatId: string;
8047
8067
  updatedAt: string;
8048
- eventId: string;
8049
- updates: Record<string, any>;
8068
+ updates?: Record<string, any> | undefined;
8050
8069
  }, {
8070
+ eventId: string;
8051
8071
  taskId: string;
8052
8072
  chatId: string;
8053
8073
  updatedAt: string;
8054
- eventId: string;
8055
- updates: Record<string, any>;
8074
+ updates?: Record<string, any> | undefined;
8056
8075
  }>;
8057
8076
  type TaskInfoUpdateEventData = z.infer<typeof TaskInfoUpdateEventDataSchema>;
8058
8077
  declare const MergeRequestEventSchema: z.ZodObject<{
@@ -8062,13 +8081,13 @@ declare const MergeRequestEventSchema: z.ZodObject<{
8062
8081
  summary: z.ZodString;
8063
8082
  description: z.ZodOptional<z.ZodString>;
8064
8083
  }, "strip", z.ZodTypeAny, {
8065
- taskId: string;
8066
8084
  eventId: string;
8085
+ taskId: string;
8067
8086
  summary: string;
8068
8087
  description?: string | undefined;
8069
8088
  }, {
8070
- taskId: string;
8071
8089
  eventId: string;
8090
+ taskId: string;
8072
8091
  summary: string;
8073
8092
  description?: string | undefined;
8074
8093
  }>;
@@ -8079,12 +8098,12 @@ declare const MergePullRequestEventSchema: z.ZodObject<{
8079
8098
  taskId: z.ZodString;
8080
8099
  mergeMethod: z.ZodDefault<z.ZodOptional<z.ZodEnum<["merge", "squash", "rebase"]>>>;
8081
8100
  }, "strip", z.ZodTypeAny, {
8082
- taskId: string;
8083
8101
  eventId: string;
8102
+ taskId: string;
8084
8103
  mergeMethod: "merge" | "squash" | "rebase";
8085
8104
  }, {
8086
- taskId: string;
8087
8105
  eventId: string;
8106
+ taskId: string;
8088
8107
  mergeMethod?: "merge" | "squash" | "rebase" | undefined;
8089
8108
  }>;
8090
8109
  type MergePullRequestEventData = z.infer<typeof MergePullRequestEventSchema>;
@@ -8106,17 +8125,17 @@ declare const AssociateRepoEventDataSchema: z.ZodObject<{
8106
8125
  repo: z.ZodString;
8107
8126
  remoteUrl: z.ZodString;
8108
8127
  }, "strip", z.ZodTypeAny, {
8109
- taskId: string;
8110
- owner: string;
8111
8128
  eventId: string;
8129
+ taskId: string;
8112
8130
  gitServerHost: string;
8131
+ owner: string;
8113
8132
  repo: string;
8114
8133
  remoteUrl: string;
8115
8134
  }, {
8116
- taskId: string;
8117
- owner: string;
8118
8135
  eventId: string;
8136
+ taskId: string;
8119
8137
  gitServerHost: string;
8138
+ owner: string;
8120
8139
  repo: string;
8121
8140
  remoteUrl: string;
8122
8141
  }>;
@@ -8174,17 +8193,17 @@ declare const SystemMessageSchema: z.ZodObject<{
8174
8193
  createdAt: z.ZodString;
8175
8194
  updatedAt: z.ZodString;
8176
8195
  }, "strip", z.ZodTypeAny, {
8177
- id: string;
8178
8196
  type: "direct" | "group";
8179
- createdAt: string;
8180
8197
  updatedAt: string;
8181
8198
  owner: string;
8182
- }, {
8183
8199
  id: string;
8184
- type: "direct" | "group";
8185
8200
  createdAt: string;
8201
+ }, {
8202
+ type: "direct" | "group";
8186
8203
  updatedAt: string;
8187
8204
  owner: string;
8205
+ id: string;
8206
+ createdAt: string;
8188
8207
  }>, z.ZodArray<z.ZodObject<{
8189
8208
  id: z.ZodString;
8190
8209
  chatId: z.ZodString;
@@ -8194,19 +8213,19 @@ declare const SystemMessageSchema: z.ZodObject<{
8194
8213
  createdAt: z.ZodString;
8195
8214
  updatedAt: z.ZodString;
8196
8215
  }, "strip", z.ZodTypeAny, {
8197
- id: string;
8198
8216
  type: "human" | "agent";
8199
- createdAt: string;
8200
8217
  chatId: string;
8201
8218
  updatedAt: string;
8219
+ id: string;
8220
+ createdAt: string;
8202
8221
  memberCode: string;
8203
8222
  role: string;
8204
8223
  }, {
8205
- id: string;
8206
8224
  type: "human" | "agent";
8207
- createdAt: string;
8208
8225
  chatId: string;
8209
8226
  updatedAt: string;
8227
+ id: string;
8228
+ createdAt: string;
8210
8229
  memberCode: string;
8211
8230
  role: string;
8212
8231
  }>, "many">, z.ZodArray<z.ZodObject<{
@@ -8228,28 +8247,28 @@ declare const SystemMessageSchema: z.ZodObject<{
8228
8247
  updatedAt: z.ZodString;
8229
8248
  gitServerId: z.ZodString;
8230
8249
  }, "strip", z.ZodTypeAny, {
8231
- id: string;
8232
- createdAt: string;
8250
+ description: string | null;
8233
8251
  updatedAt: string;
8234
8252
  name: string;
8235
- description: string | null;
8236
8253
  owner: string;
8237
- url: string;
8254
+ id: string;
8255
+ createdAt: string;
8238
8256
  fullName: string;
8239
8257
  defaultBranch: string;
8240
8258
  isPrivate: boolean;
8259
+ url: string;
8241
8260
  gitServerId: string;
8242
8261
  }, {
8243
- id: string;
8244
- createdAt: string;
8262
+ description: string | null;
8245
8263
  updatedAt: string;
8246
8264
  name: string;
8247
- description: string | null;
8248
8265
  owner: string;
8249
- url: string;
8266
+ id: string;
8267
+ createdAt: string;
8250
8268
  fullName: string;
8251
8269
  defaultBranch: string;
8252
8270
  isPrivate: boolean;
8271
+ url: string;
8253
8272
  gitServerId: string;
8254
8273
  }>, z.ZodObject<{
8255
8274
  taskId: z.ZodString;
@@ -8276,37 +8295,38 @@ declare const SystemMessageSchema: z.ZodObject<{
8276
8295
  timestamp: z.ZodString;
8277
8296
  }, "strip", z.ZodTypeAny, {
8278
8297
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
8298
+ eventId: string;
8279
8299
  data: {
8280
8300
  id: string;
8301
+ } | {
8281
8302
  type: "direct" | "group";
8282
- createdAt: string;
8283
8303
  updatedAt: string;
8284
8304
  owner: string;
8285
- } | {
8286
8305
  id: string;
8287
- type: "human" | "agent";
8288
8306
  createdAt: string;
8307
+ } | {
8308
+ type: "human" | "agent";
8289
8309
  chatId: string;
8290
8310
  updatedAt: string;
8311
+ id: string;
8312
+ createdAt: string;
8291
8313
  memberCode: string;
8292
8314
  role: string;
8293
8315
  }[] | {
8294
8316
  id: string;
8295
- createdAt: string;
8317
+ }[] | {
8318
+ description: string | null;
8296
8319
  updatedAt: string;
8297
8320
  name: string;
8298
- description: string | null;
8299
8321
  owner: string;
8300
- url: string;
8322
+ id: string;
8323
+ createdAt: string;
8301
8324
  fullName: string;
8302
8325
  defaultBranch: string;
8303
8326
  isPrivate: boolean;
8327
+ url: string;
8304
8328
  gitServerId: string;
8305
8329
  } | {
8306
- id: string;
8307
- } | {
8308
- id: string;
8309
- }[] | {
8310
8330
  taskId: string;
8311
8331
  pullRequestNumber: number;
8312
8332
  pullRequestUrl: string;
@@ -8314,41 +8334,41 @@ declare const SystemMessageSchema: z.ZodObject<{
8314
8334
  newState: "open" | "closed" | "merged";
8315
8335
  changedAt: string;
8316
8336
  };
8317
- eventId: string;
8318
8337
  timestamp: string;
8319
8338
  }, {
8320
8339
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
8340
+ eventId: string;
8321
8341
  data: {
8322
8342
  id: string;
8343
+ } | {
8323
8344
  type: "direct" | "group";
8324
- createdAt: string;
8325
8345
  updatedAt: string;
8326
8346
  owner: string;
8327
- } | {
8328
8347
  id: string;
8329
- type: "human" | "agent";
8330
8348
  createdAt: string;
8349
+ } | {
8350
+ type: "human" | "agent";
8331
8351
  chatId: string;
8332
8352
  updatedAt: string;
8353
+ id: string;
8354
+ createdAt: string;
8333
8355
  memberCode: string;
8334
8356
  role: string;
8335
8357
  }[] | {
8336
8358
  id: string;
8337
- createdAt: string;
8359
+ }[] | {
8360
+ description: string | null;
8338
8361
  updatedAt: string;
8339
8362
  name: string;
8340
- description: string | null;
8341
8363
  owner: string;
8342
- url: string;
8364
+ id: string;
8365
+ createdAt: string;
8343
8366
  fullName: string;
8344
8367
  defaultBranch: string;
8345
8368
  isPrivate: boolean;
8369
+ url: string;
8346
8370
  gitServerId: string;
8347
8371
  } | {
8348
- id: string;
8349
- } | {
8350
- id: string;
8351
- }[] | {
8352
8372
  taskId: string;
8353
8373
  pullRequestNumber: number;
8354
8374
  pullRequestUrl: string;
@@ -8356,11 +8376,10 @@ declare const SystemMessageSchema: z.ZodObject<{
8356
8376
  newState: "open" | "closed" | "merged";
8357
8377
  changedAt: string;
8358
8378
  };
8359
- eventId: string;
8360
8379
  timestamp: string;
8361
8380
  }>;
8362
8381
  type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
8363
- type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
8382
+ type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
8364
8383
  type EventMap = {
8365
8384
  "app-alive": AppAliveEventData;
8366
8385
  "api-server-alive": ApiServerAliveEventData;
@@ -8370,6 +8389,7 @@ type EventMap = {
8370
8389
  "worker-alive": WorkerAliveEventData;
8371
8390
  "worker-exit": WorkerExitEventData;
8372
8391
  "worker-running": WorkerRunningEventData;
8392
+ "worker-status-request": WorkerStatusRequestEventData;
8373
8393
  "create-task": CreateTaskEventData;
8374
8394
  "resume-task": ResumeTaskEventData;
8375
8395
  "cancel-task": CancelTaskEventData;
@@ -8464,6 +8484,7 @@ interface ClaudeAgentConfig {
8464
8484
  path: string;
8465
8485
  mode?: 'append' | 'replace';
8466
8486
  };
8487
+ sdkMcpTools?: string[];
8467
8488
  }
8468
8489
  /**
8469
8490
  * Complete agent configuration after loading
@@ -8593,6 +8614,7 @@ declare const ClaudeConfigSchema: z.ZodObject<{
8593
8614
  path: string;
8594
8615
  mode?: "append" | "replace" | undefined;
8595
8616
  }>>;
8617
+ sdkMcpTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8596
8618
  }, "strip", z.ZodTypeAny, {
8597
8619
  model?: string | undefined;
8598
8620
  fallbackModel?: string | undefined;
@@ -8610,6 +8632,7 @@ declare const ClaudeConfigSchema: z.ZodObject<{
8610
8632
  path: string;
8611
8633
  mode: "append" | "replace";
8612
8634
  } | undefined;
8635
+ sdkMcpTools?: string[] | undefined;
8613
8636
  }, {
8614
8637
  model?: string | undefined;
8615
8638
  fallbackModel?: string | undefined;
@@ -8627,6 +8650,7 @@ declare const ClaudeConfigSchema: z.ZodObject<{
8627
8650
  path: string;
8628
8651
  mode?: "append" | "replace" | undefined;
8629
8652
  } | undefined;
8653
+ sdkMcpTools?: string[] | undefined;
8630
8654
  }>;
8631
8655
 
8632
8656
  /**
@@ -8768,5 +8792,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
8768
8792
  */
8769
8793
  declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
8770
8794
 
8771
- export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
8772
- export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
8795
+ export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
8796
+ export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };