@fastgpt-plugin/sdk-client 0.0.1-alpha.2 → 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 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<{
@@ -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>;
@@ -761,6 +790,7 @@ 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]>>>;
793
+ fallbackLatestVersion: z$2.ZodPipe<z$2.ZodTransform<unknown, unknown>, z$2.ZodOptional<z$2.ZodBoolean>>;
764
794
  }, z$2.core.$strip>;
765
795
  type ToolGetParamsDTOType = z$2.infer<typeof ToolGetParamsDTOSchema>;
766
796
  declare const ToolListParamsDTOSchema: z$2.ZodObject<{
@@ -1184,6 +1214,7 @@ type ToolListType = ToolListDTOType;
1184
1214
  type ToolListItemType = ToolListItemDTOType;
1185
1215
  type ToolListParamsType = Partial<ToolListParamsDTOType>;
1186
1216
  type PluginSummaryType = PluginDTOType;
1217
+ type PluginUploadResultType = PluginUploadResponseDTOType;
1187
1218
  type PluginListType = PluginListDTOType;
1188
1219
  type PluginListItemType = PluginListItemDTOType;
1189
1220
  type PluginListParamsType = Partial<PluginListParamsDTOType>;
@@ -1224,7 +1255,10 @@ declare class FastGPTPluginClient {
1224
1255
  listWorkflows(requestOptions?: ClientRequestOptions): Promise<WorkflowListType>;
1225
1256
  getTool(params: ToolGetParamsType, requestOptions?: ClientRequestOptions): Promise<ToolDetailType>;
1226
1257
  listTools(params?: ToolListParamsType, requestOptions?: ClientRequestOptions): Promise<ToolListType>;
1227
- uploadPlugin(file: Blob, filename?: string, requestOptions?: ClientRequestOptions): Promise<PluginSummaryType>;
1258
+ uploadPlugin(files: (Blob | {
1259
+ file: Blob;
1260
+ filename?: string;
1261
+ })[], requestOptions?: ClientRequestOptions): Promise<PluginUploadResultType>;
1228
1262
  confirmPlugin(uniqueIds: PluginUniqueIdType[], requestOptions?: ClientRequestOptions): Promise<void>;
1229
1263
  pruneDisabledPlugins(requestOptions?: ClientRequestOptions): Promise<PluginPruneDisabledResultType>;
1230
1264
  installPlugins(urls: string[], requestOptions?: ClientRequestOptions): Promise<PluginInstallResultType>;
@@ -1328,5 +1362,5 @@ type AIProxyChannelsType = {
1328
1362
  avatar: string;
1329
1363
  }[];
1330
1364
  //#endregion
1331
- 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 };
1332
1366
  //# sourceMappingURL=index.d.ts.map