@perstack/api-client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3583 @@
1
+ import { z } from 'zod';
2
+ import * as buffer from 'buffer';
3
+
4
+ declare class ApiError extends Error {
5
+ constructor(responseText: string);
6
+ readonly code: number;
7
+ readonly error: string;
8
+ readonly reason: string;
9
+ }
10
+
11
+ declare const apiBaseExpertSchema: z.ZodObject<{
12
+ id: z.ZodCUID2;
13
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
14
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
15
+ minRuntimeVersion: z.ZodEnum<{
16
+ "v1.0": "v1.0";
17
+ }>;
18
+ description: z.ZodString;
19
+ owner: z.ZodObject<{
20
+ name: z.ZodOptional<z.ZodString>;
21
+ organizationId: z.ZodCUID2;
22
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
23
+ }, z.core.$strip>;
24
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
25
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
26
+ }, z.core.$strip>;
27
+ declare const apiRegistryExpertSchema: z.ZodObject<{
28
+ id: z.ZodCUID2;
29
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
30
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
31
+ minRuntimeVersion: z.ZodEnum<{
32
+ "v1.0": "v1.0";
33
+ }>;
34
+ description: z.ZodString;
35
+ owner: z.ZodObject<{
36
+ name: z.ZodOptional<z.ZodString>;
37
+ organizationId: z.ZodCUID2;
38
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
39
+ }, z.core.$strip>;
40
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
41
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
42
+ type: z.ZodLiteral<"registryExpert">;
43
+ version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
44
+ status: z.ZodUnion<readonly [z.ZodLiteral<"available">, z.ZodLiteral<"deprecated">, z.ZodLiteral<"disabled">]>;
45
+ instruction: z.ZodString;
46
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ type: z.ZodLiteral<"mcpStdioSkill">;
48
+ description: z.ZodString;
49
+ rule: z.ZodOptional<z.ZodString>;
50
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ command: z.ZodEnum<{
53
+ npx: "npx";
54
+ uvx: "uvx";
55
+ }>;
56
+ packageName: z.ZodString;
57
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<"mcpSseSkill">;
60
+ description: z.ZodString;
61
+ rule: z.ZodOptional<z.ZodString>;
62
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ endpoint: z.ZodString;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ type: z.ZodLiteral<"interactiveSkill">;
67
+ description: z.ZodString;
68
+ rule: z.ZodOptional<z.ZodString>;
69
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
70
+ description: z.ZodString;
71
+ inputJsonSchema: z.ZodString;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>], "type">>;
74
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
75
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
76
+ }, z.core.$strip>;
77
+ type ApiRegistryExpert = z.infer<typeof apiRegistryExpertSchema>;
78
+ declare const apiStudioExpertSchema: z.ZodObject<{
79
+ id: z.ZodCUID2;
80
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
81
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
82
+ minRuntimeVersion: z.ZodEnum<{
83
+ "v1.0": "v1.0";
84
+ }>;
85
+ description: z.ZodString;
86
+ owner: z.ZodObject<{
87
+ name: z.ZodOptional<z.ZodString>;
88
+ organizationId: z.ZodCUID2;
89
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
90
+ }, z.core.$strip>;
91
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
92
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
93
+ type: z.ZodLiteral<"studioExpert">;
94
+ instruction: z.ZodString;
95
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ type: z.ZodLiteral<"mcpStdioSkill">;
97
+ description: z.ZodString;
98
+ rule: z.ZodOptional<z.ZodString>;
99
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
+ command: z.ZodEnum<{
102
+ npx: "npx";
103
+ uvx: "uvx";
104
+ }>;
105
+ packageName: z.ZodString;
106
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ type: z.ZodLiteral<"mcpSseSkill">;
109
+ description: z.ZodString;
110
+ rule: z.ZodOptional<z.ZodString>;
111
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
112
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
113
+ endpoint: z.ZodString;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ type: z.ZodLiteral<"interactiveSkill">;
116
+ description: z.ZodString;
117
+ rule: z.ZodOptional<z.ZodString>;
118
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
119
+ description: z.ZodString;
120
+ inputJsonSchema: z.ZodString;
121
+ }, z.core.$strip>>;
122
+ }, z.core.$strip>], "type">>;
123
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
124
+ forkFrom: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
125
+ application: z.ZodObject<{
126
+ type: z.ZodLiteral<"application">;
127
+ id: z.ZodCUID2;
128
+ organizationId: z.ZodCUID2;
129
+ organization: z.ZodObject<{
130
+ type: z.ZodLiteral<"organization">;
131
+ id: z.ZodCUID2;
132
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
133
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
134
+ name: z.ZodOptional<z.ZodString>;
135
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
136
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
137
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
138
+ maxApplications: z.ZodNumber;
139
+ maxApiKeys: z.ZodNumber;
140
+ maxStudioExperts: z.ZodNumber;
141
+ }, z.core.$strip>;
142
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
143
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
144
+ name: z.ZodString;
145
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
146
+ }, z.core.$strip>;
147
+ }, z.core.$strip>;
148
+ type ApiStudioExpert = z.infer<typeof apiStudioExpertSchema>;
149
+ declare const apiExpertDigestSchema: z.ZodObject<{
150
+ id: z.ZodCUID2;
151
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
152
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
153
+ minRuntimeVersion: z.ZodEnum<{
154
+ "v1.0": "v1.0";
155
+ }>;
156
+ description: z.ZodString;
157
+ owner: z.ZodObject<{
158
+ name: z.ZodOptional<z.ZodString>;
159
+ organizationId: z.ZodCUID2;
160
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
161
+ }, z.core.$strip>;
162
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
163
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
164
+ type: z.ZodLiteral<"expertDigest">;
165
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
166
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
167
+ }, z.core.$strip>;
168
+ type ApiExpertDigest = z.infer<typeof apiExpertDigestSchema>;
169
+ declare const apiExpertSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
+ id: z.ZodCUID2;
171
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
172
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
173
+ minRuntimeVersion: z.ZodEnum<{
174
+ "v1.0": "v1.0";
175
+ }>;
176
+ description: z.ZodString;
177
+ owner: z.ZodObject<{
178
+ name: z.ZodOptional<z.ZodString>;
179
+ organizationId: z.ZodCUID2;
180
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
181
+ }, z.core.$strip>;
182
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
183
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
184
+ type: z.ZodLiteral<"expertDigest">;
185
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
186
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ id: z.ZodCUID2;
189
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
190
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
191
+ minRuntimeVersion: z.ZodEnum<{
192
+ "v1.0": "v1.0";
193
+ }>;
194
+ description: z.ZodString;
195
+ owner: z.ZodObject<{
196
+ name: z.ZodOptional<z.ZodString>;
197
+ organizationId: z.ZodCUID2;
198
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
199
+ }, z.core.$strip>;
200
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
201
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
202
+ type: z.ZodLiteral<"registryExpert">;
203
+ version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
204
+ status: z.ZodUnion<readonly [z.ZodLiteral<"available">, z.ZodLiteral<"deprecated">, z.ZodLiteral<"disabled">]>;
205
+ instruction: z.ZodString;
206
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
207
+ type: z.ZodLiteral<"mcpStdioSkill">;
208
+ description: z.ZodString;
209
+ rule: z.ZodOptional<z.ZodString>;
210
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ command: z.ZodEnum<{
213
+ npx: "npx";
214
+ uvx: "uvx";
215
+ }>;
216
+ packageName: z.ZodString;
217
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ type: z.ZodLiteral<"mcpSseSkill">;
220
+ description: z.ZodString;
221
+ rule: z.ZodOptional<z.ZodString>;
222
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
223
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
224
+ endpoint: z.ZodString;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"interactiveSkill">;
227
+ description: z.ZodString;
228
+ rule: z.ZodOptional<z.ZodString>;
229
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
230
+ description: z.ZodString;
231
+ inputJsonSchema: z.ZodString;
232
+ }, z.core.$strip>>;
233
+ }, z.core.$strip>], "type">>;
234
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
235
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ id: z.ZodCUID2;
238
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
239
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
240
+ minRuntimeVersion: z.ZodEnum<{
241
+ "v1.0": "v1.0";
242
+ }>;
243
+ description: z.ZodString;
244
+ owner: z.ZodObject<{
245
+ name: z.ZodOptional<z.ZodString>;
246
+ organizationId: z.ZodCUID2;
247
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
248
+ }, z.core.$strip>;
249
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
250
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
251
+ type: z.ZodLiteral<"studioExpert">;
252
+ instruction: z.ZodString;
253
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
254
+ type: z.ZodLiteral<"mcpStdioSkill">;
255
+ description: z.ZodString;
256
+ rule: z.ZodOptional<z.ZodString>;
257
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
+ command: z.ZodEnum<{
260
+ npx: "npx";
261
+ uvx: "uvx";
262
+ }>;
263
+ packageName: z.ZodString;
264
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ type: z.ZodLiteral<"mcpSseSkill">;
267
+ description: z.ZodString;
268
+ rule: z.ZodOptional<z.ZodString>;
269
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
270
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
+ endpoint: z.ZodString;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ type: z.ZodLiteral<"interactiveSkill">;
274
+ description: z.ZodString;
275
+ rule: z.ZodOptional<z.ZodString>;
276
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
277
+ description: z.ZodString;
278
+ inputJsonSchema: z.ZodString;
279
+ }, z.core.$strip>>;
280
+ }, z.core.$strip>], "type">>;
281
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
282
+ forkFrom: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
283
+ application: z.ZodObject<{
284
+ type: z.ZodLiteral<"application">;
285
+ id: z.ZodCUID2;
286
+ organizationId: z.ZodCUID2;
287
+ organization: z.ZodObject<{
288
+ type: z.ZodLiteral<"organization">;
289
+ id: z.ZodCUID2;
290
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
291
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
292
+ name: z.ZodOptional<z.ZodString>;
293
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
294
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
295
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
296
+ maxApplications: z.ZodNumber;
297
+ maxApiKeys: z.ZodNumber;
298
+ maxStudioExperts: z.ZodNumber;
299
+ }, z.core.$strip>;
300
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
301
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
302
+ name: z.ZodString;
303
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
304
+ }, z.core.$strip>;
305
+ }, z.core.$strip>], "type">;
306
+ type ApiExpert = z.infer<typeof apiExpertSchema>;
307
+
308
+ /**
309
+ * Create a registry expert
310
+ */
311
+ declare const createRegistryExpertInput: z.ZodObject<{
312
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
313
+ version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
314
+ minRuntimeVersion: z.ZodEnum<{
315
+ "v1.0": "v1.0";
316
+ }>;
317
+ description: z.ZodString;
318
+ instruction: z.ZodString;
319
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ type: z.ZodLiteral<"mcpStdioSkill">;
321
+ description: z.ZodString;
322
+ rule: z.ZodOptional<z.ZodString>;
323
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
324
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
325
+ command: z.ZodEnum<{
326
+ npx: "npx";
327
+ uvx: "uvx";
328
+ }>;
329
+ packageName: z.ZodString;
330
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ type: z.ZodLiteral<"mcpSseSkill">;
333
+ description: z.ZodString;
334
+ rule: z.ZodOptional<z.ZodString>;
335
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
336
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
337
+ endpoint: z.ZodString;
338
+ }, z.core.$strip>, z.ZodObject<{
339
+ type: z.ZodLiteral<"interactiveSkill">;
340
+ description: z.ZodString;
341
+ rule: z.ZodOptional<z.ZodString>;
342
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
343
+ description: z.ZodString;
344
+ inputJsonSchema: z.ZodString;
345
+ }, z.core.$strip>>;
346
+ }, z.core.$strip>], "type">>;
347
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
348
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
349
+ }, z.core.$strip>;
350
+ type CreateRegistryExpertInput = z.input<typeof createRegistryExpertInput>;
351
+ declare function createRegistryExpert(input: CreateRegistryExpertInput, client: ApiV1Client): Promise<{
352
+ expert: ApiRegistryExpert;
353
+ }>;
354
+ /**
355
+ * Retrieve a registry expert
356
+ */
357
+ declare const getRegistryExpertInput: z.ZodObject<{
358
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
359
+ }, z.core.$strip>;
360
+ type GetRegistryExpertInput = z.input<typeof getRegistryExpertInput>;
361
+ declare function getRegistryExpert(input: GetRegistryExpertInput, client: ApiV1Client): Promise<{
362
+ expert: ApiRegistryExpert;
363
+ }>;
364
+ /**
365
+ * Retrieve multiple registry experts
366
+ */
367
+ declare const getRegistryExpertsInput: z.ZodObject<{
368
+ take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
369
+ skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
370
+ sort: z.ZodOptional<z.ZodString>;
371
+ order: z.ZodOptional<z.ZodString>;
372
+ filter: z.ZodOptional<z.ZodString>;
373
+ organizationId: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strip>;
375
+ type GetRegistryExpertsInput = z.input<typeof getRegistryExpertsInput>;
376
+ declare function getRegistryExperts(input: GetRegistryExpertsInput, client: ApiV1Client): Promise<{
377
+ experts: ApiRegistryExpert[];
378
+ total: number;
379
+ take: number;
380
+ skip: number;
381
+ }>;
382
+ /**
383
+ * Retrieve multiple registry expert versions
384
+ */
385
+ declare const getRegistryExpertVersionsInput: z.ZodObject<{
386
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
387
+ }, z.core.$strip>;
388
+ type GetRegistryExpertVersionsInput = z.input<typeof getRegistryExpertVersionsInput>;
389
+ declare function getRegistryExpertVersions(input: GetRegistryExpertVersionsInput, client: ApiV1Client): Promise<{
390
+ versions: ApiExpertDigest[];
391
+ latest: string;
392
+ total: number;
393
+ }>;
394
+ /**
395
+ * Delete a registry expert
396
+ */
397
+ declare const deleteRegistryExpertInput: z.ZodObject<{
398
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
399
+ }, z.core.$strip>;
400
+ type DeleteRegistryExpertInput = z.input<typeof deleteRegistryExpertInput>;
401
+ declare function deleteRegistryExpert(input: DeleteRegistryExpertInput, client: ApiV1Client): Promise<void>;
402
+
403
+ declare const apiCheckpointStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"init">, z.ZodLiteral<"proceeding">, z.ZodLiteral<"completed">, z.ZodLiteral<"stoppedByInteractiveTool">, z.ZodLiteral<"stoppedByDelegate">, z.ZodLiteral<"stoppedByExceededMaxSteps">, z.ZodLiteral<"stoppedByError">]>;
404
+ type ApiCheckpointStatus = z.infer<typeof apiCheckpointStatusSchema>;
405
+ declare const apiCheckpointActionRetrySchema: z.ZodObject<{
406
+ type: z.ZodLiteral<"retry">;
407
+ error: z.ZodString;
408
+ message: z.ZodString;
409
+ }, z.core.$strip>;
410
+ declare const apiCheckpointActionAttemptCompletionSchema: z.ZodObject<{
411
+ error: z.ZodOptional<z.ZodString>;
412
+ type: z.ZodLiteral<"attemptCompletion">;
413
+ result: z.ZodString;
414
+ }, z.core.$strip>;
415
+ declare const apiCheckpointActionThinkSchema: z.ZodObject<{
416
+ error: z.ZodOptional<z.ZodString>;
417
+ type: z.ZodLiteral<"think">;
418
+ thought: z.ZodString;
419
+ }, z.core.$strip>;
420
+ declare const apiCheckpointActionTodoSchema: z.ZodObject<{
421
+ error: z.ZodOptional<z.ZodString>;
422
+ type: z.ZodLiteral<"todo">;
423
+ newTodos: z.ZodArray<z.ZodString>;
424
+ completedTodos: z.ZodArray<z.ZodNumber>;
425
+ todos: z.ZodArray<z.ZodObject<{
426
+ id: z.ZodNumber;
427
+ title: z.ZodString;
428
+ completed: z.ZodBoolean;
429
+ }, z.core.$strip>>;
430
+ }, z.core.$strip>;
431
+ declare const apiCheckpointActionReadImageFileSchema: z.ZodObject<{
432
+ error: z.ZodOptional<z.ZodString>;
433
+ type: z.ZodLiteral<"readImageFile">;
434
+ path: z.ZodString;
435
+ mimeType: z.ZodOptional<z.ZodString>;
436
+ size: z.ZodOptional<z.ZodNumber>;
437
+ }, z.core.$strip>;
438
+ declare const apiCheckpointActionReadPdfFileSchema: z.ZodObject<{
439
+ error: z.ZodOptional<z.ZodString>;
440
+ type: z.ZodLiteral<"readPdfFile">;
441
+ path: z.ZodString;
442
+ mimeType: z.ZodOptional<z.ZodString>;
443
+ size: z.ZodOptional<z.ZodNumber>;
444
+ }, z.core.$strip>;
445
+ declare const apiCheckpointActionReadTextFileSchema: z.ZodObject<{
446
+ error: z.ZodOptional<z.ZodString>;
447
+ type: z.ZodLiteral<"readTextFile">;
448
+ path: z.ZodString;
449
+ content: z.ZodString;
450
+ from: z.ZodOptional<z.ZodNumber>;
451
+ to: z.ZodOptional<z.ZodNumber>;
452
+ }, z.core.$strip>;
453
+ declare const apiCheckpointActionEditTextFileSchema: z.ZodObject<{
454
+ error: z.ZodOptional<z.ZodString>;
455
+ type: z.ZodLiteral<"editTextFile">;
456
+ path: z.ZodString;
457
+ newText: z.ZodOptional<z.ZodString>;
458
+ oldText: z.ZodOptional<z.ZodString>;
459
+ }, z.core.$strip>;
460
+ declare const apiCheckpointActionAppendTextFileSchema: z.ZodObject<{
461
+ error: z.ZodOptional<z.ZodString>;
462
+ type: z.ZodLiteral<"appendTextFile">;
463
+ path: z.ZodString;
464
+ text: z.ZodString;
465
+ }, z.core.$strip>;
466
+ declare const apiCheckpointActionDeleteFileSchema: z.ZodObject<{
467
+ error: z.ZodOptional<z.ZodString>;
468
+ type: z.ZodLiteral<"deleteFile">;
469
+ path: z.ZodString;
470
+ }, z.core.$strip>;
471
+ declare const apiCheckpointActionMoveFileSchema: z.ZodObject<{
472
+ error: z.ZodOptional<z.ZodString>;
473
+ type: z.ZodLiteral<"moveFile">;
474
+ source: z.ZodString;
475
+ destination: z.ZodString;
476
+ }, z.core.$strip>;
477
+ declare const apiCheckpointActionGetFileInfoSchema: z.ZodObject<{
478
+ error: z.ZodOptional<z.ZodString>;
479
+ type: z.ZodLiteral<"getFileInfo">;
480
+ path: z.ZodString;
481
+ exists: z.ZodBoolean;
482
+ absolutePath: z.ZodString;
483
+ name: z.ZodString;
484
+ directory: z.ZodString;
485
+ extension: z.ZodOptional<z.ZodString>;
486
+ mimeType: z.ZodOptional<z.ZodString>;
487
+ size: z.ZodNumber;
488
+ sizeFormatted: z.ZodString;
489
+ created: z.ZodDate;
490
+ modified: z.ZodDate;
491
+ accessed: z.ZodDate;
492
+ permissions: z.ZodObject<{
493
+ readable: z.ZodBoolean;
494
+ writable: z.ZodBoolean;
495
+ executable: z.ZodBoolean;
496
+ }, z.core.$strip>;
497
+ workspaceItem: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
498
+ id: z.ZodCUID2;
499
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
500
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
501
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
502
+ path: z.ZodString;
503
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
504
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
505
+ type: z.ZodLiteral<"workspaceItemDirectory">;
506
+ }, z.core.$strip>, z.ZodObject<{
507
+ id: z.ZodCUID2;
508
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
509
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
510
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
511
+ path: z.ZodString;
512
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
513
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
514
+ type: z.ZodLiteral<"workspaceItemFile">;
515
+ key: z.ZodString;
516
+ mimeType: z.ZodString;
517
+ size: z.ZodNumber;
518
+ }, z.core.$strip>], "type">>;
519
+ }, z.core.$strip>;
520
+ declare const apiCheckpointActionWriteTextFileSchema: z.ZodObject<{
521
+ error: z.ZodOptional<z.ZodString>;
522
+ type: z.ZodLiteral<"writeTextFile">;
523
+ path: z.ZodString;
524
+ text: z.ZodString;
525
+ }, z.core.$strip>;
526
+ declare const apiCheckpointActionCreateDirectorySchema: z.ZodObject<{
527
+ error: z.ZodOptional<z.ZodString>;
528
+ type: z.ZodLiteral<"createDirectory">;
529
+ path: z.ZodString;
530
+ }, z.core.$strip>;
531
+ declare const apiCheckpointActionListDirectorySchema: z.ZodObject<{
532
+ error: z.ZodOptional<z.ZodString>;
533
+ type: z.ZodLiteral<"listDirectory">;
534
+ path: z.ZodString;
535
+ items: z.ZodArray<z.ZodObject<{
536
+ name: z.ZodString;
537
+ path: z.ZodString;
538
+ type: z.ZodUnion<readonly [z.ZodLiteral<"directory">, z.ZodLiteral<"file">]>;
539
+ size: z.ZodNumber;
540
+ modified: z.ZodDate;
541
+ }, z.core.$strip>>;
542
+ }, z.core.$strip>;
543
+ declare const apiCheckpointActionTestUrlSchema: z.ZodObject<{
544
+ error: z.ZodOptional<z.ZodString>;
545
+ type: z.ZodLiteral<"testUrl">;
546
+ results: z.ZodArray<z.ZodObject<{
547
+ url: z.ZodString;
548
+ status: z.ZodNumber;
549
+ title: z.ZodString;
550
+ description: z.ZodString;
551
+ }, z.core.$strip>>;
552
+ }, z.core.$strip>;
553
+ declare const apiCheckpointActionDelegateSchema: z.ZodObject<{
554
+ error: z.ZodOptional<z.ZodString>;
555
+ type: z.ZodLiteral<"delegate">;
556
+ delegateTo: z.ZodObject<{
557
+ id: z.ZodCUID2;
558
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
559
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
560
+ minRuntimeVersion: z.ZodEnum<{
561
+ "v1.0": "v1.0";
562
+ }>;
563
+ description: z.ZodString;
564
+ owner: z.ZodObject<{
565
+ name: z.ZodOptional<z.ZodString>;
566
+ organizationId: z.ZodCUID2;
567
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
568
+ }, z.core.$strip>;
569
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
570
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
571
+ type: z.ZodLiteral<"expertDigest">;
572
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
573
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
574
+ }, z.core.$strip>;
575
+ query: z.ZodString;
576
+ }, z.core.$strip>;
577
+ declare const apiCheckpointActionGeneralToolSchema: z.ZodObject<{
578
+ error: z.ZodOptional<z.ZodString>;
579
+ type: z.ZodLiteral<"generalTool">;
580
+ skillName: z.ZodString;
581
+ toolName: z.ZodString;
582
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
583
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
584
+ id: z.ZodString;
585
+ type: z.ZodLiteral<"textPart">;
586
+ text: z.ZodString;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ id: z.ZodString;
589
+ type: z.ZodLiteral<"imageUrlPart">;
590
+ url: z.ZodURL;
591
+ mimeType: z.ZodString;
592
+ }, z.core.$strip>, z.ZodObject<{
593
+ id: z.ZodString;
594
+ type: z.ZodLiteral<"imageInlinePart">;
595
+ encodedData: z.ZodString;
596
+ mimeType: z.ZodString;
597
+ }, z.core.$strip>, z.ZodObject<{
598
+ id: z.ZodString;
599
+ type: z.ZodLiteral<"imageBinaryPart">;
600
+ data: z.ZodString;
601
+ mimeType: z.ZodString;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ id: z.ZodString;
604
+ type: z.ZodLiteral<"fileUrlPart">;
605
+ url: z.ZodString;
606
+ mimeType: z.ZodString;
607
+ }, z.core.$strip>, z.ZodObject<{
608
+ id: z.ZodString;
609
+ type: z.ZodLiteral<"fileInlinePart">;
610
+ encodedData: z.ZodString;
611
+ mimeType: z.ZodString;
612
+ }, z.core.$strip>, z.ZodObject<{
613
+ id: z.ZodString;
614
+ type: z.ZodLiteral<"fileBinaryPart">;
615
+ data: z.ZodString;
616
+ mimeType: z.ZodString;
617
+ }, z.core.$strip>, z.ZodObject<{
618
+ id: z.ZodString;
619
+ type: z.ZodLiteral<"toolCallPart">;
620
+ toolCallId: z.ZodString;
621
+ toolName: z.ZodString;
622
+ args: z.ZodUnknown;
623
+ }, z.core.$strip>, z.ZodObject<{
624
+ id: z.ZodString;
625
+ type: z.ZodLiteral<"toolResultPart">;
626
+ toolCallId: z.ZodString;
627
+ toolName: z.ZodString;
628
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
629
+ id: z.ZodString;
630
+ type: z.ZodLiteral<"textPart">;
631
+ text: z.ZodString;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ id: z.ZodString;
634
+ type: z.ZodLiteral<"imageInlinePart">;
635
+ encodedData: z.ZodString;
636
+ mimeType: z.ZodString;
637
+ }, z.core.$strip>]>>;
638
+ isError: z.ZodOptional<z.ZodBoolean>;
639
+ }, z.core.$strip>], "type">>;
640
+ }, z.core.$strip>;
641
+ declare const apiCheckpointActionErrorSchema: z.ZodObject<{
642
+ error: z.ZodOptional<z.ZodString>;
643
+ type: z.ZodLiteral<"error">;
644
+ }, z.core.$strip>;
645
+ declare const apiCheckpointActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
646
+ type: z.ZodLiteral<"retry">;
647
+ error: z.ZodString;
648
+ message: z.ZodString;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ error: z.ZodOptional<z.ZodString>;
651
+ type: z.ZodLiteral<"attemptCompletion">;
652
+ result: z.ZodString;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ error: z.ZodOptional<z.ZodString>;
655
+ type: z.ZodLiteral<"think">;
656
+ thought: z.ZodString;
657
+ }, z.core.$strip>, z.ZodObject<{
658
+ error: z.ZodOptional<z.ZodString>;
659
+ type: z.ZodLiteral<"todo">;
660
+ newTodos: z.ZodArray<z.ZodString>;
661
+ completedTodos: z.ZodArray<z.ZodNumber>;
662
+ todos: z.ZodArray<z.ZodObject<{
663
+ id: z.ZodNumber;
664
+ title: z.ZodString;
665
+ completed: z.ZodBoolean;
666
+ }, z.core.$strip>>;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ error: z.ZodOptional<z.ZodString>;
669
+ type: z.ZodLiteral<"readImageFile">;
670
+ path: z.ZodString;
671
+ mimeType: z.ZodOptional<z.ZodString>;
672
+ size: z.ZodOptional<z.ZodNumber>;
673
+ }, z.core.$strip>, z.ZodObject<{
674
+ error: z.ZodOptional<z.ZodString>;
675
+ type: z.ZodLiteral<"readPdfFile">;
676
+ path: z.ZodString;
677
+ mimeType: z.ZodOptional<z.ZodString>;
678
+ size: z.ZodOptional<z.ZodNumber>;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ error: z.ZodOptional<z.ZodString>;
681
+ type: z.ZodLiteral<"readTextFile">;
682
+ path: z.ZodString;
683
+ content: z.ZodString;
684
+ from: z.ZodOptional<z.ZodNumber>;
685
+ to: z.ZodOptional<z.ZodNumber>;
686
+ }, z.core.$strip>, z.ZodObject<{
687
+ error: z.ZodOptional<z.ZodString>;
688
+ type: z.ZodLiteral<"editTextFile">;
689
+ path: z.ZodString;
690
+ newText: z.ZodOptional<z.ZodString>;
691
+ oldText: z.ZodOptional<z.ZodString>;
692
+ }, z.core.$strip>, z.ZodObject<{
693
+ error: z.ZodOptional<z.ZodString>;
694
+ type: z.ZodLiteral<"appendTextFile">;
695
+ path: z.ZodString;
696
+ text: z.ZodString;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ error: z.ZodOptional<z.ZodString>;
699
+ type: z.ZodLiteral<"deleteFile">;
700
+ path: z.ZodString;
701
+ }, z.core.$strip>, z.ZodObject<{
702
+ error: z.ZodOptional<z.ZodString>;
703
+ type: z.ZodLiteral<"moveFile">;
704
+ source: z.ZodString;
705
+ destination: z.ZodString;
706
+ }, z.core.$strip>, z.ZodObject<{
707
+ error: z.ZodOptional<z.ZodString>;
708
+ type: z.ZodLiteral<"getFileInfo">;
709
+ path: z.ZodString;
710
+ exists: z.ZodBoolean;
711
+ absolutePath: z.ZodString;
712
+ name: z.ZodString;
713
+ directory: z.ZodString;
714
+ extension: z.ZodOptional<z.ZodString>;
715
+ mimeType: z.ZodOptional<z.ZodString>;
716
+ size: z.ZodNumber;
717
+ sizeFormatted: z.ZodString;
718
+ created: z.ZodDate;
719
+ modified: z.ZodDate;
720
+ accessed: z.ZodDate;
721
+ permissions: z.ZodObject<{
722
+ readable: z.ZodBoolean;
723
+ writable: z.ZodBoolean;
724
+ executable: z.ZodBoolean;
725
+ }, z.core.$strip>;
726
+ workspaceItem: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
727
+ id: z.ZodCUID2;
728
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
729
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
730
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
731
+ path: z.ZodString;
732
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
733
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
734
+ type: z.ZodLiteral<"workspaceItemDirectory">;
735
+ }, z.core.$strip>, z.ZodObject<{
736
+ id: z.ZodCUID2;
737
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
738
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
739
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
740
+ path: z.ZodString;
741
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
742
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
743
+ type: z.ZodLiteral<"workspaceItemFile">;
744
+ key: z.ZodString;
745
+ mimeType: z.ZodString;
746
+ size: z.ZodNumber;
747
+ }, z.core.$strip>], "type">>;
748
+ }, z.core.$strip>, z.ZodObject<{
749
+ error: z.ZodOptional<z.ZodString>;
750
+ type: z.ZodLiteral<"writeTextFile">;
751
+ path: z.ZodString;
752
+ text: z.ZodString;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ error: z.ZodOptional<z.ZodString>;
755
+ type: z.ZodLiteral<"createDirectory">;
756
+ path: z.ZodString;
757
+ }, z.core.$strip>, z.ZodObject<{
758
+ error: z.ZodOptional<z.ZodString>;
759
+ type: z.ZodLiteral<"listDirectory">;
760
+ path: z.ZodString;
761
+ items: z.ZodArray<z.ZodObject<{
762
+ name: z.ZodString;
763
+ path: z.ZodString;
764
+ type: z.ZodUnion<readonly [z.ZodLiteral<"directory">, z.ZodLiteral<"file">]>;
765
+ size: z.ZodNumber;
766
+ modified: z.ZodDate;
767
+ }, z.core.$strip>>;
768
+ }, z.core.$strip>, z.ZodObject<{
769
+ error: z.ZodOptional<z.ZodString>;
770
+ type: z.ZodLiteral<"testUrl">;
771
+ results: z.ZodArray<z.ZodObject<{
772
+ url: z.ZodString;
773
+ status: z.ZodNumber;
774
+ title: z.ZodString;
775
+ description: z.ZodString;
776
+ }, z.core.$strip>>;
777
+ }, z.core.$strip>, z.ZodObject<{
778
+ error: z.ZodOptional<z.ZodString>;
779
+ type: z.ZodLiteral<"delegate">;
780
+ delegateTo: z.ZodObject<{
781
+ id: z.ZodCUID2;
782
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
783
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
784
+ minRuntimeVersion: z.ZodEnum<{
785
+ "v1.0": "v1.0";
786
+ }>;
787
+ description: z.ZodString;
788
+ owner: z.ZodObject<{
789
+ name: z.ZodOptional<z.ZodString>;
790
+ organizationId: z.ZodCUID2;
791
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
792
+ }, z.core.$strip>;
793
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
794
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
795
+ type: z.ZodLiteral<"expertDigest">;
796
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
797
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
798
+ }, z.core.$strip>;
799
+ query: z.ZodString;
800
+ }, z.core.$strip>, z.ZodObject<{
801
+ error: z.ZodOptional<z.ZodString>;
802
+ type: z.ZodLiteral<"generalTool">;
803
+ skillName: z.ZodString;
804
+ toolName: z.ZodString;
805
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
806
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
807
+ id: z.ZodString;
808
+ type: z.ZodLiteral<"textPart">;
809
+ text: z.ZodString;
810
+ }, z.core.$strip>, z.ZodObject<{
811
+ id: z.ZodString;
812
+ type: z.ZodLiteral<"imageUrlPart">;
813
+ url: z.ZodURL;
814
+ mimeType: z.ZodString;
815
+ }, z.core.$strip>, z.ZodObject<{
816
+ id: z.ZodString;
817
+ type: z.ZodLiteral<"imageInlinePart">;
818
+ encodedData: z.ZodString;
819
+ mimeType: z.ZodString;
820
+ }, z.core.$strip>, z.ZodObject<{
821
+ id: z.ZodString;
822
+ type: z.ZodLiteral<"imageBinaryPart">;
823
+ data: z.ZodString;
824
+ mimeType: z.ZodString;
825
+ }, z.core.$strip>, z.ZodObject<{
826
+ id: z.ZodString;
827
+ type: z.ZodLiteral<"fileUrlPart">;
828
+ url: z.ZodString;
829
+ mimeType: z.ZodString;
830
+ }, z.core.$strip>, z.ZodObject<{
831
+ id: z.ZodString;
832
+ type: z.ZodLiteral<"fileInlinePart">;
833
+ encodedData: z.ZodString;
834
+ mimeType: z.ZodString;
835
+ }, z.core.$strip>, z.ZodObject<{
836
+ id: z.ZodString;
837
+ type: z.ZodLiteral<"fileBinaryPart">;
838
+ data: z.ZodString;
839
+ mimeType: z.ZodString;
840
+ }, z.core.$strip>, z.ZodObject<{
841
+ id: z.ZodString;
842
+ type: z.ZodLiteral<"toolCallPart">;
843
+ toolCallId: z.ZodString;
844
+ toolName: z.ZodString;
845
+ args: z.ZodUnknown;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ id: z.ZodString;
848
+ type: z.ZodLiteral<"toolResultPart">;
849
+ toolCallId: z.ZodString;
850
+ toolName: z.ZodString;
851
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
852
+ id: z.ZodString;
853
+ type: z.ZodLiteral<"textPart">;
854
+ text: z.ZodString;
855
+ }, z.core.$strip>, z.ZodObject<{
856
+ id: z.ZodString;
857
+ type: z.ZodLiteral<"imageInlinePart">;
858
+ encodedData: z.ZodString;
859
+ mimeType: z.ZodString;
860
+ }, z.core.$strip>]>>;
861
+ isError: z.ZodOptional<z.ZodBoolean>;
862
+ }, z.core.$strip>], "type">>;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ error: z.ZodOptional<z.ZodString>;
865
+ type: z.ZodLiteral<"error">;
866
+ }, z.core.$strip>], "type">;
867
+ type ApiCheckpointAction = z.infer<typeof apiCheckpointActionSchema>;
868
+ declare const apiCheckpointSchema: z.ZodObject<{
869
+ type: z.ZodLiteral<"checkpoint">;
870
+ id: z.ZodCUID2;
871
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
872
+ type: z.ZodLiteral<"retry">;
873
+ error: z.ZodString;
874
+ message: z.ZodString;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ error: z.ZodOptional<z.ZodString>;
877
+ type: z.ZodLiteral<"attemptCompletion">;
878
+ result: z.ZodString;
879
+ }, z.core.$strip>, z.ZodObject<{
880
+ error: z.ZodOptional<z.ZodString>;
881
+ type: z.ZodLiteral<"think">;
882
+ thought: z.ZodString;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ error: z.ZodOptional<z.ZodString>;
885
+ type: z.ZodLiteral<"todo">;
886
+ newTodos: z.ZodArray<z.ZodString>;
887
+ completedTodos: z.ZodArray<z.ZodNumber>;
888
+ todos: z.ZodArray<z.ZodObject<{
889
+ id: z.ZodNumber;
890
+ title: z.ZodString;
891
+ completed: z.ZodBoolean;
892
+ }, z.core.$strip>>;
893
+ }, z.core.$strip>, z.ZodObject<{
894
+ error: z.ZodOptional<z.ZodString>;
895
+ type: z.ZodLiteral<"readImageFile">;
896
+ path: z.ZodString;
897
+ mimeType: z.ZodOptional<z.ZodString>;
898
+ size: z.ZodOptional<z.ZodNumber>;
899
+ }, z.core.$strip>, z.ZodObject<{
900
+ error: z.ZodOptional<z.ZodString>;
901
+ type: z.ZodLiteral<"readPdfFile">;
902
+ path: z.ZodString;
903
+ mimeType: z.ZodOptional<z.ZodString>;
904
+ size: z.ZodOptional<z.ZodNumber>;
905
+ }, z.core.$strip>, z.ZodObject<{
906
+ error: z.ZodOptional<z.ZodString>;
907
+ type: z.ZodLiteral<"readTextFile">;
908
+ path: z.ZodString;
909
+ content: z.ZodString;
910
+ from: z.ZodOptional<z.ZodNumber>;
911
+ to: z.ZodOptional<z.ZodNumber>;
912
+ }, z.core.$strip>, z.ZodObject<{
913
+ error: z.ZodOptional<z.ZodString>;
914
+ type: z.ZodLiteral<"editTextFile">;
915
+ path: z.ZodString;
916
+ newText: z.ZodOptional<z.ZodString>;
917
+ oldText: z.ZodOptional<z.ZodString>;
918
+ }, z.core.$strip>, z.ZodObject<{
919
+ error: z.ZodOptional<z.ZodString>;
920
+ type: z.ZodLiteral<"appendTextFile">;
921
+ path: z.ZodString;
922
+ text: z.ZodString;
923
+ }, z.core.$strip>, z.ZodObject<{
924
+ error: z.ZodOptional<z.ZodString>;
925
+ type: z.ZodLiteral<"deleteFile">;
926
+ path: z.ZodString;
927
+ }, z.core.$strip>, z.ZodObject<{
928
+ error: z.ZodOptional<z.ZodString>;
929
+ type: z.ZodLiteral<"moveFile">;
930
+ source: z.ZodString;
931
+ destination: z.ZodString;
932
+ }, z.core.$strip>, z.ZodObject<{
933
+ error: z.ZodOptional<z.ZodString>;
934
+ type: z.ZodLiteral<"getFileInfo">;
935
+ path: z.ZodString;
936
+ exists: z.ZodBoolean;
937
+ absolutePath: z.ZodString;
938
+ name: z.ZodString;
939
+ directory: z.ZodString;
940
+ extension: z.ZodOptional<z.ZodString>;
941
+ mimeType: z.ZodOptional<z.ZodString>;
942
+ size: z.ZodNumber;
943
+ sizeFormatted: z.ZodString;
944
+ created: z.ZodDate;
945
+ modified: z.ZodDate;
946
+ accessed: z.ZodDate;
947
+ permissions: z.ZodObject<{
948
+ readable: z.ZodBoolean;
949
+ writable: z.ZodBoolean;
950
+ executable: z.ZodBoolean;
951
+ }, z.core.$strip>;
952
+ workspaceItem: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
953
+ id: z.ZodCUID2;
954
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
955
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
956
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
957
+ path: z.ZodString;
958
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
959
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
960
+ type: z.ZodLiteral<"workspaceItemDirectory">;
961
+ }, z.core.$strip>, z.ZodObject<{
962
+ id: z.ZodCUID2;
963
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
964
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
965
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
966
+ path: z.ZodString;
967
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
968
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
969
+ type: z.ZodLiteral<"workspaceItemFile">;
970
+ key: z.ZodString;
971
+ mimeType: z.ZodString;
972
+ size: z.ZodNumber;
973
+ }, z.core.$strip>], "type">>;
974
+ }, z.core.$strip>, z.ZodObject<{
975
+ error: z.ZodOptional<z.ZodString>;
976
+ type: z.ZodLiteral<"writeTextFile">;
977
+ path: z.ZodString;
978
+ text: z.ZodString;
979
+ }, z.core.$strip>, z.ZodObject<{
980
+ error: z.ZodOptional<z.ZodString>;
981
+ type: z.ZodLiteral<"createDirectory">;
982
+ path: z.ZodString;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ error: z.ZodOptional<z.ZodString>;
985
+ type: z.ZodLiteral<"listDirectory">;
986
+ path: z.ZodString;
987
+ items: z.ZodArray<z.ZodObject<{
988
+ name: z.ZodString;
989
+ path: z.ZodString;
990
+ type: z.ZodUnion<readonly [z.ZodLiteral<"directory">, z.ZodLiteral<"file">]>;
991
+ size: z.ZodNumber;
992
+ modified: z.ZodDate;
993
+ }, z.core.$strip>>;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ error: z.ZodOptional<z.ZodString>;
996
+ type: z.ZodLiteral<"testUrl">;
997
+ results: z.ZodArray<z.ZodObject<{
998
+ url: z.ZodString;
999
+ status: z.ZodNumber;
1000
+ title: z.ZodString;
1001
+ description: z.ZodString;
1002
+ }, z.core.$strip>>;
1003
+ }, z.core.$strip>, z.ZodObject<{
1004
+ error: z.ZodOptional<z.ZodString>;
1005
+ type: z.ZodLiteral<"delegate">;
1006
+ delegateTo: z.ZodObject<{
1007
+ id: z.ZodCUID2;
1008
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1009
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1010
+ minRuntimeVersion: z.ZodEnum<{
1011
+ "v1.0": "v1.0";
1012
+ }>;
1013
+ description: z.ZodString;
1014
+ owner: z.ZodObject<{
1015
+ name: z.ZodOptional<z.ZodString>;
1016
+ organizationId: z.ZodCUID2;
1017
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1018
+ }, z.core.$strip>;
1019
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1020
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1021
+ type: z.ZodLiteral<"expertDigest">;
1022
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1023
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1024
+ }, z.core.$strip>;
1025
+ query: z.ZodString;
1026
+ }, z.core.$strip>, z.ZodObject<{
1027
+ error: z.ZodOptional<z.ZodString>;
1028
+ type: z.ZodLiteral<"generalTool">;
1029
+ skillName: z.ZodString;
1030
+ toolName: z.ZodString;
1031
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1032
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ type: z.ZodLiteral<"textPart">;
1035
+ text: z.ZodString;
1036
+ }, z.core.$strip>, z.ZodObject<{
1037
+ id: z.ZodString;
1038
+ type: z.ZodLiteral<"imageUrlPart">;
1039
+ url: z.ZodURL;
1040
+ mimeType: z.ZodString;
1041
+ }, z.core.$strip>, z.ZodObject<{
1042
+ id: z.ZodString;
1043
+ type: z.ZodLiteral<"imageInlinePart">;
1044
+ encodedData: z.ZodString;
1045
+ mimeType: z.ZodString;
1046
+ }, z.core.$strip>, z.ZodObject<{
1047
+ id: z.ZodString;
1048
+ type: z.ZodLiteral<"imageBinaryPart">;
1049
+ data: z.ZodString;
1050
+ mimeType: z.ZodString;
1051
+ }, z.core.$strip>, z.ZodObject<{
1052
+ id: z.ZodString;
1053
+ type: z.ZodLiteral<"fileUrlPart">;
1054
+ url: z.ZodString;
1055
+ mimeType: z.ZodString;
1056
+ }, z.core.$strip>, z.ZodObject<{
1057
+ id: z.ZodString;
1058
+ type: z.ZodLiteral<"fileInlinePart">;
1059
+ encodedData: z.ZodString;
1060
+ mimeType: z.ZodString;
1061
+ }, z.core.$strip>, z.ZodObject<{
1062
+ id: z.ZodString;
1063
+ type: z.ZodLiteral<"fileBinaryPart">;
1064
+ data: z.ZodString;
1065
+ mimeType: z.ZodString;
1066
+ }, z.core.$strip>, z.ZodObject<{
1067
+ id: z.ZodString;
1068
+ type: z.ZodLiteral<"toolCallPart">;
1069
+ toolCallId: z.ZodString;
1070
+ toolName: z.ZodString;
1071
+ args: z.ZodUnknown;
1072
+ }, z.core.$strip>, z.ZodObject<{
1073
+ id: z.ZodString;
1074
+ type: z.ZodLiteral<"toolResultPart">;
1075
+ toolCallId: z.ZodString;
1076
+ toolName: z.ZodString;
1077
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1078
+ id: z.ZodString;
1079
+ type: z.ZodLiteral<"textPart">;
1080
+ text: z.ZodString;
1081
+ }, z.core.$strip>, z.ZodObject<{
1082
+ id: z.ZodString;
1083
+ type: z.ZodLiteral<"imageInlinePart">;
1084
+ encodedData: z.ZodString;
1085
+ mimeType: z.ZodString;
1086
+ }, z.core.$strip>]>>;
1087
+ isError: z.ZodOptional<z.ZodBoolean>;
1088
+ }, z.core.$strip>], "type">>;
1089
+ }, z.core.$strip>, z.ZodObject<{
1090
+ error: z.ZodOptional<z.ZodString>;
1091
+ type: z.ZodLiteral<"error">;
1092
+ }, z.core.$strip>], "type">;
1093
+ expertJobId: z.ZodCUID2;
1094
+ stepNumber: z.ZodNumber;
1095
+ status: z.ZodUnion<readonly [z.ZodLiteral<"init">, z.ZodLiteral<"proceeding">, z.ZodLiteral<"completed">, z.ZodLiteral<"stoppedByInteractiveTool">, z.ZodLiteral<"stoppedByDelegate">, z.ZodLiteral<"stoppedByExceededMaxSteps">, z.ZodLiteral<"stoppedByError">]>;
1096
+ expert: z.ZodObject<{
1097
+ id: z.ZodCUID2;
1098
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1099
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1100
+ minRuntimeVersion: z.ZodEnum<{
1101
+ "v1.0": "v1.0";
1102
+ }>;
1103
+ description: z.ZodString;
1104
+ owner: z.ZodObject<{
1105
+ name: z.ZodOptional<z.ZodString>;
1106
+ organizationId: z.ZodCUID2;
1107
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1108
+ }, z.core.$strip>;
1109
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1110
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1111
+ type: z.ZodLiteral<"expertDigest">;
1112
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1113
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1114
+ }, z.core.$strip>;
1115
+ skillName: z.ZodOptional<z.ZodString>;
1116
+ toolName: z.ZodOptional<z.ZodString>;
1117
+ delegateTo: z.ZodOptional<z.ZodObject<{
1118
+ expert: z.ZodObject<{
1119
+ id: z.ZodCUID2;
1120
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1121
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1122
+ minRuntimeVersion: z.ZodEnum<{
1123
+ "v1.0": "v1.0";
1124
+ }>;
1125
+ description: z.ZodString;
1126
+ owner: z.ZodObject<{
1127
+ name: z.ZodOptional<z.ZodString>;
1128
+ organizationId: z.ZodCUID2;
1129
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1130
+ }, z.core.$strip>;
1131
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1132
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1133
+ type: z.ZodLiteral<"expertDigest">;
1134
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1135
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1136
+ }, z.core.$strip>;
1137
+ toolCallId: z.ZodString;
1138
+ toolName: z.ZodString;
1139
+ }, z.core.$strip>>;
1140
+ delegatedBy: z.ZodOptional<z.ZodObject<{
1141
+ expert: z.ZodObject<{
1142
+ id: z.ZodCUID2;
1143
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1144
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1145
+ minRuntimeVersion: z.ZodEnum<{
1146
+ "v1.0": "v1.0";
1147
+ }>;
1148
+ description: z.ZodString;
1149
+ owner: z.ZodObject<{
1150
+ name: z.ZodOptional<z.ZodString>;
1151
+ organizationId: z.ZodCUID2;
1152
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1153
+ }, z.core.$strip>;
1154
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1155
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1156
+ type: z.ZodLiteral<"expertDigest">;
1157
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1158
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1159
+ }, z.core.$strip>;
1160
+ toolCallId: z.ZodString;
1161
+ toolName: z.ZodString;
1162
+ checkpointId: z.ZodCUID2;
1163
+ }, z.core.$strip>>;
1164
+ inputMessages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1165
+ id: z.ZodString;
1166
+ type: z.ZodLiteral<"instructionMessage">;
1167
+ contents: z.ZodArray<z.ZodObject<{
1168
+ id: z.ZodString;
1169
+ type: z.ZodLiteral<"textPart">;
1170
+ text: z.ZodString;
1171
+ }, z.core.$strip>>;
1172
+ cache: z.ZodOptional<z.ZodBoolean>;
1173
+ }, z.core.$strip>, z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ type: z.ZodLiteral<"userMessage">;
1176
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ type: z.ZodLiteral<"textPart">;
1179
+ text: z.ZodString;
1180
+ }, z.core.$strip>, z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ type: z.ZodLiteral<"imageUrlPart">;
1183
+ url: z.ZodURL;
1184
+ mimeType: z.ZodString;
1185
+ }, z.core.$strip>, z.ZodObject<{
1186
+ id: z.ZodString;
1187
+ type: z.ZodLiteral<"imageInlinePart">;
1188
+ encodedData: z.ZodString;
1189
+ mimeType: z.ZodString;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ id: z.ZodString;
1192
+ type: z.ZodLiteral<"imageBinaryPart">;
1193
+ data: z.ZodString;
1194
+ mimeType: z.ZodString;
1195
+ }, z.core.$strip>, z.ZodObject<{
1196
+ id: z.ZodString;
1197
+ type: z.ZodLiteral<"fileUrlPart">;
1198
+ url: z.ZodString;
1199
+ mimeType: z.ZodString;
1200
+ }, z.core.$strip>, z.ZodObject<{
1201
+ id: z.ZodString;
1202
+ type: z.ZodLiteral<"fileInlinePart">;
1203
+ encodedData: z.ZodString;
1204
+ mimeType: z.ZodString;
1205
+ }, z.core.$strip>, z.ZodObject<{
1206
+ id: z.ZodString;
1207
+ type: z.ZodLiteral<"fileBinaryPart">;
1208
+ data: z.ZodString;
1209
+ mimeType: z.ZodString;
1210
+ }, z.core.$strip>]>>;
1211
+ cache: z.ZodOptional<z.ZodBoolean>;
1212
+ }, z.core.$strip>, z.ZodObject<{
1213
+ id: z.ZodString;
1214
+ type: z.ZodLiteral<"toolMessage">;
1215
+ contents: z.ZodArray<z.ZodObject<{
1216
+ id: z.ZodString;
1217
+ type: z.ZodLiteral<"toolResultPart">;
1218
+ toolCallId: z.ZodString;
1219
+ toolName: z.ZodString;
1220
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1221
+ id: z.ZodString;
1222
+ type: z.ZodLiteral<"textPart">;
1223
+ text: z.ZodString;
1224
+ }, z.core.$strip>, z.ZodObject<{
1225
+ id: z.ZodString;
1226
+ type: z.ZodLiteral<"imageInlinePart">;
1227
+ encodedData: z.ZodString;
1228
+ mimeType: z.ZodString;
1229
+ }, z.core.$strip>]>>;
1230
+ isError: z.ZodOptional<z.ZodBoolean>;
1231
+ }, z.core.$strip>>;
1232
+ cache: z.ZodOptional<z.ZodBoolean>;
1233
+ }, z.core.$strip>]>>>;
1234
+ messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ type: z.ZodLiteral<"instructionMessage">;
1237
+ contents: z.ZodArray<z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ type: z.ZodLiteral<"textPart">;
1240
+ text: z.ZodString;
1241
+ }, z.core.$strip>>;
1242
+ cache: z.ZodOptional<z.ZodBoolean>;
1243
+ }, z.core.$strip>, z.ZodObject<{
1244
+ id: z.ZodString;
1245
+ type: z.ZodLiteral<"userMessage">;
1246
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1247
+ id: z.ZodString;
1248
+ type: z.ZodLiteral<"textPart">;
1249
+ text: z.ZodString;
1250
+ }, z.core.$strip>, z.ZodObject<{
1251
+ id: z.ZodString;
1252
+ type: z.ZodLiteral<"imageUrlPart">;
1253
+ url: z.ZodURL;
1254
+ mimeType: z.ZodString;
1255
+ }, z.core.$strip>, z.ZodObject<{
1256
+ id: z.ZodString;
1257
+ type: z.ZodLiteral<"imageInlinePart">;
1258
+ encodedData: z.ZodString;
1259
+ mimeType: z.ZodString;
1260
+ }, z.core.$strip>, z.ZodObject<{
1261
+ id: z.ZodString;
1262
+ type: z.ZodLiteral<"imageBinaryPart">;
1263
+ data: z.ZodString;
1264
+ mimeType: z.ZodString;
1265
+ }, z.core.$strip>, z.ZodObject<{
1266
+ id: z.ZodString;
1267
+ type: z.ZodLiteral<"fileUrlPart">;
1268
+ url: z.ZodString;
1269
+ mimeType: z.ZodString;
1270
+ }, z.core.$strip>, z.ZodObject<{
1271
+ id: z.ZodString;
1272
+ type: z.ZodLiteral<"fileInlinePart">;
1273
+ encodedData: z.ZodString;
1274
+ mimeType: z.ZodString;
1275
+ }, z.core.$strip>, z.ZodObject<{
1276
+ id: z.ZodString;
1277
+ type: z.ZodLiteral<"fileBinaryPart">;
1278
+ data: z.ZodString;
1279
+ mimeType: z.ZodString;
1280
+ }, z.core.$strip>]>>;
1281
+ cache: z.ZodOptional<z.ZodBoolean>;
1282
+ }, z.core.$strip>, z.ZodObject<{
1283
+ id: z.ZodString;
1284
+ type: z.ZodLiteral<"expertMessage">;
1285
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1286
+ id: z.ZodString;
1287
+ type: z.ZodLiteral<"textPart">;
1288
+ text: z.ZodString;
1289
+ }, z.core.$strip>, z.ZodObject<{
1290
+ id: z.ZodString;
1291
+ type: z.ZodLiteral<"toolCallPart">;
1292
+ toolCallId: z.ZodString;
1293
+ toolName: z.ZodString;
1294
+ args: z.ZodUnknown;
1295
+ }, z.core.$strip>]>>;
1296
+ cache: z.ZodOptional<z.ZodBoolean>;
1297
+ }, z.core.$strip>, z.ZodObject<{
1298
+ id: z.ZodString;
1299
+ type: z.ZodLiteral<"toolMessage">;
1300
+ contents: z.ZodArray<z.ZodObject<{
1301
+ id: z.ZodString;
1302
+ type: z.ZodLiteral<"toolResultPart">;
1303
+ toolCallId: z.ZodString;
1304
+ toolName: z.ZodString;
1305
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1306
+ id: z.ZodString;
1307
+ type: z.ZodLiteral<"textPart">;
1308
+ text: z.ZodString;
1309
+ }, z.core.$strip>, z.ZodObject<{
1310
+ id: z.ZodString;
1311
+ type: z.ZodLiteral<"imageInlinePart">;
1312
+ encodedData: z.ZodString;
1313
+ mimeType: z.ZodString;
1314
+ }, z.core.$strip>]>>;
1315
+ isError: z.ZodOptional<z.ZodBoolean>;
1316
+ }, z.core.$strip>>;
1317
+ cache: z.ZodOptional<z.ZodBoolean>;
1318
+ }, z.core.$strip>]>>;
1319
+ newMessages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1320
+ id: z.ZodString;
1321
+ type: z.ZodLiteral<"instructionMessage">;
1322
+ contents: z.ZodArray<z.ZodObject<{
1323
+ id: z.ZodString;
1324
+ type: z.ZodLiteral<"textPart">;
1325
+ text: z.ZodString;
1326
+ }, z.core.$strip>>;
1327
+ cache: z.ZodOptional<z.ZodBoolean>;
1328
+ }, z.core.$strip>, z.ZodObject<{
1329
+ id: z.ZodString;
1330
+ type: z.ZodLiteral<"userMessage">;
1331
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1332
+ id: z.ZodString;
1333
+ type: z.ZodLiteral<"textPart">;
1334
+ text: z.ZodString;
1335
+ }, z.core.$strip>, z.ZodObject<{
1336
+ id: z.ZodString;
1337
+ type: z.ZodLiteral<"imageUrlPart">;
1338
+ url: z.ZodURL;
1339
+ mimeType: z.ZodString;
1340
+ }, z.core.$strip>, z.ZodObject<{
1341
+ id: z.ZodString;
1342
+ type: z.ZodLiteral<"imageInlinePart">;
1343
+ encodedData: z.ZodString;
1344
+ mimeType: z.ZodString;
1345
+ }, z.core.$strip>, z.ZodObject<{
1346
+ id: z.ZodString;
1347
+ type: z.ZodLiteral<"imageBinaryPart">;
1348
+ data: z.ZodString;
1349
+ mimeType: z.ZodString;
1350
+ }, z.core.$strip>, z.ZodObject<{
1351
+ id: z.ZodString;
1352
+ type: z.ZodLiteral<"fileUrlPart">;
1353
+ url: z.ZodString;
1354
+ mimeType: z.ZodString;
1355
+ }, z.core.$strip>, z.ZodObject<{
1356
+ id: z.ZodString;
1357
+ type: z.ZodLiteral<"fileInlinePart">;
1358
+ encodedData: z.ZodString;
1359
+ mimeType: z.ZodString;
1360
+ }, z.core.$strip>, z.ZodObject<{
1361
+ id: z.ZodString;
1362
+ type: z.ZodLiteral<"fileBinaryPart">;
1363
+ data: z.ZodString;
1364
+ mimeType: z.ZodString;
1365
+ }, z.core.$strip>]>>;
1366
+ cache: z.ZodOptional<z.ZodBoolean>;
1367
+ }, z.core.$strip>, z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ type: z.ZodLiteral<"expertMessage">;
1370
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1371
+ id: z.ZodString;
1372
+ type: z.ZodLiteral<"textPart">;
1373
+ text: z.ZodString;
1374
+ }, z.core.$strip>, z.ZodObject<{
1375
+ id: z.ZodString;
1376
+ type: z.ZodLiteral<"toolCallPart">;
1377
+ toolCallId: z.ZodString;
1378
+ toolName: z.ZodString;
1379
+ args: z.ZodUnknown;
1380
+ }, z.core.$strip>]>>;
1381
+ cache: z.ZodOptional<z.ZodBoolean>;
1382
+ }, z.core.$strip>, z.ZodObject<{
1383
+ id: z.ZodString;
1384
+ type: z.ZodLiteral<"toolMessage">;
1385
+ contents: z.ZodArray<z.ZodObject<{
1386
+ id: z.ZodString;
1387
+ type: z.ZodLiteral<"toolResultPart">;
1388
+ toolCallId: z.ZodString;
1389
+ toolName: z.ZodString;
1390
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1391
+ id: z.ZodString;
1392
+ type: z.ZodLiteral<"textPart">;
1393
+ text: z.ZodString;
1394
+ }, z.core.$strip>, z.ZodObject<{
1395
+ id: z.ZodString;
1396
+ type: z.ZodLiteral<"imageInlinePart">;
1397
+ encodedData: z.ZodString;
1398
+ mimeType: z.ZodString;
1399
+ }, z.core.$strip>]>>;
1400
+ isError: z.ZodOptional<z.ZodBoolean>;
1401
+ }, z.core.$strip>>;
1402
+ cache: z.ZodOptional<z.ZodBoolean>;
1403
+ }, z.core.$strip>]>>;
1404
+ toolCall: z.ZodOptional<z.ZodObject<{
1405
+ id: z.ZodString;
1406
+ skillName: z.ZodString;
1407
+ toolName: z.ZodString;
1408
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1409
+ }, z.core.$strip>>;
1410
+ toolResult: z.ZodOptional<z.ZodObject<{
1411
+ id: z.ZodString;
1412
+ skillName: z.ZodString;
1413
+ toolName: z.ZodString;
1414
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1415
+ id: z.ZodString;
1416
+ type: z.ZodLiteral<"textPart">;
1417
+ text: z.ZodString;
1418
+ }, z.core.$strip>, z.ZodObject<{
1419
+ id: z.ZodString;
1420
+ type: z.ZodLiteral<"imageUrlPart">;
1421
+ url: z.ZodURL;
1422
+ mimeType: z.ZodString;
1423
+ }, z.core.$strip>, z.ZodObject<{
1424
+ id: z.ZodString;
1425
+ type: z.ZodLiteral<"imageInlinePart">;
1426
+ encodedData: z.ZodString;
1427
+ mimeType: z.ZodString;
1428
+ }, z.core.$strip>, z.ZodObject<{
1429
+ id: z.ZodString;
1430
+ type: z.ZodLiteral<"imageBinaryPart">;
1431
+ data: z.ZodString;
1432
+ mimeType: z.ZodString;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ id: z.ZodString;
1435
+ type: z.ZodLiteral<"fileUrlPart">;
1436
+ url: z.ZodString;
1437
+ mimeType: z.ZodString;
1438
+ }, z.core.$strip>, z.ZodObject<{
1439
+ id: z.ZodString;
1440
+ type: z.ZodLiteral<"fileInlinePart">;
1441
+ encodedData: z.ZodString;
1442
+ mimeType: z.ZodString;
1443
+ }, z.core.$strip>, z.ZodObject<{
1444
+ id: z.ZodString;
1445
+ type: z.ZodLiteral<"fileBinaryPart">;
1446
+ data: z.ZodString;
1447
+ mimeType: z.ZodString;
1448
+ }, z.core.$strip>, z.ZodObject<{
1449
+ id: z.ZodString;
1450
+ type: z.ZodLiteral<"toolCallPart">;
1451
+ toolCallId: z.ZodString;
1452
+ toolName: z.ZodString;
1453
+ args: z.ZodUnknown;
1454
+ }, z.core.$strip>, z.ZodObject<{
1455
+ id: z.ZodString;
1456
+ type: z.ZodLiteral<"toolResultPart">;
1457
+ toolCallId: z.ZodString;
1458
+ toolName: z.ZodString;
1459
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1460
+ id: z.ZodString;
1461
+ type: z.ZodLiteral<"textPart">;
1462
+ text: z.ZodString;
1463
+ }, z.core.$strip>, z.ZodObject<{
1464
+ id: z.ZodString;
1465
+ type: z.ZodLiteral<"imageInlinePart">;
1466
+ encodedData: z.ZodString;
1467
+ mimeType: z.ZodString;
1468
+ }, z.core.$strip>]>>;
1469
+ isError: z.ZodOptional<z.ZodBoolean>;
1470
+ }, z.core.$strip>], "type">>;
1471
+ }, z.core.$strip>>;
1472
+ usage: z.ZodObject<{
1473
+ inputTokens: z.ZodNumber;
1474
+ outputTokens: z.ZodNumber;
1475
+ reasoningTokens: z.ZodNumber;
1476
+ totalTokens: z.ZodNumber;
1477
+ cachedInputTokens: z.ZodNumber;
1478
+ }, z.core.$strip>;
1479
+ contextWindow: z.ZodNumber;
1480
+ contextWindowUsage: z.ZodNumber;
1481
+ startedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1482
+ finishedAt: z.ZodOptional<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
1483
+ }, z.core.$strip>;
1484
+ type ApiCheckpoint = z.infer<typeof apiCheckpointSchema>;
1485
+
1486
+ declare const apiExpertJobStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"processing">, z.ZodLiteral<"completed">, z.ZodLiteral<"requestInteractiveToolResult">, z.ZodLiteral<"requestDelegateResult">, z.ZodLiteral<"exceededMaxSteps">, z.ZodLiteral<"failed">, z.ZodLiteral<"canceling">, z.ZodLiteral<"canceled">, z.ZodLiteral<"expired">]>;
1487
+ type ApiExpertJobStatus = z.infer<typeof apiExpertJobStatusSchema>;
1488
+ declare const apiExpertJobSchema: z.ZodObject<{
1489
+ type: z.ZodLiteral<"expertJob">;
1490
+ id: z.ZodCUID2;
1491
+ status: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"processing">, z.ZodLiteral<"completed">, z.ZodLiteral<"requestInteractiveToolResult">, z.ZodLiteral<"requestDelegateResult">, z.ZodLiteral<"exceededMaxSteps">, z.ZodLiteral<"failed">, z.ZodLiteral<"canceling">, z.ZodLiteral<"canceled">, z.ZodLiteral<"expired">]>;
1492
+ runtimeVersion: z.ZodEnum<{
1493
+ "v1.0": "v1.0";
1494
+ }>;
1495
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1496
+ query: z.ZodOptional<z.ZodString>;
1497
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
1498
+ expert: z.ZodDiscriminatedUnion<[z.ZodObject<{
1499
+ id: z.ZodCUID2;
1500
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1501
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1502
+ minRuntimeVersion: z.ZodEnum<{
1503
+ "v1.0": "v1.0";
1504
+ }>;
1505
+ description: z.ZodString;
1506
+ owner: z.ZodObject<{
1507
+ name: z.ZodOptional<z.ZodString>;
1508
+ organizationId: z.ZodCUID2;
1509
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1510
+ }, z.core.$strip>;
1511
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1512
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1513
+ type: z.ZodLiteral<"expertDigest">;
1514
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1515
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1516
+ }, z.core.$strip>, z.ZodObject<{
1517
+ id: z.ZodCUID2;
1518
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1519
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1520
+ minRuntimeVersion: z.ZodEnum<{
1521
+ "v1.0": "v1.0";
1522
+ }>;
1523
+ description: z.ZodString;
1524
+ owner: z.ZodObject<{
1525
+ name: z.ZodOptional<z.ZodString>;
1526
+ organizationId: z.ZodCUID2;
1527
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1528
+ }, z.core.$strip>;
1529
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1530
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1531
+ type: z.ZodLiteral<"registryExpert">;
1532
+ version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1533
+ status: z.ZodUnion<readonly [z.ZodLiteral<"available">, z.ZodLiteral<"deprecated">, z.ZodLiteral<"disabled">]>;
1534
+ instruction: z.ZodString;
1535
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1536
+ type: z.ZodLiteral<"mcpStdioSkill">;
1537
+ description: z.ZodString;
1538
+ rule: z.ZodOptional<z.ZodString>;
1539
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
1540
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
1541
+ command: z.ZodEnum<{
1542
+ npx: "npx";
1543
+ uvx: "uvx";
1544
+ }>;
1545
+ packageName: z.ZodString;
1546
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
1547
+ }, z.core.$strip>, z.ZodObject<{
1548
+ type: z.ZodLiteral<"mcpSseSkill">;
1549
+ description: z.ZodString;
1550
+ rule: z.ZodOptional<z.ZodString>;
1551
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
1552
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
1553
+ endpoint: z.ZodString;
1554
+ }, z.core.$strip>, z.ZodObject<{
1555
+ type: z.ZodLiteral<"interactiveSkill">;
1556
+ description: z.ZodString;
1557
+ rule: z.ZodOptional<z.ZodString>;
1558
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
1559
+ description: z.ZodString;
1560
+ inputJsonSchema: z.ZodString;
1561
+ }, z.core.$strip>>;
1562
+ }, z.core.$strip>], "type">>;
1563
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1564
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1565
+ }, z.core.$strip>, z.ZodObject<{
1566
+ id: z.ZodCUID2;
1567
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1568
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1569
+ minRuntimeVersion: z.ZodEnum<{
1570
+ "v1.0": "v1.0";
1571
+ }>;
1572
+ description: z.ZodString;
1573
+ owner: z.ZodObject<{
1574
+ name: z.ZodOptional<z.ZodString>;
1575
+ organizationId: z.ZodCUID2;
1576
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1577
+ }, z.core.$strip>;
1578
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1579
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1580
+ type: z.ZodLiteral<"studioExpert">;
1581
+ instruction: z.ZodString;
1582
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1583
+ type: z.ZodLiteral<"mcpStdioSkill">;
1584
+ description: z.ZodString;
1585
+ rule: z.ZodOptional<z.ZodString>;
1586
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
1587
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
1588
+ command: z.ZodEnum<{
1589
+ npx: "npx";
1590
+ uvx: "uvx";
1591
+ }>;
1592
+ packageName: z.ZodString;
1593
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
1594
+ }, z.core.$strip>, z.ZodObject<{
1595
+ type: z.ZodLiteral<"mcpSseSkill">;
1596
+ description: z.ZodString;
1597
+ rule: z.ZodOptional<z.ZodString>;
1598
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
1599
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
1600
+ endpoint: z.ZodString;
1601
+ }, z.core.$strip>, z.ZodObject<{
1602
+ type: z.ZodLiteral<"interactiveSkill">;
1603
+ description: z.ZodString;
1604
+ rule: z.ZodOptional<z.ZodString>;
1605
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
1606
+ description: z.ZodString;
1607
+ inputJsonSchema: z.ZodString;
1608
+ }, z.core.$strip>>;
1609
+ }, z.core.$strip>], "type">>;
1610
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1611
+ forkFrom: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1612
+ application: z.ZodObject<{
1613
+ type: z.ZodLiteral<"application">;
1614
+ id: z.ZodCUID2;
1615
+ organizationId: z.ZodCUID2;
1616
+ organization: z.ZodObject<{
1617
+ type: z.ZodLiteral<"organization">;
1618
+ id: z.ZodCUID2;
1619
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1620
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1621
+ name: z.ZodOptional<z.ZodString>;
1622
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
1623
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
1624
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
1625
+ maxApplications: z.ZodNumber;
1626
+ maxApiKeys: z.ZodNumber;
1627
+ maxStudioExperts: z.ZodNumber;
1628
+ }, z.core.$strip>;
1629
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1630
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1631
+ name: z.ZodString;
1632
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
1633
+ }, z.core.$strip>;
1634
+ }, z.core.$strip>], "type">;
1635
+ model: z.ZodString;
1636
+ temperature: z.ZodOptional<z.ZodNumber>;
1637
+ maxSteps: z.ZodOptional<z.ZodNumber>;
1638
+ maxRetries: z.ZodOptional<z.ZodNumber>;
1639
+ currentStep: z.ZodOptional<z.ZodNumber>;
1640
+ totalSteps: z.ZodOptional<z.ZodNumber>;
1641
+ totalDuration: z.ZodOptional<z.ZodNumber>;
1642
+ usage: z.ZodObject<{
1643
+ inputTokens: z.ZodNumber;
1644
+ outputTokens: z.ZodNumber;
1645
+ reasoningTokens: z.ZodNumber;
1646
+ totalTokens: z.ZodNumber;
1647
+ cachedInputTokens: z.ZodNumber;
1648
+ }, z.core.$strip>;
1649
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1650
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1651
+ applicationId: z.ZodCUID2;
1652
+ }, z.core.$strip>;
1653
+ type ApiExpertJob = z.infer<typeof apiExpertJobSchema>;
1654
+
1655
+ /**
1656
+ * Start an expert job
1657
+ */
1658
+ declare const startExpertJobInput: z.ZodObject<{
1659
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1660
+ query: z.ZodOptional<z.ZodString>;
1661
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
1662
+ model: z.ZodString;
1663
+ temperature: z.ZodOptional<z.ZodNumber>;
1664
+ maxSteps: z.ZodOptional<z.ZodNumber>;
1665
+ maxRetries: z.ZodOptional<z.ZodNumber>;
1666
+ }, z.core.$strip>;
1667
+ type StartExpertJobInput = z.input<typeof startExpertJobInput>;
1668
+ declare function startExpertJob(input: StartExpertJobInput, client: ApiV1Client): Promise<{
1669
+ expertJob: ApiExpertJob;
1670
+ }>;
1671
+ /**
1672
+ * Continue an expert job
1673
+ */
1674
+ declare const continueExpertJobInput: z.ZodObject<{
1675
+ expertJobId: z.ZodCUID2;
1676
+ query: z.ZodOptional<z.ZodString>;
1677
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
1678
+ model: z.ZodString;
1679
+ temperature: z.ZodOptional<z.ZodNumber>;
1680
+ maxSteps: z.ZodOptional<z.ZodNumber>;
1681
+ maxRetries: z.ZodOptional<z.ZodNumber>;
1682
+ }, z.core.$strip>;
1683
+ type ContinueExpertJobInput = z.input<typeof continueExpertJobInput>;
1684
+ declare function continueExpertJob(input: ContinueExpertJobInput, client: ApiV1Client): Promise<{
1685
+ expertJob: ApiExpertJob;
1686
+ }>;
1687
+ /**
1688
+ * Resume an expert job from a checkpoint
1689
+ */
1690
+ declare const resumeExpertJobFromCheckpointInput: z.ZodObject<{
1691
+ expertJobId: z.ZodCUID2;
1692
+ checkpointId: z.ZodCUID2;
1693
+ query: z.ZodOptional<z.ZodString>;
1694
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
1695
+ model: z.ZodString;
1696
+ temperature: z.ZodOptional<z.ZodNumber>;
1697
+ maxSteps: z.ZodOptional<z.ZodNumber>;
1698
+ maxRetries: z.ZodOptional<z.ZodNumber>;
1699
+ }, z.core.$strip>;
1700
+ type ResumeExpertJobFromCheckpointInput = z.input<typeof resumeExpertJobFromCheckpointInput>;
1701
+ declare function resumeExpertJobFromCheckpoint(input: ResumeExpertJobFromCheckpointInput, client: ApiV1Client): Promise<{
1702
+ expertJob: ApiExpertJob;
1703
+ }>;
1704
+ /**
1705
+ * Retrieve an expert job
1706
+ */
1707
+ declare const getExpertJobInput: z.ZodObject<{
1708
+ expertJobId: z.ZodCUID2;
1709
+ }, z.core.$strip>;
1710
+ type GetExpertJobInput = z.input<typeof getExpertJobInput>;
1711
+ declare function getExpertJob(input: GetExpertJobInput, client: ApiV1Client): Promise<{
1712
+ expertJob: ApiExpertJob;
1713
+ }>;
1714
+ /**
1715
+ * Retrieve multiple expert jobs
1716
+ */
1717
+ declare const getExpertJobsInput: z.ZodObject<{
1718
+ take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
1719
+ skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
1720
+ sort: z.ZodOptional<z.ZodString>;
1721
+ order: z.ZodOptional<z.ZodString>;
1722
+ filter: z.ZodOptional<z.ZodString>;
1723
+ }, z.core.$strip>;
1724
+ type GetExpertJobsInput = z.input<typeof getExpertJobsInput>;
1725
+ declare function getExpertJobs(input: GetExpertJobsInput, client: ApiV1Client): Promise<{
1726
+ expertJobs: ApiExpertJob[];
1727
+ total: number;
1728
+ take: number;
1729
+ skip: number;
1730
+ }>;
1731
+ /**
1732
+ * Update an expert job
1733
+ */
1734
+ declare const updateExpertJobInput: z.ZodObject<{
1735
+ expertJobId: z.ZodCUID2;
1736
+ status: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"processing">, z.ZodLiteral<"completed">, z.ZodLiteral<"requestInteractiveToolResult">, z.ZodLiteral<"requestDelegateResult">, z.ZodLiteral<"exceededMaxSteps">, z.ZodLiteral<"failed">, z.ZodLiteral<"canceling">, z.ZodLiteral<"canceled">, z.ZodLiteral<"expired">]>;
1737
+ }, z.core.$strip>;
1738
+ type UpdateExpertJobInput = z.input<typeof updateExpertJobInput>;
1739
+ declare function updateExpertJob(input: UpdateExpertJobInput, client: ApiV1Client): Promise<{
1740
+ expertJob: ApiExpertJob;
1741
+ }>;
1742
+ /**
1743
+ * Create a checkpoint
1744
+ */
1745
+ declare const createCheckpointInput: z.ZodObject<{
1746
+ expertJobId: z.ZodCUID2;
1747
+ checkpoint: z.ZodObject<{
1748
+ type: z.ZodLiteral<"checkpoint">;
1749
+ id: z.ZodCUID2;
1750
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1751
+ type: z.ZodLiteral<"retry">;
1752
+ error: z.ZodString;
1753
+ message: z.ZodString;
1754
+ }, z.core.$strip>, z.ZodObject<{
1755
+ error: z.ZodOptional<z.ZodString>;
1756
+ type: z.ZodLiteral<"attemptCompletion">;
1757
+ result: z.ZodString;
1758
+ }, z.core.$strip>, z.ZodObject<{
1759
+ error: z.ZodOptional<z.ZodString>;
1760
+ type: z.ZodLiteral<"think">;
1761
+ thought: z.ZodString;
1762
+ }, z.core.$strip>, z.ZodObject<{
1763
+ error: z.ZodOptional<z.ZodString>;
1764
+ type: z.ZodLiteral<"todo">;
1765
+ newTodos: z.ZodArray<z.ZodString>;
1766
+ completedTodos: z.ZodArray<z.ZodNumber>;
1767
+ todos: z.ZodArray<z.ZodObject<{
1768
+ id: z.ZodNumber;
1769
+ title: z.ZodString;
1770
+ completed: z.ZodBoolean;
1771
+ }, z.core.$strip>>;
1772
+ }, z.core.$strip>, z.ZodObject<{
1773
+ error: z.ZodOptional<z.ZodString>;
1774
+ type: z.ZodLiteral<"readImageFile">;
1775
+ path: z.ZodString;
1776
+ mimeType: z.ZodOptional<z.ZodString>;
1777
+ size: z.ZodOptional<z.ZodNumber>;
1778
+ }, z.core.$strip>, z.ZodObject<{
1779
+ error: z.ZodOptional<z.ZodString>;
1780
+ type: z.ZodLiteral<"readPdfFile">;
1781
+ path: z.ZodString;
1782
+ mimeType: z.ZodOptional<z.ZodString>;
1783
+ size: z.ZodOptional<z.ZodNumber>;
1784
+ }, z.core.$strip>, z.ZodObject<{
1785
+ error: z.ZodOptional<z.ZodString>;
1786
+ type: z.ZodLiteral<"readTextFile">;
1787
+ path: z.ZodString;
1788
+ content: z.ZodString;
1789
+ from: z.ZodOptional<z.ZodNumber>;
1790
+ to: z.ZodOptional<z.ZodNumber>;
1791
+ }, z.core.$strip>, z.ZodObject<{
1792
+ error: z.ZodOptional<z.ZodString>;
1793
+ type: z.ZodLiteral<"editTextFile">;
1794
+ path: z.ZodString;
1795
+ newText: z.ZodOptional<z.ZodString>;
1796
+ oldText: z.ZodOptional<z.ZodString>;
1797
+ }, z.core.$strip>, z.ZodObject<{
1798
+ error: z.ZodOptional<z.ZodString>;
1799
+ type: z.ZodLiteral<"appendTextFile">;
1800
+ path: z.ZodString;
1801
+ text: z.ZodString;
1802
+ }, z.core.$strip>, z.ZodObject<{
1803
+ error: z.ZodOptional<z.ZodString>;
1804
+ type: z.ZodLiteral<"deleteFile">;
1805
+ path: z.ZodString;
1806
+ }, z.core.$strip>, z.ZodObject<{
1807
+ error: z.ZodOptional<z.ZodString>;
1808
+ type: z.ZodLiteral<"moveFile">;
1809
+ source: z.ZodString;
1810
+ destination: z.ZodString;
1811
+ }, z.core.$strip>, z.ZodObject<{
1812
+ error: z.ZodOptional<z.ZodString>;
1813
+ type: z.ZodLiteral<"getFileInfo">;
1814
+ path: z.ZodString;
1815
+ exists: z.ZodBoolean;
1816
+ absolutePath: z.ZodString;
1817
+ name: z.ZodString;
1818
+ directory: z.ZodString;
1819
+ extension: z.ZodOptional<z.ZodString>;
1820
+ mimeType: z.ZodOptional<z.ZodString>;
1821
+ size: z.ZodNumber;
1822
+ sizeFormatted: z.ZodString;
1823
+ created: z.ZodDate;
1824
+ modified: z.ZodDate;
1825
+ accessed: z.ZodDate;
1826
+ permissions: z.ZodObject<{
1827
+ readable: z.ZodBoolean;
1828
+ writable: z.ZodBoolean;
1829
+ executable: z.ZodBoolean;
1830
+ }, z.core.$strip>;
1831
+ workspaceItem: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1832
+ id: z.ZodCUID2;
1833
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
1834
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
1835
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
1836
+ path: z.ZodString;
1837
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1838
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1839
+ type: z.ZodLiteral<"workspaceItemDirectory">;
1840
+ }, z.core.$strip>, z.ZodObject<{
1841
+ id: z.ZodCUID2;
1842
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
1843
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
1844
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
1845
+ path: z.ZodString;
1846
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1847
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1848
+ type: z.ZodLiteral<"workspaceItemFile">;
1849
+ key: z.ZodString;
1850
+ mimeType: z.ZodString;
1851
+ size: z.ZodNumber;
1852
+ }, z.core.$strip>], "type">>;
1853
+ }, z.core.$strip>, z.ZodObject<{
1854
+ error: z.ZodOptional<z.ZodString>;
1855
+ type: z.ZodLiteral<"writeTextFile">;
1856
+ path: z.ZodString;
1857
+ text: z.ZodString;
1858
+ }, z.core.$strip>, z.ZodObject<{
1859
+ error: z.ZodOptional<z.ZodString>;
1860
+ type: z.ZodLiteral<"createDirectory">;
1861
+ path: z.ZodString;
1862
+ }, z.core.$strip>, z.ZodObject<{
1863
+ error: z.ZodOptional<z.ZodString>;
1864
+ type: z.ZodLiteral<"listDirectory">;
1865
+ path: z.ZodString;
1866
+ items: z.ZodArray<z.ZodObject<{
1867
+ name: z.ZodString;
1868
+ path: z.ZodString;
1869
+ type: z.ZodUnion<readonly [z.ZodLiteral<"directory">, z.ZodLiteral<"file">]>;
1870
+ size: z.ZodNumber;
1871
+ modified: z.ZodDate;
1872
+ }, z.core.$strip>>;
1873
+ }, z.core.$strip>, z.ZodObject<{
1874
+ error: z.ZodOptional<z.ZodString>;
1875
+ type: z.ZodLiteral<"testUrl">;
1876
+ results: z.ZodArray<z.ZodObject<{
1877
+ url: z.ZodString;
1878
+ status: z.ZodNumber;
1879
+ title: z.ZodString;
1880
+ description: z.ZodString;
1881
+ }, z.core.$strip>>;
1882
+ }, z.core.$strip>, z.ZodObject<{
1883
+ error: z.ZodOptional<z.ZodString>;
1884
+ type: z.ZodLiteral<"delegate">;
1885
+ delegateTo: z.ZodObject<{
1886
+ id: z.ZodCUID2;
1887
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1888
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1889
+ minRuntimeVersion: z.ZodEnum<{
1890
+ "v1.0": "v1.0";
1891
+ }>;
1892
+ description: z.ZodString;
1893
+ owner: z.ZodObject<{
1894
+ name: z.ZodOptional<z.ZodString>;
1895
+ organizationId: z.ZodCUID2;
1896
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1897
+ }, z.core.$strip>;
1898
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1899
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1900
+ type: z.ZodLiteral<"expertDigest">;
1901
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1902
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1903
+ }, z.core.$strip>;
1904
+ query: z.ZodString;
1905
+ }, z.core.$strip>, z.ZodObject<{
1906
+ error: z.ZodOptional<z.ZodString>;
1907
+ type: z.ZodLiteral<"generalTool">;
1908
+ skillName: z.ZodString;
1909
+ toolName: z.ZodString;
1910
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1911
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1912
+ id: z.ZodString;
1913
+ type: z.ZodLiteral<"textPart">;
1914
+ text: z.ZodString;
1915
+ }, z.core.$strip>, z.ZodObject<{
1916
+ id: z.ZodString;
1917
+ type: z.ZodLiteral<"imageUrlPart">;
1918
+ url: z.ZodURL;
1919
+ mimeType: z.ZodString;
1920
+ }, z.core.$strip>, z.ZodObject<{
1921
+ id: z.ZodString;
1922
+ type: z.ZodLiteral<"imageInlinePart">;
1923
+ encodedData: z.ZodString;
1924
+ mimeType: z.ZodString;
1925
+ }, z.core.$strip>, z.ZodObject<{
1926
+ id: z.ZodString;
1927
+ type: z.ZodLiteral<"imageBinaryPart">;
1928
+ data: z.ZodString;
1929
+ mimeType: z.ZodString;
1930
+ }, z.core.$strip>, z.ZodObject<{
1931
+ id: z.ZodString;
1932
+ type: z.ZodLiteral<"fileUrlPart">;
1933
+ url: z.ZodString;
1934
+ mimeType: z.ZodString;
1935
+ }, z.core.$strip>, z.ZodObject<{
1936
+ id: z.ZodString;
1937
+ type: z.ZodLiteral<"fileInlinePart">;
1938
+ encodedData: z.ZodString;
1939
+ mimeType: z.ZodString;
1940
+ }, z.core.$strip>, z.ZodObject<{
1941
+ id: z.ZodString;
1942
+ type: z.ZodLiteral<"fileBinaryPart">;
1943
+ data: z.ZodString;
1944
+ mimeType: z.ZodString;
1945
+ }, z.core.$strip>, z.ZodObject<{
1946
+ id: z.ZodString;
1947
+ type: z.ZodLiteral<"toolCallPart">;
1948
+ toolCallId: z.ZodString;
1949
+ toolName: z.ZodString;
1950
+ args: z.ZodUnknown;
1951
+ }, z.core.$strip>, z.ZodObject<{
1952
+ id: z.ZodString;
1953
+ type: z.ZodLiteral<"toolResultPart">;
1954
+ toolCallId: z.ZodString;
1955
+ toolName: z.ZodString;
1956
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1957
+ id: z.ZodString;
1958
+ type: z.ZodLiteral<"textPart">;
1959
+ text: z.ZodString;
1960
+ }, z.core.$strip>, z.ZodObject<{
1961
+ id: z.ZodString;
1962
+ type: z.ZodLiteral<"imageInlinePart">;
1963
+ encodedData: z.ZodString;
1964
+ mimeType: z.ZodString;
1965
+ }, z.core.$strip>]>>;
1966
+ isError: z.ZodOptional<z.ZodBoolean>;
1967
+ }, z.core.$strip>], "type">>;
1968
+ }, z.core.$strip>, z.ZodObject<{
1969
+ error: z.ZodOptional<z.ZodString>;
1970
+ type: z.ZodLiteral<"error">;
1971
+ }, z.core.$strip>], "type">;
1972
+ expertJobId: z.ZodCUID2;
1973
+ stepNumber: z.ZodNumber;
1974
+ status: z.ZodUnion<readonly [z.ZodLiteral<"init">, z.ZodLiteral<"proceeding">, z.ZodLiteral<"completed">, z.ZodLiteral<"stoppedByInteractiveTool">, z.ZodLiteral<"stoppedByDelegate">, z.ZodLiteral<"stoppedByExceededMaxSteps">, z.ZodLiteral<"stoppedByError">]>;
1975
+ expert: z.ZodObject<{
1976
+ id: z.ZodCUID2;
1977
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1978
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1979
+ minRuntimeVersion: z.ZodEnum<{
1980
+ "v1.0": "v1.0";
1981
+ }>;
1982
+ description: z.ZodString;
1983
+ owner: z.ZodObject<{
1984
+ name: z.ZodOptional<z.ZodString>;
1985
+ organizationId: z.ZodCUID2;
1986
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1987
+ }, z.core.$strip>;
1988
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1989
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
1990
+ type: z.ZodLiteral<"expertDigest">;
1991
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1992
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1993
+ }, z.core.$strip>;
1994
+ skillName: z.ZodOptional<z.ZodString>;
1995
+ toolName: z.ZodOptional<z.ZodString>;
1996
+ delegateTo: z.ZodOptional<z.ZodObject<{
1997
+ expert: z.ZodObject<{
1998
+ id: z.ZodCUID2;
1999
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2000
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2001
+ minRuntimeVersion: z.ZodEnum<{
2002
+ "v1.0": "v1.0";
2003
+ }>;
2004
+ description: z.ZodString;
2005
+ owner: z.ZodObject<{
2006
+ name: z.ZodOptional<z.ZodString>;
2007
+ organizationId: z.ZodCUID2;
2008
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2009
+ }, z.core.$strip>;
2010
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2011
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2012
+ type: z.ZodLiteral<"expertDigest">;
2013
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2014
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2015
+ }, z.core.$strip>;
2016
+ toolCallId: z.ZodString;
2017
+ toolName: z.ZodString;
2018
+ }, z.core.$strip>>;
2019
+ delegatedBy: z.ZodOptional<z.ZodObject<{
2020
+ expert: z.ZodObject<{
2021
+ id: z.ZodCUID2;
2022
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2023
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2024
+ minRuntimeVersion: z.ZodEnum<{
2025
+ "v1.0": "v1.0";
2026
+ }>;
2027
+ description: z.ZodString;
2028
+ owner: z.ZodObject<{
2029
+ name: z.ZodOptional<z.ZodString>;
2030
+ organizationId: z.ZodCUID2;
2031
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2032
+ }, z.core.$strip>;
2033
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2034
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2035
+ type: z.ZodLiteral<"expertDigest">;
2036
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2037
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2038
+ }, z.core.$strip>;
2039
+ toolCallId: z.ZodString;
2040
+ toolName: z.ZodString;
2041
+ checkpointId: z.ZodCUID2;
2042
+ }, z.core.$strip>>;
2043
+ inputMessages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2044
+ id: z.ZodString;
2045
+ type: z.ZodLiteral<"instructionMessage">;
2046
+ contents: z.ZodArray<z.ZodObject<{
2047
+ id: z.ZodString;
2048
+ type: z.ZodLiteral<"textPart">;
2049
+ text: z.ZodString;
2050
+ }, z.core.$strip>>;
2051
+ cache: z.ZodOptional<z.ZodBoolean>;
2052
+ }, z.core.$strip>, z.ZodObject<{
2053
+ id: z.ZodString;
2054
+ type: z.ZodLiteral<"userMessage">;
2055
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2056
+ id: z.ZodString;
2057
+ type: z.ZodLiteral<"textPart">;
2058
+ text: z.ZodString;
2059
+ }, z.core.$strip>, z.ZodObject<{
2060
+ id: z.ZodString;
2061
+ type: z.ZodLiteral<"imageUrlPart">;
2062
+ url: z.ZodURL;
2063
+ mimeType: z.ZodString;
2064
+ }, z.core.$strip>, z.ZodObject<{
2065
+ id: z.ZodString;
2066
+ type: z.ZodLiteral<"imageInlinePart">;
2067
+ encodedData: z.ZodString;
2068
+ mimeType: z.ZodString;
2069
+ }, z.core.$strip>, z.ZodObject<{
2070
+ id: z.ZodString;
2071
+ type: z.ZodLiteral<"imageBinaryPart">;
2072
+ data: z.ZodString;
2073
+ mimeType: z.ZodString;
2074
+ }, z.core.$strip>, z.ZodObject<{
2075
+ id: z.ZodString;
2076
+ type: z.ZodLiteral<"fileUrlPart">;
2077
+ url: z.ZodString;
2078
+ mimeType: z.ZodString;
2079
+ }, z.core.$strip>, z.ZodObject<{
2080
+ id: z.ZodString;
2081
+ type: z.ZodLiteral<"fileInlinePart">;
2082
+ encodedData: z.ZodString;
2083
+ mimeType: z.ZodString;
2084
+ }, z.core.$strip>, z.ZodObject<{
2085
+ id: z.ZodString;
2086
+ type: z.ZodLiteral<"fileBinaryPart">;
2087
+ data: z.ZodString;
2088
+ mimeType: z.ZodString;
2089
+ }, z.core.$strip>]>>;
2090
+ cache: z.ZodOptional<z.ZodBoolean>;
2091
+ }, z.core.$strip>, z.ZodObject<{
2092
+ id: z.ZodString;
2093
+ type: z.ZodLiteral<"toolMessage">;
2094
+ contents: z.ZodArray<z.ZodObject<{
2095
+ id: z.ZodString;
2096
+ type: z.ZodLiteral<"toolResultPart">;
2097
+ toolCallId: z.ZodString;
2098
+ toolName: z.ZodString;
2099
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2100
+ id: z.ZodString;
2101
+ type: z.ZodLiteral<"textPart">;
2102
+ text: z.ZodString;
2103
+ }, z.core.$strip>, z.ZodObject<{
2104
+ id: z.ZodString;
2105
+ type: z.ZodLiteral<"imageInlinePart">;
2106
+ encodedData: z.ZodString;
2107
+ mimeType: z.ZodString;
2108
+ }, z.core.$strip>]>>;
2109
+ isError: z.ZodOptional<z.ZodBoolean>;
2110
+ }, z.core.$strip>>;
2111
+ cache: z.ZodOptional<z.ZodBoolean>;
2112
+ }, z.core.$strip>]>>>;
2113
+ messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2114
+ id: z.ZodString;
2115
+ type: z.ZodLiteral<"instructionMessage">;
2116
+ contents: z.ZodArray<z.ZodObject<{
2117
+ id: z.ZodString;
2118
+ type: z.ZodLiteral<"textPart">;
2119
+ text: z.ZodString;
2120
+ }, z.core.$strip>>;
2121
+ cache: z.ZodOptional<z.ZodBoolean>;
2122
+ }, z.core.$strip>, z.ZodObject<{
2123
+ id: z.ZodString;
2124
+ type: z.ZodLiteral<"userMessage">;
2125
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2126
+ id: z.ZodString;
2127
+ type: z.ZodLiteral<"textPart">;
2128
+ text: z.ZodString;
2129
+ }, z.core.$strip>, z.ZodObject<{
2130
+ id: z.ZodString;
2131
+ type: z.ZodLiteral<"imageUrlPart">;
2132
+ url: z.ZodURL;
2133
+ mimeType: z.ZodString;
2134
+ }, z.core.$strip>, z.ZodObject<{
2135
+ id: z.ZodString;
2136
+ type: z.ZodLiteral<"imageInlinePart">;
2137
+ encodedData: z.ZodString;
2138
+ mimeType: z.ZodString;
2139
+ }, z.core.$strip>, z.ZodObject<{
2140
+ id: z.ZodString;
2141
+ type: z.ZodLiteral<"imageBinaryPart">;
2142
+ data: z.ZodString;
2143
+ mimeType: z.ZodString;
2144
+ }, z.core.$strip>, z.ZodObject<{
2145
+ id: z.ZodString;
2146
+ type: z.ZodLiteral<"fileUrlPart">;
2147
+ url: z.ZodString;
2148
+ mimeType: z.ZodString;
2149
+ }, z.core.$strip>, z.ZodObject<{
2150
+ id: z.ZodString;
2151
+ type: z.ZodLiteral<"fileInlinePart">;
2152
+ encodedData: z.ZodString;
2153
+ mimeType: z.ZodString;
2154
+ }, z.core.$strip>, z.ZodObject<{
2155
+ id: z.ZodString;
2156
+ type: z.ZodLiteral<"fileBinaryPart">;
2157
+ data: z.ZodString;
2158
+ mimeType: z.ZodString;
2159
+ }, z.core.$strip>]>>;
2160
+ cache: z.ZodOptional<z.ZodBoolean>;
2161
+ }, z.core.$strip>, z.ZodObject<{
2162
+ id: z.ZodString;
2163
+ type: z.ZodLiteral<"expertMessage">;
2164
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2165
+ id: z.ZodString;
2166
+ type: z.ZodLiteral<"textPart">;
2167
+ text: z.ZodString;
2168
+ }, z.core.$strip>, z.ZodObject<{
2169
+ id: z.ZodString;
2170
+ type: z.ZodLiteral<"toolCallPart">;
2171
+ toolCallId: z.ZodString;
2172
+ toolName: z.ZodString;
2173
+ args: z.ZodUnknown;
2174
+ }, z.core.$strip>]>>;
2175
+ cache: z.ZodOptional<z.ZodBoolean>;
2176
+ }, z.core.$strip>, z.ZodObject<{
2177
+ id: z.ZodString;
2178
+ type: z.ZodLiteral<"toolMessage">;
2179
+ contents: z.ZodArray<z.ZodObject<{
2180
+ id: z.ZodString;
2181
+ type: z.ZodLiteral<"toolResultPart">;
2182
+ toolCallId: z.ZodString;
2183
+ toolName: z.ZodString;
2184
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2185
+ id: z.ZodString;
2186
+ type: z.ZodLiteral<"textPart">;
2187
+ text: z.ZodString;
2188
+ }, z.core.$strip>, z.ZodObject<{
2189
+ id: z.ZodString;
2190
+ type: z.ZodLiteral<"imageInlinePart">;
2191
+ encodedData: z.ZodString;
2192
+ mimeType: z.ZodString;
2193
+ }, z.core.$strip>]>>;
2194
+ isError: z.ZodOptional<z.ZodBoolean>;
2195
+ }, z.core.$strip>>;
2196
+ cache: z.ZodOptional<z.ZodBoolean>;
2197
+ }, z.core.$strip>]>>;
2198
+ newMessages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2199
+ id: z.ZodString;
2200
+ type: z.ZodLiteral<"instructionMessage">;
2201
+ contents: z.ZodArray<z.ZodObject<{
2202
+ id: z.ZodString;
2203
+ type: z.ZodLiteral<"textPart">;
2204
+ text: z.ZodString;
2205
+ }, z.core.$strip>>;
2206
+ cache: z.ZodOptional<z.ZodBoolean>;
2207
+ }, z.core.$strip>, z.ZodObject<{
2208
+ id: z.ZodString;
2209
+ type: z.ZodLiteral<"userMessage">;
2210
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2211
+ id: z.ZodString;
2212
+ type: z.ZodLiteral<"textPart">;
2213
+ text: z.ZodString;
2214
+ }, z.core.$strip>, z.ZodObject<{
2215
+ id: z.ZodString;
2216
+ type: z.ZodLiteral<"imageUrlPart">;
2217
+ url: z.ZodURL;
2218
+ mimeType: z.ZodString;
2219
+ }, z.core.$strip>, z.ZodObject<{
2220
+ id: z.ZodString;
2221
+ type: z.ZodLiteral<"imageInlinePart">;
2222
+ encodedData: z.ZodString;
2223
+ mimeType: z.ZodString;
2224
+ }, z.core.$strip>, z.ZodObject<{
2225
+ id: z.ZodString;
2226
+ type: z.ZodLiteral<"imageBinaryPart">;
2227
+ data: z.ZodString;
2228
+ mimeType: z.ZodString;
2229
+ }, z.core.$strip>, z.ZodObject<{
2230
+ id: z.ZodString;
2231
+ type: z.ZodLiteral<"fileUrlPart">;
2232
+ url: z.ZodString;
2233
+ mimeType: z.ZodString;
2234
+ }, z.core.$strip>, z.ZodObject<{
2235
+ id: z.ZodString;
2236
+ type: z.ZodLiteral<"fileInlinePart">;
2237
+ encodedData: z.ZodString;
2238
+ mimeType: z.ZodString;
2239
+ }, z.core.$strip>, z.ZodObject<{
2240
+ id: z.ZodString;
2241
+ type: z.ZodLiteral<"fileBinaryPart">;
2242
+ data: z.ZodString;
2243
+ mimeType: z.ZodString;
2244
+ }, z.core.$strip>]>>;
2245
+ cache: z.ZodOptional<z.ZodBoolean>;
2246
+ }, z.core.$strip>, z.ZodObject<{
2247
+ id: z.ZodString;
2248
+ type: z.ZodLiteral<"expertMessage">;
2249
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2250
+ id: z.ZodString;
2251
+ type: z.ZodLiteral<"textPart">;
2252
+ text: z.ZodString;
2253
+ }, z.core.$strip>, z.ZodObject<{
2254
+ id: z.ZodString;
2255
+ type: z.ZodLiteral<"toolCallPart">;
2256
+ toolCallId: z.ZodString;
2257
+ toolName: z.ZodString;
2258
+ args: z.ZodUnknown;
2259
+ }, z.core.$strip>]>>;
2260
+ cache: z.ZodOptional<z.ZodBoolean>;
2261
+ }, z.core.$strip>, z.ZodObject<{
2262
+ id: z.ZodString;
2263
+ type: z.ZodLiteral<"toolMessage">;
2264
+ contents: z.ZodArray<z.ZodObject<{
2265
+ id: z.ZodString;
2266
+ type: z.ZodLiteral<"toolResultPart">;
2267
+ toolCallId: z.ZodString;
2268
+ toolName: z.ZodString;
2269
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2270
+ id: z.ZodString;
2271
+ type: z.ZodLiteral<"textPart">;
2272
+ text: z.ZodString;
2273
+ }, z.core.$strip>, z.ZodObject<{
2274
+ id: z.ZodString;
2275
+ type: z.ZodLiteral<"imageInlinePart">;
2276
+ encodedData: z.ZodString;
2277
+ mimeType: z.ZodString;
2278
+ }, z.core.$strip>]>>;
2279
+ isError: z.ZodOptional<z.ZodBoolean>;
2280
+ }, z.core.$strip>>;
2281
+ cache: z.ZodOptional<z.ZodBoolean>;
2282
+ }, z.core.$strip>]>>;
2283
+ toolCall: z.ZodOptional<z.ZodObject<{
2284
+ id: z.ZodString;
2285
+ skillName: z.ZodString;
2286
+ toolName: z.ZodString;
2287
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2288
+ }, z.core.$strip>>;
2289
+ toolResult: z.ZodOptional<z.ZodObject<{
2290
+ id: z.ZodString;
2291
+ skillName: z.ZodString;
2292
+ toolName: z.ZodString;
2293
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2294
+ id: z.ZodString;
2295
+ type: z.ZodLiteral<"textPart">;
2296
+ text: z.ZodString;
2297
+ }, z.core.$strip>, z.ZodObject<{
2298
+ id: z.ZodString;
2299
+ type: z.ZodLiteral<"imageUrlPart">;
2300
+ url: z.ZodURL;
2301
+ mimeType: z.ZodString;
2302
+ }, z.core.$strip>, z.ZodObject<{
2303
+ id: z.ZodString;
2304
+ type: z.ZodLiteral<"imageInlinePart">;
2305
+ encodedData: z.ZodString;
2306
+ mimeType: z.ZodString;
2307
+ }, z.core.$strip>, z.ZodObject<{
2308
+ id: z.ZodString;
2309
+ type: z.ZodLiteral<"imageBinaryPart">;
2310
+ data: z.ZodString;
2311
+ mimeType: z.ZodString;
2312
+ }, z.core.$strip>, z.ZodObject<{
2313
+ id: z.ZodString;
2314
+ type: z.ZodLiteral<"fileUrlPart">;
2315
+ url: z.ZodString;
2316
+ mimeType: z.ZodString;
2317
+ }, z.core.$strip>, z.ZodObject<{
2318
+ id: z.ZodString;
2319
+ type: z.ZodLiteral<"fileInlinePart">;
2320
+ encodedData: z.ZodString;
2321
+ mimeType: z.ZodString;
2322
+ }, z.core.$strip>, z.ZodObject<{
2323
+ id: z.ZodString;
2324
+ type: z.ZodLiteral<"fileBinaryPart">;
2325
+ data: z.ZodString;
2326
+ mimeType: z.ZodString;
2327
+ }, z.core.$strip>, z.ZodObject<{
2328
+ id: z.ZodString;
2329
+ type: z.ZodLiteral<"toolCallPart">;
2330
+ toolCallId: z.ZodString;
2331
+ toolName: z.ZodString;
2332
+ args: z.ZodUnknown;
2333
+ }, z.core.$strip>, z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ type: z.ZodLiteral<"toolResultPart">;
2336
+ toolCallId: z.ZodString;
2337
+ toolName: z.ZodString;
2338
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2339
+ id: z.ZodString;
2340
+ type: z.ZodLiteral<"textPart">;
2341
+ text: z.ZodString;
2342
+ }, z.core.$strip>, z.ZodObject<{
2343
+ id: z.ZodString;
2344
+ type: z.ZodLiteral<"imageInlinePart">;
2345
+ encodedData: z.ZodString;
2346
+ mimeType: z.ZodString;
2347
+ }, z.core.$strip>]>>;
2348
+ isError: z.ZodOptional<z.ZodBoolean>;
2349
+ }, z.core.$strip>], "type">>;
2350
+ }, z.core.$strip>>;
2351
+ usage: z.ZodObject<{
2352
+ inputTokens: z.ZodNumber;
2353
+ outputTokens: z.ZodNumber;
2354
+ reasoningTokens: z.ZodNumber;
2355
+ totalTokens: z.ZodNumber;
2356
+ cachedInputTokens: z.ZodNumber;
2357
+ }, z.core.$strip>;
2358
+ contextWindow: z.ZodNumber;
2359
+ contextWindowUsage: z.ZodNumber;
2360
+ startedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2361
+ finishedAt: z.ZodOptional<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
2362
+ }, z.core.$strip>;
2363
+ step: z.ZodObject<{
2364
+ stepNumber: z.ZodNumber;
2365
+ inputMessages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2366
+ id: z.ZodString;
2367
+ type: z.ZodLiteral<"instructionMessage">;
2368
+ contents: z.ZodArray<z.ZodObject<{
2369
+ id: z.ZodString;
2370
+ type: z.ZodLiteral<"textPart">;
2371
+ text: z.ZodString;
2372
+ }, z.core.$strip>>;
2373
+ cache: z.ZodOptional<z.ZodBoolean>;
2374
+ }, z.core.$strip>, z.ZodObject<{
2375
+ id: z.ZodString;
2376
+ type: z.ZodLiteral<"userMessage">;
2377
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2378
+ id: z.ZodString;
2379
+ type: z.ZodLiteral<"textPart">;
2380
+ text: z.ZodString;
2381
+ }, z.core.$strip>, z.ZodObject<{
2382
+ id: z.ZodString;
2383
+ type: z.ZodLiteral<"imageUrlPart">;
2384
+ url: z.ZodURL;
2385
+ mimeType: z.ZodString;
2386
+ }, z.core.$strip>, z.ZodObject<{
2387
+ id: z.ZodString;
2388
+ type: z.ZodLiteral<"imageInlinePart">;
2389
+ encodedData: z.ZodString;
2390
+ mimeType: z.ZodString;
2391
+ }, z.core.$strip>, z.ZodObject<{
2392
+ id: z.ZodString;
2393
+ type: z.ZodLiteral<"imageBinaryPart">;
2394
+ data: z.ZodString;
2395
+ mimeType: z.ZodString;
2396
+ }, z.core.$strip>, z.ZodObject<{
2397
+ id: z.ZodString;
2398
+ type: z.ZodLiteral<"fileUrlPart">;
2399
+ url: z.ZodString;
2400
+ mimeType: z.ZodString;
2401
+ }, z.core.$strip>, z.ZodObject<{
2402
+ id: z.ZodString;
2403
+ type: z.ZodLiteral<"fileInlinePart">;
2404
+ encodedData: z.ZodString;
2405
+ mimeType: z.ZodString;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ id: z.ZodString;
2408
+ type: z.ZodLiteral<"fileBinaryPart">;
2409
+ data: z.ZodString;
2410
+ mimeType: z.ZodString;
2411
+ }, z.core.$strip>]>>;
2412
+ cache: z.ZodOptional<z.ZodBoolean>;
2413
+ }, z.core.$strip>, z.ZodObject<{
2414
+ id: z.ZodString;
2415
+ type: z.ZodLiteral<"toolMessage">;
2416
+ contents: z.ZodArray<z.ZodObject<{
2417
+ id: z.ZodString;
2418
+ type: z.ZodLiteral<"toolResultPart">;
2419
+ toolCallId: z.ZodString;
2420
+ toolName: z.ZodString;
2421
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2422
+ id: z.ZodString;
2423
+ type: z.ZodLiteral<"textPart">;
2424
+ text: z.ZodString;
2425
+ }, z.core.$strip>, z.ZodObject<{
2426
+ id: z.ZodString;
2427
+ type: z.ZodLiteral<"imageInlinePart">;
2428
+ encodedData: z.ZodString;
2429
+ mimeType: z.ZodString;
2430
+ }, z.core.$strip>]>>;
2431
+ isError: z.ZodOptional<z.ZodBoolean>;
2432
+ }, z.core.$strip>>;
2433
+ cache: z.ZodOptional<z.ZodBoolean>;
2434
+ }, z.core.$strip>]>>>;
2435
+ newMessages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2436
+ id: z.ZodString;
2437
+ type: z.ZodLiteral<"instructionMessage">;
2438
+ contents: z.ZodArray<z.ZodObject<{
2439
+ id: z.ZodString;
2440
+ type: z.ZodLiteral<"textPart">;
2441
+ text: z.ZodString;
2442
+ }, z.core.$strip>>;
2443
+ cache: z.ZodOptional<z.ZodBoolean>;
2444
+ }, z.core.$strip>, z.ZodObject<{
2445
+ id: z.ZodString;
2446
+ type: z.ZodLiteral<"userMessage">;
2447
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2448
+ id: z.ZodString;
2449
+ type: z.ZodLiteral<"textPart">;
2450
+ text: z.ZodString;
2451
+ }, z.core.$strip>, z.ZodObject<{
2452
+ id: z.ZodString;
2453
+ type: z.ZodLiteral<"imageUrlPart">;
2454
+ url: z.ZodURL;
2455
+ mimeType: z.ZodString;
2456
+ }, z.core.$strip>, z.ZodObject<{
2457
+ id: z.ZodString;
2458
+ type: z.ZodLiteral<"imageInlinePart">;
2459
+ encodedData: z.ZodString;
2460
+ mimeType: z.ZodString;
2461
+ }, z.core.$strip>, z.ZodObject<{
2462
+ id: z.ZodString;
2463
+ type: z.ZodLiteral<"imageBinaryPart">;
2464
+ data: z.ZodString;
2465
+ mimeType: z.ZodString;
2466
+ }, z.core.$strip>, z.ZodObject<{
2467
+ id: z.ZodString;
2468
+ type: z.ZodLiteral<"fileUrlPart">;
2469
+ url: z.ZodString;
2470
+ mimeType: z.ZodString;
2471
+ }, z.core.$strip>, z.ZodObject<{
2472
+ id: z.ZodString;
2473
+ type: z.ZodLiteral<"fileInlinePart">;
2474
+ encodedData: z.ZodString;
2475
+ mimeType: z.ZodString;
2476
+ }, z.core.$strip>, z.ZodObject<{
2477
+ id: z.ZodString;
2478
+ type: z.ZodLiteral<"fileBinaryPart">;
2479
+ data: z.ZodString;
2480
+ mimeType: z.ZodString;
2481
+ }, z.core.$strip>]>>;
2482
+ cache: z.ZodOptional<z.ZodBoolean>;
2483
+ }, z.core.$strip>, z.ZodObject<{
2484
+ id: z.ZodString;
2485
+ type: z.ZodLiteral<"expertMessage">;
2486
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2487
+ id: z.ZodString;
2488
+ type: z.ZodLiteral<"textPart">;
2489
+ text: z.ZodString;
2490
+ }, z.core.$strip>, z.ZodObject<{
2491
+ id: z.ZodString;
2492
+ type: z.ZodLiteral<"toolCallPart">;
2493
+ toolCallId: z.ZodString;
2494
+ toolName: z.ZodString;
2495
+ args: z.ZodUnknown;
2496
+ }, z.core.$strip>]>>;
2497
+ cache: z.ZodOptional<z.ZodBoolean>;
2498
+ }, z.core.$strip>, z.ZodObject<{
2499
+ id: z.ZodString;
2500
+ type: z.ZodLiteral<"toolMessage">;
2501
+ contents: z.ZodArray<z.ZodObject<{
2502
+ id: z.ZodString;
2503
+ type: z.ZodLiteral<"toolResultPart">;
2504
+ toolCallId: z.ZodString;
2505
+ toolName: z.ZodString;
2506
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2507
+ id: z.ZodString;
2508
+ type: z.ZodLiteral<"textPart">;
2509
+ text: z.ZodString;
2510
+ }, z.core.$strip>, z.ZodObject<{
2511
+ id: z.ZodString;
2512
+ type: z.ZodLiteral<"imageInlinePart">;
2513
+ encodedData: z.ZodString;
2514
+ mimeType: z.ZodString;
2515
+ }, z.core.$strip>]>>;
2516
+ isError: z.ZodOptional<z.ZodBoolean>;
2517
+ }, z.core.$strip>>;
2518
+ cache: z.ZodOptional<z.ZodBoolean>;
2519
+ }, z.core.$strip>]>>;
2520
+ toolCall: z.ZodOptional<z.ZodObject<{
2521
+ id: z.ZodString;
2522
+ skillName: z.ZodString;
2523
+ toolName: z.ZodString;
2524
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2525
+ }, z.core.$strip>>;
2526
+ toolResult: z.ZodOptional<z.ZodObject<{
2527
+ id: z.ZodString;
2528
+ skillName: z.ZodString;
2529
+ toolName: z.ZodString;
2530
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2531
+ id: z.ZodString;
2532
+ type: z.ZodLiteral<"textPart">;
2533
+ text: z.ZodString;
2534
+ }, z.core.$strip>, z.ZodObject<{
2535
+ id: z.ZodString;
2536
+ type: z.ZodLiteral<"imageUrlPart">;
2537
+ url: z.ZodURL;
2538
+ mimeType: z.ZodString;
2539
+ }, z.core.$strip>, z.ZodObject<{
2540
+ id: z.ZodString;
2541
+ type: z.ZodLiteral<"imageInlinePart">;
2542
+ encodedData: z.ZodString;
2543
+ mimeType: z.ZodString;
2544
+ }, z.core.$strip>, z.ZodObject<{
2545
+ id: z.ZodString;
2546
+ type: z.ZodLiteral<"imageBinaryPart">;
2547
+ data: z.ZodString;
2548
+ mimeType: z.ZodString;
2549
+ }, z.core.$strip>, z.ZodObject<{
2550
+ id: z.ZodString;
2551
+ type: z.ZodLiteral<"fileUrlPart">;
2552
+ url: z.ZodString;
2553
+ mimeType: z.ZodString;
2554
+ }, z.core.$strip>, z.ZodObject<{
2555
+ id: z.ZodString;
2556
+ type: z.ZodLiteral<"fileInlinePart">;
2557
+ encodedData: z.ZodString;
2558
+ mimeType: z.ZodString;
2559
+ }, z.core.$strip>, z.ZodObject<{
2560
+ id: z.ZodString;
2561
+ type: z.ZodLiteral<"fileBinaryPart">;
2562
+ data: z.ZodString;
2563
+ mimeType: z.ZodString;
2564
+ }, z.core.$strip>, z.ZodObject<{
2565
+ id: z.ZodString;
2566
+ type: z.ZodLiteral<"toolCallPart">;
2567
+ toolCallId: z.ZodString;
2568
+ toolName: z.ZodString;
2569
+ args: z.ZodUnknown;
2570
+ }, z.core.$strip>, z.ZodObject<{
2571
+ id: z.ZodString;
2572
+ type: z.ZodLiteral<"toolResultPart">;
2573
+ toolCallId: z.ZodString;
2574
+ toolName: z.ZodString;
2575
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2576
+ id: z.ZodString;
2577
+ type: z.ZodLiteral<"textPart">;
2578
+ text: z.ZodString;
2579
+ }, z.core.$strip>, z.ZodObject<{
2580
+ id: z.ZodString;
2581
+ type: z.ZodLiteral<"imageInlinePart">;
2582
+ encodedData: z.ZodString;
2583
+ mimeType: z.ZodString;
2584
+ }, z.core.$strip>]>>;
2585
+ isError: z.ZodOptional<z.ZodBoolean>;
2586
+ }, z.core.$strip>], "type">>;
2587
+ }, z.core.$strip>>;
2588
+ usage: z.ZodObject<{
2589
+ inputTokens: z.ZodNumber;
2590
+ outputTokens: z.ZodNumber;
2591
+ reasoningTokens: z.ZodNumber;
2592
+ totalTokens: z.ZodNumber;
2593
+ cachedInputTokens: z.ZodNumber;
2594
+ }, z.core.$strip>;
2595
+ startedAt: z.ZodDate;
2596
+ finishedAt: z.ZodOptional<z.ZodDate>;
2597
+ }, z.core.$strip>;
2598
+ }, z.core.$strip>;
2599
+ type CreateCheckpointInput = z.input<typeof createCheckpointInput>;
2600
+ declare function createCheckpoint(input: CreateCheckpointInput, client: ApiV1Client): Promise<{
2601
+ checkpoint: ApiCheckpoint;
2602
+ }>;
2603
+ /**
2604
+ * Retrieve a checkpoint
2605
+ */
2606
+ declare const getCheckpointInput: z.ZodObject<{
2607
+ expertJobId: z.ZodCUID2;
2608
+ checkpointId: z.ZodCUID2;
2609
+ }, z.core.$strip>;
2610
+ type GetCheckpointInput = z.input<typeof getCheckpointInput>;
2611
+ declare function getCheckpoint(input: GetCheckpointInput, client: ApiV1Client): Promise<{
2612
+ checkpoint: ApiCheckpoint;
2613
+ }>;
2614
+ /**
2615
+ * Retrieve multiple checkpoints
2616
+ */
2617
+ declare const getCheckpointsInput: z.ZodObject<{
2618
+ expertJobId: z.ZodCUID2;
2619
+ take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
2620
+ skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
2621
+ sort: z.ZodOptional<z.ZodString>;
2622
+ order: z.ZodOptional<z.ZodString>;
2623
+ filter: z.ZodOptional<z.ZodString>;
2624
+ }, z.core.$strip>;
2625
+ type GetCheckpointsInput = z.input<typeof getCheckpointsInput>;
2626
+ declare function getCheckpoints(input: GetCheckpointsInput, client: ApiV1Client): Promise<{
2627
+ checkpoints: ApiCheckpoint[];
2628
+ total: number;
2629
+ take: number;
2630
+ skip: number;
2631
+ }>;
2632
+
2633
+ /**
2634
+ * Create a studio expert
2635
+ */
2636
+ declare const createStudioExpertInput: z.ZodObject<{
2637
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2638
+ minRuntimeVersion: z.ZodEnum<{
2639
+ "v1.0": "v1.0";
2640
+ }>;
2641
+ description: z.ZodString;
2642
+ instruction: z.ZodString;
2643
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2644
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2645
+ type: z.ZodLiteral<"mcpStdioSkill">;
2646
+ description: z.ZodString;
2647
+ rule: z.ZodOptional<z.ZodString>;
2648
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2649
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2650
+ command: z.ZodEnum<{
2651
+ npx: "npx";
2652
+ uvx: "uvx";
2653
+ }>;
2654
+ packageName: z.ZodString;
2655
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
2656
+ }, z.core.$strip>, z.ZodObject<{
2657
+ type: z.ZodLiteral<"mcpSseSkill">;
2658
+ description: z.ZodString;
2659
+ rule: z.ZodOptional<z.ZodString>;
2660
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2661
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2662
+ endpoint: z.ZodString;
2663
+ }, z.core.$strip>, z.ZodObject<{
2664
+ type: z.ZodLiteral<"interactiveSkill">;
2665
+ description: z.ZodString;
2666
+ rule: z.ZodOptional<z.ZodString>;
2667
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
2668
+ description: z.ZodString;
2669
+ inputJsonSchema: z.ZodString;
2670
+ }, z.core.$strip>>;
2671
+ }, z.core.$strip>], "type">>;
2672
+ forkFrom: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2673
+ }, z.core.$strip>;
2674
+ type CreateStudioExpertInput = z.input<typeof createStudioExpertInput>;
2675
+ declare function createStudioExpert(input: CreateStudioExpertInput, client: ApiV1Client): Promise<{
2676
+ expert: ApiStudioExpert;
2677
+ }>;
2678
+ /**
2679
+ * Retrieve a studio expert
2680
+ */
2681
+ declare const getStudioExpertInput: z.ZodObject<{
2682
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2683
+ }, z.core.$strip>;
2684
+ type GetStudioExpertInput = z.input<typeof getStudioExpertInput>;
2685
+ declare function getStudioExpert(input: GetStudioExpertInput, client: ApiV1Client): Promise<{
2686
+ expert: ApiStudioExpert;
2687
+ }>;
2688
+ /**
2689
+ * Retrieve studio experts
2690
+ */
2691
+ declare const getStudioExpertsInput: z.ZodObject<{
2692
+ take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
2693
+ skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
2694
+ sort: z.ZodOptional<z.ZodString>;
2695
+ order: z.ZodOptional<z.ZodString>;
2696
+ filter: z.ZodOptional<z.ZodString>;
2697
+ }, z.core.$strip>;
2698
+ type GetStudioExpertsInput = z.input<typeof getStudioExpertsInput>;
2699
+ declare function getStudioExperts(input: GetStudioExpertsInput, client: ApiV1Client): Promise<{
2700
+ experts: ApiStudioExpert[];
2701
+ total: number;
2702
+ take: number;
2703
+ skip: number;
2704
+ }>;
2705
+ /**
2706
+ * Update a studio expert
2707
+ */
2708
+ declare const updateStudioExpertInput: z.ZodObject<{
2709
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2710
+ minRuntimeVersion: z.ZodEnum<{
2711
+ "v1.0": "v1.0";
2712
+ }>;
2713
+ description: z.ZodString;
2714
+ instruction: z.ZodString;
2715
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2716
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2717
+ type: z.ZodLiteral<"mcpStdioSkill">;
2718
+ description: z.ZodString;
2719
+ rule: z.ZodOptional<z.ZodString>;
2720
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2721
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2722
+ command: z.ZodEnum<{
2723
+ npx: "npx";
2724
+ uvx: "uvx";
2725
+ }>;
2726
+ packageName: z.ZodString;
2727
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
2728
+ }, z.core.$strip>, z.ZodObject<{
2729
+ type: z.ZodLiteral<"mcpSseSkill">;
2730
+ description: z.ZodString;
2731
+ rule: z.ZodOptional<z.ZodString>;
2732
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2733
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2734
+ endpoint: z.ZodString;
2735
+ }, z.core.$strip>, z.ZodObject<{
2736
+ type: z.ZodLiteral<"interactiveSkill">;
2737
+ description: z.ZodString;
2738
+ rule: z.ZodOptional<z.ZodString>;
2739
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
2740
+ description: z.ZodString;
2741
+ inputJsonSchema: z.ZodString;
2742
+ }, z.core.$strip>>;
2743
+ }, z.core.$strip>], "type">>;
2744
+ forkFrom: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2745
+ }, z.core.$strip>;
2746
+ type UpdateStudioExpertInput = z.input<typeof updateStudioExpertInput>;
2747
+ declare function updateStudioExpert(input: UpdateStudioExpertInput, client: ApiV1Client): Promise<{
2748
+ expert: ApiStudioExpert;
2749
+ }>;
2750
+ /**
2751
+ * Delete a studio expert
2752
+ */
2753
+ declare const deleteStudioExpertInput: z.ZodObject<{
2754
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2755
+ }, z.core.$strip>;
2756
+ type DeleteStudioExpertInput = z.input<typeof deleteStudioExpertInput>;
2757
+ declare function deleteStudioExpert(input: DeleteStudioExpertInput, client: ApiV1Client): Promise<void>;
2758
+
2759
+ declare const apiWorkspaceInstanceSchema: z.ZodObject<{
2760
+ type: z.ZodLiteral<"workspaceInstance">;
2761
+ id: z.ZodCUID2;
2762
+ applicationId: z.ZodCUID2;
2763
+ application: z.ZodObject<{
2764
+ type: z.ZodLiteral<"application">;
2765
+ id: z.ZodCUID2;
2766
+ organizationId: z.ZodCUID2;
2767
+ organization: z.ZodObject<{
2768
+ type: z.ZodLiteral<"organization">;
2769
+ id: z.ZodCUID2;
2770
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2771
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2772
+ name: z.ZodOptional<z.ZodString>;
2773
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
2774
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
2775
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
2776
+ maxApplications: z.ZodNumber;
2777
+ maxApiKeys: z.ZodNumber;
2778
+ maxStudioExperts: z.ZodNumber;
2779
+ }, z.core.$strip>;
2780
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2781
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2782
+ name: z.ZodString;
2783
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
2784
+ }, z.core.$strip>;
2785
+ expertJob: z.ZodObject<{
2786
+ type: z.ZodLiteral<"expertJob">;
2787
+ id: z.ZodCUID2;
2788
+ status: z.ZodUnion<readonly [z.ZodLiteral<"queued">, z.ZodLiteral<"processing">, z.ZodLiteral<"completed">, z.ZodLiteral<"requestInteractiveToolResult">, z.ZodLiteral<"requestDelegateResult">, z.ZodLiteral<"exceededMaxSteps">, z.ZodLiteral<"failed">, z.ZodLiteral<"canceling">, z.ZodLiteral<"canceled">, z.ZodLiteral<"expired">]>;
2789
+ runtimeVersion: z.ZodEnum<{
2790
+ "v1.0": "v1.0";
2791
+ }>;
2792
+ expertKey: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2793
+ query: z.ZodOptional<z.ZodString>;
2794
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
2795
+ expert: z.ZodDiscriminatedUnion<[z.ZodObject<{
2796
+ id: z.ZodCUID2;
2797
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2798
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2799
+ minRuntimeVersion: z.ZodEnum<{
2800
+ "v1.0": "v1.0";
2801
+ }>;
2802
+ description: z.ZodString;
2803
+ owner: z.ZodObject<{
2804
+ name: z.ZodOptional<z.ZodString>;
2805
+ organizationId: z.ZodCUID2;
2806
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2807
+ }, z.core.$strip>;
2808
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2809
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2810
+ type: z.ZodLiteral<"expertDigest">;
2811
+ version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2812
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2813
+ }, z.core.$strip>, z.ZodObject<{
2814
+ id: z.ZodCUID2;
2815
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2816
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2817
+ minRuntimeVersion: z.ZodEnum<{
2818
+ "v1.0": "v1.0";
2819
+ }>;
2820
+ description: z.ZodString;
2821
+ owner: z.ZodObject<{
2822
+ name: z.ZodOptional<z.ZodString>;
2823
+ organizationId: z.ZodCUID2;
2824
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2825
+ }, z.core.$strip>;
2826
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2827
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2828
+ type: z.ZodLiteral<"registryExpert">;
2829
+ version: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2830
+ status: z.ZodUnion<readonly [z.ZodLiteral<"available">, z.ZodLiteral<"deprecated">, z.ZodLiteral<"disabled">]>;
2831
+ instruction: z.ZodString;
2832
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2833
+ type: z.ZodLiteral<"mcpStdioSkill">;
2834
+ description: z.ZodString;
2835
+ rule: z.ZodOptional<z.ZodString>;
2836
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2837
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2838
+ command: z.ZodEnum<{
2839
+ npx: "npx";
2840
+ uvx: "uvx";
2841
+ }>;
2842
+ packageName: z.ZodString;
2843
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
2844
+ }, z.core.$strip>, z.ZodObject<{
2845
+ type: z.ZodLiteral<"mcpSseSkill">;
2846
+ description: z.ZodString;
2847
+ rule: z.ZodOptional<z.ZodString>;
2848
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2849
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2850
+ endpoint: z.ZodString;
2851
+ }, z.core.$strip>, z.ZodObject<{
2852
+ type: z.ZodLiteral<"interactiveSkill">;
2853
+ description: z.ZodString;
2854
+ rule: z.ZodOptional<z.ZodString>;
2855
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
2856
+ description: z.ZodString;
2857
+ inputJsonSchema: z.ZodString;
2858
+ }, z.core.$strip>>;
2859
+ }, z.core.$strip>], "type">>;
2860
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2861
+ tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2862
+ }, z.core.$strip>, z.ZodObject<{
2863
+ id: z.ZodCUID2;
2864
+ key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2865
+ name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2866
+ minRuntimeVersion: z.ZodEnum<{
2867
+ "v1.0": "v1.0";
2868
+ }>;
2869
+ description: z.ZodString;
2870
+ owner: z.ZodObject<{
2871
+ name: z.ZodOptional<z.ZodString>;
2872
+ organizationId: z.ZodCUID2;
2873
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2874
+ }, z.core.$strip>;
2875
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2876
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2877
+ type: z.ZodLiteral<"studioExpert">;
2878
+ instruction: z.ZodString;
2879
+ skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2880
+ type: z.ZodLiteral<"mcpStdioSkill">;
2881
+ description: z.ZodString;
2882
+ rule: z.ZodOptional<z.ZodString>;
2883
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2884
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2885
+ command: z.ZodEnum<{
2886
+ npx: "npx";
2887
+ uvx: "uvx";
2888
+ }>;
2889
+ packageName: z.ZodString;
2890
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
2891
+ }, z.core.$strip>, z.ZodObject<{
2892
+ type: z.ZodLiteral<"mcpSseSkill">;
2893
+ description: z.ZodString;
2894
+ rule: z.ZodOptional<z.ZodString>;
2895
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
2896
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
2897
+ endpoint: z.ZodString;
2898
+ }, z.core.$strip>, z.ZodObject<{
2899
+ type: z.ZodLiteral<"interactiveSkill">;
2900
+ description: z.ZodString;
2901
+ rule: z.ZodOptional<z.ZodString>;
2902
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
2903
+ description: z.ZodString;
2904
+ inputJsonSchema: z.ZodString;
2905
+ }, z.core.$strip>>;
2906
+ }, z.core.$strip>], "type">>;
2907
+ delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2908
+ forkFrom: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2909
+ application: z.ZodObject<{
2910
+ type: z.ZodLiteral<"application">;
2911
+ id: z.ZodCUID2;
2912
+ organizationId: z.ZodCUID2;
2913
+ organization: z.ZodObject<{
2914
+ type: z.ZodLiteral<"organization">;
2915
+ id: z.ZodCUID2;
2916
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2917
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2918
+ name: z.ZodOptional<z.ZodString>;
2919
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
2920
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
2921
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
2922
+ maxApplications: z.ZodNumber;
2923
+ maxApiKeys: z.ZodNumber;
2924
+ maxStudioExperts: z.ZodNumber;
2925
+ }, z.core.$strip>;
2926
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2927
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2928
+ name: z.ZodString;
2929
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
2930
+ }, z.core.$strip>;
2931
+ }, z.core.$strip>], "type">;
2932
+ model: z.ZodString;
2933
+ temperature: z.ZodOptional<z.ZodNumber>;
2934
+ maxSteps: z.ZodOptional<z.ZodNumber>;
2935
+ maxRetries: z.ZodOptional<z.ZodNumber>;
2936
+ currentStep: z.ZodOptional<z.ZodNumber>;
2937
+ totalSteps: z.ZodOptional<z.ZodNumber>;
2938
+ totalDuration: z.ZodOptional<z.ZodNumber>;
2939
+ usage: z.ZodObject<{
2940
+ inputTokens: z.ZodNumber;
2941
+ outputTokens: z.ZodNumber;
2942
+ reasoningTokens: z.ZodNumber;
2943
+ totalTokens: z.ZodNumber;
2944
+ cachedInputTokens: z.ZodNumber;
2945
+ }, z.core.$strip>;
2946
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2947
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2948
+ applicationId: z.ZodCUID2;
2949
+ }, z.core.$strip>;
2950
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2951
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2952
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2953
+ id: z.ZodCUID2;
2954
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2955
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2956
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2957
+ path: z.ZodString;
2958
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2959
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2960
+ type: z.ZodLiteral<"workspaceItemDirectory">;
2961
+ }, z.core.$strip>, z.ZodObject<{
2962
+ id: z.ZodCUID2;
2963
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2964
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2965
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2966
+ path: z.ZodString;
2967
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2968
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2969
+ type: z.ZodLiteral<"workspaceItemFile">;
2970
+ key: z.ZodString;
2971
+ mimeType: z.ZodString;
2972
+ size: z.ZodNumber;
2973
+ }, z.core.$strip>], "type">>;
2974
+ countItems: z.ZodNumber;
2975
+ envVariables: z.ZodArray<z.ZodString>;
2976
+ envSecrets: z.ZodArray<z.ZodString>;
2977
+ }, z.core.$strip>;
2978
+ type ApiWorkspaceInstance = z.infer<typeof apiWorkspaceInstanceSchema>;
2979
+
2980
+ declare const apiWorkspaceItemOwnerSchema: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2981
+ type ApiWorkspaceItemOwner = z.infer<typeof apiWorkspaceItemOwnerSchema>;
2982
+ declare const apiWorkspaceItemLifecycleSchema: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2983
+ type ApiWorkspaceItemLifecycle = z.infer<typeof apiWorkspaceItemLifecycleSchema>;
2984
+ declare const apiWorkspaceItemPermissionSchema: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2985
+ type ApiWorkspaceItemPermission = z.infer<typeof apiWorkspaceItemPermissionSchema>;
2986
+ declare const apiBaseWorkspaceItemSchema: z.ZodObject<{
2987
+ id: z.ZodCUID2;
2988
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2989
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2990
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2991
+ path: z.ZodString;
2992
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2993
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2994
+ }, z.core.$strip>;
2995
+ declare const apiWorkspaceItemDirectorySchema: z.ZodObject<{
2996
+ id: z.ZodCUID2;
2997
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2998
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2999
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3000
+ path: z.ZodString;
3001
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3002
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3003
+ type: z.ZodLiteral<"workspaceItemDirectory">;
3004
+ }, z.core.$strip>;
3005
+ type ApiWorkspaceItemDirectory = z.infer<typeof apiWorkspaceItemDirectorySchema>;
3006
+ declare const apiWorkspaceItemFileSchema: z.ZodObject<{
3007
+ id: z.ZodCUID2;
3008
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
3009
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
3010
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3011
+ path: z.ZodString;
3012
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3013
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3014
+ type: z.ZodLiteral<"workspaceItemFile">;
3015
+ key: z.ZodString;
3016
+ mimeType: z.ZodString;
3017
+ size: z.ZodNumber;
3018
+ }, z.core.$strip>;
3019
+ type ApiWorkspaceItemFile = z.infer<typeof apiWorkspaceItemFileSchema>;
3020
+ declare const apiWorkspaceItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3021
+ id: z.ZodCUID2;
3022
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
3023
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
3024
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3025
+ path: z.ZodString;
3026
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3027
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3028
+ type: z.ZodLiteral<"workspaceItemDirectory">;
3029
+ }, z.core.$strip>, z.ZodObject<{
3030
+ id: z.ZodCUID2;
3031
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
3032
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
3033
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3034
+ path: z.ZodString;
3035
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3036
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3037
+ type: z.ZodLiteral<"workspaceItemFile">;
3038
+ key: z.ZodString;
3039
+ mimeType: z.ZodString;
3040
+ size: z.ZodNumber;
3041
+ }, z.core.$strip>], "type">;
3042
+ type ApiWorkspaceItem = z.infer<typeof apiWorkspaceItemSchema>;
3043
+
3044
+ /**
3045
+ * Retrieve the workspace instance
3046
+ */
3047
+ declare const getWorkspaceInstanceInput: z.ZodObject<{
3048
+ expertJobId: z.ZodString;
3049
+ }, z.core.$strip>;
3050
+ type GetWorkspaceInstanceInput = z.input<typeof getWorkspaceInstanceInput>;
3051
+ declare function getWorkspaceInstance(input: GetWorkspaceInstanceInput, client: ApiV1Client): Promise<{
3052
+ workspaceInstance: ApiWorkspaceInstance;
3053
+ }>;
3054
+ /**
3055
+ * Create a workspace instance item
3056
+ */
3057
+ declare const createWorkspaceInstanceItemInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3058
+ type: z.ZodLiteral<"workspaceItemDirectory">;
3059
+ expertJobId: z.ZodCUID2;
3060
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3061
+ path: z.ZodString;
3062
+ }, z.core.$strip>, z.ZodObject<{
3063
+ type: z.ZodLiteral<"workspaceItemFile">;
3064
+ expertJobId: z.ZodCUID2;
3065
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3066
+ path: z.ZodString;
3067
+ file: z.ZodCustom<buffer.File, buffer.File>;
3068
+ }, z.core.$strip>], "type">;
3069
+ type CreateWorkspaceInstanceItemInput = z.input<typeof createWorkspaceInstanceItemInput>;
3070
+ declare function createWorkspaceInstanceItem(input: CreateWorkspaceInstanceItemInput, client: ApiV1Client): Promise<{
3071
+ workspaceItem: ApiWorkspaceItem;
3072
+ }>;
3073
+ /**
3074
+ * Retrieve a workspace instance item
3075
+ */
3076
+ declare const getWorkspaceInstanceItemInput: z.ZodObject<{
3077
+ expertJobId: z.ZodString;
3078
+ itemId: z.ZodString;
3079
+ }, z.core.$strip>;
3080
+ type GetWorkspaceInstanceItemInput = z.input<typeof getWorkspaceInstanceItemInput>;
3081
+ declare function getWorkspaceInstanceItem(input: GetWorkspaceInstanceItemInput, client: ApiV1Client): Promise<{
3082
+ workspaceItem: ApiWorkspaceItem;
3083
+ }>;
3084
+ /**
3085
+ * Retrieve multiple workspace instance items
3086
+ */
3087
+ declare const getWorkspaceInstanceItemsInput: z.ZodObject<{
3088
+ expertJobId: z.ZodString;
3089
+ take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
3090
+ skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
3091
+ }, z.core.$strip>;
3092
+ type GetWorkspaceInstanceItemsInput = z.input<typeof getWorkspaceInstanceItemsInput>;
3093
+ declare function getWorkspaceInstanceItems(input: GetWorkspaceInstanceItemsInput, client: ApiV1Client): Promise<{
3094
+ workspaceItems: ApiWorkspaceItem[];
3095
+ total: number;
3096
+ take: number;
3097
+ skip: number;
3098
+ }>;
3099
+ /**
3100
+ * Download a workspace instance item
3101
+ */
3102
+ declare const downloadWorkspaceInstanceItemInput: z.ZodObject<{
3103
+ expertJobId: z.ZodString;
3104
+ itemId: z.ZodString;
3105
+ }, z.core.$strip>;
3106
+ type DownloadWorkspaceInstanceItemInput = z.input<typeof downloadWorkspaceInstanceItemInput>;
3107
+ declare function downloadWorkspaceInstanceItem(input: DownloadWorkspaceInstanceItemInput, client: ApiV1Client): Promise<Blob>;
3108
+ /**
3109
+ * Update a workspace instance item
3110
+ */
3111
+ declare const updateWorkspaceInstanceItemInput: z.ZodObject<{
3112
+ expertJobId: z.ZodCUID2;
3113
+ itemId: z.ZodString;
3114
+ permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>>;
3115
+ path: z.ZodOptional<z.ZodString>;
3116
+ lifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>>;
3117
+ }, z.core.$strip>;
3118
+ type UpdateWorkspaceInstanceItemInput = z.input<typeof updateWorkspaceInstanceItemInput>;
3119
+ declare function updateWorkspaceInstanceItem(input: UpdateWorkspaceInstanceItemInput, client: ApiV1Client): Promise<{
3120
+ workspaceItem: ApiWorkspaceItem;
3121
+ }>;
3122
+ /**
3123
+ * Delete a workspace instance item
3124
+ */
3125
+ declare const deleteWorkspaceInstanceItemInput: z.ZodObject<{
3126
+ expertJobId: z.ZodCUID2;
3127
+ itemId: z.ZodString;
3128
+ }, z.core.$strip>;
3129
+ type DeleteWorkspaceInstanceItemInput = z.input<typeof deleteWorkspaceInstanceItemInput>;
3130
+ declare function deleteWorkspaceInstanceItem(input: DeleteWorkspaceInstanceItemInput, client: ApiV1Client): Promise<void>;
3131
+
3132
+ declare const apiWorkspaceSchema: z.ZodObject<{
3133
+ type: z.ZodLiteral<"workspace">;
3134
+ id: z.ZodCUID2;
3135
+ applicationId: z.ZodCUID2;
3136
+ application: z.ZodObject<{
3137
+ type: z.ZodLiteral<"application">;
3138
+ id: z.ZodCUID2;
3139
+ organizationId: z.ZodCUID2;
3140
+ organization: z.ZodObject<{
3141
+ type: z.ZodLiteral<"organization">;
3142
+ id: z.ZodCUID2;
3143
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3144
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3145
+ name: z.ZodOptional<z.ZodString>;
3146
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
3147
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3148
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
3149
+ maxApplications: z.ZodNumber;
3150
+ maxApiKeys: z.ZodNumber;
3151
+ maxStudioExperts: z.ZodNumber;
3152
+ }, z.core.$strip>;
3153
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3154
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3155
+ name: z.ZodString;
3156
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3157
+ }, z.core.$strip>;
3158
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3159
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3160
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3161
+ id: z.ZodCUID2;
3162
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
3163
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
3164
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3165
+ path: z.ZodString;
3166
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3167
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3168
+ type: z.ZodLiteral<"workspaceItemDirectory">;
3169
+ }, z.core.$strip>, z.ZodObject<{
3170
+ id: z.ZodCUID2;
3171
+ owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
3172
+ lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
3173
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3174
+ path: z.ZodString;
3175
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3176
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3177
+ type: z.ZodLiteral<"workspaceItemFile">;
3178
+ key: z.ZodString;
3179
+ mimeType: z.ZodString;
3180
+ size: z.ZodNumber;
3181
+ }, z.core.$strip>], "type">>;
3182
+ countItems: z.ZodNumber;
3183
+ envVariables: z.ZodArray<z.ZodString>;
3184
+ envSecrets: z.ZodArray<z.ZodString>;
3185
+ countWorkspaceInstances: z.ZodNumber;
3186
+ }, z.core.$strip>;
3187
+ type ApiWorkspace = z.infer<typeof apiWorkspaceSchema>;
3188
+
3189
+ declare function getWorkspace(client: ApiV1Client): Promise<{
3190
+ workspace: ApiWorkspace;
3191
+ }>;
3192
+ /**
3193
+ * Create a workspace item
3194
+ */
3195
+ declare const createWorkspaceItemInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3196
+ type: z.ZodLiteral<"workspaceItemDirectory">;
3197
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3198
+ path: z.ZodString;
3199
+ }, z.core.$strip>, z.ZodObject<{
3200
+ type: z.ZodLiteral<"workspaceItemFile">;
3201
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3202
+ path: z.ZodString;
3203
+ file: z.ZodCustom<buffer.File, buffer.File>;
3204
+ }, z.core.$strip>], "type">;
3205
+ type CreateWorkspaceItemInput = z.input<typeof createWorkspaceItemInput>;
3206
+ declare function createWorkspaceItem(input: CreateWorkspaceItemInput, client: ApiV1Client): Promise<{
3207
+ workspaceItem: ApiWorkspaceItem;
3208
+ }>;
3209
+ /**
3210
+ * Retrieve a workspace item
3211
+ */
3212
+ declare const getWorkspaceItemInput: z.ZodObject<{
3213
+ itemId: z.ZodString;
3214
+ }, z.core.$strip>;
3215
+ type GetWorkspaceItemInput = z.input<typeof getWorkspaceItemInput>;
3216
+ declare function getWorkspaceItem(input: GetWorkspaceItemInput, client: ApiV1Client): Promise<{
3217
+ workspaceItem: ApiWorkspaceItem;
3218
+ }>;
3219
+ /**
3220
+ * Retrieve multiple workspace items
3221
+ */
3222
+ declare const getWorkspaceItemsInput: z.ZodObject<{
3223
+ take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
3224
+ skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
3225
+ }, z.core.$strip>;
3226
+ type GetWorkspaceItemsInput = z.input<typeof getWorkspaceItemsInput>;
3227
+ declare function getWorkspaceItems(input: GetWorkspaceItemsInput, client: ApiV1Client): Promise<{
3228
+ workspaceItems: ApiWorkspaceItem[];
3229
+ total: number;
3230
+ take: number;
3231
+ skip: number;
3232
+ }>;
3233
+ /**
3234
+ * Download a workspace file item
3235
+ */
3236
+ declare const downloadWorkspaceItemInput: z.ZodObject<{
3237
+ itemId: z.ZodString;
3238
+ }, z.core.$strip>;
3239
+ type DownloadWorkspaceItemInput = z.input<typeof downloadWorkspaceItemInput>;
3240
+ declare function downloadWorkspaceItem(input: DownloadWorkspaceItemInput, client: ApiV1Client): Promise<Blob>;
3241
+ /**
3242
+ * Update a workspace item
3243
+ */
3244
+ declare const updateWorkspaceItemInput: z.ZodObject<{
3245
+ itemId: z.ZodString;
3246
+ permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>>;
3247
+ path: z.ZodOptional<z.ZodString>;
3248
+ lifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>>;
3249
+ }, z.core.$strip>;
3250
+ type UpdateWorkspaceItemInput = z.input<typeof updateWorkspaceItemInput>;
3251
+ declare function updateWorkspaceItem(input: UpdateWorkspaceItemInput, client: ApiV1Client): Promise<{
3252
+ workspaceItem: ApiWorkspaceItem;
3253
+ }>;
3254
+ /**
3255
+ * Delete a workspace item
3256
+ */
3257
+ declare const deleteWorkspaceItemInput: z.ZodObject<{
3258
+ itemId: z.ZodString;
3259
+ }, z.core.$strip>;
3260
+ type DeleteWorkspaceItemInput = z.input<typeof deleteWorkspaceItemInput>;
3261
+ declare function deleteWorkspaceItem(input: DeleteWorkspaceItemInput, client: ApiV1Client): Promise<void>;
3262
+ /**
3263
+ * Create a workspace variable
3264
+ */
3265
+ declare const createWorkspaceVariableInput: z.ZodObject<{
3266
+ name: z.ZodString;
3267
+ value: z.ZodString;
3268
+ }, z.core.$strip>;
3269
+ type CreateWorkspaceVariableInput = z.input<typeof createWorkspaceVariableInput>;
3270
+ declare function createWorkspaceVariable(input: CreateWorkspaceVariableInput, client: ApiV1Client): Promise<{
3271
+ workspace: ApiWorkspace;
3272
+ }>;
3273
+ /**
3274
+ * Update a workspace variable
3275
+ */
3276
+ declare const updateWorkspaceVariableInput: z.ZodObject<{
3277
+ name: z.ZodString;
3278
+ value: z.ZodString;
3279
+ }, z.core.$strip>;
3280
+ type UpdateWorkspaceVariableInput = z.input<typeof updateWorkspaceVariableInput>;
3281
+ declare function updateWorkspaceVariable(input: UpdateWorkspaceVariableInput, client: ApiV1Client): Promise<{
3282
+ workspace: ApiWorkspace;
3283
+ }>;
3284
+ /**
3285
+ * Delete a workspace variable
3286
+ */
3287
+ declare const deleteWorkspaceVariableInput: z.ZodObject<{
3288
+ name: z.ZodString;
3289
+ }, z.core.$strip>;
3290
+ type DeleteWorkspaceVariableInput = z.input<typeof deleteWorkspaceVariableInput>;
3291
+ declare function deleteWorkspaceVariable(input: DeleteWorkspaceVariableInput, client: ApiV1Client): Promise<void>;
3292
+ /**
3293
+ * Create a workspace secret
3294
+ */
3295
+ declare const createWorkspaceSecretInput: z.ZodObject<{
3296
+ name: z.ZodString;
3297
+ value: z.ZodString;
3298
+ }, z.core.$strip>;
3299
+ type CreateWorkspaceSecretInput = z.input<typeof createWorkspaceSecretInput>;
3300
+ declare function createWorkspaceSecret(input: CreateWorkspaceSecretInput, client: ApiV1Client): Promise<{
3301
+ workspace: ApiWorkspace;
3302
+ }>;
3303
+ /**
3304
+ * Delete a workspace secret
3305
+ */
3306
+ declare const deleteWorkspaceSecretInput: z.ZodObject<{
3307
+ name: z.ZodString;
3308
+ }, z.core.$strip>;
3309
+ type DeleteWorkspaceSecretInput = z.input<typeof deleteWorkspaceSecretInput>;
3310
+ declare function deleteWorkspaceSecret(input: DeleteWorkspaceSecretInput, client: ApiV1Client): Promise<void>;
3311
+
3312
+ type ApiV1Config = {
3313
+ baseUrl?: string;
3314
+ apiKey?: string;
3315
+ };
3316
+ declare class ApiV1Client {
3317
+ baseUrl: string;
3318
+ apiKey?: string;
3319
+ constructor(config?: ApiV1Config);
3320
+ request(endpoint: string, init?: RequestInit): Promise<unknown>;
3321
+ requestAuthenticated(endpoint: string, init?: RequestInit): Promise<unknown>;
3322
+ requestBlob(endpoint: string, init?: RequestInit): Promise<Blob>;
3323
+ requestBlobAuthenticated(endpoint: string, init?: RequestInit): Promise<Blob>;
3324
+ registry: {
3325
+ experts: {
3326
+ create: (input: CreateRegistryExpertInput) => Promise<{
3327
+ expert: ApiRegistryExpert;
3328
+ }>;
3329
+ get: (input: GetRegistryExpertInput) => Promise<{
3330
+ expert: ApiRegistryExpert;
3331
+ }>;
3332
+ getMany: (input: GetRegistryExpertsInput) => Promise<{
3333
+ experts: ApiRegistryExpert[];
3334
+ total: number;
3335
+ take: number;
3336
+ skip: number;
3337
+ }>;
3338
+ getVersions: (input: GetRegistryExpertVersionsInput) => Promise<{
3339
+ versions: ApiExpertDigest[];
3340
+ latest: string;
3341
+ total: number;
3342
+ }>;
3343
+ delete: (input: DeleteRegistryExpertInput) => Promise<void>;
3344
+ };
3345
+ };
3346
+ studio: {
3347
+ experts: {
3348
+ create: (input: CreateStudioExpertInput) => Promise<{
3349
+ expert: ApiStudioExpert;
3350
+ }>;
3351
+ get: (input: GetStudioExpertInput) => Promise<{
3352
+ expert: ApiStudioExpert;
3353
+ }>;
3354
+ getMany: (input: GetStudioExpertsInput) => Promise<{
3355
+ experts: ApiStudioExpert[];
3356
+ total: number;
3357
+ take: number;
3358
+ skip: number;
3359
+ }>;
3360
+ update: (input: UpdateStudioExpertInput) => Promise<{
3361
+ expert: ApiStudioExpert;
3362
+ }>;
3363
+ delete: (input: DeleteStudioExpertInput) => Promise<void>;
3364
+ };
3365
+ expertJobs: {
3366
+ start: (input: StartExpertJobInput) => Promise<{
3367
+ expertJob: ApiExpertJob;
3368
+ }>;
3369
+ continue: (input: ContinueExpertJobInput) => Promise<{
3370
+ expertJob: ApiExpertJob;
3371
+ }>;
3372
+ resumeFromCheckpoint: (input: ResumeExpertJobFromCheckpointInput) => Promise<{
3373
+ expertJob: ApiExpertJob;
3374
+ }>;
3375
+ get: (input: GetExpertJobInput) => Promise<{
3376
+ expertJob: ApiExpertJob;
3377
+ }>;
3378
+ getMany: (input: GetExpertJobsInput) => Promise<{
3379
+ expertJobs: ApiExpertJob[];
3380
+ total: number;
3381
+ take: number;
3382
+ skip: number;
3383
+ }>;
3384
+ update: (input: UpdateExpertJobInput) => Promise<{
3385
+ expertJob: ApiExpertJob;
3386
+ }>;
3387
+ checkpoints: {
3388
+ create: (input: CreateCheckpointInput) => Promise<{
3389
+ checkpoint: ApiCheckpoint;
3390
+ }>;
3391
+ get: (input: GetCheckpointInput) => Promise<{
3392
+ checkpoint: ApiCheckpoint;
3393
+ }>;
3394
+ getMany: (input: GetCheckpointsInput) => Promise<{
3395
+ checkpoints: ApiCheckpoint[];
3396
+ total: number;
3397
+ take: number;
3398
+ skip: number;
3399
+ }>;
3400
+ };
3401
+ workspaceInstance: {
3402
+ get: (input: GetWorkspaceInstanceInput) => Promise<{
3403
+ workspaceInstance: ApiWorkspaceInstance;
3404
+ }>;
3405
+ items: {
3406
+ create: (input: CreateWorkspaceInstanceItemInput) => Promise<{
3407
+ workspaceItem: ApiWorkspaceItem;
3408
+ }>;
3409
+ get: (input: GetWorkspaceInstanceItemInput) => Promise<{
3410
+ workspaceItem: ApiWorkspaceItem;
3411
+ }>;
3412
+ getMany: (input: GetWorkspaceInstanceItemsInput) => Promise<{
3413
+ workspaceItems: ApiWorkspaceItem[];
3414
+ total: number;
3415
+ take: number;
3416
+ skip: number;
3417
+ }>;
3418
+ download: (input: DownloadWorkspaceInstanceItemInput) => Promise<Blob>;
3419
+ update: (input: UpdateWorkspaceInstanceItemInput) => Promise<{
3420
+ workspaceItem: ApiWorkspaceItem;
3421
+ }>;
3422
+ delete: (input: DeleteWorkspaceInstanceItemInput) => Promise<void>;
3423
+ };
3424
+ };
3425
+ };
3426
+ workspace: {
3427
+ get: () => Promise<{
3428
+ workspace: ApiWorkspace;
3429
+ }>;
3430
+ items: {
3431
+ create: (input: CreateWorkspaceItemInput) => Promise<{
3432
+ workspaceItem: ApiWorkspaceItem;
3433
+ }>;
3434
+ get: (input: GetWorkspaceItemInput) => Promise<{
3435
+ workspaceItem: ApiWorkspaceItem;
3436
+ }>;
3437
+ getMany: (input: GetWorkspaceItemsInput) => Promise<{
3438
+ workspaceItems: ApiWorkspaceItem[];
3439
+ total: number;
3440
+ take: number;
3441
+ skip: number;
3442
+ }>;
3443
+ download: (input: DownloadWorkspaceItemInput) => Promise<Blob>;
3444
+ update: (input: UpdateWorkspaceItemInput) => Promise<{
3445
+ workspaceItem: ApiWorkspaceItem;
3446
+ }>;
3447
+ delete: (input: DeleteWorkspaceItemInput) => Promise<void>;
3448
+ };
3449
+ variables: {
3450
+ create: (input: CreateWorkspaceVariableInput) => Promise<{
3451
+ workspace: ApiWorkspace;
3452
+ }>;
3453
+ update: (input: UpdateWorkspaceVariableInput) => Promise<{
3454
+ workspace: ApiWorkspace;
3455
+ }>;
3456
+ delete: (input: DeleteWorkspaceVariableInput) => Promise<void>;
3457
+ };
3458
+ secrets: {
3459
+ create: (input: CreateWorkspaceSecretInput) => Promise<{
3460
+ workspace: ApiWorkspace;
3461
+ }>;
3462
+ delete: (input: DeleteWorkspaceSecretInput) => Promise<void>;
3463
+ };
3464
+ };
3465
+ };
3466
+ }
3467
+
3468
+ declare const apiApplicationStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3469
+ type ApiApplicationStatus = z.infer<typeof apiApplicationStatusSchema>;
3470
+ declare const apiApplicationSchema: z.ZodObject<{
3471
+ type: z.ZodLiteral<"application">;
3472
+ id: z.ZodCUID2;
3473
+ organizationId: z.ZodCUID2;
3474
+ organization: z.ZodObject<{
3475
+ type: z.ZodLiteral<"organization">;
3476
+ id: z.ZodCUID2;
3477
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3478
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3479
+ name: z.ZodOptional<z.ZodString>;
3480
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
3481
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3482
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
3483
+ maxApplications: z.ZodNumber;
3484
+ maxApiKeys: z.ZodNumber;
3485
+ maxStudioExperts: z.ZodNumber;
3486
+ }, z.core.$strip>;
3487
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3488
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3489
+ name: z.ZodString;
3490
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3491
+ }, z.core.$strip>;
3492
+ type ApiApplication = z.infer<typeof apiApplicationSchema>;
3493
+
3494
+ declare const apiOrganizationStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3495
+ type ApiOrganizationStatus = z.infer<typeof apiOrganizationStatusSchema>;
3496
+ declare const apiOrganizationTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
3497
+ type ApiOrganizationType = z.infer<typeof apiOrganizationTypeSchema>;
3498
+ declare const apiOrganizationSchema: z.ZodObject<{
3499
+ type: z.ZodLiteral<"organization">;
3500
+ id: z.ZodCUID2;
3501
+ createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3502
+ updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
3503
+ name: z.ZodOptional<z.ZodString>;
3504
+ nameChangedAt: z.ZodOptional<z.ZodDate>;
3505
+ status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
3506
+ organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
3507
+ maxApplications: z.ZodNumber;
3508
+ maxApiKeys: z.ZodNumber;
3509
+ maxStudioExperts: z.ZodNumber;
3510
+ }, z.core.$strip>;
3511
+ type ApiOrganization = z.infer<typeof apiOrganizationSchema>;
3512
+
3513
+ declare const apiSkillNameSchema: z.ZodString;
3514
+ type ApiSkillName = z.infer<typeof apiSkillNameSchema>;
3515
+ declare const apiMcpStdioSkillCommandSchema: z.ZodEnum<{
3516
+ npx: "npx";
3517
+ uvx: "uvx";
3518
+ }>;
3519
+ type ApiMcpStdioSkillCommand = z.infer<typeof apiMcpStdioSkillCommandSchema>;
3520
+ declare const apiMcpStdioSkillSchema: z.ZodObject<{
3521
+ type: z.ZodLiteral<"mcpStdioSkill">;
3522
+ description: z.ZodString;
3523
+ rule: z.ZodOptional<z.ZodString>;
3524
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
3525
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
3526
+ command: z.ZodEnum<{
3527
+ npx: "npx";
3528
+ uvx: "uvx";
3529
+ }>;
3530
+ packageName: z.ZodString;
3531
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
3532
+ }, z.core.$strip>;
3533
+ type ApiMcpStdioSkill = z.infer<typeof apiMcpStdioSkillSchema>;
3534
+ declare const apiMcpSseSkillSchema: z.ZodObject<{
3535
+ type: z.ZodLiteral<"mcpSseSkill">;
3536
+ description: z.ZodString;
3537
+ rule: z.ZodOptional<z.ZodString>;
3538
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
3539
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
3540
+ endpoint: z.ZodString;
3541
+ }, z.core.$strip>;
3542
+ type ApiMcpSseSkill = z.infer<typeof apiMcpSseSkillSchema>;
3543
+ declare const apiInteractiveSkillSchema: z.ZodObject<{
3544
+ type: z.ZodLiteral<"interactiveSkill">;
3545
+ description: z.ZodString;
3546
+ rule: z.ZodOptional<z.ZodString>;
3547
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
3548
+ description: z.ZodString;
3549
+ inputJsonSchema: z.ZodString;
3550
+ }, z.core.$strip>>;
3551
+ }, z.core.$strip>;
3552
+ type ApiInteractiveSkill = z.infer<typeof apiInteractiveSkillSchema>;
3553
+ declare const apiSkillSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3554
+ type: z.ZodLiteral<"mcpStdioSkill">;
3555
+ description: z.ZodString;
3556
+ rule: z.ZodOptional<z.ZodString>;
3557
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
3558
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
3559
+ command: z.ZodEnum<{
3560
+ npx: "npx";
3561
+ uvx: "uvx";
3562
+ }>;
3563
+ packageName: z.ZodString;
3564
+ requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
3565
+ }, z.core.$strip>, z.ZodObject<{
3566
+ type: z.ZodLiteral<"mcpSseSkill">;
3567
+ description: z.ZodString;
3568
+ rule: z.ZodOptional<z.ZodString>;
3569
+ pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
3570
+ omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
3571
+ endpoint: z.ZodString;
3572
+ }, z.core.$strip>, z.ZodObject<{
3573
+ type: z.ZodLiteral<"interactiveSkill">;
3574
+ description: z.ZodString;
3575
+ rule: z.ZodOptional<z.ZodString>;
3576
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
3577
+ description: z.ZodString;
3578
+ inputJsonSchema: z.ZodString;
3579
+ }, z.core.$strip>>;
3580
+ }, z.core.$strip>], "type">;
3581
+ type ApiSkill = z.infer<typeof apiSkillSchema>;
3582
+
3583
+ export { type ApiApplication, type ApiApplicationStatus, type ApiCheckpoint, type ApiCheckpointAction, type ApiCheckpointStatus, ApiError, type ApiExpert, type ApiExpertDigest, type ApiExpertJob, type ApiExpertJobStatus, type ApiInteractiveSkill, type ApiMcpSseSkill, type ApiMcpStdioSkill, type ApiMcpStdioSkillCommand, type ApiOrganization, type ApiOrganizationStatus, type ApiOrganizationType, type ApiRegistryExpert, type ApiSkill, type ApiSkillName, type ApiStudioExpert, ApiV1Client, type ApiV1Config, type ApiWorkspace, type ApiWorkspaceInstance, type ApiWorkspaceItem, type ApiWorkspaceItemDirectory, type ApiWorkspaceItemFile, type ApiWorkspaceItemLifecycle, type ApiWorkspaceItemOwner, type ApiWorkspaceItemPermission, type ContinueExpertJobInput, type CreateCheckpointInput, type CreateRegistryExpertInput, type CreateStudioExpertInput, type CreateWorkspaceInstanceItemInput, type CreateWorkspaceItemInput, type CreateWorkspaceSecretInput, type CreateWorkspaceVariableInput, type DeleteRegistryExpertInput, type DeleteStudioExpertInput, type DeleteWorkspaceInstanceItemInput, type DeleteWorkspaceItemInput, type DeleteWorkspaceSecretInput, type DeleteWorkspaceVariableInput, type DownloadWorkspaceInstanceItemInput, type DownloadWorkspaceItemInput, type GetCheckpointInput, type GetCheckpointsInput, type GetExpertJobInput, type GetExpertJobsInput, type GetRegistryExpertInput, type GetRegistryExpertVersionsInput, type GetRegistryExpertsInput, type GetStudioExpertInput, type GetStudioExpertsInput, type GetWorkspaceInstanceInput, type GetWorkspaceInstanceItemInput, type GetWorkspaceInstanceItemsInput, type GetWorkspaceItemInput, type GetWorkspaceItemsInput, type ResumeExpertJobFromCheckpointInput, type StartExpertJobInput, type UpdateExpertJobInput, type UpdateStudioExpertInput, type UpdateWorkspaceInstanceItemInput, type UpdateWorkspaceItemInput, type UpdateWorkspaceVariableInput, apiApplicationSchema, apiApplicationStatusSchema, apiBaseExpertSchema, apiBaseWorkspaceItemSchema, apiCheckpointActionAppendTextFileSchema, apiCheckpointActionAttemptCompletionSchema, apiCheckpointActionCreateDirectorySchema, apiCheckpointActionDelegateSchema, apiCheckpointActionDeleteFileSchema, apiCheckpointActionEditTextFileSchema, apiCheckpointActionErrorSchema, apiCheckpointActionGeneralToolSchema, apiCheckpointActionGetFileInfoSchema, apiCheckpointActionListDirectorySchema, apiCheckpointActionMoveFileSchema, apiCheckpointActionReadImageFileSchema, apiCheckpointActionReadPdfFileSchema, apiCheckpointActionReadTextFileSchema, apiCheckpointActionRetrySchema, apiCheckpointActionSchema, apiCheckpointActionTestUrlSchema, apiCheckpointActionThinkSchema, apiCheckpointActionTodoSchema, apiCheckpointActionWriteTextFileSchema, apiCheckpointSchema, apiCheckpointStatusSchema, apiExpertDigestSchema, apiExpertJobSchema, apiExpertJobStatusSchema, apiExpertSchema, apiInteractiveSkillSchema, apiMcpSseSkillSchema, apiMcpStdioSkillCommandSchema, apiMcpStdioSkillSchema, apiOrganizationSchema, apiOrganizationStatusSchema, apiOrganizationTypeSchema, apiRegistryExpertSchema, apiSkillNameSchema, apiSkillSchema, apiStudioExpertSchema, apiWorkspaceInstanceSchema, apiWorkspaceItemDirectorySchema, apiWorkspaceItemFileSchema, apiWorkspaceItemLifecycleSchema, apiWorkspaceItemOwnerSchema, apiWorkspaceItemPermissionSchema, apiWorkspaceItemSchema, apiWorkspaceSchema, continueExpertJob, createCheckpoint, createRegistryExpert, createStudioExpert, createWorkspaceInstanceItem, createWorkspaceItem, createWorkspaceSecret, createWorkspaceVariable, deleteRegistryExpert, deleteStudioExpert, deleteWorkspaceInstanceItem, deleteWorkspaceItem, deleteWorkspaceSecret, deleteWorkspaceVariable, downloadWorkspaceInstanceItem, downloadWorkspaceItem, getCheckpoint, getCheckpoints, getExpertJob, getExpertJobs, getRegistryExpert, getRegistryExpertVersions, getRegistryExperts, getStudioExpert, getStudioExperts, getWorkspace, getWorkspaceInstance, getWorkspaceInstanceItem, getWorkspaceInstanceItems, getWorkspaceItem, getWorkspaceItems, resumeExpertJobFromCheckpoint, startExpertJob, updateExpertJob, updateStudioExpert, updateWorkspaceInstanceItem, updateWorkspaceItem, updateWorkspaceVariable };