@fastgpt-plugin/sdk-client 0.0.1-alpha.9 → 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +25 -0
- package/README.md +9 -0
- package/dist/index.d.ts +653 -798
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,557 +1,280 @@
|
|
|
1
|
-
import z$1, {
|
|
1
|
+
import z$1, { z } from "zod";
|
|
2
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
3
|
//#region ../../packages/interface-adapter/src/contracts/dto/model.dto.d.ts
|
|
281
|
-
declare const ModelListDTOSchema: z
|
|
282
|
-
type: z
|
|
283
|
-
maxContext: z
|
|
284
|
-
maxTokens: z
|
|
285
|
-
quoteMaxToken: z
|
|
286
|
-
maxTemperature: z
|
|
287
|
-
showTopP: z
|
|
288
|
-
responseFormatList: z
|
|
289
|
-
showStopSign: z
|
|
290
|
-
censor: z
|
|
291
|
-
vision: z
|
|
292
|
-
reasoning: z
|
|
293
|
-
reasoningEffort: z
|
|
294
|
-
toolChoice: z
|
|
295
|
-
datasetProcess: z
|
|
296
|
-
usedInClassify: z
|
|
297
|
-
usedInExtractFields: z
|
|
298
|
-
usedInToolCall: z
|
|
299
|
-
useInEvaluation: z
|
|
300
|
-
defaultSystemChatPrompt: z
|
|
301
|
-
defaultConfig: z
|
|
302
|
-
fieldMap: z
|
|
303
|
-
provider: z
|
|
304
|
-
model: z
|
|
305
|
-
name: z
|
|
306
|
-
charsPointsPrice: z
|
|
307
|
-
inputPrice: z
|
|
308
|
-
outputPrice: z
|
|
309
|
-
}, z
|
|
310
|
-
type: z
|
|
311
|
-
defaultToken: z
|
|
312
|
-
maxToken: z
|
|
313
|
-
weight: z
|
|
314
|
-
hidden: z
|
|
315
|
-
normalization: z
|
|
316
|
-
defaultConfig: z
|
|
317
|
-
dbConfig: z
|
|
318
|
-
queryConfig: z
|
|
319
|
-
provider: z
|
|
320
|
-
model: z
|
|
321
|
-
name: z
|
|
322
|
-
charsPointsPrice: z
|
|
323
|
-
inputPrice: z
|
|
324
|
-
outputPrice: z
|
|
325
|
-
}, z
|
|
326
|
-
type: z
|
|
327
|
-
maxToken: z
|
|
328
|
-
provider: z
|
|
329
|
-
model: z
|
|
330
|
-
name: z
|
|
331
|
-
charsPointsPrice: z
|
|
332
|
-
inputPrice: z
|
|
333
|
-
outputPrice: z
|
|
334
|
-
}, z
|
|
335
|
-
type: z
|
|
336
|
-
voices: z
|
|
337
|
-
label: z
|
|
338
|
-
value: z
|
|
339
|
-
}, z
|
|
340
|
-
provider: z
|
|
341
|
-
model: z
|
|
342
|
-
name: z
|
|
343
|
-
charsPointsPrice: z
|
|
344
|
-
inputPrice: z
|
|
345
|
-
outputPrice: z
|
|
346
|
-
}, z
|
|
347
|
-
type: z
|
|
348
|
-
provider: z
|
|
349
|
-
model: z
|
|
350
|
-
name: z
|
|
351
|
-
charsPointsPrice: z
|
|
352
|
-
inputPrice: z
|
|
353
|
-
outputPrice: z
|
|
354
|
-
}, z
|
|
355
|
-
declare const ModelProviderItemDTOSchema: z
|
|
356
|
-
provider: z
|
|
357
|
-
value: z
|
|
358
|
-
en: z
|
|
359
|
-
"zh-CN": z
|
|
360
|
-
"zh-Hant": z
|
|
361
|
-
}, z
|
|
362
|
-
avatar: z
|
|
363
|
-
}, z
|
|
364
|
-
declare const AIProxyChannelItemDTOSchema: z
|
|
365
|
-
channelId: z
|
|
366
|
-
name: z
|
|
367
|
-
en: z
|
|
368
|
-
"zh-CN": z
|
|
369
|
-
"zh-Hant": z
|
|
370
|
-
}, z
|
|
371
|
-
avatar: z
|
|
372
|
-
}, z
|
|
373
|
-
declare const ModelProviderListDTOSchema: z
|
|
374
|
-
modelProviders: z
|
|
375
|
-
provider: z
|
|
376
|
-
value: z
|
|
377
|
-
en: z
|
|
378
|
-
"zh-CN": z
|
|
379
|
-
"zh-Hant": z
|
|
380
|
-
}, z
|
|
381
|
-
avatar: z
|
|
382
|
-
}, z
|
|
383
|
-
aiproxyChannels: z
|
|
384
|
-
channelId: z
|
|
385
|
-
name: z
|
|
386
|
-
en: z
|
|
387
|
-
"zh-CN": z
|
|
388
|
-
"zh-Hant": z
|
|
389
|
-
}, z
|
|
390
|
-
avatar: z
|
|
391
|
-
}, z
|
|
392
|
-
}, z
|
|
393
|
-
type ModelListDTOType = z
|
|
394
|
-
type ModelProviderItemDTOType = z
|
|
395
|
-
type AIProxyChannelItemDTOType = z
|
|
396
|
-
type ModelProviderListDTOType = z
|
|
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>;
|
|
397
120
|
//#endregion
|
|
398
121
|
//#region ../../packages/interface-adapter/src/contracts/dto/plugin.dto.d.ts
|
|
399
|
-
declare const PluginBaseDTOSchema: z
|
|
400
|
-
pluginId: z
|
|
401
|
-
version: z
|
|
402
|
-
etag: z
|
|
403
|
-
type: z
|
|
404
|
-
author: z
|
|
405
|
-
name: z
|
|
406
|
-
en: z
|
|
407
|
-
"zh-CN": z
|
|
408
|
-
"zh-Hant": z
|
|
409
|
-
}, z
|
|
410
|
-
icon: z
|
|
411
|
-
tutorialUrl: z
|
|
412
|
-
readmeUrl: z
|
|
413
|
-
repoUrl: z
|
|
414
|
-
permission: z
|
|
415
|
-
description: z
|
|
416
|
-
en: z
|
|
417
|
-
"zh-CN": z
|
|
418
|
-
"zh-Hant": z
|
|
419
|
-
}, z
|
|
420
|
-
tags: z
|
|
421
|
-
versionDescription: z
|
|
422
|
-
en: z
|
|
423
|
-
"zh-CN": z
|
|
424
|
-
"zh-Hant": z
|
|
425
|
-
}, z
|
|
426
|
-
}, z
|
|
427
|
-
declare const PluginListItemDTOSchema: z
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
"zh-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
description: z
|
|
435
|
-
en: z
|
|
436
|
-
"zh-CN": z
|
|
437
|
-
"zh-Hant": z
|
|
438
|
-
}, z
|
|
439
|
-
pluginId: z
|
|
440
|
-
version: z
|
|
441
|
-
etag: z
|
|
442
|
-
author: z
|
|
443
|
-
repoUrl: z
|
|
444
|
-
icon: z
|
|
445
|
-
tutorialUrl: z
|
|
446
|
-
readmeUrl: z
|
|
447
|
-
tags: z
|
|
448
|
-
source: z
|
|
449
|
-
}, z
|
|
450
|
-
declare const PluginListDTOSchema: z
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
"zh-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
description: z
|
|
458
|
-
en: z
|
|
459
|
-
"zh-CN": z
|
|
460
|
-
"zh-Hant": z
|
|
461
|
-
}, z
|
|
462
|
-
pluginId: z
|
|
463
|
-
version: z
|
|
464
|
-
etag: z
|
|
465
|
-
author: z
|
|
466
|
-
repoUrl: z
|
|
467
|
-
icon: z
|
|
468
|
-
tutorialUrl: z
|
|
469
|
-
readmeUrl: z
|
|
470
|
-
tags: z
|
|
471
|
-
source: z
|
|
472
|
-
}, z
|
|
473
|
-
declare const PluginUploadFailureDTOSchema: z
|
|
474
|
-
fileName: z
|
|
475
|
-
reason: z
|
|
476
|
-
en: z
|
|
477
|
-
"zh-CN": z
|
|
478
|
-
"zh-Hant": z
|
|
479
|
-
}, z
|
|
480
|
-
}, z
|
|
481
|
-
declare const PluginUploadResponseDTOSchema: z
|
|
482
|
-
plugins: z
|
|
483
|
-
pluginId: z
|
|
484
|
-
version: z
|
|
485
|
-
etag: z
|
|
486
|
-
type: z
|
|
487
|
-
author: z
|
|
488
|
-
name: z
|
|
489
|
-
en: z
|
|
490
|
-
"zh-CN": z
|
|
491
|
-
"zh-Hant": z
|
|
492
|
-
}, z
|
|
493
|
-
icon: z
|
|
494
|
-
tutorialUrl: z
|
|
495
|
-
readmeUrl: z
|
|
496
|
-
repoUrl: z
|
|
497
|
-
permission: z
|
|
498
|
-
description: z
|
|
499
|
-
en: z
|
|
500
|
-
"zh-CN": z
|
|
501
|
-
"zh-Hant": z
|
|
502
|
-
}, z
|
|
503
|
-
tags: z
|
|
504
|
-
versionDescription: z
|
|
505
|
-
en: z
|
|
506
|
-
"zh-CN": z
|
|
507
|
-
"zh-Hant": z
|
|
508
|
-
}, z
|
|
509
|
-
}, z
|
|
510
|
-
failed: z
|
|
511
|
-
fileName: z
|
|
512
|
-
reason: z
|
|
513
|
-
en: z
|
|
514
|
-
"zh-CN": z
|
|
515
|
-
"zh-Hant": z
|
|
516
|
-
}, z
|
|
517
|
-
}, z
|
|
518
|
-
}, z
|
|
519
|
-
declare const PluginPruneDisabledResponseDTOSchema: z
|
|
520
|
-
count: z
|
|
521
|
-
plugins: z
|
|
522
|
-
pluginId: z
|
|
523
|
-
version: z
|
|
524
|
-
etag: z
|
|
525
|
-
}, z
|
|
526
|
-
}, z
|
|
527
|
-
declare const PluginInstallFailureDTOSchema: z
|
|
528
|
-
url: z
|
|
529
|
-
reason: z
|
|
530
|
-
en: z
|
|
531
|
-
"zh-CN": z
|
|
532
|
-
"zh-Hant": z
|
|
533
|
-
}, z
|
|
534
|
-
}, z
|
|
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>;
|
|
535
258
|
declare const PluginInstallDTOSchema: {
|
|
536
|
-
request: z
|
|
537
|
-
urls: z
|
|
538
|
-
}, z
|
|
539
|
-
response: z
|
|
540
|
-
failed: z
|
|
541
|
-
url: z
|
|
542
|
-
reason: z
|
|
543
|
-
en: z
|
|
544
|
-
"zh-CN": z
|
|
545
|
-
"zh-Hant": z
|
|
546
|
-
}, z
|
|
547
|
-
}, z
|
|
548
|
-
}, z
|
|
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>;
|
|
549
272
|
};
|
|
550
|
-
declare const PluginListParamsSchema: z
|
|
551
|
-
types: z
|
|
273
|
+
declare const PluginListParamsSchema: z.ZodObject<{
|
|
274
|
+
types: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
552
275
|
tool: "tool";
|
|
553
276
|
}>>>>;
|
|
554
|
-
tags: z
|
|
277
|
+
tags: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
555
278
|
search: "search";
|
|
556
279
|
tools: "tools";
|
|
557
280
|
multimodal: "multimodal";
|
|
@@ -565,112 +288,218 @@ declare const PluginListParamsSchema: z$2.ZodObject<{
|
|
|
565
288
|
scientific: "scientific";
|
|
566
289
|
other: "other";
|
|
567
290
|
}>>>>;
|
|
568
|
-
op: z
|
|
291
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
569
292
|
or: "or";
|
|
570
293
|
and: "and";
|
|
571
294
|
}>>;
|
|
572
|
-
sources: z
|
|
573
|
-
}, z
|
|
574
|
-
declare const PluginVersionItemDTOSchema: z
|
|
575
|
-
version: z
|
|
576
|
-
versionDescription: z
|
|
577
|
-
en: z
|
|
578
|
-
"zh-CN": z
|
|
579
|
-
"zh-Hant": z
|
|
580
|
-
}, z
|
|
581
|
-
}, z
|
|
582
|
-
declare const PluginVersionListDTOSchema: z
|
|
583
|
-
version: z
|
|
584
|
-
versionDescription: z
|
|
585
|
-
en: z
|
|
586
|
-
"zh-CN": z
|
|
587
|
-
"zh-Hant": z
|
|
588
|
-
}, z
|
|
589
|
-
}, z
|
|
590
|
-
declare const PluginVersionListParamsSchema: z
|
|
591
|
-
pluginId: z
|
|
592
|
-
source: z
|
|
593
|
-
}, z
|
|
594
|
-
declare const PluginRuntimeConfigSchema: z
|
|
595
|
-
minPods: z
|
|
596
|
-
maxPods: z
|
|
597
|
-
podTimeout: z
|
|
598
|
-
maxConcurrentRequestsPerPod: z
|
|
599
|
-
}, z
|
|
600
|
-
type PluginDTOType = z
|
|
601
|
-
type PluginUploadFailureDTOType = z
|
|
602
|
-
type PluginUploadResponseDTOType = z
|
|
603
|
-
type PluginListDTOType = z
|
|
604
|
-
type PluginListItemDTOType = z
|
|
605
|
-
type PluginPruneDisabledResponseDTOType = z
|
|
606
|
-
type PluginInstallFailureDTOType = z
|
|
607
|
-
type PluginInstallResponseDTOType = z
|
|
608
|
-
type PluginListParamsDTOType = z
|
|
609
|
-
type PluginVersionItemDTOType = z
|
|
610
|
-
type PluginVersionListDTOType = z
|
|
611
|
-
type PluginVersionListParamsDTOType = z
|
|
612
|
-
type PluginRuntimeConfigDTOType = z
|
|
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
|
+
fastgptBaseUrl: z$1.ZodString;
|
|
372
|
+
expiresAt: z$1.ZodNumber;
|
|
373
|
+
}, z$1.core.$strip>;
|
|
374
|
+
declare const PluginDebugSessionGetParamsDTOSchema: z$1.ZodObject<{
|
|
375
|
+
tmbId: z$1.ZodString;
|
|
376
|
+
}, z$1.core.$strip>;
|
|
377
|
+
declare const PluginDebugSessionStatusResponseDTOSchema: z$1.ZodObject<{
|
|
378
|
+
tmbId: z$1.ZodString;
|
|
379
|
+
source: z$1.ZodString;
|
|
380
|
+
status: z$1.ZodEnum<{
|
|
381
|
+
enabled: "enabled";
|
|
382
|
+
connected: "connected";
|
|
383
|
+
disconnected: "disconnected";
|
|
384
|
+
revoked: "revoked";
|
|
385
|
+
}>;
|
|
386
|
+
enabled: z$1.ZodBoolean;
|
|
387
|
+
keyId: z$1.ZodOptional<z$1.ZodString>;
|
|
388
|
+
plugins: z$1.ZodArray<z$1.ZodObject<{
|
|
389
|
+
type: z$1.ZodString;
|
|
390
|
+
name: z$1.ZodObject<{
|
|
391
|
+
en: z$1.ZodString;
|
|
392
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
393
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
394
|
+
}, z$1.core.$strip>;
|
|
395
|
+
description: z$1.ZodOptional<z$1.ZodObject<{
|
|
396
|
+
en: z$1.ZodString;
|
|
397
|
+
"zh-CN": z$1.ZodOptional<z$1.ZodString>;
|
|
398
|
+
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
399
|
+
}, z$1.core.$strip>>;
|
|
400
|
+
pluginId: z$1.ZodString;
|
|
401
|
+
version: z$1.ZodString;
|
|
402
|
+
etag: z$1.ZodString;
|
|
403
|
+
author: z$1.ZodOptional<z$1.ZodString>;
|
|
404
|
+
repoUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
405
|
+
icon: z$1.ZodString;
|
|
406
|
+
tutorialUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
407
|
+
readmeUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
408
|
+
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
409
|
+
source: z$1.ZodString;
|
|
410
|
+
}, z$1.core.$strip>>;
|
|
411
|
+
gateway: z$1.ZodOptional<z$1.ZodObject<{
|
|
412
|
+
sessionId: z$1.ZodOptional<z$1.ZodString>;
|
|
413
|
+
ownerAlive: z$1.ZodBoolean;
|
|
414
|
+
mailboxLag: z$1.ZodNumber;
|
|
415
|
+
}, z$1.core.$strip>>;
|
|
416
|
+
createdAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
417
|
+
updatedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
418
|
+
refreshedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
419
|
+
revokedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
420
|
+
}, z$1.core.$strip>;
|
|
421
|
+
declare const PluginDebugSessionRevokeRequestDTOSchema: z$1.ZodObject<{
|
|
422
|
+
tmbId: z$1.ZodString;
|
|
423
|
+
reason: z$1.ZodOptional<z$1.ZodString>;
|
|
424
|
+
}, z$1.core.$strip>;
|
|
425
|
+
declare const PluginDebugSessionRevokeResponseDTOSchema: z$1.ZodObject<{
|
|
426
|
+
revoked: z$1.ZodBoolean;
|
|
427
|
+
}, z$1.core.$strip>;
|
|
428
|
+
type PluginDebugSessionCreateRequestDTO = z$1.infer<typeof PluginDebugSessionCreateRequestDTOSchema>;
|
|
429
|
+
type PluginDebugSessionCreateResponseDTO = z$1.infer<typeof PluginDebugSessionCreateResponseDTOSchema>;
|
|
430
|
+
type PluginDebugSessionConnectionKeyExchangeRequestDTO = z$1.infer<typeof PluginDebugSessionConnectionKeyExchangeRequestDTOSchema>;
|
|
431
|
+
type PluginDebugSessionConnectionKeyExchangeResponseDTO = z$1.infer<typeof PluginDebugSessionConnectionKeyExchangeResponseDTOSchema>;
|
|
432
|
+
type PluginDebugSessionGetParamsDTO = z$1.infer<typeof PluginDebugSessionGetParamsDTOSchema>;
|
|
433
|
+
type PluginDebugSessionStatusResponseDTO = z$1.infer<typeof PluginDebugSessionStatusResponseDTOSchema>;
|
|
434
|
+
type PluginDebugSessionRevokeRequestDTO = z$1.infer<typeof PluginDebugSessionRevokeRequestDTOSchema>;
|
|
435
|
+
type PluginDebugSessionRevokeResponseDTO = z$1.infer<typeof PluginDebugSessionRevokeResponseDTOSchema>;
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/plugin-service-feature.dto.d.ts
|
|
438
|
+
declare const PluginServiceFeaturesDTOSchema: z$1.ZodObject<{
|
|
439
|
+
remoteDebug: z$1.ZodBoolean;
|
|
440
|
+
}, z$1.core.$strip>;
|
|
441
|
+
type PluginServiceFeaturesDTO = z$1.infer<typeof PluginServiceFeaturesDTOSchema>;
|
|
613
442
|
//#endregion
|
|
614
443
|
//#region ../../packages/interface-adapter/src/contracts/dto/tool.dto.d.ts
|
|
615
|
-
declare const ToolRunInputDTOSchema: z
|
|
616
|
-
pluginId: z
|
|
617
|
-
version: z
|
|
618
|
-
source: z
|
|
619
|
-
secrets: z
|
|
620
|
-
systemVar: z
|
|
621
|
-
app: z
|
|
622
|
-
id: z
|
|
623
|
-
name: z
|
|
624
|
-
}, z
|
|
625
|
-
chat: z
|
|
626
|
-
chatId: z
|
|
627
|
-
uid: z
|
|
628
|
-
}, z
|
|
629
|
-
invokeToken: z
|
|
630
|
-
time: z
|
|
631
|
-
}, z
|
|
632
|
-
input: z
|
|
633
|
-
childId: z
|
|
634
|
-
}, z
|
|
635
|
-
type ToolRunInputDTOType = z
|
|
636
|
-
declare const ToolListItemDTOSchema: z
|
|
637
|
-
children: z
|
|
638
|
-
id: z
|
|
639
|
-
name: z
|
|
640
|
-
en: z
|
|
641
|
-
"zh-CN": z
|
|
642
|
-
"zh-Hant": z
|
|
643
|
-
}, z
|
|
644
|
-
description: z
|
|
645
|
-
en: z
|
|
646
|
-
"zh-CN": z
|
|
647
|
-
"zh-Hant": z
|
|
648
|
-
}, z
|
|
649
|
-
toolDescription: z
|
|
650
|
-
}, z
|
|
651
|
-
source: z
|
|
652
|
-
isToolset: z
|
|
653
|
-
hasSecret: z
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
"zh-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
description: z
|
|
661
|
-
en: z
|
|
662
|
-
"zh-CN": z
|
|
663
|
-
"zh-Hant": z
|
|
664
|
-
}, z
|
|
665
|
-
pluginId: z
|
|
666
|
-
version: z
|
|
667
|
-
etag: z
|
|
668
|
-
author: z
|
|
669
|
-
repoUrl: z
|
|
670
|
-
icon: z
|
|
671
|
-
tutorialUrl: z
|
|
672
|
-
readmeUrl: z
|
|
673
|
-
tags: z
|
|
444
|
+
declare const ToolRunInputDTOSchema: z.ZodObject<{
|
|
445
|
+
pluginId: z.ZodString;
|
|
446
|
+
version: z.ZodOptional<z.ZodString>;
|
|
447
|
+
source: z.ZodOptional<z.ZodString>;
|
|
448
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
449
|
+
systemVar: z.ZodObject<{
|
|
450
|
+
app: z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
name: z.ZodString;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
chat: z.ZodObject<{
|
|
455
|
+
chatId: z.ZodString;
|
|
456
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, z.core.$strip>;
|
|
458
|
+
invokeToken: z.ZodString;
|
|
459
|
+
time: z.ZodString;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
462
|
+
childId: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
type ToolRunInputDTOType = z.infer<typeof ToolRunInputDTOSchema>;
|
|
465
|
+
declare const ToolListItemDTOSchema: z.ZodObject<{
|
|
466
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
467
|
+
id: z.ZodString;
|
|
468
|
+
name: z.ZodObject<{
|
|
469
|
+
en: z.ZodString;
|
|
470
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
471
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
en: z.ZodString;
|
|
475
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
476
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
477
|
+
}, z.core.$strip>>;
|
|
478
|
+
toolDescription: z.ZodString;
|
|
479
|
+
}, z.core.$strip>>>;
|
|
480
|
+
source: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodString]>;
|
|
481
|
+
isToolset: z.ZodBoolean;
|
|
482
|
+
hasSecret: z.ZodBoolean;
|
|
483
|
+
type: z.ZodLiteral<"tool">;
|
|
484
|
+
name: z.ZodObject<{
|
|
485
|
+
en: z.ZodString;
|
|
486
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
487
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
488
|
+
}, z.core.$strip>;
|
|
489
|
+
description: z.ZodObject<{
|
|
490
|
+
en: z.ZodString;
|
|
491
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
492
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
pluginId: z.ZodString;
|
|
495
|
+
version: z.ZodString;
|
|
496
|
+
etag: z.ZodString;
|
|
497
|
+
author: z.ZodOptional<z.ZodString>;
|
|
498
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
499
|
+
icon: z.ZodString;
|
|
500
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
501
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
502
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
674
503
|
search: "search";
|
|
675
504
|
tools: "tools";
|
|
676
505
|
multimodal: "multimodal";
|
|
@@ -684,47 +513,47 @@ declare const ToolListItemDTOSchema: z$2.ZodObject<{
|
|
|
684
513
|
scientific: "scientific";
|
|
685
514
|
other: "other";
|
|
686
515
|
}>>>;
|
|
687
|
-
toolDescription: z
|
|
688
|
-
}, z
|
|
689
|
-
type ToolListItemDTOType = z
|
|
690
|
-
declare const ToolListDTOSchema: z
|
|
691
|
-
children: z
|
|
692
|
-
id: z
|
|
693
|
-
name: z
|
|
694
|
-
en: z
|
|
695
|
-
"zh-CN": z
|
|
696
|
-
"zh-Hant": z
|
|
697
|
-
}, z
|
|
698
|
-
description: z
|
|
699
|
-
en: z
|
|
700
|
-
"zh-CN": z
|
|
701
|
-
"zh-Hant": z
|
|
702
|
-
}, z
|
|
703
|
-
toolDescription: z
|
|
704
|
-
}, z
|
|
705
|
-
source: z
|
|
706
|
-
isToolset: z
|
|
707
|
-
hasSecret: z
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
"zh-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
description: z
|
|
715
|
-
en: z
|
|
716
|
-
"zh-CN": z
|
|
717
|
-
"zh-Hant": z
|
|
718
|
-
}, z
|
|
719
|
-
pluginId: z
|
|
720
|
-
version: z
|
|
721
|
-
etag: z
|
|
722
|
-
author: z
|
|
723
|
-
repoUrl: z
|
|
724
|
-
icon: z
|
|
725
|
-
tutorialUrl: z
|
|
726
|
-
readmeUrl: z
|
|
727
|
-
tags: z
|
|
516
|
+
toolDescription: z.ZodString;
|
|
517
|
+
}, z.core.$strip>;
|
|
518
|
+
type ToolListItemDTOType = z.infer<typeof ToolListItemDTOSchema>;
|
|
519
|
+
declare const ToolListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
520
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
521
|
+
id: z.ZodString;
|
|
522
|
+
name: z.ZodObject<{
|
|
523
|
+
en: z.ZodString;
|
|
524
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
525
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
526
|
+
}, z.core.$strip>;
|
|
527
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
528
|
+
en: z.ZodString;
|
|
529
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
530
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
toolDescription: z.ZodString;
|
|
533
|
+
}, z.core.$strip>>>;
|
|
534
|
+
source: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodString]>;
|
|
535
|
+
isToolset: z.ZodBoolean;
|
|
536
|
+
hasSecret: z.ZodBoolean;
|
|
537
|
+
type: z.ZodLiteral<"tool">;
|
|
538
|
+
name: z.ZodObject<{
|
|
539
|
+
en: z.ZodString;
|
|
540
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
541
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
description: z.ZodObject<{
|
|
544
|
+
en: z.ZodString;
|
|
545
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
546
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
pluginId: z.ZodString;
|
|
549
|
+
version: z.ZodString;
|
|
550
|
+
etag: z.ZodString;
|
|
551
|
+
author: z.ZodOptional<z.ZodString>;
|
|
552
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
553
|
+
icon: z.ZodString;
|
|
554
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
555
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
556
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
728
557
|
search: "search";
|
|
729
558
|
tools: "tools";
|
|
730
559
|
multimodal: "multimodal";
|
|
@@ -738,54 +567,54 @@ declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
|
738
567
|
scientific: "scientific";
|
|
739
568
|
other: "other";
|
|
740
569
|
}>>>;
|
|
741
|
-
toolDescription: z
|
|
742
|
-
}, z
|
|
743
|
-
type ToolListDTOType = z
|
|
744
|
-
declare const ToolDetailDTOSchema: z
|
|
745
|
-
source: z
|
|
746
|
-
isLatestVersion: z
|
|
747
|
-
isToolset: z
|
|
748
|
-
type: z
|
|
749
|
-
toolDescription: z
|
|
750
|
-
inputSchema: z
|
|
751
|
-
outputSchema: z
|
|
752
|
-
secretSchema: z
|
|
753
|
-
children: z
|
|
754
|
-
id: z
|
|
755
|
-
name: z
|
|
756
|
-
en: z
|
|
757
|
-
"zh-CN": z
|
|
758
|
-
"zh-Hant": z
|
|
759
|
-
}, z
|
|
760
|
-
description: z
|
|
761
|
-
en: z
|
|
762
|
-
"zh-CN": z
|
|
763
|
-
"zh-Hant": z
|
|
764
|
-
}, z
|
|
765
|
-
icon: z
|
|
766
|
-
toolDescription: z
|
|
767
|
-
inputSchema: z
|
|
768
|
-
outputSchema: z
|
|
769
|
-
}, z
|
|
770
|
-
pluginId: z
|
|
771
|
-
version: z
|
|
772
|
-
etag: z
|
|
773
|
-
author: z
|
|
774
|
-
repoUrl: z
|
|
775
|
-
name: z
|
|
776
|
-
en: z
|
|
777
|
-
"zh-CN": z
|
|
778
|
-
"zh-Hant": z
|
|
779
|
-
}, z
|
|
780
|
-
icon: z
|
|
781
|
-
tutorialUrl: z
|
|
782
|
-
readmeUrl: z
|
|
783
|
-
description: z
|
|
784
|
-
en: z
|
|
785
|
-
"zh-CN": z
|
|
786
|
-
"zh-Hant": z
|
|
787
|
-
}, z
|
|
788
|
-
tags: z
|
|
570
|
+
toolDescription: z.ZodString;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
type ToolListDTOType = z.infer<typeof ToolListDTOSchema>;
|
|
573
|
+
declare const ToolDetailDTOSchema: z.ZodObject<{
|
|
574
|
+
source: z.ZodUnion<[z.ZodLiteral<"system">, z.ZodString]>;
|
|
575
|
+
isLatestVersion: z.ZodBoolean;
|
|
576
|
+
isToolset: z.ZodBoolean;
|
|
577
|
+
type: z.ZodLiteral<"tool">;
|
|
578
|
+
toolDescription: z.ZodString;
|
|
579
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
580
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
581
|
+
secretSchema: z.ZodOptional<z.ZodAny>;
|
|
582
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
583
|
+
id: z.ZodString;
|
|
584
|
+
name: z.ZodObject<{
|
|
585
|
+
en: z.ZodString;
|
|
586
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
587
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
588
|
+
}, z.core.$strip>;
|
|
589
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
590
|
+
en: z.ZodString;
|
|
591
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
592
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>>;
|
|
594
|
+
icon: z.ZodString;
|
|
595
|
+
toolDescription: z.ZodString;
|
|
596
|
+
inputSchema: z.ZodAny;
|
|
597
|
+
outputSchema: z.ZodAny;
|
|
598
|
+
}, z.core.$strip>>>;
|
|
599
|
+
pluginId: z.ZodString;
|
|
600
|
+
version: z.ZodString;
|
|
601
|
+
etag: z.ZodString;
|
|
602
|
+
author: z.ZodOptional<z.ZodString>;
|
|
603
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
604
|
+
name: z.ZodObject<{
|
|
605
|
+
en: z.ZodString;
|
|
606
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
607
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
icon: z.ZodString;
|
|
610
|
+
tutorialUrl: z.ZodOptional<z.ZodURL>;
|
|
611
|
+
readmeUrl: z.ZodOptional<z.ZodURL>;
|
|
612
|
+
description: z.ZodObject<{
|
|
613
|
+
en: z.ZodString;
|
|
614
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
615
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
616
|
+
}, z.core.$strip>;
|
|
617
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
789
618
|
search: "search";
|
|
790
619
|
tools: "tools";
|
|
791
620
|
multimodal: "multimodal";
|
|
@@ -799,29 +628,29 @@ declare const ToolDetailDTOSchema: z$2.ZodObject<{
|
|
|
799
628
|
scientific: "scientific";
|
|
800
629
|
other: "other";
|
|
801
630
|
}>>>;
|
|
802
|
-
versionDescription: z
|
|
803
|
-
en: z
|
|
804
|
-
"zh-CN": z
|
|
805
|
-
"zh-Hant": z
|
|
806
|
-
}, z
|
|
807
|
-
permission: z
|
|
631
|
+
versionDescription: z.ZodOptional<z.ZodObject<{
|
|
632
|
+
en: z.ZodString;
|
|
633
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
634
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
635
|
+
}, z.core.$strip>>;
|
|
636
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
808
637
|
"userInfo:read": "userInfo:read";
|
|
809
638
|
"teamInfo:read": "teamInfo:read";
|
|
810
639
|
"model:read": "model:read";
|
|
811
640
|
"dataset:read": "dataset:read";
|
|
812
641
|
"file-upload:allow": "file-upload:allow";
|
|
813
642
|
}>>>;
|
|
814
|
-
}, z
|
|
815
|
-
type ToolDetailDTOType = z
|
|
816
|
-
declare const ToolGetParamsDTOSchema: z
|
|
817
|
-
pluginId: z
|
|
818
|
-
version: z
|
|
819
|
-
source: z
|
|
820
|
-
fallbackLatestVersion: z
|
|
821
|
-
}, z
|
|
822
|
-
type ToolGetParamsDTOType = z
|
|
823
|
-
declare const ToolListParamsDTOSchema: z
|
|
824
|
-
tags: z
|
|
643
|
+
}, z.core.$strip>;
|
|
644
|
+
type ToolDetailDTOType = z.infer<typeof ToolDetailDTOSchema>;
|
|
645
|
+
declare const ToolGetParamsDTOSchema: z.ZodObject<{
|
|
646
|
+
pluginId: z.ZodString;
|
|
647
|
+
version: z.ZodOptional<z.ZodString>;
|
|
648
|
+
source: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
649
|
+
fallbackLatestVersion: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
650
|
+
}, z.core.$strip>;
|
|
651
|
+
type ToolGetParamsDTOType = z.infer<typeof ToolGetParamsDTOSchema>;
|
|
652
|
+
declare const ToolListParamsDTOSchema: z.ZodObject<{
|
|
653
|
+
tags: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
825
654
|
search: "search";
|
|
826
655
|
tools: "tools";
|
|
827
656
|
multimodal: "multimodal";
|
|
@@ -835,55 +664,61 @@ declare const ToolListParamsDTOSchema: z$2.ZodObject<{
|
|
|
835
664
|
scientific: "scientific";
|
|
836
665
|
other: "other";
|
|
837
666
|
}>>>>;
|
|
838
|
-
op: z
|
|
667
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
839
668
|
or: "or";
|
|
840
669
|
and: "and";
|
|
841
670
|
}>>;
|
|
842
|
-
sources: z
|
|
843
|
-
}, z
|
|
844
|
-
type ToolListParamsDTOType = z
|
|
671
|
+
sources: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
672
|
+
}, z.core.$strip>;
|
|
673
|
+
type ToolListParamsDTOType = z.infer<typeof ToolListParamsDTOSchema>;
|
|
845
674
|
//#endregion
|
|
846
675
|
//#region ../../packages/interface-adapter/src/contracts/dto/workflow.dto.d.ts
|
|
847
|
-
declare const WorkflowTemplateDTOSchema: z
|
|
848
|
-
templateId: z
|
|
849
|
-
name: z
|
|
850
|
-
intro: z
|
|
851
|
-
avatar: z
|
|
852
|
-
tags: z
|
|
853
|
-
type: z
|
|
854
|
-
author: z
|
|
855
|
-
isActive: z
|
|
856
|
-
userGuide: z
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
676
|
+
declare const WorkflowTemplateDTOSchema: z.ZodObject<{
|
|
677
|
+
templateId: z.ZodString;
|
|
678
|
+
name: z.ZodString;
|
|
679
|
+
intro: z.ZodString;
|
|
680
|
+
avatar: z.ZodString;
|
|
681
|
+
tags: z.ZodArray<z.ZodString>;
|
|
682
|
+
type: z.ZodString;
|
|
683
|
+
author: z.ZodOptional<z.ZodString>;
|
|
684
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
685
|
+
userGuide: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
686
|
+
type: z.ZodString;
|
|
687
|
+
content: z.ZodString;
|
|
688
|
+
}, z.core.$strip>]>>;
|
|
689
|
+
isQuickTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
690
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
691
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
692
|
+
workflow: z.ZodObject<{
|
|
693
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
694
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
695
|
+
chatConfig: z.ZodOptional<z.ZodAny>;
|
|
696
|
+
}, z.core.$strip>;
|
|
697
|
+
}, z.core.$strip>;
|
|
698
|
+
declare const WorkflowListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
699
|
+
templateId: z.ZodString;
|
|
700
|
+
name: z.ZodString;
|
|
701
|
+
intro: z.ZodString;
|
|
702
|
+
avatar: z.ZodString;
|
|
703
|
+
tags: z.ZodArray<z.ZodString>;
|
|
704
|
+
type: z.ZodString;
|
|
705
|
+
author: z.ZodOptional<z.ZodString>;
|
|
706
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
707
|
+
userGuide: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
708
|
+
type: z.ZodString;
|
|
709
|
+
content: z.ZodString;
|
|
710
|
+
}, z.core.$strip>]>>;
|
|
711
|
+
isQuickTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
714
|
+
workflow: z.ZodObject<{
|
|
715
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
716
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
717
|
+
chatConfig: z.ZodOptional<z.ZodAny>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
}, z.core.$strip>>;
|
|
720
|
+
type WorkflowTemplateDTOType = z.infer<typeof WorkflowTemplateDTOSchema>;
|
|
721
|
+
type WorkflowListDTOType = z.infer<typeof WorkflowListDTOSchema>;
|
|
887
722
|
//#endregion
|
|
888
723
|
//#region ../../packages/domain/src/entities/model.entity.d.ts
|
|
889
724
|
declare const LLMModelItemSchema: z$1.ZodObject<{
|
|
@@ -1256,6 +1091,16 @@ type PluginRuntimeConfigType = PluginRuntimeConfigDTOType;
|
|
|
1256
1091
|
type PluginVersionItemType = PluginVersionItemDTOType;
|
|
1257
1092
|
type PluginVersionListType = PluginVersionListDTOType;
|
|
1258
1093
|
type PluginVersionListParamsType = PluginVersionListParamsDTOType;
|
|
1094
|
+
type PluginDebugSessionStatusType = PluginDebugSessionStatusDTO;
|
|
1095
|
+
type PluginDebugSessionCreateParamsType = PluginDebugSessionCreateRequestDTO;
|
|
1096
|
+
type PluginDebugSessionCreateResultType = PluginDebugSessionCreateResponseDTO;
|
|
1097
|
+
type PluginDebugSessionConnectionKeyExchangeParamsType = PluginDebugSessionConnectionKeyExchangeRequestDTO;
|
|
1098
|
+
type PluginDebugSessionConnectionKeyExchangeResultType = PluginDebugSessionConnectionKeyExchangeResponseDTO;
|
|
1099
|
+
type PluginDebugSessionStatusParamsType = PluginDebugSessionGetParamsDTO;
|
|
1100
|
+
type PluginDebugSessionStatusResultType = PluginDebugSessionStatusResponseDTO;
|
|
1101
|
+
type PluginDebugSessionRevokeParamsType = PluginDebugSessionRevokeRequestDTO;
|
|
1102
|
+
type PluginDebugSessionRevokeResultType = PluginDebugSessionRevokeResponseDTO;
|
|
1103
|
+
type PluginServiceFeaturesType = PluginServiceFeaturesDTO;
|
|
1259
1104
|
declare const pluginTagList: PluginTagListType;
|
|
1260
1105
|
type ModelListType = ModelListDTOType;
|
|
1261
1106
|
type WorkflowTemplateType = WorkflowTemplateDTOType;
|
|
@@ -1295,11 +1140,18 @@ declare class FastGPTPluginClient {
|
|
|
1295
1140
|
listPlugins(params?: PluginListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginListType>;
|
|
1296
1141
|
listPluginVersions(params: PluginVersionListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginVersionListType>;
|
|
1297
1142
|
listPluginTags(_requestOptions?: ClientRequestOptions): Promise<PluginTagListType>;
|
|
1143
|
+
getPluginServiceFeatures(requestOptions?: ClientRequestOptions): Promise<PluginServiceFeaturesType>;
|
|
1298
1144
|
getPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<PluginRuntimeConfigType>;
|
|
1299
1145
|
setPluginRuntimeConfig(pluginId: string, config: PluginRuntimeConfigType, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1300
1146
|
resetPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1147
|
+
createDebugSession(params: PluginDebugSessionCreateParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionCreateResultType>;
|
|
1148
|
+
refreshDebugSessionKey(params: PluginDebugSessionCreateParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionCreateResultType>;
|
|
1149
|
+
exchangeDebugSessionConnectionKey(params: PluginDebugSessionConnectionKeyExchangeParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionConnectionKeyExchangeResultType>;
|
|
1150
|
+
getDebugSessionStatus(params: PluginDebugSessionStatusParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionStatusResultType>;
|
|
1151
|
+
revokeDebugSession(params: PluginDebugSessionRevokeParamsType, requestOptions?: ClientRequestOptions): Promise<PluginDebugSessionRevokeResultType>;
|
|
1301
1152
|
runToolStream(params: RunToolStreamParams, requestOptions?: ClientRequestOptions): Promise<ToolHandlerReturnType>;
|
|
1302
1153
|
private withApiPath;
|
|
1154
|
+
private withTmbId;
|
|
1303
1155
|
}
|
|
1304
1156
|
//#endregion
|
|
1305
1157
|
//#region src/tool-stream.d.ts
|
|
@@ -1351,6 +1203,9 @@ type MIMEType = z$1.infer<typeof MIMESchema>;
|
|
|
1351
1203
|
type ResultFailure<E extends Error = Error> = {
|
|
1352
1204
|
reason: I18nStringType;
|
|
1353
1205
|
error: E;
|
|
1206
|
+
code?: string;
|
|
1207
|
+
message?: string;
|
|
1208
|
+
data?: unknown;
|
|
1354
1209
|
};
|
|
1355
1210
|
type Result<T = unknown, E extends Error = Error> = [T, null] | [null, ResultFailure<E>];
|
|
1356
1211
|
//#endregion
|
|
@@ -1392,5 +1247,5 @@ type AIProxyChannelsType = {
|
|
|
1392
1247
|
avatar: string;
|
|
1393
1248
|
}[];
|
|
1394
1249
|
//#endregion
|
|
1395
|
-
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 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 };
|
|
1250
|
+
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 PluginServiceFeaturesType, 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 };
|
|
1396
1251
|
//# sourceMappingURL=index.d.ts.map
|