@fastgpt-plugin/sdk-client 0.0.1-alpha.8 → 0.0.1-alpha.9
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 +9 -6
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ declare const ModelListDTOSchema: z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.Zo
|
|
|
324
324
|
outputPrice: z$2.ZodOptional<z$2.ZodNumber>;
|
|
325
325
|
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
326
326
|
type: z$2.ZodLiteral<"rerank">;
|
|
327
|
+
maxToken: z$2.ZodNumber;
|
|
327
328
|
provider: z$2.ZodString;
|
|
328
329
|
model: z$2.ZodString;
|
|
329
330
|
name: z$2.ZodString;
|
|
@@ -424,12 +425,12 @@ declare const PluginBaseDTOSchema: z$2.ZodObject<{
|
|
|
424
425
|
}, z$2.core.$strip>>;
|
|
425
426
|
}, z$2.core.$strip>;
|
|
426
427
|
declare const PluginListItemDTOSchema: z$2.ZodObject<{
|
|
427
|
-
type: z$2.ZodString;
|
|
428
428
|
name: z$2.ZodObject<{
|
|
429
429
|
en: z$2.ZodString;
|
|
430
430
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
431
431
|
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
432
432
|
}, z$2.core.$strip>;
|
|
433
|
+
type: z$2.ZodString;
|
|
433
434
|
description: z$2.ZodOptional<z$2.ZodObject<{
|
|
434
435
|
en: z$2.ZodString;
|
|
435
436
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -447,12 +448,12 @@ declare const PluginListItemDTOSchema: z$2.ZodObject<{
|
|
|
447
448
|
source: z$2.ZodString;
|
|
448
449
|
}, z$2.core.$strip>;
|
|
449
450
|
declare const PluginListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
450
|
-
type: z$2.ZodString;
|
|
451
451
|
name: z$2.ZodObject<{
|
|
452
452
|
en: z$2.ZodString;
|
|
453
453
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
454
454
|
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
455
455
|
}, z$2.core.$strip>;
|
|
456
|
+
type: z$2.ZodString;
|
|
456
457
|
description: z$2.ZodOptional<z$2.ZodObject<{
|
|
457
458
|
en: z$2.ZodString;
|
|
458
459
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -650,12 +651,12 @@ declare const ToolListItemDTOSchema: z$2.ZodObject<{
|
|
|
650
651
|
source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
|
|
651
652
|
isToolset: z$2.ZodBoolean;
|
|
652
653
|
hasSecret: z$2.ZodBoolean;
|
|
653
|
-
type: z$2.ZodLiteral<"tool">;
|
|
654
654
|
name: z$2.ZodObject<{
|
|
655
655
|
en: z$2.ZodString;
|
|
656
656
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
657
657
|
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
658
658
|
}, z$2.core.$strip>;
|
|
659
|
+
type: z$2.ZodLiteral<"tool">;
|
|
659
660
|
description: z$2.ZodObject<{
|
|
660
661
|
en: z$2.ZodString;
|
|
661
662
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -704,12 +705,12 @@ declare const ToolListDTOSchema: z$2.ZodArray<z$2.ZodObject<{
|
|
|
704
705
|
source: z$2.ZodUnion<[z$2.ZodLiteral<"system">, z$2.ZodString]>;
|
|
705
706
|
isToolset: z$2.ZodBoolean;
|
|
706
707
|
hasSecret: z$2.ZodBoolean;
|
|
707
|
-
type: z$2.ZodLiteral<"tool">;
|
|
708
708
|
name: z$2.ZodObject<{
|
|
709
709
|
en: z$2.ZodString;
|
|
710
710
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
711
711
|
"zh-Hant": z$2.ZodOptional<z$2.ZodString>;
|
|
712
712
|
}, z$2.core.$strip>;
|
|
713
|
+
type: z$2.ZodLiteral<"tool">;
|
|
713
714
|
description: z$2.ZodObject<{
|
|
714
715
|
en: z$2.ZodString;
|
|
715
716
|
"zh-CN": z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -935,6 +936,7 @@ declare const EmbeddingModelItemSchema: z$1.ZodObject<{
|
|
|
935
936
|
type EmbeddingModelItemType = z$1.infer<typeof EmbeddingModelItemSchema>;
|
|
936
937
|
declare const RerankModelItemSchema: z$1.ZodObject<{
|
|
937
938
|
type: z$1.ZodLiteral<"rerank">;
|
|
939
|
+
maxToken: z$1.ZodNumber;
|
|
938
940
|
provider: z$1.ZodString;
|
|
939
941
|
model: z$1.ZodString;
|
|
940
942
|
name: z$1.ZodString;
|
|
@@ -1013,6 +1015,7 @@ declare const ModelItemSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
1013
1015
|
outputPrice: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1014
1016
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1015
1017
|
type: z$1.ZodLiteral<"rerank">;
|
|
1018
|
+
maxToken: z$1.ZodNumber;
|
|
1016
1019
|
provider: z$1.ZodString;
|
|
1017
1020
|
model: z$1.ZodString;
|
|
1018
1021
|
name: z$1.ZodString;
|
|
@@ -1345,11 +1348,11 @@ type MIMEType = z$1.infer<typeof MIMESchema>;
|
|
|
1345
1348
|
//#endregion
|
|
1346
1349
|
//#region ../../packages/domain/src/value-objects/result.vo.d.ts
|
|
1347
1350
|
/** usecase, interface-adapter 都要使用这个类型, 手动处理错误,并且能从内到外把错误透出来*/
|
|
1348
|
-
type ResultFailure<E =
|
|
1351
|
+
type ResultFailure<E extends Error = Error> = {
|
|
1349
1352
|
reason: I18nStringType;
|
|
1350
1353
|
error: E;
|
|
1351
1354
|
};
|
|
1352
|
-
type Result<T = unknown, E =
|
|
1355
|
+
type Result<T = unknown, E extends Error = Error> = [T, null] | [null, ResultFailure<E>];
|
|
1353
1356
|
//#endregion
|
|
1354
1357
|
//#region ../../packages/infrastructure/src/plugin/utils/pkg-parser.d.ts
|
|
1355
1358
|
type ParsedPkgFile = {
|