@yuntijs/arcadia-bff-sdk 1.2.69 → 1.2.70
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/cjs/index.d.ts +21 -0
- package/dist/cjs/sdk.d.ts +101 -1
- package/dist/cjs/sdk.js +29 -0
- package/dist/cjs/taro.d.ts +15 -0
- package/dist/esm/index.d.ts +21 -0
- package/dist/esm/sdk.d.ts +101 -1
- package/dist/esm/sdk.js +82 -71
- package/dist/esm/taro.d.ts +15 -0
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -454,7 +454,10 @@ export type CreateKnowledgeBaseFileChunkInput = {
|
|
|
454
454
|
fileId: Scalars['String']['input'];
|
|
455
455
|
};
|
|
456
456
|
export type CreateKnowledgeBaseFileInput = {
|
|
457
|
-
/**
|
|
457
|
+
/**
|
|
458
|
+
* 文件存储路径
|
|
459
|
+
* 如果知识库为表格数据类型,则一次仅允许上传一个文件
|
|
460
|
+
*/
|
|
458
461
|
filePaths?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
459
462
|
/** knowledgebase所属知识库 */
|
|
460
463
|
knowledgebase: Scalars['String']['input'];
|
|
@@ -484,6 +487,10 @@ export type CreateKnowledgeBaseInput = {
|
|
|
484
487
|
displayName?: InputMaybe<Scalars['String']['input']>;
|
|
485
488
|
/** embedder指当前知识库使用的embedding向量化模型 */
|
|
486
489
|
embedder: TypedObjectReferenceInput;
|
|
490
|
+
/** headers结构化数据列 */
|
|
491
|
+
headers?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
492
|
+
/** indexHeader结构化数据的索引列 */
|
|
493
|
+
indexHeader?: InputMaybe<Scalars['Int']['input']>;
|
|
487
494
|
/** 知识库资源标签 */
|
|
488
495
|
labels?: InputMaybe<Scalars['Map']['input']>;
|
|
489
496
|
/** 知识库资源名称(不可同名) */
|
|
@@ -493,6 +500,24 @@ export type CreateKnowledgeBaseInput = {
|
|
|
493
500
|
/** "向量数据库(目前不需要填写,直接使用系统默认的向量数据库) */
|
|
494
501
|
vectorStore?: InputMaybe<TypedObjectReferenceInput>;
|
|
495
502
|
};
|
|
503
|
+
export type CreateKnowledgeBaseStructuredFileInput = {
|
|
504
|
+
filePath: Scalars['String']['input'];
|
|
505
|
+
/** knowledgebase所属知识库 */
|
|
506
|
+
knowledgebase: Scalars['String']['input'];
|
|
507
|
+
/** >rowHeader.默认为rowHeader+1 */
|
|
508
|
+
rowDataStart?: InputMaybe<Scalars['Int']['input']>;
|
|
509
|
+
/** 1~9 */
|
|
510
|
+
rowHeader?: InputMaybe<Scalars['Int']['input']>;
|
|
511
|
+
/** 如果知识库为表格数据类型,文件为Excel,CSV等文本数据 */
|
|
512
|
+
sheet: Scalars['String']['input'];
|
|
513
|
+
/**
|
|
514
|
+
* source原文件所在存储源,有如下可能:
|
|
515
|
+
* - datasource : 代表为从数据源中选择的文件
|
|
516
|
+
* - dataset : 代表为从数据集中选择的文件
|
|
517
|
+
* - nil: 代表为直接上传的文件
|
|
518
|
+
*/
|
|
519
|
+
source?: InputMaybe<TypedObjectReferenceInput>;
|
|
520
|
+
};
|
|
496
521
|
/** 创建模型的输入 */
|
|
497
522
|
export type CreateModelInput = {
|
|
498
523
|
/** 模型资源描述 */
|
|
@@ -1286,8 +1311,12 @@ export type KnowledgeBase = {
|
|
|
1286
1311
|
/** embedder指当前知识库使用的embedding向量化模型,即 Kind 为 Embedder */
|
|
1287
1312
|
embedder?: Maybe<TypedObjectReference>;
|
|
1288
1313
|
embedderType?: Maybe<Scalars['String']['output']>;
|
|
1314
|
+
/** 结构化知识库:headers */
|
|
1315
|
+
headers?: Maybe<Array<Scalars['String']['output']>>;
|
|
1289
1316
|
/** 知识库id,为CR资源中的metadata.uid */
|
|
1290
1317
|
id?: Maybe<Scalars['String']['output']>;
|
|
1318
|
+
/** 结构化知识库:索引列 */
|
|
1319
|
+
indexHeader?: Maybe<Scalars['Int']['output']>;
|
|
1291
1320
|
/** 一些用于标记,选择的的标签 */
|
|
1292
1321
|
labels?: Maybe<Scalars['Map']['output']>;
|
|
1293
1322
|
/** 知识库状态的原因的详细内容 */
|
|
@@ -1365,11 +1394,15 @@ export type KnowledgeBaseMutation = {
|
|
|
1365
1394
|
createKnowledgeBase: KnowledgeBase;
|
|
1366
1395
|
createKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
|
|
1367
1396
|
createKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
|
|
1397
|
+
createKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
|
|
1398
|
+
createKnowledgeBaseStructuredFiles?: Maybe<Scalars['Void']['output']>;
|
|
1368
1399
|
deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;
|
|
1369
1400
|
deleteKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
|
|
1370
1401
|
deleteKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
|
|
1402
|
+
deleteKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
|
|
1371
1403
|
updateKnowledgeBase: KnowledgeBase;
|
|
1372
1404
|
updateKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
|
|
1405
|
+
updateKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
|
|
1373
1406
|
};
|
|
1374
1407
|
export type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {
|
|
1375
1408
|
input: CreateKnowledgeBaseInput;
|
|
@@ -1380,6 +1413,12 @@ export type KnowledgeBaseMutationCreateKnowledgeBaseFileChunkArgs = {
|
|
|
1380
1413
|
export type KnowledgeBaseMutationCreateKnowledgeBaseFilesArgs = {
|
|
1381
1414
|
input: CreateKnowledgeBaseFileInput;
|
|
1382
1415
|
};
|
|
1416
|
+
export type KnowledgeBaseMutationCreateKnowledgeBaseStructuredFileChunkArgs = {
|
|
1417
|
+
input: CreateKnowledgeBaseFileChunkInput;
|
|
1418
|
+
};
|
|
1419
|
+
export type KnowledgeBaseMutationCreateKnowledgeBaseStructuredFilesArgs = {
|
|
1420
|
+
input: CreateKnowledgeBaseStructuredFileInput;
|
|
1421
|
+
};
|
|
1383
1422
|
export type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {
|
|
1384
1423
|
input?: InputMaybe<DeleteCommonInput>;
|
|
1385
1424
|
};
|
|
@@ -1389,19 +1428,27 @@ export type KnowledgeBaseMutationDeleteKnowledgeBaseFileChunkArgs = {
|
|
|
1389
1428
|
export type KnowledgeBaseMutationDeleteKnowledgeBaseFilesArgs = {
|
|
1390
1429
|
input: DeleteKnowledgeBaseFileInput;
|
|
1391
1430
|
};
|
|
1431
|
+
export type KnowledgeBaseMutationDeleteKnowledgeBaseStructuredFileChunkArgs = {
|
|
1432
|
+
input: DeleteKnowledgeBaseFileChunkInput;
|
|
1433
|
+
};
|
|
1392
1434
|
export type KnowledgeBaseMutationUpdateKnowledgeBaseArgs = {
|
|
1393
1435
|
input?: InputMaybe<UpdateKnowledgeBaseInput>;
|
|
1394
1436
|
};
|
|
1395
1437
|
export type KnowledgeBaseMutationUpdateKnowledgeBaseFileChunkArgs = {
|
|
1396
1438
|
input: UpdateKnowledgeBaseFileChunkInput;
|
|
1397
1439
|
};
|
|
1440
|
+
export type KnowledgeBaseMutationUpdateKnowledgeBaseStructuredFileChunkArgs = {
|
|
1441
|
+
input: UpdateKnowledgeBaseFileChunkInput;
|
|
1442
|
+
};
|
|
1398
1443
|
export type KnowledgeBaseQuery = {
|
|
1399
1444
|
__typename?: 'KnowledgeBaseQuery';
|
|
1400
1445
|
getKnowledgeBase: KnowledgeBase;
|
|
1401
1446
|
getKnowledgeBaseFile: KnowledgeBaseFile;
|
|
1402
1447
|
listKnowledgeBaseFileChunks: PaginatedResult;
|
|
1403
1448
|
listKnowledgeBaseFiles: PaginatedResult;
|
|
1449
|
+
listKnowledgeBaseStructuredFileChunks: PaginatedResult;
|
|
1404
1450
|
listKnowledgeBases: PaginatedResult;
|
|
1451
|
+
showStructuredFileInfo: StructuredFileInfo;
|
|
1405
1452
|
};
|
|
1406
1453
|
export type KnowledgeBaseQueryGetKnowledgeBaseArgs = {
|
|
1407
1454
|
name: Scalars['String']['input'];
|
|
@@ -1416,9 +1463,15 @@ export type KnowledgeBaseQueryListKnowledgeBaseFileChunksArgs = {
|
|
|
1416
1463
|
export type KnowledgeBaseQueryListKnowledgeBaseFilesArgs = {
|
|
1417
1464
|
input: ListKnowledgeBaseFilesInput;
|
|
1418
1465
|
};
|
|
1466
|
+
export type KnowledgeBaseQueryListKnowledgeBaseStructuredFileChunksArgs = {
|
|
1467
|
+
input: ListKnowledgeBaseFileChunksInput;
|
|
1468
|
+
};
|
|
1419
1469
|
export type KnowledgeBaseQueryListKnowledgeBasesArgs = {
|
|
1420
1470
|
input: ListKnowledgeBaseInput;
|
|
1421
1471
|
};
|
|
1472
|
+
export type KnowledgeBaseQueryShowStructuredFileInfoArgs = {
|
|
1473
|
+
input: CreateKnowledgeBaseStructuredFileInput;
|
|
1474
|
+
};
|
|
1422
1475
|
export type Llm = {
|
|
1423
1476
|
__typename?: 'LLM';
|
|
1424
1477
|
annotations?: Maybe<Scalars['Map']['output']>;
|
|
@@ -2648,6 +2701,18 @@ export type SelectorInput = {
|
|
|
2648
2701
|
matchExpressions?: InputMaybe<Array<InputMaybe<LabelSelectorRequirementInput>>>;
|
|
2649
2702
|
matchLabels?: InputMaybe<Scalars['Map']['input']>;
|
|
2650
2703
|
};
|
|
2704
|
+
export type StructuredFileInfo = {
|
|
2705
|
+
__typename?: 'StructuredFileInfo';
|
|
2706
|
+
currentSheet: Scalars['String']['output'];
|
|
2707
|
+
headers: Array<Scalars['String']['output']>;
|
|
2708
|
+
rowHeader: Scalars['Int']['output'];
|
|
2709
|
+
sheets: Array<Scalars['String']['output']>;
|
|
2710
|
+
totalRows: Scalars['Int']['output'];
|
|
2711
|
+
};
|
|
2712
|
+
export type StructuredFileParseInput = {
|
|
2713
|
+
filePath: Scalars['String']['input'];
|
|
2714
|
+
knowledgebase: Scalars['String']['input'];
|
|
2715
|
+
};
|
|
2651
2716
|
export type TuningDataSet = {
|
|
2652
2717
|
__typename?: 'TuningDataSet';
|
|
2653
2718
|
ID: Scalars['ID']['output'];
|
|
@@ -2979,6 +3044,10 @@ export type UpdateKnowledgeBaseInput = {
|
|
|
2979
3044
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
2980
3045
|
/** 如不更新,则为空 */
|
|
2981
3046
|
displayName?: InputMaybe<Scalars['String']['input']>;
|
|
3047
|
+
/** headers结构化数据列 */
|
|
3048
|
+
headers?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3049
|
+
/** indexHeader结构化数据的索引列 */
|
|
3050
|
+
indexHeader?: InputMaybe<Scalars['Int']['input']>;
|
|
2982
3051
|
/** 知识库资源标签 */
|
|
2983
3052
|
labels?: InputMaybe<Scalars['Map']['input']>;
|
|
2984
3053
|
/** 知识库资源名称(不可同名) */
|
|
@@ -5061,6 +5130,8 @@ export type ListKnowledgeBasesQuery = {
|
|
|
5061
5130
|
chunkSize?: number | null;
|
|
5062
5131
|
chunkOverlap?: number | null;
|
|
5063
5132
|
batchSize?: number | null;
|
|
5133
|
+
indexHeader?: number | null;
|
|
5134
|
+
headers?: Array<string> | null;
|
|
5064
5135
|
status?: string | null;
|
|
5065
5136
|
reason?: string | null;
|
|
5066
5137
|
message?: string | null;
|
|
@@ -5141,6 +5212,8 @@ export type GetKnowledgeBaseQuery = {
|
|
|
5141
5212
|
chunkSize?: number | null;
|
|
5142
5213
|
chunkOverlap?: number | null;
|
|
5143
5214
|
batchSize?: number | null;
|
|
5215
|
+
indexHeader?: number | null;
|
|
5216
|
+
headers?: Array<string> | null;
|
|
5144
5217
|
status?: string | null;
|
|
5145
5218
|
reason?: string | null;
|
|
5146
5219
|
message?: string | null;
|
|
@@ -5181,6 +5254,8 @@ export type CreateKnowledgeBaseMutation = {
|
|
|
5181
5254
|
description?: string | null;
|
|
5182
5255
|
dataType?: string | null;
|
|
5183
5256
|
chunkSize?: number | null;
|
|
5257
|
+
indexHeader?: number | null;
|
|
5258
|
+
headers?: Array<string> | null;
|
|
5184
5259
|
chunkOverlap?: number | null;
|
|
5185
5260
|
batchSize?: number | null;
|
|
5186
5261
|
status?: string | null;
|
|
@@ -5225,6 +5300,8 @@ export type UpdateKnowledgeBaseMutation = {
|
|
|
5225
5300
|
chunkSize?: number | null;
|
|
5226
5301
|
chunkOverlap?: number | null;
|
|
5227
5302
|
batchSize?: number | null;
|
|
5303
|
+
indexHeader?: number | null;
|
|
5304
|
+
headers?: Array<string> | null;
|
|
5228
5305
|
status?: string | null;
|
|
5229
5306
|
reason?: string | null;
|
|
5230
5307
|
message?: string | null;
|
|
@@ -5491,6 +5568,23 @@ export type ListKnowledgeBaseFileChunksQuery = {
|
|
|
5491
5568
|
};
|
|
5492
5569
|
} | null;
|
|
5493
5570
|
};
|
|
5571
|
+
export type ShowStructuredFileInfoQueryVariables = Exact<{
|
|
5572
|
+
input: CreateKnowledgeBaseStructuredFileInput;
|
|
5573
|
+
}>;
|
|
5574
|
+
export type ShowStructuredFileInfoQuery = {
|
|
5575
|
+
__typename?: 'Query';
|
|
5576
|
+
KnowledgeBase?: {
|
|
5577
|
+
__typename?: 'KnowledgeBaseQuery';
|
|
5578
|
+
showStructuredFileInfo: {
|
|
5579
|
+
__typename?: 'StructuredFileInfo';
|
|
5580
|
+
sheets: Array<string>;
|
|
5581
|
+
currentSheet: string;
|
|
5582
|
+
totalRows: number;
|
|
5583
|
+
rowHeader: number;
|
|
5584
|
+
headers: Array<string>;
|
|
5585
|
+
};
|
|
5586
|
+
} | null;
|
|
5587
|
+
};
|
|
5494
5588
|
export type ListLlMsQueryVariables = Exact<{
|
|
5495
5589
|
input: ListCommonInput;
|
|
5496
5590
|
}>;
|
|
@@ -8887,6 +8981,7 @@ export declare const CreateKnowledgeBaseFileChunkDocument: import("../node_modul
|
|
|
8887
8981
|
export declare const UpdateKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8888
8982
|
export declare const DeleteKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8889
8983
|
export declare const ListKnowledgeBaseFileChunksDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8984
|
+
export declare const ShowStructuredFileInfoDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8890
8985
|
export declare const ListLlMsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8891
8986
|
export declare const GetLlmDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
8892
8987
|
export declare const ListModelsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -9010,6 +9105,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
9010
9105
|
updateKnowledgeBaseFileChunk(variables: UpdateKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileChunkMutation>;
|
|
9011
9106
|
deleteKnowledgeBaseFileChunk(variables: DeleteKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFileChunkMutation>;
|
|
9012
9107
|
listKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFileChunksQuery>;
|
|
9108
|
+
showStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ShowStructuredFileInfoQuery>;
|
|
9013
9109
|
listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListLlMsQuery>;
|
|
9014
9110
|
getLLM(variables: GetLlmQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetLlmQuery>;
|
|
9015
9111
|
listModels(variables: ListModelsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListModelsQuery>;
|
|
@@ -9107,6 +9203,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
9107
9203
|
useGetKnowledgeBaseFile(variables: GetKnowledgeBaseFileQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileQuery, ClientError>;
|
|
9108
9204
|
useListKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFilesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFilesQuery, ClientError>;
|
|
9109
9205
|
useListKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFileChunksQuery, ClientError>;
|
|
9206
|
+
useShowStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, config?: SWRConfigInterface<ShowStructuredFileInfoQuery, ClientError>): import("./useSWR").SWRResponsePro<ShowStructuredFileInfoQuery, ClientError>;
|
|
9110
9207
|
useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListLlMsQuery, ClientError>;
|
|
9111
9208
|
useGetLlm(variables: GetLlmQueryVariables, config?: SWRConfigInterface<GetLlmQuery, ClientError>): import("./useSWR").SWRResponsePro<GetLlmQuery, ClientError>;
|
|
9112
9209
|
useListModels(variables: ListModelsQueryVariables, config?: SWRConfigInterface<ListModelsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListModelsQuery, ClientError>;
|
|
@@ -9322,6 +9419,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
9322
9419
|
listKnowledgeBaseFileChunks(variables: Exact<{
|
|
9323
9420
|
input: ListKnowledgeBaseFileChunksInput;
|
|
9324
9421
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseFileChunksQuery>;
|
|
9422
|
+
showStructuredFileInfo(variables: Exact<{
|
|
9423
|
+
input: CreateKnowledgeBaseStructuredFileInput;
|
|
9424
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ShowStructuredFileInfoQuery>;
|
|
9325
9425
|
listLLMs(variables: Exact<{
|
|
9326
9426
|
input: ListCommonInput;
|
|
9327
9427
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListLlMsQuery>;
|