@agentrix/shared 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -36,13 +36,13 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) =
36
36
  items: z.ZodArray<T, "many">;
37
37
  }, "strip", z.ZodTypeAny, {
38
38
  limit: number;
39
- page: number;
40
39
  total: number;
40
+ page: number;
41
41
  items: T["_output"][];
42
42
  }, {
43
43
  limit: number;
44
- page: number;
45
44
  total: number;
45
+ page: number;
46
46
  items: T["_input"][];
47
47
  }>;
48
48
  /**
@@ -192,20 +192,20 @@ declare const SignatureAuthRequestSchema: z.ZodObject<{
192
192
  publicKey: z.ZodString;
193
193
  challenge: z.ZodString;
194
194
  signature: z.ZodString;
195
- salt: z.ZodString;
196
- encryptedSecret: z.ZodString;
195
+ salt: z.ZodOptional<z.ZodString>;
196
+ encryptedSecret: z.ZodOptional<z.ZodString>;
197
197
  }, "strip", z.ZodTypeAny, {
198
198
  publicKey: string;
199
199
  challenge: string;
200
200
  signature: string;
201
- salt: string;
202
- encryptedSecret: string;
201
+ salt?: string | undefined;
202
+ encryptedSecret?: string | undefined;
203
203
  }, {
204
204
  publicKey: string;
205
205
  challenge: string;
206
206
  signature: string;
207
- salt: string;
208
- encryptedSecret: string;
207
+ salt?: string | undefined;
208
+ encryptedSecret?: string | undefined;
209
209
  }>;
210
210
  type SignatureAuthRequest = z.infer<typeof SignatureAuthRequestSchema>;
211
211
  /**
@@ -257,8 +257,8 @@ declare const UserProfileResponseSchema: z.ZodObject<{
257
257
  email: z.ZodNullable<z.ZodString>;
258
258
  avatar: z.ZodNullable<z.ZodString>;
259
259
  } & {
260
- encryptedSecret: z.ZodString;
261
- secretSalt: z.ZodString;
260
+ encryptedSecret: z.ZodNullable<z.ZodString>;
261
+ secretSalt: z.ZodNullable<z.ZodString>;
262
262
  createdAt: z.ZodString;
263
263
  oauthAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
264
264
  provider: z.ZodString;
@@ -277,12 +277,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
277
277
  avatarUrl: string;
278
278
  }>, "many">>;
279
279
  }, "strip", z.ZodTypeAny, {
280
+ encryptedSecret: string | null;
280
281
  id: string;
281
282
  username: string;
282
283
  email: string | null;
283
284
  avatar: string | null;
284
- encryptedSecret: string;
285
- secretSalt: string;
285
+ secretSalt: string | null;
286
286
  createdAt: string;
287
287
  oauthAccounts?: {
288
288
  username: string;
@@ -291,12 +291,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
291
291
  avatarUrl: string;
292
292
  }[] | undefined;
293
293
  }, {
294
+ encryptedSecret: string | null;
294
295
  id: string;
295
296
  username: string;
296
297
  email: string | null;
297
298
  avatar: string | null;
298
- encryptedSecret: string;
299
- secretSalt: string;
299
+ secretSalt: string | null;
300
300
  createdAt: string;
301
301
  oauthAccounts?: {
302
302
  username: string;
@@ -307,12 +307,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
307
307
  }>;
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  user: {
310
+ encryptedSecret: string | null;
310
311
  id: string;
311
312
  username: string;
312
313
  email: string | null;
313
314
  avatar: string | null;
314
- encryptedSecret: string;
315
- secretSalt: string;
315
+ secretSalt: string | null;
316
316
  createdAt: string;
317
317
  oauthAccounts?: {
318
318
  username: string;
@@ -323,12 +323,12 @@ declare const UserProfileResponseSchema: z.ZodObject<{
323
323
  };
324
324
  }, {
325
325
  user: {
326
+ encryptedSecret: string | null;
326
327
  id: string;
327
328
  username: string;
328
329
  email: string | null;
329
330
  avatar: string | null;
330
- encryptedSecret: string;
331
- secretSalt: string;
331
+ secretSalt: string | null;
332
332
  createdAt: string;
333
333
  oauthAccounts?: {
334
334
  username: string;
@@ -403,21 +403,21 @@ declare const OAuthLoginQuerySchema: z.ZodObject<{
403
403
  signature: z.ZodString;
404
404
  challenge: z.ZodString;
405
405
  signatureProof: z.ZodString;
406
- salt: z.ZodString;
407
- encryptedSecret: z.ZodString;
406
+ salt: z.ZodOptional<z.ZodString>;
407
+ encryptedSecret: z.ZodOptional<z.ZodString>;
408
408
  }, "strip", z.ZodTypeAny, {
409
409
  challenge: string;
410
410
  signature: string;
411
- salt: string;
412
- encryptedSecret: string;
413
411
  signatureProof: string;
412
+ salt?: string | undefined;
413
+ encryptedSecret?: string | undefined;
414
414
  redirect?: string | undefined;
415
415
  }, {
416
416
  challenge: string;
417
417
  signature: string;
418
- salt: string;
419
- encryptedSecret: string;
420
418
  signatureProof: string;
419
+ salt?: string | undefined;
420
+ encryptedSecret?: string | undefined;
421
421
  redirect?: string | undefined;
422
422
  }>;
423
423
  type OAuthLoginQuery = z.infer<typeof OAuthLoginQuerySchema>;
@@ -599,13 +599,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
599
599
  token: z.ZodString;
600
600
  content: z.ZodString;
601
601
  }, "strip", z.ZodTypeAny, {
602
- id: string;
603
602
  token: string;
603
+ id: string;
604
604
  state: "authorized";
605
605
  content: string;
606
606
  }, {
607
- id: string;
608
607
  token: string;
608
+ id: string;
609
609
  state: "authorized";
610
610
  content: string;
611
611
  }>;
@@ -714,6 +714,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
714
714
  cloudId: z.ZodOptional<z.ZodString>;
715
715
  repositoryId: z.ZodOptional<z.ZodString>;
716
716
  baseBranch: z.ZodOptional<z.ZodString>;
717
+ repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
717
718
  dataEncryptionKey: z.ZodOptional<z.ZodString>;
718
719
  }, "strip", z.ZodTypeAny, {
719
720
  chatId: string;
@@ -724,6 +725,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
724
725
  cwd?: string | undefined;
725
726
  repositoryId?: string | undefined;
726
727
  baseBranch?: string | undefined;
728
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
727
729
  dataEncryptionKey?: string | undefined;
728
730
  }, {
729
731
  chatId: string;
@@ -734,6 +736,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
734
736
  cwd?: string | undefined;
735
737
  repositoryId?: string | undefined;
736
738
  baseBranch?: string | undefined;
739
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
737
740
  dataEncryptionKey?: string | undefined;
738
741
  }>, {
739
742
  chatId: string;
@@ -744,6 +747,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
744
747
  cwd?: string | undefined;
745
748
  repositoryId?: string | undefined;
746
749
  baseBranch?: string | undefined;
750
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
747
751
  dataEncryptionKey?: string | undefined;
748
752
  }, {
749
753
  chatId: string;
@@ -754,6 +758,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
754
758
  cwd?: string | undefined;
755
759
  repositoryId?: string | undefined;
756
760
  baseBranch?: string | undefined;
761
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
757
762
  dataEncryptionKey?: string | undefined;
758
763
  }>, {
759
764
  chatId: string;
@@ -764,6 +769,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
764
769
  cwd?: string | undefined;
765
770
  repositoryId?: string | undefined;
766
771
  baseBranch?: string | undefined;
772
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
767
773
  dataEncryptionKey?: string | undefined;
768
774
  }, {
769
775
  chatId: string;
@@ -774,6 +780,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
774
780
  cwd?: string | undefined;
775
781
  repositoryId?: string | undefined;
776
782
  baseBranch?: string | undefined;
783
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
777
784
  dataEncryptionKey?: string | undefined;
778
785
  }>;
779
786
  type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
@@ -786,6 +793,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
786
793
  cloudId: z.ZodOptional<z.ZodString>;
787
794
  repositoryId: z.ZodOptional<z.ZodString>;
788
795
  baseBranch: z.ZodOptional<z.ZodString>;
796
+ repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
789
797
  dataEncryptionKey: z.ZodOptional<z.ZodString>;
790
798
  }, "strip", z.ZodTypeAny, {
791
799
  chatId: string;
@@ -796,6 +804,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
796
804
  cwd?: string | undefined;
797
805
  repositoryId?: string | undefined;
798
806
  baseBranch?: string | undefined;
807
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
799
808
  dataEncryptionKey?: string | undefined;
800
809
  }, {
801
810
  chatId: string;
@@ -806,6 +815,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
806
815
  cwd?: string | undefined;
807
816
  repositoryId?: string | undefined;
808
817
  baseBranch?: string | undefined;
818
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
809
819
  dataEncryptionKey?: string | undefined;
810
820
  }>, {
811
821
  chatId: string;
@@ -816,6 +826,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
816
826
  cwd?: string | undefined;
817
827
  repositoryId?: string | undefined;
818
828
  baseBranch?: string | undefined;
829
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
819
830
  dataEncryptionKey?: string | undefined;
820
831
  }, {
821
832
  chatId: string;
@@ -826,6 +837,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
826
837
  cwd?: string | undefined;
827
838
  repositoryId?: string | undefined;
828
839
  baseBranch?: string | undefined;
840
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
829
841
  dataEncryptionKey?: string | undefined;
830
842
  }>, {
831
843
  chatId: string;
@@ -836,6 +848,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
836
848
  cwd?: string | undefined;
837
849
  repositoryId?: string | undefined;
838
850
  baseBranch?: string | undefined;
851
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
839
852
  dataEncryptionKey?: string | undefined;
840
853
  }, {
841
854
  chatId: string;
@@ -846,6 +859,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
846
859
  cwd?: string | undefined;
847
860
  repositoryId?: string | undefined;
848
861
  baseBranch?: string | undefined;
862
+ repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
849
863
  dataEncryptionKey?: string | undefined;
850
864
  }>;
851
865
  /**
@@ -909,6 +923,7 @@ declare const TaskItemSchema: z.ZodObject<{
909
923
  agentSessionId: z.ZodNullable<z.ZodString>;
910
924
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
911
925
  cwd: z.ZodNullable<z.ZodString>;
926
+ repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
912
927
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
913
928
  pullRequestUrl: z.ZodNullable<z.ZodString>;
914
929
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -946,6 +961,7 @@ declare const TaskItemSchema: z.ZodObject<{
946
961
  deletions: number;
947
962
  }[];
948
963
  }>>;
964
+ totalDuration: z.ZodNullable<z.ZodNumber>;
949
965
  createdAt: z.ZodString;
950
966
  updatedAt: z.ZodString;
951
967
  }, "strip", z.ZodTypeAny, {
@@ -959,6 +975,7 @@ declare const TaskItemSchema: z.ZodObject<{
959
975
  cwd: string | null;
960
976
  repositoryId: string | null;
961
977
  baseBranch: string | null;
978
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
962
979
  dataEncryptionKey: string | null;
963
980
  agentId: string;
964
981
  title: string | null;
@@ -977,6 +994,7 @@ declare const TaskItemSchema: z.ZodObject<{
977
994
  deletions: number;
978
995
  }[];
979
996
  } | null;
997
+ totalDuration: number | null;
980
998
  }, {
981
999
  id: string;
982
1000
  createdAt: string;
@@ -988,6 +1006,7 @@ declare const TaskItemSchema: z.ZodObject<{
988
1006
  cwd: string | null;
989
1007
  repositoryId: string | null;
990
1008
  baseBranch: string | null;
1009
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
991
1010
  dataEncryptionKey: string | null;
992
1011
  agentId: string;
993
1012
  title: string | null;
@@ -1006,6 +1025,7 @@ declare const TaskItemSchema: z.ZodObject<{
1006
1025
  deletions: number;
1007
1026
  }[];
1008
1027
  } | null;
1028
+ totalDuration: number | null;
1009
1029
  }>;
1010
1030
  type TaskItem = z.infer<typeof TaskItemSchema>;
1011
1031
  /**
@@ -1046,6 +1066,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1046
1066
  agentSessionId: z.ZodNullable<z.ZodString>;
1047
1067
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
1048
1068
  cwd: z.ZodNullable<z.ZodString>;
1069
+ repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
1049
1070
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1050
1071
  pullRequestUrl: z.ZodNullable<z.ZodString>;
1051
1072
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -1083,6 +1104,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1083
1104
  deletions: number;
1084
1105
  }[];
1085
1106
  }>>;
1107
+ totalDuration: z.ZodNullable<z.ZodNumber>;
1086
1108
  createdAt: z.ZodString;
1087
1109
  updatedAt: z.ZodString;
1088
1110
  }, "strip", z.ZodTypeAny, {
@@ -1096,6 +1118,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1096
1118
  cwd: string | null;
1097
1119
  repositoryId: string | null;
1098
1120
  baseBranch: string | null;
1121
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1099
1122
  dataEncryptionKey: string | null;
1100
1123
  agentId: string;
1101
1124
  title: string | null;
@@ -1114,6 +1137,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1114
1137
  deletions: number;
1115
1138
  }[];
1116
1139
  } | null;
1140
+ totalDuration: number | null;
1117
1141
  }, {
1118
1142
  id: string;
1119
1143
  createdAt: string;
@@ -1125,6 +1149,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1125
1149
  cwd: string | null;
1126
1150
  repositoryId: string | null;
1127
1151
  baseBranch: string | null;
1152
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1128
1153
  dataEncryptionKey: string | null;
1129
1154
  agentId: string;
1130
1155
  title: string | null;
@@ -1143,6 +1168,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1143
1168
  deletions: number;
1144
1169
  }[];
1145
1170
  } | null;
1171
+ totalDuration: number | null;
1146
1172
  }>, "many">;
1147
1173
  nextCursor: z.ZodNullable<z.ZodString>;
1148
1174
  hasMore: z.ZodBoolean;
@@ -1158,6 +1184,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1158
1184
  cwd: string | null;
1159
1185
  repositoryId: string | null;
1160
1186
  baseBranch: string | null;
1187
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1161
1188
  dataEncryptionKey: string | null;
1162
1189
  agentId: string;
1163
1190
  title: string | null;
@@ -1176,6 +1203,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1176
1203
  deletions: number;
1177
1204
  }[];
1178
1205
  } | null;
1206
+ totalDuration: number | null;
1179
1207
  }[];
1180
1208
  nextCursor: string | null;
1181
1209
  hasMore: boolean;
@@ -1191,6 +1219,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1191
1219
  cwd: string | null;
1192
1220
  repositoryId: string | null;
1193
1221
  baseBranch: string | null;
1222
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1194
1223
  dataEncryptionKey: string | null;
1195
1224
  agentId: string;
1196
1225
  title: string | null;
@@ -1209,6 +1238,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1209
1238
  deletions: number;
1210
1239
  }[];
1211
1240
  } | null;
1241
+ totalDuration: number | null;
1212
1242
  }[];
1213
1243
  nextCursor: string | null;
1214
1244
  hasMore: boolean;
@@ -1401,12 +1431,12 @@ declare const ProjectEntrySchema: z.ZodObject<{
1401
1431
  size: z.ZodNumber;
1402
1432
  modifiedAt: z.ZodString;
1403
1433
  }, "strip", z.ZodTypeAny, {
1404
- type: "file" | "directory";
1434
+ type: "directory" | "file";
1405
1435
  name: string;
1406
1436
  size: number;
1407
1437
  modifiedAt: string;
1408
1438
  }, {
1409
- type: "file" | "directory";
1439
+ type: "directory" | "file";
1410
1440
  name: string;
1411
1441
  size: number;
1412
1442
  modifiedAt: string;
@@ -1424,12 +1454,12 @@ declare const ProjectDirectoryResponseSchema: z.ZodObject<{
1424
1454
  size: z.ZodNumber;
1425
1455
  modifiedAt: z.ZodString;
1426
1456
  }, "strip", z.ZodTypeAny, {
1427
- type: "file" | "directory";
1457
+ type: "directory" | "file";
1428
1458
  name: string;
1429
1459
  size: number;
1430
1460
  modifiedAt: string;
1431
1461
  }, {
1432
- type: "file" | "directory";
1462
+ type: "directory" | "file";
1433
1463
  name: string;
1434
1464
  size: number;
1435
1465
  modifiedAt: string;
@@ -1439,7 +1469,7 @@ declare const ProjectDirectoryResponseSchema: z.ZodObject<{
1439
1469
  path: string;
1440
1470
  type: "directory";
1441
1471
  entries: {
1442
- type: "file" | "directory";
1472
+ type: "directory" | "file";
1443
1473
  name: string;
1444
1474
  size: number;
1445
1475
  modifiedAt: string;
@@ -1449,7 +1479,7 @@ declare const ProjectDirectoryResponseSchema: z.ZodObject<{
1449
1479
  path: string;
1450
1480
  type: "directory";
1451
1481
  entries: {
1452
- type: "file" | "directory";
1482
+ type: "directory" | "file";
1453
1483
  name: string;
1454
1484
  size: number;
1455
1485
  modifiedAt: string;
@@ -1594,6 +1624,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1594
1624
  agentSessionId: z.ZodNullable<z.ZodString>;
1595
1625
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
1596
1626
  cwd: z.ZodNullable<z.ZodString>;
1627
+ repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
1597
1628
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1598
1629
  pullRequestUrl: z.ZodNullable<z.ZodString>;
1599
1630
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -1631,6 +1662,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1631
1662
  deletions: number;
1632
1663
  }[];
1633
1664
  }>>;
1665
+ totalDuration: z.ZodNullable<z.ZodNumber>;
1634
1666
  createdAt: z.ZodString;
1635
1667
  updatedAt: z.ZodString;
1636
1668
  }, "strip", z.ZodTypeAny, {
@@ -1644,6 +1676,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1644
1676
  cwd: string | null;
1645
1677
  repositoryId: string | null;
1646
1678
  baseBranch: string | null;
1679
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1647
1680
  dataEncryptionKey: string | null;
1648
1681
  agentId: string;
1649
1682
  title: string | null;
@@ -1662,6 +1695,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1662
1695
  deletions: number;
1663
1696
  }[];
1664
1697
  } | null;
1698
+ totalDuration: number | null;
1665
1699
  }, {
1666
1700
  id: string;
1667
1701
  createdAt: string;
@@ -1673,6 +1707,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1673
1707
  cwd: string | null;
1674
1708
  repositoryId: string | null;
1675
1709
  baseBranch: string | null;
1710
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1676
1711
  dataEncryptionKey: string | null;
1677
1712
  agentId: string;
1678
1713
  title: string | null;
@@ -1691,6 +1726,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1691
1726
  deletions: number;
1692
1727
  }[];
1693
1728
  } | null;
1729
+ totalDuration: number | null;
1694
1730
  }>;
1695
1731
  }, "strip", z.ZodTypeAny, {
1696
1732
  success: boolean;
@@ -1705,6 +1741,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1705
1741
  cwd: string | null;
1706
1742
  repositoryId: string | null;
1707
1743
  baseBranch: string | null;
1744
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1708
1745
  dataEncryptionKey: string | null;
1709
1746
  agentId: string;
1710
1747
  title: string | null;
@@ -1723,6 +1760,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1723
1760
  deletions: number;
1724
1761
  }[];
1725
1762
  } | null;
1763
+ totalDuration: number | null;
1726
1764
  };
1727
1765
  }, {
1728
1766
  success: boolean;
@@ -1737,6 +1775,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1737
1775
  cwd: string | null;
1738
1776
  repositoryId: string | null;
1739
1777
  baseBranch: string | null;
1778
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1740
1779
  dataEncryptionKey: string | null;
1741
1780
  agentId: string;
1742
1781
  title: string | null;
@@ -1755,6 +1794,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1755
1794
  deletions: number;
1756
1795
  }[];
1757
1796
  } | null;
1797
+ totalDuration: number | null;
1758
1798
  };
1759
1799
  }>;
1760
1800
  type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
@@ -1782,6 +1822,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1782
1822
  agentSessionId: z.ZodNullable<z.ZodString>;
1783
1823
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
1784
1824
  cwd: z.ZodNullable<z.ZodString>;
1825
+ repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
1785
1826
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1786
1827
  pullRequestUrl: z.ZodNullable<z.ZodString>;
1787
1828
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -1819,6 +1860,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1819
1860
  deletions: number;
1820
1861
  }[];
1821
1862
  }>>;
1863
+ totalDuration: z.ZodNullable<z.ZodNumber>;
1822
1864
  createdAt: z.ZodString;
1823
1865
  updatedAt: z.ZodString;
1824
1866
  }, "strip", z.ZodTypeAny, {
@@ -1832,6 +1874,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1832
1874
  cwd: string | null;
1833
1875
  repositoryId: string | null;
1834
1876
  baseBranch: string | null;
1877
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1835
1878
  dataEncryptionKey: string | null;
1836
1879
  agentId: string;
1837
1880
  title: string | null;
@@ -1850,6 +1893,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1850
1893
  deletions: number;
1851
1894
  }[];
1852
1895
  } | null;
1896
+ totalDuration: number | null;
1853
1897
  }, {
1854
1898
  id: string;
1855
1899
  createdAt: string;
@@ -1861,6 +1905,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1861
1905
  cwd: string | null;
1862
1906
  repositoryId: string | null;
1863
1907
  baseBranch: string | null;
1908
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1864
1909
  dataEncryptionKey: string | null;
1865
1910
  agentId: string;
1866
1911
  title: string | null;
@@ -1879,6 +1924,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1879
1924
  deletions: number;
1880
1925
  }[];
1881
1926
  } | null;
1927
+ totalDuration: number | null;
1882
1928
  }>;
1883
1929
  }, "strip", z.ZodTypeAny, {
1884
1930
  success: boolean;
@@ -1893,6 +1939,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1893
1939
  cwd: string | null;
1894
1940
  repositoryId: string | null;
1895
1941
  baseBranch: string | null;
1942
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1896
1943
  dataEncryptionKey: string | null;
1897
1944
  agentId: string;
1898
1945
  title: string | null;
@@ -1911,6 +1958,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1911
1958
  deletions: number;
1912
1959
  }[];
1913
1960
  } | null;
1961
+ totalDuration: number | null;
1914
1962
  };
1915
1963
  }, {
1916
1964
  success: boolean;
@@ -1925,6 +1973,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1925
1973
  cwd: string | null;
1926
1974
  repositoryId: string | null;
1927
1975
  baseBranch: string | null;
1976
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
1928
1977
  dataEncryptionKey: string | null;
1929
1978
  agentId: string;
1930
1979
  title: string | null;
@@ -1943,6 +1992,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1943
1992
  deletions: number;
1944
1993
  }[];
1945
1994
  } | null;
1995
+ totalDuration: number | null;
1946
1996
  };
1947
1997
  }>;
1948
1998
  type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
@@ -1964,16 +2014,16 @@ declare const ChatMemberSchema: z.ZodObject<{
1964
2014
  createdAt: z.ZodString;
1965
2015
  updatedAt: z.ZodString;
1966
2016
  }, "strip", z.ZodTypeAny, {
1967
- id: string;
1968
2017
  type: "human" | "agent";
2018
+ id: string;
1969
2019
  createdAt: string;
1970
2020
  chatId: string;
1971
2021
  updatedAt: string;
1972
2022
  memberCode: string;
1973
2023
  role: string;
1974
2024
  }, {
1975
- id: string;
1976
2025
  type: "human" | "agent";
2026
+ id: string;
1977
2027
  createdAt: string;
1978
2028
  chatId: string;
1979
2029
  updatedAt: string;
@@ -1996,14 +2046,14 @@ declare const ChatSchema: z.ZodObject<{
1996
2046
  createdAt: z.ZodString;
1997
2047
  updatedAt: z.ZodString;
1998
2048
  }, "strip", z.ZodTypeAny, {
1999
- id: string;
2000
2049
  type: "direct" | "group";
2050
+ id: string;
2001
2051
  createdAt: string;
2002
2052
  updatedAt: string;
2003
2053
  owner: string;
2004
2054
  }, {
2005
- id: string;
2006
2055
  type: "direct" | "group";
2056
+ id: string;
2007
2057
  createdAt: string;
2008
2058
  updatedAt: string;
2009
2059
  owner: string;
@@ -2028,16 +2078,16 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2028
2078
  createdAt: z.ZodString;
2029
2079
  updatedAt: z.ZodString;
2030
2080
  }, "strip", z.ZodTypeAny, {
2031
- id: string;
2032
2081
  type: "human" | "agent";
2082
+ id: string;
2033
2083
  createdAt: string;
2034
2084
  chatId: string;
2035
2085
  updatedAt: string;
2036
2086
  memberCode: string;
2037
2087
  role: string;
2038
2088
  }, {
2039
- id: string;
2040
2089
  type: "human" | "agent";
2090
+ id: string;
2041
2091
  createdAt: string;
2042
2092
  chatId: string;
2043
2093
  updatedAt: string;
@@ -2045,14 +2095,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2045
2095
  role: string;
2046
2096
  }>, "many">;
2047
2097
  }, "strip", z.ZodTypeAny, {
2048
- id: string;
2049
2098
  type: "direct" | "group";
2099
+ id: string;
2050
2100
  createdAt: string;
2051
2101
  updatedAt: string;
2052
2102
  owner: string;
2053
2103
  members: {
2054
- id: string;
2055
2104
  type: "human" | "agent";
2105
+ id: string;
2056
2106
  createdAt: string;
2057
2107
  chatId: string;
2058
2108
  updatedAt: string;
@@ -2060,14 +2110,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2060
2110
  role: string;
2061
2111
  }[];
2062
2112
  }, {
2063
- id: string;
2064
2113
  type: "direct" | "group";
2114
+ id: string;
2065
2115
  createdAt: string;
2066
2116
  updatedAt: string;
2067
2117
  owner: string;
2068
2118
  members: {
2069
- id: string;
2070
2119
  type: "human" | "agent";
2120
+ id: string;
2071
2121
  createdAt: string;
2072
2122
  chatId: string;
2073
2123
  updatedAt: string;
@@ -2138,16 +2188,16 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2138
2188
  createdAt: z.ZodString;
2139
2189
  updatedAt: z.ZodString;
2140
2190
  }, "strip", z.ZodTypeAny, {
2141
- id: string;
2142
2191
  type: "human" | "agent";
2192
+ id: string;
2143
2193
  createdAt: string;
2144
2194
  chatId: string;
2145
2195
  updatedAt: string;
2146
2196
  memberCode: string;
2147
2197
  role: string;
2148
2198
  }, {
2149
- id: string;
2150
2199
  type: "human" | "agent";
2200
+ id: string;
2151
2201
  createdAt: string;
2152
2202
  chatId: string;
2153
2203
  updatedAt: string;
@@ -2155,14 +2205,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2155
2205
  role: string;
2156
2206
  }>, "many">;
2157
2207
  }, "strip", z.ZodTypeAny, {
2158
- id: string;
2159
2208
  type: "direct" | "group";
2209
+ id: string;
2160
2210
  createdAt: string;
2161
2211
  updatedAt: string;
2162
2212
  owner: string;
2163
2213
  members: {
2164
- id: string;
2165
2214
  type: "human" | "agent";
2215
+ id: string;
2166
2216
  createdAt: string;
2167
2217
  chatId: string;
2168
2218
  updatedAt: string;
@@ -2170,14 +2220,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2170
2220
  role: string;
2171
2221
  }[];
2172
2222
  }, {
2173
- id: string;
2174
2223
  type: "direct" | "group";
2224
+ id: string;
2175
2225
  createdAt: string;
2176
2226
  updatedAt: string;
2177
2227
  owner: string;
2178
2228
  members: {
2179
- id: string;
2180
2229
  type: "human" | "agent";
2230
+ id: string;
2181
2231
  createdAt: string;
2182
2232
  chatId: string;
2183
2233
  updatedAt: string;
@@ -2206,16 +2256,16 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2206
2256
  createdAt: z.ZodString;
2207
2257
  updatedAt: z.ZodString;
2208
2258
  }, "strip", z.ZodTypeAny, {
2209
- id: string;
2210
2259
  type: "human" | "agent";
2260
+ id: string;
2211
2261
  createdAt: string;
2212
2262
  chatId: string;
2213
2263
  updatedAt: string;
2214
2264
  memberCode: string;
2215
2265
  role: string;
2216
2266
  }, {
2217
- id: string;
2218
2267
  type: "human" | "agent";
2268
+ id: string;
2219
2269
  createdAt: string;
2220
2270
  chatId: string;
2221
2271
  updatedAt: string;
@@ -2223,14 +2273,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2223
2273
  role: string;
2224
2274
  }>, "many">;
2225
2275
  }, "strip", z.ZodTypeAny, {
2226
- id: string;
2227
2276
  type: "direct" | "group";
2277
+ id: string;
2228
2278
  createdAt: string;
2229
2279
  updatedAt: string;
2230
2280
  owner: string;
2231
2281
  members: {
2232
- id: string;
2233
2282
  type: "human" | "agent";
2283
+ id: string;
2234
2284
  createdAt: string;
2235
2285
  chatId: string;
2236
2286
  updatedAt: string;
@@ -2238,14 +2288,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2238
2288
  role: string;
2239
2289
  }[];
2240
2290
  }, {
2241
- id: string;
2242
2291
  type: "direct" | "group";
2292
+ id: string;
2243
2293
  createdAt: string;
2244
2294
  updatedAt: string;
2245
2295
  owner: string;
2246
2296
  members: {
2247
- id: string;
2248
2297
  type: "human" | "agent";
2298
+ id: string;
2249
2299
  createdAt: string;
2250
2300
  chatId: string;
2251
2301
  updatedAt: string;
@@ -2255,14 +2305,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2255
2305
  }>, "many">;
2256
2306
  }, "strip", z.ZodTypeAny, {
2257
2307
  chats: {
2258
- id: string;
2259
2308
  type: "direct" | "group";
2309
+ id: string;
2260
2310
  createdAt: string;
2261
2311
  updatedAt: string;
2262
2312
  owner: string;
2263
2313
  members: {
2264
- id: string;
2265
2314
  type: "human" | "agent";
2315
+ id: string;
2266
2316
  createdAt: string;
2267
2317
  chatId: string;
2268
2318
  updatedAt: string;
@@ -2272,14 +2322,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2272
2322
  }[];
2273
2323
  }, {
2274
2324
  chats: {
2275
- id: string;
2276
2325
  type: "direct" | "group";
2326
+ id: string;
2277
2327
  createdAt: string;
2278
2328
  updatedAt: string;
2279
2329
  owner: string;
2280
2330
  members: {
2281
- id: string;
2282
2331
  type: "human" | "agent";
2332
+ id: string;
2283
2333
  createdAt: string;
2284
2334
  chatId: string;
2285
2335
  updatedAt: string;
@@ -2308,16 +2358,16 @@ declare const GetChatResponseSchema: z.ZodObject<{
2308
2358
  createdAt: z.ZodString;
2309
2359
  updatedAt: z.ZodString;
2310
2360
  }, "strip", z.ZodTypeAny, {
2311
- id: string;
2312
2361
  type: "human" | "agent";
2362
+ id: string;
2313
2363
  createdAt: string;
2314
2364
  chatId: string;
2315
2365
  updatedAt: string;
2316
2366
  memberCode: string;
2317
2367
  role: string;
2318
2368
  }, {
2319
- id: string;
2320
2369
  type: "human" | "agent";
2370
+ id: string;
2321
2371
  createdAt: string;
2322
2372
  chatId: string;
2323
2373
  updatedAt: string;
@@ -2325,14 +2375,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
2325
2375
  role: string;
2326
2376
  }>, "many">;
2327
2377
  }, "strip", z.ZodTypeAny, {
2328
- id: string;
2329
2378
  type: "direct" | "group";
2379
+ id: string;
2330
2380
  createdAt: string;
2331
2381
  updatedAt: string;
2332
2382
  owner: string;
2333
2383
  members: {
2334
- id: string;
2335
2384
  type: "human" | "agent";
2385
+ id: string;
2336
2386
  createdAt: string;
2337
2387
  chatId: string;
2338
2388
  updatedAt: string;
@@ -2340,14 +2390,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
2340
2390
  role: string;
2341
2391
  }[];
2342
2392
  }, {
2343
- id: string;
2344
2393
  type: "direct" | "group";
2394
+ id: string;
2345
2395
  createdAt: string;
2346
2396
  updatedAt: string;
2347
2397
  owner: string;
2348
2398
  members: {
2349
- id: string;
2350
2399
  type: "human" | "agent";
2400
+ id: string;
2351
2401
  createdAt: string;
2352
2402
  chatId: string;
2353
2403
  updatedAt: string;
@@ -2369,16 +2419,16 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
2369
2419
  createdAt: z.ZodString;
2370
2420
  updatedAt: z.ZodString;
2371
2421
  }, "strip", z.ZodTypeAny, {
2372
- id: string;
2373
2422
  type: "human" | "agent";
2423
+ id: string;
2374
2424
  createdAt: string;
2375
2425
  chatId: string;
2376
2426
  updatedAt: string;
2377
2427
  memberCode: string;
2378
2428
  role: string;
2379
2429
  }, {
2380
- id: string;
2381
2430
  type: "human" | "agent";
2431
+ id: string;
2382
2432
  createdAt: string;
2383
2433
  chatId: string;
2384
2434
  updatedAt: string;
@@ -2387,8 +2437,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
2387
2437
  }>, "many">;
2388
2438
  }, "strip", z.ZodTypeAny, {
2389
2439
  members: {
2390
- id: string;
2391
2440
  type: "human" | "agent";
2441
+ id: string;
2392
2442
  createdAt: string;
2393
2443
  chatId: string;
2394
2444
  updatedAt: string;
@@ -2397,8 +2447,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
2397
2447
  }[];
2398
2448
  }, {
2399
2449
  members: {
2400
- id: string;
2401
2450
  type: "human" | "agent";
2451
+ id: string;
2402
2452
  createdAt: string;
2403
2453
  chatId: string;
2404
2454
  updatedAt: string;
@@ -2447,16 +2497,16 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2447
2497
  createdAt: z.ZodString;
2448
2498
  updatedAt: z.ZodString;
2449
2499
  }, "strip", z.ZodTypeAny, {
2450
- id: string;
2451
2500
  type: "human" | "agent";
2501
+ id: string;
2452
2502
  createdAt: string;
2453
2503
  chatId: string;
2454
2504
  updatedAt: string;
2455
2505
  memberCode: string;
2456
2506
  role: string;
2457
2507
  }, {
2458
- id: string;
2459
2508
  type: "human" | "agent";
2509
+ id: string;
2460
2510
  createdAt: string;
2461
2511
  chatId: string;
2462
2512
  updatedAt: string;
@@ -2465,8 +2515,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2465
2515
  }>, "many">;
2466
2516
  }, "strip", z.ZodTypeAny, {
2467
2517
  members: {
2468
- id: string;
2469
2518
  type: "human" | "agent";
2519
+ id: string;
2470
2520
  createdAt: string;
2471
2521
  chatId: string;
2472
2522
  updatedAt: string;
@@ -2475,8 +2525,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2475
2525
  }[];
2476
2526
  }, {
2477
2527
  members: {
2478
- id: string;
2479
2528
  type: "human" | "agent";
2529
+ id: string;
2480
2530
  createdAt: string;
2481
2531
  chatId: string;
2482
2532
  updatedAt: string;
@@ -2533,6 +2583,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2533
2583
  agentSessionId: z.ZodNullable<z.ZodString>;
2534
2584
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
2535
2585
  cwd: z.ZodNullable<z.ZodString>;
2586
+ repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
2536
2587
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
2537
2588
  pullRequestUrl: z.ZodNullable<z.ZodString>;
2538
2589
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -2570,6 +2621,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2570
2621
  deletions: number;
2571
2622
  }[];
2572
2623
  }>>;
2624
+ totalDuration: z.ZodNullable<z.ZodNumber>;
2573
2625
  createdAt: z.ZodString;
2574
2626
  updatedAt: z.ZodString;
2575
2627
  }, "strip", z.ZodTypeAny, {
@@ -2583,6 +2635,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2583
2635
  cwd: string | null;
2584
2636
  repositoryId: string | null;
2585
2637
  baseBranch: string | null;
2638
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2586
2639
  dataEncryptionKey: string | null;
2587
2640
  agentId: string;
2588
2641
  title: string | null;
@@ -2601,6 +2654,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2601
2654
  deletions: number;
2602
2655
  }[];
2603
2656
  } | null;
2657
+ totalDuration: number | null;
2604
2658
  }, {
2605
2659
  id: string;
2606
2660
  createdAt: string;
@@ -2612,6 +2666,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2612
2666
  cwd: string | null;
2613
2667
  repositoryId: string | null;
2614
2668
  baseBranch: string | null;
2669
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2615
2670
  dataEncryptionKey: string | null;
2616
2671
  agentId: string;
2617
2672
  title: string | null;
@@ -2630,6 +2685,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2630
2685
  deletions: number;
2631
2686
  }[];
2632
2687
  } | null;
2688
+ totalDuration: number | null;
2633
2689
  }>, "many">;
2634
2690
  }, "strip", z.ZodTypeAny, {
2635
2691
  tasks: {
@@ -2643,6 +2699,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2643
2699
  cwd: string | null;
2644
2700
  repositoryId: string | null;
2645
2701
  baseBranch: string | null;
2702
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2646
2703
  dataEncryptionKey: string | null;
2647
2704
  agentId: string;
2648
2705
  title: string | null;
@@ -2661,6 +2718,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2661
2718
  deletions: number;
2662
2719
  }[];
2663
2720
  } | null;
2721
+ totalDuration: number | null;
2664
2722
  }[];
2665
2723
  }, {
2666
2724
  tasks: {
@@ -2674,6 +2732,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2674
2732
  cwd: string | null;
2675
2733
  repositoryId: string | null;
2676
2734
  baseBranch: string | null;
2735
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
2677
2736
  dataEncryptionKey: string | null;
2678
2737
  agentId: string;
2679
2738
  title: string | null;
@@ -2692,6 +2751,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2692
2751
  deletions: number;
2693
2752
  }[];
2694
2753
  } | null;
2754
+ totalDuration: number | null;
2695
2755
  }[];
2696
2756
  }>;
2697
2757
  type ListChatTasksResponse = z.infer<typeof ListChatTasksResponseSchema>;
@@ -2725,10 +2785,10 @@ declare const AgentSchema: z.ZodObject<{
2725
2785
  supportLocal: z.ZodBoolean;
2726
2786
  enable: z.ZodBoolean;
2727
2787
  }, "strip", z.ZodTypeAny, {
2788
+ signature: string | null;
2789
+ type: "claude" | "codex";
2728
2790
  id: string;
2729
2791
  avatar: string | null;
2730
- type: "claude" | "codex";
2731
- signature: string | null;
2732
2792
  userId: string;
2733
2793
  name: string;
2734
2794
  description: string | null;
@@ -2740,10 +2800,10 @@ declare const AgentSchema: z.ZodObject<{
2740
2800
  supportLocal: boolean;
2741
2801
  enable: boolean;
2742
2802
  }, {
2803
+ signature: string | null;
2804
+ type: "claude" | "codex";
2743
2805
  id: string;
2744
2806
  avatar: string | null;
2745
- type: "claude" | "codex";
2746
- signature: string | null;
2747
2807
  userId: string;
2748
2808
  name: string;
2749
2809
  description: string | null;
@@ -2776,10 +2836,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2776
2836
  supportLocal: z.ZodBoolean;
2777
2837
  enable: z.ZodBoolean;
2778
2838
  }, "strip", z.ZodTypeAny, {
2839
+ signature: string | null;
2840
+ type: "claude" | "codex";
2779
2841
  id: string;
2780
2842
  avatar: string | null;
2781
- type: "claude" | "codex";
2782
- signature: string | null;
2783
2843
  userId: string;
2784
2844
  name: string;
2785
2845
  description: string | null;
@@ -2791,10 +2851,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2791
2851
  supportLocal: boolean;
2792
2852
  enable: boolean;
2793
2853
  }, {
2854
+ signature: string | null;
2855
+ type: "claude" | "codex";
2794
2856
  id: string;
2795
2857
  avatar: string | null;
2796
- type: "claude" | "codex";
2797
- signature: string | null;
2798
2858
  userId: string;
2799
2859
  name: string;
2800
2860
  description: string | null;
@@ -2808,10 +2868,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2808
2868
  }>, "many">;
2809
2869
  }, "strip", z.ZodTypeAny, {
2810
2870
  agents: {
2871
+ signature: string | null;
2872
+ type: "claude" | "codex";
2811
2873
  id: string;
2812
2874
  avatar: string | null;
2813
- type: "claude" | "codex";
2814
- signature: string | null;
2815
2875
  userId: string;
2816
2876
  name: string;
2817
2877
  description: string | null;
@@ -2825,10 +2885,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2825
2885
  }[];
2826
2886
  }, {
2827
2887
  agents: {
2888
+ signature: string | null;
2889
+ type: "claude" | "codex";
2828
2890
  id: string;
2829
2891
  avatar: string | null;
2830
- type: "claude" | "codex";
2831
- signature: string | null;
2832
2892
  userId: string;
2833
2893
  name: string;
2834
2894
  description: string | null;
@@ -2861,10 +2921,10 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2861
2921
  supportLocal: z.ZodBoolean;
2862
2922
  enable: z.ZodBoolean;
2863
2923
  }, "strip", z.ZodTypeAny, {
2924
+ signature: string | null;
2925
+ type: "claude" | "codex";
2864
2926
  id: string;
2865
2927
  avatar: string | null;
2866
- type: "claude" | "codex";
2867
- signature: string | null;
2868
2928
  userId: string;
2869
2929
  name: string;
2870
2930
  description: string | null;
@@ -2876,10 +2936,10 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2876
2936
  supportLocal: boolean;
2877
2937
  enable: boolean;
2878
2938
  }, {
2939
+ signature: string | null;
2940
+ type: "claude" | "codex";
2879
2941
  id: string;
2880
2942
  avatar: string | null;
2881
- type: "claude" | "codex";
2882
- signature: string | null;
2883
2943
  userId: string;
2884
2944
  name: string;
2885
2945
  description: string | null;
@@ -2911,15 +2971,15 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
2911
2971
  guildMsg: string;
2912
2972
  placeholderMsg: string;
2913
2973
  supportLocal: boolean;
2914
- avatar?: string | undefined;
2915
2974
  signature?: string | undefined;
2975
+ avatar?: string | undefined;
2916
2976
  description?: string | undefined;
2917
2977
  gitRepoId?: string | undefined;
2918
2978
  }, {
2919
2979
  type: "claude" | "codex";
2920
2980
  name: string;
2921
- avatar?: string | undefined;
2922
2981
  signature?: string | undefined;
2982
+ avatar?: string | undefined;
2923
2983
  description?: string | undefined;
2924
2984
  guildMsg?: string | undefined;
2925
2985
  placeholderMsg?: string | undefined;
@@ -2946,10 +3006,10 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2946
3006
  supportLocal: z.ZodBoolean;
2947
3007
  enable: z.ZodBoolean;
2948
3008
  }, "strip", z.ZodTypeAny, {
3009
+ signature: string | null;
3010
+ type: "claude" | "codex";
2949
3011
  id: string;
2950
3012
  avatar: string | null;
2951
- type: "claude" | "codex";
2952
- signature: string | null;
2953
3013
  userId: string;
2954
3014
  name: string;
2955
3015
  description: string | null;
@@ -2961,10 +3021,10 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2961
3021
  supportLocal: boolean;
2962
3022
  enable: boolean;
2963
3023
  }, {
3024
+ signature: string | null;
3025
+ type: "claude" | "codex";
2964
3026
  id: string;
2965
3027
  avatar: string | null;
2966
- type: "claude" | "codex";
2967
- signature: string | null;
2968
3028
  userId: string;
2969
3029
  name: string;
2970
3030
  description: string | null;
@@ -2991,9 +3051,9 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2991
3051
  gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2992
3052
  supportLocal: z.ZodOptional<z.ZodBoolean>;
2993
3053
  }, "strip", z.ZodTypeAny, {
2994
- avatar?: string | null | undefined;
2995
- type?: "claude" | "codex" | undefined;
2996
3054
  signature?: string | null | undefined;
3055
+ type?: "claude" | "codex" | undefined;
3056
+ avatar?: string | null | undefined;
2997
3057
  name?: string | undefined;
2998
3058
  description?: string | null | undefined;
2999
3059
  guildMsg?: string | undefined;
@@ -3001,9 +3061,9 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
3001
3061
  gitRepoId?: string | null | undefined;
3002
3062
  supportLocal?: boolean | undefined;
3003
3063
  }, {
3004
- avatar?: string | null | undefined;
3005
- type?: "claude" | "codex" | undefined;
3006
3064
  signature?: string | null | undefined;
3065
+ type?: "claude" | "codex" | undefined;
3066
+ avatar?: string | null | undefined;
3007
3067
  name?: string | undefined;
3008
3068
  description?: string | null | undefined;
3009
3069
  guildMsg?: string | undefined;
@@ -3031,10 +3091,10 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
3031
3091
  supportLocal: z.ZodBoolean;
3032
3092
  enable: z.ZodBoolean;
3033
3093
  }, "strip", z.ZodTypeAny, {
3094
+ signature: string | null;
3095
+ type: "claude" | "codex";
3034
3096
  id: string;
3035
3097
  avatar: string | null;
3036
- type: "claude" | "codex";
3037
- signature: string | null;
3038
3098
  userId: string;
3039
3099
  name: string;
3040
3100
  description: string | null;
@@ -3046,10 +3106,10 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
3046
3106
  supportLocal: boolean;
3047
3107
  enable: boolean;
3048
3108
  }, {
3109
+ signature: string | null;
3110
+ type: "claude" | "codex";
3049
3111
  id: string;
3050
3112
  avatar: string | null;
3051
- type: "claude" | "codex";
3052
- signature: string | null;
3053
3113
  userId: string;
3054
3114
  name: string;
3055
3115
  description: string | null;
@@ -3096,8 +3156,8 @@ declare const LocalMachineSchema: z.ZodObject<{
3096
3156
  createdAt: z.ZodString;
3097
3157
  updatedAt: z.ZodString;
3098
3158
  }, "strip", z.ZodTypeAny, {
3099
- id: string;
3100
3159
  status: string;
3160
+ id: string;
3101
3161
  createdAt: string;
3102
3162
  dataEncryptionKey: string;
3103
3163
  updatedAt: string;
@@ -3106,8 +3166,8 @@ declare const LocalMachineSchema: z.ZodObject<{
3106
3166
  approval: string;
3107
3167
  controlPort: number | null;
3108
3168
  }, {
3109
- id: string;
3110
3169
  status: string;
3170
+ id: string;
3111
3171
  createdAt: string;
3112
3172
  dataEncryptionKey: string;
3113
3173
  updatedAt: string;
@@ -3129,16 +3189,16 @@ declare const CloudMachineSchema: z.ZodObject<{
3129
3189
  createdAt: z.ZodString;
3130
3190
  updatedAt: z.ZodString;
3131
3191
  }, "strip", z.ZodTypeAny, {
3132
- id: string;
3133
3192
  status: string;
3193
+ id: string;
3134
3194
  createdAt: string;
3135
3195
  cloudId: string;
3136
3196
  updatedAt: string;
3137
3197
  metadata: string | null;
3138
3198
  deviceId: string;
3139
3199
  }, {
3140
- id: string;
3141
3200
  status: string;
3201
+ id: string;
3142
3202
  createdAt: string;
3143
3203
  cloudId: string;
3144
3204
  updatedAt: string;
@@ -3165,16 +3225,16 @@ declare const CloudSchema: z.ZodObject<{
3165
3225
  createdAt: z.ZodString;
3166
3226
  updatedAt: z.ZodString;
3167
3227
  }, "strip", z.ZodTypeAny, {
3168
- id: string;
3169
3228
  status: string;
3229
+ id: string;
3170
3230
  createdAt: string;
3171
3231
  cloudId: string;
3172
3232
  updatedAt: string;
3173
3233
  metadata: string | null;
3174
3234
  deviceId: string;
3175
3235
  }, {
3176
- id: string;
3177
3236
  status: string;
3237
+ id: string;
3178
3238
  createdAt: string;
3179
3239
  cloudId: string;
3180
3240
  updatedAt: string;
@@ -3182,15 +3242,15 @@ declare const CloudSchema: z.ZodObject<{
3182
3242
  deviceId: string;
3183
3243
  }>, "many">>;
3184
3244
  }, "strip", z.ZodTypeAny, {
3185
- id: string;
3186
3245
  type: "public" | "private";
3246
+ id: string;
3187
3247
  createdAt: string;
3188
3248
  updatedAt: string;
3189
3249
  name: string;
3190
3250
  owner: string;
3191
3251
  machines?: {
3192
- id: string;
3193
3252
  status: string;
3253
+ id: string;
3194
3254
  createdAt: string;
3195
3255
  cloudId: string;
3196
3256
  updatedAt: string;
@@ -3198,15 +3258,15 @@ declare const CloudSchema: z.ZodObject<{
3198
3258
  deviceId: string;
3199
3259
  }[] | undefined;
3200
3260
  }, {
3201
- id: string;
3202
3261
  type: "public" | "private";
3262
+ id: string;
3203
3263
  createdAt: string;
3204
3264
  updatedAt: string;
3205
3265
  name: string;
3206
3266
  owner: string;
3207
3267
  machines?: {
3208
- id: string;
3209
3268
  status: string;
3269
+ id: string;
3210
3270
  createdAt: string;
3211
3271
  cloudId: string;
3212
3272
  updatedAt: string;
@@ -3235,16 +3295,16 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3235
3295
  createdAt: z.ZodString;
3236
3296
  updatedAt: z.ZodString;
3237
3297
  }, "strip", z.ZodTypeAny, {
3238
- id: string;
3239
3298
  status: string;
3299
+ id: string;
3240
3300
  createdAt: string;
3241
3301
  cloudId: string;
3242
3302
  updatedAt: string;
3243
3303
  metadata: string | null;
3244
3304
  deviceId: string;
3245
3305
  }, {
3246
- id: string;
3247
3306
  status: string;
3307
+ id: string;
3248
3308
  createdAt: string;
3249
3309
  cloudId: string;
3250
3310
  updatedAt: string;
@@ -3252,15 +3312,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3252
3312
  deviceId: string;
3253
3313
  }>, "many">>;
3254
3314
  }, "strip", z.ZodTypeAny, {
3255
- id: string;
3256
3315
  type: "public" | "private";
3316
+ id: string;
3257
3317
  createdAt: string;
3258
3318
  updatedAt: string;
3259
3319
  name: string;
3260
3320
  owner: string;
3261
3321
  machines?: {
3262
- id: string;
3263
3322
  status: string;
3323
+ id: string;
3264
3324
  createdAt: string;
3265
3325
  cloudId: string;
3266
3326
  updatedAt: string;
@@ -3268,15 +3328,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3268
3328
  deviceId: string;
3269
3329
  }[] | undefined;
3270
3330
  }, {
3271
- id: string;
3272
3331
  type: "public" | "private";
3332
+ id: string;
3273
3333
  createdAt: string;
3274
3334
  updatedAt: string;
3275
3335
  name: string;
3276
3336
  owner: string;
3277
3337
  machines?: {
3278
- id: string;
3279
3338
  status: string;
3339
+ id: string;
3280
3340
  createdAt: string;
3281
3341
  cloudId: string;
3282
3342
  updatedAt: string;
@@ -3295,8 +3355,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3295
3355
  createdAt: z.ZodString;
3296
3356
  updatedAt: z.ZodString;
3297
3357
  }, "strip", z.ZodTypeAny, {
3298
- id: string;
3299
3358
  status: string;
3359
+ id: string;
3300
3360
  createdAt: string;
3301
3361
  dataEncryptionKey: string;
3302
3362
  updatedAt: string;
@@ -3305,8 +3365,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3305
3365
  approval: string;
3306
3366
  controlPort: number | null;
3307
3367
  }, {
3308
- id: string;
3309
3368
  status: string;
3369
+ id: string;
3310
3370
  createdAt: string;
3311
3371
  dataEncryptionKey: string;
3312
3372
  updatedAt: string;
@@ -3317,15 +3377,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3317
3377
  }>, "many">;
3318
3378
  }, "strip", z.ZodTypeAny, {
3319
3379
  clouds: {
3320
- id: string;
3321
3380
  type: "public" | "private";
3381
+ id: string;
3322
3382
  createdAt: string;
3323
3383
  updatedAt: string;
3324
3384
  name: string;
3325
3385
  owner: string;
3326
3386
  machines?: {
3327
- id: string;
3328
3387
  status: string;
3388
+ id: string;
3329
3389
  createdAt: string;
3330
3390
  cloudId: string;
3331
3391
  updatedAt: string;
@@ -3334,8 +3394,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3334
3394
  }[] | undefined;
3335
3395
  }[];
3336
3396
  localMachines: {
3337
- id: string;
3338
3397
  status: string;
3398
+ id: string;
3339
3399
  createdAt: string;
3340
3400
  dataEncryptionKey: string;
3341
3401
  updatedAt: string;
@@ -3346,15 +3406,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3346
3406
  }[];
3347
3407
  }, {
3348
3408
  clouds: {
3349
- id: string;
3350
3409
  type: "public" | "private";
3410
+ id: string;
3351
3411
  createdAt: string;
3352
3412
  updatedAt: string;
3353
3413
  name: string;
3354
3414
  owner: string;
3355
3415
  machines?: {
3356
- id: string;
3357
3416
  status: string;
3417
+ id: string;
3358
3418
  createdAt: string;
3359
3419
  cloudId: string;
3360
3420
  updatedAt: string;
@@ -3363,8 +3423,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
3363
3423
  }[] | undefined;
3364
3424
  }[];
3365
3425
  localMachines: {
3366
- id: string;
3367
3426
  status: string;
3427
+ id: string;
3368
3428
  createdAt: string;
3369
3429
  dataEncryptionKey: string;
3370
3430
  updatedAt: string;
@@ -3658,8 +3718,8 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3658
3718
  contentType: string;
3659
3719
  }[];
3660
3720
  limit: number;
3661
- page: number;
3662
3721
  total: number;
3722
+ page: number;
3663
3723
  }, {
3664
3724
  files: {
3665
3725
  createdAt: string;
@@ -3669,8 +3729,8 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3669
3729
  contentType: string;
3670
3730
  }[];
3671
3731
  limit: number;
3672
- page: number;
3673
3732
  total: number;
3733
+ page: number;
3674
3734
  }>;
3675
3735
  type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
3676
3736
 
@@ -4170,8 +4230,8 @@ declare const OAuthServerSchema: z.ZodObject<{
4170
4230
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4171
4231
  }, "strip", z.ZodTypeAny, {
4172
4232
  id: string;
4173
- provider: string;
4174
4233
  createdAt: string;
4234
+ provider: string;
4175
4235
  updatedAt: string;
4176
4236
  displayName: string;
4177
4237
  authorizeUrl: string;
@@ -4186,8 +4246,8 @@ declare const OAuthServerSchema: z.ZodObject<{
4186
4246
  avatar?: string | undefined;
4187
4247
  }, {
4188
4248
  id: string;
4189
- provider: string;
4190
4249
  createdAt: string | Date;
4250
+ provider: string;
4191
4251
  updatedAt: string | Date;
4192
4252
  displayName: string;
4193
4253
  authorizeUrl: string;
@@ -4216,16 +4276,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
4216
4276
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4217
4277
  }, "strip", z.ZodTypeAny, {
4218
4278
  id: string;
4219
- provider: string;
4220
4279
  createdAt: string;
4280
+ provider: string;
4221
4281
  updatedAt: string;
4222
4282
  displayName: string;
4223
4283
  enabled: boolean;
4224
4284
  avatar?: string | undefined;
4225
4285
  }, {
4226
4286
  id: string;
4227
- provider: string;
4228
4287
  createdAt: string | Date;
4288
+ provider: string;
4229
4289
  updatedAt: string | Date;
4230
4290
  displayName: string;
4231
4291
  enabled: boolean;
@@ -4291,8 +4351,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
4291
4351
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4292
4352
  }, "strip", z.ZodTypeAny, {
4293
4353
  id: string;
4294
- provider: string;
4295
4354
  createdAt: string;
4355
+ provider: string;
4296
4356
  updatedAt: string;
4297
4357
  displayName: string;
4298
4358
  authorizeUrl: string;
@@ -4307,8 +4367,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
4307
4367
  avatar?: string | undefined;
4308
4368
  }, {
4309
4369
  id: string;
4310
- provider: string;
4311
4370
  createdAt: string | Date;
4371
+ provider: string;
4312
4372
  updatedAt: string | Date;
4313
4373
  displayName: string;
4314
4374
  authorizeUrl: string;
@@ -4352,8 +4412,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
4352
4412
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4353
4413
  }, "strip", z.ZodTypeAny, {
4354
4414
  id: string;
4355
- provider: string;
4356
4415
  createdAt: string;
4416
+ provider: string;
4357
4417
  updatedAt: string;
4358
4418
  displayName: string;
4359
4419
  authorizeUrl: string;
@@ -4368,8 +4428,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
4368
4428
  avatar?: string | undefined;
4369
4429
  }, {
4370
4430
  id: string;
4371
- provider: string;
4372
4431
  createdAt: string | Date;
4432
+ provider: string;
4373
4433
  updatedAt: string | Date;
4374
4434
  displayName: string;
4375
4435
  authorizeUrl: string;
@@ -4405,8 +4465,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4405
4465
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4406
4466
  }, "strip", z.ZodTypeAny, {
4407
4467
  id: string;
4408
- provider: string;
4409
4468
  createdAt: string;
4469
+ provider: string;
4410
4470
  updatedAt: string;
4411
4471
  displayName: string;
4412
4472
  authorizeUrl: string;
@@ -4421,8 +4481,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4421
4481
  avatar?: string | undefined;
4422
4482
  }, {
4423
4483
  id: string;
4424
- provider: string;
4425
4484
  createdAt: string | Date;
4485
+ provider: string;
4426
4486
  updatedAt: string | Date;
4427
4487
  displayName: string;
4428
4488
  authorizeUrl: string;
@@ -4496,8 +4556,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4496
4556
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4497
4557
  }, "strip", z.ZodTypeAny, {
4498
4558
  id: string;
4499
- provider: string;
4500
4559
  createdAt: string;
4560
+ provider: string;
4501
4561
  updatedAt: string;
4502
4562
  displayName: string;
4503
4563
  authorizeUrl: string;
@@ -4512,8 +4572,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4512
4572
  avatar?: string | undefined;
4513
4573
  }, {
4514
4574
  id: string;
4515
- provider: string;
4516
4575
  createdAt: string | Date;
4576
+ provider: string;
4517
4577
  updatedAt: string | Date;
4518
4578
  displayName: string;
4519
4579
  authorizeUrl: string;
@@ -4568,8 +4628,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4568
4628
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4569
4629
  }, "strip", z.ZodTypeAny, {
4570
4630
  id: string;
4571
- provider: string;
4572
4631
  createdAt: string;
4632
+ provider: string;
4573
4633
  updatedAt: string;
4574
4634
  displayName: string;
4575
4635
  authorizeUrl: string;
@@ -4584,8 +4644,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4584
4644
  avatar?: string | undefined;
4585
4645
  }, {
4586
4646
  id: string;
4587
- provider: string;
4588
4647
  createdAt: string | Date;
4648
+ provider: string;
4589
4649
  updatedAt: string | Date;
4590
4650
  displayName: string;
4591
4651
  authorizeUrl: string;
@@ -4613,16 +4673,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
4613
4673
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4614
4674
  }, "strip", z.ZodTypeAny, {
4615
4675
  id: string;
4616
- provider: string;
4617
4676
  createdAt: string;
4677
+ provider: string;
4618
4678
  updatedAt: string;
4619
4679
  displayName: string;
4620
4680
  enabled: boolean;
4621
4681
  avatar?: string | undefined;
4622
4682
  }, {
4623
4683
  id: string;
4624
- provider: string;
4625
4684
  createdAt: string | Date;
4685
+ provider: string;
4626
4686
  updatedAt: string | Date;
4627
4687
  displayName: string;
4628
4688
  enabled: boolean;
@@ -4809,8 +4869,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4809
4869
  createdAt: z.ZodString;
4810
4870
  transactionType: z.ZodLiteral<"charge">;
4811
4871
  }, "strip", z.ZodTypeAny, {
4812
- id: string;
4813
4872
  type: "user_recharge" | "system_bonus" | "refund";
4873
+ id: string;
4814
4874
  createdAt: string;
4815
4875
  userId: string;
4816
4876
  creditsPackageId: string;
@@ -4820,11 +4880,11 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4820
4880
  paymentMethod: string | null;
4821
4881
  paymentId: string | null;
4822
4882
  transactionType: "charge";
4823
- metadata?: any;
4824
4883
  packageName?: string | undefined;
4884
+ metadata?: any;
4825
4885
  }, {
4826
- id: string;
4827
4886
  type: "user_recharge" | "system_bonus" | "refund";
4887
+ id: string;
4828
4888
  createdAt: string;
4829
4889
  userId: string;
4830
4890
  creditsPackageId: string;
@@ -4834,8 +4894,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4834
4894
  paymentMethod: string | null;
4835
4895
  paymentId: string | null;
4836
4896
  transactionType: "charge";
4837
- metadata?: any;
4838
4897
  packageName?: string | undefined;
4898
+ metadata?: any;
4839
4899
  }>;
4840
4900
  type ChargeTransaction = z.infer<typeof ChargeTransactionSchema>;
4841
4901
  /**
@@ -4865,8 +4925,8 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
4865
4925
  balanceBefore: number;
4866
4926
  balanceAfter: number;
4867
4927
  transactionType: "consume";
4868
- metadata?: any;
4869
4928
  packageName?: string | undefined;
4929
+ metadata?: any;
4870
4930
  }, {
4871
4931
  id: string;
4872
4932
  createdAt: string;
@@ -4878,8 +4938,8 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
4878
4938
  balanceBefore: number;
4879
4939
  balanceAfter: number;
4880
4940
  transactionType: "consume";
4881
- metadata?: any;
4882
4941
  packageName?: string | undefined;
4942
+ metadata?: any;
4883
4943
  }>;
4884
4944
  type ConsumeTransaction = z.infer<typeof ConsumeTransactionSchema>;
4885
4945
  /**
@@ -4900,8 +4960,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4900
4960
  createdAt: z.ZodString;
4901
4961
  transactionType: z.ZodLiteral<"charge">;
4902
4962
  }, "strip", z.ZodTypeAny, {
4903
- id: string;
4904
4963
  type: "user_recharge" | "system_bonus" | "refund";
4964
+ id: string;
4905
4965
  createdAt: string;
4906
4966
  userId: string;
4907
4967
  creditsPackageId: string;
@@ -4911,11 +4971,11 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4911
4971
  paymentMethod: string | null;
4912
4972
  paymentId: string | null;
4913
4973
  transactionType: "charge";
4914
- metadata?: any;
4915
4974
  packageName?: string | undefined;
4975
+ metadata?: any;
4916
4976
  }, {
4917
- id: string;
4918
4977
  type: "user_recharge" | "system_bonus" | "refund";
4978
+ id: string;
4919
4979
  createdAt: string;
4920
4980
  userId: string;
4921
4981
  creditsPackageId: string;
@@ -4925,8 +4985,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4925
4985
  paymentMethod: string | null;
4926
4986
  paymentId: string | null;
4927
4987
  transactionType: "charge";
4928
- metadata?: any;
4929
4988
  packageName?: string | undefined;
4989
+ metadata?: any;
4930
4990
  }>, z.ZodObject<{
4931
4991
  id: z.ZodString;
4932
4992
  userId: z.ZodString;
@@ -4951,8 +5011,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4951
5011
  balanceBefore: number;
4952
5012
  balanceAfter: number;
4953
5013
  transactionType: "consume";
4954
- metadata?: any;
4955
5014
  packageName?: string | undefined;
5015
+ metadata?: any;
4956
5016
  }, {
4957
5017
  id: string;
4958
5018
  createdAt: string;
@@ -4964,8 +5024,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4964
5024
  balanceBefore: number;
4965
5025
  balanceAfter: number;
4966
5026
  transactionType: "consume";
4967
- metadata?: any;
4968
5027
  packageName?: string | undefined;
5028
+ metadata?: any;
4969
5029
  }>]>;
4970
5030
  type Transaction = z.infer<typeof TransactionSchema>;
4971
5031
  /**
@@ -5010,8 +5070,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5010
5070
  createdAt: z.ZodString;
5011
5071
  transactionType: z.ZodLiteral<"charge">;
5012
5072
  }, "strip", z.ZodTypeAny, {
5013
- id: string;
5014
5073
  type: "user_recharge" | "system_bonus" | "refund";
5074
+ id: string;
5015
5075
  createdAt: string;
5016
5076
  userId: string;
5017
5077
  creditsPackageId: string;
@@ -5021,11 +5081,11 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5021
5081
  paymentMethod: string | null;
5022
5082
  paymentId: string | null;
5023
5083
  transactionType: "charge";
5024
- metadata?: any;
5025
5084
  packageName?: string | undefined;
5085
+ metadata?: any;
5026
5086
  }, {
5027
- id: string;
5028
5087
  type: "user_recharge" | "system_bonus" | "refund";
5088
+ id: string;
5029
5089
  createdAt: string;
5030
5090
  userId: string;
5031
5091
  creditsPackageId: string;
@@ -5035,8 +5095,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5035
5095
  paymentMethod: string | null;
5036
5096
  paymentId: string | null;
5037
5097
  transactionType: "charge";
5038
- metadata?: any;
5039
5098
  packageName?: string | undefined;
5099
+ metadata?: any;
5040
5100
  }>, z.ZodObject<{
5041
5101
  id: z.ZodString;
5042
5102
  userId: z.ZodString;
@@ -5061,8 +5121,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5061
5121
  balanceBefore: number;
5062
5122
  balanceAfter: number;
5063
5123
  transactionType: "consume";
5064
- metadata?: any;
5065
5124
  packageName?: string | undefined;
5125
+ metadata?: any;
5066
5126
  }, {
5067
5127
  id: string;
5068
5128
  createdAt: string;
@@ -5074,15 +5134,15 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5074
5134
  balanceBefore: number;
5075
5135
  balanceAfter: number;
5076
5136
  transactionType: "consume";
5077
- metadata?: any;
5078
5137
  packageName?: string | undefined;
5138
+ metadata?: any;
5079
5139
  }>]>, "many">;
5080
5140
  total: z.ZodNumber;
5081
5141
  }, "strip", z.ZodTypeAny, {
5082
5142
  total: number;
5083
5143
  transactions: ({
5084
- id: string;
5085
5144
  type: "user_recharge" | "system_bonus" | "refund";
5145
+ id: string;
5086
5146
  createdAt: string;
5087
5147
  userId: string;
5088
5148
  creditsPackageId: string;
@@ -5092,8 +5152,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5092
5152
  paymentMethod: string | null;
5093
5153
  paymentId: string | null;
5094
5154
  transactionType: "charge";
5095
- metadata?: any;
5096
5155
  packageName?: string | undefined;
5156
+ metadata?: any;
5097
5157
  } | {
5098
5158
  id: string;
5099
5159
  createdAt: string;
@@ -5105,14 +5165,14 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5105
5165
  balanceBefore: number;
5106
5166
  balanceAfter: number;
5107
5167
  transactionType: "consume";
5108
- metadata?: any;
5109
5168
  packageName?: string | undefined;
5169
+ metadata?: any;
5110
5170
  })[];
5111
5171
  }, {
5112
5172
  total: number;
5113
5173
  transactions: ({
5114
- id: string;
5115
5174
  type: "user_recharge" | "system_bonus" | "refund";
5175
+ id: string;
5116
5176
  createdAt: string;
5117
5177
  userId: string;
5118
5178
  creditsPackageId: string;
@@ -5122,8 +5182,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5122
5182
  paymentMethod: string | null;
5123
5183
  paymentId: string | null;
5124
5184
  transactionType: "charge";
5125
- metadata?: any;
5126
5185
  packageName?: string | undefined;
5186
+ metadata?: any;
5127
5187
  } | {
5128
5188
  id: string;
5129
5189
  createdAt: string;
@@ -5135,8 +5195,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
5135
5195
  balanceBefore: number;
5136
5196
  balanceAfter: number;
5137
5197
  transactionType: "consume";
5138
- metadata?: any;
5139
5198
  packageName?: string | undefined;
5199
+ metadata?: any;
5140
5200
  })[];
5141
5201
  }>;
5142
5202
  type ListTransactionsResponse = z.infer<typeof ListTransactionsResponseSchema>;
@@ -5168,8 +5228,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5168
5228
  balanceBefore: number;
5169
5229
  balanceAfter: number;
5170
5230
  transactionType: "consume";
5171
- metadata?: any;
5172
5231
  packageName?: string | undefined;
5232
+ metadata?: any;
5173
5233
  }, {
5174
5234
  id: string;
5175
5235
  createdAt: string;
@@ -5181,8 +5241,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5181
5241
  balanceBefore: number;
5182
5242
  balanceAfter: number;
5183
5243
  transactionType: "consume";
5184
- metadata?: any;
5185
5244
  packageName?: string | undefined;
5245
+ metadata?: any;
5186
5246
  }>, "many">;
5187
5247
  total: z.ZodNumber;
5188
5248
  }, "strip", z.ZodTypeAny, {
@@ -5198,8 +5258,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5198
5258
  balanceBefore: number;
5199
5259
  balanceAfter: number;
5200
5260
  transactionType: "consume";
5201
- metadata?: any;
5202
5261
  packageName?: string | undefined;
5262
+ metadata?: any;
5203
5263
  }[];
5204
5264
  }, {
5205
5265
  total: number;
@@ -5214,8 +5274,8 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
5214
5274
  balanceBefore: number;
5215
5275
  balanceAfter: number;
5216
5276
  transactionType: "consume";
5217
- metadata?: any;
5218
5277
  packageName?: string | undefined;
5278
+ metadata?: any;
5219
5279
  }[];
5220
5280
  }>;
5221
5281
  type TaskTransactionsResponse = z.infer<typeof TaskTransactionsResponseSchema>;
@@ -5276,8 +5336,8 @@ declare const GitServerSchema: z.ZodObject<{
5276
5336
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5277
5337
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5278
5338
  }, "strip", z.ZodTypeAny, {
5279
- id: string;
5280
5339
  type: string;
5340
+ id: string;
5281
5341
  createdAt: string;
5282
5342
  updatedAt: string;
5283
5343
  name: string;
@@ -5286,8 +5346,8 @@ declare const GitServerSchema: z.ZodObject<{
5286
5346
  apiUrl: string;
5287
5347
  oauthServerId: string | null;
5288
5348
  }, {
5289
- id: string;
5290
5349
  type: string;
5350
+ id: string;
5291
5351
  createdAt: string | Date;
5292
5352
  updatedAt: string | Date;
5293
5353
  name: string;
@@ -5311,8 +5371,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
5311
5371
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5312
5372
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5313
5373
  }, "strip", z.ZodTypeAny, {
5314
- id: string;
5315
5374
  type: string;
5375
+ id: string;
5316
5376
  createdAt: string;
5317
5377
  updatedAt: string;
5318
5378
  name: string;
@@ -5321,8 +5381,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
5321
5381
  apiUrl: string;
5322
5382
  oauthServerId: string | null;
5323
5383
  }, {
5324
- id: string;
5325
5384
  type: string;
5385
+ id: string;
5326
5386
  createdAt: string | Date;
5327
5387
  updatedAt: string | Date;
5328
5388
  name: string;
@@ -5346,8 +5406,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
5346
5406
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5347
5407
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
5348
5408
  }, "strip", z.ZodTypeAny, {
5349
- id: string;
5350
5409
  type: string;
5410
+ id: string;
5351
5411
  createdAt: string;
5352
5412
  updatedAt: string;
5353
5413
  name: string;
@@ -5356,8 +5416,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
5356
5416
  apiUrl: string;
5357
5417
  oauthServerId: string | null;
5358
5418
  }, {
5359
- id: string;
5360
5419
  type: string;
5420
+ id: string;
5361
5421
  createdAt: string | Date;
5362
5422
  updatedAt: string | Date;
5363
5423
  name: string;
@@ -5368,6 +5428,151 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
5368
5428
  }>;
5369
5429
  type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
5370
5430
 
5431
+ /**
5432
+ * Option schema for ask-user questions
5433
+ */
5434
+ declare const AskUserOptionSchema: z.ZodObject<{
5435
+ label: z.ZodString;
5436
+ description: z.ZodString;
5437
+ }, "strip", z.ZodTypeAny, {
5438
+ description: string;
5439
+ label: string;
5440
+ }, {
5441
+ description: string;
5442
+ label: string;
5443
+ }>;
5444
+ type AskUserOption = z.infer<typeof AskUserOptionSchema>;
5445
+ /**
5446
+ * Question schema for ask-user
5447
+ */
5448
+ declare const AskUserQuestionSchema: z.ZodObject<{
5449
+ question: z.ZodString;
5450
+ header: z.ZodString;
5451
+ multiSelect: z.ZodBoolean;
5452
+ options: z.ZodArray<z.ZodObject<{
5453
+ label: z.ZodString;
5454
+ description: z.ZodString;
5455
+ }, "strip", z.ZodTypeAny, {
5456
+ description: string;
5457
+ label: string;
5458
+ }, {
5459
+ description: string;
5460
+ label: string;
5461
+ }>, "many">;
5462
+ }, "strip", z.ZodTypeAny, {
5463
+ options: {
5464
+ description: string;
5465
+ label: string;
5466
+ }[];
5467
+ question: string;
5468
+ header: string;
5469
+ multiSelect: boolean;
5470
+ }, {
5471
+ options: {
5472
+ description: string;
5473
+ label: string;
5474
+ }[];
5475
+ question: string;
5476
+ header: string;
5477
+ multiSelect: boolean;
5478
+ }>;
5479
+ type AskUserQuestion = z.infer<typeof AskUserQuestionSchema>;
5480
+ /**
5481
+ * Ask user message payload (Worker → App)
5482
+ */
5483
+ declare const AskUserMessageSchema: z.ZodObject<{
5484
+ type: z.ZodLiteral<"ask_user">;
5485
+ questions: z.ZodArray<z.ZodObject<{
5486
+ question: z.ZodString;
5487
+ header: z.ZodString;
5488
+ multiSelect: z.ZodBoolean;
5489
+ options: z.ZodArray<z.ZodObject<{
5490
+ label: z.ZodString;
5491
+ description: z.ZodString;
5492
+ }, "strip", z.ZodTypeAny, {
5493
+ description: string;
5494
+ label: string;
5495
+ }, {
5496
+ description: string;
5497
+ label: string;
5498
+ }>, "many">;
5499
+ }, "strip", z.ZodTypeAny, {
5500
+ options: {
5501
+ description: string;
5502
+ label: string;
5503
+ }[];
5504
+ question: string;
5505
+ header: string;
5506
+ multiSelect: boolean;
5507
+ }, {
5508
+ options: {
5509
+ description: string;
5510
+ label: string;
5511
+ }[];
5512
+ question: string;
5513
+ header: string;
5514
+ multiSelect: boolean;
5515
+ }>, "many">;
5516
+ }, "strip", z.ZodTypeAny, {
5517
+ type: "ask_user";
5518
+ questions: {
5519
+ options: {
5520
+ description: string;
5521
+ label: string;
5522
+ }[];
5523
+ question: string;
5524
+ header: string;
5525
+ multiSelect: boolean;
5526
+ }[];
5527
+ }, {
5528
+ type: "ask_user";
5529
+ questions: {
5530
+ options: {
5531
+ description: string;
5532
+ label: string;
5533
+ }[];
5534
+ question: string;
5535
+ header: string;
5536
+ multiSelect: boolean;
5537
+ }[];
5538
+ }>;
5539
+ type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
5540
+ /**
5541
+ * Ask user response payload (App → Worker)
5542
+ * Each answer is:
5543
+ * - Selected option label(s), comma-separated for multiSelect
5544
+ * - "other:<custom text>" when "Other" option is selected with custom input
5545
+ */
5546
+ declare const AskUserResponseMessageSchema: z.ZodObject<{
5547
+ type: z.ZodLiteral<"ask_user_response">;
5548
+ answers: z.ZodArray<z.ZodString, "many">;
5549
+ }, "strip", z.ZodTypeAny, {
5550
+ type: "ask_user_response";
5551
+ answers: string[];
5552
+ }, {
5553
+ type: "ask_user_response";
5554
+ answers: string[];
5555
+ }>;
5556
+ type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
5557
+ /**
5558
+ * Union type for task message payload
5559
+ * - SDKMessage: Normal agent messages
5560
+ * - AskUserMessage: Worker asking user questions
5561
+ * - AskUserResponseMessage: User responding to questions
5562
+ */
5563
+ type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage;
5564
+ /**
5565
+ * Type guard to check if message is AskUserMessage
5566
+ */
5567
+ declare function isAskUserMessage(message: TaskMessagePayload): message is AskUserMessage;
5568
+ /**
5569
+ * Type guard to check if message is AskUserResponseMessage
5570
+ */
5571
+ declare function isAskUserResponseMessage(message: TaskMessagePayload): message is AskUserResponseMessage;
5572
+ /**
5573
+ * Type guard to check if message is SDKMessage (not ask_user related)
5574
+ */
5575
+ declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
5371
5576
  /**
5372
5577
  * Generate a unique event ID
5373
5578
  * Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
@@ -5475,16 +5680,19 @@ declare const WorkerReadySchema: z.ZodObject<{
5475
5680
  taskId: z.ZodString;
5476
5681
  machineId: z.ZodString;
5477
5682
  timestamp: z.ZodString;
5683
+ duration: z.ZodOptional<z.ZodNumber>;
5478
5684
  }, "strip", z.ZodTypeAny, {
5479
5685
  machineId: string;
5480
5686
  taskId: string;
5481
5687
  eventId: string;
5482
5688
  timestamp: string;
5689
+ duration?: number | undefined;
5483
5690
  }, {
5484
5691
  machineId: string;
5485
5692
  taskId: string;
5486
5693
  eventId: string;
5487
5694
  timestamp: string;
5695
+ duration?: number | undefined;
5488
5696
  }>;
5489
5697
  type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
5490
5698
  declare const WorkerAliveEventSchema: z.ZodObject<{
@@ -5802,77 +6010,43 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
5802
6010
  } & {
5803
6011
  taskId: z.ZodString;
5804
6012
  from: z.ZodEnum<["app", "api-server", "machine", "worker"]>;
5805
- message: z.ZodOptional<z.ZodType<SDKMessage, z.ZodTypeDef, SDKMessage>>;
6013
+ opCode: z.ZodOptional<z.ZodString>;
6014
+ message: z.ZodOptional<z.ZodType<TaskMessagePayload, z.ZodTypeDef, TaskMessagePayload>>;
5806
6015
  encryptedMessage: z.ZodOptional<z.ZodString>;
5807
6016
  }, "strip", z.ZodTypeAny, {
5808
6017
  taskId: string;
5809
6018
  eventId: string;
5810
6019
  from: "machine" | "app" | "api-server" | "worker";
5811
- message?: SDKMessage | undefined;
6020
+ message?: TaskMessagePayload | undefined;
5812
6021
  encryptedMessage?: string | undefined;
6022
+ opCode?: string | undefined;
5813
6023
  }, {
5814
6024
  taskId: string;
5815
6025
  eventId: string;
5816
6026
  from: "machine" | "app" | "api-server" | "worker";
5817
- message?: SDKMessage | undefined;
6027
+ message?: TaskMessagePayload | undefined;
5818
6028
  encryptedMessage?: string | undefined;
6029
+ opCode?: string | undefined;
5819
6030
  }>, {
5820
6031
  taskId: string;
5821
6032
  eventId: string;
5822
6033
  from: "machine" | "app" | "api-server" | "worker";
5823
- message?: SDKMessage | undefined;
6034
+ message?: TaskMessagePayload | undefined;
5824
6035
  encryptedMessage?: string | undefined;
6036
+ opCode?: string | undefined;
5825
6037
  }, {
5826
6038
  taskId: string;
5827
6039
  eventId: string;
5828
6040
  from: "machine" | "app" | "api-server" | "worker";
5829
- message?: SDKMessage | undefined;
6041
+ message?: TaskMessagePayload | undefined;
5830
6042
  encryptedMessage?: string | undefined;
6043
+ opCode?: string | undefined;
5831
6044
  }>;
5832
6045
  type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
5833
6046
  /**
5834
6047
  * Task state type
5835
6048
  */
