@yuntijs/arcadia-bff-sdk 1.2.68 → 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/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
  /** 模型资源描述 */
@@ -616,6 +641,11 @@ export type CreateTuningDataSetInput = {
616
641
  /** 创建的时候带着版本 */
617
642
  versions: Array<CreateTuningVersionedDataSetInput>;
618
643
  };
644
+ export type CreateTuningDatasetOutput = {
645
+ __typename?: 'CreateTuningDatasetOutput';
646
+ datasetID: Scalars['String']['output'];
647
+ versionIDs: Array<Scalars['String']['output']>;
648
+ };
619
649
  export type CreateTuningVersionedDataSetInput = {
620
650
  /** 训练数据集版本的描述信息 */
621
651
  description?: InputMaybe<Scalars['String']['input']>;
@@ -1281,8 +1311,12 @@ export type KnowledgeBase = {
1281
1311
  /** embedder指当前知识库使用的embedding向量化模型,即 Kind 为 Embedder */
1282
1312
  embedder?: Maybe<TypedObjectReference>;
1283
1313
  embedderType?: Maybe<Scalars['String']['output']>;
1314
+ /** 结构化知识库:headers */
1315
+ headers?: Maybe<Array<Scalars['String']['output']>>;
1284
1316
  /** 知识库id,为CR资源中的metadata.uid */
1285
1317
  id?: Maybe<Scalars['String']['output']>;
1318
+ /** 结构化知识库:索引列 */
1319
+ indexHeader?: Maybe<Scalars['Int']['output']>;
1286
1320
  /** 一些用于标记,选择的的标签 */
1287
1321
  labels?: Maybe<Scalars['Map']['output']>;
1288
1322
  /** 知识库状态的原因的详细内容 */
@@ -1360,11 +1394,15 @@ export type KnowledgeBaseMutation = {
1360
1394
  createKnowledgeBase: KnowledgeBase;
1361
1395
  createKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1362
1396
  createKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1397
+ createKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
1398
+ createKnowledgeBaseStructuredFiles?: Maybe<Scalars['Void']['output']>;
1363
1399
  deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;
1364
1400
  deleteKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1365
1401
  deleteKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1402
+ deleteKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
1366
1403
  updateKnowledgeBase: KnowledgeBase;
1367
1404
  updateKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1405
+ updateKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
1368
1406
  };
1369
1407
  export type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {
1370
1408
  input: CreateKnowledgeBaseInput;
@@ -1375,6 +1413,12 @@ export type KnowledgeBaseMutationCreateKnowledgeBaseFileChunkArgs = {
1375
1413
  export type KnowledgeBaseMutationCreateKnowledgeBaseFilesArgs = {
1376
1414
  input: CreateKnowledgeBaseFileInput;
1377
1415
  };
1416
+ export type KnowledgeBaseMutationCreateKnowledgeBaseStructuredFileChunkArgs = {
1417
+ input: CreateKnowledgeBaseFileChunkInput;
1418
+ };
1419
+ export type KnowledgeBaseMutationCreateKnowledgeBaseStructuredFilesArgs = {
1420
+ input: CreateKnowledgeBaseStructuredFileInput;
1421
+ };
1378
1422
  export type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {
1379
1423
  input?: InputMaybe<DeleteCommonInput>;
1380
1424
  };
@@ -1384,19 +1428,27 @@ export type KnowledgeBaseMutationDeleteKnowledgeBaseFileChunkArgs = {
1384
1428
  export type KnowledgeBaseMutationDeleteKnowledgeBaseFilesArgs = {
1385
1429
  input: DeleteKnowledgeBaseFileInput;
1386
1430
  };
1431
+ export type KnowledgeBaseMutationDeleteKnowledgeBaseStructuredFileChunkArgs = {
1432
+ input: DeleteKnowledgeBaseFileChunkInput;
1433
+ };
1387
1434
  export type KnowledgeBaseMutationUpdateKnowledgeBaseArgs = {
1388
1435
  input?: InputMaybe<UpdateKnowledgeBaseInput>;
1389
1436
  };
1390
1437
  export type KnowledgeBaseMutationUpdateKnowledgeBaseFileChunkArgs = {
1391
1438
  input: UpdateKnowledgeBaseFileChunkInput;
1392
1439
  };
1440
+ export type KnowledgeBaseMutationUpdateKnowledgeBaseStructuredFileChunkArgs = {
1441
+ input: UpdateKnowledgeBaseFileChunkInput;
1442
+ };
1393
1443
  export type KnowledgeBaseQuery = {
1394
1444
  __typename?: 'KnowledgeBaseQuery';
1395
1445
  getKnowledgeBase: KnowledgeBase;
1396
1446
  getKnowledgeBaseFile: KnowledgeBaseFile;
1397
1447
  listKnowledgeBaseFileChunks: PaginatedResult;
1398
1448
  listKnowledgeBaseFiles: PaginatedResult;
1449
+ listKnowledgeBaseStructuredFileChunks: PaginatedResult;
1399
1450
  listKnowledgeBases: PaginatedResult;
1451
+ showStructuredFileInfo: StructuredFileInfo;
1400
1452
  };
1401
1453
  export type KnowledgeBaseQueryGetKnowledgeBaseArgs = {
1402
1454
  name: Scalars['String']['input'];
@@ -1411,9 +1463,15 @@ export type KnowledgeBaseQueryListKnowledgeBaseFileChunksArgs = {
1411
1463
  export type KnowledgeBaseQueryListKnowledgeBaseFilesArgs = {
1412
1464
  input: ListKnowledgeBaseFilesInput;
1413
1465
  };
1466
+ export type KnowledgeBaseQueryListKnowledgeBaseStructuredFileChunksArgs = {
1467
+ input: ListKnowledgeBaseFileChunksInput;
1468
+ };
1414
1469
  export type KnowledgeBaseQueryListKnowledgeBasesArgs = {
1415
1470
  input: ListKnowledgeBaseInput;
1416
1471
  };
1472
+ export type KnowledgeBaseQueryShowStructuredFileInfoArgs = {
1473
+ input: CreateKnowledgeBaseStructuredFileInput;
1474
+ };
1417
1475
  export type Llm = {
1418
1476
  __typename?: 'LLM';
1419
1477
  annotations?: Maybe<Scalars['Map']['output']>;
@@ -2643,6 +2701,18 @@ export type SelectorInput = {
2643
2701
  matchExpressions?: InputMaybe<Array<InputMaybe<LabelSelectorRequirementInput>>>;
2644
2702
  matchLabels?: InputMaybe<Scalars['Map']['input']>;
2645
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
+ };
2646
2716
  export type TuningDataSet = {
2647
2717
  __typename?: 'TuningDataSet';
2648
2718
  ID: Scalars['ID']['output'];
@@ -2661,8 +2731,8 @@ export type TuningDataSet = {
2661
2731
  export type TuningDataSetMutation = {
2662
2732
  __typename?: 'TuningDataSetMutation';
2663
2733
  addContent?: Maybe<Scalars['Void']['output']>;
2664
- addVersion?: Maybe<Scalars['Void']['output']>;
2665
- createTuningDataSet?: Maybe<Scalars['Void']['output']>;
2734
+ addVersion: Scalars['String']['output'];
2735
+ createTuningDataSet: CreateTuningDatasetOutput;
2666
2736
  deleteContent?: Maybe<Scalars['Void']['output']>;
2667
2737
  deleteTuningDataSet?: Maybe<Scalars['Void']['output']>;
2668
2738
  deleteVersionAllContent?: Maybe<Scalars['Void']['output']>;
@@ -2974,6 +3044,10 @@ export type UpdateKnowledgeBaseInput = {
2974
3044
  description?: InputMaybe<Scalars['String']['input']>;
2975
3045
  /** 如不更新,则为空 */
2976
3046
  displayName?: InputMaybe<Scalars['String']['input']>;
3047
+ /** headers结构化数据列 */
3048
+ headers?: InputMaybe<Array<Scalars['String']['input']>>;
3049
+ /** indexHeader结构化数据的索引列 */
3050
+ indexHeader?: InputMaybe<Scalars['Int']['input']>;
2977
3051
  /** 知识库资源标签 */
2978
3052
  labels?: InputMaybe<Scalars['Map']['input']>;
2979
3053
  /** 知识库资源名称(不可同名) */
@@ -5056,6 +5130,8 @@ export type ListKnowledgeBasesQuery = {
5056
5130
  chunkSize?: number | null;
5057
5131
  chunkOverlap?: number | null;
5058
5132
  batchSize?: number | null;
5133
+ indexHeader?: number | null;
5134
+ headers?: Array<string> | null;
5059
5135
  status?: string | null;
5060
5136
  reason?: string | null;
5061
5137
  message?: string | null;
@@ -5136,6 +5212,8 @@ export type GetKnowledgeBaseQuery = {
5136
5212
  chunkSize?: number | null;
5137
5213
  chunkOverlap?: number | null;
5138
5214
  batchSize?: number | null;
5215
+ indexHeader?: number | null;
5216
+ headers?: Array<string> | null;
5139
5217
  status?: string | null;
5140
5218
  reason?: string | null;
5141
5219
  message?: string | null;
@@ -5176,6 +5254,8 @@ export type CreateKnowledgeBaseMutation = {
5176
5254
  description?: string | null;
5177
5255
  dataType?: string | null;
5178
5256
  chunkSize?: number | null;
5257
+ indexHeader?: number | null;
5258
+ headers?: Array<string> | null;
5179
5259
  chunkOverlap?: number | null;
5180
5260
  batchSize?: number | null;
5181
5261
  status?: string | null;
@@ -5220,6 +5300,8 @@ export type UpdateKnowledgeBaseMutation = {
5220
5300
  chunkSize?: number | null;
5221
5301
  chunkOverlap?: number | null;
5222
5302
  batchSize?: number | null;
5303
+ indexHeader?: number | null;
5304
+ headers?: Array<string> | null;
5223
5305
  status?: string | null;
5224
5306
  reason?: string | null;
5225
5307
  message?: string | null;
@@ -5486,6 +5568,23 @@ export type ListKnowledgeBaseFileChunksQuery = {
5486
5568
  };
5487
5569
  } | null;
5488
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
+ };
5489
5588
  export type ListLlMsQueryVariables = Exact<{
5490
5589
  input: ListCommonInput;
5491
5590
  }>;
@@ -7446,7 +7545,11 @@ export type CreateTuningDataSetMutation = {
7446
7545
  __typename?: 'Mutation';
7447
7546
  TuningDataSet?: {
7448
7547
  __typename?: 'TuningDataSetMutation';
7449
- createTuningDataSet?: any | null;
7548
+ createTuningDataSet: {
7549
+ __typename?: 'CreateTuningDatasetOutput';
7550
+ datasetID: string;
7551
+ versionIDs: Array<string>;
7552
+ };
7450
7553
  } | null;
7451
7554
  };
7452
7555
  export type UpdateTuningDataSetMutationVariables = Exact<{
@@ -7477,7 +7580,7 @@ export type AddVersionMutation = {
7477
7580
  __typename?: 'Mutation';
7478
7581
  TuningDataSet?: {
7479
7582
  __typename?: 'TuningDataSetMutation';
7480
- addVersion?: any | null;
7583
+ addVersion: string;
7481
7584
  } | null;
7482
7585
  };
7483
7586
  export type DeleteVersionsMutationVariables = Exact<{
@@ -8878,6 +8981,7 @@ export declare const CreateKnowledgeBaseFileChunkDocument: import("../node_modul
8878
8981
  export declare const UpdateKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8879
8982
  export declare const DeleteKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8880
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;
8881
8985
  export declare const ListLlMsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8882
8986
  export declare const GetLlmDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8883
8987
  export declare const ListModelsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -9001,6 +9105,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
9001
9105
  updateKnowledgeBaseFileChunk(variables: UpdateKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileChunkMutation>;
9002
9106
  deleteKnowledgeBaseFileChunk(variables: DeleteKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFileChunkMutation>;
9003
9107
  listKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFileChunksQuery>;
9108
+ showStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ShowStructuredFileInfoQuery>;
9004
9109
  listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListLlMsQuery>;
9005
9110
  getLLM(variables: GetLlmQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetLlmQuery>;
9006
9111
  listModels(variables: ListModelsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListModelsQuery>;
@@ -9098,6 +9203,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
9098
9203
  useGetKnowledgeBaseFile(variables: GetKnowledgeBaseFileQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileQuery, ClientError>;
9099
9204
  useListKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFilesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFilesQuery, ClientError>;
9100
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>;
9101
9207
  useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListLlMsQuery, ClientError>;
9102
9208
  useGetLlm(variables: GetLlmQueryVariables, config?: SWRConfigInterface<GetLlmQuery, ClientError>): import("./useSWR").SWRResponsePro<GetLlmQuery, ClientError>;
9103
9209
  useListModels(variables: ListModelsQueryVariables, config?: SWRConfigInterface<ListModelsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListModelsQuery, ClientError>;
@@ -9313,6 +9419,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
9313
9419
  listKnowledgeBaseFileChunks(variables: Exact<{
9314
9420
  input: ListKnowledgeBaseFileChunksInput;
9315
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>;
9316
9425
  listLLMs(variables: Exact<{
9317
9426
  input: ListCommonInput;
9318
9427
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListLlMsQuery>;