@perstack/api-client 0.0.34 → 0.0.36

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