@fastgpt-plugin/helpers 0.0.1-alpha.4 → 0.0.1-alpha.5
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.
- package/dist/tools/helper.d.ts +7 -11
- package/dist/tools/schemas/fastgpt.d.ts +13 -13
- package/dist/tools/schemas/tool.d.ts +117 -121
- package/dist/tools/schemas/tool.js +1 -1
- package/package.json +1 -1
package/dist/tools/helper.d.ts
CHANGED
|
@@ -23,18 +23,14 @@ declare const exportTool: <I, O>({
|
|
|
23
23
|
error: unknown;
|
|
24
24
|
output?: never;
|
|
25
25
|
}>;
|
|
26
|
-
toolDescription: string
|
|
27
|
-
en: string;
|
|
28
|
-
'zh-CN'?: string | undefined;
|
|
29
|
-
'zh-Hant'?: string | undefined;
|
|
30
|
-
};
|
|
26
|
+
toolDescription: string;
|
|
31
27
|
versionList: {
|
|
32
28
|
value: string;
|
|
33
29
|
inputs: {
|
|
34
30
|
key: string;
|
|
35
31
|
label: string;
|
|
36
|
-
renderTypeList: ("
|
|
37
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
32
|
+
renderTypeList: ("custom" | "input" | "hidden" | "reference" | "textarea" | "numberInput" | "switch" | "select" | "multipleSelect" | "JSONEditor" | "addInputParam" | "selectApp" | "customVariable" | "selectLLMModel" | "settingLLMModel" | "selectDataset" | "selectDatasetParamsModal" | "settingDatasetQuotePrompt" | "fileSelect")[];
|
|
33
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
38
34
|
referencePlaceholder?: string | undefined;
|
|
39
35
|
placeholder?: string | undefined;
|
|
40
36
|
defaultValue?: any;
|
|
@@ -78,7 +74,7 @@ declare const exportTool: <I, O>({
|
|
|
78
74
|
}[];
|
|
79
75
|
outputs: {
|
|
80
76
|
key: string;
|
|
81
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
77
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
82
78
|
id?: string | undefined;
|
|
83
79
|
type?: "hidden" | "dynamic" | "source" | "static" | "error" | undefined;
|
|
84
80
|
valueDesc?: string | undefined;
|
|
@@ -148,8 +144,8 @@ declare const exportToolSet: ({
|
|
|
148
144
|
inputs: {
|
|
149
145
|
key: string;
|
|
150
146
|
label: string;
|
|
151
|
-
renderTypeList: ("
|
|
152
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
147
|
+
renderTypeList: ("custom" | "input" | "hidden" | "reference" | "textarea" | "numberInput" | "switch" | "select" | "multipleSelect" | "JSONEditor" | "addInputParam" | "selectApp" | "customVariable" | "selectLLMModel" | "settingLLMModel" | "selectDataset" | "selectDatasetParamsModal" | "settingDatasetQuotePrompt" | "fileSelect")[];
|
|
148
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
153
149
|
referencePlaceholder?: string | undefined;
|
|
154
150
|
placeholder?: string | undefined;
|
|
155
151
|
defaultValue?: any;
|
|
@@ -193,7 +189,7 @@ declare const exportToolSet: ({
|
|
|
193
189
|
}[];
|
|
194
190
|
outputs: {
|
|
195
191
|
key: string;
|
|
196
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
192
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
197
193
|
id?: string | undefined;
|
|
198
194
|
type?: "hidden" | "dynamic" | "source" | "static" | "error" | undefined;
|
|
199
195
|
valueDesc?: string | undefined;
|
|
@@ -2,8 +2,10 @@ import z from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/tools/schemas/fastgpt.d.ts
|
|
4
4
|
declare const FlowNodeInputTypeSchema: z.ZodEnum<{
|
|
5
|
-
|
|
5
|
+
custom: "custom";
|
|
6
6
|
input: "input";
|
|
7
|
+
hidden: "hidden";
|
|
8
|
+
reference: "reference";
|
|
7
9
|
textarea: "textarea";
|
|
8
10
|
numberInput: "numberInput";
|
|
9
11
|
switch: "switch";
|
|
@@ -18,13 +20,13 @@ declare const FlowNodeInputTypeSchema: z.ZodEnum<{
|
|
|
18
20
|
selectDataset: "selectDataset";
|
|
19
21
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
20
22
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
21
|
-
hidden: "hidden";
|
|
22
|
-
custom: "custom";
|
|
23
23
|
fileSelect: "fileSelect";
|
|
24
24
|
}>;
|
|
25
25
|
declare const FlowNodeInputTypeEnum: {
|
|
26
|
-
|
|
26
|
+
custom: "custom";
|
|
27
27
|
input: "input";
|
|
28
|
+
hidden: "hidden";
|
|
29
|
+
reference: "reference";
|
|
28
30
|
textarea: "textarea";
|
|
29
31
|
numberInput: "numberInput";
|
|
30
32
|
switch: "switch";
|
|
@@ -39,8 +41,6 @@ declare const FlowNodeInputTypeEnum: {
|
|
|
39
41
|
selectDataset: "selectDataset";
|
|
40
42
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
41
43
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
42
|
-
hidden: "hidden";
|
|
43
|
-
custom: "custom";
|
|
44
44
|
fileSelect: "fileSelect";
|
|
45
45
|
};
|
|
46
46
|
declare const WorkflowIOValueTypeSchema: z.ZodEnum<{
|
|
@@ -48,9 +48,9 @@ declare const WorkflowIOValueTypeSchema: z.ZodEnum<{
|
|
|
48
48
|
number: "number";
|
|
49
49
|
boolean: "boolean";
|
|
50
50
|
object: "object";
|
|
51
|
+
any: "any";
|
|
51
52
|
selectApp: "selectApp";
|
|
52
53
|
selectDataset: "selectDataset";
|
|
53
|
-
any: "any";
|
|
54
54
|
arrayString: "arrayString";
|
|
55
55
|
arrayNumber: "arrayNumber";
|
|
56
56
|
arrayBoolean: "arrayBoolean";
|
|
@@ -65,9 +65,9 @@ declare const WorkflowIOValueTypeEnum: {
|
|
|
65
65
|
number: "number";
|
|
66
66
|
boolean: "boolean";
|
|
67
67
|
object: "object";
|
|
68
|
+
any: "any";
|
|
68
69
|
selectApp: "selectApp";
|
|
69
70
|
selectDataset: "selectDataset";
|
|
70
|
-
any: "any";
|
|
71
71
|
arrayString: "arrayString";
|
|
72
72
|
arrayNumber: "arrayNumber";
|
|
73
73
|
arrayBoolean: "arrayBoolean";
|
|
@@ -130,8 +130,10 @@ declare const InputSchema: z.ZodObject<{
|
|
|
130
130
|
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
131
131
|
selectedTypeIndex: z.ZodOptional<z.ZodNumber>;
|
|
132
132
|
renderTypeList: z.ZodArray<z.ZodEnum<{
|
|
133
|
-
|
|
133
|
+
custom: "custom";
|
|
134
134
|
input: "input";
|
|
135
|
+
hidden: "hidden";
|
|
136
|
+
reference: "reference";
|
|
135
137
|
textarea: "textarea";
|
|
136
138
|
numberInput: "numberInput";
|
|
137
139
|
switch: "switch";
|
|
@@ -146,8 +148,6 @@ declare const InputSchema: z.ZodObject<{
|
|
|
146
148
|
selectDataset: "selectDataset";
|
|
147
149
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
148
150
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
149
|
-
hidden: "hidden";
|
|
150
|
-
custom: "custom";
|
|
151
151
|
fileSelect: "fileSelect";
|
|
152
152
|
}>>;
|
|
153
153
|
valueType: z.ZodEnum<{
|
|
@@ -155,9 +155,9 @@ declare const InputSchema: z.ZodObject<{
|
|
|
155
155
|
number: "number";
|
|
156
156
|
boolean: "boolean";
|
|
157
157
|
object: "object";
|
|
158
|
+
any: "any";
|
|
158
159
|
selectApp: "selectApp";
|
|
159
160
|
selectDataset: "selectDataset";
|
|
160
|
-
any: "any";
|
|
161
161
|
arrayString: "arrayString";
|
|
162
162
|
arrayNumber: "arrayNumber";
|
|
163
163
|
arrayBoolean: "arrayBoolean";
|
|
@@ -230,9 +230,9 @@ declare const OutputSchema: z.ZodObject<{
|
|
|
230
230
|
number: "number";
|
|
231
231
|
boolean: "boolean";
|
|
232
232
|
object: "object";
|
|
233
|
+
any: "any";
|
|
233
234
|
selectApp: "selectApp";
|
|
234
235
|
selectDataset: "selectDataset";
|
|
235
|
-
any: "any";
|
|
236
236
|
arrayString: "arrayString";
|
|
237
237
|
arrayNumber: "arrayNumber";
|
|
238
238
|
arrayBoolean: "arrayBoolean";
|
|
@@ -41,8 +41,10 @@ declare const VersionListItemSchema: z$1.ZodObject<{
|
|
|
41
41
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
42
42
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
43
43
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
44
|
-
|
|
44
|
+
custom: "custom";
|
|
45
45
|
input: "input";
|
|
46
|
+
hidden: "hidden";
|
|
47
|
+
reference: "reference";
|
|
46
48
|
textarea: "textarea";
|
|
47
49
|
numberInput: "numberInput";
|
|
48
50
|
switch: "switch";
|
|
@@ -57,8 +59,6 @@ declare const VersionListItemSchema: z$1.ZodObject<{
|
|
|
57
59
|
selectDataset: "selectDataset";
|
|
58
60
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
59
61
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
60
|
-
hidden: "hidden";
|
|
61
|
-
custom: "custom";
|
|
62
62
|
fileSelect: "fileSelect";
|
|
63
63
|
}>>;
|
|
64
64
|
valueType: z$1.ZodEnum<{
|
|
@@ -66,9 +66,9 @@ declare const VersionListItemSchema: z$1.ZodObject<{
|
|
|
66
66
|
number: "number";
|
|
67
67
|
boolean: "boolean";
|
|
68
68
|
object: "object";
|
|
69
|
+
any: "any";
|
|
69
70
|
selectApp: "selectApp";
|
|
70
71
|
selectDataset: "selectDataset";
|
|
71
|
-
any: "any";
|
|
72
72
|
arrayString: "arrayString";
|
|
73
73
|
arrayNumber: "arrayNumber";
|
|
74
74
|
arrayBoolean: "arrayBoolean";
|
|
@@ -141,9 +141,9 @@ declare const VersionListItemSchema: z$1.ZodObject<{
|
|
|
141
141
|
number: "number";
|
|
142
142
|
boolean: "boolean";
|
|
143
143
|
object: "object";
|
|
144
|
+
any: "any";
|
|
144
145
|
selectApp: "selectApp";
|
|
145
146
|
selectDataset: "selectDataset";
|
|
146
|
-
any: "any";
|
|
147
147
|
arrayString: "arrayString";
|
|
148
148
|
arrayNumber: "arrayNumber";
|
|
149
149
|
arrayBoolean: "arrayBoolean";
|
|
@@ -190,8 +190,10 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
190
190
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
191
191
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
192
192
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
193
|
-
|
|
193
|
+
custom: "custom";
|
|
194
194
|
input: "input";
|
|
195
|
+
hidden: "hidden";
|
|
196
|
+
reference: "reference";
|
|
195
197
|
textarea: "textarea";
|
|
196
198
|
numberInput: "numberInput";
|
|
197
199
|
switch: "switch";
|
|
@@ -206,8 +208,6 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
206
208
|
selectDataset: "selectDataset";
|
|
207
209
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
208
210
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
209
|
-
hidden: "hidden";
|
|
210
|
-
custom: "custom";
|
|
211
211
|
fileSelect: "fileSelect";
|
|
212
212
|
}>>;
|
|
213
213
|
valueType: z$1.ZodEnum<{
|
|
@@ -215,9 +215,9 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
215
215
|
number: "number";
|
|
216
216
|
boolean: "boolean";
|
|
217
217
|
object: "object";
|
|
218
|
+
any: "any";
|
|
218
219
|
selectApp: "selectApp";
|
|
219
220
|
selectDataset: "selectDataset";
|
|
220
|
-
any: "any";
|
|
221
221
|
arrayString: "arrayString";
|
|
222
222
|
arrayNumber: "arrayNumber";
|
|
223
223
|
arrayBoolean: "arrayBoolean";
|
|
@@ -290,9 +290,9 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
290
290
|
number: "number";
|
|
291
291
|
boolean: "boolean";
|
|
292
292
|
object: "object";
|
|
293
|
+
any: "any";
|
|
293
294
|
selectApp: "selectApp";
|
|
294
295
|
selectDataset: "selectDataset";
|
|
295
|
-
any: "any";
|
|
296
296
|
arrayString: "arrayString";
|
|
297
297
|
arrayNumber: "arrayNumber";
|
|
298
298
|
arrayBoolean: "arrayBoolean";
|
|
@@ -383,8 +383,10 @@ declare const ToolSetSchema: z$1.ZodObject<{
|
|
|
383
383
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
384
384
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
385
385
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
386
|
-
|
|
386
|
+
custom: "custom";
|
|
387
387
|
input: "input";
|
|
388
|
+
hidden: "hidden";
|
|
389
|
+
reference: "reference";
|
|
388
390
|
textarea: "textarea";
|
|
389
391
|
numberInput: "numberInput";
|
|
390
392
|
switch: "switch";
|
|
@@ -399,8 +401,6 @@ declare const ToolSetSchema: z$1.ZodObject<{
|
|
|
399
401
|
selectDataset: "selectDataset";
|
|
400
402
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
401
403
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
402
|
-
hidden: "hidden";
|
|
403
|
-
custom: "custom";
|
|
404
404
|
fileSelect: "fileSelect";
|
|
405
405
|
}>>;
|
|
406
406
|
valueType: z$1.ZodEnum<{
|
|
@@ -408,9 +408,9 @@ declare const ToolSetSchema: z$1.ZodObject<{
|
|
|
408
408
|
number: "number";
|
|
409
409
|
boolean: "boolean";
|
|
410
410
|
object: "object";
|
|
411
|
+
any: "any";
|
|
411
412
|
selectApp: "selectApp";
|
|
412
413
|
selectDataset: "selectDataset";
|
|
413
|
-
any: "any";
|
|
414
414
|
arrayString: "arrayString";
|
|
415
415
|
arrayNumber: "arrayNumber";
|
|
416
416
|
arrayBoolean: "arrayBoolean";
|
|
@@ -483,9 +483,9 @@ declare const ToolSetSchema: z$1.ZodObject<{
|
|
|
483
483
|
number: "number";
|
|
484
484
|
boolean: "boolean";
|
|
485
485
|
object: "object";
|
|
486
|
+
any: "any";
|
|
486
487
|
selectApp: "selectApp";
|
|
487
488
|
selectDataset: "selectDataset";
|
|
488
|
-
any: "any";
|
|
489
489
|
arrayString: "arrayString";
|
|
490
490
|
arrayNumber: "arrayNumber";
|
|
491
491
|
arrayBoolean: "arrayBoolean";
|
|
@@ -548,12 +548,6 @@ declare const ToolSetSchema: z$1.ZodObject<{
|
|
|
548
548
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
549
549
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
550
550
|
}, z$1.core.$strip>;
|
|
551
|
-
description: z$1.ZodObject<{
|
|
552
|
-
en: z$1.ZodString;
|
|
553
|
-
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
554
|
-
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
555
|
-
}, z$1.core.$strip>;
|
|
556
|
-
toolDescription: z$1.ZodString;
|
|
557
551
|
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
558
552
|
tools: "tools";
|
|
559
553
|
search: "search";
|
|
@@ -568,8 +562,14 @@ declare const ToolSetSchema: z$1.ZodObject<{
|
|
|
568
562
|
scientific: "scientific";
|
|
569
563
|
other: "other";
|
|
570
564
|
}>>>;
|
|
571
|
-
icon: z$1.ZodString;
|
|
572
565
|
author: z$1.ZodOptional<z$1.ZodString>;
|
|
566
|
+
description: z$1.ZodObject<{
|
|
567
|
+
en: z$1.ZodString;
|
|
568
|
+
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
569
|
+
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
570
|
+
}, z$1.core.$strip>;
|
|
571
|
+
toolDescription: z$1.ZodString;
|
|
572
|
+
icon: z$1.ZodString;
|
|
573
573
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
574
574
|
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
575
575
|
secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -621,8 +621,10 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
621
621
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
622
622
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
623
623
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
624
|
-
|
|
624
|
+
custom: "custom";
|
|
625
625
|
input: "input";
|
|
626
|
+
hidden: "hidden";
|
|
627
|
+
reference: "reference";
|
|
626
628
|
textarea: "textarea";
|
|
627
629
|
numberInput: "numberInput";
|
|
628
630
|
switch: "switch";
|
|
@@ -637,8 +639,6 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
637
639
|
selectDataset: "selectDataset";
|
|
638
640
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
639
641
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
640
|
-
hidden: "hidden";
|
|
641
|
-
custom: "custom";
|
|
642
642
|
fileSelect: "fileSelect";
|
|
643
643
|
}>>;
|
|
644
644
|
valueType: z$1.ZodEnum<{
|
|
@@ -646,9 +646,9 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
646
646
|
number: "number";
|
|
647
647
|
boolean: "boolean";
|
|
648
648
|
object: "object";
|
|
649
|
+
any: "any";
|
|
649
650
|
selectApp: "selectApp";
|
|
650
651
|
selectDataset: "selectDataset";
|
|
651
|
-
any: "any";
|
|
652
652
|
arrayString: "arrayString";
|
|
653
653
|
arrayNumber: "arrayNumber";
|
|
654
654
|
arrayBoolean: "arrayBoolean";
|
|
@@ -721,9 +721,9 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
721
721
|
number: "number";
|
|
722
722
|
boolean: "boolean";
|
|
723
723
|
object: "object";
|
|
724
|
+
any: "any";
|
|
724
725
|
selectApp: "selectApp";
|
|
725
726
|
selectDataset: "selectDataset";
|
|
726
|
-
any: "any";
|
|
727
727
|
arrayString: "arrayString";
|
|
728
728
|
arrayNumber: "arrayNumber";
|
|
729
729
|
arrayBoolean: "arrayBoolean";
|
|
@@ -786,12 +786,6 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
786
786
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
787
787
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
788
788
|
}, z$1.core.$strip>;
|
|
789
|
-
description: z$1.ZodObject<{
|
|
790
|
-
en: z$1.ZodString;
|
|
791
|
-
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
792
|
-
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
793
|
-
}, z$1.core.$strip>;
|
|
794
|
-
toolDescription: z$1.ZodString;
|
|
795
789
|
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
796
790
|
tools: "tools";
|
|
797
791
|
search: "search";
|
|
@@ -806,8 +800,14 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
806
800
|
scientific: "scientific";
|
|
807
801
|
other: "other";
|
|
808
802
|
}>>>;
|
|
809
|
-
icon: z$1.ZodString;
|
|
810
803
|
author: z$1.ZodOptional<z$1.ZodString>;
|
|
804
|
+
description: z$1.ZodObject<{
|
|
805
|
+
en: z$1.ZodString;
|
|
806
|
+
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
807
|
+
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
808
|
+
}, z$1.core.$strip>;
|
|
809
|
+
toolDescription: z$1.ZodString;
|
|
810
|
+
icon: z$1.ZodString;
|
|
811
811
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
812
812
|
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
813
813
|
secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -842,8 +842,10 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
842
842
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
843
843
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
844
844
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
845
|
-
|
|
845
|
+
custom: "custom";
|
|
846
846
|
input: "input";
|
|
847
|
+
hidden: "hidden";
|
|
848
|
+
reference: "reference";
|
|
847
849
|
textarea: "textarea";
|
|
848
850
|
numberInput: "numberInput";
|
|
849
851
|
switch: "switch";
|
|
@@ -858,8 +860,6 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
858
860
|
selectDataset: "selectDataset";
|
|
859
861
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
860
862
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
861
|
-
hidden: "hidden";
|
|
862
|
-
custom: "custom";
|
|
863
863
|
fileSelect: "fileSelect";
|
|
864
864
|
}>>;
|
|
865
865
|
valueType: z$1.ZodEnum<{
|
|
@@ -867,9 +867,9 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
867
867
|
number: "number";
|
|
868
868
|
boolean: "boolean";
|
|
869
869
|
object: "object";
|
|
870
|
+
any: "any";
|
|
870
871
|
selectApp: "selectApp";
|
|
871
872
|
selectDataset: "selectDataset";
|
|
872
|
-
any: "any";
|
|
873
873
|
arrayString: "arrayString";
|
|
874
874
|
arrayNumber: "arrayNumber";
|
|
875
875
|
arrayBoolean: "arrayBoolean";
|
|
@@ -942,9 +942,9 @@ declare const UnifiedToolSchema: z$1.ZodObject<{
|
|
|
942
942
|
number: "number";
|
|
943
943
|
boolean: "boolean";
|
|
944
944
|
object: "object";
|
|
945
|
+
any: "any";
|
|
945
946
|
selectApp: "selectApp";
|
|
946
947
|
selectDataset: "selectDataset";
|
|
947
|
-
any: "any";
|
|
948
948
|
arrayString: "arrayString";
|
|
949
949
|
arrayNumber: "arrayNumber";
|
|
950
950
|
arrayBoolean: "arrayBoolean";
|
|
@@ -981,8 +981,10 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
981
981
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
982
982
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
983
983
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
984
|
-
|
|
984
|
+
custom: "custom";
|
|
985
985
|
input: "input";
|
|
986
|
+
hidden: "hidden";
|
|
987
|
+
reference: "reference";
|
|
986
988
|
textarea: "textarea";
|
|
987
989
|
numberInput: "numberInput";
|
|
988
990
|
switch: "switch";
|
|
@@ -997,8 +999,6 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
997
999
|
selectDataset: "selectDataset";
|
|
998
1000
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
999
1001
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
1000
|
-
hidden: "hidden";
|
|
1001
|
-
custom: "custom";
|
|
1002
1002
|
fileSelect: "fileSelect";
|
|
1003
1003
|
}>>;
|
|
1004
1004
|
valueType: z$1.ZodEnum<{
|
|
@@ -1006,9 +1006,9 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1006
1006
|
number: "number";
|
|
1007
1007
|
boolean: "boolean";
|
|
1008
1008
|
object: "object";
|
|
1009
|
+
any: "any";
|
|
1009
1010
|
selectApp: "selectApp";
|
|
1010
1011
|
selectDataset: "selectDataset";
|
|
1011
|
-
any: "any";
|
|
1012
1012
|
arrayString: "arrayString";
|
|
1013
1013
|
arrayNumber: "arrayNumber";
|
|
1014
1014
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1081,9 +1081,9 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1081
1081
|
number: "number";
|
|
1082
1082
|
boolean: "boolean";
|
|
1083
1083
|
object: "object";
|
|
1084
|
+
any: "any";
|
|
1084
1085
|
selectApp: "selectApp";
|
|
1085
1086
|
selectDataset: "selectDataset";
|
|
1086
|
-
any: "any";
|
|
1087
1087
|
arrayString: "arrayString";
|
|
1088
1088
|
arrayNumber: "arrayNumber";
|
|
1089
1089
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1108,13 +1108,28 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1108
1108
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1109
1109
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1110
1110
|
}, z$1.core.$strip>;
|
|
1111
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1112
|
+
tools: "tools";
|
|
1113
|
+
search: "search";
|
|
1114
|
+
multimodal: "multimodal";
|
|
1115
|
+
communication: "communication";
|
|
1116
|
+
finance: "finance";
|
|
1117
|
+
design: "design";
|
|
1118
|
+
productivity: "productivity";
|
|
1119
|
+
news: "news";
|
|
1120
|
+
entertainment: "entertainment";
|
|
1121
|
+
social: "social";
|
|
1122
|
+
scientific: "scientific";
|
|
1123
|
+
other: "other";
|
|
1124
|
+
}>>>;
|
|
1125
|
+
author: z$1.ZodOptional<z$1.ZodString>;
|
|
1111
1126
|
description: z$1.ZodObject<{
|
|
1112
1127
|
en: z$1.ZodString;
|
|
1113
1128
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1114
1129
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1115
1130
|
}, z$1.core.$strip>;
|
|
1116
|
-
toolId: z$1.ZodString;
|
|
1117
1131
|
toolDescription: z$1.ZodString;
|
|
1132
|
+
toolId: z$1.ZodString;
|
|
1118
1133
|
versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1119
1134
|
value: z$1.ZodString;
|
|
1120
1135
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1126,8 +1141,10 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1126
1141
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
1127
1142
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1128
1143
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
1129
|
-
|
|
1144
|
+
custom: "custom";
|
|
1130
1145
|
input: "input";
|
|
1146
|
+
hidden: "hidden";
|
|
1147
|
+
reference: "reference";
|
|
1131
1148
|
textarea: "textarea";
|
|
1132
1149
|
numberInput: "numberInput";
|
|
1133
1150
|
switch: "switch";
|
|
@@ -1142,8 +1159,6 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1142
1159
|
selectDataset: "selectDataset";
|
|
1143
1160
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
1144
1161
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
1145
|
-
hidden: "hidden";
|
|
1146
|
-
custom: "custom";
|
|
1147
1162
|
fileSelect: "fileSelect";
|
|
1148
1163
|
}>>;
|
|
1149
1164
|
valueType: z$1.ZodEnum<{
|
|
@@ -1151,9 +1166,9 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1151
1166
|
number: "number";
|
|
1152
1167
|
boolean: "boolean";
|
|
1153
1168
|
object: "object";
|
|
1169
|
+
any: "any";
|
|
1154
1170
|
selectApp: "selectApp";
|
|
1155
1171
|
selectDataset: "selectDataset";
|
|
1156
|
-
any: "any";
|
|
1157
1172
|
arrayString: "arrayString";
|
|
1158
1173
|
arrayNumber: "arrayNumber";
|
|
1159
1174
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1226,9 +1241,9 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1226
1241
|
number: "number";
|
|
1227
1242
|
boolean: "boolean";
|
|
1228
1243
|
object: "object";
|
|
1244
|
+
any: "any";
|
|
1229
1245
|
selectApp: "selectApp";
|
|
1230
1246
|
selectDataset: "selectDataset";
|
|
1231
|
-
any: "any";
|
|
1232
1247
|
arrayString: "arrayString";
|
|
1233
1248
|
arrayNumber: "arrayNumber";
|
|
1234
1249
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1246,21 +1261,6 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1246
1261
|
required: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1247
1262
|
}, z$1.core.$strip>>;
|
|
1248
1263
|
}, z$1.core.$strip>>>;
|
|
1249
|
-
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1250
|
-
tools: "tools";
|
|
1251
|
-
search: "search";
|
|
1252
|
-
multimodal: "multimodal";
|
|
1253
|
-
communication: "communication";
|
|
1254
|
-
finance: "finance";
|
|
1255
|
-
design: "design";
|
|
1256
|
-
productivity: "productivity";
|
|
1257
|
-
news: "news";
|
|
1258
|
-
entertainment: "entertainment";
|
|
1259
|
-
social: "social";
|
|
1260
|
-
scientific: "scientific";
|
|
1261
|
-
other: "other";
|
|
1262
|
-
}>>>;
|
|
1263
|
-
author: z$1.ZodOptional<z$1.ZodString>;
|
|
1264
1264
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
1265
1265
|
secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1266
1266
|
key: z$1.ZodString;
|
|
@@ -1289,13 +1289,6 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1289
1289
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1290
1290
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1291
1291
|
}, z$1.core.$strip>;
|
|
1292
|
-
description: z$1.ZodObject<{
|
|
1293
|
-
en: z$1.ZodString;
|
|
1294
|
-
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1295
|
-
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1296
|
-
}, z$1.core.$strip>;
|
|
1297
|
-
toolId: z$1.ZodString;
|
|
1298
|
-
toolDescription: z$1.ZodString;
|
|
1299
1292
|
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1300
1293
|
tools: "tools";
|
|
1301
1294
|
search: "search";
|
|
@@ -1311,6 +1304,13 @@ declare const ToolDistSchema: z$1.ZodObject<{
|
|
|
1311
1304
|
other: "other";
|
|
1312
1305
|
}>>>;
|
|
1313
1306
|
author: z$1.ZodOptional<z$1.ZodString>;
|
|
1307
|
+
description: z$1.ZodObject<{
|
|
1308
|
+
en: z$1.ZodString;
|
|
1309
|
+
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1310
|
+
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1311
|
+
}, z$1.core.$strip>;
|
|
1312
|
+
toolDescription: z$1.ZodString;
|
|
1313
|
+
toolId: z$1.ZodString;
|
|
1314
1314
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
1315
1315
|
secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1316
1316
|
key: z$1.ZodString;
|
|
@@ -1352,8 +1352,10 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1352
1352
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
1353
1353
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1354
1354
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
1355
|
-
|
|
1355
|
+
custom: "custom";
|
|
1356
1356
|
input: "input";
|
|
1357
|
+
hidden: "hidden";
|
|
1358
|
+
reference: "reference";
|
|
1357
1359
|
textarea: "textarea";
|
|
1358
1360
|
numberInput: "numberInput";
|
|
1359
1361
|
switch: "switch";
|
|
@@ -1368,8 +1370,6 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1368
1370
|
selectDataset: "selectDataset";
|
|
1369
1371
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
1370
1372
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
1371
|
-
hidden: "hidden";
|
|
1372
|
-
custom: "custom";
|
|
1373
1373
|
fileSelect: "fileSelect";
|
|
1374
1374
|
}>>;
|
|
1375
1375
|
valueType: z$1.ZodEnum<{
|
|
@@ -1377,9 +1377,9 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1377
1377
|
number: "number";
|
|
1378
1378
|
boolean: "boolean";
|
|
1379
1379
|
object: "object";
|
|
1380
|
+
any: "any";
|
|
1380
1381
|
selectApp: "selectApp";
|
|
1381
1382
|
selectDataset: "selectDataset";
|
|
1382
|
-
any: "any";
|
|
1383
1383
|
arrayString: "arrayString";
|
|
1384
1384
|
arrayNumber: "arrayNumber";
|
|
1385
1385
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1452,9 +1452,9 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1452
1452
|
number: "number";
|
|
1453
1453
|
boolean: "boolean";
|
|
1454
1454
|
object: "object";
|
|
1455
|
+
any: "any";
|
|
1455
1456
|
selectApp: "selectApp";
|
|
1456
1457
|
selectDataset: "selectDataset";
|
|
1457
|
-
any: "any";
|
|
1458
1458
|
arrayString: "arrayString";
|
|
1459
1459
|
arrayNumber: "arrayNumber";
|
|
1460
1460
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1521,18 +1521,14 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1521
1521
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
1522
1522
|
etag: z$1.ZodOptional<z$1.ZodString>;
|
|
1523
1523
|
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
1524
|
-
toolDescription: string
|
|
1525
|
-
en: string;
|
|
1526
|
-
'zh-CN'?: string | undefined;
|
|
1527
|
-
'zh-Hant'?: string | undefined;
|
|
1528
|
-
};
|
|
1524
|
+
toolDescription: string;
|
|
1529
1525
|
versionList: {
|
|
1530
1526
|
value: string;
|
|
1531
1527
|
inputs: {
|
|
1532
1528
|
key: string;
|
|
1533
1529
|
label: string;
|
|
1534
|
-
renderTypeList: ("
|
|
1535
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
1530
|
+
renderTypeList: ("custom" | "input" | "hidden" | "reference" | "textarea" | "numberInput" | "switch" | "select" | "multipleSelect" | "JSONEditor" | "addInputParam" | "selectApp" | "customVariable" | "selectLLMModel" | "settingLLMModel" | "selectDataset" | "selectDatasetParamsModal" | "settingDatasetQuotePrompt" | "fileSelect")[];
|
|
1531
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
1536
1532
|
referencePlaceholder?: string | undefined;
|
|
1537
1533
|
placeholder?: string | undefined;
|
|
1538
1534
|
defaultValue?: any;
|
|
@@ -1576,7 +1572,7 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1576
1572
|
}[];
|
|
1577
1573
|
outputs: {
|
|
1578
1574
|
key: string;
|
|
1579
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
1575
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
1580
1576
|
id?: string | undefined;
|
|
1581
1577
|
type?: "hidden" | "dynamic" | "source" | "static" | "error" | undefined;
|
|
1582
1578
|
valueDesc?: string | undefined;
|
|
@@ -1624,8 +1620,8 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1624
1620
|
inputs: {
|
|
1625
1621
|
key: string;
|
|
1626
1622
|
label: string;
|
|
1627
|
-
renderTypeList: ("
|
|
1628
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
1623
|
+
renderTypeList: ("custom" | "input" | "hidden" | "reference" | "textarea" | "numberInput" | "switch" | "select" | "multipleSelect" | "JSONEditor" | "addInputParam" | "selectApp" | "customVariable" | "selectLLMModel" | "settingLLMModel" | "selectDataset" | "selectDatasetParamsModal" | "settingDatasetQuotePrompt" | "fileSelect")[];
|
|
1624
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
1629
1625
|
referencePlaceholder?: string | undefined;
|
|
1630
1626
|
placeholder?: string | undefined;
|
|
1631
1627
|
defaultValue?: any;
|
|
@@ -1669,7 +1665,7 @@ declare const ToolConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
|
1669
1665
|
}[];
|
|
1670
1666
|
outputs: {
|
|
1671
1667
|
key: string;
|
|
1672
|
-
valueType: "string" | "number" | "boolean" | "object" | "
|
|
1668
|
+
valueType: "string" | "number" | "boolean" | "object" | "any" | "selectApp" | "selectDataset" | "arrayString" | "arrayNumber" | "arrayBoolean" | "arrayObject" | "arrayAny" | "chatHistory" | "datasetQuote" | "dynamic";
|
|
1673
1669
|
id?: string | undefined;
|
|
1674
1670
|
type?: "hidden" | "dynamic" | "source" | "static" | "error" | undefined;
|
|
1675
1671
|
valueDesc?: string | undefined;
|
|
@@ -1743,8 +1739,10 @@ declare const ToolSetConfigSchema: z$1.ZodObject<{
|
|
|
1743
1739
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
1744
1740
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1745
1741
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
1746
|
-
|
|
1742
|
+
custom: "custom";
|
|
1747
1743
|
input: "input";
|
|
1744
|
+
hidden: "hidden";
|
|
1745
|
+
reference: "reference";
|
|
1748
1746
|
textarea: "textarea";
|
|
1749
1747
|
numberInput: "numberInput";
|
|
1750
1748
|
switch: "switch";
|
|
@@ -1759,8 +1757,6 @@ declare const ToolSetConfigSchema: z$1.ZodObject<{
|
|
|
1759
1757
|
selectDataset: "selectDataset";
|
|
1760
1758
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
1761
1759
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
1762
|
-
hidden: "hidden";
|
|
1763
|
-
custom: "custom";
|
|
1764
1760
|
fileSelect: "fileSelect";
|
|
1765
1761
|
}>>;
|
|
1766
1762
|
valueType: z$1.ZodEnum<{
|
|
@@ -1768,9 +1764,9 @@ declare const ToolSetConfigSchema: z$1.ZodObject<{
|
|
|
1768
1764
|
number: "number";
|
|
1769
1765
|
boolean: "boolean";
|
|
1770
1766
|
object: "object";
|
|
1767
|
+
any: "any";
|
|
1771
1768
|
selectApp: "selectApp";
|
|
1772
1769
|
selectDataset: "selectDataset";
|
|
1773
|
-
any: "any";
|
|
1774
1770
|
arrayString: "arrayString";
|
|
1775
1771
|
arrayNumber: "arrayNumber";
|
|
1776
1772
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1843,9 +1839,9 @@ declare const ToolSetConfigSchema: z$1.ZodObject<{
|
|
|
1843
1839
|
number: "number";
|
|
1844
1840
|
boolean: "boolean";
|
|
1845
1841
|
object: "object";
|
|
1842
|
+
any: "any";
|
|
1846
1843
|
selectApp: "selectApp";
|
|
1847
1844
|
selectDataset: "selectDataset";
|
|
1848
|
-
any: "any";
|
|
1849
1845
|
arrayString: "arrayString";
|
|
1850
1846
|
arrayNumber: "arrayNumber";
|
|
1851
1847
|
arrayBoolean: "arrayBoolean";
|
|
@@ -1962,13 +1958,28 @@ declare const ToolDetailSchema: z$1.ZodObject<{
|
|
|
1962
1958
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1963
1959
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1964
1960
|
}, z$1.core.$strip>;
|
|
1961
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1962
|
+
tools: "tools";
|
|
1963
|
+
search: "search";
|
|
1964
|
+
multimodal: "multimodal";
|
|
1965
|
+
communication: "communication";
|
|
1966
|
+
finance: "finance";
|
|
1967
|
+
design: "design";
|
|
1968
|
+
productivity: "productivity";
|
|
1969
|
+
news: "news";
|
|
1970
|
+
entertainment: "entertainment";
|
|
1971
|
+
social: "social";
|
|
1972
|
+
scientific: "scientific";
|
|
1973
|
+
other: "other";
|
|
1974
|
+
}>>>;
|
|
1975
|
+
author: z$1.ZodOptional<z$1.ZodString>;
|
|
1965
1976
|
description: z$1.ZodObject<{
|
|
1966
1977
|
en: z$1.ZodString;
|
|
1967
1978
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
1968
1979
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
1969
1980
|
}, z$1.core.$strip>;
|
|
1970
|
-
toolId: z$1.ZodString;
|
|
1971
1981
|
toolDescription: z$1.ZodString;
|
|
1982
|
+
toolId: z$1.ZodString;
|
|
1972
1983
|
versionList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1973
1984
|
value: z$1.ZodString;
|
|
1974
1985
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1980,8 +1991,10 @@ declare const ToolDetailSchema: z$1.ZodObject<{
|
|
|
1980
1991
|
defaultValue: z$1.ZodOptional<z$1.ZodAny>;
|
|
1981
1992
|
selectedTypeIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1982
1993
|
renderTypeList: z$1.ZodArray<z$1.ZodEnum<{
|
|
1983
|
-
|
|
1994
|
+
custom: "custom";
|
|
1984
1995
|
input: "input";
|
|
1996
|
+
hidden: "hidden";
|
|
1997
|
+
reference: "reference";
|
|
1985
1998
|
textarea: "textarea";
|
|
1986
1999
|
numberInput: "numberInput";
|
|
1987
2000
|
switch: "switch";
|
|
@@ -1996,8 +2009,6 @@ declare const ToolDetailSchema: z$1.ZodObject<{
|
|
|
1996
2009
|
selectDataset: "selectDataset";
|
|
1997
2010
|
selectDatasetParamsModal: "selectDatasetParamsModal";
|
|
1998
2011
|
settingDatasetQuotePrompt: "settingDatasetQuotePrompt";
|
|
1999
|
-
hidden: "hidden";
|
|
2000
|
-
custom: "custom";
|
|
2001
2012
|
fileSelect: "fileSelect";
|
|
2002
2013
|
}>>;
|
|
2003
2014
|
valueType: z$1.ZodEnum<{
|
|
@@ -2005,9 +2016,9 @@ declare const ToolDetailSchema: z$1.ZodObject<{
|
|
|
2005
2016
|
number: "number";
|
|
2006
2017
|
boolean: "boolean";
|
|
2007
2018
|
object: "object";
|
|
2019
|
+
any: "any";
|
|
2008
2020
|
selectApp: "selectApp";
|
|
2009
2021
|
selectDataset: "selectDataset";
|
|
2010
|
-
any: "any";
|
|
2011
2022
|
arrayString: "arrayString";
|
|
2012
2023
|
arrayNumber: "arrayNumber";
|
|
2013
2024
|
arrayBoolean: "arrayBoolean";
|
|
@@ -2080,9 +2091,9 @@ declare const ToolDetailSchema: z$1.ZodObject<{
|
|
|
2080
2091
|
number: "number";
|
|
2081
2092
|
boolean: "boolean";
|
|
2082
2093
|
object: "object";
|
|
2094
|
+
any: "any";
|
|
2083
2095
|
selectApp: "selectApp";
|
|
2084
2096
|
selectDataset: "selectDataset";
|
|
2085
|
-
any: "any";
|
|
2086
2097
|
arrayString: "arrayString";
|
|
2087
2098
|
arrayNumber: "arrayNumber";
|
|
2088
2099
|
arrayBoolean: "arrayBoolean";
|
|
@@ -2100,22 +2111,7 @@ declare const ToolDetailSchema: z$1.ZodObject<{
|
|
|
2100
2111
|
required: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2101
2112
|
}, z$1.core.$strip>>;
|
|
2102
2113
|
}, z$1.core.$strip>>>;
|
|
2103
|
-
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
2104
|
-
tools: "tools";
|
|
2105
|
-
search: "search";
|
|
2106
|
-
multimodal: "multimodal";
|
|
2107
|
-
communication: "communication";
|
|
2108
|
-
finance: "finance";
|
|
2109
|
-
design: "design";
|
|
2110
|
-
productivity: "productivity";
|
|
2111
|
-
news: "news";
|
|
2112
|
-
entertainment: "entertainment";
|
|
2113
|
-
social: "social";
|
|
2114
|
-
scientific: "scientific";
|
|
2115
|
-
other: "other";
|
|
2116
|
-
}>>>;
|
|
2117
2114
|
icon: z$1.ZodString;
|
|
2118
|
-
author: z$1.ZodOptional<z$1.ZodString>;
|
|
2119
2115
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
2120
2116
|
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
2121
2117
|
secretInputConfig: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -2145,12 +2141,6 @@ declare const ToolSimpleSchema: z$1.ZodObject<{
|
|
|
2145
2141
|
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
2146
2142
|
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
2147
2143
|
}, z$1.core.$strip>;
|
|
2148
|
-
description: z$1.ZodObject<{
|
|
2149
|
-
en: z$1.ZodString;
|
|
2150
|
-
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
2151
|
-
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
2152
|
-
}, z$1.core.$strip>;
|
|
2153
|
-
toolId: z$1.ZodString;
|
|
2154
2144
|
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
2155
2145
|
tools: "tools";
|
|
2156
2146
|
search: "search";
|
|
@@ -2165,8 +2155,14 @@ declare const ToolSimpleSchema: z$1.ZodObject<{
|
|
|
2165
2155
|
scientific: "scientific";
|
|
2166
2156
|
other: "other";
|
|
2167
2157
|
}>>>;
|
|
2168
|
-
icon: z$1.ZodString;
|
|
2169
2158
|
author: z$1.ZodOptional<z$1.ZodString>;
|
|
2159
|
+
description: z$1.ZodObject<{
|
|
2160
|
+
en: z$1.ZodString;
|
|
2161
|
+
'zh-CN': z$1.ZodOptional<z$1.ZodString>;
|
|
2162
|
+
'zh-Hant': z$1.ZodOptional<z$1.ZodString>;
|
|
2163
|
+
}, z$1.core.$strip>;
|
|
2164
|
+
toolId: z$1.ZodString;
|
|
2165
|
+
icon: z$1.ZodString;
|
|
2170
2166
|
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
2171
2167
|
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
2172
2168
|
etag: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I18nStringSchema as e}from"../../common/schemas/i18n.js";import{InputSchema as t,OutputSchema as n,SecretInputItemSchema as r}from"./fastgpt.js";import{z as i}from"zod";const a=i.enum([`tools`,`search`,`multimodal`,`communication`,`finance`,`design`,`productivity`,`news`,`entertainment`,`social`,`scientific`,`other`]),o=a.enum,s=i.object({value:i.string(),description:i.string().optional(),inputs:i.array(t),outputs:i.array(n)}),c=i.object({toolId:i.string(),parentId:i.string().optional(),name:e,description:e,toolDescription:i.string(),versionList:i.array(s).optional(),tags:i.array(a).optional(),icon:i.string(),author:i.string().optional(),tutorialUrl:i.url().optional(),readmeUrl:i.url().optional(),secretInputConfig:i.array(r).optional(),handler:i.any(),filename:i.string(),etag:i.string().nonempty().optional()}),l=i.object({...c.omit({parentId:!0,versionList:!0,handler:!0}).shape,toolId:i.string().refine(e=>!e.includes(`/`)),children:i.array(c).min(1)}),u=i.object({...c.shape,...l.shape}),d=i.object({...l.omit({readmeUrl:!0}).shape,icon:i.string().optional(),versionList:i.array(s).optional(),children:i.array(i.object({...c.omit({parentId:!0,readmeUrl:!0}).shape,icon:i.string().optional()})).optional()}),f=i.object({...c.omit({filename:!0,readmeUrl:!0,handler:!0}).shape,toolId:i.string().optional(),toolDescription:i.string().optional(),versionList:i.array(s).min(1),tags:i.array(a).optional(),icon:i.string().optional(),author:i.string().optional(),tutorialLink:i.url().optional(),secretInputConfig:i.array(r).optional()}).transform(e=>({...e,toolDescription:e.toolDescription??e.description})),p=l.extend({toolId:i.string().optional(),toolDescription:i.string().optional(),tags:i.array(a).optional(),icon:i.string().optional(),author:i.string().optional(),tutorialLink:i.url().optional(),secretInputConfig:i.array(r).optional()}),m=u.pick({toolId:!0,name:!0,description:!0,toolDescription:!0,author:!0,tags:!0,icon:!0,tutorialUrl:!0,readmeUrl:!0,secretInputConfig:!0,etag:!0,versionList:!0}),h=m.omit({secretInputConfig:!0,toolDescription:!0,versionList:!0});export{f as ToolConfigSchema,m as ToolDetailSchema,d as ToolDistSchema,c as ToolSchema,p as ToolSetConfigSchema,l as ToolSetSchema,h as ToolSimpleSchema,o as ToolTagEnum,a as ToolTagSchema,u as UnifiedToolSchema,s as VersionListItemSchema};
|
|
1
|
+
import{I18nStringSchema as e}from"../../common/schemas/i18n.js";import{InputSchema as t,OutputSchema as n,SecretInputItemSchema as r}from"./fastgpt.js";import{z as i}from"zod";const a=i.enum([`tools`,`search`,`multimodal`,`communication`,`finance`,`design`,`productivity`,`news`,`entertainment`,`social`,`scientific`,`other`]),o=a.enum,s=i.object({value:i.string(),description:i.string().optional(),inputs:i.array(t),outputs:i.array(n)}),c=i.object({toolId:i.string(),parentId:i.string().optional(),name:e,description:e,toolDescription:i.string(),versionList:i.array(s).optional(),tags:i.array(a).optional(),icon:i.string(),author:i.string().optional(),tutorialUrl:i.url().optional(),readmeUrl:i.url().optional(),secretInputConfig:i.array(r).optional(),handler:i.any(),filename:i.string(),etag:i.string().nonempty().optional()}),l=i.object({...c.omit({parentId:!0,versionList:!0,handler:!0}).shape,toolId:i.string().refine(e=>!e.includes(`/`)),children:i.array(c).min(1)}),u=i.object({...c.shape,...l.shape}),d=i.object({...l.omit({readmeUrl:!0}).shape,icon:i.string().optional(),versionList:i.array(s).optional(),children:i.array(i.object({...c.omit({parentId:!0,readmeUrl:!0}).shape,icon:i.string().optional()})).optional()}),f=i.object({...c.omit({filename:!0,readmeUrl:!0,handler:!0}).shape,toolId:i.string().optional(),toolDescription:i.string().optional(),versionList:i.array(s).min(1),tags:i.array(a).optional(),icon:i.string().optional(),author:i.string().optional(),tutorialLink:i.url().optional(),secretInputConfig:i.array(r).optional()}).transform(e=>({...e,toolDescription:e.toolDescription??e.description.en})),p=l.extend({toolId:i.string().optional(),toolDescription:i.string().optional(),tags:i.array(a).optional(),icon:i.string().optional(),author:i.string().optional(),tutorialLink:i.url().optional(),secretInputConfig:i.array(r).optional()}),m=u.pick({toolId:!0,name:!0,description:!0,toolDescription:!0,author:!0,tags:!0,icon:!0,tutorialUrl:!0,readmeUrl:!0,secretInputConfig:!0,etag:!0,versionList:!0}),h=m.omit({secretInputConfig:!0,toolDescription:!0,versionList:!0});export{f as ToolConfigSchema,m as ToolDetailSchema,d as ToolDistSchema,c as ToolSchema,p as ToolSetConfigSchema,l as ToolSetSchema,h as ToolSimpleSchema,o as ToolTagEnum,a as ToolTagSchema,u as UnifiedToolSchema,s as VersionListItemSchema};
|