@agentrix/shared 1.0.13 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +205 -3
- package/dist/index.d.cts +1730 -117
- 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>;
|
|
@@ -99,13 +99,13 @@ declare const UserBasicInfoSchema: z.ZodObject<{
|
|
|
99
99
|
email: z.ZodNullable<z.ZodString>;
|
|
100
100
|
avatar: z.ZodNullable<z.ZodString>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
id: string;
|
|
103
102
|
username: string;
|
|
103
|
+
id: string;
|
|
104
104
|
email: string | null;
|
|
105
105
|
avatar: string | null;
|
|
106
106
|
}, {
|
|
107
|
-
id: string;
|
|
108
107
|
username: string;
|
|
108
|
+
id: string;
|
|
109
109
|
email: string | null;
|
|
110
110
|
avatar: string | null;
|
|
111
111
|
}>;
|
|
@@ -156,8 +156,8 @@ declare const UserWithOAuthAccountsSchema: z.ZodObject<{
|
|
|
156
156
|
avatarUrl: string;
|
|
157
157
|
}>, "many">>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
id: string;
|
|
160
159
|
username: string;
|
|
160
|
+
id: string;
|
|
161
161
|
email: string | null;
|
|
162
162
|
avatar: string | null;
|
|
163
163
|
oauthAccounts?: {
|
|
@@ -167,8 +167,8 @@ declare const UserWithOAuthAccountsSchema: z.ZodObject<{
|
|
|
167
167
|
avatarUrl: string;
|
|
168
168
|
}[] | undefined;
|
|
169
169
|
}, {
|
|
170
|
-
id: string;
|
|
171
170
|
username: string;
|
|
171
|
+
id: string;
|
|
172
172
|
email: string | null;
|
|
173
173
|
avatar: string | null;
|
|
174
174
|
oauthAccounts?: {
|
|
@@ -219,29 +219,29 @@ declare const SignatureAuthResponseSchema: z.ZodObject<{
|
|
|
219
219
|
email: z.ZodNullable<z.ZodString>;
|
|
220
220
|
avatar: z.ZodNullable<z.ZodString>;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
id: string;
|
|
223
222
|
username: string;
|
|
223
|
+
id: string;
|
|
224
224
|
email: string | null;
|
|
225
225
|
avatar: string | null;
|
|
226
226
|
}, {
|
|
227
|
-
id: string;
|
|
228
227
|
username: string;
|
|
228
|
+
id: string;
|
|
229
229
|
email: string | null;
|
|
230
230
|
avatar: string | null;
|
|
231
231
|
}>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
token: string;
|
|
234
234
|
user: {
|
|
235
|
-
id: string;
|
|
236
235
|
username: string;
|
|
236
|
+
id: string;
|
|
237
237
|
email: string | null;
|
|
238
238
|
avatar: string | null;
|
|
239
239
|
};
|
|
240
240
|
}, {
|
|
241
241
|
token: string;
|
|
242
242
|
user: {
|
|
243
|
-
id: string;
|
|
244
243
|
username: string;
|
|
244
|
+
id: string;
|
|
245
245
|
email: string | null;
|
|
246
246
|
avatar: string | null;
|
|
247
247
|
};
|
|
@@ -277,9 +277,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
277
277
|
avatarUrl: string;
|
|
278
278
|
}>, "many">>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
username: string;
|
|
280
281
|
id: string;
|
|
281
282
|
createdAt: string;
|
|
282
|
-
username: string;
|
|
283
283
|
email: string | null;
|
|
284
284
|
avatar: string | null;
|
|
285
285
|
encryptedSecret: string | null;
|
|
@@ -291,9 +291,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
291
291
|
avatarUrl: string;
|
|
292
292
|
}[] | undefined;
|
|
293
293
|
}, {
|
|
294
|
+
username: string;
|
|
294
295
|
id: string;
|
|
295
296
|
createdAt: string;
|
|
296
|
-
username: string;
|
|
297
297
|
email: string | null;
|
|
298
298
|
avatar: string | null;
|
|
299
299
|
encryptedSecret: string | null;
|
|
@@ -307,9 +307,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
user: {
|
|
310
|
+
username: string;
|
|
310
311
|
id: string;
|
|
311
312
|
createdAt: string;
|
|
312
|
-
username: string;
|
|
313
313
|
email: string | null;
|
|
314
314
|
avatar: string | null;
|
|
315
315
|
encryptedSecret: string | null;
|
|
@@ -323,9 +323,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
323
323
|
};
|
|
324
324
|
}, {
|
|
325
325
|
user: {
|
|
326
|
+
username: string;
|
|
326
327
|
id: string;
|
|
327
328
|
createdAt: string;
|
|
328
|
-
username: string;
|
|
329
329
|
email: string | null;
|
|
330
330
|
avatar: string | null;
|
|
331
331
|
encryptedSecret: string | null;
|
|
@@ -463,8 +463,8 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
463
463
|
avatarUrl: string;
|
|
464
464
|
}>, "many">>;
|
|
465
465
|
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
id: string;
|
|
467
466
|
username: string;
|
|
467
|
+
id: string;
|
|
468
468
|
email: string | null;
|
|
469
469
|
avatar: string | null;
|
|
470
470
|
oauthAccounts?: {
|
|
@@ -474,8 +474,8 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
474
474
|
avatarUrl: string;
|
|
475
475
|
}[] | undefined;
|
|
476
476
|
}, {
|
|
477
|
-
id: string;
|
|
478
477
|
username: string;
|
|
478
|
+
id: string;
|
|
479
479
|
email: string | null;
|
|
480
480
|
avatar: string | null;
|
|
481
481
|
oauthAccounts?: {
|
|
@@ -488,8 +488,8 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
488
488
|
}, "strip", z.ZodTypeAny, {
|
|
489
489
|
token: string;
|
|
490
490
|
user: {
|
|
491
|
-
id: string;
|
|
492
491
|
username: string;
|
|
492
|
+
id: string;
|
|
493
493
|
email: string | null;
|
|
494
494
|
avatar: string | null;
|
|
495
495
|
oauthAccounts?: {
|
|
@@ -502,8 +502,8 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
502
502
|
}, {
|
|
503
503
|
token: string;
|
|
504
504
|
user: {
|
|
505
|
-
id: string;
|
|
506
505
|
username: string;
|
|
506
|
+
id: string;
|
|
507
507
|
email: string | null;
|
|
508
508
|
avatar: string | null;
|
|
509
509
|
oauthAccounts?: {
|
|
@@ -960,6 +960,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
960
960
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
961
961
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
962
962
|
title: z.ZodNullable<z.ZodString>;
|
|
963
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
963
964
|
createdAt: z.ZodString;
|
|
964
965
|
updatedAt: z.ZodString;
|
|
965
966
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -969,6 +970,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
969
970
|
chatId: string;
|
|
970
971
|
agentId: string;
|
|
971
972
|
baseBranch: string | null;
|
|
973
|
+
userCwd: string | null;
|
|
972
974
|
repositoryId: string | null;
|
|
973
975
|
title: string | null;
|
|
974
976
|
state: string;
|
|
@@ -982,6 +984,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
982
984
|
chatId: string;
|
|
983
985
|
agentId: string;
|
|
984
986
|
baseBranch: string | null;
|
|
987
|
+
userCwd: string | null;
|
|
985
988
|
repositoryId: string | null;
|
|
986
989
|
title: string | null;
|
|
987
990
|
state: string;
|
|
@@ -1009,6 +1012,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1009
1012
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1010
1013
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1011
1014
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1015
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
1012
1016
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1013
1017
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1014
1018
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1057,6 +1061,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1057
1061
|
chatId: string;
|
|
1058
1062
|
agentId: string;
|
|
1059
1063
|
baseBranch: string | null;
|
|
1064
|
+
userCwd: string | null;
|
|
1060
1065
|
dataEncryptionKey: string | null;
|
|
1061
1066
|
repositoryId: string | null;
|
|
1062
1067
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1090,6 +1095,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1090
1095
|
chatId: string;
|
|
1091
1096
|
agentId: string;
|
|
1092
1097
|
baseBranch: string | null;
|
|
1098
|
+
userCwd: string | null;
|
|
1093
1099
|
dataEncryptionKey: string | null;
|
|
1094
1100
|
repositoryId: string | null;
|
|
1095
1101
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1127,8 +1133,8 @@ declare const ListTasksRequestSchema: z.ZodObject<{
|
|
|
1127
1133
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1128
1134
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1129
1135
|
}, "strip", z.ZodTypeAny, {
|
|
1130
|
-
limit: number;
|
|
1131
1136
|
chatId: string;
|
|
1137
|
+
limit: number;
|
|
1132
1138
|
archived: boolean;
|
|
1133
1139
|
cursor?: string | undefined;
|
|
1134
1140
|
}, {
|
|
@@ -1158,6 +1164,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1158
1164
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1159
1165
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1160
1166
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1167
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
1161
1168
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1162
1169
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1163
1170
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1206,6 +1213,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1206
1213
|
chatId: string;
|
|
1207
1214
|
agentId: string;
|
|
1208
1215
|
baseBranch: string | null;
|
|
1216
|
+
userCwd: string | null;
|
|
1209
1217
|
dataEncryptionKey: string | null;
|
|
1210
1218
|
repositoryId: string | null;
|
|
1211
1219
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1239,6 +1247,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1239
1247
|
chatId: string;
|
|
1240
1248
|
agentId: string;
|
|
1241
1249
|
baseBranch: string | null;
|
|
1250
|
+
userCwd: string | null;
|
|
1242
1251
|
dataEncryptionKey: string | null;
|
|
1243
1252
|
repositoryId: string | null;
|
|
1244
1253
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1276,6 +1285,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1276
1285
|
chatId: string;
|
|
1277
1286
|
agentId: string;
|
|
1278
1287
|
baseBranch: string | null;
|
|
1288
|
+
userCwd: string | null;
|
|
1279
1289
|
dataEncryptionKey: string | null;
|
|
1280
1290
|
repositoryId: string | null;
|
|
1281
1291
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1313,6 +1323,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1313
1323
|
chatId: string;
|
|
1314
1324
|
agentId: string;
|
|
1315
1325
|
baseBranch: string | null;
|
|
1326
|
+
userCwd: string | null;
|
|
1316
1327
|
dataEncryptionKey: string | null;
|
|
1317
1328
|
repositoryId: string | null;
|
|
1318
1329
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1800,6 +1811,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1800
1811
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1801
1812
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1802
1813
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1814
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
1803
1815
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1804
1816
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1805
1817
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1848,6 +1860,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1848
1860
|
chatId: string;
|
|
1849
1861
|
agentId: string;
|
|
1850
1862
|
baseBranch: string | null;
|
|
1863
|
+
userCwd: string | null;
|
|
1851
1864
|
dataEncryptionKey: string | null;
|
|
1852
1865
|
repositoryId: string | null;
|
|
1853
1866
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1881,6 +1894,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1881
1894
|
chatId: string;
|
|
1882
1895
|
agentId: string;
|
|
1883
1896
|
baseBranch: string | null;
|
|
1897
|
+
userCwd: string | null;
|
|
1884
1898
|
dataEncryptionKey: string | null;
|
|
1885
1899
|
repositoryId: string | null;
|
|
1886
1900
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1917,6 +1931,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1917
1931
|
chatId: string;
|
|
1918
1932
|
agentId: string;
|
|
1919
1933
|
baseBranch: string | null;
|
|
1934
|
+
userCwd: string | null;
|
|
1920
1935
|
dataEncryptionKey: string | null;
|
|
1921
1936
|
repositoryId: string | null;
|
|
1922
1937
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1953,6 +1968,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1953
1968
|
chatId: string;
|
|
1954
1969
|
agentId: string;
|
|
1955
1970
|
baseBranch: string | null;
|
|
1971
|
+
userCwd: string | null;
|
|
1956
1972
|
dataEncryptionKey: string | null;
|
|
1957
1973
|
repositoryId: string | null;
|
|
1958
1974
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2008,6 +2024,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2008
2024
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
2009
2025
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2010
2026
|
cwd: z.ZodNullable<z.ZodString>;
|
|
2027
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
2011
2028
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
2012
2029
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2013
2030
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -2056,6 +2073,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2056
2073
|
chatId: string;
|
|
2057
2074
|
agentId: string;
|
|
2058
2075
|
baseBranch: string | null;
|
|
2076
|
+
userCwd: string | null;
|
|
2059
2077
|
dataEncryptionKey: string | null;
|
|
2060
2078
|
repositoryId: string | null;
|
|
2061
2079
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2089,6 +2107,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2089
2107
|
chatId: string;
|
|
2090
2108
|
agentId: string;
|
|
2091
2109
|
baseBranch: string | null;
|
|
2110
|
+
userCwd: string | null;
|
|
2092
2111
|
dataEncryptionKey: string | null;
|
|
2093
2112
|
repositoryId: string | null;
|
|
2094
2113
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2125,6 +2144,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2125
2144
|
chatId: string;
|
|
2126
2145
|
agentId: string;
|
|
2127
2146
|
baseBranch: string | null;
|
|
2147
|
+
userCwd: string | null;
|
|
2128
2148
|
dataEncryptionKey: string | null;
|
|
2129
2149
|
repositoryId: string | null;
|
|
2130
2150
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2161,6 +2181,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2161
2181
|
chatId: string;
|
|
2162
2182
|
agentId: string;
|
|
2163
2183
|
baseBranch: string | null;
|
|
2184
|
+
userCwd: string | null;
|
|
2164
2185
|
dataEncryptionKey: string | null;
|
|
2165
2186
|
repositoryId: string | null;
|
|
2166
2187
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2222,6 +2243,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2222
2243
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
2223
2244
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2224
2245
|
cwd: z.ZodNullable<z.ZodString>;
|
|
2246
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
2225
2247
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
2226
2248
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2227
2249
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -2270,6 +2292,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2270
2292
|
chatId: string;
|
|
2271
2293
|
agentId: string;
|
|
2272
2294
|
baseBranch: string | null;
|
|
2295
|
+
userCwd: string | null;
|
|
2273
2296
|
dataEncryptionKey: string | null;
|
|
2274
2297
|
repositoryId: string | null;
|
|
2275
2298
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2303,6 +2326,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2303
2326
|
chatId: string;
|
|
2304
2327
|
agentId: string;
|
|
2305
2328
|
baseBranch: string | null;
|
|
2329
|
+
userCwd: string | null;
|
|
2306
2330
|
dataEncryptionKey: string | null;
|
|
2307
2331
|
repositoryId: string | null;
|
|
2308
2332
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2339,6 +2363,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2339
2363
|
chatId: string;
|
|
2340
2364
|
agentId: string;
|
|
2341
2365
|
baseBranch: string | null;
|
|
2366
|
+
userCwd: string | null;
|
|
2342
2367
|
dataEncryptionKey: string | null;
|
|
2343
2368
|
repositoryId: string | null;
|
|
2344
2369
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2375,6 +2400,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2375
2400
|
chatId: string;
|
|
2376
2401
|
agentId: string;
|
|
2377
2402
|
baseBranch: string | null;
|
|
2403
|
+
userCwd: string | null;
|
|
2378
2404
|
dataEncryptionKey: string | null;
|
|
2379
2405
|
repositoryId: string | null;
|
|
2380
2406
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2425,18 +2451,18 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
2425
2451
|
type: "human" | "agent";
|
|
2426
2452
|
chatId: string;
|
|
2427
2453
|
updatedAt: string;
|
|
2454
|
+
role: string;
|
|
2428
2455
|
id: string;
|
|
2429
2456
|
createdAt: string;
|
|
2430
2457
|
memberCode: string;
|
|
2431
|
-
role: string;
|
|
2432
2458
|
}, {
|
|
2433
2459
|
type: "human" | "agent";
|
|
2434
2460
|
chatId: string;
|
|
2435
2461
|
updatedAt: string;
|
|
2462
|
+
role: string;
|
|
2436
2463
|
id: string;
|
|
2437
2464
|
createdAt: string;
|
|
2438
2465
|
memberCode: string;
|
|
2439
|
-
role: string;
|
|
2440
2466
|
}>;
|
|
2441
2467
|
type ChatMember = z.infer<typeof ChatMemberSchema>;
|
|
2442
2468
|
/**
|
|
@@ -2489,18 +2515,18 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2489
2515
|
type: "human" | "agent";
|
|
2490
2516
|
chatId: string;
|
|
2491
2517
|
updatedAt: string;
|
|
2518
|
+
role: string;
|
|
2492
2519
|
id: string;
|
|
2493
2520
|
createdAt: string;
|
|
2494
2521
|
memberCode: string;
|
|
2495
|
-
role: string;
|
|
2496
2522
|
}, {
|
|
2497
2523
|
type: "human" | "agent";
|
|
2498
2524
|
chatId: string;
|
|
2499
2525
|
updatedAt: string;
|
|
2526
|
+
role: string;
|
|
2500
2527
|
id: string;
|
|
2501
2528
|
createdAt: string;
|
|
2502
2529
|
memberCode: string;
|
|
2503
|
-
role: string;
|
|
2504
2530
|
}>, "many">;
|
|
2505
2531
|
}, "strip", z.ZodTypeAny, {
|
|
2506
2532
|
type: "direct" | "group";
|
|
@@ -2512,10 +2538,10 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2512
2538
|
type: "human" | "agent";
|
|
2513
2539
|
chatId: string;
|
|
2514
2540
|
updatedAt: string;
|
|
2541
|
+
role: string;
|
|
2515
2542
|
id: string;
|
|
2516
2543
|
createdAt: string;
|
|
2517
2544
|
memberCode: string;
|
|
2518
|
-
role: string;
|
|
2519
2545
|
}[];
|
|
2520
2546
|
}, {
|
|
2521
2547
|
type: "direct" | "group";
|
|
@@ -2527,10 +2553,10 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2527
2553
|
type: "human" | "agent";
|
|
2528
2554
|
chatId: string;
|
|
2529
2555
|
updatedAt: string;
|
|
2556
|
+
role: string;
|
|
2530
2557
|
id: string;
|
|
2531
2558
|
createdAt: string;
|
|
2532
2559
|
memberCode: string;
|
|
2533
|
-
role: string;
|
|
2534
2560
|
}[];
|
|
2535
2561
|
}>;
|
|
2536
2562
|
type ChatWithMembers = z.infer<typeof ChatWithMembersSchema>;
|
|
@@ -2599,18 +2625,18 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2599
2625
|
type: "human" | "agent";
|
|
2600
2626
|
chatId: string;
|
|
2601
2627
|
updatedAt: string;
|
|
2628
|
+
role: string;
|
|
2602
2629
|
id: string;
|
|
2603
2630
|
createdAt: string;
|
|
2604
2631
|
memberCode: string;
|
|
2605
|
-
role: string;
|
|
2606
2632
|
}, {
|
|
2607
2633
|
type: "human" | "agent";
|
|
2608
2634
|
chatId: string;
|
|
2609
2635
|
updatedAt: string;
|
|
2636
|
+
role: string;
|
|
2610
2637
|
id: string;
|
|
2611
2638
|
createdAt: string;
|
|
2612
2639
|
memberCode: string;
|
|
2613
|
-
role: string;
|
|
2614
2640
|
}>, "many">;
|
|
2615
2641
|
}, "strip", z.ZodTypeAny, {
|
|
2616
2642
|
type: "direct" | "group";
|
|
@@ -2622,10 +2648,10 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2622
2648
|
type: "human" | "agent";
|
|
2623
2649
|
chatId: string;
|
|
2624
2650
|
updatedAt: string;
|
|
2651
|
+
role: string;
|
|
2625
2652
|
id: string;
|
|
2626
2653
|
createdAt: string;
|
|
2627
2654
|
memberCode: string;
|
|
2628
|
-
role: string;
|
|
2629
2655
|
}[];
|
|
2630
2656
|
}, {
|
|
2631
2657
|
type: "direct" | "group";
|
|
@@ -2637,10 +2663,10 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2637
2663
|
type: "human" | "agent";
|
|
2638
2664
|
chatId: string;
|
|
2639
2665
|
updatedAt: string;
|
|
2666
|
+
role: string;
|
|
2640
2667
|
id: string;
|
|
2641
2668
|
createdAt: string;
|
|
2642
2669
|
memberCode: string;
|
|
2643
|
-
role: string;
|
|
2644
2670
|
}[];
|
|
2645
2671
|
}>;
|
|
2646
2672
|
type CreateChatResponse = z.infer<typeof CreateChatResponseSchema>;
|
|
@@ -2667,18 +2693,18 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2667
2693
|
type: "human" | "agent";
|
|
2668
2694
|
chatId: string;
|
|
2669
2695
|
updatedAt: string;
|
|
2696
|
+
role: string;
|
|
2670
2697
|
id: string;
|
|
2671
2698
|
createdAt: string;
|
|
2672
2699
|
memberCode: string;
|
|
2673
|
-
role: string;
|
|
2674
2700
|
}, {
|
|
2675
2701
|
type: "human" | "agent";
|
|
2676
2702
|
chatId: string;
|
|
2677
2703
|
updatedAt: string;
|
|
2704
|
+
role: string;
|
|
2678
2705
|
id: string;
|
|
2679
2706
|
createdAt: string;
|
|
2680
2707
|
memberCode: string;
|
|
2681
|
-
role: string;
|
|
2682
2708
|
}>, "many">;
|
|
2683
2709
|
}, "strip", z.ZodTypeAny, {
|
|
2684
2710
|
type: "direct" | "group";
|
|
@@ -2690,10 +2716,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2690
2716
|
type: "human" | "agent";
|
|
2691
2717
|
chatId: string;
|
|
2692
2718
|
updatedAt: string;
|
|
2719
|
+
role: string;
|
|
2693
2720
|
id: string;
|
|
2694
2721
|
createdAt: string;
|
|
2695
2722
|
memberCode: string;
|
|
2696
|
-
role: string;
|
|
2697
2723
|
}[];
|
|
2698
2724
|
}, {
|
|
2699
2725
|
type: "direct" | "group";
|
|
@@ -2705,10 +2731,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2705
2731
|
type: "human" | "agent";
|
|
2706
2732
|
chatId: string;
|
|
2707
2733
|
updatedAt: string;
|
|
2734
|
+
role: string;
|
|
2708
2735
|
id: string;
|
|
2709
2736
|
createdAt: string;
|
|
2710
2737
|
memberCode: string;
|
|
2711
|
-
role: string;
|
|
2712
2738
|
}[];
|
|
2713
2739
|
}>, "many">;
|
|
2714
2740
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2722,10 +2748,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2722
2748
|
type: "human" | "agent";
|
|
2723
2749
|
chatId: string;
|
|
2724
2750
|
updatedAt: string;
|
|
2751
|
+
role: string;
|
|
2725
2752
|
id: string;
|
|
2726
2753
|
createdAt: string;
|
|
2727
2754
|
memberCode: string;
|
|
2728
|
-
role: string;
|
|
2729
2755
|
}[];
|
|
2730
2756
|
}[];
|
|
2731
2757
|
}, {
|
|
@@ -2739,10 +2765,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2739
2765
|
type: "human" | "agent";
|
|
2740
2766
|
chatId: string;
|
|
2741
2767
|
updatedAt: string;
|
|
2768
|
+
role: string;
|
|
2742
2769
|
id: string;
|
|
2743
2770
|
createdAt: string;
|
|
2744
2771
|
memberCode: string;
|
|
2745
|
-
role: string;
|
|
2746
2772
|
}[];
|
|
2747
2773
|
}[];
|
|
2748
2774
|
}>;
|
|
@@ -2769,18 +2795,18 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2769
2795
|
type: "human" | "agent";
|
|
2770
2796
|
chatId: string;
|
|
2771
2797
|
updatedAt: string;
|
|
2798
|
+
role: string;
|
|
2772
2799
|
id: string;
|
|
2773
2800
|
createdAt: string;
|
|
2774
2801
|
memberCode: string;
|
|
2775
|
-
role: string;
|
|
2776
2802
|
}, {
|
|
2777
2803
|
type: "human" | "agent";
|
|
2778
2804
|
chatId: string;
|
|
2779
2805
|
updatedAt: string;
|
|
2806
|
+
role: string;
|
|
2780
2807
|
id: string;
|
|
2781
2808
|
createdAt: string;
|
|
2782
2809
|
memberCode: string;
|
|
2783
|
-
role: string;
|
|
2784
2810
|
}>, "many">;
|
|
2785
2811
|
}, "strip", z.ZodTypeAny, {
|
|
2786
2812
|
type: "direct" | "group";
|
|
@@ -2792,10 +2818,10 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2792
2818
|
type: "human" | "agent";
|
|
2793
2819
|
chatId: string;
|
|
2794
2820
|
updatedAt: string;
|
|
2821
|
+
role: string;
|
|
2795
2822
|
id: string;
|
|
2796
2823
|
createdAt: string;
|
|
2797
2824
|
memberCode: string;
|
|
2798
|
-
role: string;
|
|
2799
2825
|
}[];
|
|
2800
2826
|
}, {
|
|
2801
2827
|
type: "direct" | "group";
|
|
@@ -2807,10 +2833,10 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2807
2833
|
type: "human" | "agent";
|
|
2808
2834
|
chatId: string;
|
|
2809
2835
|
updatedAt: string;
|
|
2836
|
+
role: string;
|
|
2810
2837
|
id: string;
|
|
2811
2838
|
createdAt: string;
|
|
2812
2839
|
memberCode: string;
|
|
2813
|
-
role: string;
|
|
2814
2840
|
}[];
|
|
2815
2841
|
}>;
|
|
2816
2842
|
type GetChatResponse = z.infer<typeof GetChatResponseSchema>;
|
|
@@ -2830,38 +2856,38 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2830
2856
|
type: "human" | "agent";
|
|
2831
2857
|
chatId: string;
|
|
2832
2858
|
updatedAt: string;
|
|
2859
|
+
role: string;
|
|
2833
2860
|
id: string;
|
|
2834
2861
|
createdAt: string;
|
|
2835
2862
|
memberCode: string;
|
|
2836
|
-
role: string;
|
|
2837
2863
|
}, {
|
|
2838
2864
|
type: "human" | "agent";
|
|
2839
2865
|
chatId: string;
|
|
2840
2866
|
updatedAt: string;
|
|
2867
|
+
role: string;
|
|
2841
2868
|
id: string;
|
|
2842
2869
|
createdAt: string;
|
|
2843
2870
|
memberCode: string;
|
|
2844
|
-
role: string;
|
|
2845
2871
|
}>, "many">;
|
|
2846
2872
|
}, "strip", z.ZodTypeAny, {
|
|
2847
2873
|
members: {
|
|
2848
2874
|
type: "human" | "agent";
|
|
2849
2875
|
chatId: string;
|
|
2850
2876
|
updatedAt: string;
|
|
2877
|
+
role: string;
|
|
2851
2878
|
id: string;
|
|
2852
2879
|
createdAt: string;
|
|
2853
2880
|
memberCode: string;
|
|
2854
|
-
role: string;
|
|
2855
2881
|
}[];
|
|
2856
2882
|
}, {
|
|
2857
2883
|
members: {
|
|
2858
2884
|
type: "human" | "agent";
|
|
2859
2885
|
chatId: string;
|
|
2860
2886
|
updatedAt: string;
|
|
2887
|
+
role: string;
|
|
2861
2888
|
id: string;
|
|
2862
2889
|
createdAt: string;
|
|
2863
2890
|
memberCode: string;
|
|
2864
|
-
role: string;
|
|
2865
2891
|
}[];
|
|
2866
2892
|
}>;
|
|
2867
2893
|
type ListChatMembersResponse = z.infer<typeof ListChatMembersResponseSchema>;
|
|
@@ -2908,38 +2934,38 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
2908
2934
|
type: "human" | "agent";
|
|
2909
2935
|
chatId: string;
|
|
2910
2936
|
updatedAt: string;
|
|
2937
|
+
role: string;
|
|
2911
2938
|
id: string;
|
|
2912
2939
|
createdAt: string;
|
|
2913
2940
|
memberCode: string;
|
|
2914
|
-
role: string;
|
|
2915
2941
|
}, {
|
|
2916
2942
|
type: "human" | "agent";
|
|
2917
2943
|
chatId: string;
|
|
2918
2944
|
updatedAt: string;
|
|
2945
|
+
role: string;
|
|
2919
2946
|
id: string;
|
|
2920
2947
|
createdAt: string;
|
|
2921
2948
|
memberCode: string;
|
|
2922
|
-
role: string;
|
|
2923
2949
|
}>, "many">;
|
|
2924
2950
|
}, "strip", z.ZodTypeAny, {
|
|
2925
2951
|
members: {
|
|
2926
2952
|
type: "human" | "agent";
|
|
2927
2953
|
chatId: string;
|
|
2928
2954
|
updatedAt: string;
|
|
2955
|
+
role: string;
|
|
2929
2956
|
id: string;
|
|
2930
2957
|
createdAt: string;
|
|
2931
2958
|
memberCode: string;
|
|
2932
|
-
role: string;
|
|
2933
2959
|
}[];
|
|
2934
2960
|
}, {
|
|
2935
2961
|
members: {
|
|
2936
2962
|
type: "human" | "agent";
|
|
2937
2963
|
chatId: string;
|
|
2938
2964
|
updatedAt: string;
|
|
2965
|
+
role: string;
|
|
2939
2966
|
id: string;
|
|
2940
2967
|
createdAt: string;
|
|
2941
2968
|
memberCode: string;
|
|
2942
|
-
role: string;
|
|
2943
2969
|
}[];
|
|
2944
2970
|
}>;
|
|
2945
2971
|
type AddChatMemberResponse = z.infer<typeof AddChatMemberResponseSchema>;
|
|
@@ -2993,6 +3019,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2993
3019
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
2994
3020
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2995
3021
|
cwd: z.ZodNullable<z.ZodString>;
|
|
3022
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
2996
3023
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
2997
3024
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2998
3025
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -3041,6 +3068,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3041
3068
|
chatId: string;
|
|
3042
3069
|
agentId: string;
|
|
3043
3070
|
baseBranch: string | null;
|
|
3071
|
+
userCwd: string | null;
|
|
3044
3072
|
dataEncryptionKey: string | null;
|
|
3045
3073
|
repositoryId: string | null;
|
|
3046
3074
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3074,6 +3102,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3074
3102
|
chatId: string;
|
|
3075
3103
|
agentId: string;
|
|
3076
3104
|
baseBranch: string | null;
|
|
3105
|
+
userCwd: string | null;
|
|
3077
3106
|
dataEncryptionKey: string | null;
|
|
3078
3107
|
repositoryId: string | null;
|
|
3079
3108
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3109,6 +3138,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3109
3138
|
chatId: string;
|
|
3110
3139
|
agentId: string;
|
|
3111
3140
|
baseBranch: string | null;
|
|
3141
|
+
userCwd: string | null;
|
|
3112
3142
|
dataEncryptionKey: string | null;
|
|
3113
3143
|
repositoryId: string | null;
|
|
3114
3144
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3144,6 +3174,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3144
3174
|
chatId: string;
|
|
3145
3175
|
agentId: string;
|
|
3146
3176
|
baseBranch: string | null;
|
|
3177
|
+
userCwd: string | null;
|
|
3147
3178
|
dataEncryptionKey: string | null;
|
|
3148
3179
|
repositoryId: string | null;
|
|
3149
3180
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3406,6 +3437,20 @@ declare const AgentCustomConfigSchema: z.ZodObject<{
|
|
|
3406
3437
|
}> | undefined;
|
|
3407
3438
|
}>;
|
|
3408
3439
|
type AgentCustomConfig = z.infer<typeof AgentCustomConfigSchema>;
|
|
3440
|
+
/**
|
|
3441
|
+
* RPC permissions schema (matches database Json field)
|
|
3442
|
+
*/
|
|
3443
|
+
declare const AgentPermissionsSchema: z.ZodObject<{
|
|
3444
|
+
role: z.ZodString;
|
|
3445
|
+
path: z.ZodString;
|
|
3446
|
+
}, "strip", z.ZodTypeAny, {
|
|
3447
|
+
path: string;
|
|
3448
|
+
role: string;
|
|
3449
|
+
}, {
|
|
3450
|
+
path: string;
|
|
3451
|
+
role: string;
|
|
3452
|
+
}>;
|
|
3453
|
+
type AgentPermissions = z.infer<typeof AgentPermissionsSchema>;
|
|
3409
3454
|
declare const AgentSchema: z.ZodObject<{
|
|
3410
3455
|
id: z.ZodString;
|
|
3411
3456
|
name: z.ZodString;
|
|
@@ -3518,14 +3563,28 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3518
3563
|
permissionCanMergePrDesc?: string | undefined;
|
|
3519
3564
|
}> | undefined;
|
|
3520
3565
|
}>>;
|
|
3566
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
3567
|
+
role: z.ZodString;
|
|
3568
|
+
path: z.ZodString;
|
|
3569
|
+
}, "strip", z.ZodTypeAny, {
|
|
3570
|
+
path: string;
|
|
3571
|
+
role: string;
|
|
3572
|
+
}, {
|
|
3573
|
+
path: string;
|
|
3574
|
+
role: string;
|
|
3575
|
+
}>>;
|
|
3521
3576
|
}, "strip", z.ZodTypeAny, {
|
|
3522
|
-
type: "claude" | "codex";
|
|
3523
3577
|
description: string | null;
|
|
3578
|
+
type: "claude" | "codex";
|
|
3524
3579
|
userId: string;
|
|
3525
3580
|
name: string;
|
|
3526
3581
|
id: string;
|
|
3527
3582
|
avatar: string | null;
|
|
3528
3583
|
signature: string | null;
|
|
3584
|
+
permissions: {
|
|
3585
|
+
path: string;
|
|
3586
|
+
role: string;
|
|
3587
|
+
} | null;
|
|
3529
3588
|
guildMsg: string;
|
|
3530
3589
|
placeholderMsg: string;
|
|
3531
3590
|
developerName: string;
|
|
@@ -3555,13 +3614,17 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3555
3614
|
}> | undefined;
|
|
3556
3615
|
} | null;
|
|
3557
3616
|
}, {
|
|
3558
|
-
type: "claude" | "codex";
|
|
3559
3617
|
description: string | null;
|
|
3618
|
+
type: "claude" | "codex";
|
|
3560
3619
|
userId: string;
|
|
3561
3620
|
name: string;
|
|
3562
3621
|
id: string;
|
|
3563
3622
|
avatar: string | null;
|
|
3564
3623
|
signature: string | null;
|
|
3624
|
+
permissions: {
|
|
3625
|
+
path: string;
|
|
3626
|
+
role: string;
|
|
3627
|
+
} | null;
|
|
3565
3628
|
guildMsg: string;
|
|
3566
3629
|
placeholderMsg: string;
|
|
3567
3630
|
developerName: string;
|
|
@@ -3708,14 +3771,28 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3708
3771
|
permissionCanMergePrDesc?: string | undefined;
|
|
3709
3772
|
}> | undefined;
|
|
3710
3773
|
}>>;
|
|
3774
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
3775
|
+
role: z.ZodString;
|
|
3776
|
+
path: z.ZodString;
|
|
3777
|
+
}, "strip", z.ZodTypeAny, {
|
|
3778
|
+
path: string;
|
|
3779
|
+
role: string;
|
|
3780
|
+
}, {
|
|
3781
|
+
path: string;
|
|
3782
|
+
role: string;
|
|
3783
|
+
}>>;
|
|
3711
3784
|
}, "strip", z.ZodTypeAny, {
|
|
3712
|
-
type: "claude" | "codex";
|
|
3713
3785
|
description: string | null;
|
|
3786
|
+
type: "claude" | "codex";
|
|
3714
3787
|
userId: string;
|
|
3715
3788
|
name: string;
|
|
3716
3789
|
id: string;
|
|
3717
3790
|
avatar: string | null;
|
|
3718
3791
|
signature: string | null;
|
|
3792
|
+
permissions: {
|
|
3793
|
+
path: string;
|
|
3794
|
+
role: string;
|
|
3795
|
+
} | null;
|
|
3719
3796
|
guildMsg: string;
|
|
3720
3797
|
placeholderMsg: string;
|
|
3721
3798
|
developerName: string;
|
|
@@ -3745,13 +3822,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3745
3822
|
}> | undefined;
|
|
3746
3823
|
} | null;
|
|
3747
3824
|
}, {
|
|
3748
|
-
type: "claude" | "codex";
|
|
3749
3825
|
description: string | null;
|
|
3826
|
+
type: "claude" | "codex";
|
|
3750
3827
|
userId: string;
|
|
3751
3828
|
name: string;
|
|
3752
3829
|
id: string;
|
|
3753
3830
|
avatar: string | null;
|
|
3754
3831
|
signature: string | null;
|
|
3832
|
+
permissions: {
|
|
3833
|
+
path: string;
|
|
3834
|
+
role: string;
|
|
3835
|
+
} | null;
|
|
3755
3836
|
guildMsg: string;
|
|
3756
3837
|
placeholderMsg: string;
|
|
3757
3838
|
developerName: string;
|
|
@@ -3783,13 +3864,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3783
3864
|
}>, "many">;
|
|
3784
3865
|
}, "strip", z.ZodTypeAny, {
|
|
3785
3866
|
agents: {
|
|
3786
|
-
type: "claude" | "codex";
|
|
3787
3867
|
description: string | null;
|
|
3868
|
+
type: "claude" | "codex";
|
|
3788
3869
|
userId: string;
|
|
3789
3870
|
name: string;
|
|
3790
3871
|
id: string;
|
|
3791
3872
|
avatar: string | null;
|
|
3792
3873
|
signature: string | null;
|
|
3874
|
+
permissions: {
|
|
3875
|
+
path: string;
|
|
3876
|
+
role: string;
|
|
3877
|
+
} | null;
|
|
3793
3878
|
guildMsg: string;
|
|
3794
3879
|
placeholderMsg: string;
|
|
3795
3880
|
developerName: string;
|
|
@@ -3821,13 +3906,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3821
3906
|
}[];
|
|
3822
3907
|
}, {
|
|
3823
3908
|
agents: {
|
|
3824
|
-
type: "claude" | "codex";
|
|
3825
3909
|
description: string | null;
|
|
3910
|
+
type: "claude" | "codex";
|
|
3826
3911
|
userId: string;
|
|
3827
3912
|
name: string;
|
|
3828
3913
|
id: string;
|
|
3829
3914
|
avatar: string | null;
|
|
3830
3915
|
signature: string | null;
|
|
3916
|
+
permissions: {
|
|
3917
|
+
path: string;
|
|
3918
|
+
role: string;
|
|
3919
|
+
} | null;
|
|
3831
3920
|
guildMsg: string;
|
|
3832
3921
|
placeholderMsg: string;
|
|
3833
3922
|
developerName: string;
|
|
@@ -3974,14 +4063,28 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
3974
4063
|
permissionCanMergePrDesc?: string | undefined;
|
|
3975
4064
|
}> | undefined;
|
|
3976
4065
|
}>>;
|
|
4066
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
4067
|
+
role: z.ZodString;
|
|
4068
|
+
path: z.ZodString;
|
|
4069
|
+
}, "strip", z.ZodTypeAny, {
|
|
4070
|
+
path: string;
|
|
4071
|
+
role: string;
|
|
4072
|
+
}, {
|
|
4073
|
+
path: string;
|
|
4074
|
+
role: string;
|
|
4075
|
+
}>>;
|
|
3977
4076
|
}, "strip", z.ZodTypeAny, {
|
|
3978
|
-
type: "claude" | "codex";
|
|
3979
4077
|
description: string | null;
|
|
4078
|
+
type: "claude" | "codex";
|
|
3980
4079
|
userId: string;
|
|
3981
4080
|
name: string;
|
|
3982
4081
|
id: string;
|
|
3983
4082
|
avatar: string | null;
|
|
3984
4083
|
signature: string | null;
|
|
4084
|
+
permissions: {
|
|
4085
|
+
path: string;
|
|
4086
|
+
role: string;
|
|
4087
|
+
} | null;
|
|
3985
4088
|
guildMsg: string;
|
|
3986
4089
|
placeholderMsg: string;
|
|
3987
4090
|
developerName: string;
|
|
@@ -4011,13 +4114,17 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4011
4114
|
}> | undefined;
|
|
4012
4115
|
} | null;
|
|
4013
4116
|
}, {
|
|
4014
|
-
type: "claude" | "codex";
|
|
4015
4117
|
description: string | null;
|
|
4118
|
+
type: "claude" | "codex";
|
|
4016
4119
|
userId: string;
|
|
4017
4120
|
name: string;
|
|
4018
4121
|
id: string;
|
|
4019
4122
|
avatar: string | null;
|
|
4020
4123
|
signature: string | null;
|
|
4124
|
+
permissions: {
|
|
4125
|
+
path: string;
|
|
4126
|
+
role: string;
|
|
4127
|
+
} | null;
|
|
4021
4128
|
guildMsg: string;
|
|
4022
4129
|
placeholderMsg: string;
|
|
4023
4130
|
developerName: string;
|
|
@@ -4337,14 +4444,28 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4337
4444
|
permissionCanMergePrDesc?: string | undefined;
|
|
4338
4445
|
}> | undefined;
|
|
4339
4446
|
}>>;
|
|
4447
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
4448
|
+
role: z.ZodString;
|
|
4449
|
+
path: z.ZodString;
|
|
4450
|
+
}, "strip", z.ZodTypeAny, {
|
|
4451
|
+
path: string;
|
|
4452
|
+
role: string;
|
|
4453
|
+
}, {
|
|
4454
|
+
path: string;
|
|
4455
|
+
role: string;
|
|
4456
|
+
}>>;
|
|
4340
4457
|
}, "strip", z.ZodTypeAny, {
|
|
4341
|
-
type: "claude" | "codex";
|
|
4342
4458
|
description: string | null;
|
|
4459
|
+
type: "claude" | "codex";
|
|
4343
4460
|
userId: string;
|
|
4344
4461
|
name: string;
|
|
4345
4462
|
id: string;
|
|
4346
4463
|
avatar: string | null;
|
|
4347
4464
|
signature: string | null;
|
|
4465
|
+
permissions: {
|
|
4466
|
+
path: string;
|
|
4467
|
+
role: string;
|
|
4468
|
+
} | null;
|
|
4348
4469
|
guildMsg: string;
|
|
4349
4470
|
placeholderMsg: string;
|
|
4350
4471
|
developerName: string;
|
|
@@ -4374,13 +4495,17 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4374
4495
|
}> | undefined;
|
|
4375
4496
|
} | null;
|
|
4376
4497
|
}, {
|
|
4377
|
-
type: "claude" | "codex";
|
|
4378
4498
|
description: string | null;
|
|
4499
|
+
type: "claude" | "codex";
|
|
4379
4500
|
userId: string;
|
|
4380
4501
|
name: string;
|
|
4381
4502
|
id: string;
|
|
4382
4503
|
avatar: string | null;
|
|
4383
4504
|
signature: string | null;
|
|
4505
|
+
permissions: {
|
|
4506
|
+
path: string;
|
|
4507
|
+
role: string;
|
|
4508
|
+
} | null;
|
|
4384
4509
|
guildMsg: string;
|
|
4385
4510
|
placeholderMsg: string;
|
|
4386
4511
|
developerName: string;
|
|
@@ -4522,8 +4647,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4522
4647
|
}> | undefined;
|
|
4523
4648
|
}>>>;
|
|
4524
4649
|
}, "strip", z.ZodTypeAny, {
|
|
4525
|
-
type?: "claude" | "codex" | undefined;
|
|
4526
4650
|
description?: string | null | undefined;
|
|
4651
|
+
type?: "claude" | "codex" | undefined;
|
|
4527
4652
|
name?: string | undefined;
|
|
4528
4653
|
avatar?: string | null | undefined;
|
|
4529
4654
|
signature?: string | null | undefined;
|
|
@@ -4553,8 +4678,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4553
4678
|
}> | undefined;
|
|
4554
4679
|
} | null | undefined;
|
|
4555
4680
|
}, {
|
|
4556
|
-
type?: "claude" | "codex" | undefined;
|
|
4557
4681
|
description?: string | null | undefined;
|
|
4682
|
+
type?: "claude" | "codex" | undefined;
|
|
4558
4683
|
name?: string | undefined;
|
|
4559
4684
|
avatar?: string | null | undefined;
|
|
4560
4685
|
signature?: string | null | undefined;
|
|
@@ -4700,14 +4825,28 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4700
4825
|
permissionCanMergePrDesc?: string | undefined;
|
|
4701
4826
|
}> | undefined;
|
|
4702
4827
|
}>>;
|
|
4828
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
4829
|
+
role: z.ZodString;
|
|
4830
|
+
path: z.ZodString;
|
|
4831
|
+
}, "strip", z.ZodTypeAny, {
|
|
4832
|
+
path: string;
|
|
4833
|
+
role: string;
|
|
4834
|
+
}, {
|
|
4835
|
+
path: string;
|
|
4836
|
+
role: string;
|
|
4837
|
+
}>>;
|
|
4703
4838
|
}, "strip", z.ZodTypeAny, {
|
|
4704
|
-
type: "claude" | "codex";
|
|
4705
4839
|
description: string | null;
|
|
4840
|
+
type: "claude" | "codex";
|
|
4706
4841
|
userId: string;
|
|
4707
4842
|
name: string;
|
|
4708
4843
|
id: string;
|
|
4709
4844
|
avatar: string | null;
|
|
4710
4845
|
signature: string | null;
|
|
4846
|
+
permissions: {
|
|
4847
|
+
path: string;
|
|
4848
|
+
role: string;
|
|
4849
|
+
} | null;
|
|
4711
4850
|
guildMsg: string;
|
|
4712
4851
|
placeholderMsg: string;
|
|
4713
4852
|
developerName: string;
|
|
@@ -4737,13 +4876,17 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4737
4876
|
}> | undefined;
|
|
4738
4877
|
} | null;
|
|
4739
4878
|
}, {
|
|
4740
|
-
type: "claude" | "codex";
|
|
4741
4879
|
description: string | null;
|
|
4880
|
+
type: "claude" | "codex";
|
|
4742
4881
|
userId: string;
|
|
4743
4882
|
name: string;
|
|
4744
4883
|
id: string;
|
|
4745
4884
|
avatar: string | null;
|
|
4746
4885
|
signature: string | null;
|
|
4886
|
+
permissions: {
|
|
4887
|
+
path: string;
|
|
4888
|
+
role: string;
|
|
4889
|
+
} | null;
|
|
4747
4890
|
guildMsg: string;
|
|
4748
4891
|
placeholderMsg: string;
|
|
4749
4892
|
developerName: string;
|
|
@@ -4788,40 +4931,1176 @@ declare const DeleteAgentResponseSchema: z.ZodObject<{
|
|
|
4788
4931
|
agentId: string;
|
|
4789
4932
|
}>;
|
|
4790
4933
|
type DeleteAgentResponse = z.infer<typeof DeleteAgentResponseSchema>;
|
|
4791
|
-
|
|
4792
|
-
/**
|
|
4793
|
-
* Machine HTTP request/response schemas
|
|
4794
|
-
* Machine management endpoints (both cloud and local)
|
|
4795
|
-
*/
|
|
4796
|
-
|
|
4797
4934
|
/**
|
|
4798
|
-
*
|
|
4935
|
+
* Deployment variable definition (from CLI tool's envVars)
|
|
4799
4936
|
*/
|
|
4800
|
-
declare const
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
dataEncryptionKey: z.ZodString;
|
|
4807
|
-
controlPort: z.ZodNullable<z.ZodNumber>;
|
|
4808
|
-
createdAt: z.ZodString;
|
|
4809
|
-
updatedAt: z.ZodString;
|
|
4937
|
+
declare const DeploymentVariableSchema: z.ZodObject<{
|
|
4938
|
+
name: z.ZodString;
|
|
4939
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
4940
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4941
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
4942
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4810
4943
|
}, "strip", z.ZodTypeAny, {
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
owner: string;
|
|
4817
|
-
id: string;
|
|
4818
|
-
createdAt: string;
|
|
4819
|
-
approval: string;
|
|
4944
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
4945
|
+
name: string;
|
|
4946
|
+
required: boolean;
|
|
4947
|
+
description?: string | undefined;
|
|
4948
|
+
defaultValue?: string | undefined;
|
|
4820
4949
|
}, {
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4950
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
4951
|
+
name: string;
|
|
4952
|
+
description?: string | undefined;
|
|
4953
|
+
required?: boolean | undefined;
|
|
4954
|
+
defaultValue?: string | undefined;
|
|
4955
|
+
}>;
|
|
4956
|
+
type DeploymentVariable = z.infer<typeof DeploymentVariableSchema>;
|
|
4957
|
+
/**
|
|
4958
|
+
* Agent Builder config schema (draft agents)
|
|
4959
|
+
* Separate from AgentCustomConfig for backward compatibility
|
|
4960
|
+
*/
|
|
4961
|
+
declare const AgentBuilderConfigSchema: z.ZodObject<{
|
|
4962
|
+
guildMsg: z.ZodDefault<z.ZodString>;
|
|
4963
|
+
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
4964
|
+
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4965
|
+
name: z.ZodString;
|
|
4966
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
4967
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4968
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
4969
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
4970
|
+
}, "strip", z.ZodTypeAny, {
|
|
4971
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
4972
|
+
name: string;
|
|
4973
|
+
required: boolean;
|
|
4974
|
+
description?: string | undefined;
|
|
4975
|
+
defaultValue?: string | undefined;
|
|
4976
|
+
}, {
|
|
4977
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
4978
|
+
name: string;
|
|
4979
|
+
description?: string | undefined;
|
|
4980
|
+
required?: boolean | undefined;
|
|
4981
|
+
defaultValue?: string | undefined;
|
|
4982
|
+
}>, "many">>;
|
|
4983
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4984
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
4985
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
4986
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
4987
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
4988
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
4989
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
4990
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
4991
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
4992
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
4993
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
4994
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
4995
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
4996
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
4997
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
4998
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
4999
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
5000
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
5001
|
+
}, "strip", z.ZodTypeAny, {
|
|
5002
|
+
closed?: string | undefined;
|
|
5003
|
+
merged?: string | undefined;
|
|
5004
|
+
createPR?: string | undefined;
|
|
5005
|
+
viewPR?: string | undefined;
|
|
5006
|
+
mergePR?: string | undefined;
|
|
5007
|
+
approvePR?: string | undefined;
|
|
5008
|
+
recreatePR?: string | undefined;
|
|
5009
|
+
permissionCanSendMessage?: string | undefined;
|
|
5010
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5011
|
+
permissionCanCreatePr?: string | undefined;
|
|
5012
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5013
|
+
permissionCanApprovePr?: string | undefined;
|
|
5014
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5015
|
+
permissionCanViewPr?: string | undefined;
|
|
5016
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5017
|
+
permissionCanMergePr?: string | undefined;
|
|
5018
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5019
|
+
}, {
|
|
5020
|
+
closed?: string | undefined;
|
|
5021
|
+
merged?: string | undefined;
|
|
5022
|
+
createPR?: string | undefined;
|
|
5023
|
+
viewPR?: string | undefined;
|
|
5024
|
+
mergePR?: string | undefined;
|
|
5025
|
+
approvePR?: string | undefined;
|
|
5026
|
+
recreatePR?: string | undefined;
|
|
5027
|
+
permissionCanSendMessage?: string | undefined;
|
|
5028
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5029
|
+
permissionCanCreatePr?: string | undefined;
|
|
5030
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5031
|
+
permissionCanApprovePr?: string | undefined;
|
|
5032
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5033
|
+
permissionCanViewPr?: string | undefined;
|
|
5034
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5035
|
+
permissionCanMergePr?: string | undefined;
|
|
5036
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5037
|
+
}>>>;
|
|
5038
|
+
}, "strip", z.ZodTypeAny, {
|
|
5039
|
+
guildMsg: string;
|
|
5040
|
+
placeholderMsg: string;
|
|
5041
|
+
displayConfig?: Record<string, {
|
|
5042
|
+
closed?: string | undefined;
|
|
5043
|
+
merged?: string | undefined;
|
|
5044
|
+
createPR?: string | undefined;
|
|
5045
|
+
viewPR?: string | undefined;
|
|
5046
|
+
mergePR?: string | undefined;
|
|
5047
|
+
approvePR?: string | undefined;
|
|
5048
|
+
recreatePR?: string | undefined;
|
|
5049
|
+
permissionCanSendMessage?: string | undefined;
|
|
5050
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5051
|
+
permissionCanCreatePr?: string | undefined;
|
|
5052
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5053
|
+
permissionCanApprovePr?: string | undefined;
|
|
5054
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5055
|
+
permissionCanViewPr?: string | undefined;
|
|
5056
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5057
|
+
permissionCanMergePr?: string | undefined;
|
|
5058
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5059
|
+
}> | undefined;
|
|
5060
|
+
deploymentSchema?: {
|
|
5061
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5062
|
+
name: string;
|
|
5063
|
+
required: boolean;
|
|
5064
|
+
description?: string | undefined;
|
|
5065
|
+
defaultValue?: string | undefined;
|
|
5066
|
+
}[] | undefined;
|
|
5067
|
+
}, {
|
|
5068
|
+
displayConfig?: Record<string, {
|
|
5069
|
+
closed?: string | undefined;
|
|
5070
|
+
merged?: string | undefined;
|
|
5071
|
+
createPR?: string | undefined;
|
|
5072
|
+
viewPR?: string | undefined;
|
|
5073
|
+
mergePR?: string | undefined;
|
|
5074
|
+
approvePR?: string | undefined;
|
|
5075
|
+
recreatePR?: string | undefined;
|
|
5076
|
+
permissionCanSendMessage?: string | undefined;
|
|
5077
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5078
|
+
permissionCanCreatePr?: string | undefined;
|
|
5079
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5080
|
+
permissionCanApprovePr?: string | undefined;
|
|
5081
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5082
|
+
permissionCanViewPr?: string | undefined;
|
|
5083
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5084
|
+
permissionCanMergePr?: string | undefined;
|
|
5085
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5086
|
+
}> | undefined;
|
|
5087
|
+
guildMsg?: string | undefined;
|
|
5088
|
+
placeholderMsg?: string | undefined;
|
|
5089
|
+
deploymentSchema?: {
|
|
5090
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5091
|
+
name: string;
|
|
5092
|
+
description?: string | undefined;
|
|
5093
|
+
required?: boolean | undefined;
|
|
5094
|
+
defaultValue?: string | undefined;
|
|
5095
|
+
}[] | undefined;
|
|
5096
|
+
}>;
|
|
5097
|
+
type AgentBuilderConfig = z.infer<typeof AgentBuilderConfigSchema>;
|
|
5098
|
+
/**
|
|
5099
|
+
* Request schema for creating agent-builder
|
|
5100
|
+
* Matches CLI tool's create_agent_in_db parameters
|
|
5101
|
+
*/
|
|
5102
|
+
declare const CreateAgentBuilderRequestSchema: z.ZodObject<{
|
|
5103
|
+
name: z.ZodString;
|
|
5104
|
+
agentDir: z.ZodString;
|
|
5105
|
+
type: z.ZodDefault<z.ZodEnum<["claude", "codex"]>>;
|
|
5106
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
5107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5108
|
+
userId: z.ZodString;
|
|
5109
|
+
taskId: z.ZodString;
|
|
5110
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5111
|
+
name: z.ZodString;
|
|
5112
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5113
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5114
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5115
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
5116
|
+
}, "strip", z.ZodTypeAny, {
|
|
5117
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5118
|
+
name: string;
|
|
5119
|
+
required: boolean;
|
|
5120
|
+
description?: string | undefined;
|
|
5121
|
+
defaultValue?: string | undefined;
|
|
5122
|
+
}, {
|
|
5123
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5124
|
+
name: string;
|
|
5125
|
+
description?: string | undefined;
|
|
5126
|
+
required?: boolean | undefined;
|
|
5127
|
+
defaultValue?: string | undefined;
|
|
5128
|
+
}>, "many">>;
|
|
5129
|
+
}, "strip", z.ZodTypeAny, {
|
|
5130
|
+
type: "claude" | "codex";
|
|
5131
|
+
taskId: string;
|
|
5132
|
+
userId: string;
|
|
5133
|
+
agentDir: string;
|
|
5134
|
+
name: string;
|
|
5135
|
+
description?: string | undefined;
|
|
5136
|
+
avatar?: string | undefined;
|
|
5137
|
+
envVars?: {
|
|
5138
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5139
|
+
name: string;
|
|
5140
|
+
required: boolean;
|
|
5141
|
+
description?: string | undefined;
|
|
5142
|
+
defaultValue?: string | undefined;
|
|
5143
|
+
}[] | undefined;
|
|
5144
|
+
}, {
|
|
5145
|
+
taskId: string;
|
|
5146
|
+
userId: string;
|
|
5147
|
+
agentDir: string;
|
|
5148
|
+
name: string;
|
|
5149
|
+
description?: string | undefined;
|
|
5150
|
+
type?: "claude" | "codex" | undefined;
|
|
5151
|
+
avatar?: string | undefined;
|
|
5152
|
+
envVars?: {
|
|
5153
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5154
|
+
name: string;
|
|
5155
|
+
description?: string | undefined;
|
|
5156
|
+
required?: boolean | undefined;
|
|
5157
|
+
defaultValue?: string | undefined;
|
|
5158
|
+
}[] | undefined;
|
|
5159
|
+
}>;
|
|
5160
|
+
type CreateAgentBuilderRequest = z.infer<typeof CreateAgentBuilderRequestSchema>;
|
|
5161
|
+
/**
|
|
5162
|
+
* Agent Builder API response schema
|
|
5163
|
+
*/
|
|
5164
|
+
declare const AgentBuilderSchema: z.ZodObject<{
|
|
5165
|
+
id: z.ZodString;
|
|
5166
|
+
name: z.ZodString;
|
|
5167
|
+
displayName: z.ZodString;
|
|
5168
|
+
agentDir: z.ZodString;
|
|
5169
|
+
type: z.ZodEnum<["claude", "codex"]>;
|
|
5170
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
5171
|
+
userId: z.ZodString;
|
|
5172
|
+
description: z.ZodNullable<z.ZodString>;
|
|
5173
|
+
enable: z.ZodBoolean;
|
|
5174
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
5175
|
+
guildMsg: z.ZodDefault<z.ZodString>;
|
|
5176
|
+
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
5177
|
+
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5178
|
+
name: z.ZodString;
|
|
5179
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5180
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5181
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5182
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
5183
|
+
}, "strip", z.ZodTypeAny, {
|
|
5184
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5185
|
+
name: string;
|
|
5186
|
+
required: boolean;
|
|
5187
|
+
description?: string | undefined;
|
|
5188
|
+
defaultValue?: string | undefined;
|
|
5189
|
+
}, {
|
|
5190
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5191
|
+
name: string;
|
|
5192
|
+
description?: string | undefined;
|
|
5193
|
+
required?: boolean | undefined;
|
|
5194
|
+
defaultValue?: string | undefined;
|
|
5195
|
+
}>, "many">>;
|
|
5196
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5197
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
5198
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
5199
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
5200
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
5201
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
5202
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
5203
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
5204
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
5205
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
5206
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
5207
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
5208
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
5209
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
5210
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
5211
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
5212
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
5213
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
5214
|
+
}, "strip", z.ZodTypeAny, {
|
|
5215
|
+
closed?: string | undefined;
|
|
5216
|
+
merged?: string | undefined;
|
|
5217
|
+
createPR?: string | undefined;
|
|
5218
|
+
viewPR?: string | undefined;
|
|
5219
|
+
mergePR?: string | undefined;
|
|
5220
|
+
approvePR?: string | undefined;
|
|
5221
|
+
recreatePR?: string | undefined;
|
|
5222
|
+
permissionCanSendMessage?: string | undefined;
|
|
5223
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5224
|
+
permissionCanCreatePr?: string | undefined;
|
|
5225
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5226
|
+
permissionCanApprovePr?: string | undefined;
|
|
5227
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5228
|
+
permissionCanViewPr?: string | undefined;
|
|
5229
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5230
|
+
permissionCanMergePr?: string | undefined;
|
|
5231
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5232
|
+
}, {
|
|
5233
|
+
closed?: string | undefined;
|
|
5234
|
+
merged?: string | undefined;
|
|
5235
|
+
createPR?: string | undefined;
|
|
5236
|
+
viewPR?: string | undefined;
|
|
5237
|
+
mergePR?: string | undefined;
|
|
5238
|
+
approvePR?: string | undefined;
|
|
5239
|
+
recreatePR?: string | undefined;
|
|
5240
|
+
permissionCanSendMessage?: string | undefined;
|
|
5241
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5242
|
+
permissionCanCreatePr?: string | undefined;
|
|
5243
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5244
|
+
permissionCanApprovePr?: string | undefined;
|
|
5245
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5246
|
+
permissionCanViewPr?: string | undefined;
|
|
5247
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5248
|
+
permissionCanMergePr?: string | undefined;
|
|
5249
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5250
|
+
}>>>;
|
|
5251
|
+
}, "strip", z.ZodTypeAny, {
|
|
5252
|
+
guildMsg: string;
|
|
5253
|
+
placeholderMsg: string;
|
|
5254
|
+
displayConfig?: Record<string, {
|
|
5255
|
+
closed?: string | undefined;
|
|
5256
|
+
merged?: string | undefined;
|
|
5257
|
+
createPR?: string | undefined;
|
|
5258
|
+
viewPR?: string | undefined;
|
|
5259
|
+
mergePR?: string | undefined;
|
|
5260
|
+
approvePR?: string | undefined;
|
|
5261
|
+
recreatePR?: string | undefined;
|
|
5262
|
+
permissionCanSendMessage?: string | undefined;
|
|
5263
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5264
|
+
permissionCanCreatePr?: string | undefined;
|
|
5265
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5266
|
+
permissionCanApprovePr?: string | undefined;
|
|
5267
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5268
|
+
permissionCanViewPr?: string | undefined;
|
|
5269
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5270
|
+
permissionCanMergePr?: string | undefined;
|
|
5271
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5272
|
+
}> | undefined;
|
|
5273
|
+
deploymentSchema?: {
|
|
5274
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5275
|
+
name: string;
|
|
5276
|
+
required: boolean;
|
|
5277
|
+
description?: string | undefined;
|
|
5278
|
+
defaultValue?: string | undefined;
|
|
5279
|
+
}[] | undefined;
|
|
5280
|
+
}, {
|
|
5281
|
+
displayConfig?: Record<string, {
|
|
5282
|
+
closed?: string | undefined;
|
|
5283
|
+
merged?: string | undefined;
|
|
5284
|
+
createPR?: string | undefined;
|
|
5285
|
+
viewPR?: string | undefined;
|
|
5286
|
+
mergePR?: string | undefined;
|
|
5287
|
+
approvePR?: string | undefined;
|
|
5288
|
+
recreatePR?: string | undefined;
|
|
5289
|
+
permissionCanSendMessage?: string | undefined;
|
|
5290
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5291
|
+
permissionCanCreatePr?: string | undefined;
|
|
5292
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5293
|
+
permissionCanApprovePr?: string | undefined;
|
|
5294
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5295
|
+
permissionCanViewPr?: string | undefined;
|
|
5296
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5297
|
+
permissionCanMergePr?: string | undefined;
|
|
5298
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5299
|
+
}> | undefined;
|
|
5300
|
+
guildMsg?: string | undefined;
|
|
5301
|
+
placeholderMsg?: string | undefined;
|
|
5302
|
+
deploymentSchema?: {
|
|
5303
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5304
|
+
name: string;
|
|
5305
|
+
description?: string | undefined;
|
|
5306
|
+
required?: boolean | undefined;
|
|
5307
|
+
defaultValue?: string | undefined;
|
|
5308
|
+
}[] | undefined;
|
|
5309
|
+
}>>;
|
|
5310
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
5311
|
+
role: z.ZodString;
|
|
5312
|
+
path: z.ZodString;
|
|
5313
|
+
}, "strip", z.ZodTypeAny, {
|
|
5314
|
+
path: string;
|
|
5315
|
+
role: string;
|
|
5316
|
+
}, {
|
|
5317
|
+
path: string;
|
|
5318
|
+
role: string;
|
|
5319
|
+
}>>;
|
|
5320
|
+
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5321
|
+
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
5322
|
+
createdAt: z.ZodString;
|
|
5323
|
+
updatedAt: z.ZodString;
|
|
5324
|
+
}, "strip", z.ZodTypeAny, {
|
|
5325
|
+
description: string | null;
|
|
5326
|
+
type: "claude" | "codex";
|
|
5327
|
+
userId: string;
|
|
5328
|
+
agentDir: string;
|
|
5329
|
+
updatedAt: string;
|
|
5330
|
+
name: string;
|
|
5331
|
+
id: string;
|
|
5332
|
+
createdAt: string;
|
|
5333
|
+
avatar: string | null;
|
|
5334
|
+
permissions: {
|
|
5335
|
+
path: string;
|
|
5336
|
+
role: string;
|
|
5337
|
+
} | null;
|
|
5338
|
+
enable: boolean;
|
|
5339
|
+
config: {
|
|
5340
|
+
guildMsg: string;
|
|
5341
|
+
placeholderMsg: string;
|
|
5342
|
+
displayConfig?: Record<string, {
|
|
5343
|
+
closed?: string | undefined;
|
|
5344
|
+
merged?: string | undefined;
|
|
5345
|
+
createPR?: string | undefined;
|
|
5346
|
+
viewPR?: string | undefined;
|
|
5347
|
+
mergePR?: string | undefined;
|
|
5348
|
+
approvePR?: string | undefined;
|
|
5349
|
+
recreatePR?: string | undefined;
|
|
5350
|
+
permissionCanSendMessage?: string | undefined;
|
|
5351
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5352
|
+
permissionCanCreatePr?: string | undefined;
|
|
5353
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5354
|
+
permissionCanApprovePr?: string | undefined;
|
|
5355
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5356
|
+
permissionCanViewPr?: string | undefined;
|
|
5357
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5358
|
+
permissionCanMergePr?: string | undefined;
|
|
5359
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5360
|
+
}> | undefined;
|
|
5361
|
+
deploymentSchema?: {
|
|
5362
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5363
|
+
name: string;
|
|
5364
|
+
required: boolean;
|
|
5365
|
+
description?: string | undefined;
|
|
5366
|
+
defaultValue?: string | undefined;
|
|
5367
|
+
}[] | undefined;
|
|
5368
|
+
} | null;
|
|
5369
|
+
displayName: string;
|
|
5370
|
+
publishedAgentId: string | null;
|
|
5371
|
+
sourceTaskId: string | null;
|
|
5372
|
+
}, {
|
|
5373
|
+
description: string | null;
|
|
5374
|
+
type: "claude" | "codex";
|
|
5375
|
+
userId: string;
|
|
5376
|
+
agentDir: string;
|
|
5377
|
+
updatedAt: string;
|
|
5378
|
+
name: string;
|
|
5379
|
+
id: string;
|
|
5380
|
+
createdAt: string;
|
|
5381
|
+
avatar: string | null;
|
|
5382
|
+
permissions: {
|
|
5383
|
+
path: string;
|
|
5384
|
+
role: string;
|
|
5385
|
+
} | null;
|
|
5386
|
+
enable: boolean;
|
|
5387
|
+
config: {
|
|
5388
|
+
displayConfig?: Record<string, {
|
|
5389
|
+
closed?: string | undefined;
|
|
5390
|
+
merged?: string | undefined;
|
|
5391
|
+
createPR?: string | undefined;
|
|
5392
|
+
viewPR?: string | undefined;
|
|
5393
|
+
mergePR?: string | undefined;
|
|
5394
|
+
approvePR?: string | undefined;
|
|
5395
|
+
recreatePR?: string | undefined;
|
|
5396
|
+
permissionCanSendMessage?: string | undefined;
|
|
5397
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5398
|
+
permissionCanCreatePr?: string | undefined;
|
|
5399
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5400
|
+
permissionCanApprovePr?: string | undefined;
|
|
5401
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5402
|
+
permissionCanViewPr?: string | undefined;
|
|
5403
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5404
|
+
permissionCanMergePr?: string | undefined;
|
|
5405
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5406
|
+
}> | undefined;
|
|
5407
|
+
guildMsg?: string | undefined;
|
|
5408
|
+
placeholderMsg?: string | undefined;
|
|
5409
|
+
deploymentSchema?: {
|
|
5410
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5411
|
+
name: string;
|
|
5412
|
+
description?: string | undefined;
|
|
5413
|
+
required?: boolean | undefined;
|
|
5414
|
+
defaultValue?: string | undefined;
|
|
5415
|
+
}[] | undefined;
|
|
5416
|
+
} | null;
|
|
5417
|
+
displayName: string;
|
|
5418
|
+
publishedAgentId: string | null;
|
|
5419
|
+
sourceTaskId: string | null;
|
|
5420
|
+
}>;
|
|
5421
|
+
type AgentBuilder = z.infer<typeof AgentBuilderSchema>;
|
|
5422
|
+
/**
|
|
5423
|
+
* Response for user agents endpoint (agents + builders)
|
|
5424
|
+
*/
|
|
5425
|
+
declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
5426
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
5427
|
+
id: z.ZodString;
|
|
5428
|
+
name: z.ZodString;
|
|
5429
|
+
type: z.ZodEnum<["claude", "codex"]>;
|
|
5430
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
5431
|
+
userId: z.ZodString;
|
|
5432
|
+
description: z.ZodNullable<z.ZodString>;
|
|
5433
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
5434
|
+
guildMsg: z.ZodString;
|
|
5435
|
+
placeholderMsg: z.ZodString;
|
|
5436
|
+
developerName: z.ZodString;
|
|
5437
|
+
developerEmail: z.ZodNullable<z.ZodString>;
|
|
5438
|
+
gitRepoId: z.ZodNullable<z.ZodString>;
|
|
5439
|
+
supportLocal: z.ZodBoolean;
|
|
5440
|
+
enable: z.ZodBoolean;
|
|
5441
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
5442
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5443
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
5444
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
5445
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
5446
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
5447
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
5448
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
5449
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
5450
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
5451
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
5452
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
5453
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
5454
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
5455
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
5456
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
5457
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
5458
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
5459
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
5460
|
+
}, "strip", z.ZodTypeAny, {
|
|
5461
|
+
closed?: string | undefined;
|
|
5462
|
+
merged?: string | undefined;
|
|
5463
|
+
createPR?: string | undefined;
|
|
5464
|
+
viewPR?: string | undefined;
|
|
5465
|
+
mergePR?: string | undefined;
|
|
5466
|
+
approvePR?: string | undefined;
|
|
5467
|
+
recreatePR?: string | undefined;
|
|
5468
|
+
permissionCanSendMessage?: string | undefined;
|
|
5469
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5470
|
+
permissionCanCreatePr?: string | undefined;
|
|
5471
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5472
|
+
permissionCanApprovePr?: string | undefined;
|
|
5473
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5474
|
+
permissionCanViewPr?: string | undefined;
|
|
5475
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5476
|
+
permissionCanMergePr?: string | undefined;
|
|
5477
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5478
|
+
}, {
|
|
5479
|
+
closed?: string | undefined;
|
|
5480
|
+
merged?: string | undefined;
|
|
5481
|
+
createPR?: string | undefined;
|
|
5482
|
+
viewPR?: string | undefined;
|
|
5483
|
+
mergePR?: string | undefined;
|
|
5484
|
+
approvePR?: string | undefined;
|
|
5485
|
+
recreatePR?: string | undefined;
|
|
5486
|
+
permissionCanSendMessage?: string | undefined;
|
|
5487
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5488
|
+
permissionCanCreatePr?: string | undefined;
|
|
5489
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5490
|
+
permissionCanApprovePr?: string | undefined;
|
|
5491
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5492
|
+
permissionCanViewPr?: string | undefined;
|
|
5493
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5494
|
+
permissionCanMergePr?: string | undefined;
|
|
5495
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5496
|
+
}>>>;
|
|
5497
|
+
}, "strip", z.ZodTypeAny, {
|
|
5498
|
+
displayConfig?: Record<string, {
|
|
5499
|
+
closed?: string | undefined;
|
|
5500
|
+
merged?: string | undefined;
|
|
5501
|
+
createPR?: string | undefined;
|
|
5502
|
+
viewPR?: string | undefined;
|
|
5503
|
+
mergePR?: string | undefined;
|
|
5504
|
+
approvePR?: string | undefined;
|
|
5505
|
+
recreatePR?: string | undefined;
|
|
5506
|
+
permissionCanSendMessage?: string | undefined;
|
|
5507
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5508
|
+
permissionCanCreatePr?: string | undefined;
|
|
5509
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5510
|
+
permissionCanApprovePr?: string | undefined;
|
|
5511
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5512
|
+
permissionCanViewPr?: string | undefined;
|
|
5513
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5514
|
+
permissionCanMergePr?: string | undefined;
|
|
5515
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5516
|
+
}> | undefined;
|
|
5517
|
+
}, {
|
|
5518
|
+
displayConfig?: Record<string, {
|
|
5519
|
+
closed?: string | undefined;
|
|
5520
|
+
merged?: string | undefined;
|
|
5521
|
+
createPR?: string | undefined;
|
|
5522
|
+
viewPR?: string | undefined;
|
|
5523
|
+
mergePR?: string | undefined;
|
|
5524
|
+
approvePR?: string | undefined;
|
|
5525
|
+
recreatePR?: string | undefined;
|
|
5526
|
+
permissionCanSendMessage?: string | undefined;
|
|
5527
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5528
|
+
permissionCanCreatePr?: string | undefined;
|
|
5529
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5530
|
+
permissionCanApprovePr?: string | undefined;
|
|
5531
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5532
|
+
permissionCanViewPr?: string | undefined;
|
|
5533
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5534
|
+
permissionCanMergePr?: string | undefined;
|
|
5535
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5536
|
+
}> | undefined;
|
|
5537
|
+
}>>;
|
|
5538
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
5539
|
+
role: z.ZodString;
|
|
5540
|
+
path: z.ZodString;
|
|
5541
|
+
}, "strip", z.ZodTypeAny, {
|
|
5542
|
+
path: string;
|
|
5543
|
+
role: string;
|
|
5544
|
+
}, {
|
|
5545
|
+
path: string;
|
|
5546
|
+
role: string;
|
|
5547
|
+
}>>;
|
|
5548
|
+
}, "strip", z.ZodTypeAny, {
|
|
5549
|
+
description: string | null;
|
|
5550
|
+
type: "claude" | "codex";
|
|
5551
|
+
userId: string;
|
|
5552
|
+
name: string;
|
|
5553
|
+
id: string;
|
|
5554
|
+
avatar: string | null;
|
|
5555
|
+
signature: string | null;
|
|
5556
|
+
permissions: {
|
|
5557
|
+
path: string;
|
|
5558
|
+
role: string;
|
|
5559
|
+
} | null;
|
|
5560
|
+
guildMsg: string;
|
|
5561
|
+
placeholderMsg: string;
|
|
5562
|
+
developerName: string;
|
|
5563
|
+
developerEmail: string | null;
|
|
5564
|
+
gitRepoId: string | null;
|
|
5565
|
+
supportLocal: boolean;
|
|
5566
|
+
enable: boolean;
|
|
5567
|
+
config: {
|
|
5568
|
+
displayConfig?: Record<string, {
|
|
5569
|
+
closed?: string | undefined;
|
|
5570
|
+
merged?: string | undefined;
|
|
5571
|
+
createPR?: string | undefined;
|
|
5572
|
+
viewPR?: string | undefined;
|
|
5573
|
+
mergePR?: string | undefined;
|
|
5574
|
+
approvePR?: string | undefined;
|
|
5575
|
+
recreatePR?: string | undefined;
|
|
5576
|
+
permissionCanSendMessage?: string | undefined;
|
|
5577
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5578
|
+
permissionCanCreatePr?: string | undefined;
|
|
5579
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5580
|
+
permissionCanApprovePr?: string | undefined;
|
|
5581
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5582
|
+
permissionCanViewPr?: string | undefined;
|
|
5583
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5584
|
+
permissionCanMergePr?: string | undefined;
|
|
5585
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5586
|
+
}> | undefined;
|
|
5587
|
+
} | null;
|
|
5588
|
+
}, {
|
|
5589
|
+
description: string | null;
|
|
5590
|
+
type: "claude" | "codex";
|
|
5591
|
+
userId: string;
|
|
5592
|
+
name: string;
|
|
5593
|
+
id: string;
|
|
5594
|
+
avatar: string | null;
|
|
5595
|
+
signature: string | null;
|
|
5596
|
+
permissions: {
|
|
5597
|
+
path: string;
|
|
5598
|
+
role: string;
|
|
5599
|
+
} | null;
|
|
5600
|
+
guildMsg: string;
|
|
5601
|
+
placeholderMsg: string;
|
|
5602
|
+
developerName: string;
|
|
5603
|
+
developerEmail: string | null;
|
|
5604
|
+
gitRepoId: string | null;
|
|
5605
|
+
supportLocal: boolean;
|
|
5606
|
+
enable: boolean;
|
|
5607
|
+
config: {
|
|
5608
|
+
displayConfig?: Record<string, {
|
|
5609
|
+
closed?: string | undefined;
|
|
5610
|
+
merged?: string | undefined;
|
|
5611
|
+
createPR?: string | undefined;
|
|
5612
|
+
viewPR?: string | undefined;
|
|
5613
|
+
mergePR?: string | undefined;
|
|
5614
|
+
approvePR?: string | undefined;
|
|
5615
|
+
recreatePR?: string | undefined;
|
|
5616
|
+
permissionCanSendMessage?: string | undefined;
|
|
5617
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5618
|
+
permissionCanCreatePr?: string | undefined;
|
|
5619
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5620
|
+
permissionCanApprovePr?: string | undefined;
|
|
5621
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5622
|
+
permissionCanViewPr?: string | undefined;
|
|
5623
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5624
|
+
permissionCanMergePr?: string | undefined;
|
|
5625
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5626
|
+
}> | undefined;
|
|
5627
|
+
} | null;
|
|
5628
|
+
}>, "many">;
|
|
5629
|
+
builders: z.ZodArray<z.ZodObject<{
|
|
5630
|
+
id: z.ZodString;
|
|
5631
|
+
name: z.ZodString;
|
|
5632
|
+
displayName: z.ZodString;
|
|
5633
|
+
agentDir: z.ZodString;
|
|
5634
|
+
type: z.ZodEnum<["claude", "codex"]>;
|
|
5635
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
5636
|
+
userId: z.ZodString;
|
|
5637
|
+
description: z.ZodNullable<z.ZodString>;
|
|
5638
|
+
enable: z.ZodBoolean;
|
|
5639
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
5640
|
+
guildMsg: z.ZodDefault<z.ZodString>;
|
|
5641
|
+
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
5642
|
+
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5643
|
+
name: z.ZodString;
|
|
5644
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5645
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5646
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5647
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
5648
|
+
}, "strip", z.ZodTypeAny, {
|
|
5649
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5650
|
+
name: string;
|
|
5651
|
+
required: boolean;
|
|
5652
|
+
description?: string | undefined;
|
|
5653
|
+
defaultValue?: string | undefined;
|
|
5654
|
+
}, {
|
|
5655
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5656
|
+
name: string;
|
|
5657
|
+
description?: string | undefined;
|
|
5658
|
+
required?: boolean | undefined;
|
|
5659
|
+
defaultValue?: string | undefined;
|
|
5660
|
+
}>, "many">>;
|
|
5661
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5662
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
5663
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
5664
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
5665
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
5666
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
5667
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
5668
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
5669
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
5670
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
5671
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
5672
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
5673
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
5674
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
5675
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
5676
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
5677
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
5678
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
5679
|
+
}, "strip", z.ZodTypeAny, {
|
|
5680
|
+
closed?: string | undefined;
|
|
5681
|
+
merged?: string | undefined;
|
|
5682
|
+
createPR?: string | undefined;
|
|
5683
|
+
viewPR?: string | undefined;
|
|
5684
|
+
mergePR?: string | undefined;
|
|
5685
|
+
approvePR?: string | undefined;
|
|
5686
|
+
recreatePR?: string | undefined;
|
|
5687
|
+
permissionCanSendMessage?: string | undefined;
|
|
5688
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5689
|
+
permissionCanCreatePr?: string | undefined;
|
|
5690
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5691
|
+
permissionCanApprovePr?: string | undefined;
|
|
5692
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5693
|
+
permissionCanViewPr?: string | undefined;
|
|
5694
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5695
|
+
permissionCanMergePr?: string | undefined;
|
|
5696
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5697
|
+
}, {
|
|
5698
|
+
closed?: string | undefined;
|
|
5699
|
+
merged?: string | undefined;
|
|
5700
|
+
createPR?: string | undefined;
|
|
5701
|
+
viewPR?: string | undefined;
|
|
5702
|
+
mergePR?: string | undefined;
|
|
5703
|
+
approvePR?: string | undefined;
|
|
5704
|
+
recreatePR?: string | undefined;
|
|
5705
|
+
permissionCanSendMessage?: string | undefined;
|
|
5706
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5707
|
+
permissionCanCreatePr?: string | undefined;
|
|
5708
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5709
|
+
permissionCanApprovePr?: string | undefined;
|
|
5710
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5711
|
+
permissionCanViewPr?: string | undefined;
|
|
5712
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5713
|
+
permissionCanMergePr?: string | undefined;
|
|
5714
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5715
|
+
}>>>;
|
|
5716
|
+
}, "strip", z.ZodTypeAny, {
|
|
5717
|
+
guildMsg: string;
|
|
5718
|
+
placeholderMsg: string;
|
|
5719
|
+
displayConfig?: Record<string, {
|
|
5720
|
+
closed?: string | undefined;
|
|
5721
|
+
merged?: string | undefined;
|
|
5722
|
+
createPR?: string | undefined;
|
|
5723
|
+
viewPR?: string | undefined;
|
|
5724
|
+
mergePR?: string | undefined;
|
|
5725
|
+
approvePR?: string | undefined;
|
|
5726
|
+
recreatePR?: string | undefined;
|
|
5727
|
+
permissionCanSendMessage?: string | undefined;
|
|
5728
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5729
|
+
permissionCanCreatePr?: string | undefined;
|
|
5730
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5731
|
+
permissionCanApprovePr?: string | undefined;
|
|
5732
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5733
|
+
permissionCanViewPr?: string | undefined;
|
|
5734
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5735
|
+
permissionCanMergePr?: string | undefined;
|
|
5736
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5737
|
+
}> | undefined;
|
|
5738
|
+
deploymentSchema?: {
|
|
5739
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5740
|
+
name: string;
|
|
5741
|
+
required: boolean;
|
|
5742
|
+
description?: string | undefined;
|
|
5743
|
+
defaultValue?: string | undefined;
|
|
5744
|
+
}[] | undefined;
|
|
5745
|
+
}, {
|
|
5746
|
+
displayConfig?: Record<string, {
|
|
5747
|
+
closed?: string | undefined;
|
|
5748
|
+
merged?: string | undefined;
|
|
5749
|
+
createPR?: string | undefined;
|
|
5750
|
+
viewPR?: string | undefined;
|
|
5751
|
+
mergePR?: string | undefined;
|
|
5752
|
+
approvePR?: string | undefined;
|
|
5753
|
+
recreatePR?: string | undefined;
|
|
5754
|
+
permissionCanSendMessage?: string | undefined;
|
|
5755
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5756
|
+
permissionCanCreatePr?: string | undefined;
|
|
5757
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5758
|
+
permissionCanApprovePr?: string | undefined;
|
|
5759
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5760
|
+
permissionCanViewPr?: string | undefined;
|
|
5761
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5762
|
+
permissionCanMergePr?: string | undefined;
|
|
5763
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5764
|
+
}> | undefined;
|
|
5765
|
+
guildMsg?: string | undefined;
|
|
5766
|
+
placeholderMsg?: string | undefined;
|
|
5767
|
+
deploymentSchema?: {
|
|
5768
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5769
|
+
name: string;
|
|
5770
|
+
description?: string | undefined;
|
|
5771
|
+
required?: boolean | undefined;
|
|
5772
|
+
defaultValue?: string | undefined;
|
|
5773
|
+
}[] | undefined;
|
|
5774
|
+
}>>;
|
|
5775
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
5776
|
+
role: z.ZodString;
|
|
5777
|
+
path: z.ZodString;
|
|
5778
|
+
}, "strip", z.ZodTypeAny, {
|
|
5779
|
+
path: string;
|
|
5780
|
+
role: string;
|
|
5781
|
+
}, {
|
|
5782
|
+
path: string;
|
|
5783
|
+
role: string;
|
|
5784
|
+
}>>;
|
|
5785
|
+
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5786
|
+
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
5787
|
+
createdAt: z.ZodString;
|
|
5788
|
+
updatedAt: z.ZodString;
|
|
5789
|
+
}, "strip", z.ZodTypeAny, {
|
|
5790
|
+
description: string | null;
|
|
5791
|
+
type: "claude" | "codex";
|
|
5792
|
+
userId: string;
|
|
5793
|
+
agentDir: string;
|
|
5794
|
+
updatedAt: string;
|
|
5795
|
+
name: string;
|
|
5796
|
+
id: string;
|
|
5797
|
+
createdAt: string;
|
|
5798
|
+
avatar: string | null;
|
|
5799
|
+
permissions: {
|
|
5800
|
+
path: string;
|
|
5801
|
+
role: string;
|
|
5802
|
+
} | null;
|
|
5803
|
+
enable: boolean;
|
|
5804
|
+
config: {
|
|
5805
|
+
guildMsg: string;
|
|
5806
|
+
placeholderMsg: string;
|
|
5807
|
+
displayConfig?: Record<string, {
|
|
5808
|
+
closed?: string | undefined;
|
|
5809
|
+
merged?: string | undefined;
|
|
5810
|
+
createPR?: string | undefined;
|
|
5811
|
+
viewPR?: string | undefined;
|
|
5812
|
+
mergePR?: string | undefined;
|
|
5813
|
+
approvePR?: string | undefined;
|
|
5814
|
+
recreatePR?: string | undefined;
|
|
5815
|
+
permissionCanSendMessage?: string | undefined;
|
|
5816
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5817
|
+
permissionCanCreatePr?: string | undefined;
|
|
5818
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5819
|
+
permissionCanApprovePr?: string | undefined;
|
|
5820
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5821
|
+
permissionCanViewPr?: string | undefined;
|
|
5822
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5823
|
+
permissionCanMergePr?: string | undefined;
|
|
5824
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5825
|
+
}> | undefined;
|
|
5826
|
+
deploymentSchema?: {
|
|
5827
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5828
|
+
name: string;
|
|
5829
|
+
required: boolean;
|
|
5830
|
+
description?: string | undefined;
|
|
5831
|
+
defaultValue?: string | undefined;
|
|
5832
|
+
}[] | undefined;
|
|
5833
|
+
} | null;
|
|
5834
|
+
displayName: string;
|
|
5835
|
+
publishedAgentId: string | null;
|
|
5836
|
+
sourceTaskId: string | null;
|
|
5837
|
+
}, {
|
|
5838
|
+
description: string | null;
|
|
5839
|
+
type: "claude" | "codex";
|
|
5840
|
+
userId: string;
|
|
5841
|
+
agentDir: string;
|
|
5842
|
+
updatedAt: string;
|
|
5843
|
+
name: string;
|
|
5844
|
+
id: string;
|
|
5845
|
+
createdAt: string;
|
|
5846
|
+
avatar: string | null;
|
|
5847
|
+
permissions: {
|
|
5848
|
+
path: string;
|
|
5849
|
+
role: string;
|
|
5850
|
+
} | null;
|
|
5851
|
+
enable: boolean;
|
|
5852
|
+
config: {
|
|
5853
|
+
displayConfig?: Record<string, {
|
|
5854
|
+
closed?: string | undefined;
|
|
5855
|
+
merged?: string | undefined;
|
|
5856
|
+
createPR?: string | undefined;
|
|
5857
|
+
viewPR?: string | undefined;
|
|
5858
|
+
mergePR?: string | undefined;
|
|
5859
|
+
approvePR?: string | undefined;
|
|
5860
|
+
recreatePR?: string | undefined;
|
|
5861
|
+
permissionCanSendMessage?: string | undefined;
|
|
5862
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5863
|
+
permissionCanCreatePr?: string | undefined;
|
|
5864
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5865
|
+
permissionCanApprovePr?: string | undefined;
|
|
5866
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5867
|
+
permissionCanViewPr?: string | undefined;
|
|
5868
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5869
|
+
permissionCanMergePr?: string | undefined;
|
|
5870
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5871
|
+
}> | undefined;
|
|
5872
|
+
guildMsg?: string | undefined;
|
|
5873
|
+
placeholderMsg?: string | undefined;
|
|
5874
|
+
deploymentSchema?: {
|
|
5875
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5876
|
+
name: string;
|
|
5877
|
+
description?: string | undefined;
|
|
5878
|
+
required?: boolean | undefined;
|
|
5879
|
+
defaultValue?: string | undefined;
|
|
5880
|
+
}[] | undefined;
|
|
5881
|
+
} | null;
|
|
5882
|
+
displayName: string;
|
|
5883
|
+
publishedAgentId: string | null;
|
|
5884
|
+
sourceTaskId: string | null;
|
|
5885
|
+
}>, "many">;
|
|
5886
|
+
}, "strip", z.ZodTypeAny, {
|
|
5887
|
+
agents: {
|
|
5888
|
+
description: string | null;
|
|
5889
|
+
type: "claude" | "codex";
|
|
5890
|
+
userId: string;
|
|
5891
|
+
name: string;
|
|
5892
|
+
id: string;
|
|
5893
|
+
avatar: string | null;
|
|
5894
|
+
signature: string | null;
|
|
5895
|
+
permissions: {
|
|
5896
|
+
path: string;
|
|
5897
|
+
role: string;
|
|
5898
|
+
} | null;
|
|
5899
|
+
guildMsg: string;
|
|
5900
|
+
placeholderMsg: string;
|
|
5901
|
+
developerName: string;
|
|
5902
|
+
developerEmail: string | null;
|
|
5903
|
+
gitRepoId: string | null;
|
|
5904
|
+
supportLocal: boolean;
|
|
5905
|
+
enable: boolean;
|
|
5906
|
+
config: {
|
|
5907
|
+
displayConfig?: Record<string, {
|
|
5908
|
+
closed?: string | undefined;
|
|
5909
|
+
merged?: string | undefined;
|
|
5910
|
+
createPR?: string | undefined;
|
|
5911
|
+
viewPR?: string | undefined;
|
|
5912
|
+
mergePR?: string | undefined;
|
|
5913
|
+
approvePR?: string | undefined;
|
|
5914
|
+
recreatePR?: string | undefined;
|
|
5915
|
+
permissionCanSendMessage?: string | undefined;
|
|
5916
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5917
|
+
permissionCanCreatePr?: string | undefined;
|
|
5918
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5919
|
+
permissionCanApprovePr?: string | undefined;
|
|
5920
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5921
|
+
permissionCanViewPr?: string | undefined;
|
|
5922
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5923
|
+
permissionCanMergePr?: string | undefined;
|
|
5924
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5925
|
+
}> | undefined;
|
|
5926
|
+
} | null;
|
|
5927
|
+
}[];
|
|
5928
|
+
builders: {
|
|
5929
|
+
description: string | null;
|
|
5930
|
+
type: "claude" | "codex";
|
|
5931
|
+
userId: string;
|
|
5932
|
+
agentDir: string;
|
|
5933
|
+
updatedAt: string;
|
|
5934
|
+
name: string;
|
|
5935
|
+
id: string;
|
|
5936
|
+
createdAt: string;
|
|
5937
|
+
avatar: string | null;
|
|
5938
|
+
permissions: {
|
|
5939
|
+
path: string;
|
|
5940
|
+
role: string;
|
|
5941
|
+
} | null;
|
|
5942
|
+
enable: boolean;
|
|
5943
|
+
config: {
|
|
5944
|
+
guildMsg: string;
|
|
5945
|
+
placeholderMsg: string;
|
|
5946
|
+
displayConfig?: Record<string, {
|
|
5947
|
+
closed?: string | undefined;
|
|
5948
|
+
merged?: string | undefined;
|
|
5949
|
+
createPR?: string | undefined;
|
|
5950
|
+
viewPR?: string | undefined;
|
|
5951
|
+
mergePR?: string | undefined;
|
|
5952
|
+
approvePR?: string | undefined;
|
|
5953
|
+
recreatePR?: string | undefined;
|
|
5954
|
+
permissionCanSendMessage?: string | undefined;
|
|
5955
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
5956
|
+
permissionCanCreatePr?: string | undefined;
|
|
5957
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
5958
|
+
permissionCanApprovePr?: string | undefined;
|
|
5959
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
5960
|
+
permissionCanViewPr?: string | undefined;
|
|
5961
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
5962
|
+
permissionCanMergePr?: string | undefined;
|
|
5963
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
5964
|
+
}> | undefined;
|
|
5965
|
+
deploymentSchema?: {
|
|
5966
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
5967
|
+
name: string;
|
|
5968
|
+
required: boolean;
|
|
5969
|
+
description?: string | undefined;
|
|
5970
|
+
defaultValue?: string | undefined;
|
|
5971
|
+
}[] | undefined;
|
|
5972
|
+
} | null;
|
|
5973
|
+
displayName: string;
|
|
5974
|
+
publishedAgentId: string | null;
|
|
5975
|
+
sourceTaskId: string | null;
|
|
5976
|
+
}[];
|
|
5977
|
+
}, {
|
|
5978
|
+
agents: {
|
|
5979
|
+
description: string | null;
|
|
5980
|
+
type: "claude" | "codex";
|
|
5981
|
+
userId: string;
|
|
5982
|
+
name: string;
|
|
5983
|
+
id: string;
|
|
5984
|
+
avatar: string | null;
|
|
5985
|
+
signature: string | null;
|
|
5986
|
+
permissions: {
|
|
5987
|
+
path: string;
|
|
5988
|
+
role: string;
|
|
5989
|
+
} | null;
|
|
5990
|
+
guildMsg: string;
|
|
5991
|
+
placeholderMsg: string;
|
|
5992
|
+
developerName: string;
|
|
5993
|
+
developerEmail: string | null;
|
|
5994
|
+
gitRepoId: string | null;
|
|
5995
|
+
supportLocal: boolean;
|
|
5996
|
+
enable: boolean;
|
|
5997
|
+
config: {
|
|
5998
|
+
displayConfig?: Record<string, {
|
|
5999
|
+
closed?: string | undefined;
|
|
6000
|
+
merged?: string | undefined;
|
|
6001
|
+
createPR?: string | undefined;
|
|
6002
|
+
viewPR?: string | undefined;
|
|
6003
|
+
mergePR?: string | undefined;
|
|
6004
|
+
approvePR?: string | undefined;
|
|
6005
|
+
recreatePR?: string | undefined;
|
|
6006
|
+
permissionCanSendMessage?: string | undefined;
|
|
6007
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
6008
|
+
permissionCanCreatePr?: string | undefined;
|
|
6009
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
6010
|
+
permissionCanApprovePr?: string | undefined;
|
|
6011
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
6012
|
+
permissionCanViewPr?: string | undefined;
|
|
6013
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
6014
|
+
permissionCanMergePr?: string | undefined;
|
|
6015
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
6016
|
+
}> | undefined;
|
|
6017
|
+
} | null;
|
|
6018
|
+
}[];
|
|
6019
|
+
builders: {
|
|
6020
|
+
description: string | null;
|
|
6021
|
+
type: "claude" | "codex";
|
|
6022
|
+
userId: string;
|
|
6023
|
+
agentDir: string;
|
|
6024
|
+
updatedAt: string;
|
|
6025
|
+
name: string;
|
|
6026
|
+
id: string;
|
|
6027
|
+
createdAt: string;
|
|
6028
|
+
avatar: string | null;
|
|
6029
|
+
permissions: {
|
|
6030
|
+
path: string;
|
|
6031
|
+
role: string;
|
|
6032
|
+
} | null;
|
|
6033
|
+
enable: boolean;
|
|
6034
|
+
config: {
|
|
6035
|
+
displayConfig?: Record<string, {
|
|
6036
|
+
closed?: string | undefined;
|
|
6037
|
+
merged?: string | undefined;
|
|
6038
|
+
createPR?: string | undefined;
|
|
6039
|
+
viewPR?: string | undefined;
|
|
6040
|
+
mergePR?: string | undefined;
|
|
6041
|
+
approvePR?: string | undefined;
|
|
6042
|
+
recreatePR?: string | undefined;
|
|
6043
|
+
permissionCanSendMessage?: string | undefined;
|
|
6044
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
6045
|
+
permissionCanCreatePr?: string | undefined;
|
|
6046
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
6047
|
+
permissionCanApprovePr?: string | undefined;
|
|
6048
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
6049
|
+
permissionCanViewPr?: string | undefined;
|
|
6050
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
6051
|
+
permissionCanMergePr?: string | undefined;
|
|
6052
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
6053
|
+
}> | undefined;
|
|
6054
|
+
guildMsg?: string | undefined;
|
|
6055
|
+
placeholderMsg?: string | undefined;
|
|
6056
|
+
deploymentSchema?: {
|
|
6057
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
6058
|
+
name: string;
|
|
6059
|
+
description?: string | undefined;
|
|
6060
|
+
required?: boolean | undefined;
|
|
6061
|
+
defaultValue?: string | undefined;
|
|
6062
|
+
}[] | undefined;
|
|
6063
|
+
} | null;
|
|
6064
|
+
displayName: string;
|
|
6065
|
+
publishedAgentId: string | null;
|
|
6066
|
+
sourceTaskId: string | null;
|
|
6067
|
+
}[];
|
|
6068
|
+
}>;
|
|
6069
|
+
type GetUserAgentsResponse = z.infer<typeof GetUserAgentsResponseSchema>;
|
|
6070
|
+
|
|
6071
|
+
/**
|
|
6072
|
+
* Machine HTTP request/response schemas
|
|
6073
|
+
* Machine management endpoints (both cloud and local)
|
|
6074
|
+
*/
|
|
6075
|
+
|
|
6076
|
+
/**
|
|
6077
|
+
* Local machine schema
|
|
6078
|
+
*/
|
|
6079
|
+
declare const LocalMachineSchema: z.ZodObject<{
|
|
6080
|
+
id: z.ZodString;
|
|
6081
|
+
owner: z.ZodString;
|
|
6082
|
+
status: z.ZodString;
|
|
6083
|
+
metadata: z.ZodNullable<z.ZodString>;
|
|
6084
|
+
approval: z.ZodString;
|
|
6085
|
+
dataEncryptionKey: z.ZodString;
|
|
6086
|
+
controlPort: z.ZodNullable<z.ZodNumber>;
|
|
6087
|
+
createdAt: z.ZodString;
|
|
6088
|
+
updatedAt: z.ZodString;
|
|
6089
|
+
}, "strip", z.ZodTypeAny, {
|
|
6090
|
+
status: string;
|
|
6091
|
+
controlPort: number | null;
|
|
6092
|
+
dataEncryptionKey: string;
|
|
6093
|
+
updatedAt: string;
|
|
6094
|
+
metadata: string | null;
|
|
6095
|
+
owner: string;
|
|
6096
|
+
id: string;
|
|
6097
|
+
createdAt: string;
|
|
6098
|
+
approval: string;
|
|
6099
|
+
}, {
|
|
6100
|
+
status: string;
|
|
6101
|
+
controlPort: number | null;
|
|
6102
|
+
dataEncryptionKey: string;
|
|
6103
|
+
updatedAt: string;
|
|
4825
6104
|
metadata: string | null;
|
|
4826
6105
|
owner: string;
|
|
4827
6106
|
id: string;
|
|
@@ -5362,9 +6641,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
5362
6641
|
contentType: string;
|
|
5363
6642
|
}>, "many">;
|
|
5364
6643
|
}, "strip", z.ZodTypeAny, {
|
|
5365
|
-
total: number;
|
|
5366
|
-
page: number;
|
|
5367
|
-
limit: number;
|
|
5368
6644
|
files: {
|
|
5369
6645
|
name: string;
|
|
5370
6646
|
size: number;
|
|
@@ -5372,10 +6648,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
5372
6648
|
fileId: string;
|
|
5373
6649
|
contentType: string;
|
|
5374
6650
|
}[];
|
|
5375
|
-
}, {
|
|
5376
6651
|
total: number;
|
|
5377
6652
|
page: number;
|
|
5378
6653
|
limit: number;
|
|
6654
|
+
}, {
|
|
5379
6655
|
files: {
|
|
5380
6656
|
name: string;
|
|
5381
6657
|
size: number;
|
|
@@ -5383,6 +6659,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
5383
6659
|
fileId: string;
|
|
5384
6660
|
contentType: string;
|
|
5385
6661
|
}[];
|
|
6662
|
+
total: number;
|
|
6663
|
+
page: number;
|
|
6664
|
+
limit: number;
|
|
5386
6665
|
}>;
|
|
5387
6666
|
type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
|
|
5388
6667
|
|
|
@@ -5745,13 +7024,13 @@ declare const GitHubIssueSchema: z.ZodObject<{
|
|
|
5745
7024
|
}, "strip", z.ZodTypeAny, {
|
|
5746
7025
|
number: number;
|
|
5747
7026
|
title: string;
|
|
5748
|
-
html_url: string;
|
|
5749
7027
|
body: string | null;
|
|
7028
|
+
html_url: string;
|
|
5750
7029
|
}, {
|
|
5751
7030
|
number: number;
|
|
5752
7031
|
title: string;
|
|
5753
|
-
html_url: string;
|
|
5754
7032
|
body: string | null;
|
|
7033
|
+
html_url: string;
|
|
5755
7034
|
}>;
|
|
5756
7035
|
type GitHubIssue = z.infer<typeof GitHubIssueSchema>;
|
|
5757
7036
|
/**
|
|
@@ -7080,6 +8359,69 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
7080
8359
|
}>;
|
|
7081
8360
|
type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
|
|
7082
8361
|
|
|
8362
|
+
/**
|
|
8363
|
+
* RPC (Remote Procedure Call) types and schemas for AgentrixContext
|
|
8364
|
+
*
|
|
8365
|
+
* RPC calls map to HTTP API paths, reusing existing HTTP schemas from shared/http.
|
|
8366
|
+
* The API server simulates internal HTTP requests for RPC calls after permission checks.
|
|
8367
|
+
*/
|
|
8368
|
+
|
|
8369
|
+
declare const RpcCallEventSchema: z.ZodObject<{
|
|
8370
|
+
eventId: z.ZodString;
|
|
8371
|
+
taskId: z.ZodString;
|
|
8372
|
+
method: z.ZodEnum<["GET", "POST", "PATCH", "DELETE"]>;
|
|
8373
|
+
path: z.ZodString;
|
|
8374
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8375
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
8376
|
+
}, "strip", z.ZodTypeAny, {
|
|
8377
|
+
path: string;
|
|
8378
|
+
eventId: string;
|
|
8379
|
+
taskId: string;
|
|
8380
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
8381
|
+
query?: Record<string, any> | undefined;
|
|
8382
|
+
body?: any;
|
|
8383
|
+
}, {
|
|
8384
|
+
path: string;
|
|
8385
|
+
eventId: string;
|
|
8386
|
+
taskId: string;
|
|
8387
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
8388
|
+
query?: Record<string, any> | undefined;
|
|
8389
|
+
body?: any;
|
|
8390
|
+
}>;
|
|
8391
|
+
type RpcCallEventData = z.infer<typeof RpcCallEventSchema>;
|
|
8392
|
+
declare const RpcResponseSchema: z.ZodObject<{
|
|
8393
|
+
success: z.ZodBoolean;
|
|
8394
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
8395
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
8396
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
8397
|
+
code: z.ZodString;
|
|
8398
|
+
message: z.ZodString;
|
|
8399
|
+
}, "strip", z.ZodTypeAny, {
|
|
8400
|
+
code: string;
|
|
8401
|
+
message: string;
|
|
8402
|
+
}, {
|
|
8403
|
+
code: string;
|
|
8404
|
+
message: string;
|
|
8405
|
+
}>>;
|
|
8406
|
+
}, "strip", z.ZodTypeAny, {
|
|
8407
|
+
success: boolean;
|
|
8408
|
+
status?: number | undefined;
|
|
8409
|
+
data?: any;
|
|
8410
|
+
error?: {
|
|
8411
|
+
code: string;
|
|
8412
|
+
message: string;
|
|
8413
|
+
} | undefined;
|
|
8414
|
+
}, {
|
|
8415
|
+
success: boolean;
|
|
8416
|
+
status?: number | undefined;
|
|
8417
|
+
data?: any;
|
|
8418
|
+
error?: {
|
|
8419
|
+
code: string;
|
|
8420
|
+
message: string;
|
|
8421
|
+
} | undefined;
|
|
8422
|
+
}>;
|
|
8423
|
+
type RpcResponseData = z.infer<typeof RpcResponseSchema>;
|
|
8424
|
+
|
|
7083
8425
|
/**
|
|
7084
8426
|
* WebSocket event schemas and mappings.
|
|
7085
8427
|
*/
|
|
@@ -7333,6 +8675,27 @@ declare const WorkerInitializingSchema: z.ZodObject<{
|
|
|
7333
8675
|
cwd?: string | undefined;
|
|
7334
8676
|
}>;
|
|
7335
8677
|
type WorkerInitializingEventData = z.infer<typeof WorkerInitializingSchema>;
|
|
8678
|
+
declare const WorkerInitializedSchema: z.ZodObject<{
|
|
8679
|
+
eventId: z.ZodString;
|
|
8680
|
+
} & {
|
|
8681
|
+
taskId: z.ZodString;
|
|
8682
|
+
machineId: z.ZodString;
|
|
8683
|
+
timestamp: z.ZodString;
|
|
8684
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
8685
|
+
}, "strip", z.ZodTypeAny, {
|
|
8686
|
+
eventId: string;
|
|
8687
|
+
timestamp: string;
|
|
8688
|
+
machineId: string;
|
|
8689
|
+
taskId: string;
|
|
8690
|
+
cwd?: string | undefined;
|
|
8691
|
+
}, {
|
|
8692
|
+
eventId: string;
|
|
8693
|
+
timestamp: string;
|
|
8694
|
+
machineId: string;
|
|
8695
|
+
taskId: string;
|
|
8696
|
+
cwd?: string | undefined;
|
|
8697
|
+
}>;
|
|
8698
|
+
type WorkerInitializedEventData = z.infer<typeof WorkerInitializedSchema>;
|
|
7336
8699
|
declare const WorkerReadySchema: z.ZodObject<{
|
|
7337
8700
|
eventId: z.ZodString;
|
|
7338
8701
|
} & {
|
|
@@ -7437,9 +8800,11 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
7437
8800
|
chatId: z.ZodString;
|
|
7438
8801
|
agentId: z.ZodString;
|
|
7439
8802
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8803
|
+
agentDir: z.ZodOptional<z.ZodString>;
|
|
7440
8804
|
gitUrl: z.ZodOptional<z.ZodString>;
|
|
7441
8805
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
7442
8806
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8807
|
+
userCwd: z.ZodOptional<z.ZodString>;
|
|
7443
8808
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
7444
8809
|
model: z.ZodOptional<z.ZodString>;
|
|
7445
8810
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -7456,8 +8821,10 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
7456
8821
|
agentId: string;
|
|
7457
8822
|
agentType: string;
|
|
7458
8823
|
cwd?: string | undefined;
|
|
8824
|
+
agentDir?: string | undefined;
|
|
7459
8825
|
gitUrl?: string | undefined;
|
|
7460
8826
|
baseBranch?: string | undefined;
|
|
8827
|
+
userCwd?: string | undefined;
|
|
7461
8828
|
dataEncryptionKey?: string | undefined;
|
|
7462
8829
|
model?: string | undefined;
|
|
7463
8830
|
fallbackModel?: string | undefined;
|
|
@@ -7474,8 +8841,10 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
7474
8841
|
agentId: string;
|
|
7475
8842
|
cwd?: string | undefined;
|
|
7476
8843
|
agentType?: string | undefined;
|
|
8844
|
+
agentDir?: string | undefined;
|
|
7477
8845
|
gitUrl?: string | undefined;
|
|
7478
8846
|
baseBranch?: string | undefined;
|
|
8847
|
+
userCwd?: string | undefined;
|
|
7479
8848
|
dataEncryptionKey?: string | undefined;
|
|
7480
8849
|
model?: string | undefined;
|
|
7481
8850
|
fallbackModel?: string | undefined;
|
|
@@ -7493,9 +8862,11 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7493
8862
|
chatId: z.ZodString;
|
|
7494
8863
|
agentId: z.ZodString;
|
|
7495
8864
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8865
|
+
agentDir: z.ZodOptional<z.ZodString>;
|
|
7496
8866
|
gitUrl: z.ZodOptional<z.ZodString>;
|
|
7497
8867
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
7498
8868
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8869
|
+
userCwd: z.ZodOptional<z.ZodString>;
|
|
7499
8870
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
7500
8871
|
model: z.ZodOptional<z.ZodString>;
|
|
7501
8872
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -7516,8 +8887,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7516
8887
|
agentType: string;
|
|
7517
8888
|
message?: SDKUserMessage | undefined;
|
|
7518
8889
|
cwd?: string | undefined;
|
|
8890
|
+
agentDir?: string | undefined;
|
|
7519
8891
|
gitUrl?: string | undefined;
|
|
7520
8892
|
baseBranch?: string | undefined;
|
|
8893
|
+
userCwd?: string | undefined;
|
|
7521
8894
|
dataEncryptionKey?: string | undefined;
|
|
7522
8895
|
model?: string | undefined;
|
|
7523
8896
|
fallbackModel?: string | undefined;
|
|
@@ -7536,8 +8909,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7536
8909
|
message?: SDKUserMessage | undefined;
|
|
7537
8910
|
cwd?: string | undefined;
|
|
7538
8911
|
agentType?: string | undefined;
|
|
8912
|
+
agentDir?: string | undefined;
|
|
7539
8913
|
gitUrl?: string | undefined;
|
|
7540
8914
|
baseBranch?: string | undefined;
|
|
8915
|
+
userCwd?: string | undefined;
|
|
7541
8916
|
dataEncryptionKey?: string | undefined;
|
|
7542
8917
|
model?: string | undefined;
|
|
7543
8918
|
fallbackModel?: string | undefined;
|
|
@@ -7556,8 +8931,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7556
8931
|
agentType: string;
|
|
7557
8932
|
message?: SDKUserMessage | undefined;
|
|
7558
8933
|
cwd?: string | undefined;
|
|
8934
|
+
agentDir?: string | undefined;
|
|
7559
8935
|
gitUrl?: string | undefined;
|
|
7560
8936
|
baseBranch?: string | undefined;
|
|
8937
|
+
userCwd?: string | undefined;
|
|
7561
8938
|
dataEncryptionKey?: string | undefined;
|
|
7562
8939
|
model?: string | undefined;
|
|
7563
8940
|
fallbackModel?: string | undefined;
|
|
@@ -7576,8 +8953,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7576
8953
|
message?: SDKUserMessage | undefined;
|
|
7577
8954
|
cwd?: string | undefined;
|
|
7578
8955
|
agentType?: string | undefined;
|
|
8956
|
+
agentDir?: string | undefined;
|
|
7579
8957
|
gitUrl?: string | undefined;
|
|
7580
8958
|
baseBranch?: string | undefined;
|
|
8959
|
+
userCwd?: string | undefined;
|
|
7581
8960
|
dataEncryptionKey?: string | undefined;
|
|
7582
8961
|
model?: string | undefined;
|
|
7583
8962
|
fallbackModel?: string | undefined;
|
|
@@ -7597,9 +8976,11 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
7597
8976
|
chatId: z.ZodString;
|
|
7598
8977
|
agentId: z.ZodString;
|
|
7599
8978
|
agentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8979
|
+
agentDir: z.ZodOptional<z.ZodString>;
|
|
7600
8980
|
gitUrl: z.ZodOptional<z.ZodString>;
|
|
7601
8981
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
7602
8982
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8983
|
+
userCwd: z.ZodOptional<z.ZodString>;
|
|
7603
8984
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
7604
8985
|
model: z.ZodOptional<z.ZodString>;
|
|
7605
8986
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -7624,8 +9005,10 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
7624
9005
|
agentSessionId: string;
|
|
7625
9006
|
message?: SDKUserMessage | undefined;
|
|
7626
9007
|
cwd?: string | undefined;
|
|
9008
|
+
agentDir?: string | undefined;
|
|
7627
9009
|
gitUrl?: string | undefined;
|
|
7628
9010
|
baseBranch?: string | undefined;
|
|
9011
|
+
userCwd?: string | undefined;
|
|
7629
9012
|
dataEncryptionKey?: string | undefined;
|
|
7630
9013
|
model?: string | undefined;
|
|
7631
9014
|
fallbackModel?: string | undefined;
|
|
@@ -7647,8 +9030,10 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
7647
9030
|
message?: SDKUserMessage | undefined;
|
|
7648
9031
|
cwd?: string | undefined;
|
|
7649
9032
|
agentType?: string | undefined;
|
|
9033
|
+
agentDir?: string | undefined;
|
|
7650
9034
|
gitUrl?: string | undefined;
|
|
7651
9035
|
baseBranch?: string | undefined;
|
|
9036
|
+
userCwd?: string | undefined;
|
|
7652
9037
|
dataEncryptionKey?: string | undefined;
|
|
7653
9038
|
model?: string | undefined;
|
|
7654
9039
|
fallbackModel?: string | undefined;
|
|
@@ -7856,6 +9241,147 @@ declare const CreditExhaustedEventSchema: z.ZodObject<{
|
|
|
7856
9241
|
eventId: string;
|
|
7857
9242
|
}>;
|
|
7858
9243
|
type CreditExhaustedEventData = z.infer<typeof CreditExhaustedEventSchema>;
|
|
9244
|
+
declare const RtcIceServerSchema: z.ZodObject<{
|
|
9245
|
+
urls: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
9246
|
+
username: z.ZodOptional<z.ZodString>;
|
|
9247
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
9248
|
+
}, "strip", z.ZodTypeAny, {
|
|
9249
|
+
urls: string | string[];
|
|
9250
|
+
username?: string | undefined;
|
|
9251
|
+
credential?: string | undefined;
|
|
9252
|
+
}, {
|
|
9253
|
+
urls: string | string[];
|
|
9254
|
+
username?: string | undefined;
|
|
9255
|
+
credential?: string | undefined;
|
|
9256
|
+
}>;
|
|
9257
|
+
type RtcIceServer = z.infer<typeof RtcIceServerSchema>;
|
|
9258
|
+
declare const RtcIceServersRequestSchema: z.ZodObject<{
|
|
9259
|
+
eventId: z.ZodString;
|
|
9260
|
+
}, "strip", z.ZodTypeAny, {
|
|
9261
|
+
eventId: string;
|
|
9262
|
+
}, {
|
|
9263
|
+
eventId: string;
|
|
9264
|
+
}>;
|
|
9265
|
+
type RtcIceServersRequestEventData = z.infer<typeof RtcIceServersRequestSchema>;
|
|
9266
|
+
declare const RtcIceServersResponseSchema: z.ZodObject<{
|
|
9267
|
+
eventId: z.ZodString;
|
|
9268
|
+
} & {
|
|
9269
|
+
iceServers: z.ZodArray<z.ZodObject<{
|
|
9270
|
+
urls: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
9271
|
+
username: z.ZodOptional<z.ZodString>;
|
|
9272
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
9273
|
+
}, "strip", z.ZodTypeAny, {
|
|
9274
|
+
urls: string | string[];
|
|
9275
|
+
username?: string | undefined;
|
|
9276
|
+
credential?: string | undefined;
|
|
9277
|
+
}, {
|
|
9278
|
+
urls: string | string[];
|
|
9279
|
+
username?: string | undefined;
|
|
9280
|
+
credential?: string | undefined;
|
|
9281
|
+
}>, "many">;
|
|
9282
|
+
}, "strip", z.ZodTypeAny, {
|
|
9283
|
+
eventId: string;
|
|
9284
|
+
iceServers: {
|
|
9285
|
+
urls: string | string[];
|
|
9286
|
+
username?: string | undefined;
|
|
9287
|
+
credential?: string | undefined;
|
|
9288
|
+
}[];
|
|
9289
|
+
}, {
|
|
9290
|
+
eventId: string;
|
|
9291
|
+
iceServers: {
|
|
9292
|
+
urls: string | string[];
|
|
9293
|
+
username?: string | undefined;
|
|
9294
|
+
credential?: string | undefined;
|
|
9295
|
+
}[];
|
|
9296
|
+
}>;
|
|
9297
|
+
type RtcIceServersResponseEventData = z.infer<typeof RtcIceServersResponseSchema>;
|
|
9298
|
+
declare const MachineRtcRequestSchema: z.ZodObject<{
|
|
9299
|
+
eventId: z.ZodString;
|
|
9300
|
+
} & {
|
|
9301
|
+
machineId: z.ZodString;
|
|
9302
|
+
sessionId: z.ZodString;
|
|
9303
|
+
role: z.ZodLiteral<"app">;
|
|
9304
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
9305
|
+
}, "strip", z.ZodTypeAny, {
|
|
9306
|
+
eventId: string;
|
|
9307
|
+
machineId: string;
|
|
9308
|
+
sessionId: string;
|
|
9309
|
+
role: "app";
|
|
9310
|
+
userId?: string | undefined;
|
|
9311
|
+
}, {
|
|
9312
|
+
eventId: string;
|
|
9313
|
+
machineId: string;
|
|
9314
|
+
sessionId: string;
|
|
9315
|
+
role: "app";
|
|
9316
|
+
userId?: string | undefined;
|
|
9317
|
+
}>;
|
|
9318
|
+
type MachineRtcRequestEventData = z.infer<typeof MachineRtcRequestSchema>;
|
|
9319
|
+
declare const MachineRtcResponseSchema: z.ZodObject<{
|
|
9320
|
+
eventId: z.ZodString;
|
|
9321
|
+
} & {
|
|
9322
|
+
machineId: z.ZodString;
|
|
9323
|
+
sessionId: z.ZodString;
|
|
9324
|
+
accepted: z.ZodBoolean;
|
|
9325
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
9326
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
9327
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
9328
|
+
dataChannel: z.ZodOptional<z.ZodBoolean>;
|
|
9329
|
+
maxMessageSize: z.ZodOptional<z.ZodNumber>;
|
|
9330
|
+
}, "strip", z.ZodTypeAny, {
|
|
9331
|
+
dataChannel?: boolean | undefined;
|
|
9332
|
+
maxMessageSize?: number | undefined;
|
|
9333
|
+
}, {
|
|
9334
|
+
dataChannel?: boolean | undefined;
|
|
9335
|
+
maxMessageSize?: number | undefined;
|
|
9336
|
+
}>>;
|
|
9337
|
+
}, "strip", z.ZodTypeAny, {
|
|
9338
|
+
eventId: string;
|
|
9339
|
+
machineId: string;
|
|
9340
|
+
sessionId: string;
|
|
9341
|
+
accepted: boolean;
|
|
9342
|
+
reason?: string | undefined;
|
|
9343
|
+
userId?: string | undefined;
|
|
9344
|
+
capabilities?: {
|
|
9345
|
+
dataChannel?: boolean | undefined;
|
|
9346
|
+
maxMessageSize?: number | undefined;
|
|
9347
|
+
} | undefined;
|
|
9348
|
+
}, {
|
|
9349
|
+
eventId: string;
|
|
9350
|
+
machineId: string;
|
|
9351
|
+
sessionId: string;
|
|
9352
|
+
accepted: boolean;
|
|
9353
|
+
reason?: string | undefined;
|
|
9354
|
+
userId?: string | undefined;
|
|
9355
|
+
capabilities?: {
|
|
9356
|
+
dataChannel?: boolean | undefined;
|
|
9357
|
+
maxMessageSize?: number | undefined;
|
|
9358
|
+
} | undefined;
|
|
9359
|
+
}>;
|
|
9360
|
+
type MachineRtcResponseEventData = z.infer<typeof MachineRtcResponseSchema>;
|
|
9361
|
+
declare const RtcSignalSchema: z.ZodObject<{
|
|
9362
|
+
eventId: z.ZodString;
|
|
9363
|
+
} & {
|
|
9364
|
+
machineId: z.ZodString;
|
|
9365
|
+
sessionId: z.ZodString;
|
|
9366
|
+
from: z.ZodEnum<["app", "machine"]>;
|
|
9367
|
+
signal: z.ZodAny;
|
|
9368
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
9369
|
+
}, "strip", z.ZodTypeAny, {
|
|
9370
|
+
eventId: string;
|
|
9371
|
+
machineId: string;
|
|
9372
|
+
from: "app" | "machine";
|
|
9373
|
+
sessionId: string;
|
|
9374
|
+
userId?: string | undefined;
|
|
9375
|
+
signal?: any;
|
|
9376
|
+
}, {
|
|
9377
|
+
eventId: string;
|
|
9378
|
+
machineId: string;
|
|
9379
|
+
from: "app" | "machine";
|
|
9380
|
+
sessionId: string;
|
|
9381
|
+
userId?: string | undefined;
|
|
9382
|
+
signal?: any;
|
|
9383
|
+
}>;
|
|
9384
|
+
type RtcSignalEventData = z.infer<typeof RtcSignalSchema>;
|
|
7859
9385
|
declare const WorkspaceFileRequestSchema: z.ZodObject<{
|
|
7860
9386
|
eventId: z.ZodString;
|
|
7861
9387
|
} & {
|
|
@@ -7971,21 +9497,17 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
7971
9497
|
code: z.ZodString;
|
|
7972
9498
|
message: z.ZodString;
|
|
7973
9499
|
}, "strip", z.ZodTypeAny, {
|
|
7974
|
-
message: string;
|
|
7975
9500
|
code: string;
|
|
7976
|
-
}, {
|
|
7977
9501
|
message: string;
|
|
9502
|
+
}, {
|
|
7978
9503
|
code: string;
|
|
9504
|
+
message: string;
|
|
7979
9505
|
}>>;
|
|
7980
9506
|
}, "strip", z.ZodTypeAny, {
|
|
7981
|
-
success: boolean;
|
|
7982
9507
|
eventId: string;
|
|
9508
|
+
success: boolean;
|
|
7983
9509
|
taskId: string;
|
|
7984
9510
|
requestId: string;
|
|
7985
|
-
error?: {
|
|
7986
|
-
message: string;
|
|
7987
|
-
code: string;
|
|
7988
|
-
} | undefined;
|
|
7989
9511
|
data?: {
|
|
7990
9512
|
type: "directory" | "file";
|
|
7991
9513
|
metadata: {
|
|
@@ -8005,15 +9527,15 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
8005
9527
|
encryptedContent?: string | undefined;
|
|
8006
9528
|
} | undefined;
|
|
8007
9529
|
notModified?: boolean | undefined;
|
|
9530
|
+
error?: {
|
|
9531
|
+
code: string;
|
|
9532
|
+
message: string;
|
|
9533
|
+
} | undefined;
|
|
8008
9534
|
}, {
|
|
8009
|
-
success: boolean;
|
|
8010
9535
|
eventId: string;
|
|
9536
|
+
success: boolean;
|
|
8011
9537
|
taskId: string;
|
|
8012
9538
|
requestId: string;
|
|
8013
|
-
error?: {
|
|
8014
|
-
message: string;
|
|
8015
|
-
code: string;
|
|
8016
|
-
} | undefined;
|
|
8017
9539
|
data?: {
|
|
8018
9540
|
type: "directory" | "file";
|
|
8019
9541
|
metadata: {
|
|
@@ -8033,6 +9555,10 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
8033
9555
|
encryptedContent?: string | undefined;
|
|
8034
9556
|
} | undefined;
|
|
8035
9557
|
notModified?: boolean | undefined;
|
|
9558
|
+
error?: {
|
|
9559
|
+
code: string;
|
|
9560
|
+
message: string;
|
|
9561
|
+
} | undefined;
|
|
8036
9562
|
}>;
|
|
8037
9563
|
type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
|
|
8038
9564
|
declare const UpdateTaskAgentSessionIdEventSchema: z.ZodObject<{
|
|
@@ -8216,18 +9742,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
8216
9742
|
type: "human" | "agent";
|
|
8217
9743
|
chatId: string;
|
|
8218
9744
|
updatedAt: string;
|
|
9745
|
+
role: string;
|
|
8219
9746
|
id: string;
|
|
8220
9747
|
createdAt: string;
|
|
8221
9748
|
memberCode: string;
|
|
8222
|
-
role: string;
|
|
8223
9749
|
}, {
|
|
8224
9750
|
type: "human" | "agent";
|
|
8225
9751
|
chatId: string;
|
|
8226
9752
|
updatedAt: string;
|
|
9753
|
+
role: string;
|
|
8227
9754
|
id: string;
|
|
8228
9755
|
createdAt: string;
|
|
8229
9756
|
memberCode: string;
|
|
8230
|
-
role: string;
|
|
8231
9757
|
}>, "many">, z.ZodArray<z.ZodObject<{
|
|
8232
9758
|
id: z.ZodString;
|
|
8233
9759
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8308,10 +9834,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
8308
9834
|
type: "human" | "agent";
|
|
8309
9835
|
chatId: string;
|
|
8310
9836
|
updatedAt: string;
|
|
9837
|
+
role: string;
|
|
8311
9838
|
id: string;
|
|
8312
9839
|
createdAt: string;
|
|
8313
9840
|
memberCode: string;
|
|
8314
|
-
role: string;
|
|
8315
9841
|
}[] | {
|
|
8316
9842
|
id: string;
|
|
8317
9843
|
}[] | {
|
|
@@ -8350,10 +9876,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
8350
9876
|
type: "human" | "agent";
|
|
8351
9877
|
chatId: string;
|
|
8352
9878
|
updatedAt: string;
|
|
9879
|
+
role: string;
|
|
8353
9880
|
id: string;
|
|
8354
9881
|
createdAt: string;
|
|
8355
9882
|
memberCode: string;
|
|
8356
|
-
role: string;
|
|
8357
9883
|
}[] | {
|
|
8358
9884
|
id: string;
|
|
8359
9885
|
}[] | {
|
|
@@ -8379,12 +9905,13 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
8379
9905
|
timestamp: string;
|
|
8380
9906
|
}>;
|
|
8381
9907
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
8382
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
9908
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
8383
9909
|
type EventMap = {
|
|
8384
9910
|
"app-alive": AppAliveEventData;
|
|
8385
9911
|
"api-server-alive": ApiServerAliveEventData;
|
|
8386
9912
|
"machine-alive": MachineAliveEventData;
|
|
8387
9913
|
"worker-initializing": WorkerInitializingEventData;
|
|
9914
|
+
"worker-initialized": WorkerInitializedEventData;
|
|
8388
9915
|
"worker-ready": WorkerReadyEventData;
|
|
8389
9916
|
"worker-alive": WorkerAliveEventData;
|
|
8390
9917
|
"worker-exit": WorkerExitEventData;
|
|
@@ -8405,8 +9932,14 @@ type EventMap = {
|
|
|
8405
9932
|
"associate-repo": AssociateRepoEventData;
|
|
8406
9933
|
"system-message": SystemMessageEventData;
|
|
8407
9934
|
"credit-exhausted": CreditExhaustedEventData;
|
|
9935
|
+
"rtc-ice-servers-request": RtcIceServersRequestEventData;
|
|
9936
|
+
"rtc-ice-servers-response": RtcIceServersResponseEventData;
|
|
9937
|
+
"machine-rtc-request": MachineRtcRequestEventData;
|
|
9938
|
+
"machine-rtc-response": MachineRtcResponseEventData;
|
|
9939
|
+
"rtc-signal": RtcSignalEventData;
|
|
8408
9940
|
"workspace-file-request": WorkspaceFileRequestEventData;
|
|
8409
9941
|
"workspace-file-response": WorkspaceFileResponseEventData;
|
|
9942
|
+
"rpc-call": RpcCallEventData;
|
|
8410
9943
|
"event-ack": EventAckData;
|
|
8411
9944
|
};
|
|
8412
9945
|
type EventName = keyof EventMap;
|
|
@@ -8414,7 +9947,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
|
|
|
8414
9947
|
/**
|
|
8415
9948
|
* only sent by worker and which need to send to human in chat room
|
|
8416
9949
|
*/
|
|
8417
|
-
type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "merge-request" | "merge-pr" | "associate-repo";
|
|
9950
|
+
type WorkerTaskEvent = "worker-initializing" | "worker-initialized" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "merge-request" | "merge-pr" | "associate-repo";
|
|
8418
9951
|
declare const workerTaskEvents: WorkerTaskEvent[];
|
|
8419
9952
|
|
|
8420
9953
|
type ClientType = 'user' | 'worker' | 'machine';
|
|
@@ -8442,6 +9975,48 @@ interface AgentContext {
|
|
|
8442
9975
|
}
|
|
8443
9976
|
declare function setAgentContext(context: AgentContext): void;
|
|
8444
9977
|
declare function getAgentContext(): AgentContext;
|
|
9978
|
+
/**
|
|
9979
|
+
* AgentrixContext - RPC interface for agent code to interact with Agentrix services
|
|
9980
|
+
*
|
|
9981
|
+
* This interface is implemented by CLI's AgentContextImpl and injected into custom MCP tools.
|
|
9982
|
+
* Agent code cannot run standalone - it requires the CLI to provide this implementation.
|
|
9983
|
+
*
|
|
9984
|
+
* @see cli/src/worker/agentContext.ts - AgentContextImpl (real RPC implementation)
|
|
9985
|
+
*/
|
|
9986
|
+
interface AgentrixContext {
|
|
9987
|
+
/**
|
|
9988
|
+
* Get the current workspace directory
|
|
9989
|
+
*/
|
|
9990
|
+
getWorkspace(): string;
|
|
9991
|
+
/**
|
|
9992
|
+
* Get the current user ID
|
|
9993
|
+
*/
|
|
9994
|
+
getUserId(): string;
|
|
9995
|
+
/**
|
|
9996
|
+
* Get the current task ID
|
|
9997
|
+
*/
|
|
9998
|
+
getTaskId(): string;
|
|
9999
|
+
/**
|
|
10000
|
+
* Create a new agent builder in the database
|
|
10001
|
+
*/
|
|
10002
|
+
createAgentBuilder(params: {
|
|
10003
|
+
name: string;
|
|
10004
|
+
agentDir: string;
|
|
10005
|
+
type?: 'claude' | 'codex';
|
|
10006
|
+
avatar?: string;
|
|
10007
|
+
description?: string;
|
|
10008
|
+
envVars?: Array<{
|
|
10009
|
+
name: string;
|
|
10010
|
+
type: 'string' | 'number' | 'boolean' | 'secret';
|
|
10011
|
+
description?: string;
|
|
10012
|
+
required: boolean;
|
|
10013
|
+
defaultValue?: string;
|
|
10014
|
+
}>;
|
|
10015
|
+
}): Promise<{
|
|
10016
|
+
agentId: string;
|
|
10017
|
+
displayName: string;
|
|
10018
|
+
}>;
|
|
10019
|
+
}
|
|
8445
10020
|
|
|
8446
10021
|
/**
|
|
8447
10022
|
* Agent type definitions for multi-framework agent configuration system.
|
|
@@ -8517,6 +10092,7 @@ interface LoadAgentOptions {
|
|
|
8517
10092
|
agentId: string;
|
|
8518
10093
|
framework: FrameworkType;
|
|
8519
10094
|
validateOnly?: boolean;
|
|
10095
|
+
agentDir?: string;
|
|
8520
10096
|
}
|
|
8521
10097
|
/**
|
|
8522
10098
|
* Input for RepositoryInit hook (Agentrix custom hook)
|
|
@@ -8792,5 +10368,42 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
|
|
|
8792
10368
|
*/
|
|
8793
10369
|
declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
|
|
8794
10370
|
|
|
8795
|
-
|
|
8796
|
-
|
|
10371
|
+
declare const RTC_CHUNK_HEADER_SIZE = 16;
|
|
10372
|
+
declare const RtcChunkFlags: {
|
|
10373
|
+
readonly Start: 1;
|
|
10374
|
+
readonly End: 2;
|
|
10375
|
+
readonly Binary: 4;
|
|
10376
|
+
readonly Compressed: 8;
|
|
10377
|
+
};
|
|
10378
|
+
interface RtcChunkHeader {
|
|
10379
|
+
streamId: number;
|
|
10380
|
+
seq: number;
|
|
10381
|
+
flags: number;
|
|
10382
|
+
reserved?: number;
|
|
10383
|
+
payloadLength: number;
|
|
10384
|
+
}
|
|
10385
|
+
interface RtcChunkFrame {
|
|
10386
|
+
header: RtcChunkHeader;
|
|
10387
|
+
payload: Uint8Array;
|
|
10388
|
+
}
|
|
10389
|
+
type RtcControlChannel = 'file' | 'shell' | 'control';
|
|
10390
|
+
interface RtcControlMessage<TPayload = unknown> {
|
|
10391
|
+
v: number;
|
|
10392
|
+
type: string;
|
|
10393
|
+
channel: RtcControlChannel;
|
|
10394
|
+
requestId: string;
|
|
10395
|
+
streamId: number;
|
|
10396
|
+
timestamp: string;
|
|
10397
|
+
payload?: TPayload;
|
|
10398
|
+
error?: {
|
|
10399
|
+
code: string;
|
|
10400
|
+
message: string;
|
|
10401
|
+
};
|
|
10402
|
+
}
|
|
10403
|
+
declare function encodeRtcChunkHeader(header: RtcChunkHeader): Uint8Array;
|
|
10404
|
+
declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
10405
|
+
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
10406
|
+
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
10407
|
+
|
|
10408
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentBuilderConfigSchema, AgentBuilderSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentBuilderRequestSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeploymentVariableSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
10409
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentBuilder, AgentBuilderConfig, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentBuilderRequest, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeploymentVariable, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|