@agentrix/shared 1.0.3 → 1.0.5
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 +43 -1
- package/dist/index.d.cts +479 -55
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -263,8 +263,27 @@ const TaskItemSchema = zod.z.object({
|
|
|
263
263
|
updatedAt: zod.z.string()
|
|
264
264
|
// ISO 8601 string
|
|
265
265
|
});
|
|
266
|
+
const ListTasksRequestSchema = zod.z.object({
|
|
267
|
+
chatId: zod.z.string(),
|
|
268
|
+
archived: zod.z.preprocess(
|
|
269
|
+
(val) => {
|
|
270
|
+
if (typeof val === "string") {
|
|
271
|
+
return val === "true";
|
|
272
|
+
}
|
|
273
|
+
return val;
|
|
274
|
+
},
|
|
275
|
+
zod.z.boolean().optional().default(false)
|
|
276
|
+
),
|
|
277
|
+
// true = completed only, false = non-completed
|
|
278
|
+
cursor: zod.z.string().optional(),
|
|
279
|
+
// base64 encoded cursor: "updatedAt:taskId"
|
|
280
|
+
limit: zod.z.coerce.number().min(1).max(100).optional().default(20)
|
|
281
|
+
});
|
|
266
282
|
const ListTasksResponseSchema = zod.z.object({
|
|
267
|
-
tasks: zod.z.array(TaskItemSchema)
|
|
283
|
+
tasks: zod.z.array(TaskItemSchema),
|
|
284
|
+
nextCursor: zod.z.string().nullable(),
|
|
285
|
+
// null if no more results
|
|
286
|
+
hasMore: zod.z.boolean()
|
|
268
287
|
});
|
|
269
288
|
const ResumeTaskRequestSchema = zod.z.object({
|
|
270
289
|
taskId: zod.z.string(),
|
|
@@ -368,6 +387,16 @@ const CreateMergeRequestResponseSchema = zod.z.object({
|
|
|
368
387
|
reason: zod.z.string().optional()
|
|
369
388
|
// failed-reason
|
|
370
389
|
});
|
|
390
|
+
const ArchiveTaskRequestSchema = zod.z.object({});
|
|
391
|
+
const ArchiveTaskResponseSchema = zod.z.object({
|
|
392
|
+
success: zod.z.boolean(),
|
|
393
|
+
task: TaskItemSchema
|
|
394
|
+
});
|
|
395
|
+
const UnarchiveTaskRequestSchema = zod.z.object({});
|
|
396
|
+
const UnarchiveTaskResponseSchema = zod.z.object({
|
|
397
|
+
success: zod.z.boolean(),
|
|
398
|
+
task: TaskItemSchema
|
|
399
|
+
});
|
|
371
400
|
|
|
372
401
|
const ChatMemberSchema = zod.z.object({
|
|
373
402
|
id: IdSchema,
|
|
@@ -1001,6 +1030,12 @@ const ChangeTaskTitleEventSchema = EventBaseSchema.extend({
|
|
|
1001
1030
|
taskId: zod.z.string(),
|
|
1002
1031
|
title: zod.z.string()
|
|
1003
1032
|
});
|
|
1033
|
+
const TaskStateChangeEventSchema = EventBaseSchema.extend({
|
|
1034
|
+
taskId: zod.z.string(),
|
|
1035
|
+
chatId: zod.z.string(),
|
|
1036
|
+
state: zod.z.string(),
|
|
1037
|
+
updatedAt: zod.z.string()
|
|
1038
|
+
});
|
|
1004
1039
|
const CreditExhaustedEventSchema = EventBaseSchema.extend({});
|
|
1005
1040
|
const WorkspaceFileRequestSchema = EventBaseSchema.extend({
|
|
1006
1041
|
taskId: zod.z.string(),
|
|
@@ -1124,6 +1159,7 @@ const EventSchemaMap = {
|
|
|
1124
1159
|
"stop-task": StopTaskSchema,
|
|
1125
1160
|
"task-message": TaskMessageSchema,
|
|
1126
1161
|
"change-task-title": ChangeTaskTitleEventSchema,
|
|
1162
|
+
"task-state-change": TaskStateChangeEventSchema,
|
|
1127
1163
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventSchema,
|
|
1128
1164
|
// Artifacts events
|
|
1129
1165
|
"task-artifacts-updated": TaskArtifactsUpdatedEventSchema,
|
|
@@ -1798,6 +1834,8 @@ exports.ApiErrorSchema = ApiErrorSchema;
|
|
|
1798
1834
|
exports.ApiServerAliveEventSchema = ApiServerAliveEventSchema;
|
|
1799
1835
|
exports.AppAliveEventSchema = AppAliveEventSchema;
|
|
1800
1836
|
exports.ApprovalStatusResponseSchema = ApprovalStatusResponseSchema;
|
|
1837
|
+
exports.ArchiveTaskRequestSchema = ArchiveTaskRequestSchema;
|
|
1838
|
+
exports.ArchiveTaskResponseSchema = ArchiveTaskResponseSchema;
|
|
1801
1839
|
exports.BillingStatsResponseSchema = BillingStatsResponseSchema;
|
|
1802
1840
|
exports.BranchSchema = BranchSchema;
|
|
1803
1841
|
exports.CancelTaskRequestSchema = CancelTaskRequestSchema;
|
|
@@ -1872,6 +1910,7 @@ exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
|
|
|
1872
1910
|
exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
|
|
1873
1911
|
exports.ListPackagesResponseSchema = ListPackagesResponseSchema;
|
|
1874
1912
|
exports.ListRepositoriesResponseSchema = ListRepositoriesResponseSchema;
|
|
1913
|
+
exports.ListTasksRequestSchema = ListTasksRequestSchema;
|
|
1875
1914
|
exports.ListTasksResponseSchema = ListTasksResponseSchema;
|
|
1876
1915
|
exports.ListTransactionsQuerySchema = ListTransactionsQuerySchema;
|
|
1877
1916
|
exports.ListTransactionsResponseSchema = ListTransactionsResponseSchema;
|
|
@@ -1929,10 +1968,13 @@ exports.SystemMessageSchema = SystemMessageSchema;
|
|
|
1929
1968
|
exports.TaskArtifactsUpdatedEventSchema = TaskArtifactsUpdatedEventSchema;
|
|
1930
1969
|
exports.TaskItemSchema = TaskItemSchema;
|
|
1931
1970
|
exports.TaskMessageSchema = TaskMessageSchema;
|
|
1971
|
+
exports.TaskStateChangeEventSchema = TaskStateChangeEventSchema;
|
|
1932
1972
|
exports.TaskTransactionsResponseSchema = TaskTransactionsResponseSchema;
|
|
1933
1973
|
exports.ToggleOAuthServerRequestSchema = ToggleOAuthServerRequestSchema;
|
|
1934
1974
|
exports.ToggleOAuthServerResponseSchema = ToggleOAuthServerResponseSchema;
|
|
1935
1975
|
exports.TransactionSchema = TransactionSchema;
|
|
1976
|
+
exports.UnarchiveTaskRequestSchema = UnarchiveTaskRequestSchema;
|
|
1977
|
+
exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
|
|
1936
1978
|
exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
|
|
1937
1979
|
exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
|
|
1938
1980
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
277
277
|
avatarUrl: string;
|
|
278
278
|
}>, "many">>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
encryptedSecret: string;
|
|
281
280
|
id: string;
|
|
282
281
|
username: string;
|
|
283
282
|
email: string | null;
|
|
284
283
|
avatar: string | null;
|
|
284
|
+
encryptedSecret: string;
|
|
285
285
|
secretSalt: string;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
oauthAccounts?: {
|
|
@@ -291,11 +291,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
291
291
|
avatarUrl: string;
|
|
292
292
|
}[] | undefined;
|
|
293
293
|
}, {
|
|
294
|
-
encryptedSecret: string;
|
|
295
294
|
id: string;
|
|
296
295
|
username: string;
|
|
297
296
|
email: string | null;
|
|
298
297
|
avatar: string | null;
|
|
298
|
+
encryptedSecret: string;
|
|
299
299
|
secretSalt: string;
|
|
300
300
|
createdAt: string;
|
|
301
301
|
oauthAccounts?: {
|
|
@@ -307,11 +307,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
user: {
|
|
310
|
-
encryptedSecret: string;
|
|
311
310
|
id: string;
|
|
312
311
|
username: string;
|
|
313
312
|
email: string | null;
|
|
314
313
|
avatar: string | null;
|
|
314
|
+
encryptedSecret: string;
|
|
315
315
|
secretSalt: string;
|
|
316
316
|
createdAt: string;
|
|
317
317
|
oauthAccounts?: {
|
|
@@ -323,11 +323,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
323
323
|
};
|
|
324
324
|
}, {
|
|
325
325
|
user: {
|
|
326
|
-
encryptedSecret: string;
|
|
327
326
|
id: string;
|
|
328
327
|
username: string;
|
|
329
328
|
email: string | null;
|
|
330
329
|
avatar: string | null;
|
|
330
|
+
encryptedSecret: string;
|
|
331
331
|
secretSalt: string;
|
|
332
332
|
createdAt: string;
|
|
333
333
|
oauthAccounts?: {
|
|
@@ -599,13 +599,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
|
|
|
599
599
|
token: z.ZodString;
|
|
600
600
|
content: z.ZodString;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
token: string;
|
|
603
602
|
id: string;
|
|
603
|
+
token: string;
|
|
604
604
|
state: "authorized";
|
|
605
605
|
content: string;
|
|
606
606
|
}, {
|
|
607
|
-
token: string;
|
|
608
607
|
id: string;
|
|
608
|
+
token: string;
|
|
609
609
|
state: "authorized";
|
|
610
610
|
content: string;
|
|
611
611
|
}>;
|
|
@@ -1008,6 +1008,26 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1008
1008
|
} | null;
|
|
1009
1009
|
}>;
|
|
1010
1010
|
type TaskItem = z.infer<typeof TaskItemSchema>;
|
|
1011
|
+
/**
|
|
1012
|
+
* GET /v1/tasks - Query parameters schema
|
|
1013
|
+
*/
|
|
1014
|
+
declare const ListTasksRequestSchema: z.ZodObject<{
|
|
1015
|
+
chatId: z.ZodString;
|
|
1016
|
+
archived: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, boolean, unknown>;
|
|
1017
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1019
|
+
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
limit: number;
|
|
1021
|
+
chatId: string;
|
|
1022
|
+
archived: boolean;
|
|
1023
|
+
cursor?: string | undefined;
|
|
1024
|
+
}, {
|
|
1025
|
+
chatId: string;
|
|
1026
|
+
limit?: number | undefined;
|
|
1027
|
+
archived?: unknown;
|
|
1028
|
+
cursor?: string | undefined;
|
|
1029
|
+
}>;
|
|
1030
|
+
type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
|
|
1011
1031
|
/**
|
|
1012
1032
|
* GET /v1/tasks - Response schema
|
|
1013
1033
|
*/
|
|
@@ -1124,6 +1144,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1124
1144
|
}[];
|
|
1125
1145
|
} | null;
|
|
1126
1146
|
}>, "many">;
|
|
1147
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1148
|
+
hasMore: z.ZodBoolean;
|
|
1127
1149
|
}, "strip", z.ZodTypeAny, {
|
|
1128
1150
|
tasks: {
|
|
1129
1151
|
id: string;
|
|
@@ -1155,6 +1177,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1155
1177
|
}[];
|
|
1156
1178
|
} | null;
|
|
1157
1179
|
}[];
|
|
1180
|
+
nextCursor: string | null;
|
|
1181
|
+
hasMore: boolean;
|
|
1158
1182
|
}, {
|
|
1159
1183
|
tasks: {
|
|
1160
1184
|
id: string;
|
|
@@ -1186,6 +1210,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1186
1210
|
}[];
|
|
1187
1211
|
} | null;
|
|
1188
1212
|
}[];
|
|
1213
|
+
nextCursor: string | null;
|
|
1214
|
+
hasMore: boolean;
|
|
1189
1215
|
}>;
|
|
1190
1216
|
type ListTasksResponse = z.infer<typeof ListTasksResponseSchema>;
|
|
1191
1217
|
/**
|
|
@@ -1544,6 +1570,382 @@ declare const CreateMergeRequestResponseSchema: z.ZodObject<{
|
|
|
1544
1570
|
reason?: string | undefined;
|
|
1545
1571
|
}>;
|
|
1546
1572
|
type CreateMergeRequestResponse = z.infer<typeof CreateMergeRequestResponseSchema>;
|
|
1573
|
+
/**
|
|
1574
|
+
* POST /v1/tasks/:taskId/archive - Request schema (empty body)
|
|
1575
|
+
*/
|
|
1576
|
+
declare const ArchiveTaskRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1577
|
+
type ArchiveTaskRequest = z.infer<typeof ArchiveTaskRequestSchema>;
|
|
1578
|
+
/**
|
|
1579
|
+
* POST /v1/tasks/:taskId/archive - Response schema
|
|
1580
|
+
*/
|
|
1581
|
+
declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
1582
|
+
success: z.ZodBoolean;
|
|
1583
|
+
task: z.ZodObject<{
|
|
1584
|
+
id: z.ZodString;
|
|
1585
|
+
chatId: z.ZodString;
|
|
1586
|
+
userId: z.ZodString;
|
|
1587
|
+
state: z.ZodString;
|
|
1588
|
+
agentId: z.ZodString;
|
|
1589
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
1590
|
+
cloudId: z.ZodNullable<z.ZodString>;
|
|
1591
|
+
repositoryId: z.ZodNullable<z.ZodString>;
|
|
1592
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
1593
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1596
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1597
|
+
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1598
|
+
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1599
|
+
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
1600
|
+
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
1601
|
+
gitStats: z.ZodNullable<z.ZodObject<{
|
|
1602
|
+
totalInsertions: z.ZodNumber;
|
|
1603
|
+
totalDeletions: z.ZodNumber;
|
|
1604
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1605
|
+
path: z.ZodString;
|
|
1606
|
+
insertions: z.ZodNumber;
|
|
1607
|
+
deletions: z.ZodNumber;
|
|
1608
|
+
}, "strip", z.ZodTypeAny, {
|
|
1609
|
+
path: string;
|
|
1610
|
+
insertions: number;
|
|
1611
|
+
deletions: number;
|
|
1612
|
+
}, {
|
|
1613
|
+
path: string;
|
|
1614
|
+
insertions: number;
|
|
1615
|
+
deletions: number;
|
|
1616
|
+
}>, "many">;
|
|
1617
|
+
}, "strip", z.ZodTypeAny, {
|
|
1618
|
+
totalInsertions: number;
|
|
1619
|
+
totalDeletions: number;
|
|
1620
|
+
files: {
|
|
1621
|
+
path: string;
|
|
1622
|
+
insertions: number;
|
|
1623
|
+
deletions: number;
|
|
1624
|
+
}[];
|
|
1625
|
+
}, {
|
|
1626
|
+
totalInsertions: number;
|
|
1627
|
+
totalDeletions: number;
|
|
1628
|
+
files: {
|
|
1629
|
+
path: string;
|
|
1630
|
+
insertions: number;
|
|
1631
|
+
deletions: number;
|
|
1632
|
+
}[];
|
|
1633
|
+
}>>;
|
|
1634
|
+
createdAt: z.ZodString;
|
|
1635
|
+
updatedAt: z.ZodString;
|
|
1636
|
+
}, "strip", z.ZodTypeAny, {
|
|
1637
|
+
id: string;
|
|
1638
|
+
createdAt: string;
|
|
1639
|
+
state: string;
|
|
1640
|
+
machineId: string | null;
|
|
1641
|
+
cloudId: string | null;
|
|
1642
|
+
userId: string;
|
|
1643
|
+
chatId: string;
|
|
1644
|
+
cwd: string | null;
|
|
1645
|
+
repositoryId: string | null;
|
|
1646
|
+
baseBranch: string | null;
|
|
1647
|
+
dataEncryptionKey: string | null;
|
|
1648
|
+
agentId: string;
|
|
1649
|
+
title: string | null;
|
|
1650
|
+
updatedAt: string;
|
|
1651
|
+
agentSessionId: string | null;
|
|
1652
|
+
pullRequestNumber: number | null;
|
|
1653
|
+
pullRequestUrl: string | null;
|
|
1654
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1655
|
+
pullRequestStateChangedAt: string | null;
|
|
1656
|
+
gitStats: {
|
|
1657
|
+
totalInsertions: number;
|
|
1658
|
+
totalDeletions: number;
|
|
1659
|
+
files: {
|
|
1660
|
+
path: string;
|
|
1661
|
+
insertions: number;
|
|
1662
|
+
deletions: number;
|
|
1663
|
+
}[];
|
|
1664
|
+
} | null;
|
|
1665
|
+
}, {
|
|
1666
|
+
id: string;
|
|
1667
|
+
createdAt: string;
|
|
1668
|
+
state: string;
|
|
1669
|
+
machineId: string | null;
|
|
1670
|
+
cloudId: string | null;
|
|
1671
|
+
userId: string;
|
|
1672
|
+
chatId: string;
|
|
1673
|
+
cwd: string | null;
|
|
1674
|
+
repositoryId: string | null;
|
|
1675
|
+
baseBranch: string | null;
|
|
1676
|
+
dataEncryptionKey: string | null;
|
|
1677
|
+
agentId: string;
|
|
1678
|
+
title: string | null;
|
|
1679
|
+
updatedAt: string;
|
|
1680
|
+
agentSessionId: string | null;
|
|
1681
|
+
pullRequestNumber: number | null;
|
|
1682
|
+
pullRequestUrl: string | null;
|
|
1683
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1684
|
+
pullRequestStateChangedAt: string | null;
|
|
1685
|
+
gitStats: {
|
|
1686
|
+
totalInsertions: number;
|
|
1687
|
+
totalDeletions: number;
|
|
1688
|
+
files: {
|
|
1689
|
+
path: string;
|
|
1690
|
+
insertions: number;
|
|
1691
|
+
deletions: number;
|
|
1692
|
+
}[];
|
|
1693
|
+
} | null;
|
|
1694
|
+
}>;
|
|
1695
|
+
}, "strip", z.ZodTypeAny, {
|
|
1696
|
+
success: boolean;
|
|
1697
|
+
task: {
|
|
1698
|
+
id: string;
|
|
1699
|
+
createdAt: string;
|
|
1700
|
+
state: string;
|
|
1701
|
+
machineId: string | null;
|
|
1702
|
+
cloudId: string | null;
|
|
1703
|
+
userId: string;
|
|
1704
|
+
chatId: string;
|
|
1705
|
+
cwd: string | null;
|
|
1706
|
+
repositoryId: string | null;
|
|
1707
|
+
baseBranch: string | null;
|
|
1708
|
+
dataEncryptionKey: string | null;
|
|
1709
|
+
agentId: string;
|
|
1710
|
+
title: string | null;
|
|
1711
|
+
updatedAt: string;
|
|
1712
|
+
agentSessionId: string | null;
|
|
1713
|
+
pullRequestNumber: number | null;
|
|
1714
|
+
pullRequestUrl: string | null;
|
|
1715
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1716
|
+
pullRequestStateChangedAt: string | null;
|
|
1717
|
+
gitStats: {
|
|
1718
|
+
totalInsertions: number;
|
|
1719
|
+
totalDeletions: number;
|
|
1720
|
+
files: {
|
|
1721
|
+
path: string;
|
|
1722
|
+
insertions: number;
|
|
1723
|
+
deletions: number;
|
|
1724
|
+
}[];
|
|
1725
|
+
} | null;
|
|
1726
|
+
};
|
|
1727
|
+
}, {
|
|
1728
|
+
success: boolean;
|
|
1729
|
+
task: {
|
|
1730
|
+
id: string;
|
|
1731
|
+
createdAt: string;
|
|
1732
|
+
state: string;
|
|
1733
|
+
machineId: string | null;
|
|
1734
|
+
cloudId: string | null;
|
|
1735
|
+
userId: string;
|
|
1736
|
+
chatId: string;
|
|
1737
|
+
cwd: string | null;
|
|
1738
|
+
repositoryId: string | null;
|
|
1739
|
+
baseBranch: string | null;
|
|
1740
|
+
dataEncryptionKey: string | null;
|
|
1741
|
+
agentId: string;
|
|
1742
|
+
title: string | null;
|
|
1743
|
+
updatedAt: string;
|
|
1744
|
+
agentSessionId: string | null;
|
|
1745
|
+
pullRequestNumber: number | null;
|
|
1746
|
+
pullRequestUrl: string | null;
|
|
1747
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1748
|
+
pullRequestStateChangedAt: string | null;
|
|
1749
|
+
gitStats: {
|
|
1750
|
+
totalInsertions: number;
|
|
1751
|
+
totalDeletions: number;
|
|
1752
|
+
files: {
|
|
1753
|
+
path: string;
|
|
1754
|
+
insertions: number;
|
|
1755
|
+
deletions: number;
|
|
1756
|
+
}[];
|
|
1757
|
+
} | null;
|
|
1758
|
+
};
|
|
1759
|
+
}>;
|
|
1760
|
+
type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
|
|
1761
|
+
/**
|
|
1762
|
+
* POST /v1/tasks/:taskId/unarchive - Request schema (empty body)
|
|
1763
|
+
*/
|
|
1764
|
+
declare const UnarchiveTaskRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1765
|
+
type UnarchiveTaskRequest = z.infer<typeof UnarchiveTaskRequestSchema>;
|
|
1766
|
+
/**
|
|
1767
|
+
* POST /v1/tasks/:taskId/unarchive - Response schema
|
|
1768
|
+
*/
|
|
1769
|
+
declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
1770
|
+
success: z.ZodBoolean;
|
|
1771
|
+
task: z.ZodObject<{
|
|
1772
|
+
id: z.ZodString;
|
|
1773
|
+
chatId: z.ZodString;
|
|
1774
|
+
userId: z.ZodString;
|
|
1775
|
+
state: z.ZodString;
|
|
1776
|
+
agentId: z.ZodString;
|
|
1777
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
1778
|
+
cloudId: z.ZodNullable<z.ZodString>;
|
|
1779
|
+
repositoryId: z.ZodNullable<z.ZodString>;
|
|
1780
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
1781
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1782
|
+
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1783
|
+
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1784
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1785
|
+
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1786
|
+
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1787
|
+
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
1788
|
+
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
1789
|
+
gitStats: z.ZodNullable<z.ZodObject<{
|
|
1790
|
+
totalInsertions: z.ZodNumber;
|
|
1791
|
+
totalDeletions: z.ZodNumber;
|
|
1792
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1793
|
+
path: z.ZodString;
|
|
1794
|
+
insertions: z.ZodNumber;
|
|
1795
|
+
deletions: z.ZodNumber;
|
|
1796
|
+
}, "strip", z.ZodTypeAny, {
|
|
1797
|
+
path: string;
|
|
1798
|
+
insertions: number;
|
|
1799
|
+
deletions: number;
|
|
1800
|
+
}, {
|
|
1801
|
+
path: string;
|
|
1802
|
+
insertions: number;
|
|
1803
|
+
deletions: number;
|
|
1804
|
+
}>, "many">;
|
|
1805
|
+
}, "strip", z.ZodTypeAny, {
|
|
1806
|
+
totalInsertions: number;
|
|
1807
|
+
totalDeletions: number;
|
|
1808
|
+
files: {
|
|
1809
|
+
path: string;
|
|
1810
|
+
insertions: number;
|
|
1811
|
+
deletions: number;
|
|
1812
|
+
}[];
|
|
1813
|
+
}, {
|
|
1814
|
+
totalInsertions: number;
|
|
1815
|
+
totalDeletions: number;
|
|
1816
|
+
files: {
|
|
1817
|
+
path: string;
|
|
1818
|
+
insertions: number;
|
|
1819
|
+
deletions: number;
|
|
1820
|
+
}[];
|
|
1821
|
+
}>>;
|
|
1822
|
+
createdAt: z.ZodString;
|
|
1823
|
+
updatedAt: z.ZodString;
|
|
1824
|
+
}, "strip", z.ZodTypeAny, {
|
|
1825
|
+
id: string;
|
|
1826
|
+
createdAt: string;
|
|
1827
|
+
state: string;
|
|
1828
|
+
machineId: string | null;
|
|
1829
|
+
cloudId: string | null;
|
|
1830
|
+
userId: string;
|
|
1831
|
+
chatId: string;
|
|
1832
|
+
cwd: string | null;
|
|
1833
|
+
repositoryId: string | null;
|
|
1834
|
+
baseBranch: string | null;
|
|
1835
|
+
dataEncryptionKey: string | null;
|
|
1836
|
+
agentId: string;
|
|
1837
|
+
title: string | null;
|
|
1838
|
+
updatedAt: string;
|
|
1839
|
+
agentSessionId: string | null;
|
|
1840
|
+
pullRequestNumber: number | null;
|
|
1841
|
+
pullRequestUrl: string | null;
|
|
1842
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1843
|
+
pullRequestStateChangedAt: string | null;
|
|
1844
|
+
gitStats: {
|
|
1845
|
+
totalInsertions: number;
|
|
1846
|
+
totalDeletions: number;
|
|
1847
|
+
files: {
|
|
1848
|
+
path: string;
|
|
1849
|
+
insertions: number;
|
|
1850
|
+
deletions: number;
|
|
1851
|
+
}[];
|
|
1852
|
+
} | null;
|
|
1853
|
+
}, {
|
|
1854
|
+
id: string;
|
|
1855
|
+
createdAt: string;
|
|
1856
|
+
state: string;
|
|
1857
|
+
machineId: string | null;
|
|
1858
|
+
cloudId: string | null;
|
|
1859
|
+
userId: string;
|
|
1860
|
+
chatId: string;
|
|
1861
|
+
cwd: string | null;
|
|
1862
|
+
repositoryId: string | null;
|
|
1863
|
+
baseBranch: string | null;
|
|
1864
|
+
dataEncryptionKey: string | null;
|
|
1865
|
+
agentId: string;
|
|
1866
|
+
title: string | null;
|
|
1867
|
+
updatedAt: string;
|
|
1868
|
+
agentSessionId: string | null;
|
|
1869
|
+
pullRequestNumber: number | null;
|
|
1870
|
+
pullRequestUrl: string | null;
|
|
1871
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1872
|
+
pullRequestStateChangedAt: string | null;
|
|
1873
|
+
gitStats: {
|
|
1874
|
+
totalInsertions: number;
|
|
1875
|
+
totalDeletions: number;
|
|
1876
|
+
files: {
|
|
1877
|
+
path: string;
|
|
1878
|
+
insertions: number;
|
|
1879
|
+
deletions: number;
|
|
1880
|
+
}[];
|
|
1881
|
+
} | null;
|
|
1882
|
+
}>;
|
|
1883
|
+
}, "strip", z.ZodTypeAny, {
|
|
1884
|
+
success: boolean;
|
|
1885
|
+
task: {
|
|
1886
|
+
id: string;
|
|
1887
|
+
createdAt: string;
|
|
1888
|
+
state: string;
|
|
1889
|
+
machineId: string | null;
|
|
1890
|
+
cloudId: string | null;
|
|
1891
|
+
userId: string;
|
|
1892
|
+
chatId: string;
|
|
1893
|
+
cwd: string | null;
|
|
1894
|
+
repositoryId: string | null;
|
|
1895
|
+
baseBranch: string | null;
|
|
1896
|
+
dataEncryptionKey: string | null;
|
|
1897
|
+
agentId: string;
|
|
1898
|
+
title: string | null;
|
|
1899
|
+
updatedAt: string;
|
|
1900
|
+
agentSessionId: string | null;
|
|
1901
|
+
pullRequestNumber: number | null;
|
|
1902
|
+
pullRequestUrl: string | null;
|
|
1903
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1904
|
+
pullRequestStateChangedAt: string | null;
|
|
1905
|
+
gitStats: {
|
|
1906
|
+
totalInsertions: number;
|
|
1907
|
+
totalDeletions: number;
|
|
1908
|
+
files: {
|
|
1909
|
+
path: string;
|
|
1910
|
+
insertions: number;
|
|
1911
|
+
deletions: number;
|
|
1912
|
+
}[];
|
|
1913
|
+
} | null;
|
|
1914
|
+
};
|
|
1915
|
+
}, {
|
|
1916
|
+
success: boolean;
|
|
1917
|
+
task: {
|
|
1918
|
+
id: string;
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
state: string;
|
|
1921
|
+
machineId: string | null;
|
|
1922
|
+
cloudId: string | null;
|
|
1923
|
+
userId: string;
|
|
1924
|
+
chatId: string;
|
|
1925
|
+
cwd: string | null;
|
|
1926
|
+
repositoryId: string | null;
|
|
1927
|
+
baseBranch: string | null;
|
|
1928
|
+
dataEncryptionKey: string | null;
|
|
1929
|
+
agentId: string;
|
|
1930
|
+
title: string | null;
|
|
1931
|
+
updatedAt: string;
|
|
1932
|
+
agentSessionId: string | null;
|
|
1933
|
+
pullRequestNumber: number | null;
|
|
1934
|
+
pullRequestUrl: string | null;
|
|
1935
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
1936
|
+
pullRequestStateChangedAt: string | null;
|
|
1937
|
+
gitStats: {
|
|
1938
|
+
totalInsertions: number;
|
|
1939
|
+
totalDeletions: number;
|
|
1940
|
+
files: {
|
|
1941
|
+
path: string;
|
|
1942
|
+
insertions: number;
|
|
1943
|
+
deletions: number;
|
|
1944
|
+
}[];
|
|
1945
|
+
} | null;
|
|
1946
|
+
};
|
|
1947
|
+
}>;
|
|
1948
|
+
type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
|
|
1547
1949
|
|
|
1548
1950
|
/**
|
|
1549
1951
|
* Chat HTTP request/response schemas
|
|
@@ -2324,9 +2726,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
2324
2726
|
enable: z.ZodBoolean;
|
|
2325
2727
|
}, "strip", z.ZodTypeAny, {
|
|
2326
2728
|
type: "claude" | "codex";
|
|
2327
|
-
signature: string | null;
|
|
2328
2729
|
id: string;
|
|
2329
2730
|
avatar: string | null;
|
|
2731
|
+
signature: string | null;
|
|
2330
2732
|
userId: string;
|
|
2331
2733
|
name: string;
|
|
2332
2734
|
description: string | null;
|
|
@@ -2339,9 +2741,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
2339
2741
|
enable: boolean;
|
|
2340
2742
|
}, {
|
|
2341
2743
|
type: "claude" | "codex";
|
|
2342
|
-
signature: string | null;
|
|
2343
2744
|
id: string;
|
|
2344
2745
|
avatar: string | null;
|
|
2746
|
+
signature: string | null;
|
|
2345
2747
|
userId: string;
|
|
2346
2748
|
name: string;
|
|
2347
2749
|
description: string | null;
|
|
@@ -2375,9 +2777,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2375
2777
|
enable: z.ZodBoolean;
|
|
2376
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2377
2779
|
type: "claude" | "codex";
|
|
2378
|
-
signature: string | null;
|
|
2379
2780
|
id: string;
|
|
2380
2781
|
avatar: string | null;
|
|
2782
|
+
signature: string | null;
|
|
2381
2783
|
userId: string;
|
|
2382
2784
|
name: string;
|
|
2383
2785
|
description: string | null;
|
|
@@ -2390,9 +2792,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2390
2792
|
enable: boolean;
|
|
2391
2793
|
}, {
|
|
2392
2794
|
type: "claude" | "codex";
|
|
2393
|
-
signature: string | null;
|
|
2394
2795
|
id: string;
|
|
2395
2796
|
avatar: string | null;
|
|
2797
|
+
signature: string | null;
|
|
2396
2798
|
userId: string;
|
|
2397
2799
|
name: string;
|
|
2398
2800
|
description: string | null;
|
|
@@ -2407,9 +2809,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2407
2809
|
}, "strip", z.ZodTypeAny, {
|
|
2408
2810
|
agents: {
|
|
2409
2811
|
type: "claude" | "codex";
|
|
2410
|
-
signature: string | null;
|
|
2411
2812
|
id: string;
|
|
2412
2813
|
avatar: string | null;
|
|
2814
|
+
signature: string | null;
|
|
2413
2815
|
userId: string;
|
|
2414
2816
|
name: string;
|
|
2415
2817
|
description: string | null;
|
|
@@ -2424,9 +2826,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2424
2826
|
}, {
|
|
2425
2827
|
agents: {
|
|
2426
2828
|
type: "claude" | "codex";
|
|
2427
|
-
signature: string | null;
|
|
2428
2829
|
id: string;
|
|
2429
2830
|
avatar: string | null;
|
|
2831
|
+
signature: string | null;
|
|
2430
2832
|
userId: string;
|
|
2431
2833
|
name: string;
|
|
2432
2834
|
description: string | null;
|
|
@@ -2460,9 +2862,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
2460
2862
|
enable: z.ZodBoolean;
|
|
2461
2863
|
}, "strip", z.ZodTypeAny, {
|
|
2462
2864
|
type: "claude" | "codex";
|
|
2463
|
-
signature: string | null;
|
|
2464
2865
|
id: string;
|
|
2465
2866
|
avatar: string | null;
|
|
2867
|
+
signature: string | null;
|
|
2466
2868
|
userId: string;
|
|
2467
2869
|
name: string;
|
|
2468
2870
|
description: string | null;
|
|
@@ -2475,9 +2877,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
2475
2877
|
enable: boolean;
|
|
2476
2878
|
}, {
|
|
2477
2879
|
type: "claude" | "codex";
|
|
2478
|
-
signature: string | null;
|
|
2479
2880
|
id: string;
|
|
2480
2881
|
avatar: string | null;
|
|
2882
|
+
signature: string | null;
|
|
2481
2883
|
userId: string;
|
|
2482
2884
|
name: string;
|
|
2483
2885
|
description: string | null;
|
|
@@ -2509,15 +2911,15 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
2509
2911
|
guildMsg: string;
|
|
2510
2912
|
placeholderMsg: string;
|
|
2511
2913
|
supportLocal: boolean;
|
|
2512
|
-
signature?: string | undefined;
|
|
2513
2914
|
avatar?: string | undefined;
|
|
2915
|
+
signature?: string | undefined;
|
|
2514
2916
|
description?: string | undefined;
|
|
2515
2917
|
gitRepoId?: string | undefined;
|
|
2516
2918
|
}, {
|
|
2517
2919
|
type: "claude" | "codex";
|
|
2518
2920
|
name: string;
|
|
2519
|
-
signature?: string | undefined;
|
|
2520
2921
|
avatar?: string | undefined;
|
|
2922
|
+
signature?: string | undefined;
|
|
2521
2923
|
description?: string | undefined;
|
|
2522
2924
|
guildMsg?: string | undefined;
|
|
2523
2925
|
placeholderMsg?: string | undefined;
|
|
@@ -2545,9 +2947,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
2545
2947
|
enable: z.ZodBoolean;
|
|
2546
2948
|
}, "strip", z.ZodTypeAny, {
|
|
2547
2949
|
type: "claude" | "codex";
|
|
2548
|
-
signature: string | null;
|
|
2549
2950
|
id: string;
|
|
2550
2951
|
avatar: string | null;
|
|
2952
|
+
signature: string | null;
|
|
2551
2953
|
userId: string;
|
|
2552
2954
|
name: string;
|
|
2553
2955
|
description: string | null;
|
|
@@ -2560,9 +2962,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
2560
2962
|
enable: boolean;
|
|
2561
2963
|
}, {
|
|
2562
2964
|
type: "claude" | "codex";
|
|
2563
|
-
signature: string | null;
|
|
2564
2965
|
id: string;
|
|
2565
2966
|
avatar: string | null;
|
|
2967
|
+
signature: string | null;
|
|
2566
2968
|
userId: string;
|
|
2567
2969
|
name: string;
|
|
2568
2970
|
description: string | null;
|
|
@@ -2590,8 +2992,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
2590
2992
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
2591
2993
|
}, "strip", z.ZodTypeAny, {
|
|
2592
2994
|
type?: "claude" | "codex" | undefined;
|
|
2593
|
-
signature?: string | null | undefined;
|
|
2594
2995
|
avatar?: string | null | undefined;
|
|
2996
|
+
signature?: string | null | undefined;
|
|
2595
2997
|
name?: string | undefined;
|
|
2596
2998
|
description?: string | null | undefined;
|
|
2597
2999
|
guildMsg?: string | undefined;
|
|
@@ -2600,8 +3002,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
2600
3002
|
supportLocal?: boolean | undefined;
|
|
2601
3003
|
}, {
|
|
2602
3004
|
type?: "claude" | "codex" | undefined;
|
|
2603
|
-
signature?: string | null | undefined;
|
|
2604
3005
|
avatar?: string | null | undefined;
|
|
3006
|
+
signature?: string | null | undefined;
|
|
2605
3007
|
name?: string | undefined;
|
|
2606
3008
|
description?: string | null | undefined;
|
|
2607
3009
|
guildMsg?: string | undefined;
|
|
@@ -2630,9 +3032,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
2630
3032
|
enable: z.ZodBoolean;
|
|
2631
3033
|
}, "strip", z.ZodTypeAny, {
|
|
2632
3034
|
type: "claude" | "codex";
|
|
2633
|
-
signature: string | null;
|
|
2634
3035
|
id: string;
|
|
2635
3036
|
avatar: string | null;
|
|
3037
|
+
signature: string | null;
|
|
2636
3038
|
userId: string;
|
|
2637
3039
|
name: string;
|
|
2638
3040
|
description: string | null;
|
|
@@ -2645,9 +3047,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
2645
3047
|
enable: boolean;
|
|
2646
3048
|
}, {
|
|
2647
3049
|
type: "claude" | "codex";
|
|
2648
|
-
signature: string | null;
|
|
2649
3050
|
id: string;
|
|
2650
3051
|
avatar: string | null;
|
|
3052
|
+
signature: string | null;
|
|
2651
3053
|
userId: string;
|
|
2652
3054
|
name: string;
|
|
2653
3055
|
description: string | null;
|
|
@@ -3299,10 +3701,10 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
3299
3701
|
name: string;
|
|
3300
3702
|
description: string | null;
|
|
3301
3703
|
owner: string;
|
|
3704
|
+
url: string;
|
|
3302
3705
|
fullName: string;
|
|
3303
3706
|
defaultBranch: string;
|
|
3304
3707
|
isPrivate: boolean;
|
|
3305
|
-
url: string;
|
|
3306
3708
|
gitServerId: string;
|
|
3307
3709
|
}, {
|
|
3308
3710
|
id: string;
|
|
@@ -3311,10 +3713,10 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
3311
3713
|
name: string;
|
|
3312
3714
|
description: string | null;
|
|
3313
3715
|
owner: string;
|
|
3716
|
+
url: string;
|
|
3314
3717
|
fullName: string;
|
|
3315
3718
|
defaultBranch: string;
|
|
3316
3719
|
isPrivate: boolean;
|
|
3317
|
-
url: string;
|
|
3318
3720
|
gitServerId: string;
|
|
3319
3721
|
}>;
|
|
3320
3722
|
type Repository = z.infer<typeof RepositorySchema>;
|
|
@@ -3341,10 +3743,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3341
3743
|
name: string;
|
|
3342
3744
|
description: string | null;
|
|
3343
3745
|
owner: string;
|
|
3746
|
+
url: string;
|
|
3344
3747
|
fullName: string;
|
|
3345
3748
|
defaultBranch: string;
|
|
3346
3749
|
isPrivate: boolean;
|
|
3347
|
-
url: string;
|
|
3348
3750
|
gitServerId: string;
|
|
3349
3751
|
}, {
|
|
3350
3752
|
id: string;
|
|
@@ -3353,10 +3755,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3353
3755
|
name: string;
|
|
3354
3756
|
description: string | null;
|
|
3355
3757
|
owner: string;
|
|
3758
|
+
url: string;
|
|
3356
3759
|
fullName: string;
|
|
3357
3760
|
defaultBranch: string;
|
|
3358
3761
|
isPrivate: boolean;
|
|
3359
|
-
url: string;
|
|
3360
3762
|
gitServerId: string;
|
|
3361
3763
|
}>, "many">;
|
|
3362
3764
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3367,10 +3769,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3367
3769
|
name: string;
|
|
3368
3770
|
description: string | null;
|
|
3369
3771
|
owner: string;
|
|
3772
|
+
url: string;
|
|
3370
3773
|
fullName: string;
|
|
3371
3774
|
defaultBranch: string;
|
|
3372
3775
|
isPrivate: boolean;
|
|
3373
|
-
url: string;
|
|
3374
3776
|
gitServerId: string;
|
|
3375
3777
|
}[];
|
|
3376
3778
|
}, {
|
|
@@ -3381,10 +3783,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3381
3783
|
name: string;
|
|
3382
3784
|
description: string | null;
|
|
3383
3785
|
owner: string;
|
|
3786
|
+
url: string;
|
|
3384
3787
|
fullName: string;
|
|
3385
3788
|
defaultBranch: string;
|
|
3386
3789
|
isPrivate: boolean;
|
|
3387
|
-
url: string;
|
|
3388
3790
|
gitServerId: string;
|
|
3389
3791
|
}[];
|
|
3390
3792
|
}>;
|
|
@@ -3412,10 +3814,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3412
3814
|
name: string;
|
|
3413
3815
|
description: string | null;
|
|
3414
3816
|
owner: string;
|
|
3817
|
+
url: string;
|
|
3415
3818
|
fullName: string;
|
|
3416
3819
|
defaultBranch: string;
|
|
3417
3820
|
isPrivate: boolean;
|
|
3418
|
-
url: string;
|
|
3419
3821
|
gitServerId: string;
|
|
3420
3822
|
}, {
|
|
3421
3823
|
id: string;
|
|
@@ -3424,10 +3826,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3424
3826
|
name: string;
|
|
3425
3827
|
description: string | null;
|
|
3426
3828
|
owner: string;
|
|
3829
|
+
url: string;
|
|
3427
3830
|
fullName: string;
|
|
3428
3831
|
defaultBranch: string;
|
|
3429
3832
|
isPrivate: boolean;
|
|
3430
|
-
url: string;
|
|
3431
3833
|
gitServerId: string;
|
|
3432
3834
|
}>;
|
|
3433
3835
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3438,10 +3840,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3438
3840
|
name: string;
|
|
3439
3841
|
description: string | null;
|
|
3440
3842
|
owner: string;
|
|
3843
|
+
url: string;
|
|
3441
3844
|
fullName: string;
|
|
3442
3845
|
defaultBranch: string;
|
|
3443
3846
|
isPrivate: boolean;
|
|
3444
|
-
url: string;
|
|
3445
3847
|
gitServerId: string;
|
|
3446
3848
|
};
|
|
3447
3849
|
}, {
|
|
@@ -3452,10 +3854,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3452
3854
|
name: string;
|
|
3453
3855
|
description: string | null;
|
|
3454
3856
|
owner: string;
|
|
3857
|
+
url: string;
|
|
3455
3858
|
fullName: string;
|
|
3456
3859
|
defaultBranch: string;
|
|
3457
3860
|
isPrivate: boolean;
|
|
3458
|
-
url: string;
|
|
3459
3861
|
gitServerId: string;
|
|
3460
3862
|
};
|
|
3461
3863
|
}>;
|
|
@@ -3768,8 +4170,8 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
3768
4170
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
3769
4171
|
}, "strip", z.ZodTypeAny, {
|
|
3770
4172
|
id: string;
|
|
3771
|
-
createdAt: string;
|
|
3772
4173
|
provider: string;
|
|
4174
|
+
createdAt: string;
|
|
3773
4175
|
updatedAt: string;
|
|
3774
4176
|
displayName: string;
|
|
3775
4177
|
authorizeUrl: string;
|
|
@@ -3784,8 +4186,8 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
3784
4186
|
avatar?: string | undefined;
|
|
3785
4187
|
}, {
|
|
3786
4188
|
id: string;
|
|
3787
|
-
createdAt: string | Date;
|
|
3788
4189
|
provider: string;
|
|
4190
|
+
createdAt: string | Date;
|
|
3789
4191
|
updatedAt: string | Date;
|
|
3790
4192
|
displayName: string;
|
|
3791
4193
|
authorizeUrl: string;
|
|
@@ -3814,16 +4216,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
|
|
|
3814
4216
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
3815
4217
|
}, "strip", z.ZodTypeAny, {
|
|
3816
4218
|
id: string;
|
|
3817
|
-
createdAt: string;
|
|
3818
4219
|
provider: string;
|
|
4220
|
+
createdAt: string;
|
|
3819
4221
|
updatedAt: string;
|
|
3820
4222
|
displayName: string;
|
|
3821
4223
|
enabled: boolean;
|
|
3822
4224
|
avatar?: string | undefined;
|
|
3823
4225
|
}, {
|
|
3824
4226
|
id: string;
|
|
3825
|
-
createdAt: string | Date;
|
|
3826
4227
|
provider: string;
|
|
4228
|
+
createdAt: string | Date;
|
|
3827
4229
|
updatedAt: string | Date;
|
|
3828
4230
|
displayName: string;
|
|
3829
4231
|
enabled: boolean;
|
|
@@ -3889,8 +4291,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3889
4291
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
3890
4292
|
}, "strip", z.ZodTypeAny, {
|
|
3891
4293
|
id: string;
|
|
3892
|
-
createdAt: string;
|
|
3893
4294
|
provider: string;
|
|
4295
|
+
createdAt: string;
|
|
3894
4296
|
updatedAt: string;
|
|
3895
4297
|
displayName: string;
|
|
3896
4298
|
authorizeUrl: string;
|
|
@@ -3905,8 +4307,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3905
4307
|
avatar?: string | undefined;
|
|
3906
4308
|
}, {
|
|
3907
4309
|
id: string;
|
|
3908
|
-
createdAt: string | Date;
|
|
3909
4310
|
provider: string;
|
|
4311
|
+
createdAt: string | Date;
|
|
3910
4312
|
updatedAt: string | Date;
|
|
3911
4313
|
displayName: string;
|
|
3912
4314
|
authorizeUrl: string;
|
|
@@ -3950,8 +4352,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
3950
4352
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
3951
4353
|
}, "strip", z.ZodTypeAny, {
|
|
3952
4354
|
id: string;
|
|
3953
|
-
createdAt: string;
|
|
3954
4355
|
provider: string;
|
|
4356
|
+
createdAt: string;
|
|
3955
4357
|
updatedAt: string;
|
|
3956
4358
|
displayName: string;
|
|
3957
4359
|
authorizeUrl: string;
|
|
@@ -3966,8 +4368,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
3966
4368
|
avatar?: string | undefined;
|
|
3967
4369
|
}, {
|
|
3968
4370
|
id: string;
|
|
3969
|
-
createdAt: string | Date;
|
|
3970
4371
|
provider: string;
|
|
4372
|
+
createdAt: string | Date;
|
|
3971
4373
|
updatedAt: string | Date;
|
|
3972
4374
|
displayName: string;
|
|
3973
4375
|
authorizeUrl: string;
|
|
@@ -4003,8 +4405,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4003
4405
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4004
4406
|
}, "strip", z.ZodTypeAny, {
|
|
4005
4407
|
id: string;
|
|
4006
|
-
createdAt: string;
|
|
4007
4408
|
provider: string;
|
|
4409
|
+
createdAt: string;
|
|
4008
4410
|
updatedAt: string;
|
|
4009
4411
|
displayName: string;
|
|
4010
4412
|
authorizeUrl: string;
|
|
@@ -4019,8 +4421,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4019
4421
|
avatar?: string | undefined;
|
|
4020
4422
|
}, {
|
|
4021
4423
|
id: string;
|
|
4022
|
-
createdAt: string | Date;
|
|
4023
4424
|
provider: string;
|
|
4425
|
+
createdAt: string | Date;
|
|
4024
4426
|
updatedAt: string | Date;
|
|
4025
4427
|
displayName: string;
|
|
4026
4428
|
authorizeUrl: string;
|
|
@@ -4094,8 +4496,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4094
4496
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4095
4497
|
}, "strip", z.ZodTypeAny, {
|
|
4096
4498
|
id: string;
|
|
4097
|
-
createdAt: string;
|
|
4098
4499
|
provider: string;
|
|
4500
|
+
createdAt: string;
|
|
4099
4501
|
updatedAt: string;
|
|
4100
4502
|
displayName: string;
|
|
4101
4503
|
authorizeUrl: string;
|
|
@@ -4110,8 +4512,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4110
4512
|
avatar?: string | undefined;
|
|
4111
4513
|
}, {
|
|
4112
4514
|
id: string;
|
|
4113
|
-
createdAt: string | Date;
|
|
4114
4515
|
provider: string;
|
|
4516
|
+
createdAt: string | Date;
|
|
4115
4517
|
updatedAt: string | Date;
|
|
4116
4518
|
displayName: string;
|
|
4117
4519
|
authorizeUrl: string;
|
|
@@ -4166,8 +4568,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4166
4568
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4167
4569
|
}, "strip", z.ZodTypeAny, {
|
|
4168
4570
|
id: string;
|
|
4169
|
-
createdAt: string;
|
|
4170
4571
|
provider: string;
|
|
4572
|
+
createdAt: string;
|
|
4171
4573
|
updatedAt: string;
|
|
4172
4574
|
displayName: string;
|
|
4173
4575
|
authorizeUrl: string;
|
|
@@ -4182,8 +4584,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4182
4584
|
avatar?: string | undefined;
|
|
4183
4585
|
}, {
|
|
4184
4586
|
id: string;
|
|
4185
|
-
createdAt: string | Date;
|
|
4186
4587
|
provider: string;
|
|
4588
|
+
createdAt: string | Date;
|
|
4187
4589
|
updatedAt: string | Date;
|
|
4188
4590
|
displayName: string;
|
|
4189
4591
|
authorizeUrl: string;
|
|
@@ -4211,16 +4613,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
4211
4613
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4212
4614
|
}, "strip", z.ZodTypeAny, {
|
|
4213
4615
|
id: string;
|
|
4214
|
-
createdAt: string;
|
|
4215
4616
|
provider: string;
|
|
4617
|
+
createdAt: string;
|
|
4216
4618
|
updatedAt: string;
|
|
4217
4619
|
displayName: string;
|
|
4218
4620
|
enabled: boolean;
|
|
4219
4621
|
avatar?: string | undefined;
|
|
4220
4622
|
}, {
|
|
4221
4623
|
id: string;
|
|
4222
|
-
createdAt: string | Date;
|
|
4223
4624
|
provider: string;
|
|
4625
|
+
createdAt: string | Date;
|
|
4224
4626
|
updatedAt: string | Date;
|
|
4225
4627
|
displayName: string;
|
|
4226
4628
|
enabled: boolean;
|
|
@@ -5555,6 +5957,27 @@ declare const ChangeTaskTitleEventSchema: z.ZodObject<{
|
|
|
5555
5957
|
eventId: string;
|
|
5556
5958
|
}>;
|
|
5557
5959
|
type ChangeTaskTitleEventData = z.infer<typeof ChangeTaskTitleEventSchema>;
|
|
5960
|
+
declare const TaskStateChangeEventSchema: z.ZodObject<{
|
|
5961
|
+
eventId: z.ZodString;
|
|
5962
|
+
} & {
|
|
5963
|
+
taskId: z.ZodString;
|
|
5964
|
+
chatId: z.ZodString;
|
|
5965
|
+
state: z.ZodString;
|
|
5966
|
+
updatedAt: z.ZodString;
|
|
5967
|
+
}, "strip", z.ZodTypeAny, {
|
|
5968
|
+
state: string;
|
|
5969
|
+
chatId: string;
|
|
5970
|
+
taskId: string;
|
|
5971
|
+
updatedAt: string;
|
|
5972
|
+
eventId: string;
|
|
5973
|
+
}, {
|
|
5974
|
+
state: string;
|
|
5975
|
+
chatId: string;
|
|
5976
|
+
taskId: string;
|
|
5977
|
+
updatedAt: string;
|
|
5978
|
+
eventId: string;
|
|
5979
|
+
}>;
|
|
5980
|
+
type TaskStateChangeEventData = z.infer<typeof TaskStateChangeEventSchema>;
|
|
5558
5981
|
declare const CreditExhaustedEventSchema: z.ZodObject<{
|
|
5559
5982
|
eventId: z.ZodString;
|
|
5560
5983
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5891,10 +6314,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5891
6314
|
name: string;
|
|
5892
6315
|
description: string | null;
|
|
5893
6316
|
owner: string;
|
|
6317
|
+
url: string;
|
|
5894
6318
|
fullName: string;
|
|
5895
6319
|
defaultBranch: string;
|
|
5896
6320
|
isPrivate: boolean;
|
|
5897
|
-
url: string;
|
|
5898
6321
|
gitServerId: string;
|
|
5899
6322
|
}, {
|
|
5900
6323
|
id: string;
|
|
@@ -5903,10 +6326,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5903
6326
|
name: string;
|
|
5904
6327
|
description: string | null;
|
|
5905
6328
|
owner: string;
|
|
6329
|
+
url: string;
|
|
5906
6330
|
fullName: string;
|
|
5907
6331
|
defaultBranch: string;
|
|
5908
6332
|
isPrivate: boolean;
|
|
5909
|
-
url: string;
|
|
5910
6333
|
gitServerId: string;
|
|
5911
6334
|
}>, z.ZodObject<{
|
|
5912
6335
|
taskId: z.ZodString;
|
|
@@ -5954,10 +6377,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5954
6377
|
name: string;
|
|
5955
6378
|
description: string | null;
|
|
5956
6379
|
owner: string;
|
|
6380
|
+
url: string;
|
|
5957
6381
|
fullName: string;
|
|
5958
6382
|
defaultBranch: string;
|
|
5959
6383
|
isPrivate: boolean;
|
|
5960
|
-
url: string;
|
|
5961
6384
|
gitServerId: string;
|
|
5962
6385
|
} | {
|
|
5963
6386
|
id: string;
|
|
@@ -5996,10 +6419,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5996
6419
|
name: string;
|
|
5997
6420
|
description: string | null;
|
|
5998
6421
|
owner: string;
|
|
6422
|
+
url: string;
|
|
5999
6423
|
fullName: string;
|
|
6000
6424
|
defaultBranch: string;
|
|
6001
6425
|
isPrivate: boolean;
|
|
6002
|
-
url: string;
|
|
6003
6426
|
gitServerId: string;
|
|
6004
6427
|
} | {
|
|
6005
6428
|
id: string;
|
|
@@ -6017,7 +6440,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
6017
6440
|
timestamp: string;
|
|
6018
6441
|
}>;
|
|
6019
6442
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
6020
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | RequirePermissionData | RequirePermissionResponseData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
6443
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | RequirePermissionData | RequirePermissionResponseData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
6021
6444
|
type EventMap = {
|
|
6022
6445
|
"app-alive": AppAliveEventData;
|
|
6023
6446
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -6033,6 +6456,7 @@ type EventMap = {
|
|
|
6033
6456
|
"stop-task": StopTaskEventData;
|
|
6034
6457
|
"task-message": TaskMessageEventData;
|
|
6035
6458
|
"change-task-title": ChangeTaskTitleEventData;
|
|
6459
|
+
"task-state-change": TaskStateChangeEventData;
|
|
6036
6460
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
|
|
6037
6461
|
"task-artifacts-updated": TaskArtifactsUpdatedEventData;
|
|
6038
6462
|
"require-permission": RequirePermissionData;
|
|
@@ -6508,5 +6932,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
|
|
|
6508
6932
|
*/
|
|
6509
6933
|
declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
|
|
6510
6934
|
|
|
6511
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
6512
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|
|
6935
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
6936
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ArchiveTaskRequest, ArchiveTaskResponse, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|