@fastgpt-plugin/sdk-client 0.1.0-alpha.4 → 0.1.0-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 +30 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -260,6 +260,25 @@ declare const PluginUploadResponseDTOSchema: z.ZodObject<{
|
|
|
260
260
|
}, z.core.$strip>;
|
|
261
261
|
}, z.core.$strip>>>;
|
|
262
262
|
}, z.core.$strip>;
|
|
263
|
+
declare const PluginConfirmResultDTOSchema: z.ZodObject<{
|
|
264
|
+
confirmed: z.ZodArray<z.ZodObject<{
|
|
265
|
+
pluginId: z.ZodString;
|
|
266
|
+
version: z.ZodString;
|
|
267
|
+
etag: z.ZodString;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
270
|
+
uniqueId: z.ZodObject<{
|
|
271
|
+
pluginId: z.ZodString;
|
|
272
|
+
version: z.ZodString;
|
|
273
|
+
etag: z.ZodString;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
reason: z.ZodObject<{
|
|
276
|
+
en: z.ZodString;
|
|
277
|
+
"zh-CN": z.ZodOptional<z.ZodString>;
|
|
278
|
+
"zh-Hant": z.ZodOptional<z.ZodString>;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
}, z.core.$strip>;
|
|
263
282
|
declare const PluginPruneDisabledResponseDTOSchema: z.ZodObject<{
|
|
264
283
|
count: z.ZodNumber;
|
|
265
284
|
plugins: z.ZodArray<z.ZodObject<{
|
|
@@ -268,11 +287,16 @@ declare const PluginPruneDisabledResponseDTOSchema: z.ZodObject<{
|
|
|
268
287
|
etag: z.ZodString;
|
|
269
288
|
}, z.core.$strip>>;
|
|
270
289
|
}, z.core.$strip>;
|
|
271
|
-
declare const PluginDeleteParamsSchema: z.ZodObject<{
|
|
290
|
+
declare const PluginDeleteParamsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
272
291
|
pluginId: z.ZodString;
|
|
273
292
|
source: z.ZodString;
|
|
274
293
|
version: z.ZodString;
|
|
275
|
-
|
|
294
|
+
scope: z.ZodOptional<z.ZodLiteral<"version">>;
|
|
295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
+
pluginId: z.ZodString;
|
|
297
|
+
source: z.ZodString;
|
|
298
|
+
scope: z.ZodLiteral<"allVersions">;
|
|
299
|
+
}, z.core.$strip>]>;
|
|
276
300
|
declare const PluginInstallFailureDTOSchema: z.ZodObject<{
|
|
277
301
|
url: z.ZodString;
|
|
278
302
|
reason: z.ZodObject<{
|
|
@@ -352,6 +376,7 @@ type PluginUploadFailureDTOType = z.infer<typeof PluginUploadFailureDTOSchema>;
|
|
|
352
376
|
type PluginUploadResponseDTOType = z.infer<typeof PluginUploadResponseDTOSchema>;
|
|
353
377
|
type PluginListDTOType = z.infer<typeof PluginListDTOSchema>;
|
|
354
378
|
type PluginListItemDTOType = z.infer<typeof PluginListItemDTOSchema>;
|
|
379
|
+
type PluginConfirmResultDTOType = z.infer<typeof PluginConfirmResultDTOSchema>;
|
|
355
380
|
type PluginPruneDisabledResponseDTOType = z.infer<typeof PluginPruneDisabledResponseDTOSchema>;
|
|
356
381
|
type PluginDeleteParamsDTOType = z.infer<typeof PluginDeleteParamsSchema>;
|
|
357
382
|
type PluginInstallFailureDTOType = z.infer<typeof PluginInstallFailureDTOSchema>;
|
|
@@ -1098,6 +1123,7 @@ type PluginListParamsType = Partial<PluginListParamsDTOType>;
|
|
|
1098
1123
|
type PluginInstallFailureType = PluginInstallFailureDTOType;
|
|
1099
1124
|
type PluginInstallResultType = PluginInstallResponseDTOType;
|
|
1100
1125
|
type PluginDeleteParamsType = PluginDeleteParamsDTOType;
|
|
1126
|
+
type PluginConfirmResultType = PluginConfirmResultDTOType;
|
|
1101
1127
|
type PluginUploadFailureType = PluginUploadFailureDTOType;
|
|
1102
1128
|
type PluginTagListItemType = PluginTagListType[number];
|
|
1103
1129
|
type PluginPruneDisabledResultType = PluginPruneDisabledResponseDTOType;
|
|
@@ -1153,7 +1179,7 @@ declare class FastGPTPluginClient {
|
|
|
1153
1179
|
})[], requestOptions?: ClientRequestOptions & {
|
|
1154
1180
|
source?: PluginSourceType;
|
|
1155
1181
|
}): Promise<PluginUploadResultType>;
|
|
1156
|
-
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: PluginSourceRequestOptions): Promise<
|
|
1182
|
+
confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: PluginSourceRequestOptions): Promise<PluginConfirmResultType>;
|
|
1157
1183
|
pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
|
|
1158
1184
|
installPlugins(urls: string[], requestOptions?: PluginSourceRequestOptions): Promise<PluginInstallResultType>;
|
|
1159
1185
|
deletePlugin(params: PluginDeleteParamsType, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
@@ -1267,5 +1293,5 @@ type AIProxyChannelsType = {
|
|
|
1267
1293
|
avatar: string;
|
|
1268
1294
|
}[];
|
|
1269
1295
|
//#endregion
|
|
1270
|
-
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 };
|
|
1296
|
+
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 PluginConfirmResultType, 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 };
|
|
1271
1297
|
//# sourceMappingURL=index.d.ts.map
|