@yuntijs/arcadia-bff-sdk 1.2.4 → 1.2.6

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
@@ -168,6 +168,8 @@ export type ApplicationMetadata = {
168
168
  id?: Maybe<Scalars['String']['output']>;
169
169
  /** IsPublic, 是否发布,即是否公开提供服务 */
170
170
  isPublic?: Maybe<Scalars['Boolean']['output']>;
171
+ /** isRecommended, 是否推荐 */
172
+ isRecommended?: Maybe<Scalars['Boolean']['output']>;
171
173
  /** 一些用于标记,选择的的标签 */
172
174
  labels?: Maybe<Scalars['Map']['output']>;
173
175
  /**
@@ -239,6 +241,8 @@ export type CreateApplicationMetadataInput = {
239
241
  icon: Scalars['String']['input'];
240
242
  /** IsPublic, 是否发布,即是否公开提供服务 */
241
243
  isPublic?: InputMaybe<Scalars['Boolean']['input']>;
244
+ /** isRecommended, 是否推荐 */
245
+ isRecommended?: InputMaybe<Scalars['Boolean']['input']>;
242
246
  /** 一些用于标记,选择的的标签 */
243
247
  labels?: InputMaybe<Scalars['Map']['input']>;
244
248
  /**
@@ -306,6 +310,8 @@ export type CreateDatasourceInput = {
306
310
  namespace: Scalars['String']['input'];
307
311
  /** 数据源为对象存储类型时的输入 */
308
312
  ossinput?: InputMaybe<OssInput>;
313
+ /** 数据源为Postgresql时的输入 */
314
+ pginput?: InputMaybe<PgInput>;
309
315
  /** 数据源为Web数据时的输入 */
310
316
  webinput?: InputMaybe<WebInput>;
311
317
  };
