@agentrix/shared 1.0.4 → 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.d.cts +126 -126
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -16,12 +16,12 @@ declare const ApiErrorSchema: z.ZodObject<{
|
|
|
16
16
|
message: z.ZodString;
|
|
17
17
|
details: z.ZodOptional<z.ZodAny>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
message: string;
|
|
20
19
|
error: string;
|
|
20
|
+
message: string;
|
|
21
21
|
details?: any;
|
|
22
22
|
}, {
|
|
23
|
-
message: string;
|
|
24
23
|
error: string;
|
|
24
|
+
message: string;
|
|
25
25
|
details?: any;
|
|
26
26
|
}>;
|
|
27
27
|
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
@@ -35,14 +35,14 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) =
|
|
|
35
35
|
limit: z.ZodNumber;
|
|
36
36
|
items: z.ZodArray<T, "many">;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
limit: number;
|
|
39
|
-
page: number;
|
|
40
38
|
total: number;
|
|
39
|
+
page: number;
|
|
40
|
+
limit: number;
|
|
41
41
|
items: T["_output"][];
|
|
42
42
|
}, {
|
|
43
|
-
limit: number;
|
|
44
|
-
page: number;
|
|
45
43
|
total: number;
|
|
44
|
+
page: number;
|
|
45
|
+
limit: number;
|
|
46
46
|
items: T["_input"][];
|
|
47
47
|
}>;
|
|
48
48
|
/**
|
|
@@ -1017,15 +1017,15 @@ declare const ListTasksRequestSchema: z.ZodObject<{
|
|
|
1017
1017
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1018
1018
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1019
1019
|
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
limit: number;
|
|
1020
1021
|
chatId: string;
|
|
1021
1022
|
archived: boolean;
|
|
1022
|
-
limit: number;
|
|
1023
1023
|
cursor?: string | undefined;
|
|
1024
1024
|
}, {
|
|
1025
1025
|
chatId: string;
|
|
1026
|
+
limit?: number | undefined;
|
|
1026
1027
|
archived?: unknown;
|
|
1027
1028
|
cursor?: string | undefined;
|
|
1028
|
-
limit?: number | undefined;
|
|
1029
1029
|
}>;
|
|
1030
1030
|
type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
|
|
1031
1031
|
/**
|
|
@@ -1964,16 +1964,16 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
1964
1964
|
createdAt: z.ZodString;
|
|
1965
1965
|
updatedAt: z.ZodString;
|
|
1966
1966
|
}, "strip", z.ZodTypeAny, {
|
|
1967
|
-
id: string;
|
|
1968
1967
|
type: "human" | "agent";
|
|
1968
|
+
id: string;
|
|
1969
1969
|
createdAt: string;
|
|
1970
1970
|
chatId: string;
|
|
1971
1971
|
updatedAt: string;
|
|
1972
1972
|
memberCode: string;
|
|
1973
1973
|
role: string;
|
|
1974
1974
|
}, {
|
|
1975
|
-
id: string;
|
|
1976
1975
|
type: "human" | "agent";
|
|
1976
|
+
id: string;
|
|
1977
1977
|
createdAt: string;
|
|
1978
1978
|
chatId: string;
|
|
1979
1979
|
updatedAt: string;
|
|
@@ -1996,14 +1996,14 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
1996
1996
|
createdAt: z.ZodString;
|
|
1997
1997
|
updatedAt: z.ZodString;
|
|
1998
1998
|
}, "strip", z.ZodTypeAny, {
|
|
1999
|
-
id: string;
|
|
2000
1999
|
type: "direct" | "group";
|
|
2000
|
+
id: string;
|
|
2001
2001
|
createdAt: string;
|
|
2002
2002
|
updatedAt: string;
|
|
2003
2003
|
owner: string;
|
|
2004
2004
|
}, {
|
|
2005
|
-
id: string;
|
|
2006
2005
|
type: "direct" | "group";
|
|
2006
|
+
id: string;
|
|
2007
2007
|
createdAt: string;
|
|
2008
2008
|
updatedAt: string;
|
|
2009
2009
|
owner: string;
|
|
@@ -2028,16 +2028,16 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2028
2028
|
createdAt: z.ZodString;
|
|
2029
2029
|
updatedAt: z.ZodString;
|
|
2030
2030
|
}, "strip", z.ZodTypeAny, {
|
|
2031
|
-
id: string;
|
|
2032
2031
|
type: "human" | "agent";
|
|
2032
|
+
id: string;
|
|
2033
2033
|
createdAt: string;
|
|
2034
2034
|
chatId: string;
|
|
2035
2035
|
updatedAt: string;
|
|
2036
2036
|
memberCode: string;
|
|
2037
2037
|
role: string;
|
|
2038
2038
|
}, {
|
|
2039
|
-
id: string;
|
|
2040
2039
|
type: "human" | "agent";
|
|
2040
|
+
id: string;
|
|
2041
2041
|
createdAt: string;
|
|
2042
2042
|
chatId: string;
|
|
2043
2043
|
updatedAt: string;
|
|
@@ -2045,14 +2045,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2045
2045
|
role: string;
|
|
2046
2046
|
}>, "many">;
|
|
2047
2047
|
}, "strip", z.ZodTypeAny, {
|
|
2048
|
-
id: string;
|
|
2049
2048
|
type: "direct" | "group";
|
|
2049
|
+
id: string;
|
|
2050
2050
|
createdAt: string;
|
|
2051
2051
|
updatedAt: string;
|
|
2052
2052
|
owner: string;
|
|
2053
2053
|
members: {
|
|
2054
|
-
id: string;
|
|
2055
2054
|
type: "human" | "agent";
|
|
2055
|
+
id: string;
|
|
2056
2056
|
createdAt: string;
|
|
2057
2057
|
chatId: string;
|
|
2058
2058
|
updatedAt: string;
|
|
@@ -2060,14 +2060,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2060
2060
|
role: string;
|
|
2061
2061
|
}[];
|
|
2062
2062
|
}, {
|
|
2063
|
-
id: string;
|
|
2064
2063
|
type: "direct" | "group";
|
|
2064
|
+
id: string;
|
|
2065
2065
|
createdAt: string;
|
|
2066
2066
|
updatedAt: string;
|
|
2067
2067
|
owner: string;
|
|
2068
2068
|
members: {
|
|
2069
|
-
id: string;
|
|
2070
2069
|
type: "human" | "agent";
|
|
2070
|
+
id: string;
|
|
2071
2071
|
createdAt: string;
|
|
2072
2072
|
chatId: string;
|
|
2073
2073
|
updatedAt: string;
|
|
@@ -2138,16 +2138,16 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2138
2138
|
createdAt: z.ZodString;
|
|
2139
2139
|
updatedAt: z.ZodString;
|
|
2140
2140
|
}, "strip", z.ZodTypeAny, {
|
|
2141
|
-
id: string;
|
|
2142
2141
|
type: "human" | "agent";
|
|
2142
|
+
id: string;
|
|
2143
2143
|
createdAt: string;
|
|
2144
2144
|
chatId: string;
|
|
2145
2145
|
updatedAt: string;
|
|
2146
2146
|
memberCode: string;
|
|
2147
2147
|
role: string;
|
|
2148
2148
|
}, {
|
|
2149
|
-
id: string;
|
|
2150
2149
|
type: "human" | "agent";
|
|
2150
|
+
id: string;
|
|
2151
2151
|
createdAt: string;
|
|
2152
2152
|
chatId: string;
|
|
2153
2153
|
updatedAt: string;
|
|
@@ -2155,14 +2155,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2155
2155
|
role: string;
|
|
2156
2156
|
}>, "many">;
|
|
2157
2157
|
}, "strip", z.ZodTypeAny, {
|
|
2158
|
-
id: string;
|
|
2159
2158
|
type: "direct" | "group";
|
|
2159
|
+
id: string;
|
|
2160
2160
|
createdAt: string;
|
|
2161
2161
|
updatedAt: string;
|
|
2162
2162
|
owner: string;
|
|
2163
2163
|
members: {
|
|
2164
|
-
id: string;
|
|
2165
2164
|
type: "human" | "agent";
|
|
2165
|
+
id: string;
|
|
2166
2166
|
createdAt: string;
|
|
2167
2167
|
chatId: string;
|
|
2168
2168
|
updatedAt: string;
|
|
@@ -2170,14 +2170,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2170
2170
|
role: string;
|
|
2171
2171
|
}[];
|
|
2172
2172
|
}, {
|
|
2173
|
-
id: string;
|
|
2174
2173
|
type: "direct" | "group";
|
|
2174
|
+
id: string;
|
|
2175
2175
|
createdAt: string;
|
|
2176
2176
|
updatedAt: string;
|
|
2177
2177
|
owner: string;
|
|
2178
2178
|
members: {
|
|
2179
|
-
id: string;
|
|
2180
2179
|
type: "human" | "agent";
|
|
2180
|
+
id: string;
|
|
2181
2181
|
createdAt: string;
|
|
2182
2182
|
chatId: string;
|
|
2183
2183
|
updatedAt: string;
|
|
@@ -2206,16 +2206,16 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2206
2206
|
createdAt: z.ZodString;
|
|
2207
2207
|
updatedAt: z.ZodString;
|
|
2208
2208
|
}, "strip", z.ZodTypeAny, {
|
|
2209
|
-
id: string;
|
|
2210
2209
|
type: "human" | "agent";
|
|
2210
|
+
id: string;
|
|
2211
2211
|
createdAt: string;
|
|
2212
2212
|
chatId: string;
|
|
2213
2213
|
updatedAt: string;
|
|
2214
2214
|
memberCode: string;
|
|
2215
2215
|
role: string;
|
|
2216
2216
|
}, {
|
|
2217
|
-
id: string;
|
|
2218
2217
|
type: "human" | "agent";
|
|
2218
|
+
id: string;
|
|
2219
2219
|
createdAt: string;
|
|
2220
2220
|
chatId: string;
|
|
2221
2221
|
updatedAt: string;
|
|
@@ -2223,14 +2223,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2223
2223
|
role: string;
|
|
2224
2224
|
}>, "many">;
|
|
2225
2225
|
}, "strip", z.ZodTypeAny, {
|
|
2226
|
-
id: string;
|
|
2227
2226
|
type: "direct" | "group";
|
|
2227
|
+
id: string;
|
|
2228
2228
|
createdAt: string;
|
|
2229
2229
|
updatedAt: string;
|
|
2230
2230
|
owner: string;
|
|
2231
2231
|
members: {
|
|
2232
|
-
id: string;
|
|
2233
2232
|
type: "human" | "agent";
|
|
2233
|
+
id: string;
|
|
2234
2234
|
createdAt: string;
|
|
2235
2235
|
chatId: string;
|
|
2236
2236
|
updatedAt: string;
|
|
@@ -2238,14 +2238,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2238
2238
|
role: string;
|
|
2239
2239
|
}[];
|
|
2240
2240
|
}, {
|
|
2241
|
-
id: string;
|
|
2242
2241
|
type: "direct" | "group";
|
|
2242
|
+
id: string;
|
|
2243
2243
|
createdAt: string;
|
|
2244
2244
|
updatedAt: string;
|
|
2245
2245
|
owner: string;
|
|
2246
2246
|
members: {
|
|
2247
|
-
id: string;
|
|
2248
2247
|
type: "human" | "agent";
|
|
2248
|
+
id: string;
|
|
2249
2249
|
createdAt: string;
|
|
2250
2250
|
chatId: string;
|
|
2251
2251
|
updatedAt: string;
|
|
@@ -2255,14 +2255,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2255
2255
|
}>, "many">;
|
|
2256
2256
|
}, "strip", z.ZodTypeAny, {
|
|
2257
2257
|
chats: {
|
|
2258
|
-
id: string;
|
|
2259
2258
|
type: "direct" | "group";
|
|
2259
|
+
id: string;
|
|
2260
2260
|
createdAt: string;
|
|
2261
2261
|
updatedAt: string;
|
|
2262
2262
|
owner: string;
|
|
2263
2263
|
members: {
|
|
2264
|
-
id: string;
|
|
2265
2264
|
type: "human" | "agent";
|
|
2265
|
+
id: string;
|
|
2266
2266
|
createdAt: string;
|
|
2267
2267
|
chatId: string;
|
|
2268
2268
|
updatedAt: string;
|
|
@@ -2272,14 +2272,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2272
2272
|
}[];
|
|
2273
2273
|
}, {
|
|
2274
2274
|
chats: {
|
|
2275
|
-
id: string;
|
|
2276
2275
|
type: "direct" | "group";
|
|
2276
|
+
id: string;
|
|
2277
2277
|
createdAt: string;
|
|
2278
2278
|
updatedAt: string;
|
|
2279
2279
|
owner: string;
|
|
2280
2280
|
members: {
|
|
2281
|
-
id: string;
|
|
2282
2281
|
type: "human" | "agent";
|
|
2282
|
+
id: string;
|
|
2283
2283
|
createdAt: string;
|
|
2284
2284
|
chatId: string;
|
|
2285
2285
|
updatedAt: string;
|
|
@@ -2308,16 +2308,16 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2308
2308
|
createdAt: z.ZodString;
|
|
2309
2309
|
updatedAt: z.ZodString;
|
|
2310
2310
|
}, "strip", z.ZodTypeAny, {
|
|
2311
|
-
id: string;
|
|
2312
2311
|
type: "human" | "agent";
|
|
2312
|
+
id: string;
|
|
2313
2313
|
createdAt: string;
|
|
2314
2314
|
chatId: string;
|
|
2315
2315
|
updatedAt: string;
|
|
2316
2316
|
memberCode: string;
|
|
2317
2317
|
role: string;
|
|
2318
2318
|
}, {
|
|
2319
|
-
id: string;
|
|
2320
2319
|
type: "human" | "agent";
|
|
2320
|
+
id: string;
|
|
2321
2321
|
createdAt: string;
|
|
2322
2322
|
chatId: string;
|
|
2323
2323
|
updatedAt: string;
|
|
@@ -2325,14 +2325,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2325
2325
|
role: string;
|
|
2326
2326
|
}>, "many">;
|
|
2327
2327
|
}, "strip", z.ZodTypeAny, {
|
|
2328
|
-
id: string;
|
|
2329
2328
|
type: "direct" | "group";
|
|
2329
|
+
id: string;
|
|
2330
2330
|
createdAt: string;
|
|
2331
2331
|
updatedAt: string;
|
|
2332
2332
|
owner: string;
|
|
2333
2333
|
members: {
|
|
2334
|
-
id: string;
|
|
2335
2334
|
type: "human" | "agent";
|
|
2335
|
+
id: string;
|
|
2336
2336
|
createdAt: string;
|
|
2337
2337
|
chatId: string;
|
|
2338
2338
|
updatedAt: string;
|
|
@@ -2340,14 +2340,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2340
2340
|
role: string;
|
|
2341
2341
|
}[];
|
|
2342
2342
|
}, {
|
|
2343
|
-
id: string;
|
|
2344
2343
|
type: "direct" | "group";
|
|
2344
|
+
id: string;
|
|
2345
2345
|
createdAt: string;
|
|
2346
2346
|
updatedAt: string;
|
|
2347
2347
|
owner: string;
|
|
2348
2348
|
members: {
|
|
2349
|
-
id: string;
|
|
2350
2349
|
type: "human" | "agent";
|
|
2350
|
+
id: string;
|
|
2351
2351
|
createdAt: string;
|
|
2352
2352
|
chatId: string;
|
|
2353
2353
|
updatedAt: string;
|
|
@@ -2369,16 +2369,16 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2369
2369
|
createdAt: z.ZodString;
|
|
2370
2370
|
updatedAt: z.ZodString;
|
|
2371
2371
|
}, "strip", z.ZodTypeAny, {
|
|
2372
|
-
id: string;
|
|
2373
2372
|
type: "human" | "agent";
|
|
2373
|
+
id: string;
|
|
2374
2374
|
createdAt: string;
|
|
2375
2375
|
chatId: string;
|
|
2376
2376
|
updatedAt: string;
|
|
2377
2377
|
memberCode: string;
|
|
2378
2378
|
role: string;
|
|
2379
2379
|
}, {
|
|
2380
|
-
id: string;
|
|
2381
2380
|
type: "human" | "agent";
|
|
2381
|
+
id: string;
|
|
2382
2382
|
createdAt: string;
|
|
2383
2383
|
chatId: string;
|
|
2384
2384
|
updatedAt: string;
|
|
@@ -2387,8 +2387,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2387
2387
|
}>, "many">;
|
|
2388
2388
|
}, "strip", z.ZodTypeAny, {
|
|
2389
2389
|
members: {
|
|
2390
|
-
id: string;
|
|
2391
2390
|
type: "human" | "agent";
|
|
2391
|
+
id: string;
|
|
2392
2392
|
createdAt: string;
|
|
2393
2393
|
chatId: string;
|
|
2394
2394
|
updatedAt: string;
|
|
@@ -2397,8 +2397,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2397
2397
|
}[];
|
|
2398
2398
|
}, {
|
|
2399
2399
|
members: {
|
|
2400
|
-
id: string;
|
|
2401
2400
|
type: "human" | "agent";
|
|
2401
|
+
id: string;
|
|
2402
2402
|
createdAt: string;
|
|
2403
2403
|
chatId: string;
|
|
2404
2404
|
updatedAt: string;
|
|
@@ -2447,16 +2447,16 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
2447
2447
|
createdAt: z.ZodString;
|
|
2448
2448
|
updatedAt: z.ZodString;
|
|
2449
2449
|
}, "strip", z.ZodTypeAny, {
|
|
2450
|
-
id: string;
|
|
2451
2450
|
type: "human" | "agent";
|
|
2451
|
+
id: string;
|
|
2452
2452
|
createdAt: string;
|
|
2453
2453
|
chatId: string;
|
|
2454
2454
|
updatedAt: string;
|
|
2455
2455
|
memberCode: string;
|
|
2456
2456
|
role: string;
|
|
2457
2457
|
}, {
|
|
2458
|
-
id: string;
|
|
2459
2458
|
type: "human" | "agent";
|
|
2459
|
+
id: string;
|
|
2460
2460
|
createdAt: string;
|
|
2461
2461
|
chatId: string;
|
|
2462
2462
|
updatedAt: string;
|
|
@@ -2465,8 +2465,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
2465
2465
|
}>, "many">;
|
|
2466
2466
|
}, "strip", z.ZodTypeAny, {
|
|
2467
2467
|
members: {
|
|
2468
|
-
id: string;
|
|
2469
2468
|
type: "human" | "agent";
|
|
2469
|
+
id: string;
|
|
2470
2470
|
createdAt: string;
|
|
2471
2471
|
chatId: string;
|
|
2472
2472
|
updatedAt: string;
|
|
@@ -2475,8 +2475,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
2475
2475
|
}[];
|
|
2476
2476
|
}, {
|
|
2477
2477
|
members: {
|
|
2478
|
-
id: string;
|
|
2479
2478
|
type: "human" | "agent";
|
|
2479
|
+
id: string;
|
|
2480
2480
|
createdAt: string;
|
|
2481
2481
|
chatId: string;
|
|
2482
2482
|
updatedAt: string;
|
|
@@ -2725,9 +2725,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
2725
2725
|
supportLocal: z.ZodBoolean;
|
|
2726
2726
|
enable: z.ZodBoolean;
|
|
2727
2727
|
}, "strip", z.ZodTypeAny, {
|
|
2728
|
+
type: "claude" | "codex";
|
|
2728
2729
|
id: string;
|
|
2729
2730
|
avatar: string | null;
|
|
2730
|
-
type: "claude" | "codex";
|
|
2731
2731
|
signature: string | null;
|
|
2732
2732
|
userId: string;
|
|
2733
2733
|
name: string;
|
|
@@ -2740,9 +2740,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
2740
2740
|
supportLocal: boolean;
|
|
2741
2741
|
enable: boolean;
|
|
2742
2742
|
}, {
|
|
2743
|
+
type: "claude" | "codex";
|
|
2743
2744
|
id: string;
|
|
2744
2745
|
avatar: string | null;
|
|
2745
|
-
type: "claude" | "codex";
|
|
2746
2746
|
signature: string | null;
|
|
2747
2747
|
userId: string;
|
|
2748
2748
|
name: string;
|
|
@@ -2776,9 +2776,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2776
2776
|
supportLocal: z.ZodBoolean;
|
|
2777
2777
|
enable: z.ZodBoolean;
|
|
2778
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2779
|
+
type: "claude" | "codex";
|
|
2779
2780
|
id: string;
|
|
2780
2781
|
avatar: string | null;
|
|
2781
|
-
type: "claude" | "codex";
|
|
2782
2782
|
signature: string | null;
|
|
2783
2783
|
userId: string;
|
|
2784
2784
|
name: string;
|
|
@@ -2791,9 +2791,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2791
2791
|
supportLocal: boolean;
|
|
2792
2792
|
enable: boolean;
|
|
2793
2793
|
}, {
|
|
2794
|
+
type: "claude" | "codex";
|
|
2794
2795
|
id: string;
|
|
2795
2796
|
avatar: string | null;
|
|
2796
|
-
type: "claude" | "codex";
|
|
2797
2797
|
signature: string | null;
|
|
2798
2798
|
userId: string;
|
|
2799
2799
|
name: string;
|
|
@@ -2808,9 +2808,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2808
2808
|
}>, "many">;
|
|
2809
2809
|
}, "strip", z.ZodTypeAny, {
|
|
2810
2810
|
agents: {
|
|
2811
|
+
type: "claude" | "codex";
|
|
2811
2812
|
id: string;
|
|
2812
2813
|
avatar: string | null;
|
|
2813
|
-
type: "claude" | "codex";
|
|
2814
2814
|
signature: string | null;
|
|
2815
2815
|
userId: string;
|
|
2816
2816
|
name: string;
|
|
@@ -2825,9 +2825,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
2825
2825
|
}[];
|
|
2826
2826
|
}, {
|
|
2827
2827
|
agents: {
|
|
2828
|
+
type: "claude" | "codex";
|
|
2828
2829
|
id: string;
|
|
2829
2830
|
avatar: string | null;
|
|
2830
|
-
type: "claude" | "codex";
|
|
2831
2831
|
signature: string | null;
|
|
2832
2832
|
userId: string;
|
|
2833
2833
|
name: string;
|
|
@@ -2861,9 +2861,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
2861
2861
|
supportLocal: z.ZodBoolean;
|
|
2862
2862
|
enable: z.ZodBoolean;
|
|
2863
2863
|
}, "strip", z.ZodTypeAny, {
|
|
2864
|
+
type: "claude" | "codex";
|
|
2864
2865
|
id: string;
|
|
2865
2866
|
avatar: string | null;
|
|
2866
|
-
type: "claude" | "codex";
|
|
2867
2867
|
signature: string | null;
|
|
2868
2868
|
userId: string;
|
|
2869
2869
|
name: string;
|
|
@@ -2876,9 +2876,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
2876
2876
|
supportLocal: boolean;
|
|
2877
2877
|
enable: boolean;
|
|
2878
2878
|
}, {
|
|
2879
|
+
type: "claude" | "codex";
|
|
2879
2880
|
id: string;
|
|
2880
2881
|
avatar: string | null;
|
|
2881
|
-
type: "claude" | "codex";
|
|
2882
2882
|
signature: string | null;
|
|
2883
2883
|
userId: string;
|
|
2884
2884
|
name: string;
|
|
@@ -2946,9 +2946,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
2946
2946
|
supportLocal: z.ZodBoolean;
|
|
2947
2947
|
enable: z.ZodBoolean;
|
|
2948
2948
|
}, "strip", z.ZodTypeAny, {
|
|
2949
|
+
type: "claude" | "codex";
|
|
2949
2950
|
id: string;
|
|
2950
2951
|
avatar: string | null;
|
|
2951
|
-
type: "claude" | "codex";
|
|
2952
2952
|
signature: string | null;
|
|
2953
2953
|
userId: string;
|
|
2954
2954
|
name: string;
|
|
@@ -2961,9 +2961,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
2961
2961
|
supportLocal: boolean;
|
|
2962
2962
|
enable: boolean;
|
|
2963
2963
|
}, {
|
|
2964
|
+
type: "claude" | "codex";
|
|
2964
2965
|
id: string;
|
|
2965
2966
|
avatar: string | null;
|
|
2966
|
-
type: "claude" | "codex";
|
|
2967
2967
|
signature: string | null;
|
|
2968
2968
|
userId: string;
|
|
2969
2969
|
name: string;
|
|
@@ -2991,8 +2991,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
2991
2991
|
gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2992
2992
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
2993
2993
|
}, "strip", z.ZodTypeAny, {
|
|
2994
|
-
avatar?: string | null | undefined;
|
|
2995
2994
|
type?: "claude" | "codex" | undefined;
|
|
2995
|
+
avatar?: string | null | undefined;
|
|
2996
2996
|
signature?: string | null | undefined;
|
|
2997
2997
|
name?: string | undefined;
|
|
2998
2998
|
description?: string | null | undefined;
|
|
@@ -3001,8 +3001,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
3001
3001
|
gitRepoId?: string | null | undefined;
|
|
3002
3002
|
supportLocal?: boolean | undefined;
|
|
3003
3003
|
}, {
|
|
3004
|
-
avatar?: string | null | undefined;
|
|
3005
3004
|
type?: "claude" | "codex" | undefined;
|
|
3005
|
+
avatar?: string | null | undefined;
|
|
3006
3006
|
signature?: string | null | undefined;
|
|
3007
3007
|
name?: string | undefined;
|
|
3008
3008
|
description?: string | null | undefined;
|
|
@@ -3031,9 +3031,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
3031
3031
|
supportLocal: z.ZodBoolean;
|
|
3032
3032
|
enable: z.ZodBoolean;
|
|
3033
3033
|
}, "strip", z.ZodTypeAny, {
|
|
3034
|
+
type: "claude" | "codex";
|
|
3034
3035
|
id: string;
|
|
3035
3036
|
avatar: string | null;
|
|
3036
|
-
type: "claude" | "codex";
|
|
3037
3037
|
signature: string | null;
|
|
3038
3038
|
userId: string;
|
|
3039
3039
|
name: string;
|
|
@@ -3046,9 +3046,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
3046
3046
|
supportLocal: boolean;
|
|
3047
3047
|
enable: boolean;
|
|
3048
3048
|
}, {
|
|
3049
|
+
type: "claude" | "codex";
|
|
3049
3050
|
id: string;
|
|
3050
3051
|
avatar: string | null;
|
|
3051
|
-
type: "claude" | "codex";
|
|
3052
3052
|
signature: string | null;
|
|
3053
3053
|
userId: string;
|
|
3054
3054
|
name: string;
|
|
@@ -3096,8 +3096,8 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
3096
3096
|
createdAt: z.ZodString;
|
|
3097
3097
|
updatedAt: z.ZodString;
|
|
3098
3098
|
}, "strip", z.ZodTypeAny, {
|
|
3099
|
-
id: string;
|
|
3100
3099
|
status: string;
|
|
3100
|
+
id: string;
|
|
3101
3101
|
createdAt: string;
|
|
3102
3102
|
dataEncryptionKey: string;
|
|
3103
3103
|
updatedAt: string;
|
|
@@ -3106,8 +3106,8 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
3106
3106
|
approval: string;
|
|
3107
3107
|
controlPort: number | null;
|
|
3108
3108
|
}, {
|
|
3109
|
-
id: string;
|
|
3110
3109
|
status: string;
|
|
3110
|
+
id: string;
|
|
3111
3111
|
createdAt: string;
|
|
3112
3112
|
dataEncryptionKey: string;
|
|
3113
3113
|
updatedAt: string;
|
|
@@ -3129,16 +3129,16 @@ declare const CloudMachineSchema: z.ZodObject<{
|
|
|
3129
3129
|
createdAt: z.ZodString;
|
|
3130
3130
|
updatedAt: z.ZodString;
|
|
3131
3131
|
}, "strip", z.ZodTypeAny, {
|
|
3132
|
-
id: string;
|
|
3133
3132
|
status: string;
|
|
3133
|
+
id: string;
|
|
3134
3134
|
createdAt: string;
|
|
3135
3135
|
cloudId: string;
|
|
3136
3136
|
updatedAt: string;
|
|
3137
3137
|
metadata: string | null;
|
|
3138
3138
|
deviceId: string;
|
|
3139
3139
|
}, {
|
|
3140
|
-
id: string;
|
|
3141
3140
|
status: string;
|
|
3141
|
+
id: string;
|
|
3142
3142
|
createdAt: string;
|
|
3143
3143
|
cloudId: string;
|
|
3144
3144
|
updatedAt: string;
|
|
@@ -3165,16 +3165,16 @@ declare const CloudSchema: z.ZodObject<{
|
|
|
3165
3165
|
createdAt: z.ZodString;
|
|
3166
3166
|
updatedAt: z.ZodString;
|
|
3167
3167
|
}, "strip", z.ZodTypeAny, {
|
|
3168
|
-
id: string;
|
|
3169
3168
|
status: string;
|
|
3169
|
+
id: string;
|
|
3170
3170
|
createdAt: string;
|
|
3171
3171
|
cloudId: string;
|
|
3172
3172
|
updatedAt: string;
|
|
3173
3173
|
metadata: string | null;
|
|
3174
3174
|
deviceId: string;
|
|
3175
3175
|
}, {
|
|
3176
|
-
id: string;
|
|
3177
3176
|
status: string;
|
|
3177
|
+
id: string;
|
|
3178
3178
|
createdAt: string;
|
|
3179
3179
|
cloudId: string;
|
|
3180
3180
|
updatedAt: string;
|
|
@@ -3182,15 +3182,15 @@ declare const CloudSchema: z.ZodObject<{
|
|
|
3182
3182
|
deviceId: string;
|
|
3183
3183
|
}>, "many">>;
|
|
3184
3184
|
}, "strip", z.ZodTypeAny, {
|
|
3185
|
-
id: string;
|
|
3186
3185
|
type: "public" | "private";
|
|
3186
|
+
id: string;
|
|
3187
3187
|
createdAt: string;
|
|
3188
3188
|
updatedAt: string;
|
|
3189
3189
|
name: string;
|
|
3190
3190
|
owner: string;
|
|
3191
3191
|
machines?: {
|
|
3192
|
-
id: string;
|
|
3193
3192
|
status: string;
|
|
3193
|
+
id: string;
|
|
3194
3194
|
createdAt: string;
|
|
3195
3195
|
cloudId: string;
|
|
3196
3196
|
updatedAt: string;
|
|
@@ -3198,15 +3198,15 @@ declare const CloudSchema: z.ZodObject<{
|
|
|
3198
3198
|
deviceId: string;
|
|
3199
3199
|
}[] | undefined;
|
|
3200
3200
|
}, {
|
|
3201
|
-
id: string;
|
|
3202
3201
|
type: "public" | "private";
|
|
3202
|
+
id: string;
|
|
3203
3203
|
createdAt: string;
|
|
3204
3204
|
updatedAt: string;
|
|
3205
3205
|
name: string;
|
|
3206
3206
|
owner: string;
|
|
3207
3207
|
machines?: {
|
|
3208
|
-
id: string;
|
|
3209
3208
|
status: string;
|
|
3209
|
+
id: string;
|
|
3210
3210
|
createdAt: string;
|
|
3211
3211
|
cloudId: string;
|
|
3212
3212
|
updatedAt: string;
|
|
@@ -3235,16 +3235,16 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3235
3235
|
createdAt: z.ZodString;
|
|
3236
3236
|
updatedAt: z.ZodString;
|
|
3237
3237
|
}, "strip", z.ZodTypeAny, {
|
|
3238
|
-
id: string;
|
|
3239
3238
|
status: string;
|
|
3239
|
+
id: string;
|
|
3240
3240
|
createdAt: string;
|
|
3241
3241
|
cloudId: string;
|
|
3242
3242
|
updatedAt: string;
|
|
3243
3243
|
metadata: string | null;
|
|
3244
3244
|
deviceId: string;
|
|
3245
3245
|
}, {
|
|
3246
|
-
id: string;
|
|
3247
3246
|
status: string;
|
|
3247
|
+
id: string;
|
|
3248
3248
|
createdAt: string;
|
|
3249
3249
|
cloudId: string;
|
|
3250
3250
|
updatedAt: string;
|
|
@@ -3252,15 +3252,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3252
3252
|
deviceId: string;
|
|
3253
3253
|
}>, "many">>;
|
|
3254
3254
|
}, "strip", z.ZodTypeAny, {
|
|
3255
|
-
id: string;
|
|
3256
3255
|
type: "public" | "private";
|
|
3256
|
+
id: string;
|
|
3257
3257
|
createdAt: string;
|
|
3258
3258
|
updatedAt: string;
|
|
3259
3259
|
name: string;
|
|
3260
3260
|
owner: string;
|
|
3261
3261
|
machines?: {
|
|
3262
|
-
id: string;
|
|
3263
3262
|
status: string;
|
|
3263
|
+
id: string;
|
|
3264
3264
|
createdAt: string;
|
|
3265
3265
|
cloudId: string;
|
|
3266
3266
|
updatedAt: string;
|
|
@@ -3268,15 +3268,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3268
3268
|
deviceId: string;
|
|
3269
3269
|
}[] | undefined;
|
|
3270
3270
|
}, {
|
|
3271
|
-
id: string;
|
|
3272
3271
|
type: "public" | "private";
|
|
3272
|
+
id: string;
|
|
3273
3273
|
createdAt: string;
|
|
3274
3274
|
updatedAt: string;
|
|
3275
3275
|
name: string;
|
|
3276
3276
|
owner: string;
|
|
3277
3277
|
machines?: {
|
|
3278
|
-
id: string;
|
|
3279
3278
|
status: string;
|
|
3279
|
+
id: string;
|
|
3280
3280
|
createdAt: string;
|
|
3281
3281
|
cloudId: string;
|
|
3282
3282
|
updatedAt: string;
|
|
@@ -3295,8 +3295,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3295
3295
|
createdAt: z.ZodString;
|
|
3296
3296
|
updatedAt: z.ZodString;
|
|
3297
3297
|
}, "strip", z.ZodTypeAny, {
|
|
3298
|
-
id: string;
|
|
3299
3298
|
status: string;
|
|
3299
|
+
id: string;
|
|
3300
3300
|
createdAt: string;
|
|
3301
3301
|
dataEncryptionKey: string;
|
|
3302
3302
|
updatedAt: string;
|
|
@@ -3305,8 +3305,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3305
3305
|
approval: string;
|
|
3306
3306
|
controlPort: number | null;
|
|
3307
3307
|
}, {
|
|
3308
|
-
id: string;
|
|
3309
3308
|
status: string;
|
|
3309
|
+
id: string;
|
|
3310
3310
|
createdAt: string;
|
|
3311
3311
|
dataEncryptionKey: string;
|
|
3312
3312
|
updatedAt: string;
|
|
@@ -3317,15 +3317,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3317
3317
|
}>, "many">;
|
|
3318
3318
|
}, "strip", z.ZodTypeAny, {
|
|
3319
3319
|
clouds: {
|
|
3320
|
-
id: string;
|
|
3321
3320
|
type: "public" | "private";
|
|
3321
|
+
id: string;
|
|
3322
3322
|
createdAt: string;
|
|
3323
3323
|
updatedAt: string;
|
|
3324
3324
|
name: string;
|
|
3325
3325
|
owner: string;
|
|
3326
3326
|
machines?: {
|
|
3327
|
-
id: string;
|
|
3328
3327
|
status: string;
|
|
3328
|
+
id: string;
|
|
3329
3329
|
createdAt: string;
|
|
3330
3330
|
cloudId: string;
|
|
3331
3331
|
updatedAt: string;
|
|
@@ -3334,8 +3334,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3334
3334
|
}[] | undefined;
|
|
3335
3335
|
}[];
|
|
3336
3336
|
localMachines: {
|
|
3337
|
-
id: string;
|
|
3338
3337
|
status: string;
|
|
3338
|
+
id: string;
|
|
3339
3339
|
createdAt: string;
|
|
3340
3340
|
dataEncryptionKey: string;
|
|
3341
3341
|
updatedAt: string;
|
|
@@ -3346,15 +3346,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3346
3346
|
}[];
|
|
3347
3347
|
}, {
|
|
3348
3348
|
clouds: {
|
|
3349
|
-
id: string;
|
|
3350
3349
|
type: "public" | "private";
|
|
3350
|
+
id: string;
|
|
3351
3351
|
createdAt: string;
|
|
3352
3352
|
updatedAt: string;
|
|
3353
3353
|
name: string;
|
|
3354
3354
|
owner: string;
|
|
3355
3355
|
machines?: {
|
|
3356
|
-
id: string;
|
|
3357
3356
|
status: string;
|
|
3357
|
+
id: string;
|
|
3358
3358
|
createdAt: string;
|
|
3359
3359
|
cloudId: string;
|
|
3360
3360
|
updatedAt: string;
|
|
@@ -3363,8 +3363,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
3363
3363
|
}[] | undefined;
|
|
3364
3364
|
}[];
|
|
3365
3365
|
localMachines: {
|
|
3366
|
-
id: string;
|
|
3367
3366
|
status: string;
|
|
3367
|
+
id: string;
|
|
3368
3368
|
createdAt: string;
|
|
3369
3369
|
dataEncryptionKey: string;
|
|
3370
3370
|
updatedAt: string;
|
|
@@ -3614,12 +3614,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
|
|
|
3614
3614
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3615
3615
|
fileIds: z.ZodOptional<z.ZodString>;
|
|
3616
3616
|
}, "strip", z.ZodTypeAny, {
|
|
3617
|
-
limit: number;
|
|
3618
3617
|
page: number;
|
|
3618
|
+
limit: number;
|
|
3619
3619
|
fileIds?: string | undefined;
|
|
3620
3620
|
}, {
|
|
3621
|
-
limit?: number | undefined;
|
|
3622
3621
|
page?: number | undefined;
|
|
3622
|
+
limit?: number | undefined;
|
|
3623
3623
|
fileIds?: string | undefined;
|
|
3624
3624
|
}>;
|
|
3625
3625
|
type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
|
|
@@ -3650,6 +3650,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
3650
3650
|
contentType: string;
|
|
3651
3651
|
}>, "many">;
|
|
3652
3652
|
}, "strip", z.ZodTypeAny, {
|
|
3653
|
+
total: number;
|
|
3654
|
+
page: number;
|
|
3655
|
+
limit: number;
|
|
3653
3656
|
files: {
|
|
3654
3657
|
createdAt: string;
|
|
3655
3658
|
name: string;
|
|
@@ -3657,10 +3660,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
3657
3660
|
fileId: string;
|
|
3658
3661
|
contentType: string;
|
|
3659
3662
|
}[];
|
|
3660
|
-
limit: number;
|
|
3661
|
-
page: number;
|
|
3662
|
-
total: number;
|
|
3663
3663
|
}, {
|
|
3664
|
+
total: number;
|
|
3665
|
+
page: number;
|
|
3666
|
+
limit: number;
|
|
3664
3667
|
files: {
|
|
3665
3668
|
createdAt: string;
|
|
3666
3669
|
name: string;
|
|
@@ -3668,9 +3671,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
3668
3671
|
fileId: string;
|
|
3669
3672
|
contentType: string;
|
|
3670
3673
|
}[];
|
|
3671
|
-
limit: number;
|
|
3672
|
-
page: number;
|
|
3673
|
-
total: number;
|
|
3674
3674
|
}>;
|
|
3675
3675
|
type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
|
|
3676
3676
|
|
|
@@ -4809,8 +4809,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
|
|
|
4809
4809
|
createdAt: z.ZodString;
|
|
4810
4810
|
transactionType: z.ZodLiteral<"charge">;
|
|
4811
4811
|
}, "strip", z.ZodTypeAny, {
|
|
4812
|
-
id: string;
|
|
4813
4812
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
4813
|
+
id: string;
|
|
4814
4814
|
createdAt: string;
|
|
4815
4815
|
userId: string;
|
|
4816
4816
|
creditsPackageId: string;
|
|
@@ -4823,8 +4823,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
|
|
|
4823
4823
|
metadata?: any;
|
|
4824
4824
|
packageName?: string | undefined;
|
|
4825
4825
|
}, {
|
|
4826
|
-
id: string;
|
|
4827
4826
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
4827
|
+
id: string;
|
|
4828
4828
|
createdAt: string;
|
|
4829
4829
|
userId: string;
|
|
4830
4830
|
creditsPackageId: string;
|
|
@@ -4900,8 +4900,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4900
4900
|
createdAt: z.ZodString;
|
|
4901
4901
|
transactionType: z.ZodLiteral<"charge">;
|
|
4902
4902
|
}, "strip", z.ZodTypeAny, {
|
|
4903
|
-
id: string;
|
|
4904
4903
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
4904
|
+
id: string;
|
|
4905
4905
|
createdAt: string;
|
|
4906
4906
|
userId: string;
|
|
4907
4907
|
creditsPackageId: string;
|
|
@@ -4914,8 +4914,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4914
4914
|
metadata?: any;
|
|
4915
4915
|
packageName?: string | undefined;
|
|
4916
4916
|
}, {
|
|
4917
|
-
id: string;
|
|
4918
4917
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
4918
|
+
id: string;
|
|
4919
4919
|
createdAt: string;
|
|
4920
4920
|
userId: string;
|
|
4921
4921
|
creditsPackageId: string;
|
|
@@ -5010,8 +5010,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
5010
5010
|
createdAt: z.ZodString;
|
|
5011
5011
|
transactionType: z.ZodLiteral<"charge">;
|
|
5012
5012
|
}, "strip", z.ZodTypeAny, {
|
|
5013
|
-
id: string;
|
|
5014
5013
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
5014
|
+
id: string;
|
|
5015
5015
|
createdAt: string;
|
|
5016
5016
|
userId: string;
|
|
5017
5017
|
creditsPackageId: string;
|
|
@@ -5024,8 +5024,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
5024
5024
|
metadata?: any;
|
|
5025
5025
|
packageName?: string | undefined;
|
|
5026
5026
|
}, {
|
|
5027
|
-
id: string;
|
|
5028
5027
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
5028
|
+
id: string;
|
|
5029
5029
|
createdAt: string;
|
|
5030
5030
|
userId: string;
|
|
5031
5031
|
creditsPackageId: string;
|
|
@@ -5081,8 +5081,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
5081
5081
|
}, "strip", z.ZodTypeAny, {
|
|
5082
5082
|
total: number;
|
|
5083
5083
|
transactions: ({
|
|
5084
|
-
id: string;
|
|
5085
5084
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
5085
|
+
id: string;
|
|
5086
5086
|
createdAt: string;
|
|
5087
5087
|
userId: string;
|
|
5088
5088
|
creditsPackageId: string;
|
|
@@ -5111,8 +5111,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
5111
5111
|
}, {
|
|
5112
5112
|
total: number;
|
|
5113
5113
|
transactions: ({
|
|
5114
|
-
id: string;
|
|
5115
5114
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
5115
|
+
id: string;
|
|
5116
5116
|
createdAt: string;
|
|
5117
5117
|
userId: string;
|
|
5118
5118
|
creditsPackageId: string;
|
|
@@ -5276,8 +5276,8 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
5276
5276
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
5277
5277
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
5278
5278
|
}, "strip", z.ZodTypeAny, {
|
|
5279
|
-
id: string;
|
|
5280
5279
|
type: string;
|
|
5280
|
+
id: string;
|
|
5281
5281
|
createdAt: string;
|
|
5282
5282
|
updatedAt: string;
|
|
5283
5283
|
name: string;
|
|
@@ -5286,8 +5286,8 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
5286
5286
|
apiUrl: string;
|
|
5287
5287
|
oauthServerId: string | null;
|
|
5288
5288
|
}, {
|
|
5289
|
-
id: string;
|
|
5290
5289
|
type: string;
|
|
5290
|
+
id: string;
|
|
5291
5291
|
createdAt: string | Date;
|
|
5292
5292
|
updatedAt: string | Date;
|
|
5293
5293
|
name: string;
|
|
@@ -5311,8 +5311,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
5311
5311
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
5312
5312
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
5313
5313
|
}, "strip", z.ZodTypeAny, {
|
|
5314
|
-
id: string;
|
|
5315
5314
|
type: string;
|
|
5315
|
+
id: string;
|
|
5316
5316
|
createdAt: string;
|
|
5317
5317
|
updatedAt: string;
|
|
5318
5318
|
name: string;
|
|
@@ -5321,8 +5321,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
5321
5321
|
apiUrl: string;
|
|
5322
5322
|
oauthServerId: string | null;
|
|
5323
5323
|
}, {
|
|
5324
|
-
id: string;
|
|
5325
5324
|
type: string;
|
|
5325
|
+
id: string;
|
|
5326
5326
|
createdAt: string | Date;
|
|
5327
5327
|
updatedAt: string | Date;
|
|
5328
5328
|
name: string;
|
|
@@ -5346,8 +5346,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
5346
5346
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
5347
5347
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
5348
5348
|
}, "strip", z.ZodTypeAny, {
|
|
5349
|
-
id: string;
|
|
5350
5349
|
type: string;
|
|
5350
|
+
id: string;
|
|
5351
5351
|
createdAt: string;
|
|
5352
5352
|
updatedAt: string;
|
|
5353
5353
|
name: string;
|
|
@@ -5356,8 +5356,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
5356
5356
|
apiUrl: string;
|
|
5357
5357
|
oauthServerId: string | null;
|
|
5358
5358
|
}, {
|
|
5359
|
-
id: string;
|
|
5360
5359
|
type: string;
|
|
5360
|
+
id: string;
|
|
5361
5361
|
createdAt: string | Date;
|
|
5362
5362
|
updatedAt: string | Date;
|
|
5363
5363
|
name: string;
|
|
@@ -6101,17 +6101,21 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6101
6101
|
code: z.ZodString;
|
|
6102
6102
|
message: z.ZodString;
|
|
6103
6103
|
}, "strip", z.ZodTypeAny, {
|
|
6104
|
-
code: string;
|
|
6105
6104
|
message: string;
|
|
6106
|
-
}, {
|
|
6107
6105
|
code: string;
|
|
6106
|
+
}, {
|
|
6108
6107
|
message: string;
|
|
6108
|
+
code: string;
|
|
6109
6109
|
}>>;
|
|
6110
6110
|
}, "strip", z.ZodTypeAny, {
|
|
6111
6111
|
success: boolean;
|
|
6112
6112
|
taskId: string;
|
|
6113
6113
|
eventId: string;
|
|
6114
6114
|
requestId: string;
|
|
6115
|
+
error?: {
|
|
6116
|
+
message: string;
|
|
6117
|
+
code: string;
|
|
6118
|
+
} | undefined;
|
|
6115
6119
|
data?: {
|
|
6116
6120
|
type: "file" | "directory";
|
|
6117
6121
|
metadata: {
|
|
@@ -6130,16 +6134,16 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6130
6134
|
content?: string | undefined;
|
|
6131
6135
|
encryptedContent?: string | undefined;
|
|
6132
6136
|
} | undefined;
|
|
6133
|
-
error?: {
|
|
6134
|
-
code: string;
|
|
6135
|
-
message: string;
|
|
6136
|
-
} | undefined;
|
|
6137
6137
|
notModified?: boolean | undefined;
|
|
6138
6138
|
}, {
|
|
6139
6139
|
success: boolean;
|
|
6140
6140
|
taskId: string;
|
|
6141
6141
|
eventId: string;
|
|
6142
6142
|
requestId: string;
|
|
6143
|
+
error?: {
|
|
6144
|
+
message: string;
|
|
6145
|
+
code: string;
|
|
6146
|
+
} | undefined;
|
|
6143
6147
|
data?: {
|
|
6144
6148
|
type: "file" | "directory";
|
|
6145
6149
|
metadata: {
|
|
@@ -6158,10 +6162,6 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6158
6162
|
content?: string | undefined;
|
|
6159
6163
|
encryptedContent?: string | undefined;
|
|
6160
6164
|
} | undefined;
|
|
6161
|
-
error?: {
|
|
6162
|
-
code: string;
|
|
6163
|
-
message: string;
|
|
6164
|
-
} | undefined;
|
|
6165
6165
|
notModified?: boolean | undefined;
|
|
6166
6166
|
}>;
|
|
6167
6167
|
type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
|
|
@@ -6254,14 +6254,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
6254
6254
|
createdAt: z.ZodString;
|
|
6255
6255
|
updatedAt: z.ZodString;
|
|
6256
6256
|
}, "strip", z.ZodTypeAny, {
|
|
6257
|
-
id: string;
|
|
6258
6257
|
type: "direct" | "group";
|
|
6258
|
+
id: string;
|
|
6259
6259
|
createdAt: string;
|
|
6260
6260
|
updatedAt: string;
|
|
6261
6261
|
owner: string;
|
|
6262
6262
|
}, {
|
|
6263
|
-
id: string;
|
|
6264
6263
|
type: "direct" | "group";
|
|
6264
|
+
id: string;
|
|
6265
6265
|
createdAt: string;
|
|
6266
6266
|
updatedAt: string;
|
|
6267
6267
|
owner: string;
|
|
@@ -6274,16 +6274,16 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
6274
6274
|
createdAt: z.ZodString;
|
|
6275
6275
|
updatedAt: z.ZodString;
|
|
6276
6276
|
}, "strip", z.ZodTypeAny, {
|
|
6277
|
-
id: string;
|
|
6278
6277
|
type: "human" | "agent";
|
|
6278
|
+
id: string;
|
|
6279
6279
|
createdAt: string;
|
|
6280
6280
|
chatId: string;
|
|
6281
6281
|
updatedAt: string;
|
|
6282
6282
|
memberCode: string;
|
|
6283
6283
|
role: string;
|
|
6284
6284
|
}, {
|
|
6285
|
-
id: string;
|
|
6286
6285
|
type: "human" | "agent";
|
|
6286
|
+
id: string;
|
|
6287
6287
|
createdAt: string;
|
|
6288
6288
|
chatId: string;
|
|
6289
6289
|
updatedAt: string;
|
|
@@ -6357,14 +6357,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
6357
6357
|
}, "strip", z.ZodTypeAny, {
|
|
6358
6358
|
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
|
|
6359
6359
|
data: {
|
|
6360
|
-
id: string;
|
|
6361
6360
|
type: "direct" | "group";
|
|
6361
|
+
id: string;
|
|
6362
6362
|
createdAt: string;
|
|
6363
6363
|
updatedAt: string;
|
|
6364
6364
|
owner: string;
|
|
6365
6365
|
} | {
|
|
6366
|
-
id: string;
|
|
6367
6366
|
type: "human" | "agent";
|
|
6367
|
+
id: string;
|
|
6368
6368
|
createdAt: string;
|
|
6369
6369
|
chatId: string;
|
|
6370
6370
|
updatedAt: string;
|
|
@@ -6399,14 +6399,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
6399
6399
|
}, {
|
|
6400
6400
|
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
|
|
6401
6401
|
data: {
|
|
6402
|
-
id: string;
|
|
6403
6402
|
type: "direct" | "group";
|
|
6403
|
+
id: string;
|
|
6404
6404
|
createdAt: string;
|
|
6405
6405
|
updatedAt: string;
|
|
6406
6406
|
owner: string;
|
|
6407
6407
|
} | {
|
|
6408
|
-
id: string;
|
|
6409
6408
|
type: "human" | "agent";
|
|
6409
|
+
id: string;
|
|
6410
6410
|
createdAt: string;
|
|
6411
6411
|
chatId: string;
|
|
6412
6412
|
updatedAt: string;
|