@yuntijs/arcadia-bff-sdk 1.2.53 → 1.2.54

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/sdk.d.ts CHANGED
@@ -340,11 +340,9 @@ export type CheckDataProcessTaskNameInput = {
340
340
  };
341
341
  export type ContentTemplate = {
342
342
  __typename?: 'ContentTemplate';
343
- history?: Maybe<Array<Maybe<Array<Scalars['String']['output']>>>>;
344
- input?: Maybe<Scalars['String']['output']>;
343
+ input: Scalars['String']['output'];
345
344
  instruction: Scalars['String']['output'];
346
- output: Scalars['String']['output'];
347
- system?: Maybe<Scalars['String']['output']>;
345
+ output?: Maybe<Scalars['String']['output']>;
348
346
  };
349
347
  export type CountDataProcessItem = {
350
348
  __typename?: 'CountDataProcessItem';
@@ -437,6 +435,19 @@ export type CreateDatasourceInput = {
437
435
  /** 数据源为Web数据时的输入 */
438
436
  webinput?: InputMaybe<WebInput>;
439
437
  };
438
+ export type CreateKnowledgeBaseFileInput = {
439
+ /** 文件存储路径 */
440
+ filePaths?: InputMaybe<Array<Scalars['String']['input']>>;
441
+ /** knowledgebase所属知识库 */
442
+ knowledgebase: TypedObjectReferenceInput;
443
+ /**
444
+ * source原文件所在存储源,有如下可能:
445
+ * - datasource : 代表为从数据源中选择的文件
446
+ * - dataset : 代表为从数据集中选择的文件
447
+ * - nil: 代表为直接上传的文件
448
+ */
449
+ source?: InputMaybe<TypedObjectReferenceInput>;
450
+ };
440
451
  /** 创建知识库的输入 */
441
452
  export type CreateKnowledgeBaseInput = {
442
453
  /** 知识库资源注释 */
@@ -455,8 +466,6 @@ export type CreateKnowledgeBaseInput = {
455
466
  displayName?: InputMaybe<Scalars['String']['input']>;
456
467
  /** embedder指当前知识库使用的embedding向量化模型 */
457
468
  embedder: TypedObjectReferenceInput;
458
- /** 选择的文件列表 */
459
- fileGroups?: InputMaybe<Array<Filegroupinput>>;
460
469
  /** 知识库资源标签 */
461
470
  labels?: InputMaybe<Scalars['Map']['input']>;
462
471
  /** 知识库资源名称(不可同名) */
@@ -1181,11 +1190,6 @@ export type FileItem = {
1181
1190
  name: Scalars['String']['input'];
1182
1191
  size?: InputMaybe<Scalars['String']['input']>;
1183
1192
  };
1184
- export type FileWithVersion = {
1185
- __typename?: 'FileWithVersion';
1186
- path: Scalars['String']['output'];
1187
- version?: Maybe<Scalars['String']['output']>;
1188
- };
1189
1193
  export type FileWithVersionInput = {
1190
1194
  /** 文件路径 */
1191
1195
  path: Scalars['String']['input'];
@@ -1231,8 +1235,6 @@ export type KnowledgeBase = {
1231
1235
  /** embedder指当前知识库使用的embedding向量化模型,即 Kind 为 Embedder */
1232
1236
  embedder?: Maybe<TypedObjectReference>;
1233
1237
  embedderType?: Maybe<Scalars['String']['output']>;
1234
- /** fileGroupDetails为知识库中所处理的文件组的详细内容和状态 */
1235
- fileGroupDetails?: Maybe<Array<Maybe<Filegroupdetail>>>;
1236
1238
  /** 知识库id,为CR资源中的metadata.uid */
1237
1239
  id?: Maybe<Scalars['String']['output']>;
1238
1240
  /** 一些用于标记,选择的的标签 */
@@ -1263,30 +1265,86 @@ export type KnowledgeBase = {
1263
1265
  /** vectorStore指当前知识库使用的向量数据库服务,即 Kind 为 VectorStore */
1264
1266
  vectorStore?: Maybe<TypedObjectReference>;
1265
1267
  };
1268
+ export type KnowledgeBaseFile = {
1269
+ __typename?: 'KnowledgeBaseFile';
1270
+ /** 文件中的数据条目总数 */
1271
+ count?: Maybe<Scalars['Int']['output']>;
1272
+ /** 唯一ID */
1273
+ id: Scalars['String']['output'];
1274
+ /** 文件名 */
1275
+ name: Scalars['String']['output'];
1276
+ /**
1277
+ * 文件处理的阶段
1278
+ * 规则: enum { Pending , Processing , Succeeded, Failed, Skipped}
1279
+ */
1280
+ phase?: Maybe<Scalars['String']['output']>;
1281
+ /** 文件大小 */
1282
+ size?: Maybe<Scalars['String']['output']>;
1283
+ /** 存储所在数据源 */
1284
+ source: Scalars['String']['output'];
1285
+ /** 数据源类型 */
1286
+ sourceType: Scalars['String']['output'];
1287
+ /** 最近一次成功的处理耗时 */
1288
+ timeCost?: Maybe<Scalars['Int64']['output']>;
1289
+ /** 最新处理时间 */
1290
+ updateTimestamp?: Maybe<Scalars['Time']['output']>;
1291
+ };
1292
+ export type KnowledgeBaseFileChunk = {
1293
+ __typename?: 'KnowledgeBaseFileChunk';
1294
+ fileId: Scalars['String']['output'];
1295
+ };
1296
+ export type KnowledgeBaseFileChunkInput = {
1297
+ /** fileId文件的UID */
1298
+ fileId: Scalars['String']['input'];
1299
+ };
1266
1300
  export type KnowledgeBaseMutation = {
1267
1301
  __typename?: 'KnowledgeBaseMutation';
1268
1302
  createKnowledgeBase: KnowledgeBase;
1303
+ createKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1269
1304
  deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;
1305
+ deleteKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1306
+ deleteKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1270
1307
  updateKnowledgeBase: KnowledgeBase;
1308
+ updateKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1271
1309
  };
1272
1310
  export type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {
1273
1311
  input: CreateKnowledgeBaseInput;
1274
1312
  };
1313
+ export type KnowledgeBaseMutationCreateKnowledgeBaseFilesArgs = {
1314
+ input: CreateKnowledgeBaseFileInput;
1315
+ };
1275
1316
  export type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {
1276
1317
  input?: InputMaybe<DeleteCommonInput>;
1277
1318
  };
1319
+ export type KnowledgeBaseMutationDeleteKnowledgeBaseFileChunkArgs = {
1320
+ input: KnowledgeBaseFileChunkInput;
1321
+ };
1322
+ export type KnowledgeBaseMutationDeleteKnowledgeBaseFilesArgs = {
1323
+ fileIds?: InputMaybe<Array<Scalars['String']['input']>>;
1324
+ };
1278
1325
  export type KnowledgeBaseMutationUpdateKnowledgeBaseArgs = {
1279
1326
  input?: InputMaybe<UpdateKnowledgeBaseInput>;
1280
1327
  };
1328
+ export type KnowledgeBaseMutationUpdateKnowledgeBaseFileChunkArgs = {
1329
+ input: KnowledgeBaseFileChunkInput;
1330
+ };
1281
1331
  export type KnowledgeBaseQuery = {
1282
1332
  __typename?: 'KnowledgeBaseQuery';
1283
1333
  getKnowledgeBase: KnowledgeBase;
1334
+ listKnowledgeBaseFileChunks: PaginatedResult;
1335
+ listKnowledgeBaseFiles: PaginatedResult;
1284
1336
  listKnowledgeBases: PaginatedResult;
1285
1337
  };
1286
1338
  export type KnowledgeBaseQueryGetKnowledgeBaseArgs = {
1287
1339
  name: Scalars['String']['input'];
1288
1340
  namespace: Scalars['String']['input'];
1289
1341
  };
1342
+ export type KnowledgeBaseQueryListKnowledgeBaseFileChunksArgs = {
1343
+ input: ListKnowledgeBaseFileChunksInput;
1344
+ };
1345
+ export type KnowledgeBaseQueryListKnowledgeBaseFilesArgs = {
1346
+ input: ListKnowledgeBaseFilesInput;
1347
+ };
1290
1348
  export type KnowledgeBaseQueryListKnowledgeBasesArgs = {
1291
1349
  input: ListKnowledgeBaseInput;
1292
1350
  };
@@ -1411,6 +1469,39 @@ export type ListDatasetInput = {
1411
1469
  */
1412
1470
  pageSize?: InputMaybe<Scalars['Int']['input']>;
1413
1471
  };
1472
+ export type ListKnowledgeBaseFileChunksInput = {
1473
+ /** fileId文件的UID */
1474
+ fileId: Scalars['String']['input'];
1475
+ /**
1476
+ * 分页页码,
1477
+ * 规则: 从1开始,默认是1
1478
+ */
1479
+ page?: InputMaybe<Scalars['Int']['input']>;
1480
+ /**
1481
+ * 每页数量,
1482
+ * 规则: 默认10
1483
+ */
1484
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
1485
+ };
1486
+ export type ListKnowledgeBaseFilesInput = {
1487
+ /**
1488
+ * 关键词: 模糊匹配
1489
+ * 规则: 关键词匹配,用于通过文件名或路径过滤
1490
+ */
1491
+ keyword?: InputMaybe<Scalars['String']['input']>;
1492
+ /** knowledgebase所属知识库 */
1493
+ knowledgebase: TypedObjectReferenceInput;
1494
+ /**
1495
+ * 分页页码,
1496
+ * 规则: 从1开始,默认是1
1497
+ */
1498
+ page?: InputMaybe<Scalars['Int']['input']>;
1499
+ /**
1500
+ * 每页数量,
1501
+ * 规则: 默认10
1502
+ */
1503
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
1504
+ };
1414
1505
  /** 知识库分页列表查询的输入 */
1415
1506
  export type ListKnowledgeBaseInput = {
1416
1507
  displayName?: InputMaybe<Scalars['String']['input']>;
@@ -1843,7 +1934,7 @@ export type OssInput = {
1843
1934
  bucket: Scalars['String']['input'];
1844
1935
  object?: InputMaybe<Scalars['String']['input']>;
1845
1936
  };
1846
- export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
1937
+ export type PageNode = AgentMetadata | AgentPrompt | AgentRelease | AgentReleaseHistory | Dataset | Datasource | Embedder | F | KnowledgeBase | KnowledgeBaseFile | KnowledgeBaseFileChunk | Llm | Model | ModelService | Node | Plugin | Rag | RayCluster | Reranker | TuningDataSet | TuningVersionedDataset | TuningVersionedDatasetContent | TuningVersionedDatasetFiles | VersionedDataset | Worker | Workflow;
1847
1938
  export type PaginatedDataProcessItem = {
1848
1939
  __typename?: 'PaginatedDataProcessItem';
1849
1940
  data?: Maybe<Array<DataProcessItem>>;
@@ -2389,7 +2480,7 @@ export type TuningVersionedDatasetContent = {
2389
2480
  /** 训练数据集版本内容的ID */
2390
2481
  ID: Scalars['ID']['output'];
2391
2482
  /** 训练数据集版本的具体数据 */
2392
- data: ContentTemplate;
2483
+ data?: Maybe<Array<ContentTemplate>>;
2393
2484
  };
2394
2485
  export type TuningVersionedDatasetFiles = {
2395
2486
  __typename?: 'TuningVersionedDatasetFiles';
@@ -2602,8 +2693,6 @@ export type UpdateKnowledgeBaseInput = {
2602
2693
  description?: InputMaybe<Scalars['String']['input']>;
2603
2694
  /** 如不更新,则为空 */
2604
2695
  displayName?: InputMaybe<Scalars['String']['input']>;
2605
- /** 更新选择的文件列表 */
2606
- fileGroups?: InputMaybe<Array<Filegroupinput>>;
2607
2696
  /** 知识库资源标签 */
2608
2697
  labels?: InputMaybe<Scalars['Map']['input']>;
2609
2698
  /** 知识库资源名称(不可同名) */
@@ -3052,71 +3141,6 @@ export type WorkflowQueryGetWorkflowArgs = {
3052
3141
  export type WorkflowQueryListWorkflowsArgs = {
3053
3142
  input: ListCommonInput;
3054
3143
  };
3055
- /**
3056
- * 文件详情
3057
- * 描述: 文件在知识库中的详细状态
3058
- */
3059
- export type Filedetail = {
3060
- __typename?: 'filedetail';
3061
- /** 文件中的数据条目总数 */
3062
- count: Scalars['String']['output'];
3063
- /**
3064
- * 文件类型
3065
- * 规则: enum { QA }
3066
- */
3067
- fileType: Scalars['String']['output'];
3068
- /** 文件最新版本 */
3069
- latestVersion: Scalars['String']['output'];
3070
- /** 文件路径 */
3071
- path: Scalars['String']['output'];
3072
- /**
3073
- * 文件处理的阶段
3074
- * 规则: enum { Pending , Processing , Succeeded, Failed, Skipped}
3075
- */
3076
- phase: Scalars['String']['output'];
3077
- /** 文件大小 */
3078
- size: Scalars['String']['output'];
3079
- /** 最近一次成功的处理耗时 */
3080
- timeCost: Scalars['Int']['output'];
3081
- /** 最新处理时间 */
3082
- updateTimestamp?: Maybe<Scalars['Time']['output']>;
3083
- /** 文件版本,""或者"null"的情况表示是文件最新版本。 */
3084
- version: Scalars['String']['output'];
3085
- };
3086
- /**
3087
- * 文件组
3088
- * 规则: 属于同一个源(数据集)的文件要放在同一个filegroup中
3089
- * 规则: path直接读取文件里表中的文件路径即可
3090
- */
3091
- export type Filegroup = {
3092
- __typename?: 'filegroup';
3093
- files?: Maybe<Array<FileWithVersion>>;
3094
- /** 路径数组 */
3095
- path?: Maybe<Array<Scalars['String']['output']>>;
3096
- /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */
3097
- source?: Maybe<TypedObjectReference>;
3098
- };
3099
- /**
3100
- * 文件组详情
3101
- * 描述: 文件组在知识库中的状态
3102
- */
3103
- export type Filegroupdetail = {
3104
- __typename?: 'filegroupdetail';
3105
- /**
3106
- * 文件详情
3107
- * 规则;数组。具体文件详情参考 filedetail描述
3108
- */
3109
- filedetails?: Maybe<Array<Maybe<Filedetail>>>;
3110
- /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */
3111
- source?: Maybe<TypedObjectReference>;
3112
- };
3113
- /** 源文件输入 */
3114
- export type Filegroupinput = {
3115
- /** 文件列表 */
3116
- files?: InputMaybe<Array<FileWithVersionInput>>;
3117
- /** 数据源字段 */
3118
- source?: InputMaybe<TypedObjectReferenceInput>;
3119
- };
3120
3144
  export type CreateAgentMutationVariables = Exact<{
3121
3145
  input: CreateAgentMetadataInput;
3122
3146
  }>;
@@ -3440,6 +3464,10 @@ export type GetAgentLatestReleaseInEachPlatformQuery = {
3440
3464
  __typename?: 'F';
3441
3465
  } | {
3442
3466
  __typename?: 'KnowledgeBase';
3467
+ } | {
3468
+ __typename?: 'KnowledgeBaseFile';
3469
+ } | {
3470
+ __typename?: 'KnowledgeBaseFileChunk';
3443
3471
  } | {
3444
3472
  __typename?: 'LLM';
3445
3473
  } | {
@@ -3520,6 +3548,10 @@ export type GetAgentReleaseHistoryQuery = {
3520
3548
  __typename?: 'F';
3521
3549
  } | {
3522
3550
  __typename?: 'KnowledgeBase';
3551
+ } | {
3552
+ __typename?: 'KnowledgeBaseFile';
3553
+ } | {
3554
+ __typename?: 'KnowledgeBaseFileChunk';
3523
3555
  } | {
3524
3556
  __typename?: 'LLM';
3525
3557
  } | {
@@ -3602,6 +3634,10 @@ export type ListAgentsQuery = {
3602
3634
  __typename?: 'F';
3603
3635
  } | {
3604
3636
  __typename?: 'KnowledgeBase';
3637
+ } | {
3638
+ __typename?: 'KnowledgeBaseFile';
3639
+ } | {
3640
+ __typename?: 'KnowledgeBaseFileChunk';
3605
3641
  } | {
3606
3642
  __typename?: 'LLM';
3607
3643
  } | {
@@ -3673,6 +3709,10 @@ export type ListAgentPromptQuery = {
3673
3709
  __typename?: 'F';
3674
3710
  } | {
3675
3711
  __typename?: 'KnowledgeBase';
3712
+ } | {
3713
+ __typename?: 'KnowledgeBaseFile';
3714
+ } | {
3715
+ __typename?: 'KnowledgeBaseFileChunk';
3676
3716
  } | {
3677
3717
  __typename?: 'LLM';
3678
3718
  } | {
@@ -4053,6 +4093,10 @@ export type ListDatasetsQuery = {
4053
4093
  __typename?: 'F';
4054
4094
  } | {
4055
4095
  __typename?: 'KnowledgeBase';
4096
+ } | {
4097
+ __typename?: 'KnowledgeBaseFile';
4098
+ } | {
4099
+ __typename?: 'KnowledgeBaseFileChunk';
4056
4100
  } | {
4057
4101
  __typename?: 'LLM';
4058
4102
  } | {
@@ -4106,6 +4150,10 @@ export type ListDatasetsQuery = {
4106
4150
  __typename?: 'F';
4107
4151
  } | {
4108
4152
  __typename?: 'KnowledgeBase';
4153
+ } | {
4154
+ __typename?: 'KnowledgeBaseFile';
4155
+ } | {
4156
+ __typename?: 'KnowledgeBaseFileChunk';
4109
4157
  } | {
4110
4158
  __typename?: 'LLM';
4111
4159
  } | {
@@ -4182,6 +4230,10 @@ export type GetDatasetQuery = {
4182
4230
  __typename?: 'F';
4183
4231
  } | {
4184
4232
  __typename?: 'KnowledgeBase';
4233
+ } | {
4234
+ __typename?: 'KnowledgeBaseFile';
4235
+ } | {
4236
+ __typename?: 'KnowledgeBaseFileChunk';
4185
4237
  } | {
4186
4238
  __typename?: 'LLM';
4187
4239
  } | {
@@ -4435,6 +4487,10 @@ export type ListDatasourcesQuery = {
4435
4487
  __typename: 'F';
4436
4488
  } | {
4437
4489
  __typename: 'KnowledgeBase';
4490
+ } | {
4491
+ __typename: 'KnowledgeBaseFile';
4492
+ } | {
4493
+ __typename: 'KnowledgeBaseFileChunk';
4438
4494
  } | {
4439
4495
  __typename: 'LLM';
4440
4496
  } | {
@@ -4574,6 +4630,10 @@ export type ListEmbeddersQuery = {
4574
4630
  __typename?: 'F';
4575
4631
  } | {
4576
4632
  __typename?: 'KnowledgeBase';
4633
+ } | {
4634
+ __typename?: 'KnowledgeBaseFile';
4635
+ } | {
4636
+ __typename?: 'KnowledgeBaseFileChunk';
4577
4637
  } | {
4578
4638
  __typename?: 'LLM';
4579
4639
  } | {
@@ -4691,26 +4751,10 @@ export type ListKnowledgeBasesQuery = {
4691
4751
  kind: string;
4692
4752
  name: string;
4693
4753
  } | null;
4694
- fileGroupDetails?: Array<{
4695
- __typename?: 'filegroupdetail';
4696
- source?: {
4697
- __typename?: 'TypedObjectReference';
4698
- kind: string;
4699
- name: string;
4700
- } | null;
4701
- filedetails?: Array<{
4702
- __typename?: 'filedetail';
4703
- path: string;
4704
- phase: string;
4705
- fileType: string;
4706
- count: string;
4707
- size: string;
4708
- updateTimestamp?: any | null;
4709
- timeCost: number;
4710
- version: string;
4711
- latestVersion: string;
4712
- } | null> | null;
4713
- } | null> | null;
4754
+ } | {
4755
+ __typename?: 'KnowledgeBaseFile';
4756
+ } | {
4757
+ __typename?: 'KnowledgeBaseFileChunk';
4714
4758
  } | {
4715
4759
  __typename?: 'LLM';
4716
4760
  } | {
@@ -4785,26 +4829,6 @@ export type GetKnowledgeBaseQuery = {
4785
4829
  kind: string;
4786
4830
  name: string;
4787
4831
  } | null;
4788
- fileGroupDetails?: Array<{
4789
- __typename?: 'filegroupdetail';
4790
- source?: {
4791
- __typename?: 'TypedObjectReference';
4792
- kind: string;
4793
- name: string;
4794
- } | null;
4795
- filedetails?: Array<{
4796
- __typename?: 'filedetail';
4797
- path: string;
4798
- phase: string;
4799
- fileType: string;
4800
- count: string;
4801
- size: string;
4802
- updateTimestamp?: any | null;
4803
- timeCost: number;
4804
- version: string;
4805
- latestVersion: string;
4806
- } | null> | null;
4807
- } | null> | null;
4808
4832
  };
4809
4833
  } | null;
4810
4834
  };
@@ -4847,26 +4871,6 @@ export type CreateKnowledgeBaseMutation = {
4847
4871
  kind: string;
4848
4872
  name: string;
4849
4873
  } | null;
4850
- fileGroupDetails?: Array<{
4851
- __typename?: 'filegroupdetail';
4852
- source?: {
4853
- __typename?: 'TypedObjectReference';
4854
- kind: string;
4855
- name: string;
4856
- } | null;
4857
- filedetails?: Array<{
4858
- __typename?: 'filedetail';
4859
- path: string;
4860
- phase: string;
4861
- fileType: string;
4862
- count: string;
4863
- size: string;
4864
- updateTimestamp?: any | null;
4865
- timeCost: number;
4866
- version: string;
4867
- latestVersion: string;
4868
- } | null> | null;
4869
- } | null> | null;
4870
4874
  };
4871
4875
  } | null;
4872
4876
  };
@@ -4909,26 +4913,6 @@ export type UpdateKnowledgeBaseMutation = {
4909
4913
  kind: string;
4910
4914
  name: string;
4911
4915
  } | null;
4912
- fileGroupDetails?: Array<{
4913
- __typename?: 'filegroupdetail';
4914
- source?: {
4915
- __typename?: 'TypedObjectReference';
4916
- kind: string;
4917
- name: string;
4918
- } | null;
4919
- filedetails?: Array<{
4920
- __typename?: 'filedetail';
4921
- path: string;
4922
- phase: string;
4923
- fileType: string;
4924
- count: string;
4925
- size: string;
4926
- updateTimestamp?: any | null;
4927
- timeCost: number;
4928
- version: string;
4929
- latestVersion: string;
4930
- } | null> | null;
4931
- } | null> | null;
4932
4916
  };
4933
4917
  } | null;
4934
4918
  };
@@ -4942,6 +4926,180 @@ export type DeleteKnowledgeBaseMutation = {
4942
4926
  deleteKnowledgeBase?: any | null;
4943
4927
  } | null;
4944
4928
  };
4929
+ export type CreateKnowledgeBaseFilesMutationVariables = Exact<{
4930
+ input: CreateKnowledgeBaseFileInput;
4931
+ }>;
4932
+ export type CreateKnowledgeBaseFilesMutation = {
4933
+ __typename?: 'Mutation';
4934
+ KnowledgeBase?: {
4935
+ __typename?: 'KnowledgeBaseMutation';
4936
+ createKnowledgeBaseFiles?: any | null;
4937
+ } | null;
4938
+ };
4939
+ export type DeleteKnowledgeBaseFilesMutationVariables = Exact<{
4940
+ fileIds?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
4941
+ }>;
4942
+ export type DeleteKnowledgeBaseFilesMutation = {
4943
+ __typename?: 'Mutation';
4944
+ KnowledgeBase?: {
4945
+ __typename?: 'KnowledgeBaseMutation';
4946
+ deleteKnowledgeBaseFiles?: any | null;
4947
+ } | null;
4948
+ };
4949
+ export type ListKnowledgeBaseFilesQueryVariables = Exact<{
4950
+ input: ListKnowledgeBaseFilesInput;
4951
+ }>;
4952
+ export type ListKnowledgeBaseFilesQuery = {
4953
+ __typename?: 'Query';
4954
+ KnowledgeBase?: {
4955
+ __typename?: 'KnowledgeBaseQuery';
4956
+ listKnowledgeBaseFiles: {
4957
+ __typename?: 'PaginatedResult';
4958
+ totalCount: number;
4959
+ hasNextPage: boolean;
4960
+ nodes?: Array<{
4961
+ __typename?: 'AgentMetadata';
4962
+ } | {
4963
+ __typename?: 'AgentPrompt';
4964
+ } | {
4965
+ __typename?: 'AgentRelease';
4966
+ } | {
4967
+ __typename?: 'AgentReleaseHistory';
4968
+ } | {
4969
+ __typename?: 'Dataset';
4970
+ } | {
4971
+ __typename?: 'Datasource';
4972
+ } | {
4973
+ __typename?: 'Embedder';
4974
+ } | {
4975
+ __typename?: 'F';
4976
+ } | {
4977
+ __typename?: 'KnowledgeBase';
4978
+ } | {
4979
+ __typename?: 'KnowledgeBaseFile';
4980
+ id: string;
4981
+ source: string;
4982
+ sourceType: string;
4983
+ name: string;
4984
+ size?: string | null;
4985
+ count?: number | null;
4986
+ timeCost?: any | null;
4987
+ updateTimestamp?: any | null;
4988
+ phase?: string | null;
4989
+ } | {
4990
+ __typename?: 'KnowledgeBaseFileChunk';
4991
+ } | {
4992
+ __typename?: 'LLM';
4993
+ } | {
4994
+ __typename?: 'Model';
4995
+ } | {
4996
+ __typename?: 'ModelService';
4997
+ } | {
4998
+ __typename?: 'Node';
4999
+ } | {
5000
+ __typename?: 'Plugin';
5001
+ } | {
5002
+ __typename?: 'RAG';
5003
+ } | {
5004
+ __typename?: 'RayCluster';
5005
+ } | {
5006
+ __typename?: 'Reranker';
5007
+ } | {
5008
+ __typename?: 'TuningDataSet';
5009
+ } | {
5010
+ __typename?: 'TuningVersionedDataset';
5011
+ } | {
5012
+ __typename?: 'TuningVersionedDatasetContent';
5013
+ } | {
5014
+ __typename?: 'TuningVersionedDatasetFiles';
5015
+ } | {
5016
+ __typename?: 'VersionedDataset';
5017
+ } | {
5018
+ __typename?: 'Worker';
5019
+ } | {
5020
+ __typename?: 'Workflow';
5021
+ }> | null;
5022
+ };
5023
+ } | null;
5024
+ };
5025
+ export type UpdateKnowledgeBaseFileChunkMutationVariables = Exact<{
5026
+ input: KnowledgeBaseFileChunkInput;
5027
+ }>;
5028
+ export type UpdateKnowledgeBaseFileChunkMutation = {
5029
+ __typename?: 'Mutation';
5030
+ KnowledgeBase?: {
5031
+ __typename?: 'KnowledgeBaseMutation';
5032
+ updateKnowledgeBaseFileChunk?: any | null;
5033
+ } | null;
5034
+ };
5035
+ export type ListKnowledgeBaseFileChunksQueryVariables = Exact<{
5036
+ input: ListKnowledgeBaseFileChunksInput;
5037
+ }>;
5038
+ export type ListKnowledgeBaseFileChunksQuery = {
5039
+ __typename?: 'Query';
5040
+ KnowledgeBase?: {
5041
+ __typename?: 'KnowledgeBaseQuery';
5042
+ listKnowledgeBaseFileChunks: {
5043
+ __typename?: 'PaginatedResult';
5044
+ totalCount: number;
5045
+ hasNextPage: boolean;
5046
+ nodes?: Array<{
5047
+ __typename?: 'AgentMetadata';
5048
+ } | {
5049
+ __typename?: 'AgentPrompt';
5050
+ } | {
5051
+ __typename?: 'AgentRelease';
5052
+ } | {
5053
+ __typename?: 'AgentReleaseHistory';
5054
+ } | {
5055
+ __typename?: 'Dataset';
5056
+ } | {
5057
+ __typename?: 'Datasource';
5058
+ } | {
5059
+ __typename?: 'Embedder';
5060
+ } | {
5061
+ __typename?: 'F';
5062
+ } | {
5063
+ __typename?: 'KnowledgeBase';
5064
+ } | {
5065
+ __typename?: 'KnowledgeBaseFile';
5066
+ } | {
5067
+ __typename?: 'KnowledgeBaseFileChunk';
5068
+ fileId: string;
5069
+ } | {
5070
+ __typename?: 'LLM';
5071
+ } | {
5072
+ __typename?: 'Model';
5073
+ } | {
5074
+ __typename?: 'ModelService';
5075
+ } | {
5076
+ __typename?: 'Node';
5077
+ } | {
5078
+ __typename?: 'Plugin';
5079
+ } | {
5080
+ __typename?: 'RAG';
5081
+ } | {
5082
+ __typename?: 'RayCluster';
5083
+ } | {
5084
+ __typename?: 'Reranker';
5085
+ } | {
5086
+ __typename?: 'TuningDataSet';
5087
+ } | {
5088
+ __typename?: 'TuningVersionedDataset';
5089
+ } | {
5090
+ __typename?: 'TuningVersionedDatasetContent';
5091
+ } | {
5092
+ __typename?: 'TuningVersionedDatasetFiles';
5093
+ } | {
5094
+ __typename?: 'VersionedDataset';
5095
+ } | {
5096
+ __typename?: 'Worker';
5097
+ } | {
5098
+ __typename?: 'Workflow';
5099
+ }> | null;
5100
+ };
5101
+ } | null;
5102
+ };
4945
5103
  export type ListLlMsQueryVariables = Exact<{
4946
5104
  input: ListCommonInput;
4947
5105
  }>;
@@ -4971,6 +5129,10 @@ export type ListLlMsQuery = {
4971
5129
  __typename?: 'F';
4972
5130
  } | {
4973
5131
  __typename?: 'KnowledgeBase';
5132
+ } | {
5133
+ __typename?: 'KnowledgeBaseFile';
5134
+ } | {
5135
+ __typename?: 'KnowledgeBaseFileChunk';
4974
5136
  } | {
4975
5137
  __typename?: 'LLM';
4976
5138
  name: string;
@@ -5074,6 +5236,10 @@ export type ListModelsQuery = {
5074
5236
  __typename: 'F';
5075
5237
  } | {
5076
5238
  __typename: 'KnowledgeBase';
5239
+ } | {
5240
+ __typename: 'KnowledgeBaseFile';
5241
+ } | {
5242
+ __typename: 'KnowledgeBaseFileChunk';
5077
5243
  } | {
5078
5244
  __typename: 'LLM';
5079
5245
  } | {
@@ -5124,6 +5290,10 @@ export type ListModelsQuery = {
5124
5290
  creationTimestamp?: any | null;
5125
5291
  } | {
5126
5292
  __typename?: 'KnowledgeBase';
5293
+ } | {
5294
+ __typename?: 'KnowledgeBaseFile';
5295
+ } | {
5296
+ __typename?: 'KnowledgeBaseFileChunk';
5127
5297
  } | {
5128
5298
  __typename?: 'LLM';
5129
5299
  } | {
@@ -5243,6 +5413,10 @@ export type GetModelQuery = {
5243
5413
  creationTimestamp?: any | null;
5244
5414
  } | {
5245
5415
  __typename?: 'KnowledgeBase';
5416
+ } | {
5417
+ __typename?: 'KnowledgeBaseFile';
5418
+ } | {
5419
+ __typename?: 'KnowledgeBaseFileChunk';
5246
5420
  } | {
5247
5421
  __typename?: 'LLM';
5248
5422
  } | {
@@ -5484,6 +5658,10 @@ export type ListModelServicesQuery = {
5484
5658
  __typename: 'F';
5485
5659
  } | {
5486
5660
  __typename: 'KnowledgeBase';
5661
+ } | {
5662
+ __typename: 'KnowledgeBaseFile';
5663
+ } | {
5664
+ __typename: 'KnowledgeBaseFileChunk';
5487
5665
  } | {
5488
5666
  __typename: 'LLM';
5489
5667
  } | {
@@ -5603,6 +5781,10 @@ export type ListNodesQuery = {
5603
5781
  __typename: 'F';
5604
5782
  } | {
5605
5783
  __typename: 'KnowledgeBase';
5784
+ } | {
5785
+ __typename: 'KnowledgeBaseFile';
5786
+ } | {
5787
+ __typename: 'KnowledgeBaseFileChunk';
5606
5788
  } | {
5607
5789
  __typename: 'LLM';
5608
5790
  } | {
@@ -5668,6 +5850,10 @@ export type ListPluginsQuery = {
5668
5850
  __typename: 'F';
5669
5851
  } | {
5670
5852
  __typename: 'KnowledgeBase';
5853
+ } | {
5854
+ __typename: 'KnowledgeBaseFile';
5855
+ } | {
5856
+ __typename: 'KnowledgeBaseFileChunk';
5671
5857
  } | {
5672
5858
  __typename: 'LLM';
5673
5859
  } | {
@@ -5885,6 +6071,10 @@ export type ListRagQuery = {
5885
6071
  __typename?: 'F';
5886
6072
  } | {
5887
6073
  __typename?: 'KnowledgeBase';
6074
+ } | {
6075
+ __typename?: 'KnowledgeBaseFile';
6076
+ } | {
6077
+ __typename?: 'KnowledgeBaseFileChunk';
5888
6078
  } | {
5889
6079
  __typename?: 'LLM';
5890
6080
  } | {
@@ -6303,6 +6493,10 @@ export type ListRayClustersQuery = {
6303
6493
  __typename: 'F';
6304
6494
  } | {
6305
6495
  __typename: 'KnowledgeBase';
6496
+ } | {
6497
+ __typename: 'KnowledgeBaseFile';
6498
+ } | {
6499
+ __typename: 'KnowledgeBaseFileChunk';
6306
6500
  } | {
6307
6501
  __typename: 'LLM';
6308
6502
  } | {
@@ -6371,6 +6565,10 @@ export type ListRerankersQuery = {
6371
6565
  __typename?: 'F';
6372
6566
  } | {
6373
6567
  __typename?: 'KnowledgeBase';
6568
+ } | {
6569
+ __typename?: 'KnowledgeBaseFile';
6570
+ } | {
6571
+ __typename?: 'KnowledgeBaseFileChunk';
6374
6572
  } | {
6375
6573
  __typename?: 'LLM';
6376
6574
  } | {
@@ -6471,6 +6669,10 @@ export type ListTuningDataSetQuery = {
6471
6669
  __typename?: 'F';
6472
6670
  } | {
6473
6671
  __typename?: 'KnowledgeBase';
6672
+ } | {
6673
+ __typename?: 'KnowledgeBaseFile';
6674
+ } | {
6675
+ __typename?: 'KnowledgeBaseFileChunk';
6474
6676
  } | {
6475
6677
  __typename?: 'LLM';
6476
6678
  } | {
@@ -6517,6 +6719,10 @@ export type ListTuningDataSetQuery = {
6517
6719
  __typename?: 'F';
6518
6720
  } | {
6519
6721
  __typename?: 'KnowledgeBase';
6722
+ } | {
6723
+ __typename?: 'KnowledgeBaseFile';
6724
+ } | {
6725
+ __typename?: 'KnowledgeBaseFileChunk';
6520
6726
  } | {
6521
6727
  __typename?: 'LLM';
6522
6728
  } | {
@@ -6609,6 +6815,10 @@ export type GetTuningDataSetQuery = {
6609
6815
  __typename?: 'F';
6610
6816
  } | {
6611
6817
  __typename?: 'KnowledgeBase';
6818
+ } | {
6819
+ __typename?: 'KnowledgeBaseFile';
6820
+ } | {
6821
+ __typename?: 'KnowledgeBaseFileChunk';
6612
6822
  } | {
6613
6823
  __typename?: 'LLM';
6614
6824
  } | {
@@ -6793,6 +7003,10 @@ export type GetVersionedDatasetQuery = {
6793
7003
  creationTimestamp?: any | null;
6794
7004
  } | {
6795
7005
  __typename?: 'KnowledgeBase';
7006
+ } | {
7007
+ __typename?: 'KnowledgeBaseFile';
7008
+ } | {
7009
+ __typename?: 'KnowledgeBaseFileChunk';
6796
7010
  } | {
6797
7011
  __typename?: 'LLM';
6798
7012
  } | {
@@ -6858,6 +7072,10 @@ export type ListVersionedDatasetsQuery = {
6858
7072
  __typename?: 'F';
6859
7073
  } | {
6860
7074
  __typename?: 'KnowledgeBase';
7075
+ } | {
7076
+ __typename?: 'KnowledgeBaseFile';
7077
+ } | {
7078
+ __typename?: 'KnowledgeBaseFileChunk';
6861
7079
  } | {
6862
7080
  __typename?: 'LLM';
6863
7081
  } | {
@@ -6928,6 +7146,10 @@ export type ListVersionedDatasetsQuery = {
6928
7146
  creationTimestamp?: any | null;
6929
7147
  } | {
6930
7148
  __typename?: 'KnowledgeBase';
7149
+ } | {
7150
+ __typename?: 'KnowledgeBaseFile';
7151
+ } | {
7152
+ __typename?: 'KnowledgeBaseFileChunk';
6931
7153
  } | {
6932
7154
  __typename?: 'LLM';
6933
7155
  } | {
@@ -6997,6 +7219,10 @@ export type ListWorkersQuery = {
6997
7219
  __typename: 'F';
6998
7220
  } | {
6999
7221
  __typename: 'KnowledgeBase';
7222
+ } | {
7223
+ __typename: 'KnowledgeBaseFile';
7224
+ } | {
7225
+ __typename: 'KnowledgeBaseFileChunk';
7000
7226
  } | {
7001
7227
  __typename: 'LLM';
7002
7228
  } | {
@@ -7280,6 +7506,10 @@ export type ListWorkflowsQuery = {
7280
7506
  __typename: 'F';
7281
7507
  } | {
7282
7508
  __typename: 'KnowledgeBase';
7509
+ } | {
7510
+ __typename: 'KnowledgeBaseFile';
7511
+ } | {
7512
+ __typename: 'KnowledgeBaseFileChunk';
7283
7513
  } | {
7284
7514
  __typename: 'LLM';
7285
7515
  } | {
@@ -7480,6 +7710,11 @@ export declare const GetKnowledgeBaseDocument: import("../node_modules/.pnpm/gra
7480
7710
  export declare const CreateKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7481
7711
  export declare const UpdateKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7482
7712
  export declare const DeleteKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7713
+ export declare const CreateKnowledgeBaseFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7714
+ export declare const DeleteKnowledgeBaseFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7715
+ export declare const ListKnowledgeBaseFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7716
+ export declare const UpdateKnowledgeBaseFileChunkDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7717
+ export declare const ListKnowledgeBaseFileChunksDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7483
7718
  export declare const ListLlMsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7484
7719
  export declare const GetLlmDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7485
7720
  export declare const ListModelsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -7580,6 +7815,11 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
7580
7815
  createKnowledgeBase(variables: CreateKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseMutation>;
7581
7816
  updateKnowledgeBase(variables?: UpdateKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseMutation>;
7582
7817
  deleteKnowledgeBase(variables?: DeleteKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseMutation>;
7818
+ createKnowledgeBaseFiles(variables: CreateKnowledgeBaseFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseFilesMutation>;
7819
+ deleteKnowledgeBaseFiles(variables?: DeleteKnowledgeBaseFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFilesMutation>;
7820
+ listKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFilesQuery>;
7821
+ updateKnowledgeBaseFileChunk(variables: UpdateKnowledgeBaseFileChunkMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileChunkMutation>;
7822
+ listKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBaseFileChunksQuery>;
7583
7823
  listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListLlMsQuery>;
7584
7824
  getLLM(variables: GetLlmQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetLlmQuery>;
7585
7825
  listModels(variables: ListModelsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListModelsQuery>;
@@ -7659,6 +7899,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
7659
7899
  useGetEmbedder(variables: GetEmbedderQueryVariables, config?: SWRConfigInterface<GetEmbedderQuery, ClientError>): import("./useSWR").SWRResponsePro<GetEmbedderQuery, ClientError>;
7660
7900
  useListKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBasesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBasesQuery, ClientError>;
7661
7901
  useGetKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseQuery, ClientError>;
7902
+ useListKnowledgeBaseFiles(variables: ListKnowledgeBaseFilesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFilesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFilesQuery, ClientError>;
7903
+ useListKnowledgeBaseFileChunks(variables: ListKnowledgeBaseFileChunksQueryVariables, config?: SWRConfigInterface<ListKnowledgeBaseFileChunksQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBaseFileChunksQuery, ClientError>;
7662
7904
  useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListLlMsQuery, ClientError>;
7663
7905
  useGetLlm(variables: GetLlmQueryVariables, config?: SWRConfigInterface<GetLlmQuery, ClientError>): import("./useSWR").SWRResponsePro<GetLlmQuery, ClientError>;
7664
7906
  useListModels(variables: ListModelsQueryVariables, config?: SWRConfigInterface<ListModelsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListModelsQuery, ClientError>;
@@ -7845,6 +8087,21 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
7845
8087
  deleteKnowledgeBase(variables?: Exact<{
7846
8088
  input?: InputMaybe<DeleteCommonInput> | undefined;
7847
8089
  }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteKnowledgeBaseMutation>;
8090
+ createKnowledgeBaseFiles(variables: Exact<{
8091
+ input: CreateKnowledgeBaseFileInput;
8092
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<CreateKnowledgeBaseFilesMutation>;
8093
+ deleteKnowledgeBaseFiles(variables?: Exact<{
8094
+ fileIds?: InputMaybe<string | string[]> | undefined;
8095
+ }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteKnowledgeBaseFilesMutation>;
8096
+ listKnowledgeBaseFiles(variables: Exact<{
8097
+ input: ListKnowledgeBaseFilesInput;
8098
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseFilesQuery>;
8099
+ updateKnowledgeBaseFileChunk(variables: Exact<{
8100
+ input: KnowledgeBaseFileChunkInput;
8101
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateKnowledgeBaseFileChunkMutation>;
8102
+ listKnowledgeBaseFileChunks(variables: Exact<{
8103
+ input: ListKnowledgeBaseFileChunksInput;
8104
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBaseFileChunksQuery>;
7848
8105
  listLLMs(variables: Exact<{
7849
8106
  input: ListCommonInput;
7850
8107
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListLlMsQuery>;