@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/dist/index.d.ts CHANGED
@@ -1,557 +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
- maxToken: z$2.ZodNumber;
328
- provider: z$2.ZodString;
329
- model: z$2.ZodString;
330
- name: z$2.ZodString;
331
- charsPointsPrice: z$2.ZodOptional<z$2.ZodNumber>;
332
- inputPrice: z$2.ZodOptional<z$2.ZodNumber>;
333
- outputPrice: z$2.ZodOptional<z$2.ZodNumber>;
334
- }, z$2.core.$strip>, z$2.ZodObject<{
335
- type: z$2.ZodLiteral<"tts">;
336
- voices: z$2.ZodArray<z$2.ZodObject<{
337
- label: z$2.ZodString;
338
- value: z$2.ZodString;
339
- }, z$2.core.$strip>>;
340
- provider: z$2.ZodString;
341
- model: z$2.ZodString;
342
- name: z$2.ZodString;
343
- charsPointsPrice: z$2.ZodOptional<z$2.ZodNumber>;
344
- inputPrice: z$2.ZodOptional<z$2.ZodNumber>;
345
- outputPrice: z$2.ZodOptional<z$2.ZodNumber>;
346
- }, z$2.core.$strip>, z$2.ZodObject<{
347
- type: z$2.ZodLiteral<"stt">;
348
- provider: z$2.ZodString;
349
- model: z$2.ZodString;
350
- name: z$2.ZodString;
351
- charsPointsPrice: z$2.ZodOptional<z$2.ZodNumber>;
352
- inputPrice: z$2.ZodOptional<z$2.ZodNumber>;
353
- outputPrice: z$2.ZodOptional<z$2.ZodNumber>;
354
- }, z$2.core.$strip>], "type">>;
355
- declare const ModelProviderItemDTOSchema: z$2.ZodObject<{
356
- provider: z$2.ZodString;
357
- value: z$2.ZodObject<{
358
- en: z$2.ZodString;
359
- "zh-CN": z$2.ZodString;
360
- "zh-Hant": z$2.ZodString;
361
- }, z$2.core.$strip>;
362
- avatar: z$2.ZodString;
363
- }, z$2.core.$strip>;
364
- declare const AIProxyChannelItemDTOSchema: z$2.ZodObject<{
365
- channelId: z$2.ZodNumber;
366
- name: z$2.ZodObject<{
367
- en: z$2.ZodString;
368
- "zh-CN": z$2.ZodString;
369
- "zh-Hant": z$2.ZodString;
370
- }, z$2.core.$strip>;
371
- avatar: z$2.ZodString;
372
- }, z$2.core.$strip>;
373
- declare const ModelProviderListDTOSchema: z$2.ZodObject<{
374
- modelProviders: z$2.ZodArray<z$2.ZodObject<{
375
- provider: z$2.ZodString;
376
- value: z$2.ZodObject<{
377
- en: z$2.ZodString;
378
- "zh-CN": z$2.ZodString;
379
- "zh-Hant": z$2.ZodString;
380
- }, z$2.core.$strip>;
381
- avatar: z$2.ZodString;
382
- }, z$2.core.$strip>>;
383
- aiproxyChannels: z$2.ZodArray<z$2.ZodObject<{
384
- channelId: z$2.ZodNumber;
385
- name: z$2.ZodObject<{
386
- en: z$2.ZodString;
387
- "zh-CN": z$2.ZodString;
388
- "zh-Hant": z$2.ZodString;
389
- }, z$2.core.$strip>;
390
- avatar: z$2.ZodString;
391
- }, z$2.core.$strip>>;
392
- }, z$2.core.$strip>;
393
- type ModelListDTOType = z$2.infer<typeof ModelListDTOSchema>;
394
- type ModelProviderItemDTOType = z$2.infer<typeof ModelProviderItemDTOSchema>;
395
- type AIProxyChannelItemDTOType = z$2.infer<typeof AIProxyChannelItemDTOSchema>;
396
- 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>;
397
120
  //#endregion
398
121
  //#region ../../packages/interface-adapter/src/contracts/dto/plugin.dto.d.ts
399
- declare const PluginBaseDTOSchema: z$2.ZodObject<{
400
- pluginId: z$2.ZodString;
401
- version: z$2.ZodString;
402
- etag: z$2.ZodString;
403
- type: z$2.ZodString;
404
- author: z$2.ZodOptional<z$2.ZodString>;
405
- name: z$2.ZodObject<{
406
- en: z$2.ZodString;
407
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
408
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
409
- }, z$2.core.$strip>;
410
- icon: z$2.ZodString;
411
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
412
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
413
- repoUrl: z$2.ZodOptional<z$2.ZodURL>;
414
- permission: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
415
- description: z$2.ZodOptional<z$2.ZodObject<{
416
- en: z$2.ZodString;
417
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
418
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
419
- }, z$2.core.$strip>>;
420
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
421
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
422
- en: z$2.ZodString;
423
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
424
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
425
- }, z$2.core.$strip>>;
426
- }, z$2.core.$strip>;
427
- declare const PluginListItemDTOSchema: z$2.ZodObject<{
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
- type: z$2.ZodString;
434
- description: z$2.ZodOptional<z$2.ZodObject<{
435
- en: z$2.ZodString;
436
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
437
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
438
- }, z$2.core.$strip>>;
439
- pluginId: z$2.ZodString;
440
- version: z$2.ZodString;
441
- etag: z$2.ZodString;
442
- author: z$2.ZodOptional<z$2.ZodString>;
443
- repoUrl: z$2.ZodOptional<z$2.ZodURL>;
444
- icon: z$2.ZodString;
445
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
446
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
447
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
448
- source: z$2.ZodString;
449
- }, z$2.core.$strip>;
450
- declare const PluginListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
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
- type: z$2.ZodString;
457
- description: z$2.ZodOptional<z$2.ZodObject<{
458
- en: z$2.ZodString;
459
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
460
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
461
- }, z$2.core.$strip>>;
462
- pluginId: z$2.ZodString;
463
- version: z$2.ZodString;
464
- etag: z$2.ZodString;
465
- author: z$2.ZodOptional<z$2.ZodString>;
466
- repoUrl: z$2.ZodOptional<z$2.ZodURL>;
467
- icon: z$2.ZodString;
468
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
469
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
470
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
471
- source: z$2.ZodString;
472
- }, z$2.core.$strip>>;
473
- declare const PluginUploadFailureDTOSchema: z$2.ZodObject<{
474
- fileName: z$2.ZodOptional<z$2.ZodString>;
475
- reason: z$2.ZodObject<{
476
- en: z$2.ZodString;
477
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
478
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
479
- }, z$2.core.$strip>;
480
- }, z$2.core.$strip>;
481
- declare const PluginUploadResponseDTOSchema: z$2.ZodObject<{
482
- plugins: z$2.ZodArray<z$2.ZodObject<{
483
- pluginId: z$2.ZodString;
484
- version: z$2.ZodString;
485
- etag: z$2.ZodString;
486
- type: z$2.ZodString;
487
- author: z$2.ZodOptional<z$2.ZodString>;
488
- name: z$2.ZodObject<{
489
- en: z$2.ZodString;
490
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
491
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
492
- }, z$2.core.$strip>;
493
- icon: z$2.ZodString;
494
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
495
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
496
- repoUrl: z$2.ZodOptional<z$2.ZodURL>;
497
- permission: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
498
- description: z$2.ZodOptional<z$2.ZodObject<{
499
- en: z$2.ZodString;
500
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
501
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
502
- }, z$2.core.$strip>>;
503
- tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
504
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
505
- en: z$2.ZodString;
506
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
507
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
508
- }, z$2.core.$strip>>;
509
- }, z$2.core.$strip>>;
510
- failed: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
511
- fileName: z$2.ZodOptional<z$2.ZodString>;
512
- reason: z$2.ZodObject<{
513
- en: z$2.ZodString;
514
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
515
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
516
- }, z$2.core.$strip>;
517
- }, z$2.core.$strip>>>;
518
- }, z$2.core.$strip>;
519
- declare const PluginPruneDisabledResponseDTOSchema: z$2.ZodObject<{
520
- count: z$2.ZodNumber;
521
- plugins: z$2.ZodArray<z$2.ZodObject<{
522
- pluginId: z$2.ZodString;
523
- version: z$2.ZodString;
524
- etag: z$2.ZodString;
525
- }, z$2.core.$strip>>;
526
- }, z$2.core.$strip>;
527
- declare const PluginInstallFailureDTOSchema: z$2.ZodObject<{
528
- url: z$2.ZodString;
529
- reason: z$2.ZodObject<{
530
- en: z$2.ZodString;
531
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
532
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
533
- }, z$2.core.$strip>;
534
- }, z$2.core.$strip>;
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$2.ZodObject<{
537
- urls: z$2.ZodArray<z$2.ZodString>;
538
- }, z$2.core.$strip>;
539
- response: z$2.ZodObject<{
540
- failed: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
541
- url: z$2.ZodString;
542
- reason: z$2.ZodObject<{
543
- en: z$2.ZodString;
544
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
545
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
546
- }, z$2.core.$strip>;
547
- }, z$2.core.$strip>>>;
548
- }, 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>;
549
272
  };
