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