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