@fastgpt-plugin/sdk-client 0.0.1-alpha.2
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.md +16 -0
- package/dist/index.d.ts +1332 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +31 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# FastGPT-plugin SDK client
|
|
2
|
+
|
|
3
|
+
提供接口供 FastGPT 调用。
|
|
4
|
+
|
|
5
|
+
`listPlugins()` 现在返回分页结构:
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
type PluginListType = {
|
|
9
|
+
data: PluginListItemType[];
|
|
10
|
+
offset: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
total: number;
|
|
13
|
+
};
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
同时导出了 `PluginListItemType` 和 `PluginSourceType`,方便调用方处理新的 `source` / 分页返回。
|