@yuntijs/arcadia-bff-sdk 1.2.69 → 1.2.71

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,29 @@ export type CreateKnowledgeBaseInput = {
493
500
  /** "向量数据库(目前不需要填写,直接使用系统默认的向量数据库) */
494
501
  vectorStore?: InputMaybe<TypedObjectReferenceInput>;
495
502
  };
503
+ export type CreateKnowledgeBaseStructuredFileChunkInput = {
504
+ content?: InputMaybe<Array<Scalars['String']['input']>>;
505
+ /** knowledgebase知识库 */
506
+ knowledgebase: Scalars['String']['input'];
507
+ };
508
+ export type CreateKnowledgeBaseStructuredFileInput = {
509
+ filePath: Scalars['String']['input'];
510
+ /** knowledgebase所属知识库 */
511
+ knowledgebase: Scalars['String']['input'];
512
+ /** >rowHeader.默认为rowHeader+1 */
513
+ rowDataStart?: InputMaybe<Scalars['Int']['input']>;
514
+ /** 1~9 */
515
+ rowHeader?: InputMaybe<Scalars['Int']['input']>;
516
+ /** 如果知识库为表格数据类型,文件为Excel,CSV等文本数据 */
517
+ sheet: Scalars['String']['input'];
518
+ /**
519
+ * source原文件所在存储源,有如下可能:
520
+ * - datasource : 代表为从数据源中选择的文件
521
+ * - dataset : 代表为从数据集中选择的文件
522
+ * - nil: 代表为直接上传的文件
523
+ */
524
+ source?: InputMaybe<TypedObjectReferenceInput>;
525
+ };
496
526
  /** 创建模型的输入 */
497
527
  export type CreateModelInput = {
498
528
  /** 模型资源描述 */
@@ -1286,8 +1316,12 @@ export type KnowledgeBase = {
1286
1316
  /** embedder指当前知识库使用的embedding向量化模型,即 Kind 为 Embedder */
1287
1317
  embedder?: Maybe<TypedObjectReference>;
1288
1318
  embedderType?: Maybe<Scalars['String']['output']>;
1319
+ /** 结构化知识库:headers */
1320
+ headers?: Maybe<Array<Scalars['String']['output']>>;
1289
1321
  /** 知识库id,为CR资源中的metadata.uid */
1290
1322
  id?: Maybe<Scalars['String']['output']>;
1323
+ /** 结构化知识库:索引列 */
1324
+ indexHeader?: Maybe<Scalars['Int']['output']>;
1291
1325
  /** 一些用于标记,选择的的标签 */
1292
1326
  labels?: Maybe<Scalars['Map']['output']>;
1293
1327
  /** 知识库状态的原因的详细内容 */
@@ -1365,11 +1399,14 @@ export type KnowledgeBaseMutation = {
1365
1399
  createKnowledgeBase: KnowledgeBase;
1366
1400
  createKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1367
1401
  createKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1402
+ createKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
1403
+ createKnowledgeBaseStructuredFiles?: Maybe<Scalars['Void']['output']>;
1368
1404
  deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;
1369
1405
  deleteKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1370
1406
  deleteKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1371
1407
  updateKnowledgeBase: KnowledgeBase;
1372
1408
  updateKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1409
+ updateKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
1373
1410
  };
1374
1411
  export type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {
1375
1412
  input: CreateKnowledgeBaseInput;
@@ -1380,6 +1417,12 @@ export type KnowledgeBaseMutationCreateKnowledgeBaseFileChunkArgs = {
1380
1417
  export type KnowledgeBaseMutationCreateKnowledgeBaseFilesArgs = {
1381
1418
  input: CreateKnowledgeBaseFileInput;
1382
1419
  };
1420
+ export type KnowledgeBaseMutationCreateKnowledgeBaseStructuredFileChunkArgs = {
1421
+ input: CreateKnowledgeBaseStructuredFileChunkInput;
1422
+ };
1423
+ export type KnowledgeBaseMutationCreateKnowledgeBaseStructuredFilesArgs = {
1424
+ input: CreateKnowledgeBaseStructuredFileInput;
1425
+ };
1383
1426
  export type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {
1384
1427
  input?: InputMaybe<DeleteCommonInput>;
1385
1428
  };
@@ -1395,13 +1438,18 @@ export type KnowledgeBaseMutationUpdateKnowledgeBaseArgs = {
1395
1438
  export type KnowledgeBaseMutationUpdateKnowledgeBaseFileChunkArgs = {
1396
1439
  input: UpdateKnowledgeBaseFileChunkInput;
1397
1440
  };
1441
+ export type KnowledgeBaseMutationUpdateKnowledgeBaseStructuredFileChunkArgs = {
1442
+ input: UpdateKnowledgeBaseStructuredFileChunkInput;
1443
+ };
1398
1444
  export type KnowledgeBaseQuery = {
1399
1445
  __typename?: 'KnowledgeBaseQuery';
1400
1446
  getKnowledgeBase: KnowledgeBase;
1401
1447
  getKnowledgeBaseFile: KnowledgeBaseFile;
1402
1448
  listKnowledgeBaseFileChunks: PaginatedResult;
1403
1449
  listKnowledgeBaseFiles: PaginatedResult;
1450
+ listKnowledgeBaseStructuredFileChunks: PaginatedResult;
1404
1451
  listKnowledgeBases: PaginatedResult;
1452
+ showStructuredFileInfo: StructuredFileInfo;
1405
1453
  };
1406
1454
  export type KnowledgeBaseQueryGetKnowledgeBaseArgs = {
1407
1455
  name: Scalars['String']['input'];
@@ -1416,9 +1464,26 @@ export type KnowledgeBaseQueryListKnowledgeBaseFileChunksArgs = {
1416
1464
  export type KnowledgeBaseQueryListKnowledgeBaseFilesArgs = {
1417
1465
  input: ListKnowledgeBaseFilesInput;
1418
1466
  };
1467
+ export type KnowledgeBaseQueryListKnowledgeBaseStructuredFileChunksArgs = {
1468
+ input: ListKnowledgeBaseStructuredFileChunksInput;
1469
+ };
1419
1470
  export type KnowledgeBaseQueryListKnowledgeBasesArgs = {
1420
1471
  input: ListKnowledgeBaseInput;
1421
1472
  };
1473
+ export type KnowledgeBaseQueryShowStructuredFileInfoArgs = {
1474
+ input: CreateKnowledgeBaseStructuredFileInput;
1475
+ };
1476
+ export type KnowledgeBaseStructuredFileChunk = {
1477
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
1478
+ content?: Maybe<Scalars['Map']['output']>;
1479
+ contentSizeInBytes: Scalars['Int']['output'];
1480
+ createdAt?: Maybe<Scalars['Time']['output']>;
1481
+ fileId?: Maybe<Scalars['String']['output']>;
1482
+ id: Scalars['String']['output'];
1483
+ knowledgeBase: Scalars['String']['output'];
1484
+ processingPhase: Scalars['String']['output'];
1485
+ updatedAt?: Maybe<Scalars['Time']['output']>;
1486
+ };
1422
1487
  export type Llm = {
1423
1488
  __typename?: 'LLM';
1424
1489
  annotations?: Maybe<Scalars['Map']['output']>;
@@ -1600,6 +1665,22 @@ export type ListKnowledgeBaseInput = {
1600
1665
  */
1601
1666
  pageSize?: InputMaybe<Scalars['Int']['input']>;
1602
1667
  };
1668
+ export type ListKnowledgeBaseStructuredFileChunksInput = {
1669
+ /** 基于关键字检索相关chunk */
1670
+ keyword?: InputMaybe<Scalars['String']['input']>;
1671
+ /** knowledgebase知识库.由 namespace_name组成 */
1672
+ knowledgebase: Scalars['String']['input'];
1673
+ /**
1674
+ * 分页页码,
1675
+ * 规则: 从1开始,默认是1
1676
+ */
1677
+ page?: InputMaybe<Scalars['Int']['input']>;
1678
+ /**
1679
+ * 每页数量,
1680
+ * 规则: 默认10
1681
+ */
1682
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
1683
+ };
1603
1684
  export type ListModelInput = {
1604
1685
  /** 字段选择器 */
1605
1686
  fieldSelector?: InputMaybe<Scalars['String']['input']>;
@@ -2008,7 +2089,7 @@ export type OssInput = {
2008
2089
  bucket: Scalars['String']['input'];
2009
2090
  object?: InputMaybe<Scalars['String']['input']>;
2010
2091
  };
2011
- export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | Sft | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
2092
+ export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | KnowledgeBaseStructuredFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | Sft | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
2012
2093
  export type PaginatedDataProcessItem = {
2013
2094
  __typename?: 'PaginatedDataProcessItem';
2014
2095
  data?: Maybe<Array<DataProcessItem>>;
@@ -2648,6 +2729,18 @@ export type SelectorInput = {
2648
2729
  matchExpressions?: InputMaybe<Array<InputMaybe<LabelSelectorRequirementInput>>>;
2649
2730
  matchLabels?: InputMaybe<Scalars['Map']['input']>;
2650
2731
  };
2732
+ export type StructuredFileInfo = {
2733
+ __typename?: 'StructuredFileInfo';
2734
+ currentSheet: Scalars['String']['output'];
2735
+ headers: Array<Scalars['String']['output']>;
2736
+ rowHeader: Scalars['Int']['output'];
2737
+ sheets: Array<Scalars['String']['output']>;
2738
+ totalRows: Scalars['Int']['output'];
2739
+ };
2740
+ export type StructuredFileParseInput = {
2741
+ filePath: Scalars['String']['input'];
2742
+ knowledgebase: Scalars['String']['input'];
2743
+ };
2651
2744
  export type TuningDataSet = {
2652
2745
  __typename?: 'TuningDataSet';
2653
2746
  ID: Scalars['ID']['output'];
@@ -2979,6 +3072,10 @@ export type UpdateKnowledgeBaseInput = {
2979
3072
  description?: InputMaybe<Scalars['String']['input']>;
2980
3073
  /** 如不更新,则为空 */
2981
3074
  displayName?: InputMaybe<Scalars['String']['input']>;
3075
+ /** headers结构化数据列 */
3076
+ headers?: InputMaybe<Array<Scalars['String']['input']>>;
3077
+ /** indexHeader结构化数据的索引列 */
3078
+ indexHeader?: InputMaybe<Scalars['Int']['input']>;
2982
3079
  /** 知识库资源标签 */
2983
3080
  labels?: InputMaybe<Scalars['Map']['input']>;
2984
3081
  /** 知识库资源名称(不可同名) */
@@ -2986,6 +3083,12 @@ export type UpdateKnowledgeBaseInput = {
2986
3083
  /** 知识库创建命名空间 */
2987
3084
  namespace: Scalars['String']['input'];
2988
3085
  };
3086
+ export type UpdateKnowledgeBaseStructuredFileChunkInput = {
3087
+ /** 新的内容 */
3088
+ content?: InputMaybe<Array<Scalars['String']['input']>>;
3089
+ /** chunk id */
3090
+ id: Scalars['String']['input'];
3091
+ };
2989
3092
  /** 模型更新的输入 */
2990
3093
  export type UpdateModelInput = {
2991
3094
  /** 模型资源注释 */
@@ -3777,6 +3880,8 @@ export type GetAgentLatestReleaseInEachPlatformQuery = {
3777
3880
  __typename?: 'KnowledgeBaseFile';
3778
3881
  } | {
3779
3882
  __typename?: 'KnowledgeBaseFileChunk';
3883
+ } | {
3884
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
3780
3885
  } | {
3781
3886
  __typename?: 'LLM';
3782
3887
  } | {
@@ -3863,6 +3968,8 @@ export type GetAgentReleaseHistoryQuery = {
3863
3968
  __typename?: 'KnowledgeBaseFile';
3864
3969
  } | {
3865
3970
  __typename?: 'KnowledgeBaseFileChunk';
3971
+ } | {
3972
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
3866
3973
  } | {
3867
3974
  __typename?: 'LLM';
3868
3975
  } | {
@@ -3951,6 +4058,8 @@ export type ListAgentsQuery = {
3951
4058
  __typename?: 'KnowledgeBaseFile';
3952
4059
  } | {
3953
4060
  __typename?: 'KnowledgeBaseFileChunk';
4061
+ } | {
4062
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
3954
4063
  } | {
3955
4064
  __typename?: 'LLM';
3956
4065
  } | {
@@ -4028,6 +4137,8 @@ export type ListAgentPromptQuery = {
4028
4137
  __typename?: 'KnowledgeBaseFile';
4029
4138
  } | {
4030
4139
  __typename?: 'KnowledgeBaseFileChunk';
4140
+ } | {
4141
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
4031
4142
  } | {
4032
4143
  __typename?: 'LLM';
4033
4144
  } | {
@@ -4414,6 +4525,8 @@ export type ListDatasetsQuery = {
4414
4525
  __typename?: 'KnowledgeBaseFile';
4415
4526
  } | {
4416
4527
  __typename?: 'KnowledgeBaseFileChunk';
4528
+ } | {
4529
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
4417
4530
  } | {
4418
4531
  __typename?: 'LLM';
4419
4532
  } | {
@@ -4473,6 +4586,8 @@ export type ListDatasetsQuery = {
4473
4586
  __typename?: 'KnowledgeBaseFile';
4474
4587
  } | {
4475
4588
  __typename?: 'KnowledgeBaseFileChunk';
4589
+ } | {
4590
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
4476
4591
  } | {
4477
4592
  __typename?: 'LLM';
4478
4593
  } | {
@@ -4555,6 +4670,8 @@ export type GetDatasetQuery = {
4555
4670
  __typename?: 'KnowledgeBaseFile';
4556
4671
  } | {
4557
4672
  __typename?: 'KnowledgeBaseFileChunk';
4673
+ } | {
4674
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
4558
4675
  } | {
4559
4676
  __typename?: 'LLM';
4560
4677
  } | {
@@ -4814,6 +4931,8 @@ export type ListDatasourcesQuery = {
4814
4931
  __typename: 'KnowledgeBaseFile';
4815
4932
  } | {
4816
4933
  __typename: 'KnowledgeBaseFileChunk';
4934
+ } | {
4935
+ __typename: 'KnowledgeBaseStructuredFileChunk';
4817
4936
  } | {
4818
4937
  __typename: 'LLM';
4819
4938
  } | {
@@ -4959,6 +5078,8 @@ export type ListEmbeddersQuery = {
4959
5078
  __typename?: 'KnowledgeBaseFile';
4960
5079
  } | {
4961
5080
  __typename?: 'KnowledgeBaseFileChunk';
5081
+ } | {
5082
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
4962
5083
  } | {
4963
5084
  __typename?: 'LLM';
4964
5085
  } | {
@@ -5061,6 +5182,8 @@ export type ListKnowledgeBasesQuery = {
5061
5182
  chunkSize?: number | null;
5062
5183
  chunkOverlap?: number | null;
5063
5184
  batchSize?: number | null;
5185
+ indexHeader?: number | null;
5186
+ headers?: Array<string> | null;
5064
5187
  status?: string | null;
5065
5188
  reason?: string | null;
5066
5189
  message?: string | null;
@@ -5082,6 +5205,8 @@ export type ListKnowledgeBasesQuery = {
5082
5205
  __typename?: 'KnowledgeBaseFile';
5083
5206
  } | {
5084
5207
  __typename?: 'KnowledgeBaseFileChunk';
5208
+ } | {
5209
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5085
5210
  } | {
5086
5211
  __typename?: 'LLM';
5087
5212
  } | {
@@ -5141,6 +5266,8 @@ export type GetKnowledgeBaseQuery = {
5141
5266
  chunkSize?: number | null;
5142
5267
  chunkOverlap?: number | null;
5143
5268
  batchSize?: number | null;
5269
+ indexHeader?: number | null;
5270
+ headers?: Array<string> | null;
5144
5271
  status?: string | null;
5145
5272
  reason?: string | null;
5146
5273
  message?: string | null;
@@ -5181,6 +5308,8 @@ export type CreateKnowledgeBaseMutation = {
5181
5308
  description?: string | null;
5182
5309
  dataType?: string | null;
5183
5310
  chunkSize?: number | null;
5311
+ indexHeader?: number | null;
5312
+ headers?: Array<string> | null;
5184
5313
  chunkOverlap?: number | null;
5185
5314
  batchSize?: number | null;
5186
5315
  status?: string | null;
@@ -5225,6 +5354,8 @@ export type UpdateKnowledgeBaseMutation = {
5225
5354
  chunkSize?: number | null;
5226
5355
  chunkOverlap?: number | null;
5227
5356
  batchSize?: number | null;
5357
+ indexHeader?: number | null;
5358
+ headers?: Array<string> | null;
5228
5359
  status?: string | null;
5229
5360
  reason?: string | null;
5230
5361
  message?: string | null;
@@ -5348,6 +5479,8 @@ export type ListKnowledgeBaseFilesQuery = {
5348
5479
  phaseReason?: string | null;
5349
5480
  } | {
5350
5481
  __typename?: 'KnowledgeBaseFileChunk';
5482
+ } | {
5483
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5351
5484
  } | {
5352
5485
  __typename?: 'LLM';
5353
5486
  } | {
@@ -5455,6 +5588,134 @@ export type ListKnowledgeBaseFileChunksQuery = {
5455
5588
  content: string;
5456
5589
  contentSizeInBytes: number;
5457
5590
  processingPhase: string;
5591
+ } | {
5592
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5593
+ } | {
5594
+ __typename?: 'LLM';
5595
+ } | {
5596
+ __typename?: 'Model';
5597
+ } | {
5598
+ __typename?: 'ModelService';
5599
+ } | {
5600
+ __typename?: 'Node';
5601
+ } | {
5602
+ __typename?: 'Plugin';
5603
+ } | {
5604
+ __typename?: 'RAG';
5605
+ } | {
5606
+ __typename?: 'RayCluster';
5607
+ } | {
5608
+ __typename?: 'Reranker';
5609
+ } | {
5610
+ __typename?: 'SFT';
5611
+ } | {
5612
+ __typename?: 'TuningDataSet';
5613
+ } | {
5614
+ __typename?: 'TuningVersionedDataset';
5615
+ } | {
5616
+ __typename?: 'TuningVersionedDatasetContent';
5617
+ } | {
5618
+ __typename?: 'TuningVersionedDatasetFiles';
5619
+ } | {
5620
+ __typename?: 'VersionedDataset';
5621
+ } | {
5622
+ __typename?: 'Worker';
5623
+ } | {
5624
+ __typename?: 'Workflow';
5625
+ }> | null;
5626
+ };
5627
+ } | null;
5628
+ };
5629
+ export type ShowStructuredFileInfoQueryVariables = Exact<{
5630
+ input: CreateKnowledgeBaseStructuredFileInput;
5631
+ }>;
5632
+ export type ShowStructuredFileInfoQuery = {
5633
+ __typename?: 'Query';
5634
+ KnowledgeBase?: {
5635
+ __typename?: 'KnowledgeBaseQuery';
5636
+ showStructuredFileInfo: {
5637
+ __typename?: 'StructuredFileInfo';
5638
+ sheets: Array<string>;
5639
+ currentSheet: string;
5640
+ totalRows: number;
5641
+ rowHeader: number;
5642
+ headers: Array<string>;
5643
+ };
5644
+ } | null;
5645
+ };
5646
+ export type CreateKnowledgeBaseStructuredFilesMutationVariables = Exact<{
5647
+ input: CreateKnowledgeBaseStructuredFileInput;
5648
+ }>;
5649
+ export type CreateKnowledgeBaseStructuredFilesMutation = {
5650
+ __typename?: 'Mutation';
5651
+ KnowledgeBase?: {
5652
+ __typename?: 'KnowledgeBaseMutation';
5653
+ createKnowledgeBaseStructuredFiles?: any | null;
5654
+ } | null;
5655
+ };
5656
+ export type CreateKnowledgeBaseStructuredFileChunkMutationVariables = Exact<{
5657
+ input: CreateKnowledgeBaseStructuredFileChunkInput;
5658
+ }>;
5659
+ export type CreateKnowledgeBaseStructuredFileChunkMutation = {
5660
+ __typename?: 'Mutation';
5661
+ KnowledgeBase?: {
5662
+ __typename?: 'KnowledgeBaseMutation';
5663
+ createKnowledgeBaseStructuredFileChunk?: any | null;
5664
+ } | null;
5665
+ };
5666
+ export type UpdateKnowledgeBaseStructuredFileChunkMutationVariables = Exact<{
5667
+ input: UpdateKnowledgeBaseStructuredFileChunkInput;
5668
+ }>;
5669
+ export type UpdateKnowledgeBaseStructuredFileChunkMutation = {
5670
+ __typename?: 'Mutation';
5671
+ KnowledgeBase?: {
5672
+ __typename?: 'KnowledgeBaseMutation';
5673
+ updateKnowledgeBaseStructuredFileChunk?: any | null;
5674
+ } | null;
5675
+ };
5676
+ export type ListKnowledgeBaseStructuredFileChunksQueryVariables = Exact<{
5677
+ input: ListKnowledgeBaseStructuredFileChunksInput;
5678
+ }>;
5679
+ export type ListKnowledgeBaseStructuredFileChunksQuery = {
5680
+ __typename?: 'Query';
5681
+ KnowledgeBase?: {
5682
+ __typename?: 'KnowledgeBaseQuery';
5683
+ listKnowledgeBaseStructuredFileChunks: {
5684
+ __typename?: 'PaginatedResult';
5685
+ totalCount: number;
5686
+ hasNextPage: boolean;
5687
+ nodes?: Array<{
5688
+ __typename?: 'AgentMetadata';
5689
+ } | {
5690
+ __typename?: 'AgentPrompt';
5691
+ } | {
5692
+ __typename?: 'AgentRelease';
5693
+ } | {
5694
+ __typename?: 'AgentReleaseHistory';
5695
+ } | {
5696
+ __typename?: 'Dataset';
5697
+ } | {
5698
+ __typename?: 'Datasource';
5699
+ } | {
5700
+ __typename?: 'Embedder';
5701
+ } | {
5702
+ __typename?: 'F';
5703
+ } | {
5704
+ __typename?: 'KnowledgeBase';
5705
+ } | {
5706
+ __typename?: 'KnowledgeBaseFile';
5707
+ } | {
5708
+ __typename?: 'KnowledgeBaseFileChunk';
5709
+ } | {
5710
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5711
+ id: string;
5712
+ knowledgeBase: string;
5713
+ fileId?: string | null;
5714
+ createdAt?: any | null;
5715
+ updatedAt?: any | null;
5716
+ content?: any | null;
5717
+ contentSizeInBytes: number;
5718
+ processingPhase: string;
5458
5719
  } | {
5459
5720
  __typename?: 'LLM';
5460
5721
  } | {
@@ -5524,6 +5785,8 @@ export type ListLlMsQuery = {
5524
5785
  __typename?: 'KnowledgeBaseFile';
5525
5786
  } | {
5526
5787
  __typename?: 'KnowledgeBaseFileChunk';
5788
+ } | {
5789
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5527
5790
  } | {
5528
5791
  __typename?: 'LLM';
5529
5792
  name: string;
@@ -5633,6 +5896,8 @@ export type ListModelsQuery = {
5633
5896
  __typename: 'KnowledgeBaseFile';
5634
5897
  } | {
5635
5898
  __typename: 'KnowledgeBaseFileChunk';
5899
+ } | {
5900
+ __typename: 'KnowledgeBaseStructuredFileChunk';
5636
5901
  } | {
5637
5902
  __typename: 'LLM';
5638
5903
  } | {
@@ -5687,6 +5952,8 @@ export type ListModelsQuery = {
5687
5952
  __typename?: 'KnowledgeBaseFile';
5688
5953
  } | {
5689
5954
  __typename?: 'KnowledgeBaseFileChunk';
5955
+ } | {
5956
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5690
5957
  } | {
5691
5958
  __typename?: 'LLM';
5692
5959
  } | {
@@ -5814,6 +6081,8 @@ export type GetModelQuery = {
5814
6081
  __typename?: 'KnowledgeBaseFile';
5815
6082
  } | {
5816
6083
  __typename?: 'KnowledgeBaseFileChunk';
6084
+ } | {
6085
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
5817
6086
  } | {
5818
6087
  __typename?: 'LLM';
5819
6088
  } | {
@@ -6061,6 +6330,8 @@ export type ListModelServicesQuery = {
6061
6330
  __typename: 'KnowledgeBaseFile';
6062
6331
  } | {
6063
6332
  __typename: 'KnowledgeBaseFileChunk';
6333
+ } | {
6334
+ __typename: 'KnowledgeBaseStructuredFileChunk';
6064
6335
  } | {
6065
6336
  __typename: 'LLM';
6066
6337
  } | {
@@ -6186,6 +6457,8 @@ export type ListNodesQuery = {
6186
6457
  __typename: 'KnowledgeBaseFile';
6187
6458
  } | {
6188
6459
  __typename: 'KnowledgeBaseFileChunk';
6460
+ } | {
6461
+ __typename: 'KnowledgeBaseStructuredFileChunk';
6189
6462
  } | {
6190
6463
  __typename: 'LLM';
6191
6464
  } | {
@@ -6257,6 +6530,8 @@ export type ListPluginsQuery = {
6257
6530
  __typename: 'KnowledgeBaseFile';
6258
6531
  } | {
6259
6532
  __typename: 'KnowledgeBaseFileChunk';
6533
+ } | {
6534
+ __typename: 'KnowledgeBaseStructuredFileChunk';
6260
6535
  } | {
6261
6536
  __typename: 'LLM';
6262
6537
  } | {
@@ -6480,6 +6755,8 @@ export type ListRagQuery = {
6480
6755
  __typename?: 'KnowledgeBaseFile';
6481
6756
  } | {
6482
6757
  __typename?: 'KnowledgeBaseFileChunk';
6758
+ } | {
6759
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
6483
6760
  } | {
6484
6761
  __typename?: 'LLM';
6485
6762
  } | {
@@ -6904,6 +7181,8 @@ export type ListRayClustersQuery = {
6904
7181
  __typename: 'KnowledgeBaseFile';
6905
7182
  } | {
6906
7183
  __typename: 'KnowledgeBaseFileChunk';
7184
+ } | {
7185
+ __typename: 'KnowledgeBaseStructuredFileChunk';
6907
7186
  } | {
6908
7187
  __typename: 'LLM';
6909
7188
  } | {
@@ -6978,6 +7257,8 @@ export type ListRerankersQuery = {
6978
7257
  __typename?: 'KnowledgeBaseFile';
6979
7258
  } | {
6980
7259
  __typename?: 'KnowledgeBaseFileChunk';
7260
+ } | {
7261
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
6981
7262
  } | {
6982
7263
  __typename?: 'LLM';
6983
7264
  } | {
@@ -7084,6 +7365,8 @@ export type ListTuningDataSetQuery = {
7084
7365
  __typename?: 'KnowledgeBaseFile';
7085
7366
  } | {
7086
7367
  __typename?: 'KnowledgeBaseFileChunk';
7368
+ } | {
7369
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
7087
7370
  } | {
7088
7371
  __typename?: 'LLM';
7089
7372
  } | {
@@ -7136,6 +7419,8 @@ export type ListTuningDataSetQuery = {
7136
7419
  __typename?: 'KnowledgeBaseFile';
7137
7420
  } | {
7138
7421
  __typename?: 'KnowledgeBaseFileChunk';
7422
+ } | {
7423
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
7139
7424
  } | {
7140
7425
  __typename?: 'LLM';
7141
7426
  } | {
@@ -7234,6 +7519,8 @@ export type GetTuningDataSetQuery = {
7234
7519
  __typename?: 'KnowledgeBaseFile';
7235
7520
  } | {
7236
7521
  __typename?: 'KnowledgeBaseFileChunk';
7522
+ } | {
7523
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
7237
7524
  } | {
7238
7525
  __typename?: 'LLM';
7239
7526
  } | {
@@ -7319,6 +7606,8 @@ export type GetVersionQuery = {
7319
7606
  __typename?: 'KnowledgeBaseFile';
7320
7607
  } | {
7321
7608
  __typename?: 'KnowledgeBaseFileChunk';
7609
+ } | {
7610
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
7322
7611
  } | {
7323
7612
  __typename?: 'LLM';
7324
7613
  } | {
@@ -7397,6 +7686,8 @@ export type GetVersionContentQuery = {
7397
7686
  __typename?: 'KnowledgeBaseFile';
7398
7687
  } | {
7399
7688
  __typename?: 'KnowledgeBaseFileChunk';
7689
+ } | {
7690
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
7400
7691
  } | {
7401
7692
  __typename?: 'LLM';
7402
7693
  } | {
@@ -7583,6 +7874,8 @@ export type ListSftQuery = {
7583
7874
  __typename?: 'KnowledgeBaseFile';
7584
7875
  } | {
7585
7876
  __typename?: 'KnowledgeBaseFileChunk';
7877
+ } | {
7878
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
7586
7879
  } | {
7587
7880
  __typename?: 'LLM';
7588
7881
  } | {
@@ -8166,6 +8459,8 @@ export type GetVersionedDatasetQuery = {
8166
8459
  __typename?: 'KnowledgeBaseFile';
8167
8460
  } | {
8168
8461
  __typename?: 'KnowledgeBaseFileChunk';
8462
+ } | {
8463
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
8169
8464
  } | {
8170
8465
  __typename?: 'LLM';
8171
8466
  } | {
@@ -8237,6 +8532,8 @@ export type ListVersionedDatasetsQuery = {
8237
8532
  __typename?: 'KnowledgeBaseFile';
8238
8533
  } | {
8239
8534
  __typename?: 'KnowledgeBaseFileChunk';
8535
+ } | {
8536
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
8240
8537
  } | {
8241
8538
  __typename?: 'LLM';
8242
8539
  } | {
@@ -8313,6 +8610,8 @@ export type ListVersionedDatasetsQuery = {
8313
8610
  __typename?: 'KnowledgeBaseFile';
8314
8611
  } | {
8315
8612
  __typename?: 'KnowledgeBaseFileChunk';
8613
+ } | {
8614
+ __typename?: 'KnowledgeBaseStructuredFileChunk';
8316
8615
  } | {
8317
8616
  __typename?: 'LLM';
8318
8617
  } | {
@@ -8388,6 +8687,8 @@ export type ListWorkersQuery = {
8388
8687
  __typename: 'KnowledgeBaseFile';
8389
8688
  } | {
8390
8689
  __typename: 'KnowledgeBaseFileChunk';
8690
+ } | {
8691
+ __typename: 'KnowledgeBaseStructuredFileChunk';
8391
8692
  } | {
8392
8693
  __typename: 'LLM';
8393
8694
  } | {
@@ -8677,6 +8978,8 @@ export type ListWorkflowsQuery = {
8677
8978
  __typename: 'KnowledgeBaseFile';
8678
8979
  } | {
8679
8980
  __typename: 'KnowledgeBaseFileChunk';
8981
+ } | {
8982
+ __typename: 'KnowledgeBaseStructuredFileChunk';
8680
8983
  } | {
8681
8984
  __typename: 'LLM';
8682
8985
  } | {
@@ -8887,6 +9190,11 @@ export declare const CreateKnowledgeBaseFileChunkDocument: import("../node_modul
8887
9190
  export declare const UpdateKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8888
9191
  export declare const DeleteKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8889
9192
  export declare const ListKnowledgeBaseFileChunksDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
9193
+ export declare const ShowStructuredFileInfoDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
9194
+ export declare const CreateKnowledgeBaseStructuredFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
9195
+ export declare const CreateKnowledgeBaseStructuredFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
9196
+ export declare const UpdateKnowledgeBaseStructuredFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
9197
+ export declare const ListKnowledgeBaseStructuredFileChunksDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8890
9198
  export declare const ListLlMsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8891
9199
  export declare const GetLlmDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
8892
9200
  export declare const ListModelsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -9010,6 +9318,11 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
9010
9318
  updateKnowledgeBaseFileChunk(variables: UpdateKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileChunkMutation>;
9011
9319
  deleteKnowledgeBaseFileChunk(variables: DeleteKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFileChunkMutation>;
9012
9320
  listKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFileChunksQuery>;
9321
+ showStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ShowStructuredFileInfoQuery>;
9322
+ createKnowledgeBaseStructuredFiles(variables: CreateKnowledgeBaseStructuredFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseStructuredFilesMutation>;
9323
+ createKnowledgeBaseStructuredFileChunk(variables: CreateKnowledgeBaseStructuredFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseStructuredFileChunkMutation>;
9324
+ updateKnowledgeBaseStructuredFileChunk(variables: UpdateKnowledgeBaseStructuredFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseStructuredFileChunkMutation>;
9325
+ listKnowledgeBaseStructuredFileChunks(variables: ListKnowledgeBaseStructuredFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseStructuredFileChunksQuery>;
9013
9326
  listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListLlMsQuery>;
9014
9327
  getLLM(variables: GetLlmQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetLlmQuery>;
9015
9328
  listModels(variables: ListModelsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListModelsQuery>;
@@ -9107,6 +9420,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
9107
9420
  useGetKnowledgeBaseFile(variables: GetKnowledgeBaseFileQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseFileQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseFileQuery, ClientError>;
9108
9421
  useListKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFilesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFilesQuery, ClientError>;
9109
9422
  useListKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFileChunksQuery, ClientError>;
9423
+ useShowStructuredFileInfo(variables: ShowStructuredFileInfoQueryVariables, config?: SWRConfigInterface<ShowStructuredFileInfoQuery, ClientError>): import("./useSWR").SWRResponsePro<ShowStructuredFileInfoQuery, ClientError>;
9424
+ useListKnowledgeBaseStructuredFileChunks(variables: ListKnowledgeBaseStructuredFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseStructuredFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseStructuredFileChunksQuery, ClientError>;
9110
9425
  useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListLlMsQuery, ClientError>;
9111
9426
  useGetLlm(variables: GetLlmQueryVariables, config?: SWRConfigInterface<GetLlmQuery, ClientError>): import("./useSWR").SWRResponsePro<GetLlmQuery, ClientError>;
9112
9427
  useListModels(variables: ListModelsQueryVariables, config?: SWRConfigInterface<ListModelsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListModelsQuery, ClientError>;
@@ -9322,6 +9637,21 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
9322
9637
  listKnowledgeBaseFileChunks(variables: Exact<{
9323
9638
  input: ListKnowledgeBaseFileChunksInput;
9324
9639
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseFileChunksQuery>;
9640
+ showStructuredFileInfo(variables: Exact<{
9641
+ input: CreateKnowledgeBaseStructuredFileInput;
9642
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ShowStructuredFileInfoQuery>;
9643
+ createKnowledgeBaseStructuredFiles(variables: Exact<{
9644
+ input: CreateKnowledgeBaseStructuredFileInput;
9645
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateKnowledgeBaseStructuredFilesMutation>;
9646
+ createKnowledgeBaseStructuredFileChunk(variables: Exact<{
9647
+ input: CreateKnowledgeBaseStructuredFileChunkInput;
9648
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateKnowledgeBaseStructuredFileChunkMutation>;
9649
+ updateKnowledgeBaseStructuredFileChunk(variables: Exact<{
9650
+ input: UpdateKnowledgeBaseStructuredFileChunkInput;
9651
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateKnowledgeBaseStructuredFileChunkMutation>;
9652
+ listKnowledgeBaseStructuredFileChunks(variables: Exact<{
9653
+ input: ListKnowledgeBaseStructuredFileChunksInput;
9654
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseStructuredFileChunksQuery>;
9325
9655
  listLLMs(variables: Exact<{
9326
9656
  input: ListCommonInput;
9327
9657
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListLlMsQuery>;