@yuntijs/arcadia-bff-sdk 1.2.159 → 1.2.161

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
@@ -799,6 +799,8 @@ export type CreateKnowledgeBaseFileChunkInput = {
799
799
  dataLineage: DataLineageInput;
800
800
  /** fileId文件的UID */
801
801
  fileId: Scalars['String']['input'];
802
+ /** 支持设置新的索引 */
803
+ indies?: InputMaybe<Array<InputMaybe<UpdateKnowledgeBaseFileChunk>>>;
802
804
  };
803
805
  export type CreateKnowledgeBaseFileInput = {
804
806
  /** enableQASplit是否启用QA拆分 */
@@ -868,10 +870,7 @@ export type CreateKnowledgeBaseInput = {
868
870
  namespace: Scalars['String']['input'];
869
871
  /** 分隔符 */
870
872
  separator?: InputMaybe<Scalars['String']['input']>;
871
- /** markdown文件根据Header拆分 */
872
- splitByHeader?: InputMaybe<Scalars['Boolean']['input']>;
873
- /** 根据字符分割 */
874
- splitBySeparator?: InputMaybe<Scalars['Boolean']['input']>;
873
+ splitMethod: Scalars['Int']['input'];
875
874
  /** "向量数据库(目前不需要填写,直接使用系统默认的向量数据库) */
876
875
  vectorStore?: InputMaybe<TypedObjectReferenceInput>;
877
876
  };
@@ -1153,10 +1152,10 @@ export type CreateWorkflowTemplateInput = {
1153
1152
  export type DataLineage = {
1154
1153
  __typename?: 'DataLineage';
1155
1154
  file: Scalars['String']['output'];
1156
- id: Scalars['String']['output'];
1157
1155
  metadata?: Maybe<Scalars['Map']['output']>;
1158
1156
  page: Scalars['String']['output'];
1159
1157
  sourceContent: Scalars['String']['output'];
1158
+ state: Scalars['Int']['output'];
1160
1159
  };
1161
1160
  export type DataLineageInput = {
1162
1161
  file: Scalars['String']['input'];
@@ -1531,11 +1530,9 @@ export type FileChunkIndex = {
1531
1530
  __typename?: 'FileChunkIndex';
1532
1531
  content: Scalars['String']['output'];
1533
1532
  contentSizeInBytes: Scalars['Int']['output'];
1534
- contentType: Scalars['String']['output'];
1535
1533
  createdAt?: Maybe<Scalars['Time']['output']>;
1536
1534
  id: Scalars['String']['output'];
1537
1535
  multiModalArtifacts?: Maybe<Array<Maybe<MultiModalArtifact>>>;
1538
- primary_index: Scalars['Boolean']['output'];
1539
1536
  processingPhase: Scalars['String']['output'];
1540
1537
  processingPhaseReason: Scalars['String']['output'];
1541
1538
  updatedAt?: Maybe<Scalars['Time']['output']>;
@@ -1648,10 +1645,7 @@ export type KnowledgeBase = {
1648
1645
  reason?: Maybe<Scalars['String']['output']>;
1649
1646
  /** 分隔符 */
1650
1647
  separator?: Maybe<Scalars['String']['output']>;
1651
- /** markdown文件根据Header拆分 */
1652
- splitByHeader?: Maybe<Scalars['Boolean']['output']>;
1653
- /** 根据字符分割 */
1654
- splitBySeparator?: Maybe<Scalars['Boolean']['output']>;
1648
+ splitMethod: Scalars['Int']['output'];
1655
1649
  /**
1656
1650
  * 知识库整体连接状态
1657
1651
  * 规则: True 代表正常 False代表异常
@@ -1694,6 +1688,7 @@ export type KnowledgeBaseFile = {
1694
1688
  source: Scalars['String']['output'];
1695
1689
  /** 数据源类型 */
1696
1690
  sourceType: Scalars['String']['output'];
1691
+ splitMethod: Scalars['Int']['output'];
1697
1692
  /** 最近一次成功的处理耗时 */
1698
1693
  timeCost?: Maybe<Scalars['Int64']['output']>;
1699
1694
  /** 最新处理时间 */
@@ -1701,10 +1696,19 @@ export type KnowledgeBaseFile = {
1701
1696
  };
1702
1697
  export type KnowledgeBaseFileChunk = {
1703
1698
  __typename?: 'KnowledgeBaseFileChunk';
1699
+ content: Scalars['String']['output'];
1700
+ contentSizeInBytes: Scalars['Int']['output'];
1701
+ contentType: Scalars['String']['output'];
1702
+ createdAt?: Maybe<Scalars['Time']['output']>;
1704
1703
  dataLineage: DataLineage;
1705
1704
  fileId: Scalars['String']['output'];
1705
+ id: Scalars['String']['output'];
1706
1706
  indexInFile: Scalars['Int']['output'];
1707
- indies: Array<FileChunkIndex>;
1707
+ indies?: Maybe<Array<FileChunkIndex>>;
1708
+ multiModalArtifacts?: Maybe<Array<Maybe<MultiModalArtifact>>>;
1709
+ processingPhase: Scalars['String']['output'];
1710
+ processingPhaseReason: Scalars['String']['output'];
1711
+ updatedAt?: Maybe<Scalars['Time']['output']>;
1708
1712
  };
1709
1713
  export type KnowledgeBaseFileEmbedResult = {
1710
1714
  __typename?: 'KnowledgeBaseFileEmbedResult';
@@ -1714,7 +1718,6 @@ export type KnowledgeBaseFileEmbedResult = {
1714
1718
  };
1715
1719
  export type KnowledgeBaseMutation = {
1716
1720
  __typename?: 'KnowledgeBaseMutation';
1717
- addKnowledgeBaseFileChunkIndex?: Maybe<Scalars['Void']['output']>;
1718
1721
  createKnowledgeBase: KnowledgeBase;
1719
1722
  createKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1720
1723
  createKnowledgeBaseFiles: Array<Scalars['String']['output']>;
@@ -1724,7 +1727,6 @@ export type KnowledgeBaseMutation = {
1724
1727
  createKnowledgeBaseStructuredFiles: Array<Scalars['String']['output']>;
1725
1728
  deleteKnowledgeBase?: Maybe<Scalars['Void']['output']>;
1726
1729
  deleteKnowledgeBaseFileChunk?: Maybe<Scalars['Void']['output']>;
1727
- deleteKnowledgeBaseFileChunkIndex?: Maybe<Scalars['Void']['output']>;
1728
1730
  deleteKnowledgeBaseFiles?: Maybe<Scalars['Void']['output']>;
1729
1731
  deleteKnowledgeBasePrecisionTesting?: Maybe<Scalars['Void']['output']>;
1730
1732
  updateKnowledgeBase: KnowledgeBase;
@@ -1732,9 +1734,6 @@ export type KnowledgeBaseMutation = {
1732
1734
  updateKnowledgeBaseFileMetadata?: Maybe<Scalars['Void']['output']>;
1733
1735
  updateKnowledgeBaseStructuredFileChunk?: Maybe<Scalars['Void']['output']>;
1734
1736
  };
1735
- export type KnowledgeBaseMutationAddKnowledgeBaseFileChunkIndexArgs = {
1736
- input: AddKnowledgeBaseFileChunkIndexInput;
1737
- };
1738
1737
  export type KnowledgeBaseMutationCreateKnowledgeBaseArgs = {
1739
1738
  input: CreateKnowledgeBaseInput;
1740
1739
  };
@@ -1762,9 +1761,6 @@ export type KnowledgeBaseMutationDeleteKnowledgeBaseArgs = {
1762
1761
  export type KnowledgeBaseMutationDeleteKnowledgeBaseFileChunkArgs = {
1763
1762
  input: DeleteKnowledgeBaseFileChunkInput;
1764
1763
  };
1765
- export type KnowledgeBaseMutationDeleteKnowledgeBaseFileChunkIndexArgs = {
1766
- input: DeleteKnowledgeBaseFileChunkIndexInput;
1767
- };
1768
1764
  export type KnowledgeBaseMutationDeleteKnowledgeBaseFilesArgs = {
1769
1765
  input: DeleteKnowledgeBaseFileInput;
1770
1766
  };
@@ -3721,6 +3717,8 @@ export type UpdateKnowledgeBaseFileChunkInput = {
3721
3717
  contentType: Scalars['String']['input'];
3722
3718
  /** chunk id */
3723
3719
  id: Scalars['String']['input'];
3720
+ /** 自定义索引 */
3721
+ indies?: InputMaybe<Array<UpdateKnowledgeBaseFileChunk>>;
3724
3722
  };
3725
3723
  /** 知识库更新的输入 */
3726
3724
  export type UpdateKnowledgeBaseInput = {
@@ -3754,10 +3752,7 @@ export type UpdateKnowledgeBaseInput = {
3754
3752
  namespace: Scalars['String']['input'];
3755
3753
  /** 分隔符 */
3756
3754
  separator?: InputMaybe<Scalars['String']['input']>;
3757
- /** markdown文件根据Header拆分 */
3758
- splitByHeader?: InputMaybe<Scalars['Boolean']['input']>;
3759
- /** 根据字符分割 */
3760
- splitBySeparator?: InputMaybe<Scalars['Boolean']['input']>;
3755
+ splitMethod: Scalars['Int']['input'];
3761
3756
  };
3762
3757
  export type UpdateKnowledgeBaseStructuredFileChunkInput = {
3763
3758
  /** 新的内容 */
@@ -4301,12 +4296,6 @@ export type WorkflowTemplateQueryGetWorkflowTemplateArgs = {
4301
4296
  export type WorkflowTemplateQueryListWorkflowTemplatesArgs = {
4302
4297
  input: ListTemplatesInput;
4303
4298
  };
4304
- export type AddKnowledgeBaseFileChunkIndexInput = {
4305
- /** 新的索引内容 */
4306
- content: Scalars['String']['input'];
4307
- /** 分块id */
4308
- id: Scalars['String']['input'];
4309
- };
4310
4299
  export type AuthPluginInput = {
4311
4300
  /** 如果需要认证,这个字段必须要填写.目前只有BasicAuth和Bearer Token支持。 */
4312
4301
  auth: PluginAuthInput;
@@ -4323,16 +4312,18 @@ export type AuthPluginInput = {
4323
4312
  */
4324
4313
  namespace: Scalars['String']['input'];
4325
4314
  };
4326
- export type DeleteKnowledgeBaseFileChunkIndexInput = {
4327
- /** 索引id */
4328
- id?: InputMaybe<Array<Scalars['String']['input']>>;
4329
- };
4330
4315
  export type UpdateContentInput = {
4331
4316
  content: ContentTemplateInput;
4332
4317
  contentID: Scalars['String']['input'];
4333
4318
  };
4319
+ export type UpdateKnowledgeBaseFileChunk = {
4320
+ /** 索引新内容 */
4321
+ content: Scalars['String']['input'];
4322
+ /** 索引ID */
4323
+ id?: InputMaybe<Scalars['String']['input']>;
4324
+ };
4334
4325
  export type UpdateKnowledgeBaseFileMetadataInput = {
4335
- id: Scalars['String']['input'];
4326
+ fileID: Scalars['String']['input'];
4336
4327
  metadata: Scalars['Map']['input'];
4337
4328
  };
4338
4329
  export type CreateAgentMutationVariables = Exact<{
@@ -6248,8 +6239,7 @@ export type CreateKnowledgeBaseMutation = {
6248
6239
  dataType?: string | null;
6249
6240
  chunkSize?: number | null;
6250
6241
  enableMultiModal?: boolean | null;
6251
- splitByHeader?: boolean | null;
6252
- splitBySeparator?: boolean | null;
6242
+ splitMethod: number;
6253
6243
  separator?: string | null;
6254
6244
  maxDepth?: number | null;
6255
6245
  autoIndex?: boolean | null;
@@ -6301,8 +6291,7 @@ export type UpdateKnowledgeBaseMutation = {
6301
6291
  chunkSize?: number | null;
6302
6292
  chunkOverlap?: number | null;
6303
6293
  enableMultiModal?: boolean | null;
6304
- splitByHeader?: boolean | null;
6305
- splitBySeparator?: boolean | null;
6294
+ splitMethod: number;
6306
6295
  separator?: string | null;
6307
6296
  maxDepth?: number | null;
6308
6297
  autoIndex?: boolean | null;
@@ -6384,6 +6373,7 @@ export type GetKnowledgeBaseFileQuery = {
6384
6373
  updateTimestamp?: any | null;
6385
6374
  phase?: string | null;
6386
6375
  phaseReason?: string | null;
6376
+ splitMethod: number;
6387
6377
  maxDepth?: number | null;
6388
6378
  separator?: string | null;
6389
6379
  customMetadata?: any | null;
@@ -6439,6 +6429,7 @@ export type ListKnowledgeBaseFilesQuery = {
6439
6429
  updateTimestamp?: any | null;
6440
6430
  phase?: string | null;
6441
6431
  phaseReason?: string | null;
6432
+ splitMethod: number;
6442
6433
  maxDepth?: number | null;
6443
6434
  separator?: string | null;
6444
6435
  customMetadata?: any | null;
@@ -6553,9 +6544,16 @@ export type ListKnowledgeBaseFileChunksQuery = {
6553
6544
  __typename?: 'KnowledgeBaseFile';
6554
6545
  } | {
6555
6546
  __typename?: 'KnowledgeBaseFileChunk';
6547
+ id: string;
6556
6548
  fileId: string;
6549
+ createdAt?: any | null;
6550
+ updatedAt?: any | null;
6557
6551
  indexInFile: number;
6558
- indies: Array<{
6552
+ content: string;
6553
+ contentSizeInBytes: number;
6554
+ processingPhase: string;
6555
+ processingPhaseReason: string;
6556
+ indies?: Array<{
6559
6557
  __typename?: 'FileChunkIndex';
6560
6558
  id: string;
6561
6559
  createdAt?: any | null;
@@ -6564,20 +6562,24 @@ export type ListKnowledgeBaseFileChunksQuery = {
6564
6562
  contentSizeInBytes: number;
6565
6563
  processingPhase: string;
6566
6564
  processingPhaseReason: string;
6567
- primary_index: boolean;
6568
6565
  multiModalArtifacts?: Array<{
6569
6566
  __typename?: 'MultiModalArtifact';
6570
6567
  name: string;
6571
6568
  type: string;
6572
6569
  url: string;
6573
6570
  } | null> | null;
6574
- }>;
6571
+ }> | null;
6572
+ multiModalArtifacts?: Array<{
6573
+ __typename?: 'MultiModalArtifact';
6574
+ name: string;
6575
+ type: string;
6576
+ url: string;
6577
+ } | null> | null;
6575
6578
  dataLineage: {
6576
6579
  __typename?: 'DataLineage';
6577
6580
  file: string;
6578
6581
  page: string;
6579
6582
  sourceContent: string;
6580
- id: string;
6581
6583
  };
6582
6584
  } | {
6583
6585
  __typename?: 'KnowledgeBaseStructuredFileChunk';
@@ -6964,26 +6966,6 @@ export type UpdateKnowledgeBaseFileMetadataMutation = {
6964
6966
  updateKnowledgeBaseFileMetadata?: any | null;
6965
6967
  } | null;
6966
6968
  };
6967
- export type AddKnowledgeBaseFileChunkIndexMutationVariables = Exact<{
6968
- input: AddKnowledgeBaseFileChunkIndexInput;
6969
- }>;
6970
- export type AddKnowledgeBaseFileChunkIndexMutation = {
6971
- __typename?: 'Mutation';
6972
- KnowledgeBase?: {
6973
- __typename?: 'KnowledgeBaseMutation';
6974
- addKnowledgeBaseFileChunkIndex?: any | null;
6975
- } | null;
6976
- };
6977
- export type DeleteKnowledgeBaseFileChunkIndexMutationVariables = Exact<{
6978
- input: DeleteKnowledgeBaseFileChunkIndexInput;
6979
- }>;
6980
- export type DeleteKnowledgeBaseFileChunkIndexMutation = {
6981
- __typename?: 'Mutation';
6982
- KnowledgeBase?: {
6983
- __typename?: 'KnowledgeBaseMutation';
6984
- deleteKnowledgeBaseFileChunkIndex?: any | null;
6985
- } | null;
6986
- };
6987
6969
  export type ListLlMsQueryVariables = Exact<{
6988
6970
  input: ListCommonInput;
6989
6971
  }>;
@@ -11138,8 +11120,6 @@ export declare const GetKnowledgeBasePrecisionTestingDocument: import("../node_m
11138
11120
  export declare const ListKnowledgeBasePrecisionTestingDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11139
11121
  export declare const CreateKnowledgeBaseImageFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11140
11122
  export declare const UpdateKnowledgeBaseFileMetadataDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11141
- export declare const AddKnowledgeBaseFileChunkIndexDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11142
- export declare const DeleteKnowledgeBaseFileChunkIndexDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11143
11123
  export declare const ListLlMsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11144
11124
  export declare const GetLlmDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
11145
11125
  export declare const ListModelsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -11297,8 +11277,6 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
11297
11277
  listKnowledgeBasePrecisionTesting(variables: ListKnowledgeBasePrecisionTestingQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBasePrecisionTestingQuery>;
11298
11278
  createKnowledgeBaseImageFiles(variables: CreateKnowledgeBaseImageFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseImageFilesMutation>;
11299
11279
  updateKnowledgeBaseFileMetadata(variables?: UpdateKnowledgeBaseFileMetadataMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateKnowledgeBaseFileMetadataMutation>;
11300
- addKnowledgeBaseFileChunkIndex(variables: AddKnowledgeBaseFileChunkIndexMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<AddKnowledgeBaseFileChunkIndexMutation>;
11301
- deleteKnowledgeBaseFileChunkIndex(variables: DeleteKnowledgeBaseFileChunkIndexMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteKnowledgeBaseFileChunkIndexMutation>;
11302
11280
  listLLMs(variables: ListLlMsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListLlMsQuery>;
11303
11281
  getLLM(variables: GetLlmQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetLlmQuery>;
11304
11282
  listModels(variables: ListModelsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListModelsQuery>;
@@ -11686,12 +11664,6 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
11686
11664
  updateKnowledgeBaseFileMetadata(variables?: Exact<{
11687
11665
  input?: InputMaybe<UpdateKnowledgeBaseFileMetadataInput> | undefined;
11688
11666
  }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateKnowledgeBaseFileMetadataMutation>;
11689
- addKnowledgeBaseFileChunkIndex(variables: Exact<{
11690
- input: AddKnowledgeBaseFileChunkIndexInput;
11691
- }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<AddKnowledgeBaseFileChunkIndexMutation>;
11692
- deleteKnowledgeBaseFileChunkIndex(variables: Exact<{
11693
- input: DeleteKnowledgeBaseFileChunkIndexInput;
11694
- }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteKnowledgeBaseFileChunkIndexMutation>;
11695
11667
  listLLMs(variables: Exact<{
11696
11668
  input: ListCommonInput;
11697
11669
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListLlMsQuery>;