@fastgpt-plugin/sdk-client 0.1.0-alpha.3 → 0.1.0-alpha.4
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 +25 -23
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import z$1, { z } from "zod";
|
|
2
2
|
import { Readable } from "node:stream";
|
|
3
|
+
//#region ../../packages/domain/src/value-objects/plugin.vo.d.ts
|
|
4
|
+
declare const PluginUniqueIdSchema: z$1.ZodObject<{
|
|
5
|
+
pluginId: z$1.ZodString;
|
|
6
|
+
version: z$1.ZodString;
|
|
7
|
+
etag: z$1.ZodString;
|
|
8
|
+
}, z$1.core.$strip>;
|
|
9
|
+
type PluginUniqueIdType = z$1.infer<typeof PluginUniqueIdSchema>;
|
|
10
|
+
declare const PluginSourceSchema: z$1.ZodUnion<[z$1.ZodLiteral<"system">, z$1.ZodString]>;
|
|
11
|
+
type PluginSourceType = z$1.infer<typeof PluginSourceSchema>;
|
|
12
|
+
declare const PluginTagListSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
13
|
+
id: z$1.ZodString;
|
|
14
|
+
name: z$1.ZodObject<{
|
|
15
|
+
en: z$1.ZodString;
|
|
16
|
+
"zh-CN": z$1.ZodString;
|
|
17
|
+
"zh-Hant": z$1.ZodString;
|
|
18
|
+
}, z$1.core.$strip>;
|
|
19
|
+
}, z$1.core.$strip>>;
|
|
20
|
+
type PluginTagListType = z$1.infer<typeof PluginTagListSchema>;
|
|
21
|
+
//#endregion
|
|
3
22
|
//#region ../../packages/interface-adapter/src/contracts/dto/model.dto.d.ts
|
|
4
23
|
declare const ModelListDTOSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
24
|
type: z.ZodLiteral<"llm">;
|
|
6
25
|
maxContext: z.ZodNumber;
|
|
7
26
|
maxTokens: z.ZodNumber;
|
|
8
27
|
quoteMaxToken: z.ZodNumber;
|
|
9
|
-
maxTemperature: z.
|
|
28
|
+
maxTemperature: z.ZodOptional<z.ZodNumber>;
|
|
10
29
|
showTopP: z.ZodOptional<z.ZodBoolean>;
|
|
11
30
|
responseFormatList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
31
|
showStopSign: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -735,7 +754,7 @@ declare const LLMModelItemSchema: z$1.ZodObject<{
|
|
|
735
754
|
maxContext: z$1.ZodNumber;
|
|
736
755
|
maxTokens: z$1.ZodNumber;
|
|
737
756
|
quoteMaxToken: z$1.ZodNumber;
|
|
738
|
-
maxTemperature: z$1.
|
|
757
|
+
maxTemperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
739
758
|
showTopP: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
740
759
|
responseFormatList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
741
760
|
showStopSign: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -820,7 +839,7 @@ declare const ModelItemSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
820
839
|
maxContext: z$1.ZodNumber;
|
|
821
840
|
maxTokens: z$1.ZodNumber;
|
|
822
841
|
quoteMaxToken: z$1.ZodNumber;
|
|
823
|
-
maxTemperature: z$1.
|
|
842
|
+
maxTemperature: z$1.ZodOptional<z$1.ZodNumber>;
|
|
824
843
|
showTopP: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
825
844
|
responseFormatList: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
826
845
|
showStopSign: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -1002,25 +1021,6 @@ declare const I18nStringStrictSchema: z$1.ZodObject<{
|
|
|
1002
1021
|
}, z$1.core.$strip>;
|
|
1003
1022
|
type I18nStringStrictType = z$1.infer<typeof I18nStringStrictSchema>;
|
|
1004
1023
|
//#endregion
|
|
1005
|
-
//#region ../../packages/domain/src/value-objects/plugin.vo.d.ts
|
|
1006
|
-
declare const PluginUniqueIdSchema: z$1.ZodObject<{
|
|
1007
|
-
pluginId: z$1.ZodString;
|
|
1008
|
-
version: z$1.ZodString;
|
|
1009
|
-
etag: z$1.ZodString;
|
|
1010
|
-
}, z$1.core.$strip>;
|
|
1011
|
-
type PluginUniqueIdType = z$1.infer<typeof PluginUniqueIdSchema>;
|
|
1012
|
-
declare const PluginSourceSchema: z$1.ZodUnion<[z$1.ZodLiteral<"system">, z$1.ZodString]>;
|
|
1013
|
-
type PluginSourceType = z$1.infer<typeof PluginSourceSchema>;
|
|
1014
|
-
declare const PluginTagListSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
1015
|
-
id: z$1.ZodString;
|
|
1016
|
-
name: z$1.ZodObject<{
|
|
1017
|
-
en: z$1.ZodString;
|
|
1018
|
-
"zh-CN": z$1.ZodString;
|
|
1019
|
-
"zh-Hant": z$1.ZodString;
|
|
1020
|
-
}, z$1.core.$strip>;
|
|
1021
|
-
}, z$1.core.$strip>>;
|
|
1022
|
-
type PluginTagListType = z$1.infer<typeof PluginTagListSchema>;
|
|
1023
|
-
//#endregion
|
|
1024
1024
|
//#region ../../packages/domain/src/value-objects/system-var.vo.d.ts
|
|
1025
1025
|
declare const SystemVarSchema: z$1.ZodObject<{
|
|
1026
1026
|
app: z$1.ZodObject<{
|
|
@@ -1150,7 +1150,9 @@ declare class FastGPTPluginClient {
|
|
|
1150
1150
|
uploadPlugin(files: (Blob | {
|
|
1151
1151
|
file: Blob;
|
|
1152
1152
|
filename?: string;
|
|
1153
|
-
})[], requestOptions?: ClientRequestOptions
|
|
1153
|
+
})[], requestOptions?: ClientRequestOptions & {
|
|
1154
|
+
source?: PluginSourceType;
|
|
1155
|
+
}): Promise<PluginUploadResultType>;
|
|
1154
1156
|
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: PluginSourceRequestOptions): Promise<void>;
|
|
1155
1157
|
pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
|
|
1156
1158
|
installPlugins(urls: string[], requestOptions?: PluginSourceRequestOptions): Promise<PluginInstallResultType>;
|