@fastgpt-plugin/sdk-client 0.0.1-alpha.3 → 0.0.1-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 +43 -10
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -469,6 +469,34 @@ declare const PluginListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
|
469
469
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
470
470
|
source: z$2.ZodString;
|
|
471
471
|
}, z$2.core.$strip>>;
|
|
472
|
+
declare const PluginUploadResponseDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
473
|
+
pluginId: z$2.ZodString;
|
|
474
|
+
version: z$2.ZodString;
|
|
475
|
+
etag: z$2.ZodString;
|
|
476
|
+
type: z$2.ZodString;
|
|
477
|
+
author: z$2.ZodOptional<z$2.ZodString>;
|
|
478
|
+
name: z$2.ZodObject<{
|
|
479
|
+
en: z$2.ZodString;
|
|
480
|
+
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
481
|
+
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
482
|
+
}, z$2.core.$strip>;
|
|
483
|
+
icon: z$2.ZodString;
|
|
484
|
+
tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
485
|
+
readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
486
|
+
repoUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
487
|
+
permission: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
488
|
+
description: z$2.ZodOptional<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
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
494
|
+
versionDescription: z$2.ZodOptional<z$2.ZodObject<{
|
|
495
|
+
en: z$2.ZodString;
|
|
496
|
+
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
497
|
+
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
498
|
+
}, z$2.core.$strip>>;
|
|
499
|
+
}, z$2.core.$strip>>;
|
|
472
500
|
declare const PluginPruneDisabledResponseDTOSchema: z$2.ZodObject<{
|
|
473
501
|
count: z$2.ZodNumber;
|
|
474
502
|
plugins: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -505,8 +533,8 @@ declare const PluginListParamsSchema: z$2.ZodObject<{
|
|
|
505
533
|
tool: "tool";
|
|
506
534
|
}>>>>;
|
|
507
535
|
tags: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
508
|
-
tools: "tools";
|
|
509
536
|
search: "search";
|
|
537
|
+
tools: "tools";
|
|
510
538
|
multimodal: "multimodal";
|
|
511
539
|
communication: "communication";
|
|
512
540
|
finance: "finance";
|
|
@@ -546,6 +574,7 @@ declare const PluginVersionListParamsSchema: z$2.ZodObject<{
|
|
|
546
574
|
}, z$2.core.$strip>;
|
|
547
575
|
declare const PluginRuntimeConfigSchema: z$2.ZodObject<{}, z$2.core.$catchall<z$2.ZodUnknown>>;
|
|
548
576
|
type PluginDTOType = z$2.infer<typeof PluginBaseDTOSchema>;
|
|
577
|
+
type PluginUploadResponseDTOType = z$2.infer<typeof PluginUploadResponseDTOSchema>;
|
|
549
578
|
type PluginListDTOType = z$2.infer<typeof PluginListDTOSchema>;
|
|
550
579
|
type PluginListItemDTOType = z$2.infer<typeof PluginListItemDTOSchema>;
|
|
551
580
|
type PluginPruneDisabledResponseDTOType = z$2.infer<typeof PluginPruneDisabledResponseDTOSchema>;
|
|
@@ -616,8 +645,8 @@ declare const ToolListItemDTOSchema: z$2.ZodObject<{
|
|
|
616
645
|
tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
617
646
|
readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
618
647
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
619
|
-
tools: "tools";
|
|
620
648
|
search: "search";
|
|
649
|
+
tools: "tools";
|
|
621
650
|
multimodal: "multimodal";
|
|
622
651
|
communication: "communication";
|
|
623
652
|
finance: "finance";
|
|
@@ -669,8 +698,8 @@ declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
|
669
698
|
tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
670
699
|
readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
671
700
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
672
|
-
tools: "tools";
|
|
673
701
|
search: "search";
|
|
702
|
+
tools: "tools";
|
|
674
703
|
multimodal: "multimodal";
|
|
675
704
|
communication: "communication";
|
|
676
705
|
finance: "finance";
|
|
@@ -730,8 +759,8 @@ declare const ToolDetailDTOSchema: z$2.ZodObject<{
|
|
|
730
759
|
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
731
760
|
}, z$2.core.$strip>;
|
|
732
761
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
733
|
-
tools: "tools";
|
|
734
762
|
search: "search";
|
|
763
|
+
tools: "tools";
|
|
735
764
|
multimodal: "multimodal";
|
|
736
765
|
communication: "communication";
|
|
737
766
|
finance: "finance";
|
|
@@ -761,13 +790,13 @@ declare const ToolGetParamsDTOSchema: z$2.ZodObject<{
|
|
|
761
790
|
pluginId: z$2.ZodString;
|
|
762
791
|
version: z$2.ZodOptional<z$2.ZodString>;
|
|
763
792
|
source: z$2.ZodDefault<z$2.ZodOptional<z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>>>;
|
|
764
|
-
fallbackLatestVersion: z$2.ZodOptional<z$2.ZodBoolean
|
|
793
|
+
fallbackLatestVersion: z$2.ZodPipe<z$2.ZodTransform<unknown, unknown>, z$2.ZodOptional<z$2.ZodBoolean>>;
|
|
765
794
|
}, z$2.core.$strip>;
|
|
766
795
|
type ToolGetParamsDTOType = z$2.infer<typeof ToolGetParamsDTOSchema>;
|
|
767
796
|
declare const ToolListParamsDTOSchema: z$2.ZodObject<{
|
|
768
797
|
tags: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
769
|
-
tools: "tools";
|
|
770
798
|
search: "search";
|
|
799
|
+
tools: "tools";
|
|
771
800
|
multimodal: "multimodal";
|
|
772
801
|
communication: "communication";
|
|
773
802
|
finance: "finance";
|
|
@@ -1030,8 +1059,8 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
1030
1059
|
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
1031
1060
|
}, z$1.core.$strip>;
|
|
1032
1061
|
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1033
|
-
tools: "tools";
|
|
1034
1062
|
search: "search";
|
|
1063
|
+
tools: "tools";
|
|
1035
1064
|
multimodal: "multimodal";
|
|
1036
1065
|
communication: "communication";
|
|
1037
1066
|
finance: "finance";
|
|
@@ -1060,8 +1089,8 @@ type ToolType = z$1.output<typeof ToolSchema>;
|
|
|
1060
1089
|
//#endregion
|
|
1061
1090
|
//#region ../../packages/domain/src/entities/plugin-base.entity.d.ts
|
|
1062
1091
|
declare const PluginTagSchema: z$1.ZodEnum<{
|
|
1063
|
-
tools: "tools";
|
|
1064
1092
|
search: "search";
|
|
1093
|
+
tools: "tools";
|
|
1065
1094
|
multimodal: "multimodal";
|
|
1066
1095
|
communication: "communication";
|
|
1067
1096
|
finance: "finance";
|
|
@@ -1185,6 +1214,7 @@ type ToolListType = ToolListDTOType;
|
|
|
1185
1214
|
type ToolListItemType = ToolListItemDTOType;
|
|
1186
1215
|
type ToolListParamsType = Partial<ToolListParamsDTOType>;
|
|
1187
1216
|
type PluginSummaryType = PluginDTOType;
|
|
1217
|
+
type PluginUploadResultType = PluginUploadResponseDTOType;
|
|
1188
1218
|
type PluginListType = PluginListDTOType;
|
|
1189
1219
|
type PluginListItemType = PluginListItemDTOType;
|
|
1190
1220
|
type PluginListParamsType = Partial<PluginListParamsDTOType>;
|
|
@@ -1225,7 +1255,10 @@ declare class FastGPTPluginClient {
|
|
|
1225
1255
|
listWorkflows(requestOptions?: ClientRequestOptions): Promise<WorkflowListType>;
|
|
1226
1256
|
getTool(params: ToolGetParamsType, requestOptions?: ClientRequestOptions): Promise<ToolDetailType>;
|
|
1227
1257
|
listTools(params?: ToolListParamsType, requestOptions?: ClientRequestOptions): Promise<ToolListType>;
|
|
1228
|
-
uploadPlugin(
|
|
1258
|
+
uploadPlugin(files: (Blob | {
|
|
1259
|
+
file: Blob;
|
|
1260
|
+
filename?: string;
|
|
1261
|
+
})[], requestOptions?: ClientRequestOptions): Promise<PluginUploadResultType>;
|
|
1229
1262
|
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1230
1263
|
pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
|
|
1231
1264
|
installPlugins(urls: string[], requestOptions?: ClientRequestOptions): Promise<PluginInstallResultType>;
|
|
@@ -1329,5 +1362,5 @@ type AIProxyChannelsType = {
|
|
|
1329
1362
|
avatar: string;
|
|
1330
1363
|
}[];
|
|
1331
1364
|
//#endregion
|
|
1332
|
-
export { type AIProxyChannelsType, type AIProxyChannelItemType as AiproxyMapProviderItemType, type ClientRequestOptions, type EmbeddingModelItemType, FastGPTPluginClient, type FastGPTPluginClientOptions, type I18nStringStrictType, type I18nStringType, type JsonObject, type LLMModelItemType, type ModelItemType, type ModelListType, type ModelProviderItemType, type ModelProviderListType, type ParsePkgParams, type ParsedPkgFile, type ParsedPkgFiles, type PluginInstallFailureType, type PluginInstallResultType, type PluginListItemType, type PluginListParamsType, type PluginListType, PluginPermissionEnum, PluginPermissionEnumSchema, type PluginPermissionEnumType, type PluginPruneDisabledResultType, type PluginRuntimeConfigType, type PluginSourceType, type PluginSummaryType, type PluginTagListItemType, type PluginTagListType, type PluginTagType, type PluginTypeType, type PluginUniqueIdType, type PluginVersionItemType, type PluginVersionListParamsType, type PluginVersionListType, type RerankModelItemType, type RunToolStreamParams, RunToolWithStream, type STTModelItemType, type SystemVarType, type TTSModelItemType, type ToolAnswerType, type ToolDetailType, type ToolGetParamsType, type ToolHandlerReturnType, type ToolListItemType, type ToolListParamsType, type ToolListType, type ToolRunInputType, type ToolStreamMessageType, type WorkflowListType, type WorkflowTemplateType, parsePkg, pluginTagList };
|
|
1365
|
+
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 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 };
|
|
1333
1366
|
//# sourceMappingURL=index.d.ts.map
|