@fastgpt-plugin/sdk-client 0.0.1-alpha.10 → 0.0.1-alpha.11
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/README.en.md +7 -0
- package/README.md +7 -0
- package/dist/index.d.ts +18 -3
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -16,3 +16,10 @@ type PluginListType = {
|
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
`PluginListItemType` and `PluginSourceType` are also exported so callers can handle the new `source` field and paginated responses.
|
|
19
|
+
|
|
20
|
+
`getPluginServiceFeatures()` returns the enabled Plugin service capabilities:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
const features = await client.getPluginServiceFeatures();
|
|
24
|
+
// { remoteDebug: boolean }
|
|
25
|
+
```
|
package/README.md
CHANGED
|
@@ -16,3 +16,10 @@ type PluginListType = {
|
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
同时导出了 `PluginListItemType` 和 `PluginSourceType`,方便调用方处理新的 `source` / 分页返回。
|
|
19
|
+
|
|
20
|
+
`getPluginServiceFeatures()` 可查询当前 Plugin 服务已启用的能力:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
const features = await client.getPluginServiceFeatures();
|
|
24
|
+
// { remoteDebug: boolean }
|
|
25
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -368,6 +368,7 @@ declare const PluginDebugSessionConnectionKeyExchangeResponseDTOSchema: z$1.ZodO
|
|
|
368
368
|
transport: z$1.ZodLiteral<"websocket">;
|
|
369
369
|
source: z$1.ZodString;
|
|
370
370
|
connectToken: z$1.ZodString;
|
|
371
|
+
fastgptBaseUrl: z$1.ZodString;
|
|
371
372
|
expiresAt: z$1.ZodNumber;
|
|
372
373
|
}, z$1.core.$strip>;
|
|
373
374
|
declare const PluginDebugSessionGetParamsDTOSchema: z$1.ZodObject<{
|
|
@@ -433,6 +434,12 @@ type PluginDebugSessionStatusResponseDTO = z$1.infer<typeof PluginDebugSessionSt
|
|
|
433
434
|
type PluginDebugSessionRevokeRequestDTO = z$1.infer<typeof PluginDebugSessionRevokeRequestDTOSchema>;
|
|
434
435
|
type PluginDebugSessionRevokeResponseDTO = z$1.infer<typeof PluginDebugSessionRevokeResponseDTOSchema>;
|
|
435
436
|
//#endregion
|
|
437
|
+
//#region ../../packages/interface-adapter/src/contracts/dto/plugin-service-feature.dto.d.ts
|
|
438
|
+
declare const PluginServiceFeaturesDTOSchema: z$1.ZodObject<{
|
|
439
|
+
remoteDebug: z$1.ZodBoolean;
|
|
440
|
+
}, z$1.core.$strip>;
|
|
441
|
+
type PluginServiceFeaturesDTO = z$1.infer<typeof PluginServiceFeaturesDTOSchema>;
|
|
442
|
+
//#endregion
|
|
436
443
|
//#region ../../packages/interface-adapter/src/contracts/dto/tool.dto.d.ts
|
|
437
444
|
declare const ToolRunInputDTOSchema: z.ZodObject<{
|
|
438
445
|
pluginId: z.ZodString;
|
|
@@ -675,7 +682,10 @@ declare const WorkflowTemplateDTOSchema: z.ZodObject<{
|
|
|
675
682
|
type: z.ZodString;
|
|
676
683
|
author: z.ZodOptional<z.ZodString>;
|
|
677
684
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
678
|
-
userGuide: z.ZodOptional<z.ZodString
|
|
685
|
+
userGuide: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
686
|
+
type: z.ZodString;
|
|
687
|
+
content: z.ZodString;
|
|
688
|
+
}, z.core.$strip>]>>;
|
|
679
689
|
isQuickTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
680
690
|
order: z.ZodOptional<z.ZodNumber>;
|
|
681
691
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
@@ -694,7 +704,10 @@ declare const WorkflowListDTOSchema: z.ZodArray<z.ZodObject<{
|
|
|
694
704
|
type: z.ZodString;
|
|
695
705
|
author: z.ZodOptional<z.ZodString>;
|
|
696
706
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
697
|
-
userGuide: z.ZodOptional<z.ZodString
|
|
707
|
+
userGuide: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
708
|
+
type: z.ZodString;
|
|
709
|
+
content: z.ZodString;
|
|
710
|
+
}, z.core.$strip>]>>;
|
|
698
711
|
isQuickTemplate: z.ZodOptional<z.ZodBoolean>;
|
|
699
712
|
order: z.ZodOptional<z.ZodNumber>;
|
|
700
713
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1087,6 +1100,7 @@ type PluginDebugSessionStatusParamsType = PluginDebugSessionGetParamsDTO;
|
|
|
1087
1100
|
type PluginDebugSessionStatusResultType = PluginDebugSessionStatusResponseDTO;
|
|
1088
1101
|
type PluginDebugSessionRevokeParamsType = PluginDebugSessionRevokeRequestDTO;
|
|
1089
1102
|
type PluginDebugSessionRevokeResultType = PluginDebugSessionRevokeResponseDTO;
|
|
1103
|
+
type PluginServiceFeaturesType = PluginServiceFeaturesDTO;
|
|
1090
1104
|
declare const pluginTagList: PluginTagListType;
|
|
1091
1105
|
type ModelListType = ModelListDTOType;
|
|
1092
1106
|
type WorkflowTemplateType = WorkflowTemplateDTOType;
|
|
@@ -1126,6 +1140,7 @@ declare class FastGPTPluginClient {
|
|
|
1126
1140
|
listPlugins(params?: PluginListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginListType>;
|
|
1127
1141
|
listPluginVersions(params: PluginVersionListParamsType, requestOptions?: ClientRequestOptions): Promise<PluginVersionListType>;
|
|
1128
1142
|
listPluginTags(_requestOptions?: ClientRequestOptions): Promise<PluginTagListType>;
|
|
1143
|
+
getPluginServiceFeatures(requestOptions?: ClientRequestOptions): Promise<PluginServiceFeaturesType>;
|
|
1129
1144
|
getPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<PluginRuntimeConfigType>;
|
|
1130
1145
|
setPluginRuntimeConfig(pluginId: string, config: PluginRuntimeConfigType, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
1131
1146
|
resetPluginRuntimeConfig(pluginId: string, requestOptions?: ClientRequestOptions): Promise<void>;
|
|
@@ -1232,5 +1247,5 @@ type AIProxyChannelsType = {
|
|
|
1232
1247
|
avatar: string;
|
|
1233
1248
|
}[];
|
|
1234
1249
|
//#endregion
|
|
1235
|
-
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 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 };
|
|
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 };
|
|
1236
1251
|
//# sourceMappingURL=index.d.ts.map
|