@fastgpt-plugin/sdk-client 0.1.0-alpha.1 → 0.1.0-alpha.3
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 +21 -3
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ declare const ModelListDTOSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
12
12
|
showStopSign: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
censor: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
vision: z.ZodBoolean;
|
|
15
|
+
audio: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
video: z.ZodOptional<z.ZodBoolean>;
|
|
15
17
|
reasoning: z.ZodBoolean;
|
|
16
18
|
reasoningEffort: z.ZodBoolean;
|
|
17
19
|
toolChoice: z.ZodBoolean;
|
|
@@ -247,6 +249,11 @@ declare const PluginPruneDisabledResponseDTOSchema: z.ZodObject<{
|
|
|
247
249
|
etag: z.ZodString;
|
|
248
250
|
}, z.core.$strip>>;
|
|
249
251
|
}, z.core.$strip>;
|
|
252
|
+
declare const PluginDeleteParamsSchema: z.ZodObject<{
|
|
253
|
+
pluginId: z.ZodString;
|
|
254
|
+
source: z.ZodString;
|
|
255
|
+
version: z.ZodString;
|
|
256
|
+
}, z.core.$strip>;
|
|
250
257
|
declare const PluginInstallFailureDTOSchema: z.ZodObject<{
|
|
251
258
|
url: z.ZodString;
|
|
252
259
|
reason: z.ZodObject<{
|
|
@@ -258,6 +265,7 @@ declare const PluginInstallFailureDTOSchema: z.ZodObject<{
|
|
|
258
265
|
declare const PluginInstallDTOSchema: {
|
|
259
266
|
request: z.ZodObject<{
|
|
260
267
|
urls: z.ZodArray<z.ZodString>;
|
|
268
|
+
source: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
261
269
|
}, z.core.$strip>;
|
|
262
270
|
response: z.ZodObject<{
|
|
263
271
|
failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -326,6 +334,7 @@ type PluginUploadResponseDTOType = z.infer<typeof PluginUploadResponseDTOSchema>
|
|
|
326
334
|
type PluginListDTOType = z.infer<typeof PluginListDTOSchema>;
|
|
327
335
|
type PluginListItemDTOType = z.infer<typeof PluginListItemDTOSchema>;
|
|
328
336
|
type PluginPruneDisabledResponseDTOType = z.infer<typeof PluginPruneDisabledResponseDTOSchema>;
|
|
337
|
+
type PluginDeleteParamsDTOType = z.infer<typeof PluginDeleteParamsSchema>;
|
|
329
338
|
type PluginInstallFailureDTOType = z.infer<typeof PluginInstallFailureDTOSchema>;
|
|
330
339
|
type PluginInstallResponseDTOType = z.infer<typeof PluginInstallDTOSchema.response>;
|
|
331
340
|
type PluginListParamsDTOType = z.infer<typeof PluginListParamsSchema>;
|
|
@@ -732,6 +741,8 @@ declare const LLMModelItemSchema: z$1.ZodObject<{
|
|
|
732
741
|
showStopSign: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
733
742
|
censor: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
734
743
|
vision: z$1.ZodBoolean;
|
|
744
|
+
audio: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
745
|
+
video: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
735
746
|
reasoning: z$1.ZodBoolean;
|
|
736
747
|
reasoningEffort: z$1.ZodBoolean;
|
|
737
748
|
toolChoice: z$1.ZodBoolean;
|
|
@@ -815,6 +826,8 @@ declare const ModelItemSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
815
826
|
showStopSign: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
816
827
|
censor: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
817
828
|
vision: z$1.ZodBoolean;
|
|
829
|
+
audio: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
830
|
+
video: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
818
831
|
reasoning: z$1.ZodBoolean;
|
|
819
832
|
reasoningEffort: z$1.ZodBoolean;
|
|
820
833
|
toolChoice: z$1.ZodBoolean;
|
|
@@ -1084,6 +1097,7 @@ type PluginListItemType = PluginListItemDTOType;
|
|
|
1084
1097
|
type PluginListParamsType = Partial<PluginListParamsDTOType>;
|
|
1085
1098
|
type PluginInstallFailureType = PluginInstallFailureDTOType;
|
|
1086
1099
|
type PluginInstallResultType = PluginInstallResponseDTOType;
|
|
1100
|
+
type PluginDeleteParamsType = PluginDeleteParamsDTOType;
|
|
1087
1101
|
type PluginUploadFailureType = PluginUploadFailureDTOType;
|
|
1088
1102
|
type PluginTagListItemType = PluginTagListType[number];
|
|
1089
1103
|
type PluginPruneDisabledResultType = PluginPruneDisabledResponseDTOType;
|
|
@@ -1119,6 +1133,9 @@ type FastGPTPluginClientOptions = {
|
|
|
1119
1133
|
type ClientRequestOptions = {
|
|
1120
1134
|
signal?: AbortSignal;
|
|
1121
1135
|
};
|
|
1136
|
+
type PluginSourceRequestOptions = ClientRequestOptions & {
|
|
1137
|
+
source?: PluginSourceType;
|
|
1138
|
+
};
|
|
1122
1139
|
//#endregion
|
|
1123
1140
|
//#region src/client.d.ts
|
|
1124
1141
|
declare class FastGPTPluginClient {
|
|
@@ -1134,9 +1151,10 @@ declare class FastGPTPluginClient {
|
|
|
1134
1151
|
file: Blob;
|
|
1135
1152
|
filename?: string;
|
|
1136
1153
|
})[], requestOptions?: ClientRequestOptions): Promise<PluginUploadResultType>;
|
|
1137
|
-
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?:
|
|
1154
|
+
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: PluginSourceRequestOptions): Promise<void>;
|
|
1138
1155
|
pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
|
|
1139
|
-
installPlugins(urls: string[], requestOptions?:
|
|
1156
|
+
installPlugins(urls: string[], requestOptions?: PluginSourceRequestOptions): Promise<PluginInstallResultType>;
|
|
1157
|
+
deletePlugin(params: PluginDeleteParamsType, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1140
1158
|
listPlugins(params?: PluginListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginListType>;
|
|
1141
1159
|
listPluginVersions(params: PluginVersionListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginVersionListType>;
|
|
1142
1160
|
listPluginTags(_requestOptions?: ClientRequestOptions): Promise<PluginTagListType>;
|
|
@@ -1247,5 +1265,5 @@ type AIProxyChannelsType = {
|
|
|
1247
1265
|
avatar: string;
|
|
1248
1266
|
}[];
|
|
1249
1267
|
//#endregion
|
|
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 };
|
|
1268
|
+
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 PluginDeleteParamsType, type PluginInstallFailureType, type PluginInstallResultType, type PluginListItemType, type PluginListParamsType, type PluginListType, PluginPermissionEnum, PluginPermissionEnumSchema, type PluginPermissionEnumType, type PluginPruneDisabledResultType, type PluginRuntimeConfigType, type PluginServiceFeaturesType, type PluginSourceRequestOptions, 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 };
|
|
1251
1269
|
//# sourceMappingURL=index.d.ts.map
|