@agentrix/shared 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +568 -549
- package/package.json +1 -1
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
|
/**
|
|
@@ -230,21 +230,21 @@ declare const SignatureAuthResponseSchema: z.ZodObject<{
|
|
|
230
230
|
avatar: string | null;
|
|
231
231
|
}>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
-
token: string;
|
|
234
233
|
user: {
|
|
235
234
|
id: string;
|
|
236
235
|
username: string;
|
|
237
236
|
email: string | null;
|
|
238
237
|
avatar: string | null;
|
|
239
238
|
};
|
|
240
|
-
}, {
|
|
241
239
|
token: string;
|
|
240
|
+
}, {
|
|
242
241
|
user: {
|
|
243
242
|
id: string;
|
|
244
243
|
username: string;
|
|
245
244
|
email: string | null;
|
|
246
245
|
avatar: string | null;
|
|
247
246
|
};
|
|
247
|
+
token: string;
|
|
248
248
|
}>;
|
|
249
249
|
type SignatureAuthResponse = z.infer<typeof SignatureAuthResponseSchema>;
|
|
250
250
|
/**
|
|
@@ -281,9 +281,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
281
281
|
username: string;
|
|
282
282
|
email: string | null;
|
|
283
283
|
avatar: string | null;
|
|
284
|
+
createdAt: string;
|
|
284
285
|
encryptedSecret: string | null;
|
|
285
286
|
secretSalt: string | null;
|
|
286
|
-
createdAt: string;
|
|
287
287
|
oauthAccounts?: {
|
|
288
288
|
username: string;
|
|
289
289
|
email: string | null;
|
|
@@ -295,9 +295,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
295
295
|
username: string;
|
|
296
296
|
email: string | null;
|
|
297
297
|
avatar: string | null;
|
|
298
|
+
createdAt: string;
|
|
298
299
|
encryptedSecret: string | null;
|
|
299
300
|
secretSalt: string | null;
|
|
300
|
-
createdAt: string;
|
|
301
301
|
oauthAccounts?: {
|
|
302
302
|
username: string;
|
|
303
303
|
email: string | null;
|
|
@@ -311,9 +311,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
311
311
|
username: string;
|
|
312
312
|
email: string | null;
|
|
313
313
|
avatar: string | null;
|
|
314
|
+
createdAt: string;
|
|
314
315
|
encryptedSecret: string | null;
|
|
315
316
|
secretSalt: string | null;
|
|
316
|
-
createdAt: string;
|
|
317
317
|
oauthAccounts?: {
|
|
318
318
|
username: string;
|
|
319
319
|
email: string | null;
|
|
@@ -327,9 +327,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
327
327
|
username: string;
|
|
328
328
|
email: string | null;
|
|
329
329
|
avatar: string | null;
|
|
330
|
+
createdAt: string;
|
|
330
331
|
encryptedSecret: string | null;
|
|
331
332
|
secretSalt: string | null;
|
|
332
|
-
createdAt: string;
|
|
333
333
|
oauthAccounts?: {
|
|
334
334
|
username: string;
|
|
335
335
|
email: string | null;
|
|
@@ -480,7 +480,6 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
480
480
|
}[] | undefined;
|
|
481
481
|
}>;
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
|
-
token: string;
|
|
484
483
|
user: {
|
|
485
484
|
id: string;
|
|
486
485
|
username: string;
|
|
@@ -493,8 +492,8 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
493
492
|
avatarUrl: string;
|
|
494
493
|
}[] | undefined;
|
|
495
494
|
};
|
|
496
|
-
}, {
|
|
497
495
|
token: string;
|
|
496
|
+
}, {
|
|
498
497
|
user: {
|
|
499
498
|
id: string;
|
|
500
499
|
username: string;
|
|
@@ -507,6 +506,7 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
507
506
|
avatarUrl: string;
|
|
508
507
|
}[] | undefined;
|
|
509
508
|
};
|
|
509
|
+
token: string;
|
|
510
510
|
}>;
|
|
511
511
|
type OAuthCallbackResponse = z.infer<typeof OAuthCallbackResponseSchema>;
|
|
512
512
|
/**
|
|
@@ -594,13 +594,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
|
|
|
594
594
|
content: z.ZodString;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
596
|
id: string;
|
|
597
|
-
token: string;
|
|
598
597
|
state: "authorized";
|
|
598
|
+
token: string;
|
|
599
599
|
content: string;
|
|
600
600
|
}, {
|
|
601
601
|
id: string;
|
|
602
|
-
token: string;
|
|
603
602
|
state: "authorized";
|
|
603
|
+
token: string;
|
|
604
604
|
content: string;
|
|
605
605
|
}>;
|
|
606
606
|
type MachineAuthAuthorizedResponse = z.infer<typeof MachineAuthAuthorizedResponseSchema>;
|
|
@@ -621,9 +621,9 @@ type MachineApprovalStatusQuery = z.infer<typeof MachineApprovalStatusQuerySchem
|
|
|
621
621
|
declare const ApprovalStatusResponseSchema: z.ZodObject<{
|
|
622
622
|
status: z.ZodEnum<["pending", "approved"]>;
|
|
623
623
|
}, "strip", z.ZodTypeAny, {
|
|
624
|
-
status: "
|
|
624
|
+
status: "approved" | "pending";
|
|
625
625
|
}, {
|
|
626
|
-
status: "
|
|
626
|
+
status: "approved" | "pending";
|
|
627
627
|
}>;
|
|
628
628
|
type ApprovalStatusResponse = z.infer<typeof ApprovalStatusResponseSchema>;
|
|
629
629
|
/**
|
|
@@ -751,9 +751,8 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
|
|
|
751
751
|
canMergePr: boolean;
|
|
752
752
|
}>;
|
|
753
753
|
}, "strip", z.ZodTypeAny, {
|
|
754
|
-
success: true;
|
|
755
|
-
shareToken: string;
|
|
756
754
|
taskId: string;
|
|
755
|
+
success: true;
|
|
757
756
|
permissions: {
|
|
758
757
|
canSendMessage: boolean;
|
|
759
758
|
canCreatePr: boolean;
|
|
@@ -761,10 +760,10 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
|
|
|
761
760
|
canViewPr: boolean;
|
|
762
761
|
canMergePr: boolean;
|
|
763
762
|
};
|
|
764
|
-
}, {
|
|
765
|
-
success: true;
|
|
766
763
|
shareToken: string;
|
|
764
|
+
}, {
|
|
767
765
|
taskId: string;
|
|
766
|
+
success: true;
|
|
768
767
|
permissions: {
|
|
769
768
|
canSendMessage: boolean;
|
|
770
769
|
canCreatePr: boolean;
|
|
@@ -772,6 +771,7 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
|
|
|
772
771
|
canViewPr: boolean;
|
|
773
772
|
canMergePr: boolean;
|
|
774
773
|
};
|
|
774
|
+
shareToken: string;
|
|
775
775
|
}>;
|
|
776
776
|
type ShareAuthResponse = z.infer<typeof ShareAuthResponseSchema>;
|
|
777
777
|
|
|
@@ -800,11 +800,11 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
800
800
|
}, "strip", z.ZodTypeAny, {
|
|
801
801
|
chatId: string;
|
|
802
802
|
message?: SDKUserMessage | undefined;
|
|
803
|
-
machineId?: string | undefined;
|
|
804
|
-
cloudId?: string | undefined;
|
|
805
803
|
encryptedMessage?: string | undefined;
|
|
806
804
|
cwd?: string | undefined;
|
|
807
805
|
forceUserCwd?: boolean | undefined;
|
|
806
|
+
machineId?: string | undefined;
|
|
807
|
+
cloudId?: string | undefined;
|
|
808
808
|
repositoryId?: string | undefined;
|
|
809
809
|
baseBranch?: string | undefined;
|
|
810
810
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -813,11 +813,11 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
813
813
|
}, {
|
|
814
814
|
chatId: string;
|
|
815
815
|
message?: SDKUserMessage | undefined;
|
|
816
|
-
machineId?: string | undefined;
|
|
817
|
-
cloudId?: string | undefined;
|
|
818
816
|
encryptedMessage?: string | undefined;
|
|
819
817
|
cwd?: string | undefined;
|
|
820
818
|
forceUserCwd?: boolean | undefined;
|
|
819
|
+
machineId?: string | undefined;
|
|
820
|
+
cloudId?: string | undefined;
|
|
821
821
|
repositoryId?: string | undefined;
|
|
822
822
|
baseBranch?: string | undefined;
|
|
823
823
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -826,11 +826,11 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
826
826
|
}>, {
|
|
827
827
|
chatId: string;
|
|
828
828
|
message?: SDKUserMessage | undefined;
|
|
829
|
-
machineId?: string | undefined;
|
|
830
|
-
cloudId?: string | undefined;
|
|
831
829
|
encryptedMessage?: string | undefined;
|
|
832
830
|
cwd?: string | undefined;
|
|
833
831
|
forceUserCwd?: boolean | undefined;
|
|
832
|
+
machineId?: string | undefined;
|
|
833
|
+
cloudId?: string | undefined;
|
|
834
834
|
repositoryId?: string | undefined;
|
|
835
835
|
baseBranch?: string | undefined;
|
|
836
836
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -839,11 +839,11 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
839
839
|
}, {
|
|
840
840
|
chatId: string;
|
|
841
841
|
message?: SDKUserMessage | undefined;
|
|
842
|
-
machineId?: string | undefined;
|
|
843
|
-
cloudId?: string | undefined;
|
|
844
842
|
encryptedMessage?: string | undefined;
|
|
845
843
|
cwd?: string | undefined;
|
|
846
844
|
forceUserCwd?: boolean | undefined;
|
|
845
|
+
machineId?: string | undefined;
|
|
846
|
+
cloudId?: string | undefined;
|
|
847
847
|
repositoryId?: string | undefined;
|
|
848
848
|
baseBranch?: string | undefined;
|
|
849
849
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -852,11 +852,11 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
852
852
|
}>, {
|
|
853
853
|
chatId: string;
|
|
854
854
|
message?: SDKUserMessage | undefined;
|
|
855
|
-
machineId?: string | undefined;
|
|
856
|
-
cloudId?: string | undefined;
|
|
857
855
|
encryptedMessage?: string | undefined;
|
|
858
856
|
cwd?: string | undefined;
|
|
859
857
|
forceUserCwd?: boolean | undefined;
|
|
858
|
+
machineId?: string | undefined;
|
|
859
|
+
cloudId?: string | undefined;
|
|
860
860
|
repositoryId?: string | undefined;
|
|
861
861
|
baseBranch?: string | undefined;
|
|
862
862
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -865,11 +865,11 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
865
865
|
}, {
|
|
866
866
|
chatId: string;
|
|
867
867
|
message?: SDKUserMessage | undefined;
|
|
868
|
-
machineId?: string | undefined;
|
|
869
|
-
cloudId?: string | undefined;
|
|
870
868
|
encryptedMessage?: string | undefined;
|
|
871
869
|
cwd?: string | undefined;
|
|
872
870
|
forceUserCwd?: boolean | undefined;
|
|
871
|
+
machineId?: string | undefined;
|
|
872
|
+
cloudId?: string | undefined;
|
|
873
873
|
repositoryId?: string | undefined;
|
|
874
874
|
baseBranch?: string | undefined;
|
|
875
875
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -893,11 +893,11 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
893
893
|
}, "strip", z.ZodTypeAny, {
|
|
894
894
|
chatId: string;
|
|
895
895
|
message?: SDKUserMessage | undefined;
|
|
896
|
-
machineId?: string | undefined;
|
|
897
|
-
cloudId?: string | undefined;
|
|
898
896
|
encryptedMessage?: string | undefined;
|
|
899
897
|
cwd?: string | undefined;
|
|
900
898
|
forceUserCwd?: boolean | undefined;
|
|
899
|
+
machineId?: string | undefined;
|
|
900
|
+
cloudId?: string | undefined;
|
|
901
901
|
repositoryId?: string | undefined;
|
|
902
902
|
baseBranch?: string | undefined;
|
|
903
903
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -906,11 +906,11 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
906
906
|
}, {
|
|
907
907
|
chatId: string;
|
|
908
908
|
message?: SDKUserMessage | undefined;
|
|
909
|
-
machineId?: string | undefined;
|
|
910
|
-
cloudId?: string | undefined;
|
|
911
909
|
encryptedMessage?: string | undefined;
|
|
912
910
|
cwd?: string | undefined;
|
|
913
911
|
forceUserCwd?: boolean | undefined;
|
|
912
|
+
machineId?: string | undefined;
|
|
913
|
+
cloudId?: string | undefined;
|
|
914
914
|
repositoryId?: string | undefined;
|
|
915
915
|
baseBranch?: string | undefined;
|
|
916
916
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -919,11 +919,11 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
919
919
|
}>, {
|
|
920
920
|
chatId: string;
|
|
921
921
|
message?: SDKUserMessage | undefined;
|
|
922
|
-
machineId?: string | undefined;
|
|
923
|
-
cloudId?: string | undefined;
|
|
924
922
|
encryptedMessage?: string | undefined;
|
|
925
923
|
cwd?: string | undefined;
|
|
926
924
|
forceUserCwd?: boolean | undefined;
|
|
925
|
+
machineId?: string | undefined;
|
|
926
|
+
cloudId?: string | undefined;
|
|
927
927
|
repositoryId?: string | undefined;
|
|
928
928
|
baseBranch?: string | undefined;
|
|
929
929
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -932,11 +932,11 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
932
932
|
}, {
|
|
933
933
|
chatId: string;
|
|
934
934
|
message?: SDKUserMessage | undefined;
|
|
935
|
-
machineId?: string | undefined;
|
|
936
|
-
cloudId?: string | undefined;
|
|
937
935
|
encryptedMessage?: string | undefined;
|
|
938
936
|
cwd?: string | undefined;
|
|
939
937
|
forceUserCwd?: boolean | undefined;
|
|
938
|
+
machineId?: string | undefined;
|
|
939
|
+
cloudId?: string | undefined;
|
|
940
940
|
repositoryId?: string | undefined;
|
|
941
941
|
baseBranch?: string | undefined;
|
|
942
942
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -945,11 +945,11 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
945
945
|
}>, {
|
|
946
946
|
chatId: string;
|
|
947
947
|
message?: SDKUserMessage | undefined;
|
|
948
|
-
machineId?: string | undefined;
|
|
949
|
-
cloudId?: string | undefined;
|
|
950
948
|
encryptedMessage?: string | undefined;
|
|
951
949
|
cwd?: string | undefined;
|
|
952
950
|
forceUserCwd?: boolean | undefined;
|
|
951
|
+
machineId?: string | undefined;
|
|
952
|
+
cloudId?: string | undefined;
|
|
953
953
|
repositoryId?: string | undefined;
|
|
954
954
|
baseBranch?: string | undefined;
|
|
955
955
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -958,11 +958,11 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
958
958
|
}, {
|
|
959
959
|
chatId: string;
|
|
960
960
|
message?: SDKUserMessage | undefined;
|
|
961
|
-
machineId?: string | undefined;
|
|
962
|
-
cloudId?: string | undefined;
|
|
963
961
|
encryptedMessage?: string | undefined;
|
|
964
962
|
cwd?: string | undefined;
|
|
965
963
|
forceUserCwd?: boolean | undefined;
|
|
964
|
+
machineId?: string | undefined;
|
|
965
|
+
cloudId?: string | undefined;
|
|
966
966
|
repositoryId?: string | undefined;
|
|
967
967
|
baseBranch?: string | undefined;
|
|
968
968
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -988,34 +988,34 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
988
988
|
createdAt: z.ZodString;
|
|
989
989
|
updatedAt: z.ZodString;
|
|
990
990
|
}, "strip", z.ZodTypeAny, {
|
|
991
|
-
createdAt: string;
|
|
992
|
-
state: string;
|
|
993
|
-
machineId: string | null;
|
|
994
|
-
cloudId: string | null;
|
|
995
|
-
userId: string;
|
|
996
|
-
taskId: string;
|
|
997
991
|
chatId: string;
|
|
998
992
|
forceUserCwd: boolean | null;
|
|
993
|
+
machineId: string | null;
|
|
994
|
+
cloudId: string | null;
|
|
999
995
|
repositoryId: string | null;
|
|
1000
996
|
baseBranch: string | null;
|
|
997
|
+
taskId: string;
|
|
1001
998
|
agentId: string;
|
|
999
|
+
userId: string;
|
|
1000
|
+
state: string;
|
|
1002
1001
|
title: string | null;
|
|
1003
1002
|
userCwd: string | null;
|
|
1003
|
+
createdAt: string;
|
|
1004
1004
|
updatedAt: string;
|
|
1005
1005
|
}, {
|
|
1006
|
-
createdAt: string;
|
|
1007
|
-
state: string;
|
|
1008
|
-
machineId: string | null;
|
|
1009
|
-
cloudId: string | null;
|
|
1010
|
-
userId: string;
|
|
1011
|
-
taskId: string;
|
|
1012
1006
|
chatId: string;
|
|
1013
1007
|
forceUserCwd: boolean | null;
|
|
1008
|
+
machineId: string | null;
|
|
1009
|
+
cloudId: string | null;
|
|
1014
1010
|
repositoryId: string | null;
|
|
1015
1011
|
baseBranch: string | null;
|
|
1012
|
+
taskId: string;
|
|
1016
1013
|
agentId: string;
|
|
1014
|
+
userId: string;
|
|
1015
|
+
state: string;
|
|
1017
1016
|
title: string | null;
|
|
1018
1017
|
userCwd: string | null;
|
|
1018
|
+
createdAt: string;
|
|
1019
1019
|
updatedAt: string;
|
|
1020
1020
|
}>;
|
|
1021
1021
|
type StartTaskResponse = z.infer<typeof StartTaskResponseSchema>;
|
|
@@ -1085,22 +1085,22 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1085
1085
|
updatedAt: z.ZodString;
|
|
1086
1086
|
}, "strip", z.ZodTypeAny, {
|
|
1087
1087
|
id: string;
|
|
1088
|
-
createdAt: string;
|
|
1089
|
-
state: string;
|
|
1090
|
-
machineId: string | null;
|
|
1091
|
-
cloudId: string | null;
|
|
1092
|
-
userId: string;
|
|
1093
1088
|
chatId: string;
|
|
1094
1089
|
cwd: string | null;
|
|
1095
1090
|
forceUserCwd: boolean | null;
|
|
1091
|
+
machineId: string | null;
|
|
1092
|
+
cloudId: string | null;
|
|
1096
1093
|
repositoryId: string | null;
|
|
1097
1094
|
baseBranch: string | null;
|
|
1098
1095
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1099
1096
|
dataEncryptionKey: string | null;
|
|
1100
1097
|
parentTaskId: string | null;
|
|
1101
1098
|
agentId: string;
|
|
1099
|
+
userId: string;
|
|
1100
|
+
state: string;
|
|
1102
1101
|
title: string | null;
|
|
1103
1102
|
userCwd: string | null;
|
|
1103
|
+
createdAt: string;
|
|
1104
1104
|
updatedAt: string;
|
|
1105
1105
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1106
1106
|
customTitle: string | null;
|
|
@@ -1122,22 +1122,22 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1122
1122
|
rootTaskId: string | null;
|
|
1123
1123
|
}, {
|
|
1124
1124
|
id: string;
|
|
1125
|
-
createdAt: string;
|
|
1126
|
-
state: string;
|
|
1127
|
-
machineId: string | null;
|
|
1128
|
-
cloudId: string | null;
|
|
1129
|
-
userId: string;
|
|
1130
1125
|
chatId: string;
|
|
1131
1126
|
cwd: string | null;
|
|
1132
1127
|
forceUserCwd: boolean | null;
|
|
1128
|
+
machineId: string | null;
|
|
1129
|
+
cloudId: string | null;
|
|
1133
1130
|
repositoryId: string | null;
|
|
1134
1131
|
baseBranch: string | null;
|
|
1135
1132
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1136
1133
|
dataEncryptionKey: string | null;
|
|
1137
1134
|
parentTaskId: string | null;
|
|
1138
1135
|
agentId: string;
|
|
1136
|
+
userId: string;
|
|
1137
|
+
state: string;
|
|
1139
1138
|
title: string | null;
|
|
1140
1139
|
userCwd: string | null;
|
|
1140
|
+
createdAt: string;
|
|
1141
1141
|
updatedAt: string;
|
|
1142
1142
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1143
1143
|
customTitle: string | null;
|
|
@@ -1168,15 +1168,15 @@ declare const ListTasksRequestSchema: z.ZodObject<{
|
|
|
1168
1168
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1169
1169
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1170
1170
|
}, "strip", z.ZodTypeAny, {
|
|
1171
|
-
limit: number;
|
|
1172
1171
|
chatId: string;
|
|
1173
1172
|
archived: boolean;
|
|
1173
|
+
limit: number;
|
|
1174
1174
|
cursor?: string | undefined;
|
|
1175
1175
|
}, {
|
|
1176
1176
|
chatId: string;
|
|
1177
|
-
limit?: number | undefined;
|
|
1178
1177
|
archived?: unknown;
|
|
1179
1178
|
cursor?: string | undefined;
|
|
1179
|
+
limit?: number | undefined;
|
|
1180
1180
|
}>;
|
|
1181
1181
|
type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
|
|
1182
1182
|
/**
|
|
@@ -1246,22 +1246,22 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1246
1246
|
updatedAt: z.ZodString;
|
|
1247
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1248
1248
|
id: string;
|
|
1249
|
-
createdAt: string;
|
|
1250
|
-
state: string;
|
|
1251
|
-
machineId: string | null;
|
|
1252
|
-
cloudId: string | null;
|
|
1253
|
-
userId: string;
|
|
1254
1249
|
chatId: string;
|
|
1255
1250
|
cwd: string | null;
|
|
1256
1251
|
forceUserCwd: boolean | null;
|
|
1252
|
+
machineId: string | null;
|
|
1253
|
+
cloudId: string | null;
|
|
1257
1254
|
repositoryId: string | null;
|
|
1258
1255
|
baseBranch: string | null;
|
|
1259
1256
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1260
1257
|
dataEncryptionKey: string | null;
|
|
1261
1258
|
parentTaskId: string | null;
|
|
1262
1259
|
agentId: string;
|
|
1260
|
+
userId: string;
|
|
1261
|
+
state: string;
|
|
1263
1262
|
title: string | null;
|
|
1264
1263
|
userCwd: string | null;
|
|
1264
|
+
createdAt: string;
|
|
1265
1265
|
updatedAt: string;
|
|
1266
1266
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1267
1267
|
customTitle: string | null;
|
|
@@ -1283,22 +1283,22 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1283
1283
|
rootTaskId: string | null;
|
|
1284
1284
|
}, {
|
|
1285
1285
|
id: string;
|
|
1286
|
-
createdAt: string;
|
|
1287
|
-
state: string;
|
|
1288
|
-
machineId: string | null;
|
|
1289
|
-
cloudId: string | null;
|
|
1290
|
-
userId: string;
|
|
1291
1286
|
chatId: string;
|
|
1292
1287
|
cwd: string | null;
|
|
1293
1288
|
forceUserCwd: boolean | null;
|
|
1289
|
+
machineId: string | null;
|
|
1290
|
+
cloudId: string | null;
|
|
1294
1291
|
repositoryId: string | null;
|
|
1295
1292
|
baseBranch: string | null;
|
|
1296
1293
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1297
1294
|
dataEncryptionKey: string | null;
|
|
1298
1295
|
parentTaskId: string | null;
|
|
1299
1296
|
agentId: string;
|
|
1297
|
+
userId: string;
|
|
1298
|
+
state: string;
|
|
1300
1299
|
title: string | null;
|
|
1301
1300
|
userCwd: string | null;
|
|
1301
|
+
createdAt: string;
|
|
1302
1302
|
updatedAt: string;
|
|
1303
1303
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1304
1304
|
customTitle: string | null;
|
|
@@ -1324,22 +1324,22 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1324
1324
|
}, "strip", z.ZodTypeAny, {
|
|
1325
1325
|
tasks: {
|
|
1326
1326
|
id: string;
|
|
1327
|
-
createdAt: string;
|
|
1328
|
-
state: string;
|
|
1329
|
-
machineId: string | null;
|
|
1330
|
-
cloudId: string | null;
|
|
1331
|
-
userId: string;
|
|
1332
1327
|
chatId: string;
|
|
1333
1328
|
cwd: string | null;
|
|
1334
1329
|
forceUserCwd: boolean | null;
|
|
1330
|
+
machineId: string | null;
|
|
1331
|
+
cloudId: string | null;
|
|
1335
1332
|
repositoryId: string | null;
|
|
1336
1333
|
baseBranch: string | null;
|
|
1337
1334
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1338
1335
|
dataEncryptionKey: string | null;
|
|
1339
1336
|
parentTaskId: string | null;
|
|
1340
1337
|
agentId: string;
|
|
1338
|
+
userId: string;
|
|
1339
|
+
state: string;
|
|
1341
1340
|
title: string | null;
|
|
1342
1341
|
userCwd: string | null;
|
|
1342
|
+
createdAt: string;
|
|
1343
1343
|
updatedAt: string;
|
|
1344
1344
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1345
1345
|
customTitle: string | null;
|
|
@@ -1365,22 +1365,22 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1365
1365
|
}, {
|
|
1366
1366
|
tasks: {
|
|
1367
1367
|
id: string;
|
|
1368
|
-
createdAt: string;
|
|
1369
|
-
state: string;
|
|
1370
|
-
machineId: string | null;
|
|
1371
|
-
cloudId: string | null;
|
|
1372
|
-
userId: string;
|
|
1373
1368
|
chatId: string;
|
|
1374
1369
|
cwd: string | null;
|
|
1375
1370
|
forceUserCwd: boolean | null;
|
|
1371
|
+
machineId: string | null;
|
|
1372
|
+
cloudId: string | null;
|
|
1376
1373
|
repositoryId: string | null;
|
|
1377
1374
|
baseBranch: string | null;
|
|
1378
1375
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1379
1376
|
dataEncryptionKey: string | null;
|
|
1380
1377
|
parentTaskId: string | null;
|
|
1381
1378
|
agentId: string;
|
|
1379
|
+
userId: string;
|
|
1380
|
+
state: string;
|
|
1382
1381
|
title: string | null;
|
|
1383
1382
|
userCwd: string | null;
|
|
1383
|
+
createdAt: string;
|
|
1384
1384
|
updatedAt: string;
|
|
1385
1385
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1386
1386
|
customTitle: string | null;
|
|
@@ -1790,13 +1790,13 @@ declare const ApprovePrResponseSchema: z.ZodObject<{
|
|
|
1790
1790
|
taskId: z.ZodString;
|
|
1791
1791
|
pullRequestNumber: z.ZodNumber;
|
|
1792
1792
|
}, "strip", z.ZodTypeAny, {
|
|
1793
|
-
success: boolean;
|
|
1794
1793
|
taskId: string;
|
|
1795
1794
|
pullRequestNumber: number;
|
|
1796
|
-
}, {
|
|
1797
1795
|
success: boolean;
|
|
1796
|
+
}, {
|
|
1798
1797
|
taskId: string;
|
|
1799
1798
|
pullRequestNumber: number;
|
|
1799
|
+
success: boolean;
|
|
1800
1800
|
}>;
|
|
1801
1801
|
type ApprovePrResponse = z.infer<typeof ApprovePrResponseSchema>;
|
|
1802
1802
|
/**
|
|
@@ -1924,22 +1924,22 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1924
1924
|
updatedAt: z.ZodString;
|
|
1925
1925
|
}, "strip", z.ZodTypeAny, {
|
|
1926
1926
|
id: string;
|
|
1927
|
-
createdAt: string;
|
|
1928
|
-
state: string;
|
|
1929
|
-
machineId: string | null;
|
|
1930
|
-
cloudId: string | null;
|
|
1931
|
-
userId: string;
|
|
1932
1927
|
chatId: string;
|
|
1933
1928
|
cwd: string | null;
|
|
1934
1929
|
forceUserCwd: boolean | null;
|
|
1930
|
+
machineId: string | null;
|
|
1931
|
+
cloudId: string | null;
|
|
1935
1932
|
repositoryId: string | null;
|
|
1936
1933
|
baseBranch: string | null;
|
|
1937
1934
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1938
1935
|
dataEncryptionKey: string | null;
|
|
1939
1936
|
parentTaskId: string | null;
|
|
1940
1937
|
agentId: string;
|
|
1938
|
+
userId: string;
|
|
1939
|
+
state: string;
|
|
1941
1940
|
title: string | null;
|
|
1942
1941
|
userCwd: string | null;
|
|
1942
|
+
createdAt: string;
|
|
1943
1943
|
updatedAt: string;
|
|
1944
1944
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1945
1945
|
customTitle: string | null;
|
|
@@ -1961,22 +1961,22 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1961
1961
|
rootTaskId: string | null;
|
|
1962
1962
|
}, {
|
|
1963
1963
|
id: string;
|
|
1964
|
-
createdAt: string;
|
|
1965
|
-
state: string;
|
|
1966
|
-
machineId: string | null;
|
|
1967
|
-
cloudId: string | null;
|
|
1968
|
-
userId: string;
|
|
1969
1964
|
chatId: string;
|
|
1970
1965
|
cwd: string | null;
|
|
1971
1966
|
forceUserCwd: boolean | null;
|
|
1967
|
+
machineId: string | null;
|
|
1968
|
+
cloudId: string | null;
|
|
1972
1969
|
repositoryId: string | null;
|
|
1973
1970
|
baseBranch: string | null;
|
|
1974
1971
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1975
1972
|
dataEncryptionKey: string | null;
|
|
1976
1973
|
parentTaskId: string | null;
|
|
1977
1974
|
agentId: string;
|
|
1975
|
+
userId: string;
|
|
1976
|
+
state: string;
|
|
1978
1977
|
title: string | null;
|
|
1979
1978
|
userCwd: string | null;
|
|
1979
|
+
createdAt: string;
|
|
1980
1980
|
updatedAt: string;
|
|
1981
1981
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1982
1982
|
customTitle: string | null;
|
|
@@ -2001,22 +2001,22 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2001
2001
|
success: boolean;
|
|
2002
2002
|
task: {
|
|
2003
2003
|
id: string;
|
|
2004
|
-
createdAt: string;
|
|
2005
|
-
state: string;
|
|
2006
|
-
machineId: string | null;
|
|
2007
|
-
cloudId: string | null;
|
|
2008
|
-
userId: string;
|
|
2009
2004
|
chatId: string;
|
|
2010
2005
|
cwd: string | null;
|
|
2011
2006
|
forceUserCwd: boolean | null;
|
|
2007
|
+
machineId: string | null;
|
|
2008
|
+
cloudId: string | null;
|
|
2012
2009
|
repositoryId: string | null;
|
|
2013
2010
|
baseBranch: string | null;
|
|
2014
2011
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2015
2012
|
dataEncryptionKey: string | null;
|
|
2016
2013
|
parentTaskId: string | null;
|
|
2017
2014
|
agentId: string;
|
|
2015
|
+
userId: string;
|
|
2016
|
+
state: string;
|
|
2018
2017
|
title: string | null;
|
|
2019
2018
|
userCwd: string | null;
|
|
2019
|
+
createdAt: string;
|
|
2020
2020
|
updatedAt: string;
|
|
2021
2021
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2022
2022
|
customTitle: string | null;
|
|
@@ -2041,22 +2041,22 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2041
2041
|
success: boolean;
|
|
2042
2042
|
task: {
|
|
2043
2043
|
id: string;
|
|
2044
|
-
createdAt: string;
|
|
2045
|
-
state: string;
|
|
2046
|
-
machineId: string | null;
|
|
2047
|
-
cloudId: string | null;
|
|
2048
|
-
userId: string;
|
|
2049
2044
|
chatId: string;
|
|
2050
2045
|
cwd: string | null;
|
|
2051
2046
|
forceUserCwd: boolean | null;
|
|
2047
|
+
machineId: string | null;
|
|
2048
|
+
cloudId: string | null;
|
|
2052
2049
|
repositoryId: string | null;
|
|
2053
2050
|
baseBranch: string | null;
|
|
2054
2051
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2055
2052
|
dataEncryptionKey: string | null;
|
|
2056
2053
|
parentTaskId: string | null;
|
|
2057
2054
|
agentId: string;
|
|
2055
|
+
userId: string;
|
|
2056
|
+
state: string;
|
|
2058
2057
|
title: string | null;
|
|
2059
2058
|
userCwd: string | null;
|
|
2059
|
+
createdAt: string;
|
|
2060
2060
|
updatedAt: string;
|
|
2061
2061
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2062
2062
|
customTitle: string | null;
|
|
@@ -2152,22 +2152,22 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2152
2152
|
updatedAt: z.ZodString;
|
|
2153
2153
|
}, "strip", z.ZodTypeAny, {
|
|
2154
2154
|
id: string;
|
|
2155
|
-
createdAt: string;
|
|
2156
|
-
state: string;
|
|
2157
|
-
machineId: string | null;
|
|
2158
|
-
cloudId: string | null;
|
|
2159
|
-
userId: string;
|
|
2160
2155
|
chatId: string;
|
|
2161
2156
|
cwd: string | null;
|
|
2162
2157
|
forceUserCwd: boolean | null;
|
|
2158
|
+
machineId: string | null;
|
|
2159
|
+
cloudId: string | null;
|
|
2163
2160
|
repositoryId: string | null;
|
|
2164
2161
|
baseBranch: string | null;
|
|
2165
2162
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2166
2163
|
dataEncryptionKey: string | null;
|
|
2167
2164
|
parentTaskId: string | null;
|
|
2168
2165
|
agentId: string;
|
|
2166
|
+
userId: string;
|
|
2167
|
+
state: string;
|
|
2169
2168
|
title: string | null;
|
|
2170
2169
|
userCwd: string | null;
|
|
2170
|
+
createdAt: string;
|
|
2171
2171
|
updatedAt: string;
|
|
2172
2172
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2173
2173
|
customTitle: string | null;
|
|
@@ -2189,22 +2189,22 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2189
2189
|
rootTaskId: string | null;
|
|
2190
2190
|
}, {
|
|
2191
2191
|
id: string;
|
|
2192
|
-
createdAt: string;
|
|
2193
|
-
state: string;
|
|
2194
|
-
machineId: string | null;
|
|
2195
|
-
cloudId: string | null;
|
|
2196
|
-
userId: string;
|
|
2197
2192
|
chatId: string;
|
|
2198
2193
|
cwd: string | null;
|
|
2199
2194
|
forceUserCwd: boolean | null;
|
|
2195
|
+
machineId: string | null;
|
|
2196
|
+
cloudId: string | null;
|
|
2200
2197
|
repositoryId: string | null;
|
|
2201
2198
|
baseBranch: string | null;
|
|
2202
2199
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2203
2200
|
dataEncryptionKey: string | null;
|
|
2204
2201
|
parentTaskId: string | null;
|
|
2205
2202
|
agentId: string;
|
|
2203
|
+
userId: string;
|
|
2204
|
+
state: string;
|
|
2206
2205
|
title: string | null;
|
|
2207
2206
|
userCwd: string | null;
|
|
2207
|
+
createdAt: string;
|
|
2208
2208
|
updatedAt: string;
|
|
2209
2209
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2210
2210
|
customTitle: string | null;
|
|
@@ -2229,22 +2229,22 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2229
2229
|
success: boolean;
|
|
2230
2230
|
task: {
|
|
2231
2231
|
id: string;
|
|
2232
|
-
createdAt: string;
|
|
2233
|
-
state: string;
|
|
2234
|
-
machineId: string | null;
|
|
2235
|
-
cloudId: string | null;
|
|
2236
|
-
userId: string;
|
|
2237
2232
|
chatId: string;
|
|
2238
2233
|
cwd: string | null;
|
|
2239
2234
|
forceUserCwd: boolean | null;
|
|
2235
|
+
machineId: string | null;
|
|
2236
|
+
cloudId: string | null;
|
|
2240
2237
|
repositoryId: string | null;
|
|
2241
2238
|
baseBranch: string | null;
|
|
2242
2239
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2243
2240
|
dataEncryptionKey: string | null;
|
|
2244
2241
|
parentTaskId: string | null;
|
|
2245
2242
|
agentId: string;
|
|
2243
|
+
userId: string;
|
|
2244
|
+
state: string;
|
|
2246
2245
|
title: string | null;
|
|
2247
2246
|
userCwd: string | null;
|
|
2247
|
+
createdAt: string;
|
|
2248
2248
|
updatedAt: string;
|
|
2249
2249
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2250
2250
|
customTitle: string | null;
|
|
@@ -2269,22 +2269,22 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2269
2269
|
success: boolean;
|
|
2270
2270
|
task: {
|
|
2271
2271
|
id: string;
|
|
2272
|
-
createdAt: string;
|
|
2273
|
-
state: string;
|
|
2274
|
-
machineId: string | null;
|
|
2275
|
-
cloudId: string | null;
|
|
2276
|
-
userId: string;
|
|
2277
2272
|
chatId: string;
|
|
2278
2273
|
cwd: string | null;
|
|
2279
2274
|
forceUserCwd: boolean | null;
|
|
2275
|
+
machineId: string | null;
|
|
2276
|
+
cloudId: string | null;
|
|
2280
2277
|
repositoryId: string | null;
|
|
2281
2278
|
baseBranch: string | null;
|
|
2282
2279
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2283
2280
|
dataEncryptionKey: string | null;
|
|
2284
2281
|
parentTaskId: string | null;
|
|
2285
2282
|
agentId: string;
|
|
2283
|
+
userId: string;
|
|
2284
|
+
state: string;
|
|
2286
2285
|
title: string | null;
|
|
2287
2286
|
userCwd: string | null;
|
|
2287
|
+
createdAt: string;
|
|
2288
2288
|
updatedAt: string;
|
|
2289
2289
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2290
2290
|
customTitle: string | null;
|
|
@@ -2386,22 +2386,22 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2386
2386
|
updatedAt: z.ZodString;
|
|
2387
2387
|
}, "strip", z.ZodTypeAny, {
|
|
2388
2388
|
id: string;
|
|
2389
|
-
createdAt: string;
|
|
2390
|
-
state: string;
|
|
2391
|
-
machineId: string | null;
|
|
2392
|
-
cloudId: string | null;
|
|
2393
|
-
userId: string;
|
|
2394
2389
|
chatId: string;
|
|
2395
2390
|
cwd: string | null;
|
|
2396
2391
|
forceUserCwd: boolean | null;
|
|
2392
|
+
machineId: string | null;
|
|
2393
|
+
cloudId: string | null;
|
|
2397
2394
|
repositoryId: string | null;
|
|
2398
2395
|
baseBranch: string | null;
|
|
2399
2396
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2400
2397
|
dataEncryptionKey: string | null;
|
|
2401
2398
|
parentTaskId: string | null;
|
|
2402
2399
|
agentId: string;
|
|
2400
|
+
userId: string;
|
|
2401
|
+
state: string;
|
|
2403
2402
|
title: string | null;
|
|
2404
2403
|
userCwd: string | null;
|
|
2404
|
+
createdAt: string;
|
|
2405
2405
|
updatedAt: string;
|
|
2406
2406
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2407
2407
|
customTitle: string | null;
|
|
@@ -2423,22 +2423,22 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2423
2423
|
rootTaskId: string | null;
|
|
2424
2424
|
}, {
|
|
2425
2425
|
id: string;
|
|
2426
|
-
createdAt: string;
|
|
2427
|
-
state: string;
|
|
2428
|
-
machineId: string | null;
|
|
2429
|
-
cloudId: string | null;
|
|
2430
|
-
userId: string;
|
|
2431
2426
|
chatId: string;
|
|
2432
2427
|
cwd: string | null;
|
|
2433
2428
|
forceUserCwd: boolean | null;
|
|
2429
|
+
machineId: string | null;
|
|
2430
|
+
cloudId: string | null;
|
|
2434
2431
|
repositoryId: string | null;
|
|
2435
2432
|
baseBranch: string | null;
|
|
2436
2433
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2437
2434
|
dataEncryptionKey: string | null;
|
|
2438
2435
|
parentTaskId: string | null;
|
|
2439
2436
|
agentId: string;
|
|
2437
|
+
userId: string;
|
|
2438
|
+
state: string;
|
|
2440
2439
|
title: string | null;
|
|
2441
2440
|
userCwd: string | null;
|
|
2441
|
+
createdAt: string;
|
|
2442
2442
|
updatedAt: string;
|
|
2443
2443
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2444
2444
|
customTitle: string | null;
|
|
@@ -2463,22 +2463,22 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2463
2463
|
success: boolean;
|
|
2464
2464
|
task: {
|
|
2465
2465
|
id: string;
|
|
2466
|
-
createdAt: string;
|
|
2467
|
-
state: string;
|
|
2468
|
-
machineId: string | null;
|
|
2469
|
-
cloudId: string | null;
|
|
2470
|
-
userId: string;
|
|
2471
2466
|
chatId: string;
|
|
2472
2467
|
cwd: string | null;
|
|
2473
2468
|
forceUserCwd: boolean | null;
|
|
2469
|
+
machineId: string | null;
|
|
2470
|
+
cloudId: string | null;
|
|
2474
2471
|
repositoryId: string | null;
|
|
2475
2472
|
baseBranch: string | null;
|
|
2476
2473
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2477
2474
|
dataEncryptionKey: string | null;
|
|
2478
2475
|
parentTaskId: string | null;
|
|
2479
2476
|
agentId: string;
|
|
2477
|
+
userId: string;
|
|
2478
|
+
state: string;
|
|
2480
2479
|
title: string | null;
|
|
2481
2480
|
userCwd: string | null;
|
|
2481
|
+
createdAt: string;
|
|
2482
2482
|
updatedAt: string;
|
|
2483
2483
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2484
2484
|
customTitle: string | null;
|
|
@@ -2503,22 +2503,22 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2503
2503
|
success: boolean;
|
|
2504
2504
|
task: {
|
|
2505
2505
|
id: string;
|
|
2506
|
-
createdAt: string;
|
|
2507
|
-
state: string;
|
|
2508
|
-
machineId: string | null;
|
|
2509
|
-
cloudId: string | null;
|
|
2510
|
-
userId: string;
|
|
2511
2506
|
chatId: string;
|
|
2512
2507
|
cwd: string | null;
|
|
2513
2508
|
forceUserCwd: boolean | null;
|
|
2509
|
+
machineId: string | null;
|
|
2510
|
+
cloudId: string | null;
|
|
2514
2511
|
repositoryId: string | null;
|
|
2515
2512
|
baseBranch: string | null;
|
|
2516
2513
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2517
2514
|
dataEncryptionKey: string | null;
|
|
2518
2515
|
parentTaskId: string | null;
|
|
2519
2516
|
agentId: string;
|
|
2517
|
+
userId: string;
|
|
2518
|
+
state: string;
|
|
2520
2519
|
title: string | null;
|
|
2521
2520
|
userCwd: string | null;
|
|
2521
|
+
createdAt: string;
|
|
2522
2522
|
updatedAt: string;
|
|
2523
2523
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2524
2524
|
customTitle: string | null;
|
|
@@ -2561,11 +2561,11 @@ declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
|
2561
2561
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
2562
2562
|
}, "strip", z.ZodTypeAny, {
|
|
2563
2563
|
message: SDKUserMessage | SDKAssistantMessage;
|
|
2564
|
-
target: "
|
|
2564
|
+
target: "agent" | "user";
|
|
2565
2565
|
fromTaskId?: string | undefined;
|
|
2566
2566
|
}, {
|
|
2567
2567
|
message: SDKUserMessage | SDKAssistantMessage;
|
|
2568
|
-
target: "
|
|
2568
|
+
target: "agent" | "user";
|
|
2569
2569
|
fromTaskId?: string | undefined;
|
|
2570
2570
|
}>;
|
|
2571
2571
|
type SendTaskMessageRequest = z.infer<typeof SendTaskMessageRequestSchema>;
|
|
@@ -2665,18 +2665,18 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
2665
2665
|
createdAt: z.ZodString;
|
|
2666
2666
|
updatedAt: z.ZodString;
|
|
2667
2667
|
}, "strip", z.ZodTypeAny, {
|
|
2668
|
-
type: "agent" | "human";
|
|
2669
2668
|
id: string;
|
|
2670
|
-
|
|
2669
|
+
type: "agent" | "human";
|
|
2671
2670
|
chatId: string;
|
|
2671
|
+
createdAt: string;
|
|
2672
2672
|
updatedAt: string;
|
|
2673
2673
|
memberCode: string;
|
|
2674
2674
|
role: string;
|
|
2675
2675
|
}, {
|
|
2676
|
-
type: "agent" | "human";
|
|
2677
2676
|
id: string;
|
|
2678
|
-
|
|
2677
|
+
type: "agent" | "human";
|
|
2679
2678
|
chatId: string;
|
|
2679
|
+
createdAt: string;
|
|
2680
2680
|
updatedAt: string;
|
|
2681
2681
|
memberCode: string;
|
|
2682
2682
|
role: string;
|
|
@@ -2698,15 +2698,15 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
2698
2698
|
createdAt: z.ZodString;
|
|
2699
2699
|
updatedAt: z.ZodString;
|
|
2700
2700
|
}, "strip", z.ZodTypeAny, {
|
|
2701
|
-
type: "direct" | "group";
|
|
2702
2701
|
id: string;
|
|
2702
|
+
type: "direct" | "group";
|
|
2703
2703
|
createdAt: string;
|
|
2704
2704
|
updatedAt: string;
|
|
2705
2705
|
owner: string;
|
|
2706
2706
|
title?: string | null | undefined;
|
|
2707
2707
|
}, {
|
|
2708
|
-
type: "direct" | "group";
|
|
2709
2708
|
id: string;
|
|
2709
|
+
type: "direct" | "group";
|
|
2710
2710
|
createdAt: string;
|
|
2711
2711
|
updatedAt: string;
|
|
2712
2712
|
owner: string;
|
|
@@ -2733,49 +2733,49 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2733
2733
|
createdAt: z.ZodString;
|
|
2734
2734
|
updatedAt: z.ZodString;
|
|
2735
2735
|
}, "strip", z.ZodTypeAny, {
|
|
2736
|
-
type: "agent" | "human";
|
|
2737
2736
|
id: string;
|
|
2738
|
-
|
|
2737
|
+
type: "agent" | "human";
|
|
2739
2738
|
chatId: string;
|
|
2739
|
+
createdAt: string;
|
|
2740
2740
|
updatedAt: string;
|
|
2741
2741
|
memberCode: string;
|
|
2742
2742
|
role: string;
|
|
2743
2743
|
}, {
|
|
2744
|
-
type: "agent" | "human";
|
|
2745
2744
|
id: string;
|
|
2746
|
-
|
|
2745
|
+
type: "agent" | "human";
|
|
2747
2746
|
chatId: string;
|
|
2747
|
+
createdAt: string;
|
|
2748
2748
|
updatedAt: string;
|
|
2749
2749
|
memberCode: string;
|
|
2750
2750
|
role: string;
|
|
2751
2751
|
}>, "many">;
|
|
2752
2752
|
}, "strip", z.ZodTypeAny, {
|
|
2753
|
-
type: "direct" | "group";
|
|
2754
2753
|
id: string;
|
|
2754
|
+
type: "direct" | "group";
|
|
2755
2755
|
createdAt: string;
|
|
2756
2756
|
updatedAt: string;
|
|
2757
2757
|
owner: string;
|
|
2758
2758
|
members: {
|
|
2759
|
-
type: "agent" | "human";
|
|
2760
2759
|
id: string;
|
|
2761
|
-
|
|
2760
|
+
type: "agent" | "human";
|
|
2762
2761
|
chatId: string;
|
|
2762
|
+
createdAt: string;
|
|
2763
2763
|
updatedAt: string;
|
|
2764
2764
|
memberCode: string;
|
|
2765
2765
|
role: string;
|
|
2766
2766
|
}[];
|
|
2767
2767
|
title?: string | null | undefined;
|
|
2768
2768
|
}, {
|
|
2769
|
-
type: "direct" | "group";
|
|
2770
2769
|
id: string;
|
|
2770
|
+
type: "direct" | "group";
|
|
2771
2771
|
createdAt: string;
|
|
2772
2772
|
updatedAt: string;
|
|
2773
2773
|
owner: string;
|
|
2774
2774
|
members: {
|
|
2775
|
-
type: "agent" | "human";
|
|
2776
2775
|
id: string;
|
|
2777
|
-
|
|
2776
|
+
type: "agent" | "human";
|
|
2778
2777
|
chatId: string;
|
|
2778
|
+
createdAt: string;
|
|
2779
2779
|
updatedAt: string;
|
|
2780
2780
|
memberCode: string;
|
|
2781
2781
|
role: string;
|
|
@@ -2846,49 +2846,49 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2846
2846
|
createdAt: z.ZodString;
|
|
2847
2847
|
updatedAt: z.ZodString;
|
|
2848
2848
|
}, "strip", z.ZodTypeAny, {
|
|
2849
|
-
type: "agent" | "human";
|
|
2850
2849
|
id: string;
|
|
2851
|
-
|
|
2850
|
+
type: "agent" | "human";
|
|
2852
2851
|
chatId: string;
|
|
2852
|
+
createdAt: string;
|
|
2853
2853
|
updatedAt: string;
|
|
2854
2854
|
memberCode: string;
|
|
2855
2855
|
role: string;
|
|
2856
2856
|
}, {
|
|
2857
|
-
type: "agent" | "human";
|
|
2858
2857
|
id: string;
|
|
2859
|
-
|
|
2858
|
+
type: "agent" | "human";
|
|
2860
2859
|
chatId: string;
|
|
2860
|
+
createdAt: string;
|
|
2861
2861
|
updatedAt: string;
|
|
2862
2862
|
memberCode: string;
|
|
2863
2863
|
role: string;
|
|
2864
2864
|
}>, "many">;
|
|
2865
2865
|
}, "strip", z.ZodTypeAny, {
|
|
2866
|
-
type: "direct" | "group";
|
|
2867
2866
|
id: string;
|
|
2867
|
+
type: "direct" | "group";
|
|
2868
2868
|
createdAt: string;
|
|
2869
2869
|
updatedAt: string;
|
|
2870
2870
|
owner: string;
|
|
2871
2871
|
members: {
|
|
2872
|
-
type: "agent" | "human";
|
|
2873
2872
|
id: string;
|
|
2874
|
-
|
|
2873
|
+
type: "agent" | "human";
|
|
2875
2874
|
chatId: string;
|
|
2875
|
+
createdAt: string;
|
|
2876
2876
|
updatedAt: string;
|
|
2877
2877
|
memberCode: string;
|
|
2878
2878
|
role: string;
|
|
2879
2879
|
}[];
|
|
2880
2880
|
title?: string | null | undefined;
|
|
2881
2881
|
}, {
|
|
2882
|
-
type: "direct" | "group";
|
|
2883
2882
|
id: string;
|
|
2883
|
+
type: "direct" | "group";
|
|
2884
2884
|
createdAt: string;
|
|
2885
2885
|
updatedAt: string;
|
|
2886
2886
|
owner: string;
|
|
2887
2887
|
members: {
|
|
2888
|
-
type: "agent" | "human";
|
|
2889
2888
|
id: string;
|
|
2890
|
-
|
|
2889
|
+
type: "agent" | "human";
|
|
2891
2890
|
chatId: string;
|
|
2891
|
+
createdAt: string;
|
|
2892
2892
|
updatedAt: string;
|
|
2893
2893
|
memberCode: string;
|
|
2894
2894
|
role: string;
|
|
@@ -2934,49 +2934,49 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2934
2934
|
createdAt: z.ZodString;
|
|
2935
2935
|
updatedAt: z.ZodString;
|
|
2936
2936
|
}, "strip", z.ZodTypeAny, {
|
|
2937
|
-
type: "agent" | "human";
|
|
2938
2937
|
id: string;
|
|
2939
|
-
|
|
2938
|
+
type: "agent" | "human";
|
|
2940
2939
|
chatId: string;
|
|
2940
|
+
createdAt: string;
|
|
2941
2941
|
updatedAt: string;
|
|
2942
2942
|
memberCode: string;
|
|
2943
2943
|
role: string;
|
|
2944
2944
|
}, {
|
|
2945
|
-
type: "agent" | "human";
|
|
2946
2945
|
id: string;
|
|
2947
|
-
|
|
2946
|
+
type: "agent" | "human";
|
|
2948
2947
|
chatId: string;
|
|
2948
|
+
createdAt: string;
|
|
2949
2949
|
updatedAt: string;
|
|
2950
2950
|
memberCode: string;
|
|
2951
2951
|
role: string;
|
|
2952
2952
|
}>, "many">;
|
|
2953
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2954
|
-
type: "direct" | "group";
|
|
2955
2954
|
id: string;
|
|
2955
|
+
type: "direct" | "group";
|
|
2956
2956
|
createdAt: string;
|
|
2957
2957
|
updatedAt: string;
|
|
2958
2958
|
owner: string;
|
|
2959
2959
|
members: {
|
|
2960
|
-
type: "agent" | "human";
|
|
2961
2960
|
id: string;
|
|
2962
|
-
|
|
2961
|
+
type: "agent" | "human";
|
|
2963
2962
|
chatId: string;
|
|
2963
|
+
createdAt: string;
|
|
2964
2964
|
updatedAt: string;
|
|
2965
2965
|
memberCode: string;
|
|
2966
2966
|
role: string;
|
|
2967
2967
|
}[];
|
|
2968
2968
|
title?: string | null | undefined;
|
|
2969
2969
|
}, {
|
|
2970
|
-
type: "direct" | "group";
|
|
2971
2970
|
id: string;
|
|
2971
|
+
type: "direct" | "group";
|
|
2972
2972
|
createdAt: string;
|
|
2973
2973
|
updatedAt: string;
|
|
2974
2974
|
owner: string;
|
|
2975
2975
|
members: {
|
|
2976
|
-
type: "agent" | "human";
|
|
2977
2976
|
id: string;
|
|
2978
|
-
|
|
2977
|
+
type: "agent" | "human";
|
|
2979
2978
|
chatId: string;
|
|
2979
|
+
createdAt: string;
|
|
2980
2980
|
updatedAt: string;
|
|
2981
2981
|
memberCode: string;
|
|
2982
2982
|
role: string;
|
|
@@ -2987,16 +2987,16 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2987
2987
|
}, "strip", z.ZodTypeAny, {
|
|
2988
2988
|
hasMore: boolean;
|
|
2989
2989
|
chats: {
|
|
2990
|
-
type: "direct" | "group";
|
|
2991
2990
|
id: string;
|
|
2991
|
+
type: "direct" | "group";
|
|
2992
2992
|
createdAt: string;
|
|
2993
2993
|
updatedAt: string;
|
|
2994
2994
|
owner: string;
|
|
2995
2995
|
members: {
|
|
2996
|
-
type: "agent" | "human";
|
|
2997
2996
|
id: string;
|
|
2998
|
-
|
|
2997
|
+
type: "agent" | "human";
|
|
2999
2998
|
chatId: string;
|
|
2999
|
+
createdAt: string;
|
|
3000
3000
|
updatedAt: string;
|
|
3001
3001
|
memberCode: string;
|
|
3002
3002
|
role: string;
|
|
@@ -3006,16 +3006,16 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
3006
3006
|
}, {
|
|
3007
3007
|
hasMore: boolean;
|
|
3008
3008
|
chats: {
|
|
3009
|
-
type: "direct" | "group";
|
|
3010
3009
|
id: string;
|
|
3010
|
+
type: "direct" | "group";
|
|
3011
3011
|
createdAt: string;
|
|
3012
3012
|
updatedAt: string;
|
|
3013
3013
|
owner: string;
|
|
3014
3014
|
members: {
|
|
3015
|
-
type: "agent" | "human";
|
|
3016
3015
|
id: string;
|
|
3017
|
-
|
|
3016
|
+
type: "agent" | "human";
|
|
3018
3017
|
chatId: string;
|
|
3018
|
+
createdAt: string;
|
|
3019
3019
|
updatedAt: string;
|
|
3020
3020
|
memberCode: string;
|
|
3021
3021
|
role: string;
|
|
@@ -3044,49 +3044,49 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
3044
3044
|
createdAt: z.ZodString;
|
|
3045
3045
|
updatedAt: z.ZodString;
|
|
3046
3046
|
}, "strip", z.ZodTypeAny, {
|
|
3047
|
-
type: "agent" | "human";
|
|
3048
3047
|
id: string;
|
|
3049
|
-
|
|
3048
|
+
type: "agent" | "human";
|
|
3050
3049
|
chatId: string;
|
|
3050
|
+
createdAt: string;
|
|
3051
3051
|
updatedAt: string;
|
|
3052
3052
|
memberCode: string;
|
|
3053
3053
|
role: string;
|
|
3054
3054
|
}, {
|
|
3055
|
-
type: "agent" | "human";
|
|
3056
3055
|
id: string;
|
|
3057
|
-
|
|
3056
|
+
type: "agent" | "human";
|
|
3058
3057
|
chatId: string;
|
|
3058
|
+
createdAt: string;
|
|
3059
3059
|
updatedAt: string;
|
|
3060
3060
|
memberCode: string;
|
|
3061
3061
|
role: string;
|
|
3062
3062
|
}>, "many">;
|
|
3063
3063
|
}, "strip", z.ZodTypeAny, {
|
|
3064
|
-
type: "direct" | "group";
|
|
3065
3064
|
id: string;
|
|
3065
|
+
type: "direct" | "group";
|
|
3066
3066
|
createdAt: string;
|
|
3067
3067
|
updatedAt: string;
|
|
3068
3068
|
owner: string;
|
|
3069
3069
|
members: {
|
|
3070
|
-
type: "agent" | "human";
|
|
3071
3070
|
id: string;
|
|
3072
|
-
|
|
3071
|
+
type: "agent" | "human";
|
|
3073
3072
|
chatId: string;
|
|
3073
|
+
createdAt: string;
|
|
3074
3074
|
updatedAt: string;
|
|
3075
3075
|
memberCode: string;
|
|
3076
3076
|
role: string;
|
|
3077
3077
|
}[];
|
|
3078
3078
|
title?: string | null | undefined;
|
|
3079
3079
|
}, {
|
|
3080
|
-
type: "direct" | "group";
|
|
3081
3080
|
id: string;
|
|
3081
|
+
type: "direct" | "group";
|
|
3082
3082
|
createdAt: string;
|
|
3083
3083
|
updatedAt: string;
|
|
3084
3084
|
owner: string;
|
|
3085
3085
|
members: {
|
|
3086
|
-
type: "agent" | "human";
|
|
3087
3086
|
id: string;
|
|
3088
|
-
|
|
3087
|
+
type: "agent" | "human";
|
|
3089
3088
|
chatId: string;
|
|
3089
|
+
createdAt: string;
|
|
3090
3090
|
updatedAt: string;
|
|
3091
3091
|
memberCode: string;
|
|
3092
3092
|
role: string;
|
|
@@ -3107,38 +3107,38 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
3107
3107
|
createdAt: z.ZodString;
|
|
3108
3108
|
updatedAt: z.ZodString;
|
|
3109
3109
|
}, "strip", z.ZodTypeAny, {
|
|
3110
|
-
type: "agent" | "human";
|
|
3111
3110
|
id: string;
|
|
3112
|
-
|
|
3111
|
+
type: "agent" | "human";
|
|
3113
3112
|
chatId: string;
|
|
3113
|
+
createdAt: string;
|
|
3114
3114
|
updatedAt: string;
|
|
3115
3115
|
memberCode: string;
|
|
3116
3116
|
role: string;
|
|
3117
3117
|
}, {
|
|
3118
|
-
type: "agent" | "human";
|
|
3119
3118
|
id: string;
|
|
3120
|
-
|
|
3119
|
+
type: "agent" | "human";
|
|
3121
3120
|
chatId: string;
|
|
3121
|
+
createdAt: string;
|
|
3122
3122
|
updatedAt: string;
|
|
3123
3123
|
memberCode: string;
|
|
3124
3124
|
role: string;
|
|
3125
3125
|
}>, "many">;
|
|
3126
3126
|
}, "strip", z.ZodTypeAny, {
|
|
3127
3127
|
members: {
|
|
3128
|
-
type: "agent" | "human";
|
|
3129
3128
|
id: string;
|
|
3130
|
-
|
|
3129
|
+
type: "agent" | "human";
|
|
3131
3130
|
chatId: string;
|
|
3131
|
+
createdAt: string;
|
|
3132
3132
|
updatedAt: string;
|
|
3133
3133
|
memberCode: string;
|
|
3134
3134
|
role: string;
|
|
3135
3135
|
}[];
|
|
3136
3136
|
}, {
|
|
3137
3137
|
members: {
|
|
3138
|
-
type: "agent" | "human";
|
|
3139
3138
|
id: string;
|
|
3140
|
-
|
|
3139
|
+
type: "agent" | "human";
|
|
3141
3140
|
chatId: string;
|
|
3141
|
+
createdAt: string;
|
|
3142
3142
|
updatedAt: string;
|
|
3143
3143
|
memberCode: string;
|
|
3144
3144
|
role: string;
|
|
@@ -3185,38 +3185,38 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
3185
3185
|
createdAt: z.ZodString;
|
|
3186
3186
|
updatedAt: z.ZodString;
|
|
3187
3187
|
}, "strip", z.ZodTypeAny, {
|
|
3188
|
-
type: "agent" | "human";
|
|
3189
3188
|
id: string;
|
|
3190
|
-
|
|
3189
|
+
type: "agent" | "human";
|
|
3191
3190
|
chatId: string;
|
|
3191
|
+
createdAt: string;
|
|
3192
3192
|
updatedAt: string;
|
|
3193
3193
|
memberCode: string;
|
|
3194
3194
|
role: string;
|
|
3195
3195
|
}, {
|
|
3196
|
-
type: "agent" | "human";
|
|
3197
3196
|
id: string;
|
|
3198
|
-
|
|
3197
|
+
type: "agent" | "human";
|
|
3199
3198
|
chatId: string;
|
|
3199
|
+
createdAt: string;
|
|
3200
3200
|
updatedAt: string;
|
|
3201
3201
|
memberCode: string;
|
|
3202
3202
|
role: string;
|
|
3203
3203
|
}>, "many">;
|
|
3204
3204
|
}, "strip", z.ZodTypeAny, {
|
|
3205
3205
|
members: {
|
|
3206
|
-
type: "agent" | "human";
|
|
3207
3206
|
id: string;
|
|
3208
|
-
|
|
3207
|
+
type: "agent" | "human";
|
|
3209
3208
|
chatId: string;
|
|
3209
|
+
createdAt: string;
|
|
3210
3210
|
updatedAt: string;
|
|
3211
3211
|
memberCode: string;
|
|
3212
3212
|
role: string;
|
|
3213
3213
|
}[];
|
|
3214
3214
|
}, {
|
|
3215
3215
|
members: {
|
|
3216
|
-
type: "agent" | "human";
|
|
3217
3216
|
id: string;
|
|
3218
|
-
|
|
3217
|
+
type: "agent" | "human";
|
|
3219
3218
|
chatId: string;
|
|
3219
|
+
createdAt: string;
|
|
3220
3220
|
updatedAt: string;
|
|
3221
3221
|
memberCode: string;
|
|
3222
3222
|
role: string;
|
|
@@ -3320,22 +3320,22 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3320
3320
|
updatedAt: z.ZodString;
|
|
3321
3321
|
}, "strip", z.ZodTypeAny, {
|
|
3322
3322
|
id: string;
|
|
3323
|
-
createdAt: string;
|
|
3324
|
-
state: string;
|
|
3325
|
-
machineId: string | null;
|
|
3326
|
-
cloudId: string | null;
|
|
3327
|
-
userId: string;
|
|
3328
3323
|
chatId: string;
|
|
3329
3324
|
cwd: string | null;
|
|
3330
3325
|
forceUserCwd: boolean | null;
|
|
3326
|
+
machineId: string | null;
|
|
3327
|
+
cloudId: string | null;
|
|
3331
3328
|
repositoryId: string | null;
|
|
3332
3329
|
baseBranch: string | null;
|
|
3333
3330
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3334
3331
|
dataEncryptionKey: string | null;
|
|
3335
3332
|
parentTaskId: string | null;
|
|
3336
3333
|
agentId: string;
|
|
3334
|
+
userId: string;
|
|
3335
|
+
state: string;
|
|
3337
3336
|
title: string | null;
|
|
3338
3337
|
userCwd: string | null;
|
|
3338
|
+
createdAt: string;
|
|
3339
3339
|
updatedAt: string;
|
|
3340
3340
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3341
3341
|
customTitle: string | null;
|
|
@@ -3357,22 +3357,22 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3357
3357
|
rootTaskId: string | null;
|
|
3358
3358
|
}, {
|
|
3359
3359
|
id: string;
|
|
3360
|
-
createdAt: string;
|
|
3361
|
-
state: string;
|
|
3362
|
-
machineId: string | null;
|
|
3363
|
-
cloudId: string | null;
|
|
3364
|
-
userId: string;
|
|
3365
3360
|
chatId: string;
|
|
3366
3361
|
cwd: string | null;
|
|
3367
3362
|
forceUserCwd: boolean | null;
|
|
3363
|
+
machineId: string | null;
|
|
3364
|
+
cloudId: string | null;
|
|
3368
3365
|
repositoryId: string | null;
|
|
3369
3366
|
baseBranch: string | null;
|
|
3370
3367
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3371
3368
|
dataEncryptionKey: string | null;
|
|
3372
3369
|
parentTaskId: string | null;
|
|
3373
3370
|
agentId: string;
|
|
3371
|
+
userId: string;
|
|
3372
|
+
state: string;
|
|
3374
3373
|
title: string | null;
|
|
3375
3374
|
userCwd: string | null;
|
|
3375
|
+
createdAt: string;
|
|
3376
3376
|
updatedAt: string;
|
|
3377
3377
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3378
3378
|
customTitle: string | null;
|
|
@@ -3396,22 +3396,22 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3396
3396
|
}, "strip", z.ZodTypeAny, {
|
|
3397
3397
|
tasks: {
|
|
3398
3398
|
id: string;
|
|
3399
|
-
createdAt: string;
|
|
3400
|
-
state: string;
|
|
3401
|
-
machineId: string | null;
|
|
3402
|
-
cloudId: string | null;
|
|
3403
|
-
userId: string;
|
|
3404
3399
|
chatId: string;
|
|
3405
3400
|
cwd: string | null;
|
|
3406
3401
|
forceUserCwd: boolean | null;
|
|
3402
|
+
machineId: string | null;
|
|
3403
|
+
cloudId: string | null;
|
|
3407
3404
|
repositoryId: string | null;
|
|
3408
3405
|
baseBranch: string | null;
|
|
3409
3406
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3410
3407
|
dataEncryptionKey: string | null;
|
|
3411
3408
|
parentTaskId: string | null;
|
|
3412
3409
|
agentId: string;
|
|
3410
|
+
userId: string;
|
|
3411
|
+
state: string;
|
|
3413
3412
|
title: string | null;
|
|
3414
3413
|
userCwd: string | null;
|
|
3414
|
+
createdAt: string;
|
|
3415
3415
|
updatedAt: string;
|
|
3416
3416
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3417
3417
|
customTitle: string | null;
|
|
@@ -3435,22 +3435,22 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3435
3435
|
}, {
|
|
3436
3436
|
tasks: {
|
|
3437
3437
|
id: string;
|
|
3438
|
-
createdAt: string;
|
|
3439
|
-
state: string;
|
|
3440
|
-
machineId: string | null;
|
|
3441
|
-
cloudId: string | null;
|
|
3442
|
-
userId: string;
|
|
3443
3438
|
chatId: string;
|
|
3444
3439
|
cwd: string | null;
|
|
3445
3440
|
forceUserCwd: boolean | null;
|
|
3441
|
+
machineId: string | null;
|
|
3442
|
+
cloudId: string | null;
|
|
3446
3443
|
repositoryId: string | null;
|
|
3447
3444
|
baseBranch: string | null;
|
|
3448
3445
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3449
3446
|
dataEncryptionKey: string | null;
|
|
3450
3447
|
parentTaskId: string | null;
|
|
3451
3448
|
agentId: string;
|
|
3449
|
+
userId: string;
|
|
3450
|
+
state: string;
|
|
3452
3451
|
title: string | null;
|
|
3453
3452
|
userCwd: string | null;
|
|
3453
|
+
createdAt: string;
|
|
3454
3454
|
updatedAt: string;
|
|
3455
3455
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3456
3456
|
customTitle: string | null;
|
|
@@ -3843,17 +3843,17 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3843
3843
|
paths?: string[] | undefined;
|
|
3844
3844
|
}>>;
|
|
3845
3845
|
}, "strip", z.ZodTypeAny, {
|
|
3846
|
-
type: "claude" | "codex";
|
|
3847
3846
|
id: string;
|
|
3848
3847
|
avatar: string | null;
|
|
3849
|
-
|
|
3848
|
+
type: "claude" | "codex";
|
|
3850
3849
|
userId: string;
|
|
3850
|
+
name: string;
|
|
3851
|
+
description: string | null;
|
|
3851
3852
|
permissions: {
|
|
3852
3853
|
role: string;
|
|
3853
3854
|
paths?: string[] | undefined;
|
|
3854
3855
|
} | null;
|
|
3855
|
-
|
|
3856
|
-
description: string | null;
|
|
3856
|
+
signature: string | null;
|
|
3857
3857
|
guildMsg: string;
|
|
3858
3858
|
placeholderMsg: string;
|
|
3859
3859
|
developerName: string;
|
|
@@ -3883,17 +3883,17 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3883
3883
|
}> | undefined;
|
|
3884
3884
|
} | null;
|
|
3885
3885
|
}, {
|
|
3886
|
-
type: "claude" | "codex";
|
|
3887
3886
|
id: string;
|
|
3888
3887
|
avatar: string | null;
|
|
3889
|
-
|
|
3888
|
+
type: "claude" | "codex";
|
|
3890
3889
|
userId: string;
|
|
3890
|
+
name: string;
|
|
3891
|
+
description: string | null;
|
|
3891
3892
|
permissions: {
|
|
3892
3893
|
role: string;
|
|
3893
3894
|
paths?: string[] | undefined;
|
|
3894
3895
|
} | null;
|
|
3895
|
-
|
|
3896
|
-
description: string | null;
|
|
3896
|
+
signature: string | null;
|
|
3897
3897
|
guildMsg: string;
|
|
3898
3898
|
placeholderMsg: string;
|
|
3899
3899
|
developerName: string;
|
|
@@ -4051,17 +4051,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4051
4051
|
paths?: string[] | undefined;
|
|
4052
4052
|
}>>;
|
|
4053
4053
|
}, "strip", z.ZodTypeAny, {
|
|
4054
|
-
type: "claude" | "codex";
|
|
4055
4054
|
id: string;
|
|
4056
4055
|
avatar: string | null;
|
|
4057
|
-
|
|
4056
|
+
type: "claude" | "codex";
|
|
4058
4057
|
userId: string;
|
|
4058
|
+
name: string;
|
|
4059
|
+
description: string | null;
|
|
4059
4060
|
permissions: {
|
|
4060
4061
|
role: string;
|
|
4061
4062
|
paths?: string[] | undefined;
|
|
4062
4063
|
} | null;
|
|
4063
|
-
|
|
4064
|
-
description: string | null;
|
|
4064
|
+
signature: string | null;
|
|
4065
4065
|
guildMsg: string;
|
|
4066
4066
|
placeholderMsg: string;
|
|
4067
4067
|
developerName: string;
|
|
@@ -4091,17 +4091,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4091
4091
|
}> | undefined;
|
|
4092
4092
|
} | null;
|
|
4093
4093
|
}, {
|
|
4094
|
-
type: "claude" | "codex";
|
|
4095
4094
|
id: string;
|
|
4096
4095
|
avatar: string | null;
|
|
4097
|
-
|
|
4096
|
+
type: "claude" | "codex";
|
|
4098
4097
|
userId: string;
|
|
4098
|
+
name: string;
|
|
4099
|
+
description: string | null;
|
|
4099
4100
|
permissions: {
|
|
4100
4101
|
role: string;
|
|
4101
4102
|
paths?: string[] | undefined;
|
|
4102
4103
|
} | null;
|
|
4103
|
-
|
|
4104
|
-
description: string | null;
|
|
4104
|
+
signature: string | null;
|
|
4105
4105
|
guildMsg: string;
|
|
4106
4106
|
placeholderMsg: string;
|
|
4107
4107
|
developerName: string;
|
|
@@ -4133,17 +4133,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4133
4133
|
}>, "many">;
|
|
4134
4134
|
}, "strip", z.ZodTypeAny, {
|
|
4135
4135
|
agents: {
|
|
4136
|
-
type: "claude" | "codex";
|
|
4137
4136
|
id: string;
|
|
4138
4137
|
avatar: string | null;
|
|
4139
|
-
|
|
4138
|
+
type: "claude" | "codex";
|
|
4140
4139
|
userId: string;
|
|
4140
|
+
name: string;
|
|
4141
|
+
description: string | null;
|
|
4141
4142
|
permissions: {
|
|
4142
4143
|
role: string;
|
|
4143
4144
|
paths?: string[] | undefined;
|
|
4144
4145
|
} | null;
|
|
4145
|
-
|
|
4146
|
-
description: string | null;
|
|
4146
|
+
signature: string | null;
|
|
4147
4147
|
guildMsg: string;
|
|
4148
4148
|
placeholderMsg: string;
|
|
4149
4149
|
developerName: string;
|
|
@@ -4175,17 +4175,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4175
4175
|
}[];
|
|
4176
4176
|
}, {
|
|
4177
4177
|
agents: {
|
|
4178
|
-
type: "claude" | "codex";
|
|
4179
4178
|
id: string;
|
|
4180
4179
|
avatar: string | null;
|
|
4181
|
-
|
|
4180
|
+
type: "claude" | "codex";
|
|
4182
4181
|
userId: string;
|
|
4182
|
+
name: string;
|
|
4183
|
+
description: string | null;
|
|
4183
4184
|
permissions: {
|
|
4184
4185
|
role: string;
|
|
4185
4186
|
paths?: string[] | undefined;
|
|
4186
4187
|
} | null;
|
|
4187
|
-
|
|
4188
|
-
description: string | null;
|
|
4188
|
+
signature: string | null;
|
|
4189
4189
|
guildMsg: string;
|
|
4190
4190
|
placeholderMsg: string;
|
|
4191
4191
|
developerName: string;
|
|
@@ -4343,17 +4343,17 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4343
4343
|
paths?: string[] | undefined;
|
|
4344
4344
|
}>>;
|
|
4345
4345
|
}, "strip", z.ZodTypeAny, {
|
|
4346
|
-
type: "claude" | "codex";
|
|
4347
4346
|
id: string;
|
|
4348
4347
|
avatar: string | null;
|
|
4349
|
-
|
|
4348
|
+
type: "claude" | "codex";
|
|
4350
4349
|
userId: string;
|
|
4350
|
+
name: string;
|
|
4351
|
+
description: string | null;
|
|
4351
4352
|
permissions: {
|
|
4352
4353
|
role: string;
|
|
4353
4354
|
paths?: string[] | undefined;
|
|
4354
4355
|
} | null;
|
|
4355
|
-
|
|
4356
|
-
description: string | null;
|
|
4356
|
+
signature: string | null;
|
|
4357
4357
|
guildMsg: string;
|
|
4358
4358
|
placeholderMsg: string;
|
|
4359
4359
|
developerName: string;
|
|
@@ -4383,17 +4383,17 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4383
4383
|
}> | undefined;
|
|
4384
4384
|
} | null;
|
|
4385
4385
|
}, {
|
|
4386
|
-
type: "claude" | "codex";
|
|
4387
4386
|
id: string;
|
|
4388
4387
|
avatar: string | null;
|
|
4389
|
-
|
|
4388
|
+
type: "claude" | "codex";
|
|
4390
4389
|
userId: string;
|
|
4390
|
+
name: string;
|
|
4391
|
+
description: string | null;
|
|
4391
4392
|
permissions: {
|
|
4392
4393
|
role: string;
|
|
4393
4394
|
paths?: string[] | undefined;
|
|
4394
4395
|
} | null;
|
|
4395
|
-
|
|
4396
|
-
description: string | null;
|
|
4396
|
+
signature: string | null;
|
|
4397
4397
|
guildMsg: string;
|
|
4398
4398
|
placeholderMsg: string;
|
|
4399
4399
|
developerName: string;
|
|
@@ -4541,8 +4541,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4541
4541
|
placeholderMsg: string;
|
|
4542
4542
|
supportLocal: boolean;
|
|
4543
4543
|
avatar?: string | undefined;
|
|
4544
|
-
signature?: string | undefined;
|
|
4545
4544
|
description?: string | undefined;
|
|
4545
|
+
signature?: string | undefined;
|
|
4546
4546
|
gitRepoId?: string | undefined;
|
|
4547
4547
|
config?: {
|
|
4548
4548
|
displayConfig?: Record<string, {
|
|
@@ -4569,8 +4569,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4569
4569
|
type: "claude" | "codex";
|
|
4570
4570
|
name: string;
|
|
4571
4571
|
avatar?: string | undefined;
|
|
4572
|
-
signature?: string | undefined;
|
|
4573
4572
|
description?: string | undefined;
|
|
4573
|
+
signature?: string | undefined;
|
|
4574
4574
|
guildMsg?: string | undefined;
|
|
4575
4575
|
placeholderMsg?: string | undefined;
|
|
4576
4576
|
gitRepoId?: string | undefined;
|
|
@@ -4724,17 +4724,17 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4724
4724
|
paths?: string[] | undefined;
|
|
4725
4725
|
}>>;
|
|
4726
4726
|
}, "strip", z.ZodTypeAny, {
|
|
4727
|
-
type: "claude" | "codex";
|
|
4728
4727
|
id: string;
|
|
4729
4728
|
avatar: string | null;
|
|
4730
|
-
|
|
4729
|
+
type: "claude" | "codex";
|
|
4731
4730
|
userId: string;
|
|
4731
|
+
name: string;
|
|
4732
|
+
description: string | null;
|
|
4732
4733
|
permissions: {
|
|
4733
4734
|
role: string;
|
|
4734
4735
|
paths?: string[] | undefined;
|
|
4735
4736
|
} | null;
|
|
4736
|
-
|
|
4737
|
-
description: string | null;
|
|
4737
|
+
signature: string | null;
|
|
4738
4738
|
guildMsg: string;
|
|
4739
4739
|
placeholderMsg: string;
|
|
4740
4740
|
developerName: string;
|
|
@@ -4764,17 +4764,17 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4764
4764
|
}> | undefined;
|
|
4765
4765
|
} | null;
|
|
4766
4766
|
}, {
|
|
4767
|
-
type: "claude" | "codex";
|
|
4768
4767
|
id: string;
|
|
4769
4768
|
avatar: string | null;
|
|
4770
|
-
|
|
4769
|
+
type: "claude" | "codex";
|
|
4771
4770
|
userId: string;
|
|
4771
|
+
name: string;
|
|
4772
|
+
description: string | null;
|
|
4772
4773
|
permissions: {
|
|
4773
4774
|
role: string;
|
|
4774
4775
|
paths?: string[] | undefined;
|
|
4775
4776
|
} | null;
|
|
4776
|
-
|
|
4777
|
-
description: string | null;
|
|
4777
|
+
signature: string | null;
|
|
4778
4778
|
guildMsg: string;
|
|
4779
4779
|
placeholderMsg: string;
|
|
4780
4780
|
developerName: string;
|
|
@@ -4916,11 +4916,11 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4916
4916
|
}> | undefined;
|
|
4917
4917
|
}>>>;
|
|
4918
4918
|
}, "strip", z.ZodTypeAny, {
|
|
4919
|
-
type?: "claude" | "codex" | undefined;
|
|
4920
4919
|
avatar?: string | null | undefined;
|
|
4921
|
-
|
|
4920
|
+
type?: "claude" | "codex" | undefined;
|
|
4922
4921
|
name?: string | undefined;
|
|
4923
4922
|
description?: string | null | undefined;
|
|
4923
|
+
signature?: string | null | undefined;
|
|
4924
4924
|
guildMsg?: string | undefined;
|
|
4925
4925
|
placeholderMsg?: string | undefined;
|
|
4926
4926
|
gitRepoId?: string | null | undefined;
|
|
@@ -4947,11 +4947,11 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4947
4947
|
}> | undefined;
|
|
4948
4948
|
} | null | undefined;
|
|
4949
4949
|
}, {
|
|
4950
|
-
type?: "claude" | "codex" | undefined;
|
|
4951
4950
|
avatar?: string | null | undefined;
|
|
4952
|
-
|
|
4951
|
+
type?: "claude" | "codex" | undefined;
|
|
4953
4952
|
name?: string | undefined;
|
|
4954
4953
|
description?: string | null | undefined;
|
|
4954
|
+
signature?: string | null | undefined;
|
|
4955
4955
|
guildMsg?: string | undefined;
|
|
4956
4956
|
placeholderMsg?: string | undefined;
|
|
4957
4957
|
gitRepoId?: string | null | undefined;
|
|
@@ -5105,17 +5105,17 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
5105
5105
|
paths?: string[] | undefined;
|
|
5106
5106
|
}>>;
|
|
5107
5107
|
}, "strip", z.ZodTypeAny, {
|
|
5108
|
-
type: "claude" | "codex";
|
|
5109
5108
|
id: string;
|
|
5110
5109
|
avatar: string | null;
|
|
5111
|
-
|
|
5110
|
+
type: "claude" | "codex";
|
|
5112
5111
|
userId: string;
|
|
5112
|
+
name: string;
|
|
5113
|
+
description: string | null;
|
|
5113
5114
|
permissions: {
|
|
5114
5115
|
role: string;
|
|
5115
5116
|
paths?: string[] | undefined;
|
|
5116
5117
|
} | null;
|
|
5117
|
-
|
|
5118
|
-
description: string | null;
|
|
5118
|
+
signature: string | null;
|
|
5119
5119
|
guildMsg: string;
|
|
5120
5120
|
placeholderMsg: string;
|
|
5121
5121
|
developerName: string;
|
|
@@ -5145,17 +5145,17 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
5145
5145
|
}> | undefined;
|
|
5146
5146
|
} | null;
|
|
5147
5147
|
}, {
|
|
5148
|
-
type: "claude" | "codex";
|
|
5149
5148
|
id: string;
|
|
5150
5149
|
avatar: string | null;
|
|
5151
|
-
|
|
5150
|
+
type: "claude" | "codex";
|
|
5152
5151
|
userId: string;
|
|
5152
|
+
name: string;
|
|
5153
|
+
description: string | null;
|
|
5153
5154
|
permissions: {
|
|
5154
5155
|
role: string;
|
|
5155
5156
|
paths?: string[] | undefined;
|
|
5156
5157
|
} | null;
|
|
5157
|
-
|
|
5158
|
-
description: string | null;
|
|
5158
|
+
signature: string | null;
|
|
5159
5159
|
guildMsg: string;
|
|
5160
5160
|
placeholderMsg: string;
|
|
5161
5161
|
developerName: string;
|
|
@@ -5403,13 +5403,13 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5403
5403
|
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5404
5404
|
}, "strip", z.ZodTypeAny, {
|
|
5405
5405
|
type: "claude" | "codex";
|
|
5406
|
-
userId: string;
|
|
5407
5406
|
taskId: string;
|
|
5407
|
+
userId: string;
|
|
5408
5408
|
name: string;
|
|
5409
5409
|
agentDir: string;
|
|
5410
5410
|
avatar?: string | undefined;
|
|
5411
|
-
signature?: string | undefined;
|
|
5412
5411
|
description?: string | undefined;
|
|
5412
|
+
signature?: string | undefined;
|
|
5413
5413
|
guildMsg?: string | undefined;
|
|
5414
5414
|
placeholderMsg?: string | undefined;
|
|
5415
5415
|
envVars?: {
|
|
@@ -5420,14 +5420,14 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5420
5420
|
defaultValue?: string | undefined;
|
|
5421
5421
|
}[] | undefined;
|
|
5422
5422
|
}, {
|
|
5423
|
-
userId: string;
|
|
5424
5423
|
taskId: string;
|
|
5424
|
+
userId: string;
|
|
5425
5425
|
name: string;
|
|
5426
5426
|
agentDir: string;
|
|
5427
|
-
type?: "claude" | "codex" | undefined;
|
|
5428
5427
|
avatar?: string | undefined;
|
|
5429
|
-
|
|
5428
|
+
type?: "claude" | "codex" | undefined;
|
|
5430
5429
|
description?: string | undefined;
|
|
5430
|
+
signature?: string | undefined;
|
|
5431
5431
|
guildMsg?: string | undefined;
|
|
5432
5432
|
placeholderMsg?: string | undefined;
|
|
5433
5433
|
envVars?: {
|
|
@@ -5447,11 +5447,11 @@ declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
|
5447
5447
|
ownerId: z.ZodString;
|
|
5448
5448
|
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5449
5449
|
}, "strip", z.ZodTypeAny, {
|
|
5450
|
-
ownerType: "agent" | "
|
|
5450
|
+
ownerType: "agent" | "machine" | "draft-agent" | "cloud";
|
|
5451
5451
|
ownerId: string;
|
|
5452
5452
|
variables: Record<string, string>;
|
|
5453
5453
|
}, {
|
|
5454
|
-
ownerType: "agent" | "
|
|
5454
|
+
ownerType: "agent" | "machine" | "draft-agent" | "cloud";
|
|
5455
5455
|
ownerId: string;
|
|
5456
5456
|
variables: Record<string, string>;
|
|
5457
5457
|
}>;
|
|
@@ -5634,18 +5634,18 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5634
5634
|
createdAt: z.ZodString;
|
|
5635
5635
|
updatedAt: z.ZodString;
|
|
5636
5636
|
}, "strip", z.ZodTypeAny, {
|
|
5637
|
-
type: "claude" | "codex";
|
|
5638
5637
|
id: string;
|
|
5639
5638
|
avatar: string | null;
|
|
5640
|
-
|
|
5639
|
+
type: "claude" | "codex";
|
|
5641
5640
|
userId: string;
|
|
5641
|
+
createdAt: string;
|
|
5642
|
+
updatedAt: string;
|
|
5643
|
+
name: string;
|
|
5644
|
+
description: string | null;
|
|
5642
5645
|
permissions: {
|
|
5643
5646
|
role: string;
|
|
5644
5647
|
paths?: string[] | undefined;
|
|
5645
5648
|
} | null;
|
|
5646
|
-
updatedAt: string;
|
|
5647
|
-
name: string;
|
|
5648
|
-
description: string | null;
|
|
5649
5649
|
enable: boolean;
|
|
5650
5650
|
config: {
|
|
5651
5651
|
signature?: string | undefined;
|
|
@@ -5683,18 +5683,18 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5683
5683
|
publishedAgentId: string | null;
|
|
5684
5684
|
sourceTaskId: string | null;
|
|
5685
5685
|
}, {
|
|
5686
|
-
type: "claude" | "codex";
|
|
5687
5686
|
id: string;
|
|
5688
5687
|
avatar: string | null;
|
|
5689
|
-
|
|
5688
|
+
type: "claude" | "codex";
|
|
5690
5689
|
userId: string;
|
|
5690
|
+
createdAt: string;
|
|
5691
|
+
updatedAt: string;
|
|
5692
|
+
name: string;
|
|
5693
|
+
description: string | null;
|
|
5691
5694
|
permissions: {
|
|
5692
5695
|
role: string;
|
|
5693
5696
|
paths?: string[] | undefined;
|
|
5694
5697
|
} | null;
|
|
5695
|
-
updatedAt: string;
|
|
5696
|
-
name: string;
|
|
5697
|
-
description: string | null;
|
|
5698
5698
|
enable: boolean;
|
|
5699
5699
|
config: {
|
|
5700
5700
|
signature?: string | undefined;
|
|
@@ -6115,18 +6115,18 @@ declare const UpdateDraftAgentResponseSchema: z.ZodObject<{
|
|
|
6115
6115
|
createdAt: z.ZodString;
|
|
6116
6116
|
updatedAt: z.ZodString;
|
|
6117
6117
|
}, "strip", z.ZodTypeAny, {
|
|
6118
|
-
type: "claude" | "codex";
|
|
6119
6118
|
id: string;
|
|
6120
6119
|
avatar: string | null;
|
|
6121
|
-
|
|
6120
|
+
type: "claude" | "codex";
|
|
6122
6121
|
userId: string;
|
|
6122
|
+
createdAt: string;
|
|
6123
|
+
updatedAt: string;
|
|
6124
|
+
name: string;
|
|
6125
|
+
description: string | null;
|
|
6123
6126
|
permissions: {
|
|
6124
6127
|
role: string;
|
|
6125
6128
|
paths?: string[] | undefined;
|
|
6126
6129
|
} | null;
|
|
6127
|
-
updatedAt: string;
|
|
6128
|
-
name: string;
|
|
6129
|
-
description: string | null;
|
|
6130
6130
|
enable: boolean;
|
|
6131
6131
|
config: {
|
|
6132
6132
|
signature?: string | undefined;
|
|
@@ -6164,18 +6164,18 @@ declare const UpdateDraftAgentResponseSchema: z.ZodObject<{
|
|
|
6164
6164
|
publishedAgentId: string | null;
|
|
6165
6165
|
sourceTaskId: string | null;
|
|
6166
6166
|
}, {
|
|
6167
|
-
type: "claude" | "codex";
|
|
6168
6167
|
id: string;
|
|
6169
6168
|
avatar: string | null;
|
|
6170
|
-
|
|
6169
|
+
type: "claude" | "codex";
|
|
6171
6170
|
userId: string;
|
|
6171
|
+
createdAt: string;
|
|
6172
|
+
updatedAt: string;
|
|
6173
|
+
name: string;
|
|
6174
|
+
description: string | null;
|
|
6172
6175
|
permissions: {
|
|
6173
6176
|
role: string;
|
|
6174
6177
|
paths?: string[] | undefined;
|
|
6175
6178
|
} | null;
|
|
6176
|
-
updatedAt: string;
|
|
6177
|
-
name: string;
|
|
6178
|
-
description: string | null;
|
|
6179
6179
|
enable: boolean;
|
|
6180
6180
|
config: {
|
|
6181
6181
|
signature?: string | undefined;
|
|
@@ -6341,17 +6341,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6341
6341
|
paths?: string[] | undefined;
|
|
6342
6342
|
}>>;
|
|
6343
6343
|
}, "strip", z.ZodTypeAny, {
|
|
6344
|
-
type: "claude" | "codex";
|
|
6345
6344
|
id: string;
|
|
6346
6345
|
avatar: string | null;
|
|
6347
|
-
|
|
6346
|
+
type: "claude" | "codex";
|
|
6348
6347
|
userId: string;
|
|
6348
|
+
name: string;
|
|
6349
|
+
description: string | null;
|
|
6349
6350
|
permissions: {
|
|
6350
6351
|
role: string;
|
|
6351
6352
|
paths?: string[] | undefined;
|
|
6352
6353
|
} | null;
|
|
6353
|
-
|
|
6354
|
-
description: string | null;
|
|
6354
|
+
signature: string | null;
|
|
6355
6355
|
guildMsg: string;
|
|
6356
6356
|
placeholderMsg: string;
|
|
6357
6357
|
developerName: string;
|
|
@@ -6381,17 +6381,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6381
6381
|
}> | undefined;
|
|
6382
6382
|
} | null;
|
|
6383
6383
|
}, {
|
|
6384
|
-
type: "claude" | "codex";
|
|
6385
6384
|
id: string;
|
|
6386
6385
|
avatar: string | null;
|
|
6387
|
-
|
|
6386
|
+
type: "claude" | "codex";
|
|
6388
6387
|
userId: string;
|
|
6388
|
+
name: string;
|
|
6389
|
+
description: string | null;
|
|
6389
6390
|
permissions: {
|
|
6390
6391
|
role: string;
|
|
6391
6392
|
paths?: string[] | undefined;
|
|
6392
6393
|
} | null;
|
|
6393
|
-
|
|
6394
|
-
description: string | null;
|
|
6394
|
+
signature: string | null;
|
|
6395
6395
|
guildMsg: string;
|
|
6396
6396
|
placeholderMsg: string;
|
|
6397
6397
|
developerName: string;
|
|
@@ -6585,18 +6585,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6585
6585
|
createdAt: z.ZodString;
|
|
6586
6586
|
updatedAt: z.ZodString;
|
|
6587
6587
|
}, "strip", z.ZodTypeAny, {
|
|
6588
|
-
type: "claude" | "codex";
|
|
6589
6588
|
id: string;
|
|
6590
6589
|
avatar: string | null;
|
|
6591
|
-
|
|
6590
|
+
type: "claude" | "codex";
|
|
6592
6591
|
userId: string;
|
|
6592
|
+
createdAt: string;
|
|
6593
|
+
updatedAt: string;
|
|
6594
|
+
name: string;
|
|
6595
|
+
description: string | null;
|
|
6593
6596
|
permissions: {
|
|
6594
6597
|
role: string;
|
|
6595
6598
|
paths?: string[] | undefined;
|
|
6596
6599
|
} | null;
|
|
6597
|
-
updatedAt: string;
|
|
6598
|
-
name: string;
|
|
6599
|
-
description: string | null;
|
|
6600
6600
|
enable: boolean;
|
|
6601
6601
|
config: {
|
|
6602
6602
|
signature?: string | undefined;
|
|
@@ -6634,18 +6634,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6634
6634
|
publishedAgentId: string | null;
|
|
6635
6635
|
sourceTaskId: string | null;
|
|
6636
6636
|
}, {
|
|
6637
|
-
type: "claude" | "codex";
|
|
6638
6637
|
id: string;
|
|
6639
6638
|
avatar: string | null;
|
|
6640
|
-
|
|
6639
|
+
type: "claude" | "codex";
|
|
6641
6640
|
userId: string;
|
|
6641
|
+
createdAt: string;
|
|
6642
|
+
updatedAt: string;
|
|
6643
|
+
name: string;
|
|
6644
|
+
description: string | null;
|
|
6642
6645
|
permissions: {
|
|
6643
6646
|
role: string;
|
|
6644
6647
|
paths?: string[] | undefined;
|
|
6645
6648
|
} | null;
|
|
6646
|
-
updatedAt: string;
|
|
6647
|
-
name: string;
|
|
6648
|
-
description: string | null;
|
|
6649
6649
|
enable: boolean;
|
|
6650
6650
|
config: {
|
|
6651
6651
|
signature?: string | undefined;
|
|
@@ -6685,17 +6685,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6685
6685
|
}>, "many">;
|
|
6686
6686
|
}, "strip", z.ZodTypeAny, {
|
|
6687
6687
|
agents: {
|
|
6688
|
-
type: "claude" | "codex";
|
|
6689
6688
|
id: string;
|
|
6690
6689
|
avatar: string | null;
|
|
6691
|
-
|
|
6690
|
+
type: "claude" | "codex";
|
|
6692
6691
|
userId: string;
|
|
6692
|
+
name: string;
|
|
6693
|
+
description: string | null;
|
|
6693
6694
|
permissions: {
|
|
6694
6695
|
role: string;
|
|
6695
6696
|
paths?: string[] | undefined;
|
|
6696
6697
|
} | null;
|
|
6697
|
-
|
|
6698
|
-
description: string | null;
|
|
6698
|
+
signature: string | null;
|
|
6699
6699
|
guildMsg: string;
|
|
6700
6700
|
placeholderMsg: string;
|
|
6701
6701
|
developerName: string;
|
|
@@ -6726,18 +6726,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6726
6726
|
} | null;
|
|
6727
6727
|
}[];
|
|
6728
6728
|
draftAgents: {
|
|
6729
|
-
type: "claude" | "codex";
|
|
6730
6729
|
id: string;
|
|
6731
6730
|
avatar: string | null;
|
|
6732
|
-
|
|
6731
|
+
type: "claude" | "codex";
|
|
6733
6732
|
userId: string;
|
|
6733
|
+
createdAt: string;
|
|
6734
|
+
updatedAt: string;
|
|
6735
|
+
name: string;
|
|
6736
|
+
description: string | null;
|
|
6734
6737
|
permissions: {
|
|
6735
6738
|
role: string;
|
|
6736
6739
|
paths?: string[] | undefined;
|
|
6737
6740
|
} | null;
|
|
6738
|
-
updatedAt: string;
|
|
6739
|
-
name: string;
|
|
6740
|
-
description: string | null;
|
|
6741
6741
|
enable: boolean;
|
|
6742
6742
|
config: {
|
|
6743
6743
|
signature?: string | undefined;
|
|
@@ -6777,17 +6777,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6777
6777
|
}[];
|
|
6778
6778
|
}, {
|
|
6779
6779
|
agents: {
|
|
6780
|
-
type: "claude" | "codex";
|
|
6781
6780
|
id: string;
|
|
6782
6781
|
avatar: string | null;
|
|
6783
|
-
|
|
6782
|
+
type: "claude" | "codex";
|
|
6784
6783
|
userId: string;
|
|
6784
|
+
name: string;
|
|
6785
|
+
description: string | null;
|
|
6785
6786
|
permissions: {
|
|
6786
6787
|
role: string;
|
|
6787
6788
|
paths?: string[] | undefined;
|
|
6788
6789
|
} | null;
|
|
6789
|
-
|
|
6790
|
-
description: string | null;
|
|
6790
|
+
signature: string | null;
|
|
6791
6791
|
guildMsg: string;
|
|
6792
6792
|
placeholderMsg: string;
|
|
6793
6793
|
developerName: string;
|
|
@@ -6818,18 +6818,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6818
6818
|
} | null;
|
|
6819
6819
|
}[];
|
|
6820
6820
|
draftAgents: {
|
|
6821
|
-
type: "claude" | "codex";
|
|
6822
6821
|
id: string;
|
|
6823
6822
|
avatar: string | null;
|
|
6824
|
-
|
|
6823
|
+
type: "claude" | "codex";
|
|
6825
6824
|
userId: string;
|
|
6825
|
+
createdAt: string;
|
|
6826
|
+
updatedAt: string;
|
|
6827
|
+
name: string;
|
|
6828
|
+
description: string | null;
|
|
6826
6829
|
permissions: {
|
|
6827
6830
|
role: string;
|
|
6828
6831
|
paths?: string[] | undefined;
|
|
6829
6832
|
} | null;
|
|
6830
|
-
updatedAt: string;
|
|
6831
|
-
name: string;
|
|
6832
|
-
description: string | null;
|
|
6833
6833
|
enable: boolean;
|
|
6834
6834
|
config: {
|
|
6835
6835
|
signature?: string | undefined;
|
|
@@ -6949,20 +6949,20 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
6949
6949
|
createdAt: z.ZodString;
|
|
6950
6950
|
updatedAt: z.ZodString;
|
|
6951
6951
|
}, "strip", z.ZodTypeAny, {
|
|
6952
|
-
status: string;
|
|
6953
6952
|
id: string;
|
|
6954
|
-
|
|
6953
|
+
status: string;
|
|
6955
6954
|
dataEncryptionKey: string;
|
|
6955
|
+
createdAt: string;
|
|
6956
6956
|
updatedAt: string;
|
|
6957
6957
|
owner: string;
|
|
6958
6958
|
metadata: string | null;
|
|
6959
6959
|
approval: string;
|
|
6960
6960
|
controlPort: number | null;
|
|
6961
6961
|
}, {
|
|
6962
|
-
status: string;
|
|
6963
6962
|
id: string;
|
|
6964
|
-
|
|
6963
|
+
status: string;
|
|
6965
6964
|
dataEncryptionKey: string;
|
|
6965
|
+
createdAt: string;
|
|
6966
6966
|
updatedAt: string;
|
|
6967
6967
|
owner: string;
|
|
6968
6968
|
metadata: string | null;
|
|
@@ -6982,18 +6982,18 @@ declare const CloudMachineSchema: z.ZodObject<{
|
|
|
6982
6982
|
createdAt: z.ZodString;
|
|
6983
6983
|
updatedAt: z.ZodString;
|
|
6984
6984
|
}, "strip", z.ZodTypeAny, {
|
|
6985
|
-
status: string;
|
|
6986
6985
|
id: string;
|
|
6987
|
-
|
|
6986
|
+
status: string;
|
|
6988
6987
|
cloudId: string;
|
|
6988
|
+
createdAt: string;
|
|
6989
6989
|
updatedAt: string;
|
|
6990
6990
|
metadata: string | null;
|
|
6991
6991
|
deviceId: string;
|
|
6992
6992
|
}, {
|
|
6993
|
-
status: string;
|
|
6994
6993
|
id: string;
|
|
6995
|
-
|
|
6994
|
+
status: string;
|
|
6996
6995
|
cloudId: string;
|
|
6996
|
+
createdAt: string;
|
|
6997
6997
|
updatedAt: string;
|
|
6998
6998
|
metadata: string | null;
|
|
6999
6999
|
deviceId: string;
|
|
@@ -7018,50 +7018,50 @@ declare const CloudSchema: z.ZodObject<{
|
|
|
7018
7018
|
createdAt: z.ZodString;
|
|
7019
7019
|
updatedAt: z.ZodString;
|
|
7020
7020
|
}, "strip", z.ZodTypeAny, {
|
|
7021
|
-
status: string;
|
|
7022
7021
|
id: string;
|
|
7023
|
-
|
|
7022
|
+
status: string;
|
|
7024
7023
|
cloudId: string;
|
|
7024
|
+
createdAt: string;
|
|
7025
7025
|
updatedAt: string;
|
|
7026
7026
|
metadata: string | null;
|
|
7027
7027
|
deviceId: string;
|
|
7028
7028
|
}, {
|
|
7029
|
-
status: string;
|
|
7030
7029
|
id: string;
|
|
7031
|
-
|
|
7030
|
+
status: string;
|
|
7032
7031
|
cloudId: string;
|
|
7032
|
+
createdAt: string;
|
|
7033
7033
|
updatedAt: string;
|
|
7034
7034
|
metadata: string | null;
|
|
7035
7035
|
deviceId: string;
|
|
7036
7036
|
}>, "many">>;
|
|
7037
7037
|
}, "strip", z.ZodTypeAny, {
|
|
7038
|
-
type: "public" | "private";
|
|
7039
7038
|
id: string;
|
|
7039
|
+
type: "public" | "private";
|
|
7040
7040
|
createdAt: string;
|
|
7041
7041
|
updatedAt: string;
|
|
7042
7042
|
name: string;
|
|
7043
7043
|
owner: string;
|
|
7044
7044
|
machines?: {
|
|
7045
|
-
status: string;
|
|
7046
7045
|
id: string;
|
|
7047
|
-
|
|
7046
|
+
status: string;
|
|
7048
7047
|
cloudId: string;
|
|
7048
|
+
createdAt: string;
|
|
7049
7049
|
updatedAt: string;
|
|
7050
7050
|
metadata: string | null;
|
|
7051
7051
|
deviceId: string;
|
|
7052
7052
|
}[] | undefined;
|
|
7053
7053
|
}, {
|
|
7054
|
-
type: "public" | "private";
|
|
7055
7054
|
id: string;
|
|
7055
|
+
type: "public" | "private";
|
|
7056
7056
|
createdAt: string;
|
|
7057
7057
|
updatedAt: string;
|
|
7058
7058
|
name: string;
|
|
7059
7059
|
owner: string;
|
|
7060
7060
|
machines?: {
|
|
7061
|
-
status: string;
|
|
7062
7061
|
id: string;
|
|
7063
|
-
|
|
7062
|
+
status: string;
|
|
7064
7063
|
cloudId: string;
|
|
7064
|
+
createdAt: string;
|
|
7065
7065
|
updatedAt: string;
|
|
7066
7066
|
metadata: string | null;
|
|
7067
7067
|
deviceId: string;
|
|
@@ -7088,50 +7088,50 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7088
7088
|
createdAt: z.ZodString;
|
|
7089
7089
|
updatedAt: z.ZodString;
|
|
7090
7090
|
}, "strip", z.ZodTypeAny, {
|
|
7091
|
-
status: string;
|
|
7092
7091
|
id: string;
|
|
7093
|
-
|
|
7092
|
+
status: string;
|
|
7094
7093
|
cloudId: string;
|
|
7094
|
+
createdAt: string;
|
|
7095
7095
|
updatedAt: string;
|
|
7096
7096
|
metadata: string | null;
|
|
7097
7097
|
deviceId: string;
|
|
7098
7098
|
}, {
|
|
7099
|
-
status: string;
|
|
7100
7099
|
id: string;
|
|
7101
|
-
|
|
7100
|
+
status: string;
|
|
7102
7101
|
cloudId: string;
|
|
7102
|
+
createdAt: string;
|
|
7103
7103
|
updatedAt: string;
|
|
7104
7104
|
metadata: string | null;
|
|
7105
7105
|
deviceId: string;
|
|
7106
7106
|
}>, "many">>;
|
|
7107
7107
|
}, "strip", z.ZodTypeAny, {
|
|
7108
|
-
type: "public" | "private";
|
|
7109
7108
|
id: string;
|
|
7109
|
+
type: "public" | "private";
|
|
7110
7110
|
createdAt: string;
|
|
7111
7111
|
updatedAt: string;
|
|
7112
7112
|
name: string;
|
|
7113
7113
|
owner: string;
|
|
7114
7114
|
machines?: {
|
|
7115
|
-
status: string;
|
|
7116
7115
|
id: string;
|
|
7117
|
-
|
|
7116
|
+
status: string;
|
|
7118
7117
|
cloudId: string;
|
|
7118
|
+
createdAt: string;
|
|
7119
7119
|
updatedAt: string;
|
|
7120
7120
|
metadata: string | null;
|
|
7121
7121
|
deviceId: string;
|
|
7122
7122
|
}[] | undefined;
|
|
7123
7123
|
}, {
|
|
7124
|
-
type: "public" | "private";
|
|
7125
7124
|
id: string;
|
|
7125
|
+
type: "public" | "private";
|
|
7126
7126
|
createdAt: string;
|
|
7127
7127
|
updatedAt: string;
|
|
7128
7128
|
name: string;
|
|
7129
7129
|
owner: string;
|
|
7130
7130
|
machines?: {
|
|
7131
|
-
status: string;
|
|
7132
7131
|
id: string;
|
|
7133
|
-
|
|
7132
|
+
status: string;
|
|
7134
7133
|
cloudId: string;
|
|
7134
|
+
createdAt: string;
|
|
7135
7135
|
updatedAt: string;
|
|
7136
7136
|
metadata: string | null;
|
|
7137
7137
|
deviceId: string;
|
|
@@ -7148,20 +7148,20 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7148
7148
|
createdAt: z.ZodString;
|
|
7149
7149
|
updatedAt: z.ZodString;
|
|
7150
7150
|
}, "strip", z.ZodTypeAny, {
|
|
7151
|
-
status: string;
|
|
7152
7151
|
id: string;
|
|
7153
|
-
|
|
7152
|
+
status: string;
|
|
7154
7153
|
dataEncryptionKey: string;
|
|
7154
|
+
createdAt: string;
|
|
7155
7155
|
updatedAt: string;
|
|
7156
7156
|
owner: string;
|
|
7157
7157
|
metadata: string | null;
|
|
7158
7158
|
approval: string;
|
|
7159
7159
|
controlPort: number | null;
|
|
7160
7160
|
}, {
|
|
7161
|
-
status: string;
|
|
7162
7161
|
id: string;
|
|
7163
|
-
|
|
7162
|
+
status: string;
|
|
7164
7163
|
dataEncryptionKey: string;
|
|
7164
|
+
createdAt: string;
|
|
7165
7165
|
updatedAt: string;
|
|
7166
7166
|
owner: string;
|
|
7167
7167
|
metadata: string | null;
|
|
@@ -7170,27 +7170,27 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7170
7170
|
}>, "many">;
|
|
7171
7171
|
}, "strip", z.ZodTypeAny, {
|
|
7172
7172
|
clouds: {
|
|
7173
|
-
type: "public" | "private";
|
|
7174
7173
|
id: string;
|
|
7174
|
+
type: "public" | "private";
|
|
7175
7175
|
createdAt: string;
|
|
7176
7176
|
updatedAt: string;
|
|
7177
7177
|
name: string;
|
|
7178
7178
|
owner: string;
|
|
7179
7179
|
machines?: {
|
|
7180
|
-
status: string;
|
|
7181
7180
|
id: string;
|
|
7182
|
-
|
|
7181
|
+
status: string;
|
|
7183
7182
|
cloudId: string;
|
|
7183
|
+
createdAt: string;
|
|
7184
7184
|
updatedAt: string;
|
|
7185
7185
|
metadata: string | null;
|
|
7186
7186
|
deviceId: string;
|
|
7187
7187
|
}[] | undefined;
|
|
7188
7188
|
}[];
|
|
7189
7189
|
localMachines: {
|
|
7190
|
-
status: string;
|
|
7191
7190
|
id: string;
|
|
7192
|
-
|
|
7191
|
+
status: string;
|
|
7193
7192
|
dataEncryptionKey: string;
|
|
7193
|
+
createdAt: string;
|
|
7194
7194
|
updatedAt: string;
|
|
7195
7195
|
owner: string;
|
|
7196
7196
|
metadata: string | null;
|
|
@@ -7199,27 +7199,27 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7199
7199
|
}[];
|
|
7200
7200
|
}, {
|
|
7201
7201
|
clouds: {
|
|
7202
|
-
type: "public" | "private";
|
|
7203
7202
|
id: string;
|
|
7203
|
+
type: "public" | "private";
|
|
7204
7204
|
createdAt: string;
|
|
7205
7205
|
updatedAt: string;
|
|
7206
7206
|
name: string;
|
|
7207
7207
|
owner: string;
|
|
7208
7208
|
machines?: {
|
|
7209
|
-
status: string;
|
|
7210
7209
|
id: string;
|
|
7211
|
-
|
|
7210
|
+
status: string;
|
|
7212
7211
|
cloudId: string;
|
|
7212
|
+
createdAt: string;
|
|
7213
7213
|
updatedAt: string;
|
|
7214
7214
|
metadata: string | null;
|
|
7215
7215
|
deviceId: string;
|
|
7216
7216
|
}[] | undefined;
|
|
7217
7217
|
}[];
|
|
7218
7218
|
localMachines: {
|
|
7219
|
-
status: string;
|
|
7220
7219
|
id: string;
|
|
7221
|
-
|
|
7220
|
+
status: string;
|
|
7222
7221
|
dataEncryptionKey: string;
|
|
7222
|
+
createdAt: string;
|
|
7223
7223
|
updatedAt: string;
|
|
7224
7224
|
owner: string;
|
|
7225
7225
|
metadata: string | null;
|
|
@@ -7467,12 +7467,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
|
|
|
7467
7467
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7468
7468
|
fileIds: z.ZodOptional<z.ZodString>;
|
|
7469
7469
|
}, "strip", z.ZodTypeAny, {
|
|
7470
|
-
page: number;
|
|
7471
7470
|
limit: number;
|
|
7471
|
+
page: number;
|
|
7472
7472
|
fileIds?: string | undefined;
|
|
7473
7473
|
}, {
|
|
7474
|
-
page?: number | undefined;
|
|
7475
7474
|
limit?: number | undefined;
|
|
7475
|
+
page?: number | undefined;
|
|
7476
7476
|
fileIds?: string | undefined;
|
|
7477
7477
|
}>;
|
|
7478
7478
|
type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
|
|
@@ -7503,9 +7503,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
7503
7503
|
contentType: string;
|
|
7504
7504
|
}>, "many">;
|
|
7505
7505
|
}, "strip", z.ZodTypeAny, {
|
|
7506
|
-
total: number;
|
|
7507
|
-
page: number;
|
|
7508
|
-
limit: number;
|
|
7509
7506
|
files: {
|
|
7510
7507
|
createdAt: string;
|
|
7511
7508
|
name: string;
|
|
@@ -7513,10 +7510,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
7513
7510
|
fileId: string;
|
|
7514
7511
|
contentType: string;
|
|
7515
7512
|
}[];
|
|
7516
|
-
|
|
7513
|
+
limit: number;
|
|
7517
7514
|
total: number;
|
|
7518
7515
|
page: number;
|
|
7519
|
-
|
|
7516
|
+
}, {
|
|
7520
7517
|
files: {
|
|
7521
7518
|
createdAt: string;
|
|
7522
7519
|
name: string;
|
|
@@ -7524,6 +7521,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
7524
7521
|
fileId: string;
|
|
7525
7522
|
contentType: string;
|
|
7526
7523
|
}[];
|
|
7524
|
+
limit: number;
|
|
7525
|
+
total: number;
|
|
7526
|
+
page: number;
|
|
7527
7527
|
}>;
|
|
7528
7528
|
type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
|
|
7529
7529
|
|
|
@@ -8543,8 +8543,8 @@ declare const CreditsPackageSchema: z.ZodObject<{
|
|
|
8543
8543
|
updatedAt: z.ZodString;
|
|
8544
8544
|
}, "strip", z.ZodTypeAny, {
|
|
8545
8545
|
id: string;
|
|
8546
|
-
createdAt: string;
|
|
8547
8546
|
userId: string;
|
|
8547
|
+
createdAt: string;
|
|
8548
8548
|
updatedAt: string;
|
|
8549
8549
|
name: string;
|
|
8550
8550
|
credit: number;
|
|
@@ -8553,8 +8553,8 @@ declare const CreditsPackageSchema: z.ZodObject<{
|
|
|
8553
8553
|
expiredAt: string;
|
|
8554
8554
|
}, {
|
|
8555
8555
|
id: string;
|
|
8556
|
-
createdAt: string;
|
|
8557
8556
|
userId: string;
|
|
8557
|
+
createdAt: string;
|
|
8558
8558
|
updatedAt: string;
|
|
8559
8559
|
name: string;
|
|
8560
8560
|
credit: number;
|
|
@@ -8596,8 +8596,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8596
8596
|
updatedAt: z.ZodString;
|
|
8597
8597
|
}, "strip", z.ZodTypeAny, {
|
|
8598
8598
|
id: string;
|
|
8599
|
-
createdAt: string;
|
|
8600
8599
|
userId: string;
|
|
8600
|
+
createdAt: string;
|
|
8601
8601
|
updatedAt: string;
|
|
8602
8602
|
name: string;
|
|
8603
8603
|
credit: number;
|
|
@@ -8606,8 +8606,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8606
8606
|
expiredAt: string;
|
|
8607
8607
|
}, {
|
|
8608
8608
|
id: string;
|
|
8609
|
-
createdAt: string;
|
|
8610
8609
|
userId: string;
|
|
8610
|
+
createdAt: string;
|
|
8611
8611
|
updatedAt: string;
|
|
8612
8612
|
name: string;
|
|
8613
8613
|
credit: number;
|
|
@@ -8620,8 +8620,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8620
8620
|
total: number;
|
|
8621
8621
|
packages: {
|
|
8622
8622
|
id: string;
|
|
8623
|
-
createdAt: string;
|
|
8624
8623
|
userId: string;
|
|
8624
|
+
createdAt: string;
|
|
8625
8625
|
updatedAt: string;
|
|
8626
8626
|
name: string;
|
|
8627
8627
|
credit: number;
|
|
@@ -8633,8 +8633,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8633
8633
|
total: number;
|
|
8634
8634
|
packages: {
|
|
8635
8635
|
id: string;
|
|
8636
|
-
createdAt: string;
|
|
8637
8636
|
userId: string;
|
|
8637
|
+
createdAt: string;
|
|
8638
8638
|
updatedAt: string;
|
|
8639
8639
|
name: string;
|
|
8640
8640
|
credit: number;
|
|
@@ -8662,10 +8662,10 @@ declare const ChargeTransactionSchema: z.ZodObject<{
|
|
|
8662
8662
|
createdAt: z.ZodString;
|
|
8663
8663
|
transactionType: z.ZodLiteral<"charge">;
|
|
8664
8664
|
}, "strip", z.ZodTypeAny, {
|
|
8665
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8666
8665
|
id: string;
|
|
8667
|
-
|
|
8666
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8668
8667
|
userId: string;
|
|
8668
|
+
createdAt: string;
|
|
8669
8669
|
creditsPackageId: string;
|
|
8670
8670
|
amount: number;
|
|
8671
8671
|
balanceBefore: number;
|
|
@@ -8676,10 +8676,10 @@ declare const ChargeTransactionSchema: z.ZodObject<{
|
|
|
8676
8676
|
metadata?: any;
|
|
8677
8677
|
packageName?: string | undefined;
|
|
8678
8678
|
}, {
|
|
8679
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8680
8679
|
id: string;
|
|
8681
|
-
|
|
8680
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8682
8681
|
userId: string;
|
|
8682
|
+
createdAt: string;
|
|
8683
8683
|
creditsPackageId: string;
|
|
8684
8684
|
amount: number;
|
|
8685
8685
|
balanceBefore: number;
|
|
@@ -8709,10 +8709,10 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
|
|
|
8709
8709
|
transactionType: z.ZodLiteral<"consume">;
|
|
8710
8710
|
}, "strip", z.ZodTypeAny, {
|
|
8711
8711
|
id: string;
|
|
8712
|
-
createdAt: string;
|
|
8713
|
-
userId: string;
|
|
8714
8712
|
taskId: string;
|
|
8715
8713
|
agentId: string;
|
|
8714
|
+
userId: string;
|
|
8715
|
+
createdAt: string;
|
|
8716
8716
|
creditsPackageId: string;
|
|
8717
8717
|
amount: number;
|
|
8718
8718
|
balanceBefore: number;
|
|
@@ -8722,10 +8722,10 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
|
|
|
8722
8722
|
packageName?: string | undefined;
|
|
8723
8723
|
}, {
|
|
8724
8724
|
id: string;
|
|
8725
|
-
createdAt: string;
|
|
8726
|
-
userId: string;
|
|
8727
8725
|
taskId: string;
|
|
8728
8726
|
agentId: string;
|
|
8727
|
+
userId: string;
|
|
8728
|
+
createdAt: string;
|
|
8729
8729
|
creditsPackageId: string;
|
|
8730
8730
|
amount: number;
|
|
8731
8731
|
balanceBefore: number;
|
|
@@ -8753,10 +8753,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8753
8753
|
createdAt: z.ZodString;
|
|
8754
8754
|
transactionType: z.ZodLiteral<"charge">;
|
|
8755
8755
|
}, "strip", z.ZodTypeAny, {
|
|
8756
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8757
8756
|
id: string;
|
|
8758
|
-
|
|
8757
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8759
8758
|
userId: string;
|
|
8759
|
+
createdAt: string;
|
|
8760
8760
|
creditsPackageId: string;
|
|
8761
8761
|
amount: number;
|
|
8762
8762
|
balanceBefore: number;
|
|
@@ -8767,10 +8767,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8767
8767
|
metadata?: any;
|
|
8768
8768
|
packageName?: string | undefined;
|
|
8769
8769
|
}, {
|
|
8770
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8771
8770
|
id: string;
|
|
8772
|
-
|
|
8771
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8773
8772
|
userId: string;
|
|
8773
|
+
createdAt: string;
|
|
8774
8774
|
creditsPackageId: string;
|
|
8775
8775
|
amount: number;
|
|
8776
8776
|
balanceBefore: number;
|
|
@@ -8795,10 +8795,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8795
8795
|
transactionType: z.ZodLiteral<"consume">;
|
|
8796
8796
|
}, "strip", z.ZodTypeAny, {
|
|
8797
8797
|
id: string;
|
|
8798
|
-
createdAt: string;
|
|
8799
|
-
userId: string;
|
|
8800
8798
|
taskId: string;
|
|
8801
8799
|
agentId: string;
|
|
8800
|
+
userId: string;
|
|
8801
|
+
createdAt: string;
|
|
8802
8802
|
creditsPackageId: string;
|
|
8803
8803
|
amount: number;
|
|
8804
8804
|
balanceBefore: number;
|
|
@@ -8807,11 +8807,11 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8807
8807
|
metadata?: any;
|
|
8808
8808
|
packageName?: string | undefined;
|
|
8809
8809
|
}, {
|
|
8810
|
-
id: string;
|
|
8811
|
-
createdAt: string;
|
|
8812
|
-
userId: string;
|
|
8810
|
+
id: string;
|
|
8813
8811
|
taskId: string;
|
|
8814
8812
|
agentId: string;
|
|
8813
|
+
userId: string;
|
|
8814
|
+
createdAt: string;
|
|
8815
8815
|
creditsPackageId: string;
|
|
8816
8816
|
amount: number;
|
|
8817
8817
|
balanceBefore: number;
|
|
@@ -8863,10 +8863,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8863
8863
|
createdAt: z.ZodString;
|
|
8864
8864
|
transactionType: z.ZodLiteral<"charge">;
|
|
8865
8865
|
}, "strip", z.ZodTypeAny, {
|
|
8866
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8867
8866
|
id: string;
|
|
8868
|
-
|
|
8867
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8869
8868
|
userId: string;
|
|
8869
|
+
createdAt: string;
|
|
8870
8870
|
creditsPackageId: string;
|
|
8871
8871
|
amount: number;
|
|
8872
8872
|
balanceBefore: number;
|
|
@@ -8877,10 +8877,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8877
8877
|
metadata?: any;
|
|
8878
8878
|
packageName?: string | undefined;
|
|
8879
8879
|
}, {
|
|
8880
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8881
8880
|
id: string;
|
|
8882
|
-
|
|
8881
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8883
8882
|
userId: string;
|
|
8883
|
+
createdAt: string;
|
|
8884
8884
|
creditsPackageId: string;
|
|
8885
8885
|
amount: number;
|
|
8886
8886
|
balanceBefore: number;
|
|
@@ -8905,10 +8905,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8905
8905
|
transactionType: z.ZodLiteral<"consume">;
|
|
8906
8906
|
}, "strip", z.ZodTypeAny, {
|
|
8907
8907
|
id: string;
|
|
8908
|
-
createdAt: string;
|
|
8909
|
-
userId: string;
|
|
8910
8908
|
taskId: string;
|
|
8911
8909
|
agentId: string;
|
|
8910
|
+
userId: string;
|
|
8911
|
+
createdAt: string;
|
|
8912
8912
|
creditsPackageId: string;
|
|
8913
8913
|
amount: number;
|
|
8914
8914
|
balanceBefore: number;
|
|
@@ -8918,10 +8918,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8918
8918
|
packageName?: string | undefined;
|
|
8919
8919
|
}, {
|
|
8920
8920
|
id: string;
|
|
8921
|
-
createdAt: string;
|
|
8922
|
-
userId: string;
|
|
8923
8921
|
taskId: string;
|
|
8924
8922
|
agentId: string;
|
|
8923
|
+
userId: string;
|
|
8924
|
+
createdAt: string;
|
|
8925
8925
|
creditsPackageId: string;
|
|
8926
8926
|
amount: number;
|
|
8927
8927
|
balanceBefore: number;
|
|
@@ -8934,10 +8934,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8934
8934
|
}, "strip", z.ZodTypeAny, {
|
|
8935
8935
|
total: number;
|
|
8936
8936
|
transactions: ({
|
|
8937
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8938
8937
|
id: string;
|
|
8939
|
-
|
|
8938
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8940
8939
|
userId: string;
|
|
8940
|
+
createdAt: string;
|
|
8941
8941
|
creditsPackageId: string;
|
|
8942
8942
|
amount: number;
|
|
8943
8943
|
balanceBefore: number;
|
|
@@ -8949,10 +8949,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8949
8949
|
packageName?: string | undefined;
|
|
8950
8950
|
} | {
|
|
8951
8951
|
id: string;
|
|
8952
|
-
createdAt: string;
|
|
8953
|
-
userId: string;
|
|
8954
8952
|
taskId: string;
|
|
8955
8953
|
agentId: string;
|
|
8954
|
+
userId: string;
|
|
8955
|
+
createdAt: string;
|
|
8956
8956
|
creditsPackageId: string;
|
|
8957
8957
|
amount: number;
|
|
8958
8958
|
balanceBefore: number;
|
|
@@ -8964,10 +8964,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8964
8964
|
}, {
|
|
8965
8965
|
total: number;
|
|
8966
8966
|
transactions: ({
|
|
8967
|
-
type: "user_recharge" | "system_bonus" | "refund";
|
|
8968
8967
|
id: string;
|
|
8969
|
-
|
|
8968
|
+
type: "user_recharge" | "system_bonus" | "refund";
|
|
8970
8969
|
userId: string;
|
|
8970
|
+
createdAt: string;
|
|
8971
8971
|
creditsPackageId: string;
|
|
8972
8972
|
amount: number;
|
|
8973
8973
|
balanceBefore: number;
|
|
@@ -8979,10 +8979,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8979
8979
|
packageName?: string | undefined;
|
|
8980
8980
|
} | {
|
|
8981
8981
|
id: string;
|
|
8982
|
-
createdAt: string;
|
|
8983
|
-
userId: string;
|
|
8984
8982
|
taskId: string;
|
|
8985
8983
|
agentId: string;
|
|
8984
|
+
userId: string;
|
|
8985
|
+
createdAt: string;
|
|
8986
8986
|
creditsPackageId: string;
|
|
8987
8987
|
amount: number;
|
|
8988
8988
|
balanceBefore: number;
|
|
@@ -9012,10 +9012,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9012
9012
|
transactionType: z.ZodLiteral<"consume">;
|
|
9013
9013
|
}, "strip", z.ZodTypeAny, {
|
|
9014
9014
|
id: string;
|
|
9015
|
-
createdAt: string;
|
|
9016
|
-
userId: string;
|
|
9017
9015
|
taskId: string;
|
|
9018
9016
|
agentId: string;
|
|
9017
|
+
userId: string;
|
|
9018
|
+
createdAt: string;
|
|
9019
9019
|
creditsPackageId: string;
|
|
9020
9020
|
amount: number;
|
|
9021
9021
|
balanceBefore: number;
|
|
@@ -9025,10 +9025,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9025
9025
|
packageName?: string | undefined;
|
|
9026
9026
|
}, {
|
|
9027
9027
|
id: string;
|
|
9028
|
-
createdAt: string;
|
|
9029
|
-
userId: string;
|
|
9030
9028
|
taskId: string;
|
|
9031
9029
|
agentId: string;
|
|
9030
|
+
userId: string;
|
|
9031
|
+
createdAt: string;
|
|
9032
9032
|
creditsPackageId: string;
|
|
9033
9033
|
amount: number;
|
|
9034
9034
|
balanceBefore: number;
|
|
@@ -9042,10 +9042,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9042
9042
|
total: number;
|
|
9043
9043
|
transactions: {
|
|
9044
9044
|
id: string;
|
|
9045
|
-
createdAt: string;
|
|
9046
|
-
userId: string;
|
|
9047
9045
|
taskId: string;
|
|
9048
9046
|
agentId: string;
|
|
9047
|
+
userId: string;
|
|
9048
|
+
createdAt: string;
|
|
9049
9049
|
creditsPackageId: string;
|
|
9050
9050
|
amount: number;
|
|
9051
9051
|
balanceBefore: number;
|
|
@@ -9058,10 +9058,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9058
9058
|
total: number;
|
|
9059
9059
|
transactions: {
|
|
9060
9060
|
id: string;
|
|
9061
|
-
createdAt: string;
|
|
9062
|
-
userId: string;
|
|
9063
9061
|
taskId: string;
|
|
9064
9062
|
agentId: string;
|
|
9063
|
+
userId: string;
|
|
9064
|
+
createdAt: string;
|
|
9065
9065
|
creditsPackageId: string;
|
|
9066
9066
|
amount: number;
|
|
9067
9067
|
balanceBefore: number;
|
|
@@ -9129,8 +9129,8 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
9129
9129
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9130
9130
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9131
9131
|
}, "strip", z.ZodTypeAny, {
|
|
9132
|
-
type: string;
|
|
9133
9132
|
id: string;
|
|
9133
|
+
type: string;
|
|
9134
9134
|
createdAt: string;
|
|
9135
9135
|
updatedAt: string;
|
|
9136
9136
|
name: string;
|
|
@@ -9139,8 +9139,8 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
9139
9139
|
apiUrl: string;
|
|
9140
9140
|
oauthServerId: string | null;
|
|
9141
9141
|
}, {
|
|
9142
|
-
type: string;
|
|
9143
9142
|
id: string;
|
|
9143
|
+
type: string;
|
|
9144
9144
|
createdAt: string | Date;
|
|
9145
9145
|
updatedAt: string | Date;
|
|
9146
9146
|
name: string;
|
|
@@ -9164,8 +9164,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
9164
9164
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9165
9165
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9166
9166
|
}, "strip", z.ZodTypeAny, {
|
|
9167
|
-
type: string;
|
|
9168
9167
|
id: string;
|
|
9168
|
+
type: string;
|
|
9169
9169
|
createdAt: string;
|
|
9170
9170
|
updatedAt: string;
|
|
9171
9171
|
name: string;
|
|
@@ -9174,8 +9174,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
9174
9174
|
apiUrl: string;
|
|
9175
9175
|
oauthServerId: string | null;
|
|
9176
9176
|
}, {
|
|
9177
|
-
type: string;
|
|
9178
9177
|
id: string;
|
|
9178
|
+
type: string;
|
|
9179
9179
|
createdAt: string | Date;
|
|
9180
9180
|
updatedAt: string | Date;
|
|
9181
9181
|
name: string;
|
|
@@ -9199,8 +9199,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
9199
9199
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9200
9200
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9201
9201
|
}, "strip", z.ZodTypeAny, {
|
|
9202
|
-
type: string;
|
|
9203
9202
|
id: string;
|
|
9203
|
+
type: string;
|
|
9204
9204
|
createdAt: string;
|
|
9205
9205
|
updatedAt: string;
|
|
9206
9206
|
name: string;
|
|
@@ -9209,8 +9209,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
9209
9209
|
apiUrl: string;
|
|
9210
9210
|
oauthServerId: string | null;
|
|
9211
9211
|
}, {
|
|
9212
|
-
type: string;
|
|
9213
9212
|
id: string;
|
|
9213
|
+
type: string;
|
|
9214
9214
|
createdAt: string | Date;
|
|
9215
9215
|
updatedAt: string | Date;
|
|
9216
9216
|
name: string;
|
|
@@ -9259,28 +9259,28 @@ declare const RpcResponseSchema: z.ZodObject<{
|
|
|
9259
9259
|
code: z.ZodString;
|
|
9260
9260
|
message: z.ZodString;
|
|
9261
9261
|
}, "strip", z.ZodTypeAny, {
|
|
9262
|
-
message: string;
|
|
9263
9262
|
code: string;
|
|
9264
|
-
}, {
|
|
9265
9263
|
message: string;
|
|
9264
|
+
}, {
|
|
9266
9265
|
code: string;
|
|
9266
|
+
message: string;
|
|
9267
9267
|
}>>;
|
|
9268
9268
|
}, "strip", z.ZodTypeAny, {
|
|
9269
9269
|
success: boolean;
|
|
9270
|
+
status?: number | undefined;
|
|
9271
|
+
data?: any;
|
|
9270
9272
|
error?: {
|
|
9271
|
-
message: string;
|
|
9272
9273
|
code: string;
|
|
9274
|
+
message: string;
|
|
9273
9275
|
} | undefined;
|
|
9274
|
-
status?: number | undefined;
|
|
9275
|
-
data?: any;
|
|
9276
9276
|
}, {
|
|
9277
9277
|
success: boolean;
|
|
9278
|
+
status?: number | undefined;
|
|
9279
|
+
data?: any;
|
|
9278
9280
|
error?: {
|
|
9279
|
-
message: string;
|
|
9280
9281
|
code: string;
|
|
9282
|
+
message: string;
|
|
9281
9283
|
} | undefined;
|
|
9282
|
-
status?: number | undefined;
|
|
9283
|
-
data?: any;
|
|
9284
9284
|
}>;
|
|
9285
9285
|
type RpcResponseData = z.infer<typeof RpcResponseSchema>;
|
|
9286
9286
|
|
|
@@ -9764,10 +9764,10 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
9764
9764
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9765
9765
|
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9766
9766
|
}, "strip", z.ZodTypeAny, {
|
|
9767
|
-
userId: string;
|
|
9768
|
-
taskId: string;
|
|
9769
9767
|
chatId: string;
|
|
9768
|
+
taskId: string;
|
|
9770
9769
|
agentId: string;
|
|
9770
|
+
userId: string;
|
|
9771
9771
|
eventId: string;
|
|
9772
9772
|
agentType: string;
|
|
9773
9773
|
cwd?: string | undefined;
|
|
@@ -9789,10 +9789,10 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
9789
9789
|
environmentVariables?: Record<string, string> | undefined;
|
|
9790
9790
|
chatAgents?: Record<string, string> | undefined;
|
|
9791
9791
|
}, {
|
|
9792
|
-
userId: string;
|
|
9793
|
-
taskId: string;
|
|
9794
9792
|
chatId: string;
|
|
9793
|
+
taskId: string;
|
|
9795
9794
|
agentId: string;
|
|
9795
|
+
userId: string;
|
|
9796
9796
|
eventId: string;
|
|
9797
9797
|
cwd?: string | undefined;
|
|
9798
9798
|
forceUserCwd?: boolean | undefined;
|
|
@@ -9844,10 +9844,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9844
9844
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
9845
9845
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9846
9846
|
}, "strip", z.ZodTypeAny, {
|
|
9847
|
-
userId: string;
|
|
9848
|
-
taskId: string;
|
|
9849
9847
|
chatId: string;
|
|
9848
|
+
taskId: string;
|
|
9850
9849
|
agentId: string;
|
|
9850
|
+
userId: string;
|
|
9851
9851
|
eventId: string;
|
|
9852
9852
|
agentType: string;
|
|
9853
9853
|
message?: SDKUserMessage | undefined;
|
|
@@ -9871,10 +9871,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9871
9871
|
environmentVariables?: Record<string, string> | undefined;
|
|
9872
9872
|
chatAgents?: Record<string, string> | undefined;
|
|
9873
9873
|
}, {
|
|
9874
|
-
userId: string;
|
|
9875
|
-
taskId: string;
|
|
9876
9874
|
chatId: string;
|
|
9875
|
+
taskId: string;
|
|
9877
9876
|
agentId: string;
|
|
9877
|
+
userId: string;
|
|
9878
9878
|
eventId: string;
|
|
9879
9879
|
message?: SDKUserMessage | undefined;
|
|
9880
9880
|
encryptedMessage?: string | undefined;
|
|
@@ -9898,10 +9898,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9898
9898
|
environmentVariables?: Record<string, string> | undefined;
|
|
9899
9899
|
chatAgents?: Record<string, string> | undefined;
|
|
9900
9900
|
}>, {
|
|
9901
|
-
userId: string;
|
|
9902
|
-
taskId: string;
|
|
9903
9901
|
chatId: string;
|
|
9902
|
+
taskId: string;
|
|
9904
9903
|
agentId: string;
|
|
9904
|
+
userId: string;
|
|
9905
9905
|
eventId: string;
|
|
9906
9906
|
agentType: string;
|
|
9907
9907
|
message?: SDKUserMessage | undefined;
|
|
@@ -9925,10 +9925,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9925
9925
|
environmentVariables?: Record<string, string> | undefined;
|
|
9926
9926
|
chatAgents?: Record<string, string> | undefined;
|
|
9927
9927
|
}, {
|
|
9928
|
-
userId: string;
|
|
9929
|
-
taskId: string;
|
|
9930
9928
|
chatId: string;
|
|
9929
|
+
taskId: string;
|
|
9931
9930
|
agentId: string;
|
|
9931
|
+
userId: string;
|
|
9932
9932
|
eventId: string;
|
|
9933
9933
|
message?: SDKUserMessage | undefined;
|
|
9934
9934
|
encryptedMessage?: string | undefined;
|
|
@@ -9986,10 +9986,10 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9986
9986
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
9987
9987
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9988
9988
|
}, "strip", z.ZodTypeAny, {
|
|
9989
|
-
userId: string;
|
|
9990
|
-
taskId: string;
|
|
9991
9989
|
chatId: string;
|
|
9990
|
+
taskId: string;
|
|
9992
9991
|
agentId: string;
|
|
9992
|
+
userId: string;
|
|
9993
9993
|
agentSessionId: string;
|
|
9994
9994
|
eventId: string;
|
|
9995
9995
|
agentType: string;
|
|
@@ -10016,10 +10016,10 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
10016
10016
|
event?: string | undefined;
|
|
10017
10017
|
eventData?: any;
|
|
10018
10018
|
}, {
|
|
10019
|
-
userId: string;
|
|
10020
|
-
taskId: string;
|
|
10021
10019
|
chatId: string;
|
|
10020
|
+
taskId: string;
|
|
10022
10021
|
agentId: string;
|
|
10022
|
+
userId: string;
|
|
10023
10023
|
agentSessionId: string;
|
|
10024
10024
|
eventId: string;
|
|
10025
10025
|
message?: SDKUserMessage | undefined;
|
|
@@ -10056,17 +10056,17 @@ declare const cancelTaskSchema: z.ZodObject<{
|
|
|
10056
10056
|
agentId: z.ZodString;
|
|
10057
10057
|
reason: z.ZodOptional<z.ZodString>;
|
|
10058
10058
|
}, "strip", z.ZodTypeAny, {
|
|
10059
|
-
userId: string;
|
|
10060
|
-
taskId: string;
|
|
10061
10059
|
chatId: string;
|
|
10060
|
+
taskId: string;
|
|
10062
10061
|
agentId: string;
|
|
10062
|
+
userId: string;
|
|
10063
10063
|
eventId: string;
|
|
10064
10064
|
reason?: string | undefined;
|
|
10065
10065
|
}, {
|
|
10066
|
-
userId: string;
|
|
10067
|
-
taskId: string;
|
|
10068
10066
|
chatId: string;
|
|
10067
|
+
taskId: string;
|
|
10069
10068
|
agentId: string;
|
|
10069
|
+
userId: string;
|
|
10070
10070
|
eventId: string;
|
|
10071
10071
|
reason?: string | undefined;
|
|
10072
10072
|
}>;
|
|
@@ -10228,15 +10228,15 @@ declare const TaskStateChangeEventSchema: z.ZodObject<{
|
|
|
10228
10228
|
state: z.ZodString;
|
|
10229
10229
|
updatedAt: z.ZodString;
|
|
10230
10230
|
}, "strip", z.ZodTypeAny, {
|
|
10231
|
-
state: string;
|
|
10232
|
-
taskId: string;
|
|
10233
10231
|
chatId: string;
|
|
10232
|
+
taskId: string;
|
|
10233
|
+
state: string;
|
|
10234
10234
|
updatedAt: string;
|
|
10235
10235
|
eventId: string;
|
|
10236
10236
|
}, {
|
|
10237
|
-
state: string;
|
|
10238
|
-
taskId: string;
|
|
10239
10237
|
chatId: string;
|
|
10238
|
+
taskId: string;
|
|
10239
|
+
state: string;
|
|
10240
10240
|
updatedAt: string;
|
|
10241
10241
|
eventId: string;
|
|
10242
10242
|
}>;
|
|
@@ -10401,8 +10401,8 @@ declare const WorkspaceFileRequestSchema: z.ZodObject<{
|
|
|
10401
10401
|
ifModifiedSince: z.ZodOptional<z.ZodString>;
|
|
10402
10402
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
10403
10403
|
}, "strip", z.ZodTypeAny, {
|
|
10404
|
-
userId: string;
|
|
10405
10404
|
taskId: string;
|
|
10405
|
+
userId: string;
|
|
10406
10406
|
eventId: string;
|
|
10407
10407
|
relativePath: string;
|
|
10408
10408
|
requestId: string;
|
|
@@ -10410,8 +10410,8 @@ declare const WorkspaceFileRequestSchema: z.ZodObject<{
|
|
|
10410
10410
|
maxFileSizeMB?: number | undefined;
|
|
10411
10411
|
ifModifiedSince?: string | undefined;
|
|
10412
10412
|
}, {
|
|
10413
|
-
userId: string;
|
|
10414
10413
|
taskId: string;
|
|
10414
|
+
userId: string;
|
|
10415
10415
|
eventId: string;
|
|
10416
10416
|
relativePath: string;
|
|
10417
10417
|
requestId: string;
|
|
@@ -10505,21 +10505,17 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
10505
10505
|
code: z.ZodString;
|
|
10506
10506
|
message: z.ZodString;
|
|
10507
10507
|
}, "strip", z.ZodTypeAny, {
|
|
10508
|
-
message: string;
|
|
10509
10508
|
code: string;
|
|
10510
|
-
}, {
|
|
10511
10509
|
message: string;
|
|
10510
|
+
}, {
|
|
10512
10511
|
code: string;
|
|
10512
|
+
message: string;
|
|
10513
10513
|
}>>;
|
|
10514
10514
|
}, "strip", z.ZodTypeAny, {
|
|
10515
|
-
success: boolean;
|
|
10516
10515
|
taskId: string;
|
|
10516
|
+
success: boolean;
|
|
10517
10517
|
eventId: string;
|
|
10518
10518
|
requestId: string;
|
|
10519
|
-
error?: {
|
|
10520
|
-
message: string;
|
|
10521
|
-
code: string;
|
|
10522
|
-
} | undefined;
|
|
10523
10519
|
data?: {
|
|
10524
10520
|
type: "directory" | "file";
|
|
10525
10521
|
metadata: {
|
|
@@ -10538,16 +10534,16 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
10538
10534
|
content?: string | undefined;
|
|
10539
10535
|
encryptedContent?: string | undefined;
|
|
10540
10536
|
} | undefined;
|
|
10537
|
+
error?: {
|
|
10538
|
+
code: string;
|
|
10539
|
+
message: string;
|
|
10540
|
+
} | undefined;
|
|
10541
10541
|
notModified?: boolean | undefined;
|
|
10542
10542
|
}, {
|
|
10543
|
-
success: boolean;
|
|
10544
10543
|
taskId: string;
|
|
10544
|
+
success: boolean;
|
|
10545
10545
|
eventId: string;
|
|
10546
10546
|
requestId: string;
|
|
10547
|
-
error?: {
|
|
10548
|
-
message: string;
|
|
10549
|
-
code: string;
|
|
10550
|
-
} | undefined;
|
|
10551
10547
|
data?: {
|
|
10552
10548
|
type: "directory" | "file";
|
|
10553
10549
|
metadata: {
|
|
@@ -10566,6 +10562,10 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
10566
10562
|
content?: string | undefined;
|
|
10567
10563
|
encryptedContent?: string | undefined;
|
|
10568
10564
|
} | undefined;
|
|
10565
|
+
error?: {
|
|
10566
|
+
code: string;
|
|
10567
|
+
message: string;
|
|
10568
|
+
} | undefined;
|
|
10569
10569
|
notModified?: boolean | undefined;
|
|
10570
10570
|
}>;
|
|
10571
10571
|
type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
|
|
@@ -10595,14 +10595,14 @@ declare const TaskInfoUpdateEventDataSchema: z.ZodObject<{
|
|
|
10595
10595
|
updates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10596
10596
|
updatedAt: z.ZodString;
|
|
10597
10597
|
}, "strip", z.ZodTypeAny, {
|
|
10598
|
-
taskId: string;
|
|
10599
10598
|
chatId: string;
|
|
10599
|
+
taskId: string;
|
|
10600
10600
|
updatedAt: string;
|
|
10601
10601
|
eventId: string;
|
|
10602
10602
|
updates?: Record<string, any> | undefined;
|
|
10603
10603
|
}, {
|
|
10604
|
-
taskId: string;
|
|
10605
10604
|
chatId: string;
|
|
10605
|
+
taskId: string;
|
|
10606
10606
|
updatedAt: string;
|
|
10607
10607
|
eventId: string;
|
|
10608
10608
|
updates?: Record<string, any> | undefined;
|
|
@@ -10657,8 +10657,8 @@ declare const SubTaskCompletedEventSchema: z.ZodObject<{
|
|
|
10657
10657
|
sessionPath: z.ZodOptional<z.ZodString>;
|
|
10658
10658
|
cwd: z.ZodOptional<z.ZodString>;
|
|
10659
10659
|
}, "strip", z.ZodTypeAny, {
|
|
10660
|
-
taskId: string;
|
|
10661
10660
|
parentTaskId: string;
|
|
10661
|
+
taskId: string;
|
|
10662
10662
|
rootTaskId: string;
|
|
10663
10663
|
eventId: string;
|
|
10664
10664
|
agentName: string;
|
|
@@ -10666,8 +10666,8 @@ declare const SubTaskCompletedEventSchema: z.ZodObject<{
|
|
|
10666
10666
|
sessionPath?: string | undefined;
|
|
10667
10667
|
taskName?: string | undefined;
|
|
10668
10668
|
}, {
|
|
10669
|
-
taskId: string;
|
|
10670
10669
|
parentTaskId: string;
|
|
10670
|
+
taskId: string;
|
|
10671
10671
|
rootTaskId: string;
|
|
10672
10672
|
eventId: string;
|
|
10673
10673
|
agentName: string;
|
|
@@ -10719,8 +10719,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10719
10719
|
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
10720
10720
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
10721
10721
|
}, "strip", z.ZodTypeAny, {
|
|
10722
|
-
userId: string;
|
|
10723
10722
|
taskId: string;
|
|
10723
|
+
userId: string;
|
|
10724
10724
|
draftAgentId: string;
|
|
10725
10725
|
eventId: string;
|
|
10726
10726
|
sourcePath: string;
|
|
@@ -10732,8 +10732,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10732
10732
|
supportLocal?: boolean | undefined;
|
|
10733
10733
|
isSystemAgent?: boolean | undefined;
|
|
10734
10734
|
}, {
|
|
10735
|
-
userId: string;
|
|
10736
10735
|
taskId: string;
|
|
10736
|
+
userId: string;
|
|
10737
10737
|
draftAgentId: string;
|
|
10738
10738
|
eventId: string;
|
|
10739
10739
|
sourcePath: string;
|
|
@@ -10745,8 +10745,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10745
10745
|
supportLocal?: boolean | undefined;
|
|
10746
10746
|
isSystemAgent?: boolean | undefined;
|
|
10747
10747
|
}>, {
|
|
10748
|
-
userId: string;
|
|
10749
10748
|
taskId: string;
|
|
10749
|
+
userId: string;
|
|
10750
10750
|
draftAgentId: string;
|
|
10751
10751
|
eventId: string;
|
|
10752
10752
|
sourcePath: string;
|
|
@@ -10758,8 +10758,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10758
10758
|
supportLocal?: boolean | undefined;
|
|
10759
10759
|
isSystemAgent?: boolean | undefined;
|
|
10760
10760
|
}, {
|
|
10761
|
-
userId: string;
|
|
10762
10761
|
taskId: string;
|
|
10762
|
+
userId: string;
|
|
10763
10763
|
draftAgentId: string;
|
|
10764
10764
|
eventId: string;
|
|
10765
10765
|
sourcePath: string;
|
|
@@ -10788,23 +10788,23 @@ declare const DeployAgentCompleteEventSchema: z.ZodObject<{
|
|
|
10788
10788
|
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
10789
10789
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
10790
10790
|
}, "strip", z.ZodTypeAny, {
|
|
10791
|
-
success: boolean;
|
|
10792
10791
|
taskId: string;
|
|
10792
|
+
success: boolean;
|
|
10793
10793
|
eventId: string;
|
|
10794
10794
|
targetAgentId: string;
|
|
10795
|
-
error?: string | undefined;
|
|
10796
10795
|
avatar?: string | undefined;
|
|
10797
10796
|
name?: string | undefined;
|
|
10797
|
+
error?: string | undefined;
|
|
10798
10798
|
supportLocal?: boolean | undefined;
|
|
10799
10799
|
isSystemAgent?: boolean | undefined;
|
|
10800
10800
|
}, {
|
|
10801
|
-
success: boolean;
|
|
10802
10801
|
taskId: string;
|
|
10802
|
+
success: boolean;
|
|
10803
10803
|
eventId: string;
|
|
10804
10804
|
targetAgentId: string;
|
|
10805
|
-
error?: string | undefined;
|
|
10806
10805
|
avatar?: string | undefined;
|
|
10807
10806
|
name?: string | undefined;
|
|
10807
|
+
error?: string | undefined;
|
|
10808
10808
|
supportLocal?: boolean | undefined;
|
|
10809
10809
|
isSystemAgent?: boolean | undefined;
|
|
10810
10810
|
}>;
|
|
@@ -10887,15 +10887,15 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10887
10887
|
createdAt: z.ZodString;
|
|
10888
10888
|
updatedAt: z.ZodString;
|
|
10889
10889
|
}, "strip", z.ZodTypeAny, {
|
|
10890
|
-
type: "direct" | "group";
|
|
10891
10890
|
id: string;
|
|
10891
|
+
type: "direct" | "group";
|
|
10892
10892
|
createdAt: string;
|
|
10893
10893
|
updatedAt: string;
|
|
10894
10894
|
owner: string;
|
|
10895
10895
|
title?: string | null | undefined;
|
|
10896
10896
|
}, {
|
|
10897
|
-
type: "direct" | "group";
|
|
10898
10897
|
id: string;
|
|
10898
|
+
type: "direct" | "group";
|
|
10899
10899
|
createdAt: string;
|
|
10900
10900
|
updatedAt: string;
|
|
10901
10901
|
owner: string;
|
|
@@ -10909,18 +10909,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10909
10909
|
createdAt: z.ZodString;
|
|
10910
10910
|
updatedAt: z.ZodString;
|
|
10911
10911
|
}, "strip", z.ZodTypeAny, {
|
|
10912
|
-
type: "agent" | "human";
|
|
10913
10912
|
id: string;
|
|
10914
|
-
|
|
10913
|
+
type: "agent" | "human";
|
|
10915
10914
|
chatId: string;
|
|
10915
|
+
createdAt: string;
|
|
10916
10916
|
updatedAt: string;
|
|
10917
10917
|
memberCode: string;
|
|
10918
10918
|
role: string;
|
|
10919
10919
|
}, {
|
|
10920
|
-
type: "agent" | "human";
|
|
10921
10920
|
id: string;
|
|
10922
|
-
|
|
10921
|
+
type: "agent" | "human";
|
|
10923
10922
|
chatId: string;
|
|
10923
|
+
createdAt: string;
|
|
10924
10924
|
updatedAt: string;
|
|
10925
10925
|
memberCode: string;
|
|
10926
10926
|
role: string;
|
|
@@ -11151,18 +11151,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11151
11151
|
createdAt: z.ZodString;
|
|
11152
11152
|
updatedAt: z.ZodString;
|
|
11153
11153
|
}, "strip", z.ZodTypeAny, {
|
|
11154
|
-
type: "claude" | "codex";
|
|
11155
11154
|
id: string;
|
|
11156
11155
|
avatar: string | null;
|
|
11157
|
-
|
|
11156
|
+
type: "claude" | "codex";
|
|
11158
11157
|
userId: string;
|
|
11158
|
+
createdAt: string;
|
|
11159
|
+
updatedAt: string;
|
|
11160
|
+
name: string;
|
|
11161
|
+
description: string | null;
|
|
11159
11162
|
permissions: {
|
|
11160
11163
|
role: string;
|
|
11161
11164
|
paths?: string[] | undefined;
|
|
11162
11165
|
} | null;
|
|
11163
|
-
updatedAt: string;
|
|
11164
|
-
name: string;
|
|
11165
|
-
description: string | null;
|
|
11166
11166
|
enable: boolean;
|
|
11167
11167
|
config: {
|
|
11168
11168
|
signature?: string | undefined;
|
|
@@ -11200,18 +11200,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11200
11200
|
publishedAgentId: string | null;
|
|
11201
11201
|
sourceTaskId: string | null;
|
|
11202
11202
|
}, {
|
|
11203
|
-
type: "claude" | "codex";
|
|
11204
11203
|
id: string;
|
|
11205
11204
|
avatar: string | null;
|
|
11206
|
-
|
|
11205
|
+
type: "claude" | "codex";
|
|
11207
11206
|
userId: string;
|
|
11207
|
+
createdAt: string;
|
|
11208
|
+
updatedAt: string;
|
|
11209
|
+
name: string;
|
|
11210
|
+
description: string | null;
|
|
11208
11211
|
permissions: {
|
|
11209
11212
|
role: string;
|
|
11210
11213
|
paths?: string[] | undefined;
|
|
11211
11214
|
} | null;
|
|
11212
|
-
updatedAt: string;
|
|
11213
|
-
name: string;
|
|
11214
|
-
description: string | null;
|
|
11215
11215
|
enable: boolean;
|
|
11216
11216
|
config: {
|
|
11217
11217
|
signature?: string | undefined;
|
|
@@ -11253,33 +11253,33 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11253
11253
|
}, "strip", z.ZodTypeAny, {
|
|
11254
11254
|
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
11255
11255
|
data: {
|
|
11256
|
-
type: "direct" | "group";
|
|
11257
11256
|
id: string;
|
|
11257
|
+
type: "direct" | "group";
|
|
11258
11258
|
createdAt: string;
|
|
11259
11259
|
updatedAt: string;
|
|
11260
11260
|
owner: string;
|
|
11261
11261
|
title?: string | null | undefined;
|
|
11262
11262
|
} | {
|
|
11263
|
-
type: "agent" | "human";
|
|
11264
11263
|
id: string;
|
|
11265
|
-
|
|
11264
|
+
type: "agent" | "human";
|
|
11266
11265
|
chatId: string;
|
|
11266
|
+
createdAt: string;
|
|
11267
11267
|
updatedAt: string;
|
|
11268
11268
|
memberCode: string;
|
|
11269
11269
|
role: string;
|
|
11270
11270
|
}[] | {
|
|
11271
|
-
type: "claude" | "codex";
|
|
11272
11271
|
id: string;
|
|
11273
11272
|
avatar: string | null;
|
|
11274
|
-
|
|
11273
|
+
type: "claude" | "codex";
|
|
11275
11274
|
userId: string;
|
|
11275
|
+
createdAt: string;
|
|
11276
|
+
updatedAt: string;
|
|
11277
|
+
name: string;
|
|
11278
|
+
description: string | null;
|
|
11276
11279
|
permissions: {
|
|
11277
11280
|
role: string;
|
|
11278
11281
|
paths?: string[] | undefined;
|
|
11279
11282
|
} | null;
|
|
11280
|
-
updatedAt: string;
|
|
11281
|
-
name: string;
|
|
11282
|
-
description: string | null;
|
|
11283
11283
|
enable: boolean;
|
|
11284
11284
|
config: {
|
|
11285
11285
|
signature?: string | undefined;
|
|
@@ -11345,33 +11345,33 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11345
11345
|
}, {
|
|
11346
11346
|
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
11347
11347
|
data: {
|
|
11348
|
-
type: "direct" | "group";
|
|
11349
11348
|
id: string;
|
|
11349
|
+
type: "direct" | "group";
|
|
11350
11350
|
createdAt: string;
|
|
11351
11351
|
updatedAt: string;
|
|
11352
11352
|
owner: string;
|
|
11353
11353
|
title?: string | null | undefined;
|
|
11354
11354
|
} | {
|
|
11355
|
-
type: "agent" | "human";
|
|
11356
11355
|
id: string;
|
|
11357
|
-
|
|
11356
|
+
type: "agent" | "human";
|
|
11358
11357
|
chatId: string;
|
|
11358
|
+
createdAt: string;
|
|
11359
11359
|
updatedAt: string;
|
|
11360
11360
|
memberCode: string;
|
|
11361
11361
|
role: string;
|
|
11362
11362
|
}[] | {
|
|
11363
|
-
type: "claude" | "codex";
|
|
11364
11363
|
id: string;
|
|
11365
11364
|
avatar: string | null;
|
|
11366
|
-
|
|
11365
|
+
type: "claude" | "codex";
|
|
11367
11366
|
userId: string;
|
|
11367
|
+
createdAt: string;
|
|
11368
|
+
updatedAt: string;
|
|
11369
|
+
name: string;
|
|
11370
|
+
description: string | null;
|
|
11368
11371
|
permissions: {
|
|
11369
11372
|
role: string;
|
|
11370
11373
|
paths?: string[] | undefined;
|
|
11371
11374
|
} | null;
|
|
11372
|
-
updatedAt: string;
|
|
11373
|
-
name: string;
|
|
11374
|
-
description: string | null;
|
|
11375
11375
|
enable: boolean;
|
|
11376
11376
|
config: {
|
|
11377
11377
|
signature?: string | undefined;
|
|
@@ -11521,6 +11521,10 @@ declare function getAgentContext(): AgentContext;
|
|
|
11521
11521
|
* @see cli/src/worker/agentContext.ts - AgentContextImpl (real RPC implementation)
|
|
11522
11522
|
*/
|
|
11523
11523
|
interface AgentrixContext {
|
|
11524
|
+
/**
|
|
11525
|
+
* Print execution log in log files
|
|
11526
|
+
*/
|
|
11527
|
+
log(str: string): void;
|
|
11524
11528
|
/**
|
|
11525
11529
|
* Get the current workspace directory
|
|
11526
11530
|
*/
|
|
@@ -11642,6 +11646,21 @@ interface AgentrixContext {
|
|
|
11642
11646
|
findSubTaskByAgent(agentId: string): Promise<{
|
|
11643
11647
|
taskId: string;
|
|
11644
11648
|
} | null>;
|
|
11649
|
+
/**
|
|
11650
|
+
* Upload a file to the agent's storage
|
|
11651
|
+
*/
|
|
11652
|
+
uploadFile(params: {
|
|
11653
|
+
name: string;
|
|
11654
|
+
path: string;
|
|
11655
|
+
contentType?: string;
|
|
11656
|
+
visibility?: 'public' | 'private';
|
|
11657
|
+
}): Promise<{
|
|
11658
|
+
fileId: string;
|
|
11659
|
+
name: string;
|
|
11660
|
+
size: number;
|
|
11661
|
+
contentType: string;
|
|
11662
|
+
url: string;
|
|
11663
|
+
}>;
|
|
11645
11664
|
}
|
|
11646
11665
|
|
|
11647
11666
|
/**
|