@fastgpt-plugin/sdk-client 0.0.1-alpha.8 → 0.0.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/dist/index.d.ts CHANGED
@@ -1,556 +1,280 @@
1
- import z$1, { core, z, z as z$2 } from "zod";
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$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>;
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>;
396
120
  //#endregion
397
121
  //#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 PluginUploadFailureDTOSchema: z$2.ZodObject<{
473
- fileName: z$2.ZodOptional<z$2.ZodString>;
474
- reason: z$2.ZodObject<{
475
- en: z$2.ZodString;
476
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
477
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
478
- }, z$2.core.$strip>;
479
- }, z$2.core.$strip>;
480
- declare const PluginUploadResponseDTOSchema: z$2.ZodObject<{
481
- plugins: z$2.ZodArray<z$2.ZodObject<{
482
- pluginId: z$2.ZodString;
483
- version: z$2.ZodString;
484
- etag: z$2.ZodString;
485
- type: z$2.ZodString;
486
- author: z$2.ZodOptional<z$2.ZodString>;
487
- name: z$2.ZodObject<{
488
- en: z$2.ZodString;
489
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
490
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
491
- }, z$2.core.$strip>;
492
- icon: z$2.ZodString;
493
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
494
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
495
- repoUrl: z$2.ZodOptional<z$2.ZodURL>;
496
- permission: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
497
- description: z$2.ZodOptional<z$2.ZodObject<{
498
- en: z$2.ZodString;
499
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
500
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
501
- }, z$2.core.$strip>>;
502
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
503
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
504
- en: z$2.ZodString;
505
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
506
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
507
- }, z$2.core.$strip>>;
508
- }, z$2.core.$strip>>;
509
- failed: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
510
- fileName: z$2.ZodOptional<z$2.ZodString>;
511
- reason: z$2.ZodObject<{
512
- en: z$2.ZodString;
513
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
514
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
515
- }, z$2.core.$strip>;
516
- }, z$2.core.$strip>>>;
517
- }, z$2.core.$strip>;
518
- declare const PluginPruneDisabledResponseDTOSchema: z$2.ZodObject<{
519
- count: z$2.ZodNumber;
520
- plugins: z$2.ZodArray<z$2.ZodObject<{
521
- pluginId: z$2.ZodString;
522
- version: z$2.ZodString;
523
- etag: z$2.ZodString;
524
- }, z$2.core.$strip>>;
525
- }, z$2.core.$strip>;
526
- declare const PluginInstallFailureDTOSchema: z$2.ZodObject<{
527
- url: z$2.ZodString;
528
- reason: z$2.ZodObject<{
529
- en: z$2.ZodString;
530
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
531
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
532
- }, z$2.core.$strip>;
533
- }, z$2.core.$strip>;
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>;
534
258
  declare const PluginInstallDTOSchema: {
535
- request: z$2.ZodObject<{
536
- urls: z$2.ZodArray<z$2.ZodString>;
537
- }, z$2.core.$strip>;
538
- response: z$2.ZodObject<{
539
- failed: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
540
- url: z$2.ZodString;
541
- reason: z$2.ZodObject<{
542
- en: z$2.ZodString;
543
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
544
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
545
- }, z$2.core.$strip>;
546
- }, z$2.core.$strip>>>;
547
- }, z$2.core.$strip>;
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>;
548
272
  };
549
- declare const PluginListParamsSchema: z$2.ZodObject<{
550
- types: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
273
+ declare const PluginListParamsSchema: z.ZodObject<{
274
+ types: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
551
275
  tool: "tool";
552
276
  }>>>>;
553
- tags: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
277
+ tags: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
554
278
  search: "search";
555
279
  tools: "tools";
556
280
  multimodal: "multimodal";
@@ -564,112 +288,218 @@ declare const PluginListParamsSchema: z$2.ZodObject<{
564
288
  scientific: "scientific";
565
289
  other: "other";
566
290
  }>>>>;
567
- op: z$2.ZodOptional<z$2.ZodEnum<{
291
+ op: z.ZodOptional<z.ZodEnum<{
568
292
  or: "or";
569
293
  and: "and";
570
294
  }>>;
571
- 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]>>>>;
572
- }, z$2.core.$strip>;
573
- declare const PluginVersionItemDTOSchema: z$2.ZodObject<{
574
- version: z$2.ZodString;
575
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
576
- en: z$2.ZodString;
577
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
578
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
579
- }, z$2.core.$strip>>;
580
- }, z$2.core.$strip>;
581
- declare const PluginVersionListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
582
- version: z$2.ZodString;
583
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
584
- en: z$2.ZodString;
585
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
586
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
587
- }, z$2.core.$strip>>;
588
- }, z$2.core.$strip>>;
589
- declare const PluginVersionListParamsSchema: z$2.ZodObject<{
590
- pluginId: z$2.ZodString;
591
- source: z$2.ZodString;
592
- }, z$2.core.$strip>;
593
- declare const PluginRuntimeConfigSchema: z$2.ZodObject<{
594
- minPods: z$2.ZodNumber;
595
- maxPods: z$2.ZodNumber;
596
- podTimeout: z$2.ZodNumber;
597
- maxConcurrentRequestsPerPod: z$2.ZodNumber;
598
- }, z$2.core.$strict>;
599
- type PluginDTOType = z$2.infer<typeof PluginBaseDTOSchema>;
600
- type PluginUploadFailureDTOType = z$2.infer<typeof PluginUploadFailureDTOSchema>;
601
- type PluginUploadResponseDTOType = z$2.infer<typeof PluginUploadResponseDTOSchema>;
602
- type PluginListDTOType = z$2.infer<typeof PluginListDTOSchema>;
603
- type PluginListItemDTOType = z$2.infer<typeof PluginListItemDTOSchema>;
604
- type PluginPruneDisabledResponseDTOType = z$2.infer<typeof PluginPruneDisabledResponseDTOSchema>;
605
- type PluginInstallFailureDTOType = z$2.infer<typeof PluginInstallFailureDTOSchema>;
606
- type PluginInstallResponseDTOType = z$2.infer<typeof PluginInstallDTOSchema.response>;
607
- type PluginListParamsDTOType = z$2.infer<typeof PluginListParamsSchema>;
608
- type PluginVersionItemDTOType = z$2.infer<typeof PluginVersionItemDTOSchema>;
609
- type PluginVersionListDTOType = z$2.infer<typeof PluginVersionListDTOSchema>;
610
- type PluginVersionListParamsDTOType = z$2.infer<typeof PluginVersionListParamsSchema>;
611
- type PluginRuntimeConfigDTOType = z$2.infer<typeof PluginRuntimeConfigSchema>;
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>;
612
442
  //#endregion
613
443
  //#region ../../packages/interface-adapter/src/contracts/dto/tool.dto.d.ts
614
- declare const ToolRunInputDTOSchema: z$2.ZodObject<{
615
- pluginId: z$2.ZodString;
616
- version: z$2.ZodOptional<z$2.ZodString>;
617
- source: z$2.ZodOptional<z$2.ZodString>;
618
- secrets: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodAny>>;
619
- systemVar: z$2.ZodObject<{
620
- app: z$2.ZodObject<{
621
- id: z$2.ZodString;
622
- name: z$2.ZodString;
623
- }, z$2.core.$strip>;
624
- chat: z$2.ZodObject<{
625
- chatId: z$2.ZodString;
626
- uid: z$2.ZodOptional<z$2.ZodString>;
627
- }, z$2.core.$strip>;
628
- invokeToken: z$2.ZodString;
629
- time: z$2.ZodString;
630
- }, z$2.core.$strip>;
631
- input: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
632
- childId: z$2.ZodOptional<z$2.ZodString>;
633
- }, z$2.core.$strip>;
634
- type ToolRunInputDTOType = z$2.infer<typeof ToolRunInputDTOSchema>;
635
- declare const ToolListItemDTOSchema: 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
- hasSecret: z$2.ZodBoolean;
653
- type: z$2.ZodLiteral<"tool">;
654
- name: z$2.ZodObject<{
655
- en: z$2.ZodString;
656
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
657
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
658
- }, z$2.core.$strip>;
659
- description: z$2.ZodObject<{
660
- en: z$2.ZodString;
661
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
662
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
663
- }, z$2.core.$strip>;
664
- pluginId: z$2.ZodString;
665
- version: z$2.ZodString;
666
- etag: z$2.ZodString;
667
- author: z$2.ZodOptional<z$2.ZodString>;
668
- repoUrl: z$2.ZodOptional<z$2.ZodString>;
669
- icon: z$2.ZodString;
670
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
671
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
672
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
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<{
673
503
  search: "search";
674
504
  tools: "tools";
675
505
  multimodal: "multimodal";
@@ -683,47 +513,47 @@ declare const ToolListItemDTOSchema: z$2.ZodObject<{
683
513
  scientific: "scientific";
684
514
  other: "other";
685
515
  }>>>;
686
- toolDescription: z$2.ZodString;
687
- }, z$2.core.$strip>;
688
- type ToolListItemDTOType = z$2.infer<typeof ToolListItemDTOSchema>;
689
- declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
690
- children: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
691
- id: z$2.ZodString;
692
- name: z$2.ZodObject<{
693
- en: z$2.ZodString;
694
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
695
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
696
- }, z$2.core.$strip>;
697
- description: z$2.ZodOptional<z$2.ZodObject<{
698
- en: z$2.ZodString;
699
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
700
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
701
- }, z$2.core.$strip>>;
702
- toolDescription: z$2.ZodString;
703
- }, z$2.core.$strip>>>;
704
- source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
705
- isToolset: z$2.ZodBoolean;
706
- hasSecret: z$2.ZodBoolean;
707
- type: z$2.ZodLiteral<"tool">;
708
- name: z$2.ZodObject<{
709
- en: z$2.ZodString;
710
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
711
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
712
- }, z$2.core.$strip>;
713
- description: z$2.ZodObject<{
714
- en: z$2.ZodString;
715
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
716
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
717
- }, z$2.core.$strip>;
718
- pluginId: z$2.ZodString;
719
- version: z$2.ZodString;
720
- etag: z$2.ZodString;
721
- author: z$2.ZodOptional<z$2.ZodString>;
722
- repoUrl: z$2.ZodOptional<z$2.ZodString>;
723
- icon: z$2.ZodString;
724
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
725
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
726
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
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<{
727
557
  search: "search";
728
558
  tools: "tools";
729
559
  multimodal: "multimodal";
@@ -737,54 +567,54 @@ declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
737
567
  scientific: "scientific";
738
568
  other: "other";
739
569
  }>>>;
740
- toolDescription: z$2.ZodString;
741
- }, z$2.core.$strip>>;
742
- type ToolListDTOType = z$2.infer<typeof ToolListDTOSchema>;
743
- declare const ToolDetailDTOSchema: z$2.ZodObject<{
744
- source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
745
- isLatestVersion: z$2.ZodBoolean;
746
- isToolset: z$2.ZodBoolean;
747
- type: z$2.ZodLiteral<"tool">;
748
- toolDescription: z$2.ZodString;
749
- inputSchema: z$2.ZodOptional<z$2.ZodAny>;
750
- outputSchema: z$2.ZodOptional<z$2.ZodAny>;
751
- secretSchema: z$2.ZodOptional<z$2.ZodAny>;
752
- children: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
753
- id: z$2.ZodString;
754
- name: z$2.ZodObject<{
755
- en: z$2.ZodString;
756
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
757
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
758
- }, z$2.core.$strip>;
759
- description: z$2.ZodOptional<z$2.ZodObject<{
760
- en: z$2.ZodString;
761
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
762
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
763
- }, z$2.core.$strip>>;
764
- icon: z$2.ZodString;
765
- toolDescription: z$2.ZodString;
766
- inputSchema: z$2.ZodAny;
767
- outputSchema: z$2.ZodAny;
768
- }, z$2.core.$strip>>>;
769
- pluginId: z$2.ZodString;
770
- version: z$2.ZodString;
771
- etag: z$2.ZodString;
772
- author: z$2.ZodOptional<z$2.ZodString>;
773
- repoUrl: z$2.ZodOptional<z$2.ZodString>;
774
- name: z$2.ZodObject<{
775
- en: z$2.ZodString;
776
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
777
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
778
- }, z$2.core.$strip>;
779
- icon: z$2.ZodString;
780
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
781
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
782
- description: z$2.ZodObject<{
783
- en: z$2.ZodString;
784
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
785
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
786
- }, z$2.core.$strip>;
787
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
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<{
788
618
  search: "search";
789
619
  tools: "tools";
790
620
  multimodal: "multimodal";
@@ -798,29 +628,29 @@ declare const ToolDetailDTOSchema: z$2.ZodObject<{
798
628
  scientific: "scientific";
799
629
  other: "other";
800
630
  }>>>;
801
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
802
- en: z$2.ZodString;
803
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
804
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
805
- }, z$2.core.$strip>>;
806
- permission: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
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<{
807
637
  "userInfo:read": "userInfo:read";
808
638
  "teamInfo:read": "teamInfo:read";
809
639
  "model:read": "model:read";
810
640
  "dataset:read": "dataset:read";
811
641
  "file-upload:allow": "file-upload:allow";
812
642
  }>>>;
813
- }, z$2.core.$strip>;
814
- type ToolDetailDTOType = z$2.infer<typeof ToolDetailDTOSchema>;
815
- declare const ToolGetParamsDTOSchema: z$2.ZodObject<{
816
- pluginId: z$2.ZodString;
817
- version: z$2.ZodOptional<z$2.ZodString>;
818
- source: z$2.ZodDefault<z$2.ZodOptional<z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>>>;
819
- fallbackLatestVersion: z$2.ZodPipe<z$2.ZodTransform<unknown, unknown>, z$2.ZodOptional<z$2.ZodBoolean>>;
820
- }, z$2.core.$strip>;
821
- type ToolGetParamsDTOType = z$2.infer<typeof ToolGetParamsDTOSchema>;
822
- declare const ToolListParamsDTOSchema: z$2.ZodObject<{
823
- tags: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
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<{
824
654
  search: "search";
825
655
  tools: "tools";
826
656
  multimodal: "multimodal";
@@ -834,55 +664,61 @@ declare const ToolListParamsDTOSchema: z$2.ZodObject<{
834
664
  scientific: "scientific";
835
665
  other: "other";
836
666
  }>>>>;
837
- op: z$2.ZodOptional<z$2.ZodEnum<{
667
+ op: z.ZodOptional<z.ZodEnum<{
838
668
  or: "or";
839
669
  and: "and";
840
670
  }>>;
841
- 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]>>>>;
842
- }, z$2.core.$strip>;
843
- type ToolListParamsDTOType = z$2.infer<typeof ToolListParamsDTOSchema>;
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>;
844
674
  //#endregion
845
675
  //#region ../../packages/interface-adapter/src/contracts/dto/workflow.dto.d.ts
846
- declare const WorkflowTemplateDTOSchema: z$2.ZodObject<{
847
- templateId: z$2.ZodString;
848
- name: z$2.ZodString;
849
- intro: z$2.ZodString;
850
- avatar: z$2.ZodString;
851
- tags: z$2.ZodArray<z$2.ZodString>;
852
- type: z$2.ZodString;
853
- author: z$2.ZodOptional<z$2.ZodString>;
854
- isActive: z$2.ZodOptional<z$2.ZodBoolean>;
855
- userGuide: z$2.ZodOptional<z$2.ZodString>;
856
- isQuickTemplate: z$2.ZodOptional<z$2.ZodBoolean>;
857
- order: z$2.ZodOptional<z$2.ZodNumber>;
858
- weight: z$2.ZodOptional<z$2.ZodNumber>;
859
- workflow: z$2.ZodObject<{
860
- nodes: z$2.ZodArray<z$2.ZodAny>;
861
- edges: z$2.ZodArray<z$2.ZodAny>;
862
- chatConfig: z$2.ZodOptional<z$2.ZodAny>;
863
- }, z$2.core.$strip>;
864
- }, z$2.core.$strip>;
865
- declare const WorkflowListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
866
- templateId: z$2.ZodString;
867
- name: z$2.ZodString;
868
- intro: z$2.ZodString;
869
- avatar: z$2.ZodString;
870
- tags: z$2.ZodArray<z$2.ZodString>;
871
- type: z$2.ZodString;
872
- author: z$2.ZodOptional<z$2.ZodString>;
873
- isActive: z$2.ZodOptional<z$2.ZodBoolean>;
874
- userGuide: z$2.ZodOptional<z$2.ZodString>;
875
- isQuickTemplate: z$2.ZodOptional<z$2.ZodBoolean>;
876
- order: z$2.ZodOptional<z$2.ZodNumber>;
877
- weight: z$2.ZodOptional<z$2.ZodNumber>;
878
- workflow: z$2.ZodObject<{
879
- nodes: z$2.ZodArray<z$2.ZodAny>;
880
- edges: z$2.ZodArray<z$2.ZodAny>;
881
- chatConfig: z$2.ZodOptional<z$2.ZodAny>;
882
- }, z$2.core.$strip>;
883
- }, z$2.core.$strip>>;
884
- type WorkflowTemplateDTOType = z$2.infer<typeof WorkflowTemplateDTOSchema>;
885
- type WorkflowListDTOType = z$2.infer<typeof WorkflowListDTOSchema>;
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>;
886
722
  //#endregion
887
723
  //#region ../../packages/domain/src/entities/model.entity.d.ts
888
724
  declare const LLMModelItemSchema: z$1.ZodObject<{
@@ -935,6 +771,7 @@ declare const EmbeddingModelItemSchema: z$1.ZodObject<{
935
771
  type EmbeddingModelItemType = z$1.infer<typeof EmbeddingModelItemSchema>;
936
772
  declare const RerankModelItemSchema: z$1.ZodObject<{
937
773
  type: z$1.ZodLiteral<"rerank">;
774
+ maxToken: z$1.ZodNumber;
938
775
  provider: z$1.ZodString;
939
776
  model: z$1.ZodString;
940
777
  name: z$1.ZodString;
@@ -1013,6 +850,7 @@ declare const ModelItemSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
1013
850
  outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
1014
851
  }, z$1.core.$strip>, z$1.ZodObject<{
1015
852
  type: z$1.ZodLiteral<"rerank">;
853
+ maxToken: z$1.ZodNumber;
1016
854
  provider: z$1.ZodString;
1017
855
  model: z$1.ZodString;
1018
856
  name: z$1.ZodString;
@@ -1253,6 +1091,16 @@ type PluginRuntimeConfigType = PluginRuntimeConfigDTOType;
1253
1091
  type PluginVersionItemType = PluginVersionItemDTOType;
1254
1092
  type PluginVersionListType = PluginVersionListDTOType;
1255
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;
1256
1104
  declare const pluginTagList: PluginTagListType;
1257
1105
  type ModelListType = ModelListDTOType;
1258
1106
  type WorkflowTemplateType = WorkflowTemplateDTOType;
@@ -1292,11 +1140,18 @@ declare class FastGPTPluginClient {
1292
1140
  listPlugins(params?: PluginListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginListType>;
1293
1141
  listPluginVersions(params: PluginVersionListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginVersionListType>;
1294
1142
  listPluginTags(_requestOptions?: ClientRequestOptions): Promise<PluginTagListType>;
1143
+ getPluginServiceFeatures(requestOptions?: ClientRequestOptions): Promise<PluginServiceFeaturesType>;
1295
1144
  getPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<PluginRuntimeConfigType>;
1296
1145
  setPluginRuntimeConfig(pluginId: string, config: PluginRuntimeConfigType, requestOptions?: ClientRequestOptions): Promise<void>;
1297
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>;
1298
1152
  runToolStream(params: RunToolStreamParams, requestOptions?: ClientRequestOptions): Promise<ToolHandlerReturnType>;
1299
1153
  private withApiPath;
1154
+ private withTmbId;
1300
1155
  }
1301
1156
  //#endregion
1302
1157
  //#region src/tool-stream.d.ts
@@ -1345,11 +1200,14 @@ type MIMEType = z$1.infer<typeof MIMESchema>;
1345
1200
  //#endregion
1346
1201
  //#region ../../packages/domain/src/value-objects/result.vo.d.ts
1347
1202
  /** usecase, interface-adapter 都要使用这个类型, 手动处理错误,并且能从内到外把错误透出来*/
1348
- type ResultFailure<E = unknown> = {
1203
+ type ResultFailure<E extends Error = Error> = {
1349
1204
  reason: I18nStringType;
1350
1205
  error: E;
1206
+ code?: string;
1207
+ message?: string;
1208
+ data?: unknown;
1351
1209
  };
1352
- type Result<T = unknown, E = unknown> = [T, null] | [null, ResultFailure<E>];
1210
+ type Result<T = unknown, E extends Error = Error> = [T, null] | [null, ResultFailure<E>];
1353
1211
  //#endregion
1354
1212
  //#region ../../packages/infrastructure/src/plugin/utils/pkg-parser.d.ts
1355
1213
  type ParsedPkgFile = {
@@ -1389,5 +1247,5 @@ type AIProxyChannelsType = {
1389
1247
  avatar: string;
1390
1248
  }[];
1391
1249
  //#endregion
1392
- 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 };
1393
1251
  //# sourceMappingURL=index.d.ts.map