550
- declare const PluginListParamsSchema: z$2.ZodObject<{
551
- 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<{
552
275
  tool: "tool";
553
276
  }>>>>;
554
- 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<{
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$2.ZodOptional<z$2.ZodEnum<{
291
+ op: z.ZodOptional<z.ZodEnum<{
569
292
  or: "or";
570
293
  and: "and";
571
294
  }>>;
572
- 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]>>>>;
573
- }, z$2.core.$strip>;
574
- declare const PluginVersionItemDTOSchema: z$2.ZodObject<{
575
- version: z$2.ZodString;
576
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
577
- en: z$2.ZodString;
578
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
579
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
580
- }, z$2.core.$strip>>;
581
- }, z$2.core.$strip>;
582
- declare const PluginVersionListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
583
- version: z$2.ZodString;
584
- versionDescription: z$2.ZodOptional<z$2.ZodObject<{
585
- en: z$2.ZodString;
586
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
587
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
588
- }, z$2.core.$strip>>;
589
- }, z$2.core.$strip>>;
590
- declare const PluginVersionListParamsSchema: z$2.ZodObject<{
591
- pluginId: z$2.ZodString;
592
- source: z$2.ZodString;
593
- }, z$2.core.$strip>;
594
- declare const PluginRuntimeConfigSchema: z$2.ZodObject<{
595
- minPods: z$2.ZodNumber;
596
- maxPods: z$2.ZodNumber;
597
- podTimeout: z$2.ZodNumber;
598
- maxConcurrentRequestsPerPod: z$2.ZodNumber;
599
- }, z$2.core.$strict>;
600
- type PluginDTOType = z$2.infer<typeof PluginBaseDTOSchema>;
601
- type PluginUploadFailureDTOType = z$2.infer<typeof PluginUploadFailureDTOSchema>;
602
- type PluginUploadResponseDTOType = z$2.infer<typeof PluginUploadResponseDTOSchema>;
603
- type PluginListDTOType = z$2.infer<typeof PluginListDTOSchema>;
604
- type PluginListItemDTOType = z$2.infer<typeof PluginListItemDTOSchema>;
605
- type PluginPruneDisabledResponseDTOType = z$2.infer<typeof PluginPruneDisabledResponseDTOSchema>;
606
- type PluginInstallFailureDTOType = z$2.infer<typeof PluginInstallFailureDTOSchema>;
607
- type PluginInstallResponseDTOType = z$2.infer<typeof PluginInstallDTOSchema.response>;
608
- type PluginListParamsDTOType = z$2.infer<typeof PluginListParamsSchema>;
609
- type PluginVersionItemDTOType = z$2.infer<typeof PluginVersionItemDTOSchema>;
610
- type PluginVersionListDTOType = z$2.infer<typeof PluginVersionListDTOSchema>;
611
- type PluginVersionListParamsDTOType = z$2.infer<typeof PluginVersionListParamsSchema>;
612
- 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>;
613
442
  //#endregion
614
443
  //#region ../../packages/interface-adapter/src/contracts/dto/tool.dto.d.ts
615
- declare const ToolRunInputDTOSchema: z$2.ZodObject<{
616
- pluginId: z$2.ZodString;
617
- version: z$2.ZodOptional<z$2.ZodString>;
618
- source: z$2.ZodOptional<z$2.ZodString>;
619
- secrets: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodAny>>;
620
- systemVar: z$2.ZodObject<{
621
- app: z$2.ZodObject<{
622
- id: z$2.ZodString;
623
- name: z$2.ZodString;
624
- }, z$2.core.$strip>;
625
- chat: z$2.ZodObject<{
626
- chatId: z$2.ZodString;
627
- uid: z$2.ZodOptional<z$2.ZodString>;
628
- }, z$2.core.$strip>;
629
- invokeToken: z$2.ZodString;
630
- time: z$2.ZodString;
631
- }, z$2.core.$strip>;
632
- input: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
633
- childId: z$2.ZodOptional<z$2.ZodString>;
634
- }, z$2.core.$strip>;
635
- type ToolRunInputDTOType = z$2.infer<typeof ToolRunInputDTOSchema>;
636
- declare const ToolListItemDTOSchema: z$2.ZodObject<{
637
- children: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
638
- id: z$2.ZodString;
639
- name: z$2.ZodObject<{
640
- en: z$2.ZodString;
641
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
642
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
643
- }, z$2.core.$strip>;
644
- description: z$2.ZodOptional<z$2.ZodObject<{
645
- en: z$2.ZodString;
646
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
647
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
648
- }, z$2.core.$strip>>;
649
- toolDescription: z$2.ZodString;
650
- }, z$2.core.$strip>>>;
651
- source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
652
- isToolset: z$2.ZodBoolean;
653
- hasSecret: z$2.ZodBoolean;
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
- type: z$2.ZodLiteral<"tool">;
660
- description: z$2.ZodObject<{
661
- en: z$2.ZodString;
662
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
663
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
664
- }, z$2.core.$strip>;
665
- pluginId: z$2.ZodString;
666
- version: z$2.ZodString;
667
- etag: z$2.ZodString;
668
- author: z$2.ZodOptional<z$2.ZodString>;
669
- repoUrl: z$2.ZodOptional<z$2.ZodString>;
670
- icon: z$2.ZodString;
671
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
672
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
673
- 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<{
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$2.ZodString;
688
- }, z$2.core.$strip>;
689
- type ToolListItemDTOType = z$2.infer<typeof ToolListItemDTOSchema>;
690
- declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
691
- children: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
692
- id: z$2.ZodString;
693
- name: z$2.ZodObject<{
694
- en: z$2.ZodString;
695
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
696
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
697
- }, z$2.core.$strip>;
698
- description: z$2.ZodOptional<z$2.ZodObject<{
699
- en: z$2.ZodString;
700
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
701
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
702
- }, z$2.core.$strip>>;
703
- toolDescription: z$2.ZodString;
704
- }, z$2.core.$strip>>>;
705
- source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
706
- isToolset: z$2.ZodBoolean;
707
- hasSecret: z$2.ZodBoolean;
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
- type: z$2.ZodLiteral<"tool">;
714
- description: z$2.ZodObject<{
715
- en: z$2.ZodString;
716
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
717
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
718
- }, z$2.core.$strip>;
719
- pluginId: z$2.ZodString;
720
- version: z$2.ZodString;
721
- etag: z$2.ZodString;
722
- author: z$2.ZodOptional<z$2.ZodString>;
723
- repoUrl: z$2.ZodOptional<z$2.ZodString>;
724
- icon: z$2.ZodString;
725
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
726
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
727
- 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<{
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$2.ZodString;
742
- }, z$2.core.$strip>>;
743
- type ToolListDTOType = z$2.infer<typeof ToolListDTOSchema>;
744
- declare const ToolDetailDTOSchema: z$2.ZodObject<{
745
- source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
746
- isLatestVersion: z$2.ZodBoolean;
747
- isToolset: z$2.ZodBoolean;
748
- type: z$2.ZodLiteral<"tool">;
749
- toolDescription: z$2.ZodString;
750
- inputSchema: z$2.ZodOptional<z$2.ZodAny>;
751
- outputSchema: z$2.ZodOptional<z$2.ZodAny>;
752
- secretSchema: z$2.ZodOptional<z$2.ZodAny>;
753
- children: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
754
- id: z$2.ZodString;
755
- name: z$2.ZodObject<{
756
- en: z$2.ZodString;
757
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
758
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
759
- }, z$2.core.$strip>;
760
- description: z$2.ZodOptional<z$2.ZodObject<{
761
- en: z$2.ZodString;
762
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
763
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
764
- }, z$2.core.$strip>>;
765
- icon: z$2.ZodString;
766
- toolDescription: z$2.ZodString;
767
- inputSchema: z$2.ZodAny;
768
- outputSchema: z$2.ZodAny;
769
- }, z$2.core.$strip>>>;
770
- pluginId: z$2.ZodString;
771
- version: z$2.ZodString;
772
- etag: z$2.ZodString;
773
- author: z$2.ZodOptional<z$2.ZodString>;
774
- repoUrl: z$2.ZodOptional<z$2.ZodString>;
775
- name: z$2.ZodObject<{
776
- en: z$2.ZodString;
777
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
778
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
779
- }, z$2.core.$strip>;
780
- icon: z$2.ZodString;
781
- tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
782
- readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
783
- description: z$2.ZodObject<{
784
- en: z$2.ZodString;
785
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
786
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
787
- }, z$2.core.$strip>;
788
- 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<{
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$2.ZodOptional<z$2.ZodObject<{
803
- en: z$2.ZodString;
804
- "zh-CN": z$2.ZodOptional<z$2.ZodString>;
805
- "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
806
- }, z$2.core.$strip>>;
807
- 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<{
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$2.core.$strip>;
815
- type ToolDetailDTOType = z$2.infer<typeof ToolDetailDTOSchema>;
816
- declare const ToolGetParamsDTOSchema: z$2.ZodObject<{
817
- pluginId: z$2.ZodString;
818
- version: z$2.ZodOptional<z$2.ZodString>;
819
- source: z$2.ZodDefault<z$2.ZodOptional<z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>>>;
820
- fallbackLatestVersion: z$2.ZodPipe<z$2.ZodTransform<unknown, unknown>, z$2.ZodOptional<z$2.ZodBoolean>>;
821
- }, z$2.core.$strip>;
822
- type ToolGetParamsDTOType = z$2.infer<typeof ToolGetParamsDTOSchema>;
823
- declare const ToolListParamsDTOSchema: z$2.ZodObject<{
824
- 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<{
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$2.ZodOptional<z$2.ZodEnum<{
667
+ op: z.ZodOptional<z.ZodEnum<{
839
668
  or: "or";
840
669
  and: "and";
841
670
  }>>;
842
- 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]>>>>;
843
- }, z$2.core.$strip>;
844
- 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>;
845
674
  //#endregion
846
675
  //#region ../../packages/interface-adapter/src/contracts/dto/workflow.dto.d.ts
847
- declare const WorkflowTemplateDTOSchema: z$2.ZodObject<{
848
- templateId: z$2.ZodString;
849
- name: z$2.ZodString;
850
- intro: z$2.ZodString;
851
- avatar: z$2.ZodString;
852
- tags: z$2.ZodArray<z$2.ZodString>;
853
- type: z$2.ZodString;
854
- author: z$2.ZodOptional<z$2.ZodString>;
855
- isActive: z$2.ZodOptional<z$2.ZodBoolean>;
856
- userGuide: z$2.ZodOptional<z$2.ZodString>;
857
- isQuickTemplate: z$2.ZodOptional<z$2.ZodBoolean>;
858
- order: z$2.ZodOptional<z$2.ZodNumber>;
859
- weight: z$2.ZodOptional<z$2.ZodNumber>;
860
- workflow: z$2.ZodObject<{
861
- nodes: z$2.ZodArray<z$2.ZodAny>;
862
- edges: z$2.ZodArray<z$2.ZodAny>;
863
- chatConfig: z$2.ZodOptional<z$2.ZodAny>;
864
- }, z$2.core.$strip>;
865
- }, z$2.core.$strip>;
866
- declare const WorkflowListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
867
- templateId: z$2.ZodString;
868
- name: z$2.ZodString;
869
- intro: z$2.ZodString;
870
- avatar: z$2.ZodString;
871
- tags: z$2.ZodArray<z$2.ZodString>;
872
- type: z$2.ZodString;
873
- author: z$2.ZodOptional<z$2.ZodString>;
874
- isActive: z$2.ZodOptional<z$2.ZodBoolean>;
875
- userGuide: z$2.ZodOptional<z$2.ZodString>;
876
- isQuickTemplate: z$2.ZodOptional<z$2.ZodBoolean>;
877
- order: z$2.ZodOptional<z$2.ZodNumber>;
878
- weight: z$2.ZodOptional<z$2.ZodNumber>;
879
- workflow: z$2.ZodObject<{
880
- nodes: z$2.ZodArray<z$2.ZodAny>;
881
- edges: z$2.ZodArray<z$2.ZodAny>;
882
- chatConfig: z$2.ZodOptional<z$2.ZodAny>;
883
- }, z$2.core.$strip>;
884
- }, z$2.core.$strip>>;
885
- type WorkflowTemplateDTOType = z$2.infer<typeof WorkflowTemplateDTOSchema>;
886
- 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>;
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