@yuntijs/arcadia-bff-sdk 1.2.5 → 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.
@@ -1,3 +1,3 @@
1
- import { GraphQLError } from 'graphql-request/src/types';
1
+ import { GraphQLError } from "graphql-request/src/types";
2
2
  export declare const errorsHandler: (errors: GraphQLError[]) => void;
3
3
  export default errorsHandler;
@@ -1,21 +1,20 @@
1
1
  import { showInvalidTokenModal } from "./modal";
2
2
  import { showForbiddenNotification } from "./notification";
3
- import { isBrowser } from "../utils";
4
3
  export var errorsHandler = function errorsHandler(errors) {
5
4
  var gqlErrors = errors.filter(function (e) {
6
5
  var _e$extensions;
7
- return typeof ((_e$extensions = e.extensions) === null || _e$extensions === void 0 ? void 0 : _e$extensions.code) !== 'undefined';
6
+ return typeof ((_e$extensions = e.extensions) === null || _e$extensions === void 0 ? void 0 : _e$extensions.code) !== "undefined";
8
7
  });
9
- console.warn('gql errors =>', errors);
10
- if (gqlErrors.length === 0 || !isBrowser()) {
8
+ if (gqlErrors.length === 0) {
9
+ console.warn("uncaught errors", errors);
11
10
  return;
12
11
  }
13
12
  gqlErrors.forEach(function (e) {
14
13
  switch (e.extensions.code) {
15
- case 'InvalidToken':
14
+ case "InvalidToken":
16
15
  showInvalidTokenModal(e);
17
16
  break;
18
- case 'Forbidden':
17
+ case "Forbidden":
19
18
  showForbiddenNotification(e);
20
19
  break;
21
20
  default:
@@ -1 +1 @@
1
- export * from './handler';
1
+ export * from "./handler";
@@ -1,3 +1,3 @@
1
- import { GraphQLError } from 'graphql-request/src/types';
1
+ import { GraphQLError } from "graphql-request/src/types";
2
2
  export declare const logout: () => void;
3
3
  export declare const showInvalidTokenModal: (error: GraphQLError) => void;
@@ -1,6 +1,6 @@
1
- import Modal from 'antd/es/modal';
1
+ import { Modal } from "antd";
2
2
  export var logout = function logout() {
3
- window.location.href = '/logout';
3
+ window.location.href = "/logout";
4
4
  };
5
5
  var InvalidTokenModal;
6
6
  var onInvalidTokenModalCancel = function onInvalidTokenModalCancel() {
@@ -13,8 +13,8 @@ export var showInvalidTokenModal = function showInvalidTokenModal(error) {
13
13
  return;
14
14
  }
15
15
  InvalidTokenModal = Modal.warn({
16
- okText: '确定',
17
- content: '用户凭证可能已失效,点击确定重新登录',
16
+ okText: "确定",
17
+ content: "用户凭证可能已失效,点击确定重新登录",
18
18
  onOk: logout,
19
19
  onCancel: onInvalidTokenModalCancel
20
20
  });
@@ -1,3 +1,3 @@
1
- import { GraphQLError } from 'graphql-request/src/types';
1
+ import { GraphQLError } from "graphql-request/src/types";
2
2
  export declare const showForbiddenNotification: (error: GraphQLError) => void;
3
3
  export declare const showGlobalErrorNotification: (error: GraphQLError) => void;
@@ -1,14 +1,14 @@
1
1
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
2
  // @ts-ignore
3
- import notification from 'antd/es/notification';
3
+ import { notification } from "@tenx-ui/materials";
4
4
  var VERBS_MAP = {
5
- create: '创建',
6
- delete: '删除',
7
- update: '更新',
8
- patch: '更新',
9
- get: '获取',
10
- list: '列取',
11
- watch: '监听'
5
+ create: "创建",
6
+ delete: "删除",
7
+ update: "更新",
8
+ patch: "更新",
9
+ get: "获取",
10
+ list: "列取",
11
+ watch: "监听"
12
12
  };
13
13
  export var showForbiddenNotification = function showForbiddenNotification(error) {
14
14
  var _error$extensions;
@@ -16,25 +16,27 @@ export var showForbiddenNotification = function showForbiddenNotification(error)
16
16
  name = _ref.name,
17
17
  kind = _ref.kind,
18
18
  _ref$verb = _ref.verb,
19
- verb = _ref$verb === void 0 ? '' : _ref$verb;
20
- var description = '当前用户没有权限';
21
- description += "".concat(VERBS_MAP[verb] || '操作');
19
+ verb = _ref$verb === void 0 ? "" : _ref$verb;
20
+ var description = "当前用户没有权限";
21
+ description += "".concat(VERBS_MAP[verb] || "操作");
22
22
  if (kind) {
23
23
  description += " ".concat(kind);
24
24
  }
25
25
  if (name) {
26
26
  description += " ".concat(name);
27
27
  }
28
- notification.warning({
29
- message: '当前操作未被授权',
30
- description: description
28
+ notification.warn({
29
+ message: "当前操作未被授权",
30
+ description: description,
31
+ detail: error
31
32
  });
32
33
  };
33
34
  export var showGlobalErrorNotification = function showGlobalErrorNotification(error) {
34
35
  var _ref2 = error || {},
35
36
  message = _ref2.message;
36
- notification.warning({
37
- message: '请求错误',
38
- description: message
37
+ notification.warn({
38
+ message: "请求错误",
39
+ description: message,
40
+ detail: error
39
41
  });
40
42
  };
@@ -1,8 +1,8 @@
1
- import { GraphQLClient } from 'graphql-request';
2
- import type { RequestConfig, RequestMiddleware, Response } from 'graphql-request/src/types';
3
- export * from 'graphql-request';
4
- export * from './errors';
5
- export * from './sdk';
1
+ import { GraphQLClient } from "graphql-request";
2
+ import type { RequestConfig, RequestMiddleware, Response } from "graphql-request/src/types";
3
+ export * from "graphql-request";
4
+ export * from "./errors";
5
+ export * from "./sdk";
6
6
  export interface RequestOptions extends RequestInit {
7
7
  url: string;
8
8
  }
@@ -75,6 +75,9 @@ export declare const sdk: {
75
75
  useListGpTs(variables: import("./sdk").Exact<{
76
76
  input: import("./sdk").ListGptInput;
77
77
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListGpTsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListGpTsQuery, import("graphql-request/src/types").ClientError>;
78
+ useListGptCategory(variables?: import("./sdk").Exact<{
79
+ [key: string]: never;
80
+ }> | undefined, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListGptCategoryQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListGptCategoryQuery, import("graphql-request/src/types").ClientError>;
78
81
  useListKnowledgeBases(variables: import("./sdk").Exact<{
79
82
  input: import("./sdk").ListKnowledgeBaseInput;
80
83
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBasesQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBasesQuery, import("graphql-request/src/types").ClientError>;
@@ -247,6 +250,9 @@ export declare const sdk: {
247
250
  listGPTs(variables: import("./sdk").Exact<{
248
251
  input: import("./sdk").ListGptInput;
249
252
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGpTsQuery>;
253
+ listGPTCategory(variables?: import("./sdk").Exact<{
254
+ [key: string]: never;
255
+ }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGptCategoryQuery>;
250
256
  listKnowledgeBases(variables: import("./sdk").Exact<{
251
257
  input: import("./sdk").ListKnowledgeBaseInput;
252
258
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBasesQuery>;
@@ -373,7 +379,7 @@ interface SdkBaseOptions {
373
379
  /** 请求配置项 */
374
380
  requestConfig?: RequestConfig;
375
381
  }
376
- export type SdkOptions = Pick<SdkBaseOptions, 'url' | 'requestConfig'>;
382
+ export type SdkOptions = Pick<SdkBaseOptions, "url" | "requestConfig">;
377
383
  /**
378
384
  * 初始化 GraphQL client 实例
379
385
  *
@@ -498,6 +504,9 @@ export declare const initSdk: (options?: SdkOptions) => {
498
504
  listGPTs(variables: import("./sdk").Exact<{
499
505
  input: import("./sdk").ListGptInput;
500
506
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGpTsQuery>;
507
+ listGPTCategory(variables?: import("./sdk").Exact<{
508
+ [key: string]: never;
509
+ }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGptCategoryQuery>;
501
510
  listKnowledgeBases(variables: import("./sdk").Exact<{
502
511
  input: import("./sdk").ListKnowledgeBaseInput;
503
512
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBasesQuery>;
@@ -686,6 +695,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
686
695
  useListGpTs(variables: import("./sdk").Exact<{
687
696
  input: import("./sdk").ListGptInput;
688
697
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListGpTsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListGpTsQuery, import("graphql-request/src/types").ClientError>;
698
+ useListGptCategory(variables?: import("./sdk").Exact<{
699
+ [key: string]: never;
700
+ }> | undefined, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListGptCategoryQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListGptCategoryQuery, import("graphql-request/src/types").ClientError>;
689
701
  useListKnowledgeBases(variables: import("./sdk").Exact<{
690
702
  input: import("./sdk").ListKnowledgeBaseInput;
691
703
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBasesQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBasesQuery, import("graphql-request/src/types").ClientError>;
@@ -858,6 +870,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
858
870
  listGPTs(variables: import("./sdk").Exact<{
859
871
  input: import("./sdk").ListGptInput;
860
872
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGpTsQuery>;
873
+ listGPTCategory(variables?: import("./sdk").Exact<{
874
+ [key: string]: never;
875
+ }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGptCategoryQuery>;
861
876
  listKnowledgeBases(variables: import("./sdk").Exact<{
862
877
  input: import("./sdk").ListKnowledgeBaseInput;
863
878
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBasesQuery>;
@@ -1046,6 +1061,9 @@ export declare const useSdk: (options?: SdkOptions) => {
1046
1061
  useListGpTs(variables: import("./sdk").Exact<{
1047
1062
  input: import("./sdk").ListGptInput;
1048
1063
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListGpTsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListGpTsQuery, import("graphql-request/src/types").ClientError>;
1064
+ useListGptCategory(variables?: import("./sdk").Exact<{
1065
+ [key: string]: never;
1066
+ }> | undefined, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListGptCategoryQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListGptCategoryQuery, import("graphql-request/src/types").ClientError>;
1049
1067
  useListKnowledgeBases(variables: import("./sdk").Exact<{
1050
1068
  input: import("./sdk").ListKnowledgeBaseInput;
1051
1069
  }>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListKnowledgeBasesQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListKnowledgeBasesQuery, import("graphql-request/src/types").ClientError>;
@@ -1218,6 +1236,9 @@ export declare const useSdk: (options?: SdkOptions) => {
1218
1236
  listGPTs(variables: import("./sdk").Exact<{
1219
1237
  input: import("./sdk").ListGptInput;
1220
1238
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGpTsQuery>;
1239
+ listGPTCategory(variables?: import("./sdk").Exact<{
1240
+ [key: string]: never;
1241
+ }> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListGptCategoryQuery>;
1221
1242
  listKnowledgeBases(variables: import("./sdk").Exact<{
1222
1243
  input: import("./sdk").ListKnowledgeBaseInput;
1223
1244
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListKnowledgeBasesQuery>;
package/dist/esm/index.js CHANGED
@@ -16,25 +16,21 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
18
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
- import { GraphQLClient } from 'graphql-request';
20
- import qs from 'query-string';
21
- import { useMemo } from 'react';
19
+ import { GraphQLClient } from "graphql-request";
20
+ import qs from "query-string";
21
+ import { useMemo } from "react";
22
22
  import { errorsHandler } from "./errors";
23
23
  import { getSdk, getSdkWithHooks } from "./sdk";
24
- import { isBrowser } from "./utils";
25
- export * from 'graphql-request';
24
+ export * from "graphql-request";
26
25
  export * from "./errors";
27
26
  export * from "./sdk";
28
- var AUTH_DATA = 'authData';
27
+ var AUTH_DATA = "authData";
29
28
  var getAuthData = function getAuthData() {
30
- if (!isBrowser()) {
31
- return {};
32
- }
33
29
  try {
34
- var authData = JSON.parse(window.localStorage.getItem(AUTH_DATA) || '{}');
30
+ var authData = JSON.parse(window.localStorage.getItem(AUTH_DATA) || "{}");
35
31
  return authData;
36
32
  } catch (error) {
37
- console.warn('getAuthData failed', error);
33
+ console.warn("getAuthData failed", error);
38
34
  return {};
39
35
  }
40
36
  };
@@ -42,7 +38,7 @@ export var requestMiddleware = function requestMiddleware(request) {
42
38
  var url = request.url,
43
39
  operationName = request.operationName,
44
40
  otherRequest = _objectWithoutProperties(request, _excluded);
45
- var _url$split = url.split('?'),
41
+ var _url$split = url.split("?"),
46
42
  _url$split2 = _slicedToArray(_url$split, 2),
47
43
  host = _url$split2[0],
48
44
  search = _url$split2[1];
@@ -59,7 +55,7 @@ export var requestMiddleware = function requestMiddleware(request) {
59
55
  return _objectSpread(_objectSpread({
60
56
  url: "".concat(host, "?").concat(qs.stringify(query)),
61
57
  operationName: operationName,
62
- credentials: 'include'
58
+ credentials: "include"
63
59
  }, otherRequest), {}, {
64
60
  headers: Authorization ? _objectSpread(_objectSpread({}, request.headers), {}, {
65
61
  Authorization: Authorization
@@ -73,10 +69,7 @@ export var responseMiddleware = function responseMiddleware(response) {
73
69
  errorsHandler(errors);
74
70
  }
75
71
  };
76
- var endpoint = '/kubeagi-apis/bff';
77
- if (!isBrowser()) {
78
- endpoint = (process.env.BFF_SERVER_ORIGIN || '') + endpoint;
79
- }
72
+ var endpoint = "/kubeagi-apis/bff";
80
73
  export var client = new GraphQLClient(endpoint, {
81
74
  requestMiddleware: requestMiddleware,
82
75
  responseMiddleware: responseMiddleware
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
  /**
@@ -1081,14 +1085,35 @@ export type Gpt = {
1081
1085
  description?: Maybe<Scalars['String']['output']>;
1082
1086
  /** displayName: 展示名称 */
1083
1087
  displayName?: Maybe<Scalars['String']['output']>;
1088
+ /** enableUploadFile 是否开启对话上传文档功能 */
1089
+ enableUploadFile?: Maybe<Scalars['Boolean']['output']>;
1084
1090
  /** hot: 热度 */
1085
1091
  hot?: Maybe<Scalars['Int64']['output']>;
1086
1092
  /** icon: base64的图标 */
1087
1093
  icon?: Maybe<Scalars['String']['output']>;
1094
+ /** isRecommended, 是否推荐 */
1095
+ isRecommended?: Maybe<Scalars['Boolean']['output']>;
1088
1096
  /** name: 集群内唯一名称,实际是app的 namespace/name */
1089
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']>;
1090
1109
  /** 对话开场白 */
1091
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']>;
1092
1117
  };
1093
1118
  export type GptCategory = {
1094
1119
  __typename?: 'GPTCategory';
@@ -2131,6 +2156,8 @@ export type UpdateApplicationMetadataInput = {
2131
2156
  icon: Scalars['String']['input'];
2132
2157
  /** IsPublic, 是否发布,即是否公开提供服务 */
2133
2158
  isPublic?: InputMaybe<Scalars['Boolean']['input']>;
2159
+ /** isRecommended, 是否推荐 */
2160
+ isRecommended?: InputMaybe<Scalars['Boolean']['input']>;
2134
2161
  /** 一些用于标记,选择的的标签,如果要更新,请传递完整内容 */
2135
2162
  labels?: InputMaybe<Scalars['Map']['input']>;
2136
2163
  /**
@@ -2676,6 +2703,7 @@ export type CreateApplicationMutation = {
2676
2703
  creationTimestamp?: any | null;
2677
2704
  updateTimestamp?: any | null;
2678
2705
  isPublic?: boolean | null;
2706
+ isRecommended?: boolean | null;
2679
2707
  status?: string | null;
2680
2708
  category?: Array<string | null> | null;
2681
2709
  };
@@ -2702,6 +2730,7 @@ export type UpdateApplicationMutation = {
2702
2730
  creationTimestamp?: any | null;
2703
2731
  updateTimestamp?: any | null;
2704
2732
  isPublic?: boolean | null;
2733
+ isRecommended?: boolean | null;
2705
2734
  status?: string | null;
2706
2735
  category?: Array<string | null> | null;
2707
2736
  };
@@ -2763,6 +2792,7 @@ export type UpdateApplicationConfigMutation = {
2763
2792
  creationTimestamp?: any | null;
2764
2793
  updateTimestamp?: any | null;
2765
2794
  isPublic?: boolean | null;
2795
+ isRecommended?: boolean | null;
2766
2796
  status?: string | null;
2767
2797
  category?: Array<string | null> | null;
2768
2798
  } | null;
@@ -2821,6 +2851,7 @@ export type GetApplicationQuery = {
2821
2851
  creationTimestamp?: any | null;
2822
2852
  updateTimestamp?: any | null;
2823
2853
  isPublic?: boolean | null;
2854
+ isRecommended?: boolean | null;
2824
2855
  status?: string | null;
2825
2856
  category?: Array<string | null> | null;
2826
2857
  } | null;
@@ -2859,6 +2890,7 @@ export type ListApplicationsQuery = {
2859
2890
  creationTimestamp?: any | null;
2860
2891
  updateTimestamp?: any | null;
2861
2892
  isPublic?: boolean | null;
2893
+ isRecommended?: boolean | null;
2862
2894
  status?: string | null;
2863
2895
  category?: Array<string | null> | null;
2864
2896
  } | {
@@ -3590,6 +3622,10 @@ export type GetDatasourceQuery = {
3590
3622
  bucket?: string | null;
3591
3623
  object?: string | null;
3592
3624
  } | null;
3625
+ pg?: {
3626
+ __typename?: 'Pg';
3627
+ database?: string | null;
3628
+ } | null;
3593
3629
  web?: {
3594
3630
  __typename?: 'Web';
3595
3631
  recommendIntervalTime?: number | null;
@@ -3769,9 +3805,15 @@ export type GetGptQuery = {
3769
3805
  description?: string | null;
3770
3806
  hot?: any | null;
3771
3807
  creator?: string | null;
3808
+ isRecommended?: boolean | null;
3772
3809
  category?: Array<string | null> | null;
3773
3810
  icon?: string | null;
3774
3811
  prologue?: string | null;
3812
+ showRespInfo?: boolean | null;
3813
+ showRetrievalInfo?: boolean | null;
3814
+ showNextGuide?: boolean | null;
3815
+ enableUploadFile?: boolean | null;
3816
+ notReadyReasonCode?: string | null;
3775
3817
  };
3776
3818
  } | null;
3777
3819
  };
@@ -3805,9 +3847,15 @@ export type ListGpTsQuery = {
3805
3847
  description?: string | null;
3806
3848
  hot?: any | null;
3807
3849
  creator?: string | null;
3850
+ isRecommended?: boolean | null;
3808
3851
  category?: Array<string | null> | null;
3809
3852
  icon?: string | null;
3810
3853
  prologue?: string | null;
3854
+ showRespInfo?: boolean | null;
3855
+ showRetrievalInfo?: boolean | null;
3856
+ showNextGuide?: boolean | null;
3857
+ enableUploadFile?: boolean | null;
3858
+ notReadyReasonCode?: string | null;
3811
3859
  } | {
3812
3860
  __typename?: 'KnowledgeBase';
3813
3861
  } | {
@@ -3830,6 +3878,21 @@ export type ListGpTsQuery = {
3830
3878
  };
3831
3879
  } | null;
3832
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
+ };
3833
3896
  export type ListKnowledgeBasesQueryVariables = Exact<{
3834
3897
  input: ListKnowledgeBaseInput;
3835
3898
  }>;
@@ -5604,6 +5667,7 @@ export declare const ListEmbeddersDocument: import("../node_modules/.pnpm/graphq
5604
5667
  export declare const GetEmbedderDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5605
5668
  export declare const GetGptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5606
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;
5607
5671
  export declare const ListKnowledgeBasesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5608
5672
  export declare const GetKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
5609
5673
  export declare const CreateKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -5675,6 +5739,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
5675
5739
  getEmbedder(variables: GetEmbedderQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetEmbedderQuery>;
5676
5740
  getGPT(variables: GetGptQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetGptQuery>;
5677
5741
  listGPTs(variables: ListGpTsQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListGpTsQuery>;
5742
+ listGPTCategory(variables?: ListGptCategoryQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListGptCategoryQuery>;
5678
5743
  listKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<ListKnowledgeBasesQuery>;
5679
5744
  getKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetKnowledgeBaseQuery>;
5680
5745
  createKnowledgeBase(variables: CreateKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateKnowledgeBaseMutation>;
@@ -5732,6 +5797,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
5732
5797
  useGetEmbedder(variables: GetEmbedderQueryVariables, config?: SWRConfigInterface<GetEmbedderQuery, ClientError>): import("./useSWR").SWRResponsePro<GetEmbedderQuery, ClientError>;
5733
5798
  useGetGpt(variables: GetGptQueryVariables, config?: SWRConfigInterface<GetGptQuery, ClientError>): import("./useSWR").SWRResponsePro<GetGptQuery, ClientError>;
5734
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>;
5735
5801
  useListKnowledgeBases(variables: ListKnowledgeBasesQueryVariables, config?: SWRConfigInterface<ListKnowledgeBasesQuery, ClientError>): import("./useSWR").SWRResponsePro<ListKnowledgeBasesQuery, ClientError>;
5736
5802
  useGetKnowledgeBase(variables: GetKnowledgeBaseQueryVariables, config?: SWRConfigInterface<GetKnowledgeBaseQuery, ClientError>): import("./useSWR").SWRResponsePro<GetKnowledgeBaseQuery, ClientError>;
5737
5803
  useListLlMs(variables: ListLlMsQueryVariables, config?: SWRConfigInterface<ListLlMsQuery, ClientError>): import("./useSWR").SWRResponsePro<ListLlMsQuery, ClientError>;
@@ -5859,6 +5925,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
5859
5925
  listGPTs(variables: Exact<{
5860
5926
  input: ListGptInput;
5861
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>;
5862
5931
  listKnowledgeBases(variables: Exact<{
5863
5932
  input: ListKnowledgeBaseInput;
5864
5933
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ListKnowledgeBasesQuery>;