5836
6049
  type TaskState = "new" | "initializing" | "active" | "stopped" | "completed" | "cancelled" | "error";
5837
- declare const RequirePermissionSchema: z.ZodObject<{
5838
- eventId: z.ZodString;
5839
- } & {
5840
- taskId: z.ZodString;
5841
- toolName: z.ZodString;
5842
- toolInput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5843
- }, "strip", z.ZodTypeAny, {
5844
- taskId: string;
5845
- eventId: string;
5846
- toolName: string;
5847
- toolInput: Record<string, unknown>;
5848
- }, {
5849
- taskId: string;
5850
- eventId: string;
5851
- toolName: string;
5852
- toolInput: Record<string, unknown>;
5853
- }>;
5854
- type RequirePermissionData = z.infer<typeof RequirePermissionSchema>;
5855
- declare const RequirePermissionResponseSchema: z.ZodObject<{
5856
- eventId: z.ZodString;
5857
- } & {
5858
- taskId: z.ZodString;
5859
- opCode: z.ZodString;
5860
- behavior: z.ZodEnum<["allow", "deny"]>;
5861
- message: z.ZodOptional<z.ZodString>;
5862
- }, "strip", z.ZodTypeAny, {
5863
- taskId: string;
5864
- eventId: string;
5865
- opCode: string;
5866
- behavior: "allow" | "deny";
5867
- message?: string | undefined;
5868
- }, {
5869
- taskId: string;
5870
- eventId: string;
5871
- opCode: string;
5872
- behavior: "allow" | "deny";
5873
- message?: string | undefined;
5874
- }>;
5875
- type RequirePermissionResponseData = z.infer<typeof RequirePermissionResponseSchema>;
5876
6050
  declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
5877
6051
  eventId: z.ZodString;
5878
6052
  } & {
@@ -6034,13 +6208,13 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6034
6208
  modifiedAt: z.ZodString;
6035
6209
  accessDenied: z.ZodOptional<z.ZodBoolean>;
6036
6210
  }, "strip", z.ZodTypeAny, {
6037
- type: "file" | "directory";
6211
+ type: "directory" | "file";
6038
6212
  name: string;
6039
6213
  size: number;
6040
6214
  modifiedAt: string;
6041
6215
  accessDenied?: boolean | undefined;
6042
6216
  }, {
6043
- type: "file" | "directory";
6217
+ type: "directory" | "file";
6044
6218
  name: string;
6045
6219
  size: number;
6046
6220
  modifiedAt: string;
@@ -6063,7 +6237,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6063
6237
  mimeType?: string | undefined;
6064
6238
  }>;
6065
6239
  }, "strip", z.ZodTypeAny, {
6066
- type: "file" | "directory";
6240
+ type: "directory" | "file";
6067
6241
  metadata: {
6068
6242
  size: number;
6069
6243
  modifiedAt: string;
@@ -6071,7 +6245,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6071
6245
  mimeType?: string | undefined;
6072
6246
  };
6073
6247
  entries?: {
6074
- type: "file" | "directory";
6248
+ type: "directory" | "file";
6075
6249
  name: string;
6076
6250
  size: number;
6077
6251
  modifiedAt: string;
@@ -6080,7 +6254,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6080
6254
  content?: string | undefined;
6081
6255
  encryptedContent?: string | undefined;
6082
6256
  }, {
6083
- type: "file" | "directory";
6257
+ type: "directory" | "file";
6084
6258
  metadata: {
6085
6259
  size: number;
6086
6260
  modifiedAt: string;
@@ -6088,7 +6262,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6088
6262
  mimeType?: string | undefined;
6089
6263
  };
6090
6264
  entries?: {
6091
- type: "file" | "directory";
6265
+ type: "directory" | "file";
6092
6266
  name: string;
6093
6267
  size: number;
6094
6268
  modifiedAt: string;
@@ -6113,7 +6287,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6113
6287
  eventId: string;
6114
6288
  requestId: string;
6115
6289
  data?: {
6116
- type: "file" | "directory";
6290
+ type: "directory" | "file";
6117
6291
  metadata: {
6118
6292
  size: number;
6119
6293
  modifiedAt: string;
@@ -6121,7 +6295,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6121
6295
  mimeType?: string | undefined;
6122
6296
  };
6123
6297
  entries?: {
6124
- type: "file" | "directory";
6298
+ type: "directory" | "file";
6125
6299
  name: string;
6126
6300
  size: number;
6127
6301
  modifiedAt: string;
@@ -6141,7 +6315,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6141
6315
  eventId: string;
6142
6316
  requestId: string;
6143
6317
  data?: {
6144
- type: "file" | "directory";
6318
+ type: "directory" | "file";
6145
6319
  metadata: {
6146
6320
  size: number;
6147
6321
  modifiedAt: string;
@@ -6149,7 +6323,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
6149
6323
  mimeType?: string | undefined;
6150
6324
  };
6151
6325
  entries?: {
6152
- type: "file" | "directory";
6326
+ type: "directory" | "file";
6153
6327
  name: string;
6154
6328
  size: number;
6155
6329
  modifiedAt: string;
@@ -6254,14 +6428,14 @@ declare const SystemMessageSchema: z.ZodObject<{
6254
6428
  createdAt: z.ZodString;
6255
6429
  updatedAt: z.ZodString;
6256
6430
  }, "strip", z.ZodTypeAny, {
6257
- id: string;
6258
6431
  type: "direct" | "group";
6432
+ id: string;
6259
6433
  createdAt: string;
6260
6434
  updatedAt: string;
6261
6435
  owner: string;
6262
6436
  }, {
6263
- id: string;
6264
6437
  type: "direct" | "group";
6438
+ id: string;
6265
6439
  createdAt: string;
6266
6440
  updatedAt: string;
6267
6441
  owner: string;
@@ -6274,16 +6448,16 @@ declare const SystemMessageSchema: z.ZodObject<{
6274
6448
  createdAt: z.ZodString;
6275
6449
  updatedAt: z.ZodString;
6276
6450
  }, "strip", z.ZodTypeAny, {
6277
- id: string;
6278
6451
  type: "human" | "agent";
6452
+ id: string;
6279
6453
  createdAt: string;
6280
6454
  chatId: string;
6281
6455
  updatedAt: string;
6282
6456
  memberCode: string;
6283
6457
  role: string;
6284
6458
  }, {
6285
- id: string;
6286
6459
  type: "human" | "agent";
6460
+ id: string;
6287
6461
  createdAt: string;
6288
6462
  chatId: string;
6289
6463
  updatedAt: string;
@@ -6357,14 +6531,14 @@ declare const SystemMessageSchema: z.ZodObject<{
6357
6531
  }, "strip", z.ZodTypeAny, {
6358
6532
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
6359
6533
  data: {
6360
- id: string;
6361
6534
  type: "direct" | "group";
6535
+ id: string;
6362
6536
  createdAt: string;
6363
6537
  updatedAt: string;
6364
6538
  owner: string;
6365
6539
  } | {
6366
- id: string;
6367
6540
  type: "human" | "agent";
6541
+ id: string;
6368
6542
  createdAt: string;
6369
6543
  chatId: string;
6370
6544
  updatedAt: string;
@@ -6399,14 +6573,14 @@ declare const SystemMessageSchema: z.ZodObject<{
6399
6573
  }, {
6400
6574
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
6401
6575
  data: {
6402
- id: string;
6403
6576
  type: "direct" | "group";
6577
+ id: string;
6404
6578
  createdAt: string;
6405
6579
  updatedAt: string;
6406
6580
  owner: string;
6407
6581
  } | {
6408
- id: string;
6409
6582
  type: "human" | "agent";
6583
+ id: string;
6410
6584
  createdAt: string;
6411
6585
  chatId: string;
6412
6586
  updatedAt: string;
@@ -6440,7 +6614,7 @@ declare const SystemMessageSchema: z.ZodObject<{
6440
6614
  timestamp: string;
6441
6615
  }>;
6442
6616
  type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
6443
- type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | RequirePermissionData | RequirePermissionResponseData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
6617
+ type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
6444
6618
  type EventMap = {
6445
6619
  "app-alive": AppAliveEventData;
6446
6620
  "api-server-alive": ApiServerAliveEventData;
@@ -6459,8 +6633,6 @@ type EventMap = {
6459
6633
  "task-state-change": TaskStateChangeEventData;
6460
6634
  "update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
6461
6635
  "task-artifacts-updated": TaskArtifactsUpdatedEventData;
6462
- "require-permission": RequirePermissionData;
6463
- "require-permission-response": RequirePermissionResponseData;
6464
6636
  "merge-request": MergeRequestEventData;
6465
6637
  "system-message": SystemMessageEventData;
6466
6638
  "credit-exhausted": CreditExhaustedEventData;
@@ -6473,7 +6645,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
6473
6645
  /**
6474
6646
  * only sent by worker and which need to send to human in chat room
6475
6647
  */
6476
- type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "require-permission" | "merge-request";
6648
+ type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "merge-request";
6477
6649
  declare const workerTaskEvents: WorkerTaskEvent[];
6478
6650
 
6479
6651
  type ClientType = 'user' | 'worker' | 'machine';
@@ -6523,26 +6695,6 @@ interface AgentMetadata {
6523
6695
  version: string;
6524
6696
  description?: string;
6525
6697
  }
6526
- /**
6527
- * MCP Server configuration from .claude/mcp-servers/<server-name>/config.json
6528
- */
6529
- interface MCPServerConfig {
6530
- name: string;
6531
- command?: string;
6532
- args?: string[];
6533
- env?: Record<string, string>;
6534
- url?: string;
6535
- transport?: 'stdio' | 'http';
6536
- }
6537
- /**
6538
- * Skill configuration from .claude/skills/<skill-name>/skill.json
6539
- */
6540
- interface SkillConfig {
6541
- name: string;
6542
- description?: string;
6543
- enabled: boolean;
6544
- implementation?: string;
6545
- }
6546
6698
  /**
6547
6699
  * Claude-specific agent configuration from .claude/config.json
6548
6700
  */
@@ -6559,23 +6711,11 @@ interface ClaudeAgentConfig {
6559
6711
  permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
6560
6712
  allowedTools?: string[];
6561
6713
  };
6562
- mcpServers?: {
6563
- enabled: string[];
6564
- directory: string;
6565
- };
6566
- skills?: {
6567
- enabled: string[];
6568
- directory: string;
6714
+ pullRequestPrompt?: {
6715
+ path: string;
6716
+ mode?: 'append' | 'replace';
6569
6717
  };
6570
6718
  }
6571
- /**
6572
- * Loaded MCP server instance ready for SDK
6573
- */
6574
- interface LoadedMCPServer {
6575
- name: string;
6576
- config: MCPServerConfig;
6577
- instance: any;
6578
- }
6579
6719
  /**
6580
6720
  * Complete agent configuration after loading
6581
6721
  */
@@ -6585,8 +6725,10 @@ interface AgentConfig {
6585
6725
  claude?: {
6586
6726
  config: ClaudeAgentConfig;
6587
6727
  systemPrompt?: string;
6588
- mcpServers: Record<string, LoadedMCPServer>;
6589
- skills: SkillConfig[];
6728
+ /** Pull request prompt template content */
6729
+ prPromptTemplate?: string;
6730
+ /** Absolute paths to discovered plugins */
6731
+ plugins: string[];
6590
6732
  };
6591
6733
  codex?: {};
6592
6734
  }
@@ -6664,50 +6806,6 @@ declare const AgentMetadataSchema: z.ZodObject<{
6664
6806
  version: string;
6665
6807
  description?: string | undefined;
6666
6808
  }>;
6667
- /**
6668
- * MCP Server configuration schema
6669
- */
6670
- declare const MCPServerConfigSchema: z.ZodObject<{
6671
- name: z.ZodString;
6672
- command: z.ZodOptional<z.ZodString>;
6673
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6674
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6675
- url: z.ZodOptional<z.ZodString>;
6676
- transport: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
6677
- }, "strip", z.ZodTypeAny, {
6678
- name: string;
6679
- url?: string | undefined;
6680
- command?: string | undefined;
6681
- args?: string[] | undefined;
6682
- env?: Record<string, string> | undefined;
6683
- transport?: "stdio" | "http" | undefined;
6684
- }, {
6685
- name: string;
6686
- url?: string | undefined;
6687
- command?: string | undefined;
6688
- args?: string[] | undefined;
6689
- env?: Record<string, string> | undefined;
6690
- transport?: "stdio" | "http" | undefined;
6691
- }>;
6692
- /**
6693
- * Skill configuration schema
6694
- */
6695
- declare const SkillConfigSchema: z.ZodObject<{
6696
- name: z.ZodString;
6697
- description: z.ZodOptional<z.ZodString>;
6698
- enabled: z.ZodBoolean;
6699
- implementation: z.ZodOptional<z.ZodString>;
6700
- }, "strip", z.ZodTypeAny, {
6701
- name: string;
6702
- enabled: boolean;
6703
- description?: string | undefined;
6704
- implementation?: string | undefined;
6705
- }, {
6706
- name: string;
6707
- enabled: boolean;
6708
- description?: string | undefined;
6709
- implementation?: string | undefined;
6710
- }>;
6711
6809
  /**
6712
6810
  * Claude agent configuration schema (.claude/config.json)
6713
6811
  */
@@ -6736,25 +6834,15 @@ declare const ClaudeConfigSchema: z.ZodObject<{
6736
6834
  permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
6737
6835
  allowedTools?: string[] | undefined;
6738
6836
  }>>;
6739
- mcpServers: z.ZodOptional<z.ZodObject<{
6740
- enabled: z.ZodArray<z.ZodString, "many">;
6741
- directory: z.ZodString;
6742
- }, "strip", z.ZodTypeAny, {
6743
- directory: string;
6744
- enabled: string[];
6745
- }, {
6746
- directory: string;
6747
- enabled: string[];
6748
- }>>;
6749
- skills: z.ZodOptional<z.ZodObject<{
6750
- enabled: z.ZodArray<z.ZodString, "many">;
6751
- directory: z.ZodString;
6837
+ pullRequestPrompt: z.ZodOptional<z.ZodObject<{
6838
+ path: z.ZodString;
6839
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["append", "replace"]>>>;
6752
6840
  }, "strip", z.ZodTypeAny, {
6753
- directory: string;
6754
- enabled: string[];
6841
+ path: string;
6842
+ mode: "append" | "replace";
6755
6843
  }, {
6756
- directory: string;
6757
- enabled: string[];
6844
+ path: string;
6845
+ mode?: "append" | "replace" | undefined;
6758
6846
  }>>;
6759
6847
  }, "strip", z.ZodTypeAny, {
6760
6848
  model?: string | undefined;
@@ -6769,13 +6857,9 @@ declare const ClaudeConfigSchema: z.ZodObject<{
6769
6857
  permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
6770
6858
  allowedTools?: string[] | undefined;
6771
6859
  } | undefined;
6772
- mcpServers?: {
6773
- directory: string;
6774
- enabled: string[];
6775
- } | undefined;
6776
- skills?: {
6777
- directory: string;
6778
- enabled: string[];
6860
+ pullRequestPrompt?: {
6861
+ path: string;
6862
+ mode: "append" | "replace";
6779
6863
  } | undefined;
6780
6864
  }, {
6781
6865
  model?: string | undefined;
@@ -6790,13 +6874,9 @@ declare const ClaudeConfigSchema: z.ZodObject<{
6790
6874
  permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
6791
6875
  allowedTools?: string[] | undefined;
6792
6876
  } | undefined;
6793
- mcpServers?: {
6794
- directory: string;
6795
- enabled: string[];
6796
- } | undefined;
6797
- skills?: {
6798
- directory: string;
6799
- enabled: string[];
6877
+ pullRequestPrompt?: {
6878
+ path: string;
6879
+ mode?: "append" | "replace" | undefined;
6800
6880
  } | undefined;
6801
6881
  }>;
6802
6882
 
@@ -6828,9 +6908,6 @@ declare class MissingAgentFileError extends AgentError {
6828
6908
  * Agent configuration loader - main entry point for loading agent configurations
6829
6909
  */
6830
6910
 
6831
- /**
6832
- * Load complete agent configuration
6833
- */
6834
6911
  declare function loadAgentConfig(options: LoadAgentOptions): Promise<AgentConfig>;
6835
6912
 
6836
6913
  /**
@@ -6855,13 +6932,22 @@ declare function assertFileExists(filePath: string, description?: string): void;
6855
6932
  declare function assertAgentExists(agentDir: string, agentId: string): void;
6856
6933
 
6857
6934
  /**
6858
- * MCP Server configuration loader for agent system
6935
+ * Plugin loader for agent system
6936
+ *
6937
+ * Auto-discovers plugins in the plugins directory by looking for
6938
+ * directories containing .claude-plugin/plugin.json manifest files.
6939
+ * The SDK handles manifest parsing - we only need to verify existence.
6859
6940
  */
6860
-
6861
6941
  /**
6862
- * Load all MCP servers from agent's mcp-servers directory
6942
+ * Discover plugins in the plugins directory
6943
+ *
6944
+ * Scans the plugins directory for subdirectories containing valid plugin manifests
6945
+ * (.claude-plugin/plugin.json). Returns absolute paths to valid plugin directories.
6946
+ *
6947
+ * @param pluginsDir - Path to .claude/plugins/ directory
6948
+ * @returns Array of absolute paths to valid plugin directories
6863
6949
  */
6864
- declare function loadMcpServers(mcpServersDir: string, enabledServers: string[]): Promise<Record<string, LoadedMCPServer>>;
6950
+ declare function discoverPlugins(pluginsDir: string): string[];
6865
6951
 
6866
6952
  declare function encodeBase64(buffer: Uint8Array, variant?: 'base64' | 'base64url'): string;
6867
6953
  declare function encodeBase64Url(buffer: Uint8Array): string;
@@ -6932,5 +7018,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
6932
7018
  */
6933
7019
  declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
6934
7020
 
6935
- export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, 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, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, 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, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, 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, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
6936
- export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ArchiveTaskRequest, ArchiveTaskResponse, 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, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, 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, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
7021
+ export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, 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, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, 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, 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, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, 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, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
7022
+ export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, 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, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, 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, 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, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };