@agentrix/shared 1.0.1 → 1.0.3
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 +41 -5
- package/dist/index.d.cts +217 -26
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -245,6 +245,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
245
245
|
// Task title (can be set by worker)
|
|
246
246
|
agentSessionId: zod.z.string().nullable(),
|
|
247
247
|
dataEncryptionKey: zod.z.string().nullable(),
|
|
248
|
+
cwd: zod.z.string().nullable(),
|
|
249
|
+
// Current working directory from CLI worker
|
|
248
250
|
pullRequestNumber: zod.z.number().nullable(),
|
|
249
251
|
pullRequestUrl: zod.z.string().nullable(),
|
|
250
252
|
pullRequestState: zod.z.enum(["open", "closed", "merged"]).nullable(),
|
|
@@ -480,6 +482,8 @@ const LocalMachineSchema = zod.z.object({
|
|
|
480
482
|
approval: zod.z.string(),
|
|
481
483
|
dataEncryptionKey: zod.z.string(),
|
|
482
484
|
// per-user sealed-box key (base64)
|
|
485
|
+
controlPort: zod.z.number().nullable(),
|
|
486
|
+
// CLI control server port for browser detection
|
|
483
487
|
createdAt: zod.z.string(),
|
|
484
488
|
// ISO 8601 string
|
|
485
489
|
updatedAt: zod.z.string()
|
|
@@ -588,7 +592,9 @@ const RepositorySchema = zod.z.object({
|
|
|
588
592
|
description: zod.z.string().nullable(),
|
|
589
593
|
url: zod.z.string().url(),
|
|
590
594
|
createdAt: DateSchema,
|
|
591
|
-
updatedAt: DateSchema
|
|
595
|
+
updatedAt: DateSchema,
|
|
596
|
+
gitServerId: zod.z.string()
|
|
597
|
+
// Git server ID (github, gitlab, etc.)
|
|
592
598
|
});
|
|
593
599
|
const ListRepositoriesResponseSchema = zod.z.object({
|
|
594
600
|
repositories: zod.z.array(RepositorySchema)
|
|
@@ -666,6 +672,7 @@ const OAuthServerSchema = zod.z.object({
|
|
|
666
672
|
id: IdSchema,
|
|
667
673
|
provider: zod.z.string(),
|
|
668
674
|
displayName: zod.z.string(),
|
|
675
|
+
avatar: zod.z.string().optional(),
|
|
669
676
|
authorizeUrl: zod.z.string().url(),
|
|
670
677
|
tokenUrl: zod.z.string().url(),
|
|
671
678
|
userInfoUrl: zod.z.string().url(),
|
|
@@ -678,12 +685,19 @@ const OAuthServerSchema = zod.z.object({
|
|
|
678
685
|
createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
|
|
679
686
|
updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
|
|
680
687
|
});
|
|
681
|
-
const OAuthServerPublicSchema =
|
|
682
|
-
|
|
688
|
+
const OAuthServerPublicSchema = zod.z.object({
|
|
689
|
+
id: IdSchema,
|
|
690
|
+
provider: zod.z.string(),
|
|
691
|
+
displayName: zod.z.string(),
|
|
692
|
+
avatar: zod.z.string().optional(),
|
|
693
|
+
enabled: zod.z.boolean(),
|
|
694
|
+
createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
|
|
695
|
+
updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
|
|
683
696
|
});
|
|
684
697
|
const CreateOAuthServerRequestSchema = zod.z.object({
|
|
685
698
|
provider: zod.z.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
686
699
|
displayName: zod.z.string().min(1),
|
|
700
|
+
avatar: zod.z.string().optional(),
|
|
687
701
|
authorizeUrl: zod.z.string().url(),
|
|
688
702
|
tokenUrl: zod.z.string().url(),
|
|
689
703
|
userInfoUrl: zod.z.string().url(),
|
|
@@ -708,6 +722,7 @@ const ToggleOAuthServerRequestSchema = zod.z.object({
|
|
|
708
722
|
enabled: zod.z.boolean()
|
|
709
723
|
});
|
|
710
724
|
const ToggleOAuthServerResponseSchema = OAuthServerSchema;
|
|
725
|
+
const ListOAuthServersPublicResponseSchema = zod.z.array(OAuthServerPublicSchema);
|
|
711
726
|
|
|
712
727
|
const RechargeResponseSchema = zod.z.object({
|
|
713
728
|
success: zod.z.literal(true),
|
|
@@ -801,6 +816,21 @@ const BillingStatsResponseSchema = zod.z.object({
|
|
|
801
816
|
transactionCount: zod.z.number().int().nonnegative()
|
|
802
817
|
});
|
|
803
818
|
|
|
819
|
+
const GitServerSchema = zod.z.object({
|
|
820
|
+
id: IdSchema,
|
|
821
|
+
// id = slug (e.g., "github", "gitlab")
|
|
822
|
+
type: zod.z.string(),
|
|
823
|
+
name: zod.z.string(),
|
|
824
|
+
baseUrl: zod.z.string().url(),
|
|
825
|
+
apiUrl: zod.z.string().url(),
|
|
826
|
+
oauthServerId: zod.z.string().nullable(),
|
|
827
|
+
enabled: zod.z.boolean(),
|
|
828
|
+
createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
|
|
829
|
+
updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
|
|
830
|
+
});
|
|
831
|
+
const ListGitServersResponseSchema = zod.z.array(GitServerSchema);
|
|
832
|
+
const GetGitServerResponseSchema = GitServerSchema;
|
|
833
|
+
|
|
804
834
|
const EventBaseSchema = zod.z.object({
|
|
805
835
|
eventId: zod.z.string()
|
|
806
836
|
});
|
|
@@ -821,7 +851,8 @@ const ApiServerAliveEventSchema = EventBaseSchema.extend({
|
|
|
821
851
|
});
|
|
822
852
|
const MachineAliveEventSchema = EventBaseSchema.extend({
|
|
823
853
|
machineId: zod.z.string(),
|
|
824
|
-
timestamp: zod.z.string()
|
|
854
|
+
timestamp: zod.z.string(),
|
|
855
|
+
controlPort: zod.z.number().optional()
|
|
825
856
|
});
|
|
826
857
|
const ShutdownMachineSchema = EventBaseSchema.extend({
|
|
827
858
|
machineId: zod.z.string(),
|
|
@@ -1026,7 +1057,8 @@ const WorkspaceFileResponseSchema = EventBaseSchema.extend({
|
|
|
1026
1057
|
});
|
|
1027
1058
|
const UpdateTaskAgentSessionIdEventSchema = EventBaseSchema.extend({
|
|
1028
1059
|
taskId: zod.z.string(),
|
|
1029
|
-
agentSessionId: zod.z.string()
|
|
1060
|
+
agentSessionId: zod.z.string(),
|
|
1061
|
+
cwd: zod.z.string().optional()
|
|
1030
1062
|
});
|
|
1031
1063
|
const MergeRequestEventSchema = EventBaseSchema.extend({
|
|
1032
1064
|
taskId: zod.z.string(),
|
|
@@ -1811,6 +1843,7 @@ exports.FileVisibilitySchema = FileVisibilitySchema;
|
|
|
1811
1843
|
exports.FrameworkNotSupportedError = FrameworkNotSupportedError;
|
|
1812
1844
|
exports.GetAgentResponseSchema = GetAgentResponseSchema;
|
|
1813
1845
|
exports.GetChatResponseSchema = GetChatResponseSchema;
|
|
1846
|
+
exports.GetGitServerResponseSchema = GetGitServerResponseSchema;
|
|
1814
1847
|
exports.GetGitUrlQuerySchema = GetGitUrlQuerySchema;
|
|
1815
1848
|
exports.GetGitUrlResponseSchema = GetGitUrlResponseSchema;
|
|
1816
1849
|
exports.GetInstallUrlResponseSchema = GetInstallUrlResponseSchema;
|
|
@@ -1820,6 +1853,7 @@ exports.GetUploadUrlsRequestSchema = GetUploadUrlsRequestSchema;
|
|
|
1820
1853
|
exports.GetUploadUrlsResponseSchema = GetUploadUrlsResponseSchema;
|
|
1821
1854
|
exports.GitHubIssueListItemSchema = GitHubIssueListItemSchema;
|
|
1822
1855
|
exports.GitHubIssueSchema = GitHubIssueSchema;
|
|
1856
|
+
exports.GitServerSchema = GitServerSchema;
|
|
1823
1857
|
exports.IdSchema = IdSchema;
|
|
1824
1858
|
exports.ListAgentsResponseSchema = ListAgentsResponseSchema;
|
|
1825
1859
|
exports.ListBranchesResponseSchema = ListBranchesResponseSchema;
|
|
@@ -1828,9 +1862,11 @@ exports.ListChatTasksResponseSchema = ListChatTasksResponseSchema;
|
|
|
1828
1862
|
exports.ListChatsResponseSchema = ListChatsResponseSchema;
|
|
1829
1863
|
exports.ListFilesQuerySchema = ListFilesQuerySchema;
|
|
1830
1864
|
exports.ListFilesResponseSchema = ListFilesResponseSchema;
|
|
1865
|
+
exports.ListGitServersResponseSchema = ListGitServersResponseSchema;
|
|
1831
1866
|
exports.ListIssuesQuerySchema = ListIssuesQuerySchema;
|
|
1832
1867
|
exports.ListIssuesResponseSchema = ListIssuesResponseSchema;
|
|
1833
1868
|
exports.ListMachinesResponseSchema = ListMachinesResponseSchema;
|
|
1869
|
+
exports.ListOAuthServersPublicResponseSchema = ListOAuthServersPublicResponseSchema;
|
|
1834
1870
|
exports.ListOAuthServersQuerySchema = ListOAuthServersQuerySchema;
|
|
1835
1871
|
exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
|
|
1836
1872
|
exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -908,6 +908,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
908
908
|
title: z.ZodNullable<z.ZodString>;
|
|
909
909
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
910
910
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
911
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
911
912
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
912
913
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
913
914
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -955,6 +956,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
955
956
|
cloudId: string | null;
|
|
956
957
|
userId: string;
|
|
957
958
|
chatId: string;
|
|
959
|
+
cwd: string | null;
|
|
958
960
|
repositoryId: string | null;
|
|
959
961
|
baseBranch: string | null;
|
|
960
962
|
dataEncryptionKey: string | null;
|
|
@@ -983,6 +985,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
983
985
|
cloudId: string | null;
|
|
984
986
|
userId: string;
|
|
985
987
|
chatId: string;
|
|
988
|
+
cwd: string | null;
|
|
986
989
|
repositoryId: string | null;
|
|
987
990
|
baseBranch: string | null;
|
|
988
991
|
dataEncryptionKey: string | null;
|
|
@@ -1022,6 +1025,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1022
1025
|
title: z.ZodNullable<z.ZodString>;
|
|
1023
1026
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1024
1027
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1028
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
1025
1029
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1026
1030
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1027
1031
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -1069,6 +1073,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1069
1073
|
cloudId: string | null;
|
|
1070
1074
|
userId: string;
|
|
1071
1075
|
chatId: string;
|
|
1076
|
+
cwd: string | null;
|
|
1072
1077
|
repositoryId: string | null;
|
|
1073
1078
|
baseBranch: string | null;
|
|
1074
1079
|
dataEncryptionKey: string | null;
|
|
@@ -1097,6 +1102,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1097
1102
|
cloudId: string | null;
|
|
1098
1103
|
userId: string;
|
|
1099
1104
|
chatId: string;
|
|
1105
|
+
cwd: string | null;
|
|
1100
1106
|
repositoryId: string | null;
|
|
1101
1107
|
baseBranch: string | null;
|
|
1102
1108
|
dataEncryptionKey: string | null;
|
|
@@ -1127,6 +1133,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1127
1133
|
cloudId: string | null;
|
|
1128
1134
|
userId: string;
|
|
1129
1135
|
chatId: string;
|
|
1136
|
+
cwd: string | null;
|
|
1130
1137
|
repositoryId: string | null;
|
|
1131
1138
|
baseBranch: string | null;
|
|
1132
1139
|
dataEncryptionKey: string | null;
|
|
@@ -1157,6 +1164,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1157
1164
|
cloudId: string | null;
|
|
1158
1165
|
userId: string;
|
|
1159
1166
|
chatId: string;
|
|
1167
|
+
cwd: string | null;
|
|
1160
1168
|
repositoryId: string | null;
|
|
1161
1169
|
baseBranch: string | null;
|
|
1162
1170
|
dataEncryptionKey: string | null;
|
|
@@ -2122,6 +2130,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2122
2130
|
title: z.ZodNullable<z.ZodString>;
|
|
2123
2131
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
2124
2132
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2133
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
2125
2134
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2126
2135
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
2127
2136
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -2169,6 +2178,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2169
2178
|
cloudId: string | null;
|
|
2170
2179
|
userId: string;
|
|
2171
2180
|
chatId: string;
|
|
2181
|
+
cwd: string | null;
|
|
2172
2182
|
repositoryId: string | null;
|
|
2173
2183
|
baseBranch: string | null;
|
|
2174
2184
|
dataEncryptionKey: string | null;
|
|
@@ -2197,6 +2207,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2197
2207
|
cloudId: string | null;
|
|
2198
2208
|
userId: string;
|
|
2199
2209
|
chatId: string;
|
|
2210
|
+
cwd: string | null;
|
|
2200
2211
|
repositoryId: string | null;
|
|
2201
2212
|
baseBranch: string | null;
|
|
2202
2213
|
dataEncryptionKey: string | null;
|
|
@@ -2227,6 +2238,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2227
2238
|
cloudId: string | null;
|
|
2228
2239
|
userId: string;
|
|
2229
2240
|
chatId: string;
|
|
2241
|
+
cwd: string | null;
|
|
2230
2242
|
repositoryId: string | null;
|
|
2231
2243
|
baseBranch: string | null;
|
|
2232
2244
|
dataEncryptionKey: string | null;
|
|
@@ -2257,6 +2269,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2257
2269
|
cloudId: string | null;
|
|
2258
2270
|
userId: string;
|
|
2259
2271
|
chatId: string;
|
|
2272
|
+
cwd: string | null;
|
|
2260
2273
|
repositoryId: string | null;
|
|
2261
2274
|
baseBranch: string | null;
|
|
2262
2275
|
dataEncryptionKey: string | null;
|
|
@@ -2677,6 +2690,7 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
2677
2690
|
metadata: z.ZodNullable<z.ZodString>;
|
|
2678
2691
|
approval: z.ZodString;
|
|
2679
2692
|
dataEncryptionKey: z.ZodString;
|
|
2693
|
+
controlPort: z.ZodNullable<z.ZodNumber>;
|
|
2680
2694
|
createdAt: z.ZodString;
|
|
2681
2695
|
updatedAt: z.ZodString;
|
|
2682
2696
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2688,6 +2702,7 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
2688
2702
|
owner: string;
|
|
2689
2703
|
metadata: string | null;
|
|
2690
2704
|
approval: string;
|
|
2705
|
+
controlPort: number | null;
|
|
2691
2706
|
}, {
|
|
2692
2707
|
status: string;
|
|
2693
2708
|
id: string;
|
|
@@ -2697,6 +2712,7 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
2697
2712
|
owner: string;
|
|
2698
2713
|
metadata: string | null;
|
|
2699
2714
|
approval: string;
|
|
2715
|
+
controlPort: number | null;
|
|
2700
2716
|
}>;
|
|
2701
2717
|
type LocalMachine = z.infer<typeof LocalMachineSchema>;
|
|
2702
2718
|
/**
|
|
@@ -2873,6 +2889,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
2873
2889
|
metadata: z.ZodNullable<z.ZodString>;
|
|
2874
2890
|
approval: z.ZodString;
|
|
2875
2891
|
dataEncryptionKey: z.ZodString;
|
|
2892
|
+
controlPort: z.ZodNullable<z.ZodNumber>;
|
|
2876
2893
|
createdAt: z.ZodString;
|
|
2877
2894
|
updatedAt: z.ZodString;
|
|
2878
2895
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2884,6 +2901,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
2884
2901
|
owner: string;
|
|
2885
2902
|
metadata: string | null;
|
|
2886
2903
|
approval: string;
|
|
2904
|
+
controlPort: number | null;
|
|
2887
2905
|
}, {
|
|
2888
2906
|
status: string;
|
|
2889
2907
|
id: string;
|
|
@@ -2893,6 +2911,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
2893
2911
|
owner: string;
|
|
2894
2912
|
metadata: string | null;
|
|
2895
2913
|
approval: string;
|
|
2914
|
+
controlPort: number | null;
|
|
2896
2915
|
}>, "many">;
|
|
2897
2916
|
}, "strip", z.ZodTypeAny, {
|
|
2898
2917
|
clouds: {
|
|
@@ -2921,6 +2940,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
2921
2940
|
owner: string;
|
|
2922
2941
|
metadata: string | null;
|
|
2923
2942
|
approval: string;
|
|
2943
|
+
controlPort: number | null;
|
|
2924
2944
|
}[];
|
|
2925
2945
|
}, {
|
|
2926
2946
|
clouds: {
|
|
@@ -2949,6 +2969,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
2949
2969
|
owner: string;
|
|
2950
2970
|
metadata: string | null;
|
|
2951
2971
|
approval: string;
|
|
2972
|
+
controlPort: number | null;
|
|
2952
2973
|
}[];
|
|
2953
2974
|
}>;
|
|
2954
2975
|
type ListMachinesResponse = z.infer<typeof ListMachinesResponseSchema>;
|
|
@@ -3270,6 +3291,7 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
3270
3291
|
url: z.ZodString;
|
|
3271
3292
|
createdAt: z.ZodString;
|
|
3272
3293
|
updatedAt: z.ZodString;
|
|
3294
|
+
gitServerId: z.ZodString;
|
|
3273
3295
|
}, "strip", z.ZodTypeAny, {
|
|
3274
3296
|
id: string;
|
|
3275
3297
|
createdAt: string;
|
|
@@ -3281,6 +3303,7 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
3281
3303
|
defaultBranch: string;
|
|
3282
3304
|
isPrivate: boolean;
|
|
3283
3305
|
url: string;
|
|
3306
|
+
gitServerId: string;
|
|
3284
3307
|
}, {
|
|
3285
3308
|
id: string;
|
|
3286
3309
|
createdAt: string;
|
|
@@ -3292,6 +3315,7 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
3292
3315
|
defaultBranch: string;
|
|
3293
3316
|
isPrivate: boolean;
|
|
3294
3317
|
url: string;
|
|
3318
|
+
gitServerId: string;
|
|
3295
3319
|
}>;
|
|
3296
3320
|
type Repository = z.infer<typeof RepositorySchema>;
|
|
3297
3321
|
/**
|
|
@@ -3309,6 +3333,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3309
3333
|
url: z.ZodString;
|
|
3310
3334
|
createdAt: z.ZodString;
|
|
3311
3335
|
updatedAt: z.ZodString;
|
|
3336
|
+
gitServerId: z.ZodString;
|
|
3312
3337
|
}, "strip", z.ZodTypeAny, {
|
|
3313
3338
|
id: string;
|
|
3314
3339
|
createdAt: string;
|
|
@@ -3320,6 +3345,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3320
3345
|
defaultBranch: string;
|
|
3321
3346
|
isPrivate: boolean;
|
|
3322
3347
|
url: string;
|
|
3348
|
+
gitServerId: string;
|
|
3323
3349
|
}, {
|
|
3324
3350
|
id: string;
|
|
3325
3351
|
createdAt: string;
|
|
@@ -3331,6 +3357,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3331
3357
|
defaultBranch: string;
|
|
3332
3358
|
isPrivate: boolean;
|
|
3333
3359
|
url: string;
|
|
3360
|
+
gitServerId: string;
|
|
3334
3361
|
}>, "many">;
|
|
3335
3362
|
}, "strip", z.ZodTypeAny, {
|
|
3336
3363
|
repositories: {
|
|
@@ -3344,6 +3371,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3344
3371
|
defaultBranch: string;
|
|
3345
3372
|
isPrivate: boolean;
|
|
3346
3373
|
url: string;
|
|
3374
|
+
gitServerId: string;
|
|
3347
3375
|
}[];
|
|
3348
3376
|
}, {
|
|
3349
3377
|
repositories: {
|
|
@@ -3357,6 +3385,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
3357
3385
|
defaultBranch: string;
|
|
3358
3386
|
isPrivate: boolean;
|
|
3359
3387
|
url: string;
|
|
3388
|
+
gitServerId: string;
|
|
3360
3389
|
}[];
|
|
3361
3390
|
}>;
|
|
3362
3391
|
type ListRepositoriesResponse = z.infer<typeof ListRepositoriesResponseSchema>;
|
|
@@ -3375,6 +3404,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3375
3404
|
url: z.ZodString;
|
|
3376
3405
|
createdAt: z.ZodString;
|
|
3377
3406
|
updatedAt: z.ZodString;
|
|
3407
|
+
gitServerId: z.ZodString;
|
|
3378
3408
|
}, "strip", z.ZodTypeAny, {
|
|
3379
3409
|
id: string;
|
|
3380
3410
|
createdAt: string;
|
|
@@ -3386,6 +3416,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3386
3416
|
defaultBranch: string;
|
|
3387
3417
|
isPrivate: boolean;
|
|
3388
3418
|
url: string;
|
|
3419
|
+
gitServerId: string;
|
|
3389
3420
|
}, {
|
|
3390
3421
|
id: string;
|
|
3391
3422
|
createdAt: string;
|
|
@@ -3397,6 +3428,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3397
3428
|
defaultBranch: string;
|
|
3398
3429
|
isPrivate: boolean;
|
|
3399
3430
|
url: string;
|
|
3431
|
+
gitServerId: string;
|
|
3400
3432
|
}>;
|
|
3401
3433
|
}, "strip", z.ZodTypeAny, {
|
|
3402
3434
|
repository: {
|
|
@@ -3410,6 +3442,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3410
3442
|
defaultBranch: string;
|
|
3411
3443
|
isPrivate: boolean;
|
|
3412
3444
|
url: string;
|
|
3445
|
+
gitServerId: string;
|
|
3413
3446
|
};
|
|
3414
3447
|
}, {
|
|
3415
3448
|
repository: {
|
|
@@ -3423,6 +3456,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
3423
3456
|
defaultBranch: string;
|
|
3424
3457
|
isPrivate: boolean;
|
|
3425
3458
|
url: string;
|
|
3459
|
+
gitServerId: string;
|
|
3426
3460
|
};
|
|
3427
3461
|
}>;
|
|
3428
3462
|
type GetRepositoryResponse = z.infer<typeof GetRepositoryResponseSchema>;
|
|
@@ -3720,6 +3754,7 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
3720
3754
|
id: z.ZodString;
|
|
3721
3755
|
provider: z.ZodString;
|
|
3722
3756
|
displayName: z.ZodString;
|
|
3757
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3723
3758
|
authorizeUrl: z.ZodString;
|
|
3724
3759
|
tokenUrl: z.ZodString;
|
|
3725
3760
|
userInfoUrl: z.ZodString;
|
|
@@ -3746,6 +3781,7 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
3746
3781
|
scopes: string[];
|
|
3747
3782
|
userInfoMapping: Record<string, string>;
|
|
3748
3783
|
enabled: boolean;
|
|
3784
|
+
avatar?: string | undefined;
|
|
3749
3785
|
}, {
|
|
3750
3786
|
id: string;
|
|
3751
3787
|
createdAt: string | Date;
|
|
@@ -3760,55 +3796,38 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
3760
3796
|
callbackUrl: string;
|
|
3761
3797
|
userInfoMapping: Record<string, string>;
|
|
3762
3798
|
enabled: boolean;
|
|
3799
|
+
avatar?: string | undefined;
|
|
3763
3800
|
scopes?: string[] | undefined;
|
|
3764
3801
|
}>;
|
|
3765
3802
|
type OAuthServer = z.infer<typeof OAuthServerSchema>;
|
|
3766
3803
|
/**
|
|
3767
3804
|
* OAuth Server public schema (without sensitive data)
|
|
3805
|
+
* Only includes basic display information, no technical or sensitive fields
|
|
3768
3806
|
*/
|
|
3769
|
-
declare const OAuthServerPublicSchema: z.ZodObject<
|
|
3807
|
+
declare const OAuthServerPublicSchema: z.ZodObject<{
|
|
3770
3808
|
id: z.ZodString;
|
|
3771
3809
|
provider: z.ZodString;
|
|
3772
3810
|
displayName: z.ZodString;
|
|
3773
|
-
|
|
3774
|
-
tokenUrl: z.ZodString;
|
|
3775
|
-
userInfoUrl: z.ZodString;
|
|
3776
|
-
clientId: z.ZodString;
|
|
3777
|
-
clientSecret: z.ZodString;
|
|
3778
|
-
callbackUrl: z.ZodString;
|
|
3779
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3780
|
-
userInfoMapping: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3811
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3781
3812
|
enabled: z.ZodBoolean;
|
|
3782
3813
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
3783
3814
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
3784
|
-
}, "
|
|
3815
|
+
}, "strip", z.ZodTypeAny, {
|
|
3785
3816
|
id: string;
|
|
3786
3817
|
createdAt: string;
|
|
3787
3818
|
provider: string;
|
|
3788
3819
|
updatedAt: string;
|
|
3789
3820
|
displayName: string;
|
|
3790
|
-
authorizeUrl: string;
|
|
3791
|
-
tokenUrl: string;
|
|
3792
|
-
userInfoUrl: string;
|
|
3793
|
-
clientId: string;
|
|
3794
|
-
callbackUrl: string;
|
|
3795
|
-
scopes: string[];
|
|
3796
|
-
userInfoMapping: Record<string, string>;
|
|
3797
3821
|
enabled: boolean;
|
|
3822
|
+
avatar?: string | undefined;
|
|
3798
3823
|
}, {
|
|
3799
3824
|
id: string;
|
|
3800
3825
|
createdAt: string | Date;
|
|
3801
3826
|
provider: string;
|
|
3802
3827
|
updatedAt: string | Date;
|
|
3803
3828
|
displayName: string;
|
|
3804
|
-
authorizeUrl: string;
|
|
3805
|
-
tokenUrl: string;
|
|
3806
|
-
userInfoUrl: string;
|
|
3807
|
-
clientId: string;
|
|
3808
|
-
callbackUrl: string;
|
|
3809
|
-
userInfoMapping: Record<string, string>;
|
|
3810
3829
|
enabled: boolean;
|
|
3811
|
-
|
|
3830
|
+
avatar?: string | undefined;
|
|
3812
3831
|
}>;
|
|
3813
3832
|
type OAuthServerPublic = z.infer<typeof OAuthServerPublicSchema>;
|
|
3814
3833
|
/**
|
|
@@ -3817,6 +3836,7 @@ type OAuthServerPublic = z.infer<typeof OAuthServerPublicSchema>;
|
|
|
3817
3836
|
declare const CreateOAuthServerRequestSchema: z.ZodObject<{
|
|
3818
3837
|
provider: z.ZodString;
|
|
3819
3838
|
displayName: z.ZodString;
|
|
3839
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3820
3840
|
authorizeUrl: z.ZodString;
|
|
3821
3841
|
tokenUrl: z.ZodString;
|
|
3822
3842
|
userInfoUrl: z.ZodString;
|
|
@@ -3835,6 +3855,7 @@ declare const CreateOAuthServerRequestSchema: z.ZodObject<{
|
|
|
3835
3855
|
clientSecret: string;
|
|
3836
3856
|
scopes: string[];
|
|
3837
3857
|
enabled: boolean;
|
|
3858
|
+
avatar?: string | undefined;
|
|
3838
3859
|
userInfoMapping?: Record<string, string> | undefined;
|
|
3839
3860
|
}, {
|
|
3840
3861
|
provider: string;
|
|
@@ -3844,6 +3865,7 @@ declare const CreateOAuthServerRequestSchema: z.ZodObject<{
|
|
|
3844
3865
|
userInfoUrl: string;
|
|
3845
3866
|
clientId: string;
|
|
3846
3867
|
clientSecret: string;
|
|
3868
|
+
avatar?: string | undefined;
|
|
3847
3869
|
scopes?: string[] | undefined;
|
|
3848
3870
|
userInfoMapping?: Record<string, string> | undefined;
|
|
3849
3871
|
enabled?: boolean | undefined;
|
|
@@ -3853,6 +3875,7 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3853
3875
|
id: z.ZodString;
|
|
3854
3876
|
provider: z.ZodString;
|
|
3855
3877
|
displayName: z.ZodString;
|
|
3878
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3856
3879
|
authorizeUrl: z.ZodString;
|
|
3857
3880
|
tokenUrl: z.ZodString;
|
|
3858
3881
|
userInfoUrl: z.ZodString;
|
|
@@ -3879,6 +3902,7 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3879
3902
|
scopes: string[];
|
|
3880
3903
|
userInfoMapping: Record<string, string>;
|
|
3881
3904
|
enabled: boolean;
|
|
3905
|
+
avatar?: string | undefined;
|
|
3882
3906
|
}, {
|
|
3883
3907
|
id: string;
|
|
3884
3908
|
createdAt: string | Date;
|
|
@@ -3893,6 +3917,7 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3893
3917
|
callbackUrl: string;
|
|
3894
3918
|
userInfoMapping: Record<string, string>;
|
|
3895
3919
|
enabled: boolean;
|
|
3920
|
+
avatar?: string | undefined;
|
|
3896
3921
|
scopes?: string[] | undefined;
|
|
3897
3922
|
}>;
|
|
3898
3923
|
type CreateOAuthServerResponse = z.infer<typeof CreateOAuthServerResponseSchema>;
|
|
@@ -3911,6 +3936,7 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
3911
3936
|
id: z.ZodString;
|
|
3912
3937
|
provider: z.ZodString;
|
|
3913
3938
|
displayName: z.ZodString;
|
|
3939
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3914
3940
|
authorizeUrl: z.ZodString;
|
|
3915
3941
|
tokenUrl: z.ZodString;
|
|
3916
3942
|
userInfoUrl: z.ZodString;
|
|
@@ -3937,6 +3963,7 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
3937
3963
|
scopes: string[];
|
|
3938
3964
|
userInfoMapping: Record<string, string>;
|
|
3939
3965
|
enabled: boolean;
|
|
3966
|
+
avatar?: string | undefined;
|
|
3940
3967
|
}, {
|
|
3941
3968
|
id: string;
|
|
3942
3969
|
createdAt: string | Date;
|
|
@@ -3951,6 +3978,7 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
3951
3978
|
callbackUrl: string;
|
|
3952
3979
|
userInfoMapping: Record<string, string>;
|
|
3953
3980
|
enabled: boolean;
|
|
3981
|
+
avatar?: string | undefined;
|
|
3954
3982
|
scopes?: string[] | undefined;
|
|
3955
3983
|
}>, "many">;
|
|
3956
3984
|
type ListOAuthServersResponse = z.infer<typeof ListOAuthServersResponseSchema>;
|
|
@@ -3961,6 +3989,7 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3961
3989
|
id: z.ZodString;
|
|
3962
3990
|
provider: z.ZodString;
|
|
3963
3991
|
displayName: z.ZodString;
|
|
3992
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
3964
3993
|
authorizeUrl: z.ZodString;
|
|
3965
3994
|
tokenUrl: z.ZodString;
|
|
3966
3995
|
userInfoUrl: z.ZodString;
|
|
@@ -3987,6 +4016,7 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
3987
4016
|
scopes: string[];
|
|
3988
4017
|
userInfoMapping: Record<string, string>;
|
|
3989
4018
|
enabled: boolean;
|
|
4019
|
+
avatar?: string | undefined;
|
|
3990
4020
|
}, {
|
|
3991
4021
|
id: string;
|
|
3992
4022
|
createdAt: string | Date;
|
|
@@ -4001,6 +4031,7 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4001
4031
|
callbackUrl: string;
|
|
4002
4032
|
userInfoMapping: Record<string, string>;
|
|
4003
4033
|
enabled: boolean;
|
|
4034
|
+
avatar?: string | undefined;
|
|
4004
4035
|
scopes?: string[] | undefined;
|
|
4005
4036
|
}>;
|
|
4006
4037
|
type GetOAuthServerResponse = z.infer<typeof GetOAuthServerResponseSchema>;
|
|
@@ -4010,6 +4041,7 @@ type GetOAuthServerResponse = z.infer<typeof GetOAuthServerResponseSchema>;
|
|
|
4010
4041
|
declare const UpdateOAuthServerRequestSchema: z.ZodObject<{
|
|
4011
4042
|
provider: z.ZodOptional<z.ZodString>;
|
|
4012
4043
|
displayName: z.ZodOptional<z.ZodString>;
|
|
4044
|
+
avatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
4013
4045
|
authorizeUrl: z.ZodOptional<z.ZodString>;
|
|
4014
4046
|
tokenUrl: z.ZodOptional<z.ZodString>;
|
|
4015
4047
|
userInfoUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4019,6 +4051,7 @@ declare const UpdateOAuthServerRequestSchema: z.ZodObject<{
|
|
|
4019
4051
|
userInfoMapping: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
4020
4052
|
enabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4021
4053
|
}, "strip", z.ZodTypeAny, {
|
|
4054
|
+
avatar?: string | undefined;
|
|
4022
4055
|
provider?: string | undefined;
|
|
4023
4056
|
displayName?: string | undefined;
|
|
4024
4057
|
authorizeUrl?: string | undefined;
|
|
@@ -4030,6 +4063,7 @@ declare const UpdateOAuthServerRequestSchema: z.ZodObject<{
|
|
|
4030
4063
|
userInfoMapping?: Record<string, string> | undefined;
|
|
4031
4064
|
enabled?: boolean | undefined;
|
|
4032
4065
|
}, {
|
|
4066
|
+
avatar?: string | undefined;
|
|
4033
4067
|
provider?: string | undefined;
|
|
4034
4068
|
displayName?: string | undefined;
|
|
4035
4069
|
authorizeUrl?: string | undefined;
|
|
@@ -4046,6 +4080,7 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4046
4080
|
id: z.ZodString;
|
|
4047
4081
|
provider: z.ZodString;
|
|
4048
4082
|
displayName: z.ZodString;
|
|
4083
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
4049
4084
|
authorizeUrl: z.ZodString;
|
|
4050
4085
|
tokenUrl: z.ZodString;
|
|
4051
4086
|
userInfoUrl: z.ZodString;
|
|
@@ -4072,6 +4107,7 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4072
4107
|
scopes: string[];
|
|
4073
4108
|
userInfoMapping: Record<string, string>;
|
|
4074
4109
|
enabled: boolean;
|
|
4110
|
+
avatar?: string | undefined;
|
|
4075
4111
|
}, {
|
|
4076
4112
|
id: string;
|
|
4077
4113
|
createdAt: string | Date;
|
|
@@ -4086,6 +4122,7 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4086
4122
|
callbackUrl: string;
|
|
4087
4123
|
userInfoMapping: Record<string, string>;
|
|
4088
4124
|
enabled: boolean;
|
|
4125
|
+
avatar?: string | undefined;
|
|
4089
4126
|
scopes?: string[] | undefined;
|
|
4090
4127
|
}>;
|
|
4091
4128
|
type UpdateOAuthServerResponse = z.infer<typeof UpdateOAuthServerResponseSchema>;
|
|
@@ -4115,6 +4152,7 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4115
4152
|
id: z.ZodString;
|
|
4116
4153
|
provider: z.ZodString;
|
|
4117
4154
|
displayName: z.ZodString;
|
|
4155
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
4118
4156
|
authorizeUrl: z.ZodString;
|
|
4119
4157
|
tokenUrl: z.ZodString;
|
|
4120
4158
|
userInfoUrl: z.ZodString;
|
|
@@ -4141,6 +4179,7 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4141
4179
|
scopes: string[];
|
|
4142
4180
|
userInfoMapping: Record<string, string>;
|
|
4143
4181
|
enabled: boolean;
|
|
4182
|
+
avatar?: string | undefined;
|
|
4144
4183
|
}, {
|
|
4145
4184
|
id: string;
|
|
4146
4185
|
createdAt: string | Date;
|
|
@@ -4155,9 +4194,39 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
4155
4194
|
callbackUrl: string;
|
|
4156
4195
|
userInfoMapping: Record<string, string>;
|
|
4157
4196
|
enabled: boolean;
|
|
4197
|
+
avatar?: string | undefined;
|
|
4158
4198
|
scopes?: string[] | undefined;
|
|
4159
4199
|
}>;
|
|
4160
4200
|
type ToggleOAuthServerResponse = z.infer<typeof ToggleOAuthServerResponseSchema>;
|
|
4201
|
+
/**
|
|
4202
|
+
* GET /v1/oauth-servers - List all OAuth servers (public view)
|
|
4203
|
+
*/
|
|
4204
|
+
declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
|
|
4205
|
+
id: z.ZodString;
|
|
4206
|
+
provider: z.ZodString;
|
|
4207
|
+
displayName: z.ZodString;
|
|
4208
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
4209
|
+
enabled: z.ZodBoolean;
|
|
4210
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4211
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4212
|
+
}, "strip", z.ZodTypeAny, {
|
|
4213
|
+
id: string;
|
|
4214
|
+
createdAt: string;
|
|
4215
|
+
provider: string;
|
|
4216
|
+
updatedAt: string;
|
|
4217
|
+
displayName: string;
|
|
4218
|
+
enabled: boolean;
|
|
4219
|
+
avatar?: string | undefined;
|
|
4220
|
+
}, {
|
|
4221
|
+
id: string;
|
|
4222
|
+
createdAt: string | Date;
|
|
4223
|
+
provider: string;
|
|
4224
|
+
updatedAt: string | Date;
|
|
4225
|
+
displayName: string;
|
|
4226
|
+
enabled: boolean;
|
|
4227
|
+
avatar?: string | undefined;
|
|
4228
|
+
}>, "many">;
|
|
4229
|
+
type ListOAuthServersPublicResponse = z.infer<typeof ListOAuthServersPublicResponseSchema>;
|
|
4161
4230
|
|
|
4162
4231
|
/**
|
|
4163
4232
|
* Billing HTTP request/response schemas
|
|
@@ -4786,6 +4855,117 @@ declare const BillingStatsResponseSchema: z.ZodObject<{
|
|
|
4786
4855
|
}>;
|
|
4787
4856
|
type BillingStatsResponse = z.infer<typeof BillingStatsResponseSchema>;
|
|
4788
4857
|
|
|
4858
|
+
/**
|
|
4859
|
+
* Git Server API schemas
|
|
4860
|
+
* For user-facing Git server endpoints
|
|
4861
|
+
*/
|
|
4862
|
+
|
|
4863
|
+
/**
|
|
4864
|
+
* Git Server schema (user view)
|
|
4865
|
+
*/
|
|
4866
|
+
declare const GitServerSchema: z.ZodObject<{
|
|
4867
|
+
id: z.ZodString;
|
|
4868
|
+
type: z.ZodString;
|
|
4869
|
+
name: z.ZodString;
|
|
4870
|
+
baseUrl: z.ZodString;
|
|
4871
|
+
apiUrl: z.ZodString;
|
|
4872
|
+
oauthServerId: z.ZodNullable<z.ZodString>;
|
|
4873
|
+
enabled: z.ZodBoolean;
|
|
4874
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4875
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4876
|
+
}, "strip", z.ZodTypeAny, {
|
|
4877
|
+
type: string;
|
|
4878
|
+
id: string;
|
|
4879
|
+
createdAt: string;
|
|
4880
|
+
updatedAt: string;
|
|
4881
|
+
name: string;
|
|
4882
|
+
enabled: boolean;
|
|
4883
|
+
baseUrl: string;
|
|
4884
|
+
apiUrl: string;
|
|
4885
|
+
oauthServerId: string | null;
|
|
4886
|
+
}, {
|
|
4887
|
+
type: string;
|
|
4888
|
+
id: string;
|
|
4889
|
+
createdAt: string | Date;
|
|
4890
|
+
updatedAt: string | Date;
|
|
4891
|
+
name: string;
|
|
4892
|
+
enabled: boolean;
|
|
4893
|
+
baseUrl: string;
|
|
4894
|
+
apiUrl: string;
|
|
4895
|
+
oauthServerId: string | null;
|
|
4896
|
+
}>;
|
|
4897
|
+
type GitServer = z.infer<typeof GitServerSchema>;
|
|
4898
|
+
/**
|
|
4899
|
+
* GET /v1/git-servers - List all Git servers
|
|
4900
|
+
*/
|
|
4901
|
+
declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
4902
|
+
id: z.ZodString;
|
|
4903
|
+
type: z.ZodString;
|
|
4904
|
+
name: z.ZodString;
|
|
4905
|
+
baseUrl: z.ZodString;
|
|
4906
|
+
apiUrl: z.ZodString;
|
|
4907
|
+
oauthServerId: z.ZodNullable<z.ZodString>;
|
|
4908
|
+
enabled: z.ZodBoolean;
|
|
4909
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4910
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4911
|
+
}, "strip", z.ZodTypeAny, {
|
|
4912
|
+
type: string;
|
|
4913
|
+
id: string;
|
|
4914
|
+
createdAt: string;
|
|
4915
|
+
updatedAt: string;
|
|
4916
|
+
name: string;
|
|
4917
|
+
enabled: boolean;
|
|
4918
|
+
baseUrl: string;
|
|
4919
|
+
apiUrl: string;
|
|
4920
|
+
oauthServerId: string | null;
|
|
4921
|
+
}, {
|
|
4922
|
+
type: string;
|
|
4923
|
+
id: string;
|
|
4924
|
+
createdAt: string | Date;
|
|
4925
|
+
updatedAt: string | Date;
|
|
4926
|
+
name: string;
|
|
4927
|
+
enabled: boolean;
|
|
4928
|
+
baseUrl: string;
|
|
4929
|
+
apiUrl: string;
|
|
4930
|
+
oauthServerId: string | null;
|
|
4931
|
+
}>, "many">;
|
|
4932
|
+
type ListGitServersResponse = z.infer<typeof ListGitServersResponseSchema>;
|
|
4933
|
+
/**
|
|
4934
|
+
* GET /v1/git-servers/:gitServerId - Get Git server by ID
|
|
4935
|
+
*/
|
|
4936
|
+
declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
4937
|
+
id: z.ZodString;
|
|
4938
|
+
type: z.ZodString;
|
|
4939
|
+
name: z.ZodString;
|
|
4940
|
+
baseUrl: z.ZodString;
|
|
4941
|
+
apiUrl: z.ZodString;
|
|
4942
|
+
oauthServerId: z.ZodNullable<z.ZodString>;
|
|
4943
|
+
enabled: z.ZodBoolean;
|
|
4944
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4945
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
4946
|
+
}, "strip", z.ZodTypeAny, {
|
|
4947
|
+
type: string;
|
|
4948
|
+
id: string;
|
|
4949
|
+
createdAt: string;
|
|
4950
|
+
updatedAt: string;
|
|
4951
|
+
name: string;
|
|
4952
|
+
enabled: boolean;
|
|
4953
|
+
baseUrl: string;
|
|
4954
|
+
apiUrl: string;
|
|
4955
|
+
oauthServerId: string | null;
|
|
4956
|
+
}, {
|
|
4957
|
+
type: string;
|
|
4958
|
+
id: string;
|
|
4959
|
+
createdAt: string | Date;
|
|
4960
|
+
updatedAt: string | Date;
|
|
4961
|
+
name: string;
|
|
4962
|
+
enabled: boolean;
|
|
4963
|
+
baseUrl: string;
|
|
4964
|
+
apiUrl: string;
|
|
4965
|
+
oauthServerId: string | null;
|
|
4966
|
+
}>;
|
|
4967
|
+
type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
|
|
4968
|
+
|
|
4789
4969
|
/**
|
|
4790
4970
|
* Generate a unique event ID
|
|
4791
4971
|
* Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
|
|
@@ -4841,14 +5021,17 @@ declare const MachineAliveEventSchema: z.ZodObject<{
|
|
|
4841
5021
|
} & {
|
|
4842
5022
|
machineId: z.ZodString;
|
|
4843
5023
|
timestamp: z.ZodString;
|
|
5024
|
+
controlPort: z.ZodOptional<z.ZodNumber>;
|
|
4844
5025
|
}, "strip", z.ZodTypeAny, {
|
|
4845
5026
|
machineId: string;
|
|
4846
5027
|
eventId: string;
|
|
4847
5028
|
timestamp: string;
|
|
5029
|
+
controlPort?: number | undefined;
|
|
4848
5030
|
}, {
|
|
4849
5031
|
machineId: string;
|
|
4850
5032
|
eventId: string;
|
|
4851
5033
|
timestamp: string;
|
|
5034
|
+
controlPort?: number | undefined;
|
|
4852
5035
|
}>;
|
|
4853
5036
|
type MachineAliveEventData = z.infer<typeof MachineAliveEventSchema>;
|
|
4854
5037
|
declare const ShutdownMachineSchema: z.ZodObject<{
|
|
@@ -5564,14 +5747,17 @@ declare const UpdateTaskAgentSessionIdEventSchema: z.ZodObject<{
|
|
|
5564
5747
|
} & {
|
|
5565
5748
|
taskId: z.ZodString;
|
|
5566
5749
|
agentSessionId: z.ZodString;
|
|
5750
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
5567
5751
|
}, "strip", z.ZodTypeAny, {
|
|
5568
5752
|
taskId: string;
|
|
5569
5753
|
agentSessionId: string;
|
|
5570
5754
|
eventId: string;
|
|
5755
|
+
cwd?: string | undefined;
|
|
5571
5756
|
}, {
|
|
5572
5757
|
taskId: string;
|
|
5573
5758
|
agentSessionId: string;
|
|
5574
5759
|
eventId: string;
|
|
5760
|
+
cwd?: string | undefined;
|
|
5575
5761
|
}>;
|
|
5576
5762
|
type UpdateTaskAgentSessionIdEventData = z.infer<typeof UpdateTaskAgentSessionIdEventSchema>;
|
|
5577
5763
|
declare const MergeRequestEventSchema: z.ZodObject<{
|
|
@@ -5697,6 +5883,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5697
5883
|
url: z.ZodString;
|
|
5698
5884
|
createdAt: z.ZodString;
|
|
5699
5885
|
updatedAt: z.ZodString;
|
|
5886
|
+
gitServerId: z.ZodString;
|
|
5700
5887
|
}, "strip", z.ZodTypeAny, {
|
|
5701
5888
|
id: string;
|
|
5702
5889
|
createdAt: string;
|
|
@@ -5708,6 +5895,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5708
5895
|
defaultBranch: string;
|
|
5709
5896
|
isPrivate: boolean;
|
|
5710
5897
|
url: string;
|
|
5898
|
+
gitServerId: string;
|
|
5711
5899
|
}, {
|
|
5712
5900
|
id: string;
|
|
5713
5901
|
createdAt: string;
|
|
@@ -5719,6 +5907,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5719
5907
|
defaultBranch: string;
|
|
5720
5908
|
isPrivate: boolean;
|
|
5721
5909
|
url: string;
|
|
5910
|
+
gitServerId: string;
|
|
5722
5911
|
}>, z.ZodObject<{
|
|
5723
5912
|
taskId: z.ZodString;
|
|
5724
5913
|
pullRequestNumber: z.ZodNumber;
|
|
@@ -5769,6 +5958,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5769
5958
|
defaultBranch: string;
|
|
5770
5959
|
isPrivate: boolean;
|
|
5771
5960
|
url: string;
|
|
5961
|
+
gitServerId: string;
|
|
5772
5962
|
} | {
|
|
5773
5963
|
id: string;
|
|
5774
5964
|
} | {
|
|
@@ -5810,6 +6000,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
5810
6000
|
defaultBranch: string;
|
|
5811
6001
|
isPrivate: boolean;
|
|
5812
6002
|
url: string;
|
|
6003
|
+
gitServerId: string;
|
|
5813
6004
|
} | {
|
|
5814
6005
|
id: string;
|
|
5815
6006
|
} | {
|
|
@@ -6317,5 +6508,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
|
|
|
6317
6508
|
*/
|
|
6318
6509
|
declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
|
|
6319
6510
|
|
|
6320
|
-
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, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, 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 };
|
|
6321
|
-
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, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, 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 };
|
|
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 };
|