@fastgpt-plugin/sdk-client 0.0.1-alpha.10
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/README.en.md +18 -0
- package/README.md +18 -0
- package/dist/index.d.ts +1236 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/package.json +31 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1236 @@
|
|
|
1
|
+
import z$1, { z } from "zod";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
3
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/model.dto.d.ts
|
|
4
|
+
declare const ModelListDTOSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"llm">;
|
|
6
|
+
maxContext: z.ZodNumber;
|
|
7
|
+
maxTokens: z.ZodNumber;
|
|
8
|
+
quoteMaxToken: z.ZodNumber;
|
|
9
|
+
maxTemperature: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
|
|
10
|
+
showTopP: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
responseFormatList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
showStopSign: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
censor: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
vision: z.ZodBoolean;
|
|
15
|
+
reasoning: z.ZodBoolean;
|
|
16
|
+
reasoningEffort: z.ZodBoolean;
|
|
17
|
+
toolChoice: z.ZodBoolean;
|
|
18
|
+
datasetProcess: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
usedInClassify: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
usedInExtractFields: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
usedInToolCall: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
useInEvaluation: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
defaultSystemChatPrompt: z.ZodOptional<z.ZodString>;
|
|
24
|
+
defaultConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
25
|
+
fieldMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
|
+
provider: z.ZodString;
|
|
27
|
+
model: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
charsPointsPrice: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"embedding">;
|
|
34
|
+
defaultToken: z.ZodNumber;
|
|
35
|
+
maxToken: z.ZodNumber;
|
|
36
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
normalization: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
defaultConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
40
|
+
dbConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
|
+
queryConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
42
|
+
provider: z.ZodString;
|
|
43
|
+
model: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
charsPointsPrice: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"rerank">;
|
|
50
|
+
maxToken: z.ZodNumber;
|
|
51
|
+
provider: z.ZodString;
|
|
52
|
+
model: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
charsPointsPrice: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
type: z.ZodLiteral<"tts">;
|
|
59
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
60
|
+
label: z.ZodString;
|
|
61
|
+
value: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
provider: z.ZodString;
|
|
64
|
+
model: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
charsPointsPrice: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<"stt">;
|
|
71
|
+
provider: z.ZodString;
|
|
72
|
+
model: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
charsPointsPrice: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
}, z.core.$strip>], "type">>;
|
|
78
|
+
declare const ModelProviderItemDTOSchema: z.ZodObject<{
|
|
79
|
+
provider: z.ZodString;
|
|
80
|
+
value: z.ZodObject<{
|
|
81
|
+
en: z.ZodString;
|
|
82
|
+
"zh-CN": z.ZodString;
|
|
83
|
+
"zh-Hant": z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
avatar: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
declare const AIProxyChannelItemDTOSchema: z.ZodObject<{
|
|
88
|
+
channelId: z.ZodNumber;
|
|
89
|
+
name: z.ZodObject<{
|
|
90
|
+
en: z.ZodString;
|
|
91
|
+
"zh-CN": z.ZodString;
|
|
92
|
+
"zh-Hant": z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
avatar: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
declare const ModelProviderListDTOSchema: z.ZodObject<{
|
|
97
|
+
modelProviders: z.ZodArray<z.ZodObject<{
|
|
98
|
+
provider: z.ZodString;
|
|
99
|
+
value: z.ZodObject<{
|
|
100
|
+
en: z.ZodString;
|
|
101
|
+
"zh-CN": z.ZodString;
|
|
102
|
+
"zh-Hant": z.ZodString;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
avatar: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
aiproxyChannels: z.ZodArray<z.ZodObject<{
|
|
107
|
+
channelId: z.ZodNumber;
|
|
108
|
+
name: z.ZodObject<{
|
|
109
|
+
en: z.ZodString;
|
|
110
|
+
"zh-CN": z.ZodString;
|
|
111
|
+
"zh-Hant": z.ZodString;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
avatar: z.ZodString;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
type ModelListDTOType = z.infer<typeof ModelListDTOSchema>;
|
|
117
|
+
type ModelProviderItemDTOType = z.infer<typeof ModelProviderItemDTOSchema>;
|
|
118
|
+
type AIProxyChannelItemDTOType = z.infer<typeof AIProxyChannelItemDTOSchema>;
|
|
119
|
+
type ModelProviderListDTOType = z.infer<typeof ModelProviderListDTOSchema>;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/plugin.dto.d.ts
|
|
122
|
+
declare const PluginBaseDTOSchema: z.ZodObject<{
|
|
123
|
+
pluginId: z.ZodString;
|
|
124
|
+
version: z.ZodString;
|
|
125
|
+
etag: z.ZodString;
|
|
126
|
+
type: z.ZodString;
|
|
127
|
+
author: z.ZodOptional<z.ZodString>;
|
|
128
|
+
name: z.ZodObject<{
|
|
129
|
+
en: z.ZodString;
|
|
130
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
131
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
icon: z.ZodString;
|
|
134
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
135
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
136
|
+
repoUrl: z.ZodOptional<z.ZodURL>;
|
|
137
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
en: z.ZodString;
|
|
140
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
141
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
+
versionDescription: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
en: z.ZodString;
|
|
146
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
147
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
declare const PluginListItemDTOSchema: z.ZodObject<{
|
|
151
|
+
type: z.ZodString;
|
|
152
|
+
name: z.ZodObject<{
|
|
153
|
+
en: z.ZodString;
|
|
154
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
155
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
en: z.ZodString;
|
|
159
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
160
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
pluginId: z.ZodString;
|
|
163
|
+
version: z.ZodString;
|
|
164
|
+
etag: z.ZodString;
|
|
165
|
+
author: z.ZodOptional<z.ZodString>;
|
|
166
|
+
repoUrl: z.ZodOptional<z.ZodURL>;
|
|
167
|
+
icon: z.ZodString;
|
|
168
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
169
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
170
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
+
source: z.ZodString;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
declare const PluginListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
174
|
+
type: z.ZodString;
|
|
175
|
+
name: z.ZodObject<{
|
|
176
|
+
en: z.ZodString;
|
|
177
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
178
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
en: z.ZodString;
|
|
182
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
183
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
pluginId: z.ZodString;
|
|
186
|
+
version: z.ZodString;
|
|
187
|
+
etag: z.ZodString;
|
|
188
|
+
author: z.ZodOptional<z.ZodString>;
|
|
189
|
+
repoUrl: z.ZodOptional<z.ZodURL>;
|
|
190
|
+
icon: z.ZodString;
|
|
191
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
192
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
193
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
|
+
source: z.ZodString;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
declare const PluginUploadFailureDTOSchema: z.ZodObject<{
|
|
197
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
198
|
+
reason: z.ZodObject<{
|
|
199
|
+
en: z.ZodString;
|
|
200
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
201
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
declare const PluginUploadResponseDTOSchema: z.ZodObject<{
|
|
205
|
+
plugins: z.ZodArray<z.ZodObject<{
|
|
206
|
+
pluginId: z.ZodString;
|
|
207
|
+
version: z.ZodString;
|
|
208
|
+
etag: z.ZodString;
|
|
209
|
+
type: z.ZodString;
|
|
210
|
+
author: z.ZodOptional<z.ZodString>;
|
|
211
|
+
name: z.ZodObject<{
|
|
212
|
+
en: z.ZodString;
|
|
213
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
214
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
icon: z.ZodString;
|
|
217
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
218
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
219
|
+
repoUrl: z.ZodOptional<z.ZodURL>;
|
|
220
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
221
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
en: z.ZodString;
|
|
223
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
224
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
227
|
+
versionDescription: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
en: z.ZodString;
|
|
229
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
230
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
234
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
235
|
+
reason: z.ZodObject<{
|
|
236
|
+
en: z.ZodString;
|
|
237
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
238
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
}, z.core.$strip>>>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
declare const PluginPruneDisabledResponseDTOSchema: z.ZodObject<{
|
|
243
|
+
count: z.ZodNumber;
|
|
244
|
+
plugins: z.ZodArray<z.ZodObject<{
|
|
245
|
+
pluginId: z.ZodString;
|
|
246
|
+
version: z.ZodString;
|
|
247
|
+
etag: z.ZodString;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
declare const PluginInstallFailureDTOSchema: z.ZodObject<{
|
|
251
|
+
url: z.ZodString;
|
|
252
|
+
reason: z.ZodObject<{
|
|
253
|
+
en: z.ZodString;
|
|
254
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
255
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
declare const PluginInstallDTOSchema: {
|
|
259
|
+
request: z.ZodObject<{
|
|
260
|
+
urls: z.ZodArray<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
response: z.ZodObject<{
|
|
263
|
+
failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
264
|
+
url: z.ZodString;
|
|
265
|
+
reason: z.ZodObject<{
|
|
266
|
+
en: z.ZodString;
|
|
267
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
268
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
}, z.core.$strip>>>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
};
|
|
273
|
+
declare const PluginListParamsSchema: z.ZodObject<{
|
|
274
|
+
types: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
275
|
+
tool: "tool";
|
|
276
|
+
}>>>>;
|
|
277
|
+
tags: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
278
|
+
search: "search";
|
|
279
|
+
tools: "tools";
|
|
280
|
+
multimodal: "multimodal";
|
|
281
|
+
communication: "communication";
|
|
282
|
+
finance: "finance";
|
|
283
|
+
design: "design";
|
|
284
|
+
productivity: "productivity";
|
|
285
|
+
news: "news";
|
|
286
|
+
entertainment: "entertainment";
|
|
287
|
+
social: "social";
|
|
288
|
+
scientific: "scientific";
|
|
289
|
+
other: "other";
|
|
290
|
+
}>>>>;
|
|
291
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
or: "or";
|
|
293
|
+
and: "and";
|
|
294
|
+
}>>;
|
|
295
|
+
sources: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
declare const PluginVersionItemDTOSchema: z.ZodObject<{
|
|
298
|
+
version: z.ZodString;
|
|
299
|
+
versionDescription: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
en: z.ZodString;
|
|
301
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
302
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
declare const PluginVersionListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
306
|
+
version: z.ZodString;
|
|
307
|
+
versionDescription: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
en: z.ZodString;
|
|
309
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
310
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
declare const PluginVersionListParamsSchema: z.ZodObject<{
|
|
314
|
+
pluginId: z.ZodString;
|
|
315
|
+
source: z.ZodString;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
declare const PluginRuntimeConfigSchema: z.ZodObject<{
|
|
318
|
+
minPods: z.ZodNumber;
|
|
319
|
+
maxPods: z.ZodNumber;
|
|
320
|
+
podTimeout: z.ZodNumber;
|
|
321
|
+
maxConcurrentRequestsPerPod: z.ZodNumber;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
type PluginDTOType = z.infer<typeof PluginBaseDTOSchema>;
|
|
324
|
+
type PluginUploadFailureDTOType = z.infer<typeof PluginUploadFailureDTOSchema>;
|
|
325
|
+
type PluginUploadResponseDTOType = z.infer<typeof PluginUploadResponseDTOSchema>;
|
|
326
|
+
type PluginListDTOType = z.infer<typeof PluginListDTOSchema>;
|
|
327
|
+
type PluginListItemDTOType = z.infer<typeof PluginListItemDTOSchema>;
|
|
328
|
+
type PluginPruneDisabledResponseDTOType = z.infer<typeof PluginPruneDisabledResponseDTOSchema>;
|
|
329
|
+
type PluginInstallFailureDTOType = z.infer<typeof PluginInstallFailureDTOSchema>;
|
|
330
|
+
type PluginInstallResponseDTOType = z.infer<typeof PluginInstallDTOSchema.response>;
|
|
331
|
+
type PluginListParamsDTOType = z.infer<typeof PluginListParamsSchema>;
|
|
332
|
+
type PluginVersionItemDTOType = z.infer<typeof PluginVersionItemDTOSchema>;
|
|
333
|
+
type PluginVersionListDTOType = z.infer<typeof PluginVersionListDTOSchema>;
|
|
334
|
+
type PluginVersionListParamsDTOType = z.infer<typeof PluginVersionListParamsSchema>;
|
|
335
|
+
type PluginRuntimeConfigDTOType = z.infer<typeof PluginRuntimeConfigSchema>;
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/plugin-debug-session.dto.d.ts
|
|
338
|
+
declare const PluginDebugSessionStatusDTOSchema: z$1.ZodEnum<{
|
|
339
|
+
enabled: "enabled";
|
|
340
|
+
connected: "connected";
|
|
341
|
+
disconnected: "disconnected";
|
|
342
|
+
revoked: "revoked";
|
|
343
|
+
}>;
|
|
344
|
+
type PluginDebugSessionStatusDTO = z$1.infer<typeof PluginDebugSessionStatusDTOSchema>;
|
|
345
|
+
declare const PluginDebugSessionCreateRequestDTOSchema: z$1.ZodObject<{
|
|
346
|
+
tmbId: z$1.ZodString;
|
|
347
|
+
}, z$1.core.$strip>;
|
|
348
|
+
declare const PluginDebugSessionCreateResponseDTOSchema: z$1.ZodObject<{
|
|
349
|
+
tmbId: z$1.ZodString;
|
|
350
|
+
source: z$1.ZodString;
|
|
351
|
+
status: z$1.ZodEnum<{
|
|
352
|
+
enabled: "enabled";
|
|
353
|
+
connected: "connected";
|
|
354
|
+
disconnected: "disconnected";
|
|
355
|
+
revoked: "revoked";
|
|
356
|
+
}>;
|
|
357
|
+
enabled: z$1.ZodBoolean;
|
|
358
|
+
keyId: z$1.ZodString;
|
|
359
|
+
connectionKey: z$1.ZodOptional<z$1.ZodString>;
|
|
360
|
+
createdAt: z$1.ZodNumber;
|
|
361
|
+
updatedAt: z$1.ZodNumber;
|
|
362
|
+
}, z$1.core.$strip>;
|
|
363
|
+
declare const PluginDebugSessionConnectionKeyExchangeRequestDTOSchema: z$1.ZodObject<{
|
|
364
|
+
connectionKey: z$1.ZodString;
|
|
365
|
+
}, z$1.core.$strip>;
|
|
366
|
+
declare const PluginDebugSessionConnectionKeyExchangeResponseDTOSchema: z$1.ZodObject<{
|
|
367
|
+
gatewayUrl: z$1.ZodString;
|
|
368
|
+
transport: z$1.ZodLiteral<"websocket">;
|
|
369
|
+
source: z$1.ZodString;
|
|
370
|
+
connectToken: z$1.ZodString;
|
|
371
|
+
expiresAt: z$1.ZodNumber;
|
|
372
|
+
}, z$1.core.$strip>;
|
|
373
|
+
declare const PluginDebugSessionGetParamsDTOSchema: z$1.ZodObject<{
|
|
374
|
+
tmbId: z$1.ZodString;
|
|
375
|
+
}, z$1.core.$strip>;
|
|
376
|
+
declare const PluginDebugSessionStatusResponseDTOSchema: z$1.ZodObject<{
|
|
377
|
+
tmbId: z$1.ZodString;
|
|
378
|
+
source: z$1.ZodString;
|
|
379
|
+
status: z$1.ZodEnum<{
|
|
380
|
+
enabled: "enabled";
|
|
381
|
+
connected: "connected";
|
|
382
|
+
disconnected: "disconnected";
|
|
383
|
+
revoked: "revoked";
|
|
384
|
+
}>;
|
|
385
|
+
enabled: z$1.ZodBoolean;
|
|
386
|
+
keyId: z$1.ZodOptional<z$1.ZodString>;
|
|
387
|
+
plugins: z$1.ZodArray<z$1.ZodObject<{
|
|
388
|
+
type: z$1.ZodString;
|
|
389
|
+
name: z$1.ZodObject<{
|
|
390
|
+
en: z$1.ZodString;
|
|
391
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
392
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
393
|
+
}, z$1.core.$strip>;
|
|
394
|
+
description: z$1.ZodOptional<z$1.ZodObject<{
|
|
395
|
+
en: z$1.ZodString;
|
|
396
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
397
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
398
|
+
}, z$1.core.$strip>>;
|
|
399
|
+
pluginId: z$1.ZodString;
|
|
400
|
+
version: z$1.ZodString;
|
|
401
|
+
etag: z$1.ZodString;
|
|
402
|
+
author: z$1.ZodOptional<z$1.ZodString>;
|
|
403
|
+
repoUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
404
|
+
icon: z$1.ZodString;
|
|
405
|
+
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
406
|
+
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
407
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
408
|
+
source: z$1.ZodString;
|
|
409
|
+
}, z$1.core.$strip>>;
|
|
410
|
+
gateway: z$1.ZodOptional<z$1.ZodObject<{
|
|
411
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
412
|
+
ownerAlive: z$1.ZodBoolean;
|
|
413
|
+
mailboxLag: z$1.ZodNumber;
|
|
414
|
+
}, z$1.core.$strip>>;
|
|
415
|
+
createdAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
416
|
+
updatedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
417
|
+
refreshedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
418
|
+
revokedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
419
|
+
}, z$1.core.$strip>;
|
|
420
|
+
declare const PluginDebugSessionRevokeRequestDTOSchema: z$1.ZodObject<{
|
|
421
|
+
tmbId: z$1.ZodString;
|
|
422
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
423
|
+
}, z$1.core.$strip>;
|
|
424
|
+
declare const PluginDebugSessionRevokeResponseDTOSchema: z$1.ZodObject<{
|
|
425
|
+
revoked: z$1.ZodBoolean;
|
|
426
|
+
}, z$1.core.$strip>;
|
|
427
|
+
type PluginDebugSessionCreateRequestDTO = z$1.infer<typeof PluginDebugSessionCreateRequestDTOSchema>;
|
|
428
|
+
type PluginDebugSessionCreateResponseDTO = z$1.infer<typeof PluginDebugSessionCreateResponseDTOSchema>;
|
|
429
|
+
type PluginDebugSessionConnectionKeyExchangeRequestDTO = z$1.infer<typeof PluginDebugSessionConnectionKeyExchangeRequestDTOSchema>;
|
|
430
|
+
type PluginDebugSessionConnectionKeyExchangeResponseDTO = z$1.infer<typeof PluginDebugSessionConnectionKeyExchangeResponseDTOSchema>;
|
|
431
|
+
type PluginDebugSessionGetParamsDTO = z$1.infer<typeof PluginDebugSessionGetParamsDTOSchema>;
|
|
432
|
+
type PluginDebugSessionStatusResponseDTO = z$1.infer<typeof PluginDebugSessionStatusResponseDTOSchema>;
|
|
433
|
+
type PluginDebugSessionRevokeRequestDTO = z$1.infer<typeof PluginDebugSessionRevokeRequestDTOSchema>;
|
|
434
|
+
type PluginDebugSessionRevokeResponseDTO = z$1.infer<typeof PluginDebugSessionRevokeResponseDTOSchema>;
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/tool.dto.d.ts
|
|
437
|
+
declare const ToolRunInputDTOSchema: z.ZodObject<{
|
|
438
|
+
pluginId: z.ZodString;
|
|
439
|
+
version: z.ZodOptional<z.ZodString>;
|
|
440
|
+
source: z.ZodOptional<z.ZodString>;
|
|
441
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
442
|
+
systemVar: z.ZodObject<{
|
|
443
|
+
app: z.ZodObject<{
|
|
444
|
+
id: z.ZodString;
|
|
445
|
+
name: z.ZodString;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
chat: z.ZodObject<{
|
|
448
|
+
chatId: z.ZodString;
|
|
449
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
invokeToken: z.ZodString;
|
|
452
|
+
time: z.ZodString;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
455
|
+
childId: z.ZodOptional<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>;
|
|
457
|
+
type ToolRunInputDTOType = z.infer<typeof ToolRunInputDTOSchema>;
|
|
458
|
+
declare const ToolListItemDTOSchema: z.ZodObject<{
|
|
459
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
name: z.ZodObject<{
|
|
462
|
+
en: z.ZodString;
|
|
463
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
464
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, z.core.$strip>;
|
|
466
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
467
|
+
en: z.ZodString;
|
|
468
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
469
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, z.core.$strip>>;
|
|
471
|
+
toolDescription: z.ZodString;
|
|
472
|
+
}, z.core.$strip>>>;
|
|
473
|
+
source: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodString]>;
|
|
474
|
+
isToolset: z.ZodBoolean;
|
|
475
|
+
hasSecret: z.ZodBoolean;
|
|
476
|
+
type: z.ZodLiteral<"tool">;
|
|
477
|
+
name: z.ZodObject<{
|
|
478
|
+
en: z.ZodString;
|
|
479
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
480
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
description: z.ZodObject<{
|
|
483
|
+
en: z.ZodString;
|
|
484
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
485
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
pluginId: z.ZodString;
|
|
488
|
+
version: z.ZodString;
|
|
489
|
+
etag: z.ZodString;
|
|
490
|
+
author: z.ZodOptional<z.ZodString>;
|
|
491
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
492
|
+
icon: z.ZodString;
|
|
493
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
494
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
495
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
496
|
+
search: "search";
|
|
497
|
+
tools: "tools";
|
|
498
|
+
multimodal: "multimodal";
|
|
499
|
+
communication: "communication";
|
|
500
|
+
finance: "finance";
|
|
501
|
+
design: "design";
|
|
502
|
+
productivity: "productivity";
|
|
503
|
+
news: "news";
|
|
504
|
+
entertainment: "entertainment";
|
|
505
|
+
social: "social";
|
|
506
|
+
scientific: "scientific";
|
|
507
|
+
other: "other";
|
|
508
|
+
}>>>;
|
|
509
|
+
toolDescription: z.ZodString;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
type ToolListItemDTOType = z.infer<typeof ToolListItemDTOSchema>;
|
|
512
|
+
declare const ToolListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
513
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
name: z.ZodObject<{
|
|
516
|
+
en: z.ZodString;
|
|
517
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
518
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
en: z.ZodString;
|
|
522
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
523
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>>;
|
|
525
|
+
toolDescription: z.ZodString;
|
|
526
|
+
}, z.core.$strip>>>;
|
|
527
|
+
source: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodString]>;
|
|
528
|
+
isToolset: z.ZodBoolean;
|
|
529
|
+
hasSecret: z.ZodBoolean;
|
|
530
|
+
type: z.ZodLiteral<"tool">;
|
|
531
|
+
name: z.ZodObject<{
|
|
532
|
+
en: z.ZodString;
|
|
533
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
534
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
description: z.ZodObject<{
|
|
537
|
+
en: z.ZodString;
|
|
538
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
539
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
540
|
+
}, z.core.$strip>;
|
|
541
|
+
pluginId: z.ZodString;
|
|
542
|
+
version: z.ZodString;
|
|
543
|
+
etag: z.ZodString;
|
|
544
|
+
author: z.ZodOptional<z.ZodString>;
|
|
545
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
546
|
+
icon: z.ZodString;
|
|
547
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
548
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
549
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
550
|
+
search: "search";
|
|
551
|
+
tools: "tools";
|
|
552
|
+
multimodal: "multimodal";
|
|
553
|
+
communication: "communication";
|
|
554
|
+
finance: "finance";
|
|
555
|
+
design: "design";
|
|
556
|
+
productivity: "productivity";
|
|
557
|
+
news: "news";
|
|
558
|
+
entertainment: "entertainment";
|
|
559
|
+
social: "social";
|
|
560
|
+
scientific: "scientific";
|
|
561
|
+
other: "other";
|
|
562
|
+
}>>>;
|
|
563
|
+
toolDescription: z.ZodString;
|
|
564
|
+
}, z.core.$strip>>;
|
|
565
|
+
type ToolListDTOType = z.infer<typeof ToolListDTOSchema>;
|
|
566
|
+
declare const ToolDetailDTOSchema: z.ZodObject<{
|
|
567
|
+
source: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodString]>;
|
|
568
|
+
isLatestVersion: z.ZodBoolean;
|
|
569
|
+
isToolset: z.ZodBoolean;
|
|
570
|
+
type: z.ZodLiteral<"tool">;
|
|
571
|
+
toolDescription: z.ZodString;
|
|
572
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
573
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
574
|
+
secretSchema: z.ZodOptional<z.ZodAny>;
|
|
575
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
576
|
+
id: z.ZodString;
|
|
577
|
+
name: z.ZodObject<{
|
|
578
|
+
en: z.ZodString;
|
|
579
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
580
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
581
|
+
}, z.core.$strip>;
|
|
582
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
en: z.ZodString;
|
|
584
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
585
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
586
|
+
}, z.core.$strip>>;
|
|
587
|
+
icon: z.ZodString;
|
|
588
|
+
toolDescription: z.ZodString;
|
|
589
|
+
inputSchema: z.ZodAny;
|
|
590
|
+
outputSchema: z.ZodAny;
|
|
591
|
+
}, z.core.$strip>>>;
|
|
592
|
+
pluginId: z.ZodString;
|
|
593
|
+
version: z.ZodString;
|
|
594
|
+
etag: z.ZodString;
|
|
595
|
+
author: z.ZodOptional<z.ZodString>;
|
|
596
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
597
|
+
name: z.ZodObject<{
|
|
598
|
+
en: z.ZodString;
|
|
599
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
600
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
601
|
+
}, z.core.$strip>;
|
|
602
|
+
icon: z.ZodString;
|
|
603
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
604
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
605
|
+
description: z.ZodObject<{
|
|
606
|
+
en: z.ZodString;
|
|
607
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
608
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
609
|
+
}, z.core.$strip>;
|
|
610
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
611
|
+
search: "search";
|
|
612
|
+
tools: "tools";
|
|
613
|
+
multimodal: "multimodal";
|
|
614
|
+
communication: "communication";
|
|
615
|
+
finance: "finance";
|
|
616
|
+
design: "design";
|
|
617
|
+
productivity: "productivity";
|
|
618
|
+
news: "news";
|
|
619
|
+
entertainment: "entertainment";
|
|
620
|
+
social: "social";
|
|
621
|
+
scientific: "scientific";
|
|
622
|
+
other: "other";
|
|
623
|
+
}>>>;
|
|
624
|
+
versionDescription: z.ZodOptional<z.ZodObject<{
|
|
625
|
+
en: z.ZodString;
|
|
626
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
627
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>>;
|
|
629
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
630
|
+
"userInfo:read": "userInfo:read";
|
|
631
|
+
"teamInfo:read": "teamInfo:read";
|
|
632
|
+
"model:read": "model:read";
|
|
633
|
+
"dataset:read": "dataset:read";
|
|
634
|
+
"file-upload:allow": "file-upload:allow";
|
|
635
|
+
}>>>;
|
|
636
|
+
}, z.core.$strip>;
|
|
637
|
+
type ToolDetailDTOType = z.infer<typeof ToolDetailDTOSchema>;
|
|
638
|
+
declare const ToolGetParamsDTOSchema: z.ZodObject<{
|
|
639
|
+
pluginId: z.ZodString;
|
|
640
|
+
version: z.ZodOptional<z.ZodString>;
|
|
641
|
+
source: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
642
|
+
fallbackLatestVersion: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
643
|
+
}, z.core.$strip>;
|
|
644
|
+
type ToolGetParamsDTOType = z.infer<typeof ToolGetParamsDTOSchema>;
|
|
645
|
+
declare const ToolListParamsDTOSchema: z.ZodObject<{
|
|
646
|
+
tags: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
647
|
+
search: "search";
|
|
648
|
+
tools: "tools";
|
|
649
|
+
multimodal: "multimodal";
|
|
650
|
+
communication: "communication";
|
|
651
|
+
finance: "finance";
|
|
652
|
+
design: "design";
|
|
653
|
+
productivity: "productivity";
|
|
654
|
+
news: "news";
|
|
655
|
+
entertainment: "entertainment";
|
|
656
|
+
social: "social";
|
|
657
|
+
scientific: "scientific";
|
|
658
|
+
other: "other";
|
|
659
|
+
}>>>>;
|
|
660
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
or: "or";
|
|
662
|
+
and: "and";
|
|
663
|
+
}>>;
|
|
664
|
+
sources: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
type ToolListParamsDTOType = z.infer<typeof ToolListParamsDTOSchema>;
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/workflow.dto.d.ts
|
|
669
|
+
declare const WorkflowTemplateDTOSchema: z.ZodObject<{
|
|
670
|
+
templateId: z.ZodString;
|
|
671
|
+
name: z.ZodString;
|
|
672
|
+
intro: z.ZodString;
|
|
673
|
+
avatar: z.ZodString;
|
|
674
|
+
tags: z.ZodArray<z.ZodString>;
|
|
675
|
+
type: z.ZodString;
|
|
676
|
+
author: z.ZodOptional<z.ZodString>;
|
|
677
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
678
|
+
userGuide: z.ZodOptional<z.ZodString>;
|
|
679
|
+
isQuickTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
680
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
681
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
682
|
+
workflow: z.ZodObject<{
|
|
683
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
684
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
685
|
+
chatConfig: z.ZodOptional<z.ZodAny>;
|
|
686
|
+
}, z.core.$strip>;
|
|
687
|
+
}, z.core.$strip>;
|
|
688
|
+
declare const WorkflowListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
689
|
+
templateId: z.ZodString;
|
|
690
|
+
name: z.ZodString;
|
|
691
|
+
intro: z.ZodString;
|
|
692
|
+
avatar: z.ZodString;
|
|
693
|
+
tags: z.ZodArray<z.ZodString>;
|
|
694
|
+
type: z.ZodString;
|
|
695
|
+
author: z.ZodOptional<z.ZodString>;
|
|
696
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
697
|
+
userGuide: z.ZodOptional<z.ZodString>;
|
|
698
|
+
isQuickTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
700
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
701
|
+
workflow: z.ZodObject<{
|
|
702
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
703
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
704
|
+
chatConfig: z.ZodOptional<z.ZodAny>;
|
|
705
|
+
}, z.core.$strip>;
|
|
706
|
+
}, z.core.$strip>>;
|
|
707
|
+
type WorkflowTemplateDTOType = z.infer<typeof WorkflowTemplateDTOSchema>;
|
|
708
|
+
type WorkflowListDTOType = z.infer<typeof WorkflowListDTOSchema>;
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region ../../packages/domain/src/entities/model.entity.d.ts
|
|
711
|
+
declare const LLMModelItemSchema: z$1.ZodObject<{
|
|
712
|
+
type: z$1.ZodLiteral<"llm">;
|
|
713
|
+
maxContext: z$1.ZodNumber;
|
|
714
|
+
maxTokens: z$1.ZodNumber;
|
|
715
|
+
quoteMaxToken: z$1.ZodNumber;
|
|
716
|
+
maxTemperature: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodNull]>;
|
|
717
|
+
showTopP: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
718
|
+
responseFormatList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
719
|
+
showStopSign: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
720
|
+
censor: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
721
|
+
vision: z$1.ZodBoolean;
|
|
722
|
+
reasoning: z$1.ZodBoolean;
|
|
723
|
+
reasoningEffort: z$1.ZodBoolean;
|
|
724
|
+
toolChoice: z$1.ZodBoolean;
|
|
725
|
+
datasetProcess: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
726
|
+
usedInClassify: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
727
|
+
usedInExtractFields: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
728
|
+
usedInToolCall: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
729
|
+
useInEvaluation: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
730
|
+
defaultSystemChatPrompt: z$1.ZodOptional<z$1.ZodString>;
|
|
731
|
+
defaultConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
732
|
+
fieldMap: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
733
|
+
provider: z$1.ZodString;
|
|
734
|
+
model: z$1.ZodString;
|
|
735
|
+
name: z$1.ZodString;
|
|
736
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
737
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
738
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
739
|
+
}, z$1.core.$strip>;
|
|
740
|
+
type LLMModelItemType = z$1.infer<typeof LLMModelItemSchema>;
|
|
741
|
+
declare const EmbeddingModelItemSchema: z$1.ZodObject<{
|
|
742
|
+
type: z$1.ZodLiteral<"embedding">;
|
|
743
|
+
defaultToken: z$1.ZodNumber;
|
|
744
|
+
maxToken: z$1.ZodNumber;
|
|
745
|
+
weight: z$1.ZodOptional<z$1.ZodNumber>;
|
|
746
|
+
hidden: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
747
|
+
normalization: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
748
|
+
defaultConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
749
|
+
dbConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
750
|
+
queryConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
751
|
+
provider: z$1.ZodString;
|
|
752
|
+
model: z$1.ZodString;
|
|
753
|
+
name: z$1.ZodString;
|
|
754
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
755
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
756
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
757
|
+
}, z$1.core.$strip>;
|
|
758
|
+
type EmbeddingModelItemType = z$1.infer<typeof EmbeddingModelItemSchema>;
|
|
759
|
+
declare const RerankModelItemSchema: z$1.ZodObject<{
|
|
760
|
+
type: z$1.ZodLiteral<"rerank">;
|
|
761
|
+
maxToken: z$1.ZodNumber;
|
|
762
|
+
provider: z$1.ZodString;
|
|
763
|
+
model: z$1.ZodString;
|
|
764
|
+
name: z$1.ZodString;
|
|
765
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
766
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
767
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
768
|
+
}, z$1.core.$strip>;
|
|
769
|
+
type RerankModelItemType = z$1.infer<typeof RerankModelItemSchema>;
|
|
770
|
+
declare const TTSModelSchema: z$1.ZodObject<{
|
|
771
|
+
type: z$1.ZodLiteral<"tts">;
|
|
772
|
+
voices: z$1.ZodArray<z$1.ZodObject<{
|
|
773
|
+
label: z$1.ZodString;
|
|
774
|
+
value: z$1.ZodString;
|
|
775
|
+
}, z$1.core.$strip>>;
|
|
776
|
+
provider: z$1.ZodString;
|
|
777
|
+
model: z$1.ZodString;
|
|
778
|
+
name: z$1.ZodString;
|
|
779
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
780
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
781
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
782
|
+
}, z$1.core.$strip>;
|
|
783
|
+
type TTSModelItemType = z$1.infer<typeof TTSModelSchema>;
|
|
784
|
+
declare const STTModelSchema: z$1.ZodObject<{
|
|
785
|
+
type: z$1.ZodLiteral<"stt">;
|
|
786
|
+
provider: z$1.ZodString;
|
|
787
|
+
model: z$1.ZodString;
|
|
788
|
+
name: z$1.ZodString;
|
|
789
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
790
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
791
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
792
|
+
}, z$1.core.$strip>;
|
|
793
|
+
type STTModelItemType = z$1.infer<typeof STTModelSchema>;
|
|
794
|
+
declare const ModelItemSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
795
|
+
type: z$1.ZodLiteral<"llm">;
|
|
796
|
+
maxContext: z$1.ZodNumber;
|
|
797
|
+
maxTokens: z$1.ZodNumber;
|
|
798
|
+
quoteMaxToken: z$1.ZodNumber;
|
|
799
|
+
maxTemperature: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodNull]>;
|
|
800
|
+
showTopP: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
801
|
+
responseFormatList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
802
|
+
showStopSign: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
803
|
+
censor: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
804
|
+
vision: z$1.ZodBoolean;
|
|
805
|
+
reasoning: z$1.ZodBoolean;
|
|
806
|
+
reasoningEffort: z$1.ZodBoolean;
|
|
807
|
+
toolChoice: z$1.ZodBoolean;
|
|
808
|
+
datasetProcess: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
809
|
+
usedInClassify: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
810
|
+
usedInExtractFields: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
811
|
+
usedInToolCall: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
812
|
+
useInEvaluation: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
813
|
+
defaultSystemChatPrompt: z$1.ZodOptional<z$1.ZodString>;
|
|
814
|
+
defaultConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
815
|
+
fieldMap: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
816
|
+
provider: z$1.ZodString;
|
|
817
|
+
model: z$1.ZodString;
|
|
818
|
+
name: z$1.ZodString;
|
|
819
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
820
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
821
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
822
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
823
|
+
type: z$1.ZodLiteral<"embedding">;
|
|
824
|
+
defaultToken: z$1.ZodNumber;
|
|
825
|
+
maxToken: z$1.ZodNumber;
|
|
826
|
+
weight: z$1.ZodOptional<z$1.ZodNumber>;
|
|
827
|
+
hidden: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
828
|
+
normalization: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
829
|
+
defaultConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
830
|
+
dbConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
831
|
+
queryConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
832
|
+
provider: z$1.ZodString;
|
|
833
|
+
model: z$1.ZodString;
|
|
834
|
+
name: z$1.ZodString;
|
|
835
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
836
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
837
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
838
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
839
|
+
type: z$1.ZodLiteral<"rerank">;
|
|
840
|
+
maxToken: z$1.ZodNumber;
|
|
841
|
+
provider: z$1.ZodString;
|
|
842
|
+
model: z$1.ZodString;
|
|
843
|
+
name: z$1.ZodString;
|
|
844
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
845
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
846
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
847
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
848
|
+
type: z$1.ZodLiteral<"tts">;
|
|
849
|
+
voices: z$1.ZodArray<z$1.ZodObject<{
|
|
850
|
+
label: z$1.ZodString;
|
|
851
|
+
value: z$1.ZodString;
|
|
852
|
+
}, z$1.core.$strip>>;
|
|
853
|
+
provider: z$1.ZodString;
|
|
854
|
+
model: z$1.ZodString;
|
|
855
|
+
name: z$1.ZodString;
|
|
856
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
857
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
858
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
859
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
860
|
+
type: z$1.ZodLiteral<"stt">;
|
|
861
|
+
provider: z$1.ZodString;
|
|
862
|
+
model: z$1.ZodString;
|
|
863
|
+
name: z$1.ZodString;
|
|
864
|
+
charsPointsPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
865
|
+
inputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
866
|
+
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
867
|
+
}, z$1.core.$strip>], "type">;
|
|
868
|
+
type ModelItemType = z$1.infer<typeof ModelItemSchema>;
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region ../../packages/domain/src/entities/tool.entity.d.ts
|
|
871
|
+
declare const ToolSchema: z$1.ZodObject<{
|
|
872
|
+
type: z$1.ZodLiteral<"tool">;
|
|
873
|
+
toolDescription: z$1.ZodString;
|
|
874
|
+
inputSchema: z$1.ZodOptional<z$1.ZodAny>;
|
|
875
|
+
outputSchema: z$1.ZodOptional<z$1.ZodAny>;
|
|
876
|
+
secretSchema: z$1.ZodOptional<z$1.ZodAny>;
|
|
877
|
+
children: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
878
|
+
id: z$1.ZodString;
|
|
879
|
+
name: z$1.ZodObject<{
|
|
880
|
+
en: z$1.ZodString;
|
|
881
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
882
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
883
|
+
}, z$1.core.$strip>;
|
|
884
|
+
description: z$1.ZodOptional<z$1.ZodObject<{
|
|
885
|
+
en: z$1.ZodString;
|
|
886
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
887
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
888
|
+
}, z$1.core.$strip>>;
|
|
889
|
+
icon: z$1.ZodString;
|
|
890
|
+
toolDescription: z$1.ZodString;
|
|
891
|
+
inputSchema: z$1.ZodAny;
|
|
892
|
+
outputSchema: z$1.ZodAny;
|
|
893
|
+
}, z$1.core.$strip>>>;
|
|
894
|
+
pluginId: z$1.ZodString;
|
|
895
|
+
version: z$1.ZodString;
|
|
896
|
+
etag: z$1.ZodString;
|
|
897
|
+
author: z$1.ZodOptional<z$1.ZodString>;
|
|
898
|
+
repoUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
899
|
+
name: z$1.ZodObject<{
|
|
900
|
+
en: z$1.ZodString;
|
|
901
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
902
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
903
|
+
}, z$1.core.$strip>;
|
|
904
|
+
icon: z$1.ZodString;
|
|
905
|
+
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
906
|
+
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
907
|
+
description: z$1.ZodObject<{
|
|
908
|
+
en: z$1.ZodString;
|
|
909
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
910
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
911
|
+
}, z$1.core.$strip>;
|
|
912
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
913
|
+
search: "search";
|
|
914
|
+
tools: "tools";
|
|
915
|
+
multimodal: "multimodal";
|
|
916
|
+
communication: "communication";
|
|
917
|
+
finance: "finance";
|
|
918
|
+
design: "design";
|
|
919
|
+
productivity: "productivity";
|
|
920
|
+
news: "news";
|
|
921
|
+
entertainment: "entertainment";
|
|
922
|
+
social: "social";
|
|
923
|
+
scientific: "scientific";
|
|
924
|
+
other: "other";
|
|
925
|
+
}>>>;
|
|
926
|
+
versionDescription: z$1.ZodOptional<z$1.ZodObject<{
|
|
927
|
+
en: z$1.ZodString;
|
|
928
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
929
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
930
|
+
}, z$1.core.$strip>>;
|
|
931
|
+
permission: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
932
|
+
"userInfo:read": "userInfo:read";
|
|
933
|
+
"teamInfo:read": "teamInfo:read";
|
|
934
|
+
"model:read": "model:read";
|
|
935
|
+
"dataset:read": "dataset:read";
|
|
936
|
+
"file-upload:allow": "file-upload:allow";
|
|
937
|
+
}>>>;
|
|
938
|
+
}, z$1.core.$strip>;
|
|
939
|
+
type ToolType = z$1.output<typeof ToolSchema>;
|
|
940
|
+
//#endregion
|
|
941
|
+
//#region ../../packages/domain/src/entities/plugin-base.entity.d.ts
|
|
942
|
+
declare const PluginTagSchema: z$1.ZodEnum<{
|
|
943
|
+
search: "search";
|
|
944
|
+
tools: "tools";
|
|
945
|
+
multimodal: "multimodal";
|
|
946
|
+
communication: "communication";
|
|
947
|
+
finance: "finance";
|
|
948
|
+
design: "design";
|
|
949
|
+
productivity: "productivity";
|
|
950
|
+
news: "news";
|
|
951
|
+
entertainment: "entertainment";
|
|
952
|
+
social: "social";
|
|
953
|
+
scientific: "scientific";
|
|
954
|
+
other: "other";
|
|
955
|
+
}>;
|
|
956
|
+
type PluginTagType = z$1.infer<typeof PluginTagSchema>;
|
|
957
|
+
declare const PluginTypeSchema: z$1.ZodEnum<{
|
|
958
|
+
tool: "tool";
|
|
959
|
+
}>;
|
|
960
|
+
type PluginTypeType = z$1.infer<typeof PluginTypeSchema>;
|
|
961
|
+
//#endregion
|
|
962
|
+
//#region ../../packages/domain/src/entities/plugin.entity.d.ts
|
|
963
|
+
type PluginType = ToolType;
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region ../../packages/domain/src/value-objects/i18n-string.vo.d.ts
|
|
966
|
+
declare const I18nStringSchema: z$1.ZodObject<{
|
|
967
|
+
en: z$1.ZodString;
|
|
968
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
969
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
970
|
+
}, z$1.core.$strip>;
|
|
971
|
+
type I18nStringType = z$1.infer<typeof I18nStringSchema>;
|
|
972
|
+
declare const I18nStringStrictSchema: z$1.ZodObject<{
|
|
973
|
+
en: z$1.ZodString;
|
|
974
|
+
"zh-CN": z$1.ZodString;
|
|
975
|
+
"zh-Hant": z$1.ZodString;
|
|
976
|
+
}, z$1.core.$strip>;
|
|
977
|
+
type I18nStringStrictType = z$1.infer<typeof I18nStringStrictSchema>;
|
|
978
|
+
//#endregion
|
|
979
|
+
//#region ../../packages/domain/src/value-objects/plugin.vo.d.ts
|
|
980
|
+
declare const PluginUniqueIdSchema: z$1.ZodObject<{
|
|
981
|
+
pluginId: z$1.ZodString;
|
|
982
|
+
version: z$1.ZodString;
|
|
983
|
+
etag: z$1.ZodString;
|
|
984
|
+
}, z$1.core.$strip>;
|
|
985
|
+
type PluginUniqueIdType = z$1.infer<typeof PluginUniqueIdSchema>;
|
|
986
|
+
declare const PluginSourceSchema: z$1.ZodUnion<[z$1.ZodLiteral<"system">, z$1.ZodString]>;
|
|
987
|
+
type PluginSourceType = z$1.infer<typeof PluginSourceSchema>;
|
|
988
|
+
declare const PluginTagListSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
989
|
+
id: z$1.ZodString;
|
|
990
|
+
name: z$1.ZodObject<{
|
|
991
|
+
en: z$1.ZodString;
|
|
992
|
+
"zh-CN": z$1.ZodString;
|
|
993
|
+
"zh-Hant": z$1.ZodString;
|
|
994
|
+
}, z$1.core.$strip>;
|
|
995
|
+
}, z$1.core.$strip>>;
|
|
996
|
+
type PluginTagListType = z$1.infer<typeof PluginTagListSchema>;
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region ../../packages/domain/src/value-objects/system-var.vo.d.ts
|
|
999
|
+
declare const SystemVarSchema: z$1.ZodObject<{
|
|
1000
|
+
app: z$1.ZodObject<{
|
|
1001
|
+
id: z$1.ZodString;
|
|
1002
|
+
name: z$1.ZodString;
|
|
1003
|
+
}, z$1.core.$strip>;
|
|
1004
|
+
chat: z$1.ZodObject<{
|
|
1005
|
+
chatId: z$1.ZodString;
|
|
1006
|
+
uid: z$1.ZodOptional<z$1.ZodString>;
|
|
1007
|
+
}, z$1.core.$strip>;
|
|
1008
|
+
invokeToken: z$1.ZodString;
|
|
1009
|
+
time: z$1.ZodString;
|
|
1010
|
+
}, z$1.core.$strip>;
|
|
1011
|
+
type SystemVarType = z$1.infer<typeof SystemVarSchema>;
|
|
1012
|
+
//#endregion
|
|
1013
|
+
//#region ../../packages/domain/src/value-objects/tool.vo.d.ts
|
|
1014
|
+
declare const ToolHandlerReturnSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1015
|
+
type ToolHandlerReturnType = z$1.infer<typeof ToolHandlerReturnSchema>;
|
|
1016
|
+
declare const ToolAnswerSchema: z$1.ZodObject<{
|
|
1017
|
+
type: z$1.ZodEnum<{
|
|
1018
|
+
answer: "answer";
|
|
1019
|
+
fastAnswer: "fastAnswer";
|
|
1020
|
+
}>;
|
|
1021
|
+
content: z$1.ZodString;
|
|
1022
|
+
}, z$1.core.$strip>;
|
|
1023
|
+
type ToolAnswerType = z$1.infer<typeof ToolAnswerSchema>;
|
|
1024
|
+
declare const ToolStreamMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
1025
|
+
type: z$1.ZodLiteral<"response">;
|
|
1026
|
+
data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1027
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1028
|
+
type: z$1.ZodLiteral<"stream">;
|
|
1029
|
+
data: z$1.ZodObject<{
|
|
1030
|
+
type: z$1.ZodEnum<{
|
|
1031
|
+
answer: "answer";
|
|
1032
|
+
fastAnswer: "fastAnswer";
|
|
1033
|
+
}>;
|
|
1034
|
+
content: z$1.ZodString;
|
|
1035
|
+
}, z$1.core.$strip>;
|
|
1036
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1037
|
+
type: z$1.ZodLiteral<"error">;
|
|
1038
|
+
data: z$1.ZodString;
|
|
1039
|
+
}, z$1.core.$strip>], "type">;
|
|
1040
|
+
type ToolStreamMessageType = z$1.infer<typeof ToolStreamMessageSchema>;
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region ../../packages/domain/src/value-objects/permission.vo.d.ts
|
|
1043
|
+
declare const PluginPermissionEnumSchema: z$1.ZodEnum<{
|
|
1044
|
+
"userInfo:read": "userInfo:read";
|
|
1045
|
+
"teamInfo:read": "teamInfo:read";
|
|
1046
|
+
"model:read": "model:read";
|
|
1047
|
+
"dataset:read": "dataset:read";
|
|
1048
|
+
"file-upload:allow": "file-upload:allow";
|
|
1049
|
+
}>;
|
|
1050
|
+
declare const PluginPermissionEnum: {
|
|
1051
|
+
"userInfo:read": "userInfo:read";
|
|
1052
|
+
"teamInfo:read": "teamInfo:read";
|
|
1053
|
+
"model:read": "model:read";
|
|
1054
|
+
"dataset:read": "dataset:read";
|
|
1055
|
+
"file-upload:allow": "file-upload:allow";
|
|
1056
|
+
};
|
|
1057
|
+
type PluginPermissionEnumType = z$1.infer<typeof PluginPermissionEnumSchema>;
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region src/types.d.ts
|
|
1060
|
+
type JsonObject = Record<string, unknown>;
|
|
1061
|
+
type ToolRunInputType = ToolRunInputDTOType;
|
|
1062
|
+
type ToolDetailType = ToolDetailDTOType;
|
|
1063
|
+
type ToolGetParamsType = ToolGetParamsDTOType;
|
|
1064
|
+
type ToolListType = ToolListDTOType;
|
|
1065
|
+
type ToolListItemType = ToolListItemDTOType;
|
|
1066
|
+
type ToolListParamsType = Partial<ToolListParamsDTOType>;
|
|
1067
|
+
type PluginSummaryType = PluginDTOType;
|
|
1068
|
+
type PluginUploadResultType = PluginUploadResponseDTOType;
|
|
1069
|
+
type PluginListType = PluginListDTOType;
|
|
1070
|
+
type PluginListItemType = PluginListItemDTOType;
|
|
1071
|
+
type PluginListParamsType = Partial<PluginListParamsDTOType>;
|
|
1072
|
+
type PluginInstallFailureType = PluginInstallFailureDTOType;
|
|
1073
|
+
type PluginInstallResultType = PluginInstallResponseDTOType;
|
|
1074
|
+
type PluginUploadFailureType = PluginUploadFailureDTOType;
|
|
1075
|
+
type PluginTagListItemType = PluginTagListType[number];
|
|
1076
|
+
type PluginPruneDisabledResultType = PluginPruneDisabledResponseDTOType;
|
|
1077
|
+
type PluginRuntimeConfigType = PluginRuntimeConfigDTOType;
|
|
1078
|
+
type PluginVersionItemType = PluginVersionItemDTOType;
|
|
1079
|
+
type PluginVersionListType = PluginVersionListDTOType;
|
|
1080
|
+
type PluginVersionListParamsType = PluginVersionListParamsDTOType;
|
|
1081
|
+
type PluginDebugSessionStatusType = PluginDebugSessionStatusDTO;
|
|
1082
|
+
type PluginDebugSessionCreateParamsType = PluginDebugSessionCreateRequestDTO;
|
|
1083
|
+
type PluginDebugSessionCreateResultType = PluginDebugSessionCreateResponseDTO;
|
|
1084
|
+
type PluginDebugSessionConnectionKeyExchangeParamsType = PluginDebugSessionConnectionKeyExchangeRequestDTO;
|
|
1085
|
+
type PluginDebugSessionConnectionKeyExchangeResultType = PluginDebugSessionConnectionKeyExchangeResponseDTO;
|
|
1086
|
+
type PluginDebugSessionStatusParamsType = PluginDebugSessionGetParamsDTO;
|
|
1087
|
+
type PluginDebugSessionStatusResultType = PluginDebugSessionStatusResponseDTO;
|
|
1088
|
+
type PluginDebugSessionRevokeParamsType = PluginDebugSessionRevokeRequestDTO;
|
|
1089
|
+
type PluginDebugSessionRevokeResultType = PluginDebugSessionRevokeResponseDTO;
|
|
1090
|
+
declare const pluginTagList: PluginTagListType;
|
|
1091
|
+
type ModelListType = ModelListDTOType;
|
|
1092
|
+
type WorkflowTemplateType = WorkflowTemplateDTOType;
|
|
1093
|
+
type WorkflowListType = WorkflowListDTOType;
|
|
1094
|
+
type ModelProviderItemType = ModelProviderItemDTOType;
|
|
1095
|
+
type AIProxyChannelItemType = AIProxyChannelItemDTOType;
|
|
1096
|
+
type ModelProviderListType = ModelProviderListDTOType;
|
|
1097
|
+
type RunToolStreamParams = ToolRunInputType & {
|
|
1098
|
+
onMessage?: (message: ToolAnswerType) => void;
|
|
1099
|
+
};
|
|
1100
|
+
type FastGPTPluginClientOptions = {
|
|
1101
|
+
baseUrl: string;
|
|
1102
|
+
token?: string;
|
|
1103
|
+
fetch?: typeof globalThis.fetch;
|
|
1104
|
+
};
|
|
1105
|
+
type ClientRequestOptions = {
|
|
1106
|
+
signal?: AbortSignal;
|
|
1107
|
+
};
|
|
1108
|
+
//#endregion
|
|
1109
|
+
//#region src/client.d.ts
|
|
1110
|
+
declare class FastGPTPluginClient {
|
|
1111
|
+
private readonly transport;
|
|
1112
|
+
private readonly toolRunner;
|
|
1113
|
+
constructor(options: FastGPTPluginClientOptions);
|
|
1114
|
+
listModels(requestOptions?: ClientRequestOptions): Promise<ModelListType>;
|
|
1115
|
+
getModelProviders(requestOptions?: ClientRequestOptions): Promise<ModelProviderListType>;
|
|
1116
|
+
listWorkflows(requestOptions?: ClientRequestOptions): Promise<WorkflowListType>;
|
|
1117
|
+
getTool(params: ToolGetParamsType, requestOptions?: ClientRequestOptions): Promise<ToolDetailType>;
|
|
1118
|
+
listTools(params?: ToolListParamsType, requestOptions?: ClientRequestOptions): Promise<ToolListType>;
|
|
1119
|
+
uploadPlugin(files: (Blob | {
|
|
1120
|
+
file: Blob;
|
|
1121
|
+
filename?: string;
|
|
1122
|
+
})[], requestOptions?: ClientRequestOptions): Promise<PluginUploadResultType>;
|
|
1123
|
+
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1124
|
+
pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
|
|
1125
|
+
installPlugins(urls: string[], requestOptions?: ClientRequestOptions): Promise<PluginInstallResultType>;
|
|
1126
|
+
listPlugins(params?: PluginListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginListType>;
|
|
1127
|
+
listPluginVersions(params: PluginVersionListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginVersionListType>;
|
|
1128
|
+
listPluginTags(_requestOptions?: ClientRequestOptions): Promise<PluginTagListType>;
|
|
1129
|
+
getPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<PluginRuntimeConfigType>;
|
|
1130
|
+
setPluginRuntimeConfig(pluginId: string, config: PluginRuntimeConfigType, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1131
|
+
resetPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1132
|
+
createDebugSession(params: PluginDebugSessionCreateParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionCreateResultType>;
|
|
1133
|
+
refreshDebugSessionKey(params: PluginDebugSessionCreateParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionCreateResultType>;
|
|
1134
|
+
exchangeDebugSessionConnectionKey(params: PluginDebugSessionConnectionKeyExchangeParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionConnectionKeyExchangeResultType>;
|
|
1135
|
+
getDebugSessionStatus(params: PluginDebugSessionStatusParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionStatusResultType>;
|
|
1136
|
+
revokeDebugSession(params: PluginDebugSessionRevokeParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionRevokeResultType>;
|
|
1137
|
+
runToolStream(params: RunToolStreamParams, requestOptions?: ClientRequestOptions): Promise<ToolHandlerReturnType>;
|
|
1138
|
+
private withApiPath;
|
|
1139
|
+
private withTmbId;
|
|
1140
|
+
}
|
|
1141
|
+
//#endregion
|
|
1142
|
+
//#region src/tool-stream.d.ts
|
|
1143
|
+
declare class RunToolWithStream {
|
|
1144
|
+
private readonly transport;
|
|
1145
|
+
constructor(options: FastGPTPluginClientOptions);
|
|
1146
|
+
run(params: RunToolStreamParams, requestOptions?: ClientRequestOptions): Promise<{
|
|
1147
|
+
output?: ToolHandlerReturnType;
|
|
1148
|
+
error?: Error;
|
|
1149
|
+
}>;
|
|
1150
|
+
private parseStreamMessage;
|
|
1151
|
+
}
|
|
1152
|
+
//#endregion
|
|
1153
|
+
//#region ../../packages/domain/src/value-objects/file/MIME.vo.d.ts
|
|
1154
|
+
declare const MIMESchema: z$1.ZodIntersection<z$1.ZodEnum<{
|
|
1155
|
+
"application/javascript": "application/javascript";
|
|
1156
|
+
"application/json": "application/json";
|
|
1157
|
+
"application/yaml": "application/yaml";
|
|
1158
|
+
"application/zip": "application/zip";
|
|
1159
|
+
"image/jpeg": "image/jpeg";
|
|
1160
|
+
"image/png": "image/png";
|
|
1161
|
+
"image/gif": "image/gif";
|
|
1162
|
+
"image/webp": "image/webp";
|
|
1163
|
+
"image/svg+xml": "image/svg+xml";
|
|
1164
|
+
"application/pdf": "application/pdf";
|
|
1165
|
+
"text/plain": "text/plain";
|
|
1166
|
+
"text/csv": "text/csv";
|
|
1167
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
1168
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
1169
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
1170
|
+
"application/msword": "application/msword";
|
|
1171
|
+
"application/vnd.ms-excel": "application/vnd.ms-excel";
|
|
1172
|
+
"application/vnd.ms-powerpoint": "application/vnd.ms-powerpoint";
|
|
1173
|
+
"text/markdown": "text/markdown";
|
|
1174
|
+
"audio/mpeg": "audio/mpeg";
|
|
1175
|
+
"video/mp4": "video/mp4";
|
|
1176
|
+
"audio/wav": "audio/wav";
|
|
1177
|
+
"text/html": "text/html";
|
|
1178
|
+
"application/xml": "application/xml";
|
|
1179
|
+
"application/gzip": "application/gzip";
|
|
1180
|
+
"application/octet-stream": "application/octet-stream";
|
|
1181
|
+
"multipart/form-data": "multipart/form-data";
|
|
1182
|
+
"text/event-stream": "text/event-stream";
|
|
1183
|
+
}>, z$1.ZodString>;
|
|
1184
|
+
type MIMEType = z$1.infer<typeof MIMESchema>;
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region ../../packages/domain/src/value-objects/result.vo.d.ts
|
|
1187
|
+
/** usecase, interface-adapter 都要使用这个类型, 手动处理错误,并且能从内到外把错误透出来*/
|
|
1188
|
+
type ResultFailure<E extends Error = Error> = {
|
|
1189
|
+
reason: I18nStringType;
|
|
1190
|
+
error: E;
|
|
1191
|
+
code?: string;
|
|
1192
|
+
message?: string;
|
|
1193
|
+
data?: unknown;
|
|
1194
|
+
};
|
|
1195
|
+
type Result<T = unknown, E extends Error = Error> = [T, null] | [null, ResultFailure<E>];
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region ../../packages/infrastructure/src/plugin/utils/pkg-parser.d.ts
|
|
1198
|
+
type ParsedPkgFile = {
|
|
1199
|
+
filename: string;
|
|
1200
|
+
contentType: MIMEType;
|
|
1201
|
+
size: number;
|
|
1202
|
+
stream: Readable;
|
|
1203
|
+
};
|
|
1204
|
+
type ParsedPkgFiles = {
|
|
1205
|
+
index: ParsedPkgFile;
|
|
1206
|
+
manifest: ParsedPkgFile;
|
|
1207
|
+
readme?: ParsedPkgFile;
|
|
1208
|
+
assets?: ParsedPkgFile[];
|
|
1209
|
+
logos?: ParsedPkgFile[];
|
|
1210
|
+
};
|
|
1211
|
+
type ParsePkgParams = {
|
|
1212
|
+
input: Buffer | Readable;
|
|
1213
|
+
getAccessURL?: (arg: {
|
|
1214
|
+
pluginId: string;
|
|
1215
|
+
version: string;
|
|
1216
|
+
filePath: string[];
|
|
1217
|
+
etag: string;
|
|
1218
|
+
}) => Promise<Result<string>>;
|
|
1219
|
+
};
|
|
1220
|
+
declare const parsePkg: ({
|
|
1221
|
+
input,
|
|
1222
|
+
getAccessURL
|
|
1223
|
+
}: ParsePkgParams) => Promise<Result<{
|
|
1224
|
+
info: PluginType;
|
|
1225
|
+
files: ParsedPkgFiles;
|
|
1226
|
+
}>>;
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region ../../packages/infrastructure/src/static-data/models/type.d.ts
|
|
1229
|
+
type AIProxyChannelsType = {
|
|
1230
|
+
channelId: number;
|
|
1231
|
+
name: I18nStringStrictType;
|
|
1232
|
+
avatar: string;
|
|
1233
|
+
}[];
|
|
1234
|
+
//#endregion
|
|
1235
|
+
export { type AIProxyChannelsType, type AIProxyChannelItemType as AiproxyMapProviderItemType, type ClientRequestOptions, type EmbeddingModelItemType, FastGPTPluginClient, type FastGPTPluginClientOptions, type I18nStringStrictType, type I18nStringType, type JsonObject, type LLMModelItemType, type ModelItemType, type ModelListType, type ModelProviderItemType, type ModelProviderListType, type ParsePkgParams, type ParsedPkgFile, type ParsedPkgFiles, type PluginDebugSessionConnectionKeyExchangeParamsType, type PluginDebugSessionConnectionKeyExchangeResultType, type PluginDebugSessionCreateParamsType, type PluginDebugSessionCreateResultType, type PluginDebugSessionRevokeParamsType, type PluginDebugSessionRevokeResultType, type PluginDebugSessionStatusParamsType, type PluginDebugSessionStatusResultType, type PluginDebugSessionStatusType, type PluginInstallFailureType, type PluginInstallResultType, type PluginListItemType, type PluginListParamsType, type PluginListType, PluginPermissionEnum, PluginPermissionEnumSchema, type PluginPermissionEnumType, type PluginPruneDisabledResultType, type PluginRuntimeConfigType, type PluginSourceType, type PluginSummaryType, type PluginTagListItemType, type PluginTagListType, type PluginTagType, type PluginTypeType, type PluginUniqueIdType, type PluginUploadFailureType, type PluginUploadResultType, type PluginVersionItemType, type PluginVersionListParamsType, type PluginVersionListType, type RerankModelItemType, type RunToolStreamParams, RunToolWithStream, type STTModelItemType, type SystemVarType, type TTSModelItemType, type ToolAnswerType, type ToolDetailType, type ToolGetParamsType, type ToolHandlerReturnType, type ToolListItemType, type ToolListParamsType, type ToolListType, type ToolRunInputType, type ToolStreamMessageType, type WorkflowListType, type WorkflowTemplateType, parsePkg, pluginTagList };
|
|
1236
|
+
//# sourceMappingURL=index.d.ts.map
|