@fastgpt-plugin/helpers 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/common/fn.d.ts +18 -0
  2. package/dist/common/fn.js +48 -0
  3. package/dist/common/fs.d.ts +12 -0
  4. package/dist/common/fs.js +24 -0
  5. package/dist/common/schemas/i18n.d.ts +17 -0
  6. package/dist/common/schemas/i18n.js +3 -0
  7. package/dist/common/schemas/s3.d.ts +2 -0
  8. package/dist/common/schemas/s3.js +14 -0
  9. package/dist/common/zip.d.ts +15 -0
  10. package/dist/common/zip.js +4 -0
  11. package/dist/events/index.d.ts +3 -0
  12. package/dist/events/index.js +1 -0
  13. package/dist/events/schemas.d.ts +3 -0
  14. package/dist/events/schemas.js +50 -0
  15. package/dist/events/type.d.ts +3 -0
  16. package/dist/events/type.js +1 -0
  17. package/dist/fastgpt-ATrPZt7b.js +122 -0
  18. package/dist/i18n-CEMsaKK_.js +16 -0
  19. package/dist/index.d.ts +13 -0
  20. package/dist/index.js +13 -0
  21. package/dist/models/schemas.d.ts +234 -0
  22. package/dist/models/schemas.js +74 -0
  23. package/dist/req-Cgf43aEm.js +55 -0
  24. package/dist/s3-CkZHJIa9.d.ts +14 -0
  25. package/dist/schemas-CMeQg8vV.d.ts +137 -0
  26. package/dist/tools/constants.d.ts +75 -0
  27. package/dist/tools/constants.js +72 -0
  28. package/dist/tools/helper.d.ts +260 -0
  29. package/dist/tools/helper.js +55 -0
  30. package/dist/tools/schemas/fastgpt.d.ts +203 -0
  31. package/dist/tools/schemas/fastgpt.js +3 -0
  32. package/dist/tools/schemas/req.d.ts +3 -0
  33. package/dist/tools/schemas/req.js +3 -0
  34. package/dist/tools/schemas/tool.d.ts +2157 -0
  35. package/dist/tools/schemas/tool.js +132 -0
  36. package/dist/workflows/schemas.d.ts +45 -0
  37. package/dist/workflows/schemas.js +26 -0
  38. package/dist/zip-DjBhByRt.js +8857 -0
  39. package/package.json +36 -0
@@ -0,0 +1,2157 @@
1
+ import "../../s3-CkZHJIa9.js";
2
+ import { x as ToolHandlerFunctionType } from "../../schemas-CMeQg8vV.js";
3
+ import { z as z$1 } from "zod";
4
+
5
+ //#region src/tools/schemas/tool.d.ts
6
+ declare const ToolTagEnum: z$1.ZodEnum<{
7
+ tools: "tools";
8
+ search: "search";
9
+ multimodal: "multimodal";
10
+ communication: "communication";
11
+ finance: "finance";
12
+ design: "design";
13
+ productivity: "productivity";
14
+ news: "news";
15
+ entertainment: "entertainment";
16
+ social: "social";
17
+ scientific: "scientific";
18
+ other: "other";
19
+ }>;
20
+ declare const VersionListItemSchema: z$1.ZodObject<{
21
+ value: z$1.ZodString;
22
+ description: z$1.ZodOptional<z$1.ZodString>;
23
+ inputs: z$1.ZodArray<z$1.ZodObject<{
24
+ key: z$1.ZodString;
25
+ label: z$1.ZodString;
26
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
27
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
28
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
29
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
30
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
31
+ reference: "reference";
32
+ input: "input";
33
+ textarea: "textarea";
34
+ numberInput: "numberInput";
35
+ switch: "switch";
36
+ select: "select";
37
+ multipleSelect: "multipleSelect";
38
+ JSONEditor: "JSONEditor";
39
+ addInputParam: "addInputParam";
40
+ selectApp: "selectApp";
41
+ customVariable: "customVariable";
42
+ selectLLMModel: "selectLLMModel";
43
+ settingLLMModel: "settingLLMModel";
44
+ selectDataset: "selectDataset";
45
+ selectDatasetParamsModal: "selectDatasetParamsModal";
46
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
47
+ hidden: "hidden";
48
+ custom: "custom";
49
+ fileSelect: "fileSelect";
50
+ }>>;
51
+ valueType: z$1.ZodEnum<{
52
+ string: "string";
53
+ number: "number";
54
+ boolean: "boolean";
55
+ object: "object";
56
+ selectApp: "selectApp";
57
+ selectDataset: "selectDataset";
58
+ arrayString: "arrayString";
59
+ arrayNumber: "arrayNumber";
60
+ arrayBoolean: "arrayBoolean";
61
+ arrayObject: "arrayObject";
62
+ arrayAny: "arrayAny";
63
+ any: "any";
64
+ chatHistory: "chatHistory";
65
+ datasetQuote: "datasetQuote";
66
+ dynamic: "dynamic";
67
+ }>;
68
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
69
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
70
+ description: z$1.ZodOptional<z$1.ZodString>;
71
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
72
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
73
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
74
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
75
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
76
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
77
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
78
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
79
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
80
+ key: z$1.ZodString;
81
+ label: z$1.ZodString;
82
+ description: z$1.ZodOptional<z$1.ZodString>;
83
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
84
+ inputType: z$1.ZodEnum<{
85
+ input: "input";
86
+ numberInput: "numberInput";
87
+ switch: "switch";
88
+ select: "select";
89
+ secret: "secret";
90
+ }>;
91
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
92
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
93
+ label: z$1.ZodString;
94
+ value: z$1.ZodString;
95
+ }, z$1.core.$strip>>>;
96
+ }, z$1.core.$strip>>>;
97
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
98
+ all: "all";
99
+ classify: "classify";
100
+ extractFields: "extractFields";
101
+ toolCall: "toolCall";
102
+ }>>;
103
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
104
+ label: z$1.ZodString;
105
+ value: z$1.ZodString;
106
+ }, z$1.core.$strip>>>;
107
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
108
+ label: z$1.ZodString;
109
+ value: z$1.ZodNumber;
110
+ }, z$1.core.$strip>>>;
111
+ step: z$1.ZodOptional<z$1.ZodNumber>;
112
+ max: z$1.ZodOptional<z$1.ZodNumber>;
113
+ min: z$1.ZodOptional<z$1.ZodNumber>;
114
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
115
+ }, z$1.core.$strip>>;
116
+ outputs: z$1.ZodArray<z$1.ZodObject<{
117
+ id: z$1.ZodOptional<z$1.ZodString>;
118
+ type: z$1.ZodOptional<z$1.ZodEnum<{
119
+ hidden: "hidden";
120
+ dynamic: "dynamic";
121
+ source: "source";
122
+ static: "static";
123
+ error: "error";
124
+ }>>;
125
+ key: z$1.ZodString;
126
+ valueType: z$1.ZodEnum<{
127
+ string: "string";
128
+ number: "number";
129
+ boolean: "boolean";
130
+ object: "object";
131
+ selectApp: "selectApp";
132
+ selectDataset: "selectDataset";
133
+ arrayString: "arrayString";
134
+ arrayNumber: "arrayNumber";
135
+ arrayBoolean: "arrayBoolean";
136
+ arrayObject: "arrayObject";
137
+ arrayAny: "arrayAny";
138
+ any: "any";
139
+ chatHistory: "chatHistory";
140
+ datasetQuote: "datasetQuote";
141
+ dynamic: "dynamic";
142
+ }>;
143
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
144
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
145
+ label: z$1.ZodOptional<z$1.ZodString>;
146
+ description: z$1.ZodOptional<z$1.ZodString>;
147
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
148
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
149
+ }, z$1.core.$strip>>;
150
+ }, z$1.core.$strip>;
151
+ type VersionListItemType = z$1.infer<typeof VersionListItemSchema>;
152
+ /**
153
+ * 工具的所有属性
154
+ */
155
+ declare const ToolSchema: z$1.ZodObject<{
156
+ toolId: z$1.ZodString;
157
+ parentId: z$1.ZodOptional<z$1.ZodString>;
158
+ name: z$1.ZodObject<{
159
+ en: z$1.ZodString;
160
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
161
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
162
+ }, z$1.core.$strip>;
163
+ description: z$1.ZodObject<{
164
+ en: z$1.ZodString;
165
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
166
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
167
+ }, z$1.core.$strip>;
168
+ toolDescription: z$1.ZodString;
169
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
170
+ value: z$1.ZodString;
171
+ description: z$1.ZodOptional<z$1.ZodString>;
172
+ inputs: z$1.ZodArray<z$1.ZodObject<{
173
+ key: z$1.ZodString;
174
+ label: z$1.ZodString;
175
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
176
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
177
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
178
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
179
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
180
+ reference: "reference";
181
+ input: "input";
182
+ textarea: "textarea";
183
+ numberInput: "numberInput";
184
+ switch: "switch";
185
+ select: "select";
186
+ multipleSelect: "multipleSelect";
187
+ JSONEditor: "JSONEditor";
188
+ addInputParam: "addInputParam";
189
+ selectApp: "selectApp";
190
+ customVariable: "customVariable";
191
+ selectLLMModel: "selectLLMModel";
192
+ settingLLMModel: "settingLLMModel";
193
+ selectDataset: "selectDataset";
194
+ selectDatasetParamsModal: "selectDatasetParamsModal";
195
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
196
+ hidden: "hidden";
197
+ custom: "custom";
198
+ fileSelect: "fileSelect";
199
+ }>>;
200
+ valueType: z$1.ZodEnum<{
201
+ string: "string";
202
+ number: "number";
203
+ boolean: "boolean";
204
+ object: "object";
205
+ selectApp: "selectApp";
206
+ selectDataset: "selectDataset";
207
+ arrayString: "arrayString";
208
+ arrayNumber: "arrayNumber";
209
+ arrayBoolean: "arrayBoolean";
210
+ arrayObject: "arrayObject";
211
+ arrayAny: "arrayAny";
212
+ any: "any";
213
+ chatHistory: "chatHistory";
214
+ datasetQuote: "datasetQuote";
215
+ dynamic: "dynamic";
216
+ }>;
217
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
218
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
219
+ description: z$1.ZodOptional<z$1.ZodString>;
220
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
221
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
222
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
223
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
224
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
225
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
226
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
227
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
228
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
229
+ key: z$1.ZodString;
230
+ label: z$1.ZodString;
231
+ description: z$1.ZodOptional<z$1.ZodString>;
232
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
233
+ inputType: z$1.ZodEnum<{
234
+ input: "input";
235
+ numberInput: "numberInput";
236
+ switch: "switch";
237
+ select: "select";
238
+ secret: "secret";
239
+ }>;
240
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
241
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
242
+ label: z$1.ZodString;
243
+ value: z$1.ZodString;
244
+ }, z$1.core.$strip>>>;
245
+ }, z$1.core.$strip>>>;
246
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
247
+ all: "all";
248
+ classify: "classify";
249
+ extractFields: "extractFields";
250
+ toolCall: "toolCall";
251
+ }>>;
252
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
253
+ label: z$1.ZodString;
254
+ value: z$1.ZodString;
255
+ }, z$1.core.$strip>>>;
256
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
257
+ label: z$1.ZodString;
258
+ value: z$1.ZodNumber;
259
+ }, z$1.core.$strip>>>;
260
+ step: z$1.ZodOptional<z$1.ZodNumber>;
261
+ max: z$1.ZodOptional<z$1.ZodNumber>;
262
+ min: z$1.ZodOptional<z$1.ZodNumber>;
263
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
264
+ }, z$1.core.$strip>>;
265
+ outputs: z$1.ZodArray<z$1.ZodObject<{
266
+ id: z$1.ZodOptional<z$1.ZodString>;
267
+ type: z$1.ZodOptional<z$1.ZodEnum<{
268
+ hidden: "hidden";
269
+ dynamic: "dynamic";
270
+ source: "source";
271
+ static: "static";
272
+ error: "error";
273
+ }>>;
274
+ key: z$1.ZodString;
275
+ valueType: z$1.ZodEnum<{
276
+ string: "string";
277
+ number: "number";
278
+ boolean: "boolean";
279
+ object: "object";
280
+ selectApp: "selectApp";
281
+ selectDataset: "selectDataset";
282
+ arrayString: "arrayString";
283
+ arrayNumber: "arrayNumber";
284
+ arrayBoolean: "arrayBoolean";
285
+ arrayObject: "arrayObject";
286
+ arrayAny: "arrayAny";
287
+ any: "any";
288
+ chatHistory: "chatHistory";
289
+ datasetQuote: "datasetQuote";
290
+ dynamic: "dynamic";
291
+ }>;
292
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
293
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
294
+ label: z$1.ZodOptional<z$1.ZodString>;
295
+ description: z$1.ZodOptional<z$1.ZodString>;
296
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
297
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
298
+ }, z$1.core.$strip>>;
299
+ }, z$1.core.$strip>>>;
300
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
301
+ tools: "tools";
302
+ search: "search";
303
+ multimodal: "multimodal";
304
+ communication: "communication";
305
+ finance: "finance";
306
+ design: "design";
307
+ productivity: "productivity";
308
+ news: "news";
309
+ entertainment: "entertainment";
310
+ social: "social";
311
+ scientific: "scientific";
312
+ other: "other";
313
+ }>>>;
314
+ icon: z$1.ZodString;
315
+ author: z$1.ZodOptional<z$1.ZodString>;
316
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
317
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
318
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
319
+ key: z$1.ZodString;
320
+ label: z$1.ZodString;
321
+ description: z$1.ZodOptional<z$1.ZodString>;
322
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
323
+ inputType: z$1.ZodEnum<{
324
+ input: "input";
325
+ numberInput: "numberInput";
326
+ switch: "switch";
327
+ select: "select";
328
+ secret: "secret";
329
+ }>;
330
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
331
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
332
+ label: z$1.ZodString;
333
+ value: z$1.ZodString;
334
+ }, z$1.core.$strip>>>;
335
+ }, z$1.core.$strip>>>;
336
+ filename: z$1.ZodString;
337
+ etag: z$1.ZodOptional<z$1.ZodString>;
338
+ }, z$1.core.$strip>;
339
+ type ToolType = z$1.infer<typeof ToolSchema> & {
340
+ handler: ToolHandlerFunctionType;
341
+ };
342
+ /**
343
+ * 工具集的所有属性
344
+ */
345
+ declare const ToolSetSchema: z$1.ZodObject<{
346
+ toolId: z$1.ZodString;
347
+ children: z$1.ZodArray<z$1.ZodObject<{
348
+ toolId: z$1.ZodString;
349
+ parentId: z$1.ZodOptional<z$1.ZodString>;
350
+ name: z$1.ZodObject<{
351
+ en: z$1.ZodString;
352
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
353
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
354
+ }, z$1.core.$strip>;
355
+ description: z$1.ZodObject<{
356
+ en: z$1.ZodString;
357
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
358
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
359
+ }, z$1.core.$strip>;
360
+ toolDescription: z$1.ZodString;
361
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
362
+ value: z$1.ZodString;
363
+ description: z$1.ZodOptional<z$1.ZodString>;
364
+ inputs: z$1.ZodArray<z$1.ZodObject<{
365
+ key: z$1.ZodString;
366
+ label: z$1.ZodString;
367
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
368
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
369
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
370
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
371
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
372
+ reference: "reference";
373
+ input: "input";
374
+ textarea: "textarea";
375
+ numberInput: "numberInput";
376
+ switch: "switch";
377
+ select: "select";
378
+ multipleSelect: "multipleSelect";
379
+ JSONEditor: "JSONEditor";
380
+ addInputParam: "addInputParam";
381
+ selectApp: "selectApp";
382
+ customVariable: "customVariable";
383
+ selectLLMModel: "selectLLMModel";
384
+ settingLLMModel: "settingLLMModel";
385
+ selectDataset: "selectDataset";
386
+ selectDatasetParamsModal: "selectDatasetParamsModal";
387
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
388
+ hidden: "hidden";
389
+ custom: "custom";
390
+ fileSelect: "fileSelect";
391
+ }>>;
392
+ valueType: z$1.ZodEnum<{
393
+ string: "string";
394
+ number: "number";
395
+ boolean: "boolean";
396
+ object: "object";
397
+ selectApp: "selectApp";
398
+ selectDataset: "selectDataset";
399
+ arrayString: "arrayString";
400
+ arrayNumber: "arrayNumber";
401
+ arrayBoolean: "arrayBoolean";
402
+ arrayObject: "arrayObject";
403
+ arrayAny: "arrayAny";
404
+ any: "any";
405
+ chatHistory: "chatHistory";
406
+ datasetQuote: "datasetQuote";
407
+ dynamic: "dynamic";
408
+ }>;
409
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
410
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
411
+ description: z$1.ZodOptional<z$1.ZodString>;
412
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
413
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
414
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
415
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
416
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
417
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
418
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
419
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
420
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
421
+ key: z$1.ZodString;
422
+ label: z$1.ZodString;
423
+ description: z$1.ZodOptional<z$1.ZodString>;
424
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
425
+ inputType: z$1.ZodEnum<{
426
+ input: "input";
427
+ numberInput: "numberInput";
428
+ switch: "switch";
429
+ select: "select";
430
+ secret: "secret";
431
+ }>;
432
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
433
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
434
+ label: z$1.ZodString;
435
+ value: z$1.ZodString;
436
+ }, z$1.core.$strip>>>;
437
+ }, z$1.core.$strip>>>;
438
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
439
+ all: "all";
440
+ classify: "classify";
441
+ extractFields: "extractFields";
442
+ toolCall: "toolCall";
443
+ }>>;
444
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
445
+ label: z$1.ZodString;
446
+ value: z$1.ZodString;
447
+ }, z$1.core.$strip>>>;
448
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
449
+ label: z$1.ZodString;
450
+ value: z$1.ZodNumber;
451
+ }, z$1.core.$strip>>>;
452
+ step: z$1.ZodOptional<z$1.ZodNumber>;
453
+ max: z$1.ZodOptional<z$1.ZodNumber>;
454
+ min: z$1.ZodOptional<z$1.ZodNumber>;
455
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
456
+ }, z$1.core.$strip>>;
457
+ outputs: z$1.ZodArray<z$1.ZodObject<{
458
+ id: z$1.ZodOptional<z$1.ZodString>;
459
+ type: z$1.ZodOptional<z$1.ZodEnum<{
460
+ hidden: "hidden";
461
+ dynamic: "dynamic";
462
+ source: "source";
463
+ static: "static";
464
+ error: "error";
465
+ }>>;
466
+ key: z$1.ZodString;
467
+ valueType: z$1.ZodEnum<{
468
+ string: "string";
469
+ number: "number";
470
+ boolean: "boolean";
471
+ object: "object";
472
+ selectApp: "selectApp";
473
+ selectDataset: "selectDataset";
474
+ arrayString: "arrayString";
475
+ arrayNumber: "arrayNumber";
476
+ arrayBoolean: "arrayBoolean";
477
+ arrayObject: "arrayObject";
478
+ arrayAny: "arrayAny";
479
+ any: "any";
480
+ chatHistory: "chatHistory";
481
+ datasetQuote: "datasetQuote";
482
+ dynamic: "dynamic";
483
+ }>;
484
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
485
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
486
+ label: z$1.ZodOptional<z$1.ZodString>;
487
+ description: z$1.ZodOptional<z$1.ZodString>;
488
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
489
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
490
+ }, z$1.core.$strip>>;
491
+ }, z$1.core.$strip>>>;
492
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
493
+ tools: "tools";
494
+ search: "search";
495
+ multimodal: "multimodal";
496
+ communication: "communication";
497
+ finance: "finance";
498
+ design: "design";
499
+ productivity: "productivity";
500
+ news: "news";
501
+ entertainment: "entertainment";
502
+ social: "social";
503
+ scientific: "scientific";
504
+ other: "other";
505
+ }>>>;
506
+ icon: z$1.ZodString;
507
+ author: z$1.ZodOptional<z$1.ZodString>;
508
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
509
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
510
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
511
+ key: z$1.ZodString;
512
+ label: z$1.ZodString;
513
+ description: z$1.ZodOptional<z$1.ZodString>;
514
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
515
+ inputType: z$1.ZodEnum<{
516
+ input: "input";
517
+ numberInput: "numberInput";
518
+ switch: "switch";
519
+ select: "select";
520
+ secret: "secret";
521
+ }>;
522
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
523
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
524
+ label: z$1.ZodString;
525
+ value: z$1.ZodString;
526
+ }, z$1.core.$strip>>>;
527
+ }, z$1.core.$strip>>>;
528
+ filename: z$1.ZodString;
529
+ etag: z$1.ZodOptional<z$1.ZodString>;
530
+ }, z$1.core.$strip>>;
531
+ description: z$1.ZodObject<{
532
+ en: z$1.ZodString;
533
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
534
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
535
+ }, z$1.core.$strip>;
536
+ toolDescription: z$1.ZodString;
537
+ name: z$1.ZodObject<{
538
+ en: z$1.ZodString;
539
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
540
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
541
+ }, z$1.core.$strip>;
542
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
543
+ tools: "tools";
544
+ search: "search";
545
+ multimodal: "multimodal";
546
+ communication: "communication";
547
+ finance: "finance";
548
+ design: "design";
549
+ productivity: "productivity";
550
+ news: "news";
551
+ entertainment: "entertainment";
552
+ social: "social";
553
+ scientific: "scientific";
554
+ other: "other";
555
+ }>>>;
556
+ author: z$1.ZodOptional<z$1.ZodString>;
557
+ icon: z$1.ZodString;
558
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
559
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
560
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
561
+ key: z$1.ZodString;
562
+ label: z$1.ZodString;
563
+ description: z$1.ZodOptional<z$1.ZodString>;
564
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
565
+ inputType: z$1.ZodEnum<{
566
+ input: "input";
567
+ numberInput: "numberInput";
568
+ switch: "switch";
569
+ select: "select";
570
+ secret: "secret";
571
+ }>;
572
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
573
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
574
+ label: z$1.ZodString;
575
+ value: z$1.ZodString;
576
+ }, z$1.core.$strip>>>;
577
+ }, z$1.core.$strip>>>;
578
+ filename: z$1.ZodString;
579
+ etag: z$1.ZodOptional<z$1.ZodString>;
580
+ }, z$1.core.$strip>;
581
+ type ToolSetType = z$1.infer<typeof ToolSetSchema>;
582
+ declare const UnifiedToolSchema: z$1.ZodObject<{
583
+ toolId: z$1.ZodString;
584
+ children: z$1.ZodArray<z$1.ZodObject<{
585
+ toolId: z$1.ZodString;
586
+ parentId: z$1.ZodOptional<z$1.ZodString>;
587
+ name: z$1.ZodObject<{
588
+ en: z$1.ZodString;
589
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
590
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
591
+ }, z$1.core.$strip>;
592
+ description: z$1.ZodObject<{
593
+ en: z$1.ZodString;
594
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
595
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
596
+ }, z$1.core.$strip>;
597
+ toolDescription: z$1.ZodString;
598
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
599
+ value: z$1.ZodString;
600
+ description: z$1.ZodOptional<z$1.ZodString>;
601
+ inputs: z$1.ZodArray<z$1.ZodObject<{
602
+ key: z$1.ZodString;
603
+ label: z$1.ZodString;
604
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
605
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
606
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
607
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
608
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
609
+ reference: "reference";
610
+ input: "input";
611
+ textarea: "textarea";
612
+ numberInput: "numberInput";
613
+ switch: "switch";
614
+ select: "select";
615
+ multipleSelect: "multipleSelect";
616
+ JSONEditor: "JSONEditor";
617
+ addInputParam: "addInputParam";
618
+ selectApp: "selectApp";
619
+ customVariable: "customVariable";
620
+ selectLLMModel: "selectLLMModel";
621
+ settingLLMModel: "settingLLMModel";
622
+ selectDataset: "selectDataset";
623
+ selectDatasetParamsModal: "selectDatasetParamsModal";
624
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
625
+ hidden: "hidden";
626
+ custom: "custom";
627
+ fileSelect: "fileSelect";
628
+ }>>;
629
+ valueType: z$1.ZodEnum<{
630
+ string: "string";
631
+ number: "number";
632
+ boolean: "boolean";
633
+ object: "object";
634
+ selectApp: "selectApp";
635
+ selectDataset: "selectDataset";
636
+ arrayString: "arrayString";
637
+ arrayNumber: "arrayNumber";
638
+ arrayBoolean: "arrayBoolean";
639
+ arrayObject: "arrayObject";
640
+ arrayAny: "arrayAny";
641
+ any: "any";
642
+ chatHistory: "chatHistory";
643
+ datasetQuote: "datasetQuote";
644
+ dynamic: "dynamic";
645
+ }>;
646
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
647
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
648
+ description: z$1.ZodOptional<z$1.ZodString>;
649
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
650
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
651
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
652
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
653
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
654
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
655
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
656
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
657
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
658
+ key: z$1.ZodString;
659
+ label: z$1.ZodString;
660
+ description: z$1.ZodOptional<z$1.ZodString>;
661
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
662
+ inputType: z$1.ZodEnum<{
663
+ input: "input";
664
+ numberInput: "numberInput";
665
+ switch: "switch";
666
+ select: "select";
667
+ secret: "secret";
668
+ }>;
669
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
670
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
671
+ label: z$1.ZodString;
672
+ value: z$1.ZodString;
673
+ }, z$1.core.$strip>>>;
674
+ }, z$1.core.$strip>>>;
675
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
676
+ all: "all";
677
+ classify: "classify";
678
+ extractFields: "extractFields";
679
+ toolCall: "toolCall";
680
+ }>>;
681
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
682
+ label: z$1.ZodString;
683
+ value: z$1.ZodString;
684
+ }, z$1.core.$strip>>>;
685
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
686
+ label: z$1.ZodString;
687
+ value: z$1.ZodNumber;
688
+ }, z$1.core.$strip>>>;
689
+ step: z$1.ZodOptional<z$1.ZodNumber>;
690
+ max: z$1.ZodOptional<z$1.ZodNumber>;
691
+ min: z$1.ZodOptional<z$1.ZodNumber>;
692
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
693
+ }, z$1.core.$strip>>;
694
+ outputs: z$1.ZodArray<z$1.ZodObject<{
695
+ id: z$1.ZodOptional<z$1.ZodString>;
696
+ type: z$1.ZodOptional<z$1.ZodEnum<{
697
+ hidden: "hidden";
698
+ dynamic: "dynamic";
699
+ source: "source";
700
+ static: "static";
701
+ error: "error";
702
+ }>>;
703
+ key: z$1.ZodString;
704
+ valueType: z$1.ZodEnum<{
705
+ string: "string";
706
+ number: "number";
707
+ boolean: "boolean";
708
+ object: "object";
709
+ selectApp: "selectApp";
710
+ selectDataset: "selectDataset";
711
+ arrayString: "arrayString";
712
+ arrayNumber: "arrayNumber";
713
+ arrayBoolean: "arrayBoolean";
714
+ arrayObject: "arrayObject";
715
+ arrayAny: "arrayAny";
716
+ any: "any";
717
+ chatHistory: "chatHistory";
718
+ datasetQuote: "datasetQuote";
719
+ dynamic: "dynamic";
720
+ }>;
721
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
722
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
723
+ label: z$1.ZodOptional<z$1.ZodString>;
724
+ description: z$1.ZodOptional<z$1.ZodString>;
725
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
726
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
727
+ }, z$1.core.$strip>>;
728
+ }, z$1.core.$strip>>>;
729
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
730
+ tools: "tools";
731
+ search: "search";
732
+ multimodal: "multimodal";
733
+ communication: "communication";
734
+ finance: "finance";
735
+ design: "design";
736
+ productivity: "productivity";
737
+ news: "news";
738
+ entertainment: "entertainment";
739
+ social: "social";
740
+ scientific: "scientific";
741
+ other: "other";
742
+ }>>>;
743
+ icon: z$1.ZodString;
744
+ author: z$1.ZodOptional<z$1.ZodString>;
745
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
746
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
747
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
748
+ key: z$1.ZodString;
749
+ label: z$1.ZodString;
750
+ description: z$1.ZodOptional<z$1.ZodString>;
751
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
752
+ inputType: z$1.ZodEnum<{
753
+ input: "input";
754
+ numberInput: "numberInput";
755
+ switch: "switch";
756
+ select: "select";
757
+ secret: "secret";
758
+ }>;
759
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
760
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
761
+ label: z$1.ZodString;
762
+ value: z$1.ZodString;
763
+ }, z$1.core.$strip>>>;
764
+ }, z$1.core.$strip>>>;
765
+ filename: z$1.ZodString;
766
+ etag: z$1.ZodOptional<z$1.ZodString>;
767
+ }, z$1.core.$strip>>;
768
+ description: z$1.ZodObject<{
769
+ en: z$1.ZodString;
770
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
771
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
772
+ }, z$1.core.$strip>;
773
+ toolDescription: z$1.ZodString;
774
+ name: z$1.ZodObject<{
775
+ en: z$1.ZodString;
776
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
777
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
778
+ }, z$1.core.$strip>;
779
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
780
+ tools: "tools";
781
+ search: "search";
782
+ multimodal: "multimodal";
783
+ communication: "communication";
784
+ finance: "finance";
785
+ design: "design";
786
+ productivity: "productivity";
787
+ news: "news";
788
+ entertainment: "entertainment";
789
+ social: "social";
790
+ scientific: "scientific";
791
+ other: "other";
792
+ }>>>;
793
+ author: z$1.ZodOptional<z$1.ZodString>;
794
+ icon: z$1.ZodString;
795
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
796
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
797
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
798
+ key: z$1.ZodString;
799
+ label: z$1.ZodString;
800
+ description: z$1.ZodOptional<z$1.ZodString>;
801
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
802
+ inputType: z$1.ZodEnum<{
803
+ input: "input";
804
+ numberInput: "numberInput";
805
+ switch: "switch";
806
+ select: "select";
807
+ secret: "secret";
808
+ }>;
809
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
810
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
811
+ label: z$1.ZodString;
812
+ value: z$1.ZodString;
813
+ }, z$1.core.$strip>>>;
814
+ }, z$1.core.$strip>>>;
815
+ filename: z$1.ZodString;
816
+ etag: z$1.ZodOptional<z$1.ZodString>;
817
+ parentId: z$1.ZodOptional<z$1.ZodString>;
818
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
819
+ value: z$1.ZodString;
820
+ description: z$1.ZodOptional<z$1.ZodString>;
821
+ inputs: z$1.ZodArray<z$1.ZodObject<{
822
+ key: z$1.ZodString;
823
+ label: z$1.ZodString;
824
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
825
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
826
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
827
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
828
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
829
+ reference: "reference";
830
+ input: "input";
831
+ textarea: "textarea";
832
+ numberInput: "numberInput";
833
+ switch: "switch";
834
+ select: "select";
835
+ multipleSelect: "multipleSelect";
836
+ JSONEditor: "JSONEditor";
837
+ addInputParam: "addInputParam";
838
+ selectApp: "selectApp";
839
+ customVariable: "customVariable";
840
+ selectLLMModel: "selectLLMModel";
841
+ settingLLMModel: "settingLLMModel";
842
+ selectDataset: "selectDataset";
843
+ selectDatasetParamsModal: "selectDatasetParamsModal";
844
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
845
+ hidden: "hidden";
846
+ custom: "custom";
847
+ fileSelect: "fileSelect";
848
+ }>>;
849
+ valueType: z$1.ZodEnum<{
850
+ string: "string";
851
+ number: "number";
852
+ boolean: "boolean";
853
+ object: "object";
854
+ selectApp: "selectApp";
855
+ selectDataset: "selectDataset";
856
+ arrayString: "arrayString";
857
+ arrayNumber: "arrayNumber";
858
+ arrayBoolean: "arrayBoolean";
859
+ arrayObject: "arrayObject";
860
+ arrayAny: "arrayAny";
861
+ any: "any";
862
+ chatHistory: "chatHistory";
863
+ datasetQuote: "datasetQuote";
864
+ dynamic: "dynamic";
865
+ }>;
866
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
867
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
868
+ description: z$1.ZodOptional<z$1.ZodString>;
869
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
870
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
871
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
872
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
873
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
874
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
875
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
876
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
877
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
878
+ key: z$1.ZodString;
879
+ label: z$1.ZodString;
880
+ description: z$1.ZodOptional<z$1.ZodString>;
881
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
882
+ inputType: z$1.ZodEnum<{
883
+ input: "input";
884
+ numberInput: "numberInput";
885
+ switch: "switch";
886
+ select: "select";
887
+ secret: "secret";
888
+ }>;
889
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
890
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
891
+ label: z$1.ZodString;
892
+ value: z$1.ZodString;
893
+ }, z$1.core.$strip>>>;
894
+ }, z$1.core.$strip>>>;
895
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
896
+ all: "all";
897
+ classify: "classify";
898
+ extractFields: "extractFields";
899
+ toolCall: "toolCall";
900
+ }>>;
901
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
902
+ label: z$1.ZodString;
903
+ value: z$1.ZodString;
904
+ }, z$1.core.$strip>>>;
905
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
906
+ label: z$1.ZodString;
907
+ value: z$1.ZodNumber;
908
+ }, z$1.core.$strip>>>;
909
+ step: z$1.ZodOptional<z$1.ZodNumber>;
910
+ max: z$1.ZodOptional<z$1.ZodNumber>;
911
+ min: z$1.ZodOptional<z$1.ZodNumber>;
912
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
913
+ }, z$1.core.$strip>>;
914
+ outputs: z$1.ZodArray<z$1.ZodObject<{
915
+ id: z$1.ZodOptional<z$1.ZodString>;
916
+ type: z$1.ZodOptional<z$1.ZodEnum<{
917
+ hidden: "hidden";
918
+ dynamic: "dynamic";
919
+ source: "source";
920
+ static: "static";
921
+ error: "error";
922
+ }>>;
923
+ key: z$1.ZodString;
924
+ valueType: z$1.ZodEnum<{
925
+ string: "string";
926
+ number: "number";
927
+ boolean: "boolean";
928
+ object: "object";
929
+ selectApp: "selectApp";
930
+ selectDataset: "selectDataset";
931
+ arrayString: "arrayString";
932
+ arrayNumber: "arrayNumber";
933
+ arrayBoolean: "arrayBoolean";
934
+ arrayObject: "arrayObject";
935
+ arrayAny: "arrayAny";
936
+ any: "any";
937
+ chatHistory: "chatHistory";
938
+ datasetQuote: "datasetQuote";
939
+ dynamic: "dynamic";
940
+ }>;
941
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
942
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
943
+ label: z$1.ZodOptional<z$1.ZodString>;
944
+ description: z$1.ZodOptional<z$1.ZodString>;
945
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
946
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
947
+ }, z$1.core.$strip>>;
948
+ }, z$1.core.$strip>>>;
949
+ }, z$1.core.$strip>;
950
+ type UnifiedToolType = z$1.infer<typeof UnifiedToolSchema>;
951
+ /**
952
+ * 构建产物中的 Tool 的类型
953
+ */
954
+ declare const ToolDistSchema: z$1.ZodObject<{
955
+ icon: z$1.ZodOptional<z$1.ZodString>;
956
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
957
+ value: z$1.ZodString;
958
+ description: z$1.ZodOptional<z$1.ZodString>;
959
+ inputs: z$1.ZodArray<z$1.ZodObject<{
960
+ key: z$1.ZodString;
961
+ label: z$1.ZodString;
962
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
963
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
964
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
965
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
966
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
967
+ reference: "reference";
968
+ input: "input";
969
+ textarea: "textarea";
970
+ numberInput: "numberInput";
971
+ switch: "switch";
972
+ select: "select";
973
+ multipleSelect: "multipleSelect";
974
+ JSONEditor: "JSONEditor";
975
+ addInputParam: "addInputParam";
976
+ selectApp: "selectApp";
977
+ customVariable: "customVariable";
978
+ selectLLMModel: "selectLLMModel";
979
+ settingLLMModel: "settingLLMModel";
980
+ selectDataset: "selectDataset";
981
+ selectDatasetParamsModal: "selectDatasetParamsModal";
982
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
983
+ hidden: "hidden";
984
+ custom: "custom";
985
+ fileSelect: "fileSelect";
986
+ }>>;
987
+ valueType: z$1.ZodEnum<{
988
+ string: "string";
989
+ number: "number";
990
+ boolean: "boolean";
991
+ object: "object";
992
+ selectApp: "selectApp";
993
+ selectDataset: "selectDataset";
994
+ arrayString: "arrayString";
995
+ arrayNumber: "arrayNumber";
996
+ arrayBoolean: "arrayBoolean";
997
+ arrayObject: "arrayObject";
998
+ arrayAny: "arrayAny";
999
+ any: "any";
1000
+ chatHistory: "chatHistory";
1001
+ datasetQuote: "datasetQuote";
1002
+ dynamic: "dynamic";
1003
+ }>;
1004
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1005
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1006
+ description: z$1.ZodOptional<z$1.ZodString>;
1007
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1008
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
1009
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
1010
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
1011
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
1012
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
1013
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
1014
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
1015
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1016
+ key: z$1.ZodString;
1017
+ label: z$1.ZodString;
1018
+ description: z$1.ZodOptional<z$1.ZodString>;
1019
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1020
+ inputType: z$1.ZodEnum<{
1021
+ input: "input";
1022
+ numberInput: "numberInput";
1023
+ switch: "switch";
1024
+ select: "select";
1025
+ secret: "secret";
1026
+ }>;
1027
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1028
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1029
+ label: z$1.ZodString;
1030
+ value: z$1.ZodString;
1031
+ }, z$1.core.$strip>>>;
1032
+ }, z$1.core.$strip>>>;
1033
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
1034
+ all: "all";
1035
+ classify: "classify";
1036
+ extractFields: "extractFields";
1037
+ toolCall: "toolCall";
1038
+ }>>;
1039
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1040
+ label: z$1.ZodString;
1041
+ value: z$1.ZodString;
1042
+ }, z$1.core.$strip>>>;
1043
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1044
+ label: z$1.ZodString;
1045
+ value: z$1.ZodNumber;
1046
+ }, z$1.core.$strip>>>;
1047
+ step: z$1.ZodOptional<z$1.ZodNumber>;
1048
+ max: z$1.ZodOptional<z$1.ZodNumber>;
1049
+ min: z$1.ZodOptional<z$1.ZodNumber>;
1050
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
1051
+ }, z$1.core.$strip>>;
1052
+ outputs: z$1.ZodArray<z$1.ZodObject<{
1053
+ id: z$1.ZodOptional<z$1.ZodString>;
1054
+ type: z$1.ZodOptional<z$1.ZodEnum<{
1055
+ hidden: "hidden";
1056
+ dynamic: "dynamic";
1057
+ source: "source";
1058
+ static: "static";
1059
+ error: "error";
1060
+ }>>;
1061
+ key: z$1.ZodString;
1062
+ valueType: z$1.ZodEnum<{
1063
+ string: "string";
1064
+ number: "number";
1065
+ boolean: "boolean";
1066
+ object: "object";
1067
+ selectApp: "selectApp";
1068
+ selectDataset: "selectDataset";
1069
+ arrayString: "arrayString";
1070
+ arrayNumber: "arrayNumber";
1071
+ arrayBoolean: "arrayBoolean";
1072
+ arrayObject: "arrayObject";
1073
+ arrayAny: "arrayAny";
1074
+ any: "any";
1075
+ chatHistory: "chatHistory";
1076
+ datasetQuote: "datasetQuote";
1077
+ dynamic: "dynamic";
1078
+ }>;
1079
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1080
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1081
+ label: z$1.ZodOptional<z$1.ZodString>;
1082
+ description: z$1.ZodOptional<z$1.ZodString>;
1083
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1084
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1085
+ }, z$1.core.$strip>>;
1086
+ }, z$1.core.$strip>>>;
1087
+ children: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1088
+ icon: z$1.ZodOptional<z$1.ZodString>;
1089
+ description: z$1.ZodObject<{
1090
+ en: z$1.ZodString;
1091
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1092
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1093
+ }, z$1.core.$strip>;
1094
+ toolDescription: z$1.ZodString;
1095
+ name: z$1.ZodObject<{
1096
+ en: z$1.ZodString;
1097
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1098
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1099
+ }, z$1.core.$strip>;
1100
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
1101
+ tools: "tools";
1102
+ search: "search";
1103
+ multimodal: "multimodal";
1104
+ communication: "communication";
1105
+ finance: "finance";
1106
+ design: "design";
1107
+ productivity: "productivity";
1108
+ news: "news";
1109
+ entertainment: "entertainment";
1110
+ social: "social";
1111
+ scientific: "scientific";
1112
+ other: "other";
1113
+ }>>>;
1114
+ author: z$1.ZodOptional<z$1.ZodString>;
1115
+ toolId: z$1.ZodString;
1116
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1117
+ value: z$1.ZodString;
1118
+ description: z$1.ZodOptional<z$1.ZodString>;
1119
+ inputs: z$1.ZodArray<z$1.ZodObject<{
1120
+ key: z$1.ZodString;
1121
+ label: z$1.ZodString;
1122
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
1123
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
1124
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1125
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
1126
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
1127
+ reference: "reference";
1128
+ input: "input";
1129
+ textarea: "textarea";
1130
+ numberInput: "numberInput";
1131
+ switch: "switch";
1132
+ select: "select";
1133
+ multipleSelect: "multipleSelect";
1134
+ JSONEditor: "JSONEditor";
1135
+ addInputParam: "addInputParam";
1136
+ selectApp: "selectApp";
1137
+ customVariable: "customVariable";
1138
+ selectLLMModel: "selectLLMModel";
1139
+ settingLLMModel: "settingLLMModel";
1140
+ selectDataset: "selectDataset";
1141
+ selectDatasetParamsModal: "selectDatasetParamsModal";
1142
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
1143
+ hidden: "hidden";
1144
+ custom: "custom";
1145
+ fileSelect: "fileSelect";
1146
+ }>>;
1147
+ valueType: z$1.ZodEnum<{
1148
+ string: "string";
1149
+ number: "number";
1150
+ boolean: "boolean";
1151
+ object: "object";
1152
+ selectApp: "selectApp";
1153
+ selectDataset: "selectDataset";
1154
+ arrayString: "arrayString";
1155
+ arrayNumber: "arrayNumber";
1156
+ arrayBoolean: "arrayBoolean";
1157
+ arrayObject: "arrayObject";
1158
+ arrayAny: "arrayAny";
1159
+ any: "any";
1160
+ chatHistory: "chatHistory";
1161
+ datasetQuote: "datasetQuote";
1162
+ dynamic: "dynamic";
1163
+ }>;
1164
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1165
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1166
+ description: z$1.ZodOptional<z$1.ZodString>;
1167
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1168
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
1169
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
1170
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
1171
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
1172
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
1173
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
1174
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
1175
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1176
+ key: z$1.ZodString;
1177
+ label: z$1.ZodString;
1178
+ description: z$1.ZodOptional<z$1.ZodString>;
1179
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1180
+ inputType: z$1.ZodEnum<{
1181
+ input: "input";
1182
+ numberInput: "numberInput";
1183
+ switch: "switch";
1184
+ select: "select";
1185
+ secret: "secret";
1186
+ }>;
1187
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1188
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1189
+ label: z$1.ZodString;
1190
+ value: z$1.ZodString;
1191
+ }, z$1.core.$strip>>>;
1192
+ }, z$1.core.$strip>>>;
1193
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
1194
+ all: "all";
1195
+ classify: "classify";
1196
+ extractFields: "extractFields";
1197
+ toolCall: "toolCall";
1198
+ }>>;
1199
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1200
+ label: z$1.ZodString;
1201
+ value: z$1.ZodString;
1202
+ }, z$1.core.$strip>>>;
1203
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1204
+ label: z$1.ZodString;
1205
+ value: z$1.ZodNumber;
1206
+ }, z$1.core.$strip>>>;
1207
+ step: z$1.ZodOptional<z$1.ZodNumber>;
1208
+ max: z$1.ZodOptional<z$1.ZodNumber>;
1209
+ min: z$1.ZodOptional<z$1.ZodNumber>;
1210
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
1211
+ }, z$1.core.$strip>>;
1212
+ outputs: z$1.ZodArray<z$1.ZodObject<{
1213
+ id: z$1.ZodOptional<z$1.ZodString>;
1214
+ type: z$1.ZodOptional<z$1.ZodEnum<{
1215
+ hidden: "hidden";
1216
+ dynamic: "dynamic";
1217
+ source: "source";
1218
+ static: "static";
1219
+ error: "error";
1220
+ }>>;
1221
+ key: z$1.ZodString;
1222
+ valueType: z$1.ZodEnum<{
1223
+ string: "string";
1224
+ number: "number";
1225
+ boolean: "boolean";
1226
+ object: "object";
1227
+ selectApp: "selectApp";
1228
+ selectDataset: "selectDataset";
1229
+ arrayString: "arrayString";
1230
+ arrayNumber: "arrayNumber";
1231
+ arrayBoolean: "arrayBoolean";
1232
+ arrayObject: "arrayObject";
1233
+ arrayAny: "arrayAny";
1234
+ any: "any";
1235
+ chatHistory: "chatHistory";
1236
+ datasetQuote: "datasetQuote";
1237
+ dynamic: "dynamic";
1238
+ }>;
1239
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1240
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1241
+ label: z$1.ZodOptional<z$1.ZodString>;
1242
+ description: z$1.ZodOptional<z$1.ZodString>;
1243
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1244
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1245
+ }, z$1.core.$strip>>;
1246
+ }, z$1.core.$strip>>>;
1247
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
1248
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1249
+ key: z$1.ZodString;
1250
+ label: z$1.ZodString;
1251
+ description: z$1.ZodOptional<z$1.ZodString>;
1252
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1253
+ inputType: z$1.ZodEnum<{
1254
+ input: "input";
1255
+ numberInput: "numberInput";
1256
+ switch: "switch";
1257
+ select: "select";
1258
+ secret: "secret";
1259
+ }>;
1260
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1261
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1262
+ label: z$1.ZodString;
1263
+ value: z$1.ZodString;
1264
+ }, z$1.core.$strip>>>;
1265
+ }, z$1.core.$strip>>>;
1266
+ filename: z$1.ZodString;
1267
+ etag: z$1.ZodOptional<z$1.ZodString>;
1268
+ }, z$1.core.$strip>>>;
1269
+ description: z$1.ZodObject<{
1270
+ en: z$1.ZodString;
1271
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1272
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1273
+ }, z$1.core.$strip>;
1274
+ toolDescription: z$1.ZodString;
1275
+ name: z$1.ZodObject<{
1276
+ en: z$1.ZodString;
1277
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1278
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1279
+ }, z$1.core.$strip>;
1280
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
1281
+ tools: "tools";
1282
+ search: "search";
1283
+ multimodal: "multimodal";
1284
+ communication: "communication";
1285
+ finance: "finance";
1286
+ design: "design";
1287
+ productivity: "productivity";
1288
+ news: "news";
1289
+ entertainment: "entertainment";
1290
+ social: "social";
1291
+ scientific: "scientific";
1292
+ other: "other";
1293
+ }>>>;
1294
+ author: z$1.ZodOptional<z$1.ZodString>;
1295
+ toolId: z$1.ZodString;
1296
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
1297
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1298
+ key: z$1.ZodString;
1299
+ label: z$1.ZodString;
1300
+ description: z$1.ZodOptional<z$1.ZodString>;
1301
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1302
+ inputType: z$1.ZodEnum<{
1303
+ input: "input";
1304
+ numberInput: "numberInput";
1305
+ switch: "switch";
1306
+ select: "select";
1307
+ secret: "secret";
1308
+ }>;
1309
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1310
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1311
+ label: z$1.ZodString;
1312
+ value: z$1.ZodString;
1313
+ }, z$1.core.$strip>>>;
1314
+ }, z$1.core.$strip>>>;
1315
+ filename: z$1.ZodString;
1316
+ etag: z$1.ZodOptional<z$1.ZodString>;
1317
+ }, z$1.core.$strip>;
1318
+ type ToolDistType = z$1.infer<typeof ToolDistSchema>;
1319
+ /**
1320
+ * 工具配置
1321
+ * defineTool 函数的参数, 继承自 ToolSchema, 部分参数会自动处理,因此是 optional
1322
+ */
1323
+ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
1324
+ toolId: z$1.ZodOptional<z$1.ZodString>;
1325
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
1326
+ versionList: z$1.ZodArray<z$1.ZodObject<{
1327
+ value: z$1.ZodString;
1328
+ description: z$1.ZodOptional<z$1.ZodString>;
1329
+ inputs: z$1.ZodArray<z$1.ZodObject<{
1330
+ key: z$1.ZodString;
1331
+ label: z$1.ZodString;
1332
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
1333
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
1334
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1335
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
1336
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
1337
+ reference: "reference";
1338
+ input: "input";
1339
+ textarea: "textarea";
1340
+ numberInput: "numberInput";
1341
+ switch: "switch";
1342
+ select: "select";
1343
+ multipleSelect: "multipleSelect";
1344
+ JSONEditor: "JSONEditor";
1345
+ addInputParam: "addInputParam";
1346
+ selectApp: "selectApp";
1347
+ customVariable: "customVariable";
1348
+ selectLLMModel: "selectLLMModel";
1349
+ settingLLMModel: "settingLLMModel";
1350
+ selectDataset: "selectDataset";
1351
+ selectDatasetParamsModal: "selectDatasetParamsModal";
1352
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
1353
+ hidden: "hidden";
1354
+ custom: "custom";
1355
+ fileSelect: "fileSelect";
1356
+ }>>;
1357
+ valueType: z$1.ZodEnum<{
1358
+ string: "string";
1359
+ number: "number";
1360
+ boolean: "boolean";
1361
+ object: "object";
1362
+ selectApp: "selectApp";
1363
+ selectDataset: "selectDataset";
1364
+ arrayString: "arrayString";
1365
+ arrayNumber: "arrayNumber";
1366
+ arrayBoolean: "arrayBoolean";
1367
+ arrayObject: "arrayObject";
1368
+ arrayAny: "arrayAny";
1369
+ any: "any";
1370
+ chatHistory: "chatHistory";
1371
+ datasetQuote: "datasetQuote";
1372
+ dynamic: "dynamic";
1373
+ }>;
1374
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1375
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1376
+ description: z$1.ZodOptional<z$1.ZodString>;
1377
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1378
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
1379
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
1380
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
1381
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
1382
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
1383
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
1384
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
1385
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1386
+ key: z$1.ZodString;
1387
+ label: z$1.ZodString;
1388
+ description: z$1.ZodOptional<z$1.ZodString>;
1389
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1390
+ inputType: z$1.ZodEnum<{
1391
+ input: "input";
1392
+ numberInput: "numberInput";
1393
+ switch: "switch";
1394
+ select: "select";
1395
+ secret: "secret";
1396
+ }>;
1397
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1398
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1399
+ label: z$1.ZodString;
1400
+ value: z$1.ZodString;
1401
+ }, z$1.core.$strip>>>;
1402
+ }, z$1.core.$strip>>>;
1403
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
1404
+ all: "all";
1405
+ classify: "classify";
1406
+ extractFields: "extractFields";
1407
+ toolCall: "toolCall";
1408
+ }>>;
1409
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1410
+ label: z$1.ZodString;
1411
+ value: z$1.ZodString;
1412
+ }, z$1.core.$strip>>>;
1413
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1414
+ label: z$1.ZodString;
1415
+ value: z$1.ZodNumber;
1416
+ }, z$1.core.$strip>>>;
1417
+ step: z$1.ZodOptional<z$1.ZodNumber>;
1418
+ max: z$1.ZodOptional<z$1.ZodNumber>;
1419
+ min: z$1.ZodOptional<z$1.ZodNumber>;
1420
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
1421
+ }, z$1.core.$strip>>;
1422
+ outputs: z$1.ZodArray<z$1.ZodObject<{
1423
+ id: z$1.ZodOptional<z$1.ZodString>;
1424
+ type: z$1.ZodOptional<z$1.ZodEnum<{
1425
+ hidden: "hidden";
1426
+ dynamic: "dynamic";
1427
+ source: "source";
1428
+ static: "static";
1429
+ error: "error";
1430
+ }>>;
1431
+ key: z$1.ZodString;
1432
+ valueType: z$1.ZodEnum<{
1433
+ string: "string";
1434
+ number: "number";
1435
+ boolean: "boolean";
1436
+ object: "object";
1437
+ selectApp: "selectApp";
1438
+ selectDataset: "selectDataset";
1439
+ arrayString: "arrayString";
1440
+ arrayNumber: "arrayNumber";
1441
+ arrayBoolean: "arrayBoolean";
1442
+ arrayObject: "arrayObject";
1443
+ arrayAny: "arrayAny";
1444
+ any: "any";
1445
+ chatHistory: "chatHistory";
1446
+ datasetQuote: "datasetQuote";
1447
+ dynamic: "dynamic";
1448
+ }>;
1449
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1450
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1451
+ label: z$1.ZodOptional<z$1.ZodString>;
1452
+ description: z$1.ZodOptional<z$1.ZodString>;
1453
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1454
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1455
+ }, z$1.core.$strip>>;
1456
+ }, z$1.core.$strip>>;
1457
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
1458
+ tools: "tools";
1459
+ search: "search";
1460
+ multimodal: "multimodal";
1461
+ communication: "communication";
1462
+ finance: "finance";
1463
+ design: "design";
1464
+ productivity: "productivity";
1465
+ news: "news";
1466
+ entertainment: "entertainment";
1467
+ social: "social";
1468
+ scientific: "scientific";
1469
+ other: "other";
1470
+ }>>>;
1471
+ icon: z$1.ZodOptional<z$1.ZodString>;
1472
+ author: z$1.ZodOptional<z$1.ZodString>;
1473
+ tutorialLink: z$1.ZodOptional<z$1.ZodURL>;
1474
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1475
+ key: z$1.ZodString;
1476
+ label: z$1.ZodString;
1477
+ description: z$1.ZodOptional<z$1.ZodString>;
1478
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1479
+ inputType: z$1.ZodEnum<{
1480
+ input: "input";
1481
+ numberInput: "numberInput";
1482
+ switch: "switch";
1483
+ select: "select";
1484
+ secret: "secret";
1485
+ }>;
1486
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1487
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1488
+ label: z$1.ZodString;
1489
+ value: z$1.ZodString;
1490
+ }, z$1.core.$strip>>>;
1491
+ }, z$1.core.$strip>>>;
1492
+ description: z$1.ZodObject<{
1493
+ en: z$1.ZodString;
1494
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1495
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1496
+ }, z$1.core.$strip>;
1497
+ name: z$1.ZodObject<{
1498
+ en: z$1.ZodString;
1499
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1500
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1501
+ }, z$1.core.$strip>;
1502
+ parentId: z$1.ZodOptional<z$1.ZodString>;
1503
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
1504
+ etag: z$1.ZodOptional<z$1.ZodString>;
1505
+ }, z$1.core.$strip>, z$1.ZodTransform<{
1506
+ toolDescription: string | {
1507
+ en: string;
1508
+ 'zh-CN'?: string | undefined;
1509
+ 'zh-Hant'?: string | undefined;
1510
+ };
1511
+ versionList: {
1512
+ value: string;
1513
+ inputs: {
1514
+ key: string;
1515
+ label: string;
1516
+ renderTypeList: ("reference" | "input" | "textarea" | "numberInput" | "switch" | "select" | "multipleSelect" | "JSONEditor" | "addInputParam" | "selectApp" | "customVariable" | "selectLLMModel" | "settingLLMModel" | "selectDataset" | "selectDatasetParamsModal" | "settingDatasetQuotePrompt" | "hidden" | "custom" | "fileSelect")[];
1517
+ valueType: "string" | "number" | "boolean" | "object" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "any" | "chatHistory" | "datasetQuote" | "dynamic";
1518
+ referencePlaceholder?: string | undefined;
1519
+ placeholder?: string | undefined;
1520
+ defaultValue?: any;
1521
+ selectedTypeIndex?: number | undefined;
1522
+ valueDesc?: string | undefined;
1523
+ value?: unknown;
1524
+ description?: string | undefined;
1525
+ required?: boolean | undefined;
1526
+ toolDescription?: string | undefined;
1527
+ canEdit?: boolean | undefined;
1528
+ isPro?: boolean | undefined;
1529
+ maxLength?: number | undefined;
1530
+ canSelectFile?: boolean | undefined;
1531
+ canSelectImg?: boolean | undefined;
1532
+ maxFiles?: number | undefined;
1533
+ inputList?: {
1534
+ key: string;
1535
+ label: string;
1536
+ inputType: "input" | "numberInput" | "switch" | "select" | "secret";
1537
+ description?: string | undefined;
1538
+ required?: boolean | undefined;
1539
+ defaultValue?: any;
1540
+ list?: {
1541
+ label: string;
1542
+ value: string;
1543
+ }[] | undefined;
1544
+ }[] | undefined;
1545
+ llmModelType?: "all" | "classify" | "extractFields" | "toolCall" | undefined;
1546
+ list?: {
1547
+ label: string;
1548
+ value: string;
1549
+ }[] | undefined;
1550
+ markList?: {
1551
+ label: string;
1552
+ value: number;
1553
+ }[] | undefined;
1554
+ step?: number | undefined;
1555
+ max?: number | undefined;
1556
+ min?: number | undefined;
1557
+ precision?: number | undefined;
1558
+ }[];
1559
+ outputs: {
1560
+ key: string;
1561
+ valueType: "string" | "number" | "boolean" | "object" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "any" | "chatHistory" | "datasetQuote" | "dynamic";
1562
+ id?: string | undefined;
1563
+ type?: "hidden" | "dynamic" | "source" | "static" | "error" | undefined;
1564
+ valueDesc?: string | undefined;
1565
+ value?: unknown;
1566
+ label?: string | undefined;
1567
+ description?: string | undefined;
1568
+ defaultValue?: any;
1569
+ required?: boolean | undefined;
1570
+ }[];
1571
+ description?: string | undefined;
1572
+ }[];
1573
+ description: {
1574
+ en: string;
1575
+ 'zh-CN'?: string | undefined;
1576
+ 'zh-Hant'?: string | undefined;
1577
+ };
1578
+ name: {
1579
+ en: string;
1580
+ 'zh-CN'?: string | undefined;
1581
+ 'zh-Hant'?: string | undefined;
1582
+ };
1583
+ toolId?: string | undefined;
1584
+ tags?: ("tools" | "search" | "multimodal" | "communication" | "finance" | "design" | "productivity" | "news" | "entertainment" | "social" | "scientific" | "other")[] | undefined;
1585
+ icon?: string | undefined;
1586
+ author?: string | undefined;
1587
+ tutorialLink?: string | undefined;
1588
+ secretInputConfig?: {
1589
+ key: string;
1590
+ label: string;
1591
+ inputType: "input" | "numberInput" | "switch" | "select" | "secret";
1592
+ description?: string | undefined;
1593
+ required?: boolean | undefined;
1594
+ defaultValue?: any;
1595
+ list?: {
1596
+ label: string;
1597
+ value: string;
1598
+ }[] | undefined;
1599
+ }[] | undefined;
1600
+ parentId?: string | undefined;
1601
+ tutorialUrl?: string | undefined;
1602
+ etag?: string | undefined;
1603
+ }, {
1604
+ versionList: {
1605
+ value: string;
1606
+ inputs: {
1607
+ key: string;
1608
+ label: string;
1609
+ renderTypeList: ("reference" | "input" | "textarea" | "numberInput" | "switch" | "select" | "multipleSelect" | "JSONEditor" | "addInputParam" | "selectApp" | "customVariable" | "selectLLMModel" | "settingLLMModel" | "selectDataset" | "selectDatasetParamsModal" | "settingDatasetQuotePrompt" | "hidden" | "custom" | "fileSelect")[];
1610
+ valueType: "string" | "number" | "boolean" | "object" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "any" | "chatHistory" | "datasetQuote" | "dynamic";
1611
+ referencePlaceholder?: string | undefined;
1612
+ placeholder?: string | undefined;
1613
+ defaultValue?: any;
1614
+ selectedTypeIndex?: number | undefined;
1615
+ valueDesc?: string | undefined;
1616
+ value?: unknown;
1617
+ description?: string | undefined;
1618
+ required?: boolean | undefined;
1619
+ toolDescription?: string | undefined;
1620
+ canEdit?: boolean | undefined;
1621
+ isPro?: boolean | undefined;
1622
+ maxLength?: number | undefined;
1623
+ canSelectFile?: boolean | undefined;
1624
+ canSelectImg?: boolean | undefined;
1625
+ maxFiles?: number | undefined;
1626
+ inputList?: {
1627
+ key: string;
1628
+ label: string;
1629
+ inputType: "input" | "numberInput" | "switch" | "select" | "secret";
1630
+ description?: string | undefined;
1631
+ required?: boolean | undefined;
1632
+ defaultValue?: any;
1633
+ list?: {
1634
+ label: string;
1635
+ value: string;
1636
+ }[] | undefined;
1637
+ }[] | undefined;
1638
+ llmModelType?: "all" | "classify" | "extractFields" | "toolCall" | undefined;
1639
+ list?: {
1640
+ label: string;
1641
+ value: string;
1642
+ }[] | undefined;
1643
+ markList?: {
1644
+ label: string;
1645
+ value: number;
1646
+ }[] | undefined;
1647
+ step?: number | undefined;
1648
+ max?: number | undefined;
1649
+ min?: number | undefined;
1650
+ precision?: number | undefined;
1651
+ }[];
1652
+ outputs: {
1653
+ key: string;
1654
+ valueType: "string" | "number" | "boolean" | "object" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "any" | "chatHistory" | "datasetQuote" | "dynamic";
1655
+ id?: string | undefined;
1656
+ type?: "hidden" | "dynamic" | "source" | "static" | "error" | undefined;
1657
+ valueDesc?: string | undefined;
1658
+ value?: unknown;
1659
+ label?: string | undefined;
1660
+ description?: string | undefined;
1661
+ defaultValue?: any;
1662
+ required?: boolean | undefined;
1663
+ }[];
1664
+ description?: string | undefined;
1665
+ }[];
1666
+ description: {
1667
+ en: string;
1668
+ 'zh-CN'?: string | undefined;
1669
+ 'zh-Hant'?: string | undefined;
1670
+ };
1671
+ name: {
1672
+ en: string;
1673
+ 'zh-CN'?: string | undefined;
1674
+ 'zh-Hant'?: string | undefined;
1675
+ };
1676
+ toolId?: string | undefined;
1677
+ toolDescription?: string | undefined;
1678
+ tags?: ("tools" | "search" | "multimodal" | "communication" | "finance" | "design" | "productivity" | "news" | "entertainment" | "social" | "scientific" | "other")[] | undefined;
1679
+ icon?: string | undefined;
1680
+ author?: string | undefined;
1681
+ tutorialLink?: string | undefined;
1682
+ secretInputConfig?: {
1683
+ key: string;
1684
+ label: string;
1685
+ inputType: "input" | "numberInput" | "switch" | "select" | "secret";
1686
+ description?: string | undefined;
1687
+ required?: boolean | undefined;
1688
+ defaultValue?: any;
1689
+ list?: {
1690
+ label: string;
1691
+ value: string;
1692
+ }[] | undefined;
1693
+ }[] | undefined;
1694
+ parentId?: string | undefined;
1695
+ tutorialUrl?: string | undefined;
1696
+ etag?: string | undefined;
1697
+ }>>;
1698
+ type ToolConfigType = z$1.infer<typeof ToolConfigSchema>;
1699
+ /**
1700
+ * 工具集配置
1701
+ */
1702
+ declare const ToolSetConfigSchema: z$1.ZodObject<{
1703
+ children: z$1.ZodArray<z$1.ZodObject<{
1704
+ toolId: z$1.ZodString;
1705
+ parentId: z$1.ZodOptional<z$1.ZodString>;
1706
+ name: z$1.ZodObject<{
1707
+ en: z$1.ZodString;
1708
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1709
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1710
+ }, z$1.core.$strip>;
1711
+ description: z$1.ZodObject<{
1712
+ en: z$1.ZodString;
1713
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1714
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1715
+ }, z$1.core.$strip>;
1716
+ toolDescription: z$1.ZodString;
1717
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1718
+ value: z$1.ZodString;
1719
+ description: z$1.ZodOptional<z$1.ZodString>;
1720
+ inputs: z$1.ZodArray<z$1.ZodObject<{
1721
+ key: z$1.ZodString;
1722
+ label: z$1.ZodString;
1723
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
1724
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
1725
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1726
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
1727
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
1728
+ reference: "reference";
1729
+ input: "input";
1730
+ textarea: "textarea";
1731
+ numberInput: "numberInput";
1732
+ switch: "switch";
1733
+ select: "select";
1734
+ multipleSelect: "multipleSelect";
1735
+ JSONEditor: "JSONEditor";
1736
+ addInputParam: "addInputParam";
1737
+ selectApp: "selectApp";
1738
+ customVariable: "customVariable";
1739
+ selectLLMModel: "selectLLMModel";
1740
+ settingLLMModel: "settingLLMModel";
1741
+ selectDataset: "selectDataset";
1742
+ selectDatasetParamsModal: "selectDatasetParamsModal";
1743
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
1744
+ hidden: "hidden";
1745
+ custom: "custom";
1746
+ fileSelect: "fileSelect";
1747
+ }>>;
1748
+ valueType: z$1.ZodEnum<{
1749
+ string: "string";
1750
+ number: "number";
1751
+ boolean: "boolean";
1752
+ object: "object";
1753
+ selectApp: "selectApp";
1754
+ selectDataset: "selectDataset";
1755
+ arrayString: "arrayString";
1756
+ arrayNumber: "arrayNumber";
1757
+ arrayBoolean: "arrayBoolean";
1758
+ arrayObject: "arrayObject";
1759
+ arrayAny: "arrayAny";
1760
+ any: "any";
1761
+ chatHistory: "chatHistory";
1762
+ datasetQuote: "datasetQuote";
1763
+ dynamic: "dynamic";
1764
+ }>;
1765
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1766
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1767
+ description: z$1.ZodOptional<z$1.ZodString>;
1768
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1769
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
1770
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
1771
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
1772
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
1773
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
1774
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
1775
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
1776
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1777
+ key: z$1.ZodString;
1778
+ label: z$1.ZodString;
1779
+ description: z$1.ZodOptional<z$1.ZodString>;
1780
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1781
+ inputType: z$1.ZodEnum<{
1782
+ input: "input";
1783
+ numberInput: "numberInput";
1784
+ switch: "switch";
1785
+ select: "select";
1786
+ secret: "secret";
1787
+ }>;
1788
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1789
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1790
+ label: z$1.ZodString;
1791
+ value: z$1.ZodString;
1792
+ }, z$1.core.$strip>>>;
1793
+ }, z$1.core.$strip>>>;
1794
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
1795
+ all: "all";
1796
+ classify: "classify";
1797
+ extractFields: "extractFields";
1798
+ toolCall: "toolCall";
1799
+ }>>;
1800
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1801
+ label: z$1.ZodString;
1802
+ value: z$1.ZodString;
1803
+ }, z$1.core.$strip>>>;
1804
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1805
+ label: z$1.ZodString;
1806
+ value: z$1.ZodNumber;
1807
+ }, z$1.core.$strip>>>;
1808
+ step: z$1.ZodOptional<z$1.ZodNumber>;
1809
+ max: z$1.ZodOptional<z$1.ZodNumber>;
1810
+ min: z$1.ZodOptional<z$1.ZodNumber>;
1811
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
1812
+ }, z$1.core.$strip>>;
1813
+ outputs: z$1.ZodArray<z$1.ZodObject<{
1814
+ id: z$1.ZodOptional<z$1.ZodString>;
1815
+ type: z$1.ZodOptional<z$1.ZodEnum<{
1816
+ hidden: "hidden";
1817
+ dynamic: "dynamic";
1818
+ source: "source";
1819
+ static: "static";
1820
+ error: "error";
1821
+ }>>;
1822
+ key: z$1.ZodString;
1823
+ valueType: z$1.ZodEnum<{
1824
+ string: "string";
1825
+ number: "number";
1826
+ boolean: "boolean";
1827
+ object: "object";
1828
+ selectApp: "selectApp";
1829
+ selectDataset: "selectDataset";
1830
+ arrayString: "arrayString";
1831
+ arrayNumber: "arrayNumber";
1832
+ arrayBoolean: "arrayBoolean";
1833
+ arrayObject: "arrayObject";
1834
+ arrayAny: "arrayAny";
1835
+ any: "any";
1836
+ chatHistory: "chatHistory";
1837
+ datasetQuote: "datasetQuote";
1838
+ dynamic: "dynamic";
1839
+ }>;
1840
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
1841
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
1842
+ label: z$1.ZodOptional<z$1.ZodString>;
1843
+ description: z$1.ZodOptional<z$1.ZodString>;
1844
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1845
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1846
+ }, z$1.core.$strip>>;
1847
+ }, z$1.core.$strip>>>;
1848
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
1849
+ tools: "tools";
1850
+ search: "search";
1851
+ multimodal: "multimodal";
1852
+ communication: "communication";
1853
+ finance: "finance";
1854
+ design: "design";
1855
+ productivity: "productivity";
1856
+ news: "news";
1857
+ entertainment: "entertainment";
1858
+ social: "social";
1859
+ scientific: "scientific";
1860
+ other: "other";
1861
+ }>>>;
1862
+ icon: z$1.ZodString;
1863
+ author: z$1.ZodOptional<z$1.ZodString>;
1864
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
1865
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
1866
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1867
+ key: z$1.ZodString;
1868
+ label: z$1.ZodString;
1869
+ description: z$1.ZodOptional<z$1.ZodString>;
1870
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1871
+ inputType: z$1.ZodEnum<{
1872
+ input: "input";
1873
+ numberInput: "numberInput";
1874
+ switch: "switch";
1875
+ select: "select";
1876
+ secret: "secret";
1877
+ }>;
1878
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1879
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1880
+ label: z$1.ZodString;
1881
+ value: z$1.ZodString;
1882
+ }, z$1.core.$strip>>>;
1883
+ }, z$1.core.$strip>>>;
1884
+ filename: z$1.ZodString;
1885
+ etag: z$1.ZodOptional<z$1.ZodString>;
1886
+ }, z$1.core.$strip>>;
1887
+ description: z$1.ZodObject<{
1888
+ en: z$1.ZodString;
1889
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1890
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1891
+ }, z$1.core.$strip>;
1892
+ name: z$1.ZodObject<{
1893
+ en: z$1.ZodString;
1894
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1895
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1896
+ }, z$1.core.$strip>;
1897
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
1898
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
1899
+ filename: z$1.ZodString;
1900
+ etag: z$1.ZodOptional<z$1.ZodString>;
1901
+ toolId: z$1.ZodOptional<z$1.ZodString>;
1902
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
1903
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
1904
+ tools: "tools";
1905
+ search: "search";
1906
+ multimodal: "multimodal";
1907
+ communication: "communication";
1908
+ finance: "finance";
1909
+ design: "design";
1910
+ productivity: "productivity";
1911
+ news: "news";
1912
+ entertainment: "entertainment";
1913
+ social: "social";
1914
+ scientific: "scientific";
1915
+ other: "other";
1916
+ }>>>;
1917
+ icon: z$1.ZodOptional<z$1.ZodString>;
1918
+ author: z$1.ZodOptional<z$1.ZodString>;
1919
+ tutorialLink: z$1.ZodOptional<z$1.ZodURL>;
1920
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1921
+ key: z$1.ZodString;
1922
+ label: z$1.ZodString;
1923
+ description: z$1.ZodOptional<z$1.ZodString>;
1924
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
1925
+ inputType: z$1.ZodEnum<{
1926
+ input: "input";
1927
+ numberInput: "numberInput";
1928
+ switch: "switch";
1929
+ select: "select";
1930
+ secret: "secret";
1931
+ }>;
1932
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1933
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1934
+ label: z$1.ZodString;
1935
+ value: z$1.ZodString;
1936
+ }, z$1.core.$strip>>>;
1937
+ }, z$1.core.$strip>>>;
1938
+ }, z$1.core.$strip>;
1939
+ type ToolSetConfigType = z$1.infer<typeof ToolSetConfigSchema>;
1940
+ declare const ToolDetailSchema: z$1.ZodObject<{
1941
+ description: z$1.ZodObject<{
1942
+ en: z$1.ZodString;
1943
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1944
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1945
+ }, z$1.core.$strip>;
1946
+ toolDescription: z$1.ZodString;
1947
+ name: z$1.ZodObject<{
1948
+ en: z$1.ZodString;
1949
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
1950
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
1951
+ }, z$1.core.$strip>;
1952
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
1953
+ tools: "tools";
1954
+ search: "search";
1955
+ multimodal: "multimodal";
1956
+ communication: "communication";
1957
+ finance: "finance";
1958
+ design: "design";
1959
+ productivity: "productivity";
1960
+ news: "news";
1961
+ entertainment: "entertainment";
1962
+ social: "social";
1963
+ scientific: "scientific";
1964
+ other: "other";
1965
+ }>>>;
1966
+ author: z$1.ZodOptional<z$1.ZodString>;
1967
+ toolId: z$1.ZodString;
1968
+ versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1969
+ value: z$1.ZodString;
1970
+ description: z$1.ZodOptional<z$1.ZodString>;
1971
+ inputs: z$1.ZodArray<z$1.ZodObject<{
1972
+ key: z$1.ZodString;
1973
+ label: z$1.ZodString;
1974
+ referencePlaceholder: z$1.ZodOptional<z$1.ZodString>;
1975
+ placeholder: z$1.ZodOptional<z$1.ZodString>;
1976
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
1977
+ selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
1978
+ renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
1979
+ reference: "reference";
1980
+ input: "input";
1981
+ textarea: "textarea";
1982
+ numberInput: "numberInput";
1983
+ switch: "switch";
1984
+ select: "select";
1985
+ multipleSelect: "multipleSelect";
1986
+ JSONEditor: "JSONEditor";
1987
+ addInputParam: "addInputParam";
1988
+ selectApp: "selectApp";
1989
+ customVariable: "customVariable";
1990
+ selectLLMModel: "selectLLMModel";
1991
+ settingLLMModel: "settingLLMModel";
1992
+ selectDataset: "selectDataset";
1993
+ selectDatasetParamsModal: "selectDatasetParamsModal";
1994
+ settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
1995
+ hidden: "hidden";
1996
+ custom: "custom";
1997
+ fileSelect: "fileSelect";
1998
+ }>>;
1999
+ valueType: z$1.ZodEnum<{
2000
+ string: "string";
2001
+ number: "number";
2002
+ boolean: "boolean";
2003
+ object: "object";
2004
+ selectApp: "selectApp";
2005
+ selectDataset: "selectDataset";
2006
+ arrayString: "arrayString";
2007
+ arrayNumber: "arrayNumber";
2008
+ arrayBoolean: "arrayBoolean";
2009
+ arrayObject: "arrayObject";
2010
+ arrayAny: "arrayAny";
2011
+ any: "any";
2012
+ chatHistory: "chatHistory";
2013
+ datasetQuote: "datasetQuote";
2014
+ dynamic: "dynamic";
2015
+ }>;
2016
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
2017
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
2018
+ description: z$1.ZodOptional<z$1.ZodString>;
2019
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
2020
+ toolDescription: z$1.ZodOptional<z$1.ZodString>;
2021
+ canEdit: z$1.ZodOptional<z$1.ZodBoolean>;
2022
+ isPro: z$1.ZodOptional<z$1.ZodBoolean>;
2023
+ maxLength: z$1.ZodOptional<z$1.ZodNumber>;
2024
+ canSelectFile: z$1.ZodOptional<z$1.ZodBoolean>;
2025
+ canSelectImg: z$1.ZodOptional<z$1.ZodBoolean>;
2026
+ maxFiles: z$1.ZodOptional<z$1.ZodNumber>;
2027
+ inputList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2028
+ key: z$1.ZodString;
2029
+ label: z$1.ZodString;
2030
+ description: z$1.ZodOptional<z$1.ZodString>;
2031
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
2032
+ inputType: z$1.ZodEnum<{
2033
+ input: "input";
2034
+ numberInput: "numberInput";
2035
+ switch: "switch";
2036
+ select: "select";
2037
+ secret: "secret";
2038
+ }>;
2039
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
2040
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2041
+ label: z$1.ZodString;
2042
+ value: z$1.ZodString;
2043
+ }, z$1.core.$strip>>>;
2044
+ }, z$1.core.$strip>>>;
2045
+ llmModelType: z$1.ZodOptional<z$1.ZodEnum<{
2046
+ all: "all";
2047
+ classify: "classify";
2048
+ extractFields: "extractFields";
2049
+ toolCall: "toolCall";
2050
+ }>>;
2051
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2052
+ label: z$1.ZodString;
2053
+ value: z$1.ZodString;
2054
+ }, z$1.core.$strip>>>;
2055
+ markList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2056
+ label: z$1.ZodString;
2057
+ value: z$1.ZodNumber;
2058
+ }, z$1.core.$strip>>>;
2059
+ step: z$1.ZodOptional<z$1.ZodNumber>;
2060
+ max: z$1.ZodOptional<z$1.ZodNumber>;
2061
+ min: z$1.ZodOptional<z$1.ZodNumber>;
2062
+ precision: z$1.ZodOptional<z$1.ZodNumber>;
2063
+ }, z$1.core.$strip>>;
2064
+ outputs: z$1.ZodArray<z$1.ZodObject<{
2065
+ id: z$1.ZodOptional<z$1.ZodString>;
2066
+ type: z$1.ZodOptional<z$1.ZodEnum<{
2067
+ hidden: "hidden";
2068
+ dynamic: "dynamic";
2069
+ source: "source";
2070
+ static: "static";
2071
+ error: "error";
2072
+ }>>;
2073
+ key: z$1.ZodString;
2074
+ valueType: z$1.ZodEnum<{
2075
+ string: "string";
2076
+ number: "number";
2077
+ boolean: "boolean";
2078
+ object: "object";
2079
+ selectApp: "selectApp";
2080
+ selectDataset: "selectDataset";
2081
+ arrayString: "arrayString";
2082
+ arrayNumber: "arrayNumber";
2083
+ arrayBoolean: "arrayBoolean";
2084
+ arrayObject: "arrayObject";
2085
+ arrayAny: "arrayAny";
2086
+ any: "any";
2087
+ chatHistory: "chatHistory";
2088
+ datasetQuote: "datasetQuote";
2089
+ dynamic: "dynamic";
2090
+ }>;
2091
+ valueDesc: z$1.ZodOptional<z$1.ZodString>;
2092
+ value: z$1.ZodOptional<z$1.ZodUnknown>;
2093
+ label: z$1.ZodOptional<z$1.ZodString>;
2094
+ description: z$1.ZodOptional<z$1.ZodString>;
2095
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
2096
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
2097
+ }, z$1.core.$strip>>;
2098
+ }, z$1.core.$strip>>>;
2099
+ icon: z$1.ZodString;
2100
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
2101
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
2102
+ secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2103
+ key: z$1.ZodString;
2104
+ label: z$1.ZodString;
2105
+ description: z$1.ZodOptional<z$1.ZodString>;
2106
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
2107
+ inputType: z$1.ZodEnum<{
2108
+ input: "input";
2109
+ numberInput: "numberInput";
2110
+ switch: "switch";
2111
+ select: "select";
2112
+ secret: "secret";
2113
+ }>;
2114
+ defaultValue: z$1.ZodOptional<z$1.ZodAny>;
2115
+ list: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2116
+ label: z$1.ZodString;
2117
+ value: z$1.ZodString;
2118
+ }, z$1.core.$strip>>>;
2119
+ }, z$1.core.$strip>>>;
2120
+ etag: z$1.ZodOptional<z$1.ZodString>;
2121
+ }, z$1.core.$strip>;
2122
+ type ToolDetailType = z$1.infer<typeof ToolDetailSchema>;
2123
+ declare const ToolSimpleSchema: z$1.ZodObject<{
2124
+ description: z$1.ZodObject<{
2125
+ en: z$1.ZodString;
2126
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
2127
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
2128
+ }, z$1.core.$strip>;
2129
+ name: z$1.ZodObject<{
2130
+ en: z$1.ZodString;
2131
+ 'zh-CN': z$1.ZodOptional<z$1.ZodString>;
2132
+ 'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
2133
+ }, z$1.core.$strip>;
2134
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
2135
+ tools: "tools";
2136
+ search: "search";
2137
+ multimodal: "multimodal";
2138
+ communication: "communication";
2139
+ finance: "finance";
2140
+ design: "design";
2141
+ productivity: "productivity";
2142
+ news: "news";
2143
+ entertainment: "entertainment";
2144
+ social: "social";
2145
+ scientific: "scientific";
2146
+ other: "other";
2147
+ }>>>;
2148
+ author: z$1.ZodOptional<z$1.ZodString>;
2149
+ toolId: z$1.ZodString;
2150
+ icon: z$1.ZodString;
2151
+ tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
2152
+ readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
2153
+ etag: z$1.ZodOptional<z$1.ZodString>;
2154
+ }, z$1.core.$strip>;
2155
+ type ToolSimpleType = z$1.infer<typeof ToolSimpleSchema>;
2156
+ //#endregion
2157
+ export { ToolConfigSchema, ToolConfigType, ToolDetailSchema, ToolDetailType, ToolDistSchema, ToolDistType, ToolSchema, ToolSetConfigSchema, ToolSetConfigType, ToolSetSchema, ToolSetType, ToolSimpleSchema, ToolSimpleType, ToolTagEnum, ToolType, UnifiedToolSchema, UnifiedToolType, VersionListItemSchema, VersionListItemType };