@agentrix/shared 1.0.5 → 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.cjs +90 -166
- package/dist/index.d.cts +370 -284
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -16,12 +16,12 @@ declare const ApiErrorSchema: z.ZodObject<{
|
|
|
16
16
|
message: z.ZodString;
|
|
17
17
|
details: z.ZodOptional<z.ZodAny>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
error: string;
|
|
20
19
|
message: string;
|
|
20
|
+
error: string;
|
|
21
21
|
details?: any;
|
|
22
22
|
}, {
|
|
23
|
-
error: string;
|
|
24
23
|
message: string;
|
|
24
|
+
error: string;
|
|
25
25
|
details?: any;
|
|
26
26
|
}>;
|
|
27
27
|
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
@@ -35,14 +35,14 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) =
|
|
|
35
35
|
limit: z.ZodNumber;
|
|
36
36
|
items: z.ZodArray<T, "many">;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
limit: number;
|
|
38
39
|
total: number;
|
|
39
40
|
page: number;
|
|
40
|
-
limit: number;
|
|
41
41
|
items: T["_output"][];
|
|
42
42
|
}, {
|
|
43
|
+
limit: number;
|
|
43
44
|
total: number;
|
|
44
45
|
page: number;
|
|
45
|
-
limit: 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
|
|
202
|
-
encryptedSecret
|
|
201
|
+
salt?: string | undefined;
|
|
202
|
+
encryptedSecret?: string | undefined;
|
|
203
203
|
}, {
|
|
204
204
|
publicKey: string;
|
|
205
205
|
challenge: string;
|
|
206
206
|
signature: string;
|
|
207
|
-
salt
|
|
208
|
-
encryptedSecret
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -1017,15 +1037,15 @@ declare const ListTasksRequestSchema: z.ZodObject<{
|
|
|
1017
1037
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1018
1038
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1019
1039
|
}, "strip", z.ZodTypeAny, {
|
|
1020
|
-
limit: number;
|
|
1021
1040
|
chatId: string;
|
|
1022
1041
|
archived: boolean;
|
|
1042
|
+
limit: number;
|
|
1023
1043
|
cursor?: string | undefined;
|
|
1024
1044
|
}, {
|
|
1025
1045
|
chatId: string;
|
|
1026
|
-
limit?: number | undefined;
|
|
1027
1046
|
archived?: unknown;
|
|
1028
1047
|
cursor?: string | undefined;
|
|
1048
|
+
limit?: number | undefined;
|
|
1029
1049
|
}>;
|
|
1030
1050
|
type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
|
|
1031
1051
|
/**
|
|
@@ -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: "
|
|
1434
|
+
type: "directory" | "file";
|
|
1405
1435
|
name: string;
|
|
1406
1436
|
size: number;
|
|
1407
1437
|
modifiedAt: string;
|
|
1408
1438
|
}, {
|
|
1409
|
-
type: "
|
|
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: "
|
|
1457
|
+
type: "directory" | "file";
|
|
1428
1458
|
name: string;
|
|
1429
1459
|
size: number;
|
|
1430
1460
|
modifiedAt: string;
|
|
1431
1461
|
}, {
|
|
1432
|
-
type: "
|
|
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: "
|
|
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: "
|
|
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>;
|
|
@@ -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;
|
|
2728
2789
|
type: "claude" | "codex";
|
|
2729
2790
|
id: string;
|
|
2730
2791
|
avatar: string | null;
|
|
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;
|
|
2743
2804
|
type: "claude" | "codex";
|
|
2744
2805
|
id: string;
|
|
2745
2806
|
avatar: string | null;
|
|
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;
|
|
2779
2840
|
type: "claude" | "codex";
|
|
2780
2841
|
id: string;
|
|
2781
2842
|
avatar: string | null;
|
|
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;
|
|
2794
2855
|
type: "claude" | "codex";
|
|
2795
2856
|
id: string;
|
|
2796
2857
|
avatar: string | null;
|
|
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;
|
|
2811
2872
|
type: "claude" | "codex";
|
|
2812
2873
|
id: string;
|
|
2813
2874
|
avatar: string | null;
|
|
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;
|
|
2828
2889
|
type: "claude" | "codex";
|
|
2829
2890
|
id: string;
|
|
2830
2891
|
avatar: string | null;
|
|
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;
|
|
2864
2925
|
type: "claude" | "codex";
|
|
2865
2926
|
id: string;
|
|
2866
2927
|
avatar: string | null;
|
|
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;
|
|
2879
2940
|
type: "claude" | "codex";
|
|
2880
2941
|
id: string;
|
|
2881
2942
|
avatar: string | null;
|
|
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;
|
|
2949
3010
|
type: "claude" | "codex";
|
|
2950
3011
|
id: string;
|
|
2951
3012
|
avatar: string | null;
|
|
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;
|
|
2964
3025
|
type: "claude" | "codex";
|
|
2965
3026
|
id: string;
|
|
2966
3027
|
avatar: string | null;
|
|
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, {
|
|
3054
|
+
signature?: string | null | undefined;
|
|
2994
3055
|
type?: "claude" | "codex" | undefined;
|
|
2995
3056
|
avatar?: string | null | undefined;
|
|
2996
|
-
signature?: 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
|
}, {
|
|
3064
|
+
signature?: string | null | undefined;
|
|
3004
3065
|
type?: "claude" | "codex" | undefined;
|
|
3005
3066
|
avatar?: string | null | undefined;
|
|
3006
|
-
signature?: 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;
|
|
3034
3095
|
type: "claude" | "codex";
|
|
3035
3096
|
id: string;
|
|
3036
3097
|
avatar: string | null;
|
|
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;
|
|
3049
3110
|
type: "claude" | "codex";
|
|
3050
3111
|
id: string;
|
|
3051
3112
|
avatar: string | null;
|
|
3052
|
-
signature: string | null;
|
|
3053
3113
|
userId: string;
|
|
3054
3114
|
name: string;
|
|
3055
3115
|
description: string | null;
|
|
@@ -3614,12 +3674,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
|
|
|
3614
3674
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3615
3675
|
fileIds: z.ZodOptional<z.ZodString>;
|
|
3616
3676
|
}, "strip", z.ZodTypeAny, {
|
|
3617
|
-
page: number;
|
|
3618
3677
|
limit: number;
|
|
3678
|
+
page: number;
|
|
3619
3679
|
fileIds?: string | undefined;
|
|
3620
3680
|
}, {
|
|
3621
|
-
page?: number | undefined;
|
|
3622
3681
|
limit?: number | undefined;
|
|
3682
|
+
page?: number | undefined;
|
|
3623
3683
|
fileIds?: string | undefined;
|
|
3624
3684
|
}>;
|
|
3625
3685
|
type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
|
|
@@ -3650,9 +3710,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
3650
3710
|
contentType: string;
|
|
3651
3711
|
}>, "many">;
|
|
3652
3712
|
}, "strip", z.ZodTypeAny, {
|
|
3653
|
-
total: number;
|
|
3654
|
-
page: number;
|
|
3655
|
-
limit: number;
|
|
3656
3713
|
files: {
|
|
3657
3714
|
createdAt: string;
|
|
3658
3715
|
name: string;
|
|
@@ -3660,10 +3717,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
3660
3717
|
fileId: string;
|
|
3661
3718
|
contentType: string;
|
|
3662
3719
|
}[];
|
|
3663
|
-
|
|
3720
|
+
limit: number;
|
|
3664
3721
|
total: number;
|
|
3665
3722
|
page: number;
|
|
3666
|
-
|
|
3723
|
+
}, {
|
|
3667
3724
|
files: {
|
|
3668
3725
|
createdAt: string;
|
|
3669
3726
|
name: string;
|
|
@@ -3671,6 +3728,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
3671
3728
|
fileId: string;
|
|
3672
3729
|
contentType: string;
|
|
3673
3730
|
}[];
|
|
3731
|
+
limit: number;
|
|
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;
|
|
@@ -4820,8 +4880,8 @@ 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
4886
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
4827
4887
|
id: 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
|
/**
|
|
@@ -4911,8 +4971,8 @@ 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
4977
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
4918
4978
|
id: 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
|
/**
|
|
@@ -5021,8 +5081,8 @@ 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
5087
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
5028
5088
|
id: 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,8 +5134,8 @@ 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, {
|
|
@@ -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,8 +5165,8 @@ 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;
|
|
@@ -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>;
|
|
@@ -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
|
-
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
6265
|
+
type: "directory" | "file";
|
|
6092
6266
|
name: string;
|
|
6093
6267
|
size: number;
|
|
6094
6268
|
modifiedAt: string;
|
|
@@ -6101,23 +6275,19 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6101
6275
|
code: z.ZodString;
|
|
6102
6276
|
message: z.ZodString;
|
|
6103
6277
|
}, "strip", z.ZodTypeAny, {
|
|
6104
|
-
message: string;
|
|
6105
6278
|
code: string;
|
|
6106
|
-
}, {
|
|
6107
6279
|
message: string;
|
|
6280
|
+
}, {
|
|
6108
6281
|
code: string;
|
|
6282
|
+
message: string;
|
|
6109
6283
|
}>>;
|
|
6110
6284
|
}, "strip", z.ZodTypeAny, {
|
|
6111
6285
|
success: boolean;
|
|
6112
6286
|
taskId: string;
|
|
6113
6287
|
eventId: string;
|
|
6114
6288
|
requestId: string;
|
|
6115
|
-
error?: {
|
|
6116
|
-
message: string;
|
|
6117
|
-
code: string;
|
|
6118
|
-
} | undefined;
|
|
6119
6289
|
data?: {
|
|
6120
|
-
type: "
|
|
6290
|
+
type: "directory" | "file";
|
|
6121
6291
|
metadata: {
|
|
6122
6292
|
size: number;
|
|
6123
6293
|
modifiedAt: string;
|
|
@@ -6125,7 +6295,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6125
6295
|
mimeType?: string | undefined;
|
|
6126
6296
|
};
|
|
6127
6297
|
entries?: {
|
|
6128
|
-
type: "
|
|
6298
|
+
type: "directory" | "file";
|
|
6129
6299
|
name: string;
|
|
6130
6300
|
size: number;
|
|
6131
6301
|
modifiedAt: string;
|
|
@@ -6134,18 +6304,18 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6134
6304
|
content?: string | undefined;
|
|
6135
6305
|
encryptedContent?: string | undefined;
|
|
6136
6306
|
} | undefined;
|
|
6307
|
+
error?: {
|
|
6308
|
+
code: string;
|
|
6309
|
+
message: string;
|
|
6310
|
+
} | undefined;
|
|
6137
6311
|
notModified?: boolean | undefined;
|
|
6138
6312
|
}, {
|
|
6139
6313
|
success: boolean;
|
|
6140
6314
|
taskId: string;
|
|
6141
6315
|
eventId: string;
|
|
6142
6316
|
requestId: string;
|
|
6143
|
-
error?: {
|
|
6144
|
-
message: string;
|
|
6145
|
-
code: string;
|
|
6146
|
-
} | undefined;
|
|
6147
6317
|
data?: {
|
|
6148
|
-
type: "
|
|
6318
|
+
type: "directory" | "file";
|
|
6149
6319
|
metadata: {
|
|
6150
6320
|
size: number;
|
|
6151
6321
|
modifiedAt: string;
|
|
@@ -6153,7 +6323,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6153
6323
|
mimeType?: string | undefined;
|
|
6154
6324
|
};
|
|
6155
6325
|
entries?: {
|
|
6156
|
-
type: "
|
|
6326
|
+
type: "directory" | "file";
|
|
6157
6327
|
name: string;
|
|
6158
6328
|
size: number;
|
|
6159
6329
|
modifiedAt: string;
|
|
@@ -6162,6 +6332,10 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6162
6332
|
content?: string | undefined;
|
|
6163
6333
|
encryptedContent?: string | undefined;
|
|
6164
6334
|
} | undefined;
|
|
6335
|
+
error?: {
|
|
6336
|
+
code: string;
|
|
6337
|
+
message: string;
|
|
6338
|
+
} | undefined;
|
|
6165
6339
|
notModified?: boolean | undefined;
|
|
6166
6340
|
}>;
|
|
6167
6341
|
type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
|
|
@@ -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 |
|
|
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" | "
|
|
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
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
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
|
-
|
|
6589
|
-
|
|
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
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
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
|
-
|
|
6754
|
-
|
|
6841
|
+
path: string;
|
|
6842
|
+
mode: "append" | "replace";
|
|
6755
6843
|
}, {
|
|
6756
|
-
|
|
6757
|
-
|
|
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
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
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
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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,
|
|
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,
|
|
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 };
|