@fastgpt-plugin/sdk-client 0.0.1-alpha.3 → 0.0.1-alpha.5
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 +63 -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,52 @@ 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 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>;
|
|
472
518
|
declare const PluginPruneDisabledResponseDTOSchema: z$2.ZodObject<{
|
|
473
519
|
count: z$2.ZodNumber;
|
|
474
520
|
plugins: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -505,8 +551,8 @@ declare const PluginListParamsSchema: z$2.ZodObject<{
|
|
|
505
551
|
tool: "tool";
|
|
506
552
|
}>>>>;
|
|
507
553
|
tags: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
508
|
-
tools: "tools";
|
|
509
554
|
search: "search";
|
|
555
|
+
tools: "tools";
|
|
510
556
|
multimodal: "multimodal";
|
|
511
557
|
communication: "communication";
|
|
512
558
|
finance: "finance";
|
|
@@ -546,6 +592,8 @@ declare const PluginVersionListParamsSchema: z$2.ZodObject<{
|
|
|
546
592
|
}, z$2.core.$strip>;
|
|
547
593
|
declare const PluginRuntimeConfigSchema: z$2.ZodObject<{}, z$2.core.$catchall<z$2.ZodUnknown>>;
|
|
548
594
|
type PluginDTOType = z$2.infer<typeof PluginBaseDTOSchema>;
|
|
595
|
+
type PluginUploadFailureDTOType = z$2.infer<typeof PluginUploadFailureDTOSchema>;
|
|
596
|
+
type PluginUploadResponseDTOType = z$2.infer<typeof PluginUploadResponseDTOSchema>;
|
|
549
597
|
type PluginListDTOType = z$2.infer<typeof PluginListDTOSchema>;
|
|
550
598
|
type PluginListItemDTOType = z$2.infer<typeof PluginListItemDTOSchema>;
|
|
551
599
|
type PluginPruneDisabledResponseDTOType = z$2.infer<typeof PluginPruneDisabledResponseDTOSchema>;
|
|
@@ -616,8 +664,8 @@ declare const ToolListItemDTOSchema: z$2.ZodObject<{
|
|
|
616
664
|
tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
617
665
|
readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
618
666
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
619
|
-
tools: "tools";
|
|
620
667
|
search: "search";
|
|
668
|
+
tools: "tools";
|
|
621
669
|
multimodal: "multimodal";
|
|
622
670
|
communication: "communication";
|
|
623
671
|
finance: "finance";
|
|
@@ -669,8 +717,8 @@ declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
|
669
717
|
tutorialUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
670
718
|
readmeUrl: z$2.ZodOptional<z$2.ZodURL>;
|
|
671
719
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
672
|
-
tools: "tools";
|
|
673
720
|
search: "search";
|
|
721
|
+
tools: "tools";
|
|
674
722
|
multimodal: "multimodal";
|
|
675
723
|
communication: "communication";
|
|
676
724
|
finance: "finance";
|
|
@@ -730,8 +778,8 @@ declare const ToolDetailDTOSchema: z$2.ZodObject<{
|
|
|
730
778
|
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
731
779
|
}, z$2.core.$strip>;
|
|
732
780
|
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
733
|
-
tools: "tools";
|
|
734
781
|
search: "search";
|
|
782
|
+
tools: "tools";
|
|
735
783
|
multimodal: "multimodal";
|
|
736
784
|
communication: "communication";
|
|
737
785
|
finance: "finance";
|
|
@@ -761,13 +809,13 @@ declare const ToolGetParamsDTOSchema: z$2.ZodObject<{
|
|
|
761
809
|
pluginId: z$2.ZodString;
|
|
762
810
|
version: z$2.ZodOptional<z$2.ZodString>;
|
|
763
811
|
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
|
|
812
|
+
fallbackLatestVersion: z$2.ZodPipe<z$2.ZodTransform<unknown, unknown>, z$2.ZodOptional<z$2.ZodBoolean>>;
|
|
765
813
|
}, z$2.core.$strip>;
|
|
766
814
|
type ToolGetParamsDTOType = z$2.infer<typeof ToolGetParamsDTOSchema>;
|
|
767
815
|
declare const ToolListParamsDTOSchema: z$2.ZodObject<{
|
|
768
816
|
tags: z$2.ZodPipe<z$2.ZodTransform<any[] | undefined, unknown>, z$2.ZodOptional<z$2.ZodArray<z$2.ZodEnum<{
|
|
769
|
-
tools: "tools";
|
|
770
817
|
search: "search";
|
|
818
|
+
tools: "tools";
|
|
771
819
|
multimodal: "multimodal";
|
|
772
820
|
communication: "communication";
|
|
773
821
|
finance: "finance";
|
|
@@ -1030,8 +1078,8 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
1030
1078
|
"zh-Hant": z$1.ZodOptional<z$1.ZodString>;
|
|
1031
1079
|
}, z$1.core.$strip>;
|
|
1032
1080
|
tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
1033
|
-
tools: "tools";
|
|
1034
1081
|
search: "search";
|
|
1082
|
+
tools: "tools";
|
|
1035
1083
|
multimodal: "multimodal";
|
|
1036
1084
|
communication: "communication";
|
|
1037
1085
|
finance: "finance";
|
|
@@ -1060,8 +1108,8 @@ type ToolType = z$1.output<typeof ToolSchema>;
|
|
|
1060
1108
|
//#endregion
|
|
1061
1109
|
//#region ../../packages/domain/src/entities/plugin-base.entity.d.ts
|
|
1062
1110
|
declare const PluginTagSchema: z$1.ZodEnum<{
|
|
1063
|
-
tools: "tools";
|
|
1064
1111
|
search: "search";
|
|
1112
|
+
tools: "tools";
|
|
1065
1113
|
multimodal: "multimodal";
|
|
1066
1114
|
communication: "communication";
|
|
1067
1115
|
finance: "finance";
|
|
@@ -1185,11 +1233,13 @@ type ToolListType = ToolListDTOType;
|
|
|
1185
1233
|
type ToolListItemType = ToolListItemDTOType;
|
|
1186
1234
|
type ToolListParamsType = Partial<ToolListParamsDTOType>;
|
|
1187
1235
|
type PluginSummaryType = PluginDTOType;
|
|
1236
|
+
type PluginUploadResultType = PluginUploadResponseDTOType;
|
|
1188
1237
|
type PluginListType = PluginListDTOType;
|
|
1189
1238
|
type PluginListItemType = PluginListItemDTOType;
|
|
1190
1239
|
type PluginListParamsType = Partial<PluginListParamsDTOType>;
|
|
1191
1240
|
type PluginInstallFailureType = PluginInstallFailureDTOType;
|
|
1192
1241
|
type PluginInstallResultType = PluginInstallResponseDTOType;
|
|
1242
|
+
type PluginUploadFailureType = PluginUploadFailureDTOType;
|
|
1193
1243
|
type PluginTagListItemType = PluginTagListType[number];
|
|
1194
1244
|
type PluginPruneDisabledResultType = PluginPruneDisabledResponseDTOType;
|
|
1195
1245
|
type PluginRuntimeConfigType = PluginRuntimeConfigDTOType;
|
|
@@ -1225,7 +1275,10 @@ declare class FastGPTPluginClient {
|
|
|
1225
1275
|
listWorkflows(requestOptions?: ClientRequestOptions): Promise<WorkflowListType>;
|
|
1226
1276
|
getTool(params: ToolGetParamsType, requestOptions?: ClientRequestOptions): Promise<ToolDetailType>;
|
|
1227
1277
|
listTools(params?: ToolListParamsType, requestOptions?: ClientRequestOptions): Promise<ToolListType>;
|
|
1228
|
-
uploadPlugin(
|
|
1278
|
+
uploadPlugin(files: (Blob | {
|
|
1279
|
+
file: Blob;
|
|
1280
|
+
filename?: string;
|
|
1281
|
+
})[], requestOptions?: ClientRequestOptions): Promise<PluginUploadResultType>;
|
|
1229
1282
|
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1230
1283
|
pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
|
|
1231
1284
|
installPlugins(urls: string[], requestOptions?: ClientRequestOptions): Promise<PluginInstallResultType>;
|
|
@@ -1329,5 +1382,5 @@ type AIProxyChannelsType = {
|
|
|
1329
1382
|
avatar: string;
|
|
1330
1383
|
}[];
|
|
1331
1384
|
//#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 };
|
|
1385
|
+
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 };
|
|
1333
1386
|
//# sourceMappingURL=index.d.ts.map
|