@@ -859,6 +865,11 @@ export type Datasource = {
859
865
  * 规则: 非空代表当前数据源为对象存储数据源
860
866
  */
861
867
  oss?: Maybe<Oss>;
868
+ /**
869
+ * Postgresql访问信息
870
+ * 规则: 非空代表当前数据源为Postgresql数据源
871
+ */
872
+ pg?: Maybe<Pg>;
862
873
  /** 数据源连接状态 */
863
874
  status?: Maybe<Scalars['String']['output']>;
864
875
  /** 数据源类型 */
@@ -1018,6 +1029,8 @@ export type F = {
1018
1029
  size?: Maybe<Scalars['String']['output']>;
1019
1030
  /** 文件更新时间,如果没有导入成功,这个字段为空 */
1020
1031
  time?: Maybe<Scalars['Time']['output']>;
1032
+ /** 文件版本列表 */
1033
+ versions?: Maybe<Array<Scalars['String']['output']>>;
1021
1034
  };
1022
1035
  export type FileDetails = {
1023
1036
  __typename?: 'FileDetails';
@@ -1039,6 +1052,7 @@ export type FileFilter = {
1039
1052
  sortBy?: InputMaybe<Scalars['String']['input']>;
1040
1053
  };
1041
1054
  export type FileGroup = {
1055
+ files?: InputMaybe<Array<FileWithVersionInput>>;
1042
1056
  /** 用到的文件路径,注意⚠️ 一定不要加bucket的名字 */
1043
1057
  paths?: InputMaybe<Array<Scalars['String']['input']>>;
1044
1058
  /** 数据源的基础信息 */
@@ -1048,6 +1062,15 @@ export type FileItem = {
1048
1062
  name: Scalars['String']['input'];
1049
1063
  size?: InputMaybe<Scalars['String']['input']>;
1050
1064
  };
1065
+ export type FileWithVersion = {
1066
+ __typename?: 'FileWithVersion';
1067
+ path: Scalars['String']['output'];
1068
+ version?: Maybe<Scalars['String']['output']>;
1069
+ };
1070
+ export type FileWithVersionInput = {
1071
+ path: Scalars['String']['input'];
1072
+ version?: InputMaybe<Scalars['String']['input']>;
1073
+ };
1051
1074
  /**
1052
1075
  * GPT
1053
1076
  * GPT应用需要的信息
@@ -1062,19 +1085,47 @@ export type Gpt = {
1062
1085
  description?: Maybe<Scalars['String']['output']>;
1063
1086
  /** displayName: 展示名称 */
1064
1087
  displayName?: Maybe<Scalars['String']['output']>;
1088
+ /** enableUploadFile 是否开启对话上传文档功能 */
1089
+ enableUploadFile?: Maybe<Scalars['Boolean']['output']>;
1065
1090
  /** hot: 热度 */
1066
1091
  hot?: Maybe<Scalars['Int64']['output']>;
1067
1092
  /** icon: base64的图标 */
1068
1093
  icon?: Maybe<Scalars['String']['output']>;
1094
+ /** isRecommended, 是否推荐 */
1095
+ isRecommended?: Maybe<Scalars['Boolean']['output']>;
1069
1096
  /** name: 集群内唯一名称,实际是app的 namespace/name */
1070
1097
  name?: Maybe<Scalars['String']['output']>;
1098
+ /**
1099
+ * notReadyReasonCode: 用于指明当前gpt状态不正常的原因。
1100
+ * 可选值:
1101
+ * - 空:就绪,gpt 可以使用
1102
+ * - VectorStoreIsNotReady: 向量数据库没有就绪
1103
+ * - EmbedderIsNotReady: embedder服务没有就绪
1104
+ * - KnowledgeBaseNotReady: 知识库未就绪,指向量数据库和embedder出错之外的其他情况
1105
+ * - LLMNotReady: 模型服务没有就绪
1106
+ * - ConfigError: 应用配置错误,比如写了多个Output节点,比如节点名称重复等其他错误
1107
+ */
1108
+ notReadyReasonCode?: Maybe<Scalars['String']['output']>;
1071
1109
  /** 对话开场白 */
1072
1110
  prologue?: Maybe<Scalars['String']['output']>;
1111
+ /** showNextGuide 下一步引导,即是否在chat界面显示下一步引导 */
1112
+ showNextGuide?: Maybe<Scalars['Boolean']['output']>;
1113
+ /** showRespInfo 查看关联信息配置,即是否在chat界面显示关联信息 */
1114
+ showRespInfo?: Maybe<Scalars['Boolean']['output']>;
1115
+ /** showRetrievalInfo 查看引用配置,即是否在chat界面显示引用信息 */
1116
+ showRetrievalInfo?: Maybe<Scalars['Boolean']['output']>;
1117
+ };
1118
+ export type GptCategory = {
1119
+ __typename?: 'GPTCategory';
1120
+ id: Scalars['String']['output'];
1121
+ name: Scalars['String']['output'];
1122
+ nameEn: Scalars['String']['output'];
1073
1123
  };
1074
1124
  export type GptQuery = {
1075
1125
  __typename?: 'GPTQuery';
1076
1126
  getGPT: Gpt;
1077
1127
  listGPT: PaginatedResult;
1128
+ listGPTCategory: Array<Maybe<GptCategory>>;
1078
1129
  };
1079
1130
  export type GptQueryGetGptArgs = {
1080
1131
  name: Scalars['String']['input'];
@@ -1733,6 +1784,15 @@ export type PersistentVolumeClaimSpecInput = {
1733
1784
  volumeMode?: InputMaybe<Scalars['String']['input']>;
1734
1785
  volumeName?: InputMaybe<Scalars['String']['input']>;
1735
1786
  };
1787
+ /** Postgresql的使用信息 */
1788
+ export type Pg = {
1789
+ __typename?: 'Pg';
1790
+ /** 所用的数据库名称 */
1791
+ database?: Maybe<Scalars['String']['output']>;
1792
+ };
1793
+ export type PgInput = {
1794
+ database: Scalars['String']['input'];
1795
+ };
1736
1796
  export type Query = {
1737
1797
  __typename?: 'Query';
1738
1798
  Application?: Maybe<ApplicationQuery>;
@@ -2096,6 +2156,8 @@ export type UpdateApplicationMetadataInput = {
2096
2156
  icon: Scalars['String']['input'];
2097
2157
  /** IsPublic, 是否发布,即是否公开提供服务 */
2098
2158
  isPublic?: InputMaybe<Scalars['Boolean']['input']>;
2159
+ /** isRecommended, 是否推荐 */
2160
+ isRecommended?: InputMaybe<Scalars['Boolean']['input']>;
2099
2161
  /** 一些用于标记,选择的的标签,如果要更新,请传递完整内容 */
2100
2162
  labels?: InputMaybe<Scalars['Map']['input']>;
2101
2163
  /**
@@ -2154,6 +2216,8 @@ export type UpdateDatasourceInput = {
2154
2216
  namespace: Scalars['String']['input'];
2155
2217
  /** 数据源为对象存储类型时的输入 */
2156
2218
  ossinput?: InputMaybe<OssInput>;
2219
+ /** 数据源为Postgresql时的输入 */
2220
+ pginput?: InputMaybe<PgInput>;
2157
2221
  /** 数据源为Web数据时的输入 */
2158
2222
  webinput?: InputMaybe<WebInput>;
2159
2223
  };
@@ -2580,6 +2644,8 @@ export type Filedetail = {
2580
2644
  timeCost: Scalars['Int']['output'];
2581
2645
  /** 最新处理时间 */
2582
2646
  updateTimestamp?: Maybe<Scalars['Time']['output']>;
2647
+ /** 文件版本,""或者"null"的情况表示是文件最新版本。 */
2648
+ version: Scalars['String']['output'];
2583
2649
  };
2584
2650
  /**
2585
2651
  * 文件组
@@ -2588,6 +2654,7 @@ export type Filedetail = {
2588
2654
  */
2589
2655
  export type Filegroup = {
2590
2656
  __typename?: 'filegroup';
2657
+ files?: Maybe<Array<FileWithVersion>>;
2591
2658
  /** 路径数组 */
2592
2659
  path?: Maybe<Array<Scalars['String']['output']>>;
2593
2660
  /** 源;目前仅支持版本数据集,即 Kind为 VersionedDataset */
@@ -2609,6 +2676,7 @@ export type Filegroupdetail = {
2609
2676
  };
2610
2677
  /** 源文件输入 */
2611
2678
  export type Filegroupinput = {
2679
+ files?: InputMaybe<Array<FileWithVersionInput>>;
2612
2680
  /** 路径 */
2613
2681
  path?: InputMaybe<Array<Scalars['String']['input']>>;
2614
2682
  /** 数据源字段 */
@@ -2635,6 +2703,7 @@ export type CreateApplicationMutation = {
2635
2703
  creationTimestamp?: any | null;
2636
2704
  updateTimestamp?: any | null;
2637
2705
  isPublic?: boolean | null;
2706
+ isRecommended?: boolean | null;
2638
2707
  status?: string | null;
2639
2708
  category?: Array<string | null> | null;
2640
2709
  };
@@ -2661,6 +2730,7 @@ export type UpdateApplicationMutation = {
2661
2730
  creationTimestamp?: any | null;
2662
2731
  updateTimestamp?: any | null;
2663
2732
  isPublic?: boolean | null;
2733
+ isRecommended?: boolean | null;
2664
2734
  status?: string | null;
2665
2735
  category?: Array<string | null> | null;
2666
2736
  };
@@ -2722,6 +2792,7 @@ export type UpdateApplicationConfigMutation = {
2722
2792
  creationTimestamp?: any | null;
2723
2793
  updateTimestamp?: any | null;
2724
2794
  isPublic?: boolean | null;
2795
+ isRecommended?: boolean | null;
2725
2796
  status?: string | null;
2726
2797
  category?: Array<string | null> | null;
2727
2798
  } | null;
@@ -2780,6 +2851,7 @@ export type GetApplicationQuery = {
2780
2851
  creationTimestamp?: any | null;
2781
2852
  updateTimestamp?: any | null;
2782
2853
  isPublic?: boolean | null;
2854
+ isRecommended?: boolean | null;
2783
2855
  status?: string | null;
2784
2856
  category?: Array<string | null> | null;
2785
2857
  } | null;
@@ -2818,6 +2890,7 @@ export type ListApplicationsQuery = {
2818
2890
  creationTimestamp?: any | null;
2819
2891
  updateTimestamp?: any | null;
2820
2892
  isPublic?: boolean | null;
2893
+ isRecommended?: boolean | null;
2821
2894
  status?: string | null;
2822
2895
  category?: Array<string | null> | null;
2823
2896
  } | {
@@ -3367,6 +3440,10 @@ export type CreateDatasourceMutation = {
3367
3440
  bucket?: string | null;
3368
3441
  object?: string | null;
3369
3442
  } | null;
3443
+ pg?: {
3444
+ __typename?: 'Pg';
3445
+ database?: string | null;
3446
+ } | null;
3370
3447
  web?: {
3371
3448
  __typename?: 'Web';
3372
3449
  recommendIntervalTime?: number | null;
@@ -3409,6 +3486,10 @@ export type UpdateDatasourceMutation = {
3409
3486
  bucket?: string | null;
3410
3487
  object?: string | null;
3411
3488
  } | null;
3489
+ pg?: {
3490
+ __typename?: 'Pg';
3491
+ database?: string | null;
3492
+ } | null;
3412
3493
  web?: {
3413
3494
  __typename?: 'Web';
3414
3495
  recommendIntervalTime?: number | null;
@@ -3469,6 +3550,10 @@ export type ListDatasourcesQuery = {
3469
3550
  bucket?: string | null;
3470
3551
  object?: string | null;
3471
3552
  } | null;
3553
+ pg?: {
3554
+ __typename?: 'Pg';
3555
+ database?: string | null;
3556
+ } | null;
3472
3557
  web?: {
3473
3558
  __typename?: 'Web';
3474
3559
  recommendIntervalTime?: number | null;
@@ -3537,6 +3622,10 @@ export type GetDatasourceQuery = {
3537
3622
  bucket?: string | null;
3538
3623
  object?: string | null;
3539
3624
  } | null;
3625
+ pg?: {
3626
+ __typename?: 'Pg';
3627
+ database?: string | null;
3628
+ } | null;
3540
3629
  web?: {
3541
3630
  __typename?: 'Web';
3542
3631
  recommendIntervalTime?: number | null;
@@ -3716,9 +3805,15 @@ export type GetGptQuery = {
3716
3805
  description?: string | null;
3717
3806
  hot?: any | null;
3718
3807
  creator?: string | null;
3808
+ isRecommended?: boolean | null;
3719
3809
  category?: Array<string | null> | null;
3720
3810
  icon?: string | null;
3721
3811
  prologue?: string | null;
3812
+ showRespInfo?: boolean | null;
3813
+ showRetrievalInfo?: boolean | null;
3814
+ showNextGuide?: boolean | null;
3815
+ enableUploadFile?: boolean | null;
3816
+ notReadyReasonCode?: string | null;
3722
3817
  };
3723
3818
  } | null;
3724
3819
  };
@@ -3752,9 +3847,15 @@ export type ListGpTsQuery = {
3752
3847
  description?: string | null;
3753
3848
  hot?: any | null;
3754
3849
  creator?: string | null;
3850
+ isRecommended?: boolean | null;
3755
3851
  category?: Array<string | null> | null;
3756
3852
  icon?: string | null;
3757
3853
  prologue?: string | null;
3854
+ showRespInfo?: boolean | null;
3855
+ showRetrievalInfo?: boolean | null;
3856
+ showNextGuide?: boolean | null;
3857
+ enableUploadFile?: boolean | null;
3858
+ notReadyReasonCode?: string | null;
3758
3859
  } | {
3759
3860
  __typename?: 'KnowledgeBase';
3760
3861
  } | {
@@ -3777,6 +3878,21 @@ export type ListGpTsQuery = {
3777
3878
  };
3778
3879
  } | null;
3779
3880
  };
3881
+ export type ListGptCategoryQueryVariables = Exact<{
3882
+ [key: string]: never;
3883
+ }>;
3884
+ export type ListGptCategoryQuery = {
3885
+ __typename?: 'Query';
3886
+ GPT?: {
3887
+ __typename?: 'GPTQuery';
3888
+ listGPTCategory: Array<{
3889
+ __typename?: 'GPTCategory';
3890
+ id: string;
3891
+ name: string;
3892
+ nameEn: string;
3893
+ } | null>;
3894
+ } | null;
3895
+ };
3780
3896
  export type ListKnowledgeBasesQueryVariables = Exact<{
3781
3897
  input: ListKnowledgeBaseInput;
3782
3898
  }>;
@@ -3847,6 +3963,7 @@ export type ListKnowledgeBasesQuery = {
3847
3963
  size: string;
3848
3964
  updateTimestamp?: any | null;
3849
3965
  timeCost: number;
3966
+ version: string;
3850
3967
  } | null> | null;
3851
3968
  } | null> | null;
3852
3969
  } | {
@@ -3924,6 +4041,7 @@ export type GetKnowledgeBaseQuery = {
3924
4041
  size: string;
3925
4042
  updateTimestamp?: any | null;
3926
4043
  timeCost: number;
4044
+ version: string;
3927
4045
  } | null> | null;
3928
4046
  } | null> | null;
3929
4047
  };
@@ -3983,6 +4101,7 @@ export type CreateKnowledgeBaseMutation = {
3983
4101
  size: string;
3984
4102
  updateTimestamp?: any | null;
3985
4103
  timeCost: number;
4104
+ version: string;
3986
4105
  } | null> | null;
3987
4106
  } | null> | null;
3988
4107
  };
@@ -4042,6 +4161,7 @@ export type UpdateKnowledgeBaseMutation = {
4042
4161
  size: string;
4043
4162
  updateTimestamp?: any | null;
4044
4163
  timeCost: number;
4164
+ version: string;
4045
4165
  } | null> | null;
4046
4166
  } | null> | null;
4047
4167
  };
@@ -5547,6 +5667,7 @@ export declare const ListEmbeddersDocument: import("../node_modules/.pnpm/graphq
5547
5667
  export declare const GetEmbedderDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5548
5668
  export declare const GetGptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5549
5669
  export declare const ListGpTsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5670
+ export declare const ListGptCategoryDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5550
5671
  export declare const ListKnowledgeBasesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5551
5672
  export declare const GetKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5552
5673
  export declare const CreateKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -5618,6 +5739,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
5618
5739
  getEmbedder(variables: GetEmbedderQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetEmbedderQuery>;
5619
5740
  getGPT(variables: GetGptQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetGptQuery>;
5620
5741
  listGPTs(variables: ListGpTsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListGpTsQuery>;
5742
+ listGPTCategory(variables?: ListGptCategoryQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListGptCategoryQuery>;
5621
5743
  listKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBasesQuery>;
5622
5744
  getKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetKnowledgeBaseQuery>;
5623
5745
  createKnowledgeBase(variables: CreateKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseMutation>;
@@ -5675,6 +5797,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
5675
5797
  useGetEmbedder(variables: GetEmbedderQueryVariables, config?: SWRConfigInterface<GetEmbedderQuery, ClientError>): import("./useSWR").SWRResponsePro<GetEmbedderQuery, ClientError>;
5676
5798
  useGetGpt(variables: GetGptQueryVariables, config?: SWRConfigInterface<GetGptQuery, ClientError>): import("./useSWR").SWRResponsePro<GetGptQuery, ClientError>;
5677
5799
  useListGpTs(variables: ListGpTsQueryVariables, config?: SWRConfigInterface<ListGpTsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListGpTsQuery, ClientError>;
5800
+ useListGptCategory(variables?: ListGptCategoryQueryVariables, config?: SWRConfigInterface<ListGptCategoryQuery, ClientError>): import("./useSWR").SWRResponsePro<ListGptCategoryQuery, ClientError>;
5678
5801
  useListKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBasesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBasesQuery, ClientError>;
5679
5802
  useGetKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseQuery, ClientError>;
5680
5803
  useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListLlMsQuery, ClientError>;
@@ -5802,6 +5925,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
5802
5925
  listGPTs(variables: Exact<{
5803
5926
  input: ListGptInput;
5804
5927
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListGpTsQuery>;
5928
+ listGPTCategory(variables?: Exact<{
5929
+ [key: string]: never;
5930
+ }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListGptCategoryQuery>;
5805
5931
  listKnowledgeBases(variables: Exact<{
5806
5932
  input: ListKnowledgeBaseInput;
5807
5933
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBasesQuery>;