@perstack/api-client 0.0.33 → 0.0.35

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,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import * as buffer from 'buffer';
2
+ import * as node_buffer from 'node:buffer';
3
3
 
4
4
  declare class ApiError extends Error {
5
5
  constructor(responseText: string);
@@ -9,7 +9,34 @@ declare class ApiError extends Error {
9
9
  }
10
10
 
11
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>>;
12
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">>>;
13
40
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
14
41
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
15
42
  description: z.ZodString;
@@ -26,6 +53,33 @@ declare const apiBaseExpertSchema: z.ZodObject<{
26
53
  updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
27
54
  }, z.core.$strip>;
28
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">>>;
29
83
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
30
84
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
31
85
  description: z.ZodString;
@@ -77,7 +131,34 @@ declare const apiRegistryExpertSchema: z.ZodObject<{
77
131
  }, z.core.$strip>;
78
132
  type ApiRegistryExpert = z.infer<typeof apiRegistryExpertSchema>;
79
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>>;
80
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">>>;
81
162
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
82
163
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
83
164
  description: z.ZodString;
@@ -149,6 +230,33 @@ declare const apiStudioExpertSchema: z.ZodObject<{
149
230
  }, z.core.$strip>;
150
231
  type ApiStudioExpert = z.infer<typeof apiStudioExpertSchema>;
151
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">>>;
152
260
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
153
261
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
154
262
  description: z.ZodString;
@@ -169,6 +277,33 @@ declare const apiExpertDigestSchema: z.ZodObject<{
169
277
  }, z.core.$strip>;
170
278
  type ApiExpertDigest = z.infer<typeof apiExpertDigestSchema>;
171
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">>>;
172
307
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
173
308
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
174
309
  description: z.ZodString;
@@ -187,6 +322,33 @@ declare const apiExpertSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
187
322
  version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
188
323
  tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
189
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">>>;
190
352
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
191
353
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
192
354
  description: z.ZodString;
@@ -236,7 +398,34 @@ declare const apiExpertSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
236
398
  delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
237
399
  tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
238
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>>;
239
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">>>;
240
429
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
241
430
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
242
431
  description: z.ZodString;
@@ -569,6 +758,33 @@ declare const apiCheckpointActionDelegateSchema: z.ZodObject<{
569
758
  error: z.ZodOptional<z.ZodString>;
570
759
  type: z.ZodLiteral<"delegate">;
571
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">>>;
572
788
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
573
789
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
574
790
  description: z.ZodString;
@@ -663,6 +879,11 @@ declare const apiCheckpointActionGeneralToolSchema: z.ZodObject<{
663
879
  mimeType: z.ZodString;
664
880
  }, z.core.$strip>]>>;
665
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>;
666
887
  }, z.core.$strip>], "type">>;
667
888
  }, z.core.$strip>;
668
889
  declare const apiCheckpointActionErrorSchema: z.ZodObject<{
@@ -805,6 +1026,33 @@ declare const apiCheckpointActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
805
1026
  error: z.ZodOptional<z.ZodString>;
806
1027
  type: z.ZodLiteral<"delegate">;
807
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">>>;
808
1056
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
809
1057
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
810
1058
  description: z.ZodString;
@@ -897,6 +1145,11 @@ declare const apiCheckpointActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
897
1145
  mimeType: z.ZodString;
898
1146
  }, z.core.$strip>]>>;
899
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>;
900
1153
  }, z.core.$strip>], "type">>;
901
1154
  }, z.core.$strip>, z.ZodObject<{
902
1155
  error: z.ZodOptional<z.ZodString>;
@@ -904,6 +1157,21 @@ declare const apiCheckpointActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
904
1157
  }, z.core.$strip>], "type">;
905
1158
  type ApiCheckpointAction = z.infer<typeof apiCheckpointActionSchema>;
906
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>>;
907
1175
  jobId: z.ZodString;
908
1176
  runId: z.ZodString;
909
1177
  stepNumber: z.ZodNumber;
@@ -978,8 +1246,14 @@ declare const apiCheckpointSchema: z.ZodObject<{
978
1246
  mimeType: z.ZodString;
979
1247
  }, z.core.$strip>]>>;
980
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>;
981
1254
  }, z.core.$strip>], "type">>;
982
1255
  }, z.core.$strip>>>;
1256
+ retryCount: z.ZodOptional<z.ZodNumber>;
983
1257
  type: z.ZodLiteral<"checkpoint">;
984
1258
  id: z.ZodCUID2;
985
1259
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1118,6 +1392,33 @@ declare const apiCheckpointSchema: z.ZodObject<{
1118
1392
  error: z.ZodOptional<z.ZodString>;
1119
1393
  type: z.ZodLiteral<"delegate">;
1120
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">>>;
1121
1422
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1122
1423
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1123
1424
  description: z.ZodString;
@@ -1210,6 +1511,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1210
1511
  mimeType: z.ZodString;
1211
1512
  }, z.core.$strip>]>>;
1212
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>;
1213
1519
  }, z.core.$strip>], "type">>;
1214
1520
  }, z.core.$strip>, z.ZodObject<{
1215
1521
  error: z.ZodOptional<z.ZodString>;
@@ -1218,6 +1524,33 @@ declare const apiCheckpointSchema: z.ZodObject<{
1218
1524
  expertJobId: z.ZodCUID2;
1219
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">]>;
1220
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">>>;
1221
1554
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1222
1555
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1223
1556
  description: z.ZodString;
@@ -1240,6 +1573,33 @@ declare const apiCheckpointSchema: z.ZodObject<{
1240
1573
  toolName: z.ZodOptional<z.ZodString>;
1241
1574
  delegateTo: z.ZodOptional<z.ZodObject<{
1242
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">>>;
1243
1603
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1244
1604
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1245
1605
  description: z.ZodString;
@@ -1263,6 +1623,33 @@ declare const apiCheckpointSchema: z.ZodObject<{
1263
1623
  }, z.core.$strip>>;
1264
1624
  delegatedBy: z.ZodOptional<z.ZodObject<{
1265
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">>>;
1266
1653
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1267
1654
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1268
1655
  description: z.ZodString;
@@ -1421,6 +1808,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1421
1808
  toolCallId: z.ZodString;
1422
1809
  toolName: z.ZodString;
1423
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>;
1424
1816
  }, z.core.$strip>]>>;
1425
1817
  cache: z.ZodOptional<z.ZodBoolean>;
1426
1818
  }, z.core.$strip>, z.ZodObject<{
@@ -1511,6 +1903,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1511
1903
  toolCallId: z.ZodString;
1512
1904
  toolName: z.ZodString;
1513
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>;
1514
1911
  }, z.core.$strip>]>>;
1515
1912
  cache: z.ZodOptional<z.ZodBoolean>;
1516
1913
  }, z.core.$strip>, z.ZodObject<{
@@ -1611,6 +2008,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1611
2008
  mimeType: z.ZodString;
1612
2009
  }, z.core.$strip>]>>;
1613
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>;
1614
2016
  }, z.core.$strip>], "type">>;
1615
2017
  }, z.core.$strip>>;
1616
2018
  usage: z.ZodObject<{
@@ -1641,6 +2043,33 @@ declare const apiExpertJobSchema: z.ZodObject<{
1641
2043
  files: z.ZodOptional<z.ZodArray<z.ZodString>>;
1642
2044
  interactiveToolCallResult: z.ZodOptional<z.ZodBoolean>;
1643
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">>>;
1644
2073
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1645
2074
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1646
2075
  description: z.ZodString;
@@ -1659,6 +2088,33 @@ declare const apiExpertJobSchema: z.ZodObject<{
1659
2088
  version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1660
2089
  tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1661
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">>>;
1662
2118
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1663
2119
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1664
2120
  description: z.ZodString;
@@ -1708,7 +2164,34 @@ declare const apiExpertJobSchema: z.ZodObject<{
1708
2164
  delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1709
2165
  tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
1710
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>>;
1711
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">>>;
1712
2195
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1713
2196
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
1714
2197
  description: z.ZodString;
@@ -1967,6 +2450,11 @@ declare const createCheckpointInput: z.ZodObject<{
1967
2450
  toolCallId: z.ZodString;
1968
2451
  toolName: z.ZodString;
1969
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>;
1970
2458
  }, z.core.$strip>]>>;
1971
2459
  cache: z.ZodOptional<z.ZodBoolean>;
1972
2460
  }, z.core.$strip>, z.ZodObject<{
@@ -2101,8 +2589,29 @@ declare const createCheckpointInput: z.ZodObject<{
2101
2589
  mimeType: z.ZodString;
2102
2590
  }, z.core.$strip>]>>;
2103
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>;
2104
2597
  }, z.core.$strip>], "type">>;
2105
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>;
2106
2615
  }, z.core.$strip>;
2107
2616
  step: z.ZodObject<{
2108
2617
  stepNumber: z.ZodNumber;
@@ -2242,6 +2751,11 @@ declare const createCheckpointInput: z.ZodObject<{
2242
2751
  toolCallId: z.ZodString;
2243
2752
  toolName: z.ZodString;
2244
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>;
2245
2759
  }, z.core.$strip>]>>;
2246
2760
  cache: z.ZodOptional<z.ZodBoolean>;
2247
2761
  }, z.core.$strip>, z.ZodObject<{
@@ -2342,6 +2856,11 @@ declare const createCheckpointInput: z.ZodObject<{
2342
2856
  mimeType: z.ZodString;
2343
2857
  }, z.core.$strip>]>>;
2344
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>;
2345
2864
  }, z.core.$strip>], "type">>;
2346
2865
  }, z.core.$strip>>>;
2347
2866
  pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2415,6 +2934,11 @@ declare const createCheckpointInput: z.ZodObject<{
2415
2934
  mimeType: z.ZodString;
2416
2935
  }, z.core.$strip>]>>;
2417
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>;
2418
2942
  }, z.core.$strip>], "type">>;
2419
2943
  }, z.core.$strip>>>;
2420
2944
  usage: z.ZodObject<{
@@ -2588,6 +3112,63 @@ declare const deleteStudioExpertInput: z.ZodObject<{
2588
3112
  type DeleteStudioExpertInput = z.input<typeof deleteStudioExpertInput>;
2589
3113
  declare function deleteStudioExpert(input: DeleteStudioExpertInput, client: ApiV1Client): Promise<void>;
2590
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
+
2591
3172
  declare const apiWorkspaceItemOwnerSchema: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2592
3173
  type ApiWorkspaceItemOwner = z.infer<typeof apiWorkspaceItemOwnerSchema>;
2593
3174
  declare const apiWorkspaceItemLifecycleSchema: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
@@ -2652,63 +3233,6 @@ declare const apiWorkspaceItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2652
3233
  }, z.core.$strip>], "type">;
2653
3234
  type ApiWorkspaceItem = z.infer<typeof apiWorkspaceItemSchema>;
2654
3235
 
2655
- declare const apiWorkspaceSchema: z.ZodObject<{
2656
- type: z.ZodLiteral<"workspace">;
2657
- id: z.ZodCUID2;
2658
- applicationId: z.ZodCUID2;
2659
- application: z.ZodObject<{
2660
- type: z.ZodLiteral<"application">;
2661
- id: z.ZodCUID2;
2662
- organizationId: z.ZodCUID2;
2663
- organization: z.ZodObject<{
2664
- type: z.ZodLiteral<"organization">;
2665
- id: z.ZodCUID2;
2666
- createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2667
- updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2668
- name: z.ZodOptional<z.ZodString>;
2669
- nameChangedAt: z.ZodOptional<z.ZodDate>;
2670
- status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
2671
- organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
2672
- maxApplications: z.ZodNumber;
2673
- maxApiKeys: z.ZodNumber;
2674
- maxStudioExperts: z.ZodNumber;
2675
- }, z.core.$strip>;
2676
- createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2677
- updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2678
- name: z.ZodString;
2679
- status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
2680
- }, z.core.$strip>;
2681
- createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2682
- updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2683
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2684
- id: z.ZodCUID2;
2685
- owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2686
- lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2687
- permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2688
- path: z.ZodString;
2689
- createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2690
- updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2691
- type: z.ZodLiteral<"workspaceItemDirectory">;
2692
- }, z.core.$strip>, z.ZodObject<{
2693
- id: z.ZodCUID2;
2694
- owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
2695
- lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
2696
- permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2697
- path: z.ZodString;
2698
- createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2699
- updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
2700
- type: z.ZodLiteral<"workspaceItemFile">;
2701
- key: z.ZodString;
2702
- mimeType: z.ZodString;
2703
- size: z.ZodNumber;
2704
- }, z.core.$strip>], "type">>;
2705
- countItems: z.ZodNumber;
2706
- envVariables: z.ZodArray<z.ZodString>;
2707
- envSecrets: z.ZodArray<z.ZodString>;
2708
- countWorkspaceInstances: z.ZodNumber;
2709
- }, z.core.$strip>;
2710
- type ApiWorkspace = z.infer<typeof apiWorkspaceSchema>;
2711
-
2712
3236
  declare function getWorkspace(client: ApiV1Client): Promise<{
2713
3237
  workspace: ApiWorkspace;
2714
3238
  }>;
@@ -2723,7 +3247,7 @@ declare const createWorkspaceItemInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
2723
3247
  type: z.ZodLiteral<"workspaceItemFile">;
2724
3248
  permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
2725
3249
  path: z.ZodString;
2726
- file: z.ZodCustom<buffer.File, buffer.File>;
3250
+ file: z.ZodCustom<node_buffer.File, node_buffer.File>;
2727
3251
  }, z.core.$strip>], "type">;
2728
3252
  type CreateWorkspaceItemInput = z.input<typeof createWorkspaceItemInput>;
2729
3253
  declare function createWorkspaceItem(input: CreateWorkspaceItemInput, client: ApiV1Client): Promise<{
@@ -2870,6 +3394,33 @@ declare const apiWorkspaceInstanceSchema: z.ZodObject<{
2870
3394
  files: z.ZodOptional<z.ZodArray<z.ZodString>>;
2871
3395
  interactiveToolCallResult: z.ZodOptional<z.ZodBoolean>;
2872
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">>>;
2873
3424
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2874
3425
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2875
3426
  description: z.ZodString;
@@ -2888,6 +3439,33 @@ declare const apiWorkspaceInstanceSchema: z.ZodObject<{
2888
3439
  version: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2889
3440
  tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2890
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">>>;
2891
3469
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2892
3470
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2893
3471
  description: z.ZodString;
@@ -2937,7 +3515,34 @@ declare const apiWorkspaceInstanceSchema: z.ZodObject<{
2937
3515
  delegates: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2938
3516
  tags: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>>;
2939
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>>;
2940
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">>>;
2941
3546
  key: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2942
3547
  name: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodString>, z.ZodString>, z.ZodString>;
2943
3548
  description: z.ZodString;
@@ -3078,7 +3683,7 @@ declare const createWorkspaceInstanceItemInput: z.ZodDiscriminatedUnion<[z.ZodOb
3078
3683
  expertJobId: z.ZodCUID2;
3079
3684
  permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
3080
3685
  path: z.ZodString;
3081
- file: z.ZodCustom<buffer.File, buffer.File>;
3686
+ file: z.ZodCustom<node_buffer.File, node_buffer.File>;
3082
3687
  }, z.core.$strip>], "type">;
3083
3688
  type CreateWorkspaceInstanceItemInput = z.input<typeof createWorkspaceInstanceItemInput>;
3084
3689
  declare function createWorkspaceInstanceItem(input: CreateWorkspaceInstanceItemInput, client: ApiV1Client): Promise<{
@@ -3162,8 +3767,12 @@ declare class ApiV1Client {
3162
3767
  baseUrl: string;
3163
3768
  apiKey?: string;
3164
3769
  constructor(config?: ApiV1Config);
3165
- request(endpoint: string, init?: RequestInit): Promise<unknown>;
3166
- requestAuthenticated(endpoint: string, init?: RequestInit): Promise<unknown>;
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>;
3167
3776
  requestBlob(endpoint: string, init?: RequestInit): Promise<Blob>;
3168
3777
  requestBlobAuthenticated(endpoint: string, init?: RequestInit): Promise<Blob>;
3169
3778
  registry: {