@fastgpt-plugin/sdk-client 0.0.1-alpha.4 → 0.0.1-alpha.6

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
@@ -424,12 +424,12 @@ declare const PluginBaseDTOSchema: z$2.ZodObject<{
424
424
  }, z$2.core.$strip>>;
425
425
  }, z$2.core.$strip>;
426
426
  declare const PluginListItemDTOSchema: z$2.ZodObject<{
427
- type: z$2.ZodString;
428
427
  name: z$2.ZodObject<{
429
428
  en: z$2.ZodString;
430
429
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
431
430
  "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
432
431
  }, z$2.core.$strip>;
432
+ type: z$2.ZodString;
433
433
  description: z$2.ZodOptional<z$2.ZodObject<{
434
434
  en: z$2.ZodString;
435
435
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
@@ -447,12 +447,12 @@ declare const PluginListItemDTOSchema: z$2.ZodObject<{
447
447
  source: z$2.ZodString;
448
448
  }, z$2.core.$strip>;
449
449
  declare const PluginListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
450
- type: z$2.ZodString;
451
450
  name: z$2.ZodObject<{
452
451
  en: z$2.ZodString;
453
452
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
454
453
  "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
455
454
  }, z$2.core.$strip>;
455
+ type: z$2.ZodString;
456
456
  description: z$2.ZodOptional<z$2.ZodObject<{
457
457
  en: z$2.ZodString;
458
458
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
@@ -469,34 +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 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<{
472
+ declare const PluginUploadFailureDTOSchema: z$2.ZodObject<{
473
+ fileName: z$2.ZodOptional<z$2.ZodString>;
474
+ reason: z$2.ZodObject<{
479
475
  en: z$2.ZodString;
480
476
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
481
477
  "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
482
478
  }, 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>;
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>>;
498
508
  }, z$2.core.$strip>>;
499
- }, 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>;
500
518
  declare const PluginPruneDisabledResponseDTOSchema: z$2.ZodObject<{
501
519
  count: z$2.ZodNumber;
502
520
  plugins: z$2.ZodArray<z$2.ZodObject<{
@@ -572,8 +590,14 @@ declare const PluginVersionListParamsSchema: z$2.ZodObject<{
572
590
  pluginId: z$2.ZodString;
573
591
  source: z$2.ZodString;
574
592
  }, z$2.core.$strip>;
575
- declare const PluginRuntimeConfigSchema: z$2.ZodObject<{}, z$2.core.$catchall<z$2.ZodUnknown>>;
593
+ declare const PluginRuntimeConfigSchema: z$2.ZodObject<{
594
+ minPods: z$2.ZodNumber;
595
+ maxPods: z$2.ZodNumber;
596
+ podTimeout: z$2.ZodNumber;
597
+ maxConcurrentRequestsPerPod: z$2.ZodNumber;
598
+ }, z$2.core.$strict>;
576
599
  type PluginDTOType = z$2.infer<typeof PluginBaseDTOSchema>;
600
+ type PluginUploadFailureDTOType = z$2.infer<typeof PluginUploadFailureDTOSchema>;
577
601
  type PluginUploadResponseDTOType = z$2.infer<typeof PluginUploadResponseDTOSchema>;
578
602
  type PluginListDTOType = z$2.infer<typeof PluginListDTOSchema>;
579
603
  type PluginListItemDTOType = z$2.infer<typeof PluginListItemDTOSchema>;
@@ -625,12 +649,12 @@ declare const ToolListItemDTOSchema: z$2.ZodObject<{
625
649
  }, z$2.core.$strip>>>;
626
650
  source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
627
651
  isToolset: z$2.ZodBoolean;
628
- type: z$2.ZodLiteral<"tool">;
629
652
  name: z$2.ZodObject<{
630
653
  en: z$2.ZodString;
631
654
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
632
655
  "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
633
656
  }, z$2.core.$strip>;
657
+ type: z$2.ZodLiteral<"tool">;
634
658
  description: z$2.ZodObject<{
635
659
  en: z$2.ZodString;
636
660
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
@@ -678,12 +702,12 @@ declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
678
702
  }, z$2.core.$strip>>>;
679
703
  source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
680
704
  isToolset: z$2.ZodBoolean;
681
- type: z$2.ZodLiteral<"tool">;
682
705
  name: z$2.ZodObject<{
683
706
  en: z$2.ZodString;
684
707
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
685
708
  "zh-Hant": z$2.ZodOptional<z$2.ZodString>;
686
709
  }, z$2.core.$strip>;
710
+ type: z$2.ZodLiteral<"tool">;
687
711
  description: z$2.ZodObject<{
688
712
  en: z$2.ZodString;
689
713
  "zh-CN": z$2.ZodOptional<z$2.ZodString>;
@@ -1220,6 +1244,7 @@ type PluginListItemType = PluginListItemDTOType;
1220
1244
  type PluginListParamsType = Partial<PluginListParamsDTOType>;
1221
1245
  type PluginInstallFailureType = PluginInstallFailureDTOType;
1222
1246
  type PluginInstallResultType = PluginInstallResponseDTOType;
1247
+ type PluginUploadFailureType = PluginUploadFailureDTOType;
1223
1248
  type PluginTagListItemType = PluginTagListType[number];
1224
1249
  type PluginPruneDisabledResultType = PluginPruneDisabledResponseDTOType;
1225
1250
  type PluginRuntimeConfigType = PluginRuntimeConfigDTOType;
@@ -1362,5 +1387,5 @@ type AIProxyChannelsType = {
1362
1387
  avatar: string;
1363
1388
  }[];
1364
1389
  //#endregion
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 };
1390
+ 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 };
1366
1391
  //# sourceMappingURL=index.d.ts.map