@yuntijs/arcadia-bff-sdk 1.2.14 → 1.2.16

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
@@ -184,6 +184,17 @@ export type ApplicationMetadata = {
184
184
  * 规则: 非空
185
185
  */
186
186
  namespace: Scalars['String']['output'];
187
+ /**
188
+ * notReadyReasonCode: 用于指明当前应用状态不正常的原因。状态码要和gpts中同字段保持一致。
189
+ * 可选值:
190
+ * - 空:就绪,应用 可以使用
191
+ * - VectorStoreIsNotReady: 向量数据库没有就绪
192
+ * - EmbedderIsNotReady: embedder服务没有就绪
193
+ * - KnowledgeBaseNotReady: 知识库未就绪,指向量数据库和embedder出错之外的其他情况
194
+ * - LLMNotReady: 模型服务没有就绪
195
+ * - ConfigError: 应用配置错误,比如写了多个Output节点,比如节点名称重复等其他错误
196
+ */
197
+ notReadyReasonCode?: Maybe<Scalars['String']['output']>;
187
198
  /** 应用状态 */
188
199
  status?: Maybe<Scalars['String']['output']>;
189
200
  /** 更新时间 */
@@ -1098,7 +1109,7 @@ export type Gpt = {
1098
1109
  /** name: 集群内唯一名称,实际是app的 namespace/name */
1099
1110
  name?: Maybe<Scalars['String']['output']>;
1100
1111
  /**
1101
- * notReadyReasonCode: 用于指明当前gpt状态不正常的原因。
1112
+ * notReadyReasonCode: 用于指明当前gpt状态不正常的原因。状态码要和应用中同字段保持一致。
1102
1113
  * 可选值:
1103
1114
  * - 空:就绪,gpt 可以使用
1104
1115
  * - VectorStoreIsNotReady: 向量数据库没有就绪
@@ -2643,6 +2654,8 @@ export type Filedetail = {
2643
2654
  * 规则: enum { QA }
2644
2655
  */
2645
2656
  fileType: Scalars['String']['output'];
2657
+ /** 文件最新版本 */
2658
+ latestVersion: Scalars['String']['output'];
2646
2659
  /** 文件路径 */
2647
2660
  path: Scalars['String']['output'];
2648
2661
  /**
@@ -2718,6 +2731,7 @@ export type CreateApplicationMutation = {
2718
2731
  isRecommended?: boolean | null;
2719
2732
  status?: string | null;
2720
2733
  category?: Array<string | null> | null;
2734
+ notReadyReasonCode?: string | null;
2721
2735
  };
2722
2736
  } | null;
2723
2737
  };
@@ -2745,6 +2759,7 @@ export type UpdateApplicationMutation = {
2745
2759
  isRecommended?: boolean | null;
2746
2760
  status?: string | null;
2747
2761
  category?: Array<string | null> | null;
2762
+ notReadyReasonCode?: string | null;
2748
2763
  };
2749
2764
  } | null;
2750
2765
  };
@@ -2808,6 +2823,7 @@ export type UpdateApplicationConfigMutation = {
2808
2823
  isRecommended?: boolean | null;
2809
2824
  status?: string | null;
2810
2825
  category?: Array<string | null> | null;
2826
+ notReadyReasonCode?: string | null;
2811
2827
  } | null;
2812
2828
  tools?: Array<{
2813
2829
  __typename?: 'Tool';
@@ -2868,6 +2884,7 @@ export type GetApplicationQuery = {
2868
2884
  isRecommended?: boolean | null;
2869
2885
  status?: string | null;
2870
2886
  category?: Array<string | null> | null;
2887
+ notReadyReasonCode?: string | null;
2871
2888
  } | null;
2872
2889
  tools?: Array<{
2873
2890
  __typename?: 'Tool';
@@ -2907,6 +2924,7 @@ export type ListApplicationsQuery = {
2907
2924
  isRecommended?: boolean | null;
2908
2925
  status?: string | null;
2909
2926
  category?: Array<string | null> | null;
2927
+ notReadyReasonCode?: string | null;
2910
2928
  } | {
2911
2929
  __typename?: 'Dataset';
2912
2930
  } | {
@@ -3992,6 +4010,7 @@ export type ListKnowledgeBasesQuery = {
3992
4010
  updateTimestamp?: any | null;
3993
4011
  timeCost: number;
3994
4012
  version: string;
4013
+ latestVersion: string;
3995
4014
  } | null> | null;
3996
4015
  } | null> | null;
3997
4016
  } | {
@@ -4070,6 +4089,7 @@ export type GetKnowledgeBaseQuery = {
4070
4089
  updateTimestamp?: any | null;
4071
4090
  timeCost: number;
4072
4091
  version: string;
4092
+ latestVersion: string;
4073
4093
  } | null> | null;
4074
4094
  } | null> | null;
4075
4095
  };
@@ -4130,6 +4150,7 @@ export type CreateKnowledgeBaseMutation = {
4130
4150
  updateTimestamp?: any | null;
4131
4151
  timeCost: number;
4132
4152
  version: string;
4153
+ latestVersion: string;
4133
4154
  } | null> | null;
4134
4155
  } | null> | null;
4135
4156
  };
@@ -4190,6 +4211,7 @@ export type UpdateKnowledgeBaseMutation = {
4190
4211
  updateTimestamp?: any | null;
4191
4212
  timeCost: number;
4192
4213
  version: string;
4214
+ latestVersion: string;
4193
4215
  } | null> | null;
4194
4216
  } | null> | null;
4195
4217
  };
package/dist/esm/sdk.js CHANGED
@@ -173,12 +173,12 @@ import useSWR from "./useSWR";
173
173
 
174
174
  /** 源文件输入 */
175
175
 
176
- export var CreateApplicationDocument = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n }\n }\n}\n "])));
177
- export var UpdateApplicationDocument = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n }\n }\n}\n "])));
176
+ export var CreateApplicationDocument = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n mutation createApplication($input: CreateApplicationMetadataInput!) {\n Application {\n createApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n }\n }\n}\n "])));
177
+ export var UpdateApplicationDocument = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n mutation updateApplication($input: UpdateApplicationMetadataInput!) {\n Application {\n updateApplication(input: $input) {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n }\n }\n}\n "])));
178
178
  export var DeleteApplicationDocument = gql(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n mutation deleteApplication($input: DeleteCommonInput!) {\n Application {\n deleteApplication(input: $input)\n }\n}\n "])));
179
- export var UpdateApplicationConfigDocument = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n enableRerank\n rerankModel\n enableMultiQuery\n chatTimeout\n enableUploadFile\n chunkSize\n chunkOverlap\n batchSize\n }\n }\n}\n "])));
180
- export var GetApplicationDocument = gql(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n enableRerank\n rerankModel\n enableMultiQuery\n chatTimeout\n enableUploadFile\n chunkSize\n chunkOverlap\n batchSize\n }\n }\n}\n "])));
181
- export var ListApplicationsDocument = gql(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n }\n }\n }\n }\n}\n "])));
179
+ export var UpdateApplicationConfigDocument = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n mutation updateApplicationConfig($input: UpdateApplicationConfigInput!) {\n Application {\n updateApplicationConfig(input: $input) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n enableRerank\n rerankModel\n enableMultiQuery\n chatTimeout\n enableUploadFile\n chunkSize\n chunkOverlap\n batchSize\n }\n }\n}\n "])));
180
+ export var GetApplicationDocument = gql(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n query getApplication($name: String!, $namespace: String!) {\n Application {\n getApplication(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n }\n prologue\n model\n llm\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebase\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRespInfo\n showRetrievalInfo\n showNextGuide\n tools {\n name\n params\n }\n enableRerank\n rerankModel\n enableMultiQuery\n chatTimeout\n enableUploadFile\n chunkSize\n chunkOverlap\n batchSize\n }\n }\n}\n "])));
181
+ export var ListApplicationsDocument = gql(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n query listApplications($input: ListCommonInput!) {\n Application {\n listApplicationMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on ApplicationMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n }\n }\n }\n }\n}\n "])));
182
182
  export var AllDataProcessListByPageDocument = gql(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n query allDataProcessListByPage($input: AllDataProcessListByPageInput!) {\n dataProcess {\n allDataProcessListByPage(input: $input) {\n status\n data {\n id\n name\n status\n pre_data_set_name\n pre_data_set_version\n post_data_set_name\n post_data_set_version\n start_datetime\n end_datetime\n error_msg\n }\n message\n }\n }\n}\n "])));
183
183
  export var AllDataProcessListByCountDocument = gql(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "])));
184
184
  export var DataProcessSupportTypeDocument = gql(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n query dataProcessSupportType {\n dataProcess {\n dataProcessSupportType {\n status\n data {\n name\n description\n children {\n name\n zh_name\n description\n enable\n }\n }\n message\n }\n }\n}\n "])));
@@ -209,10 +209,10 @@ export var GetGptDocument = gql(_templateObject33 || (_templateObject33 = _tagge
209
209
  export var ListGpTsDocument = gql(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n query listGPTs($input: ListGPTInput!) {\n GPT {\n listGPT(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on GPT {\n name\n displayName\n description\n hot\n creator\n isRecommended\n category\n icon\n prologue\n showRespInfo\n showRetrievalInfo\n showNextGuide\n enableUploadFile\n notReadyReasonCode\n }\n }\n }\n }\n}\n "])));
210
210
  export var ListGptCategoryDocument = gql(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n query listGPTCategory {\n GPT {\n listGPTCategory {\n id\n name\n nameEn\n }\n }\n}\n "])));
211
211
  export var GetGptStoreDocument = gql(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n query getGPTStore {\n GPT {\n getGPTStore {\n url\n public_namespace\n }\n }\n}\n "])));
212
- export var ListKnowledgeBasesDocument = gql(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n }\n }\n }\n }\n }\n }\n}\n "])));
213
- export var GetKnowledgeBaseDocument = gql(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n }\n }\n }\n }\n}\n "])));
214
- export var CreateKnowledgeBaseDocument = gql(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n }\n }\n }\n }\n}\n "])));
215
- export var UpdateKnowledgeBaseDocument = gql(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n }\n }\n }\n }\n}\n "])));
212
+ export var ListKnowledgeBasesDocument = gql(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n query listKnowledgeBases($input: ListKnowledgeBaseInput!) {\n KnowledgeBase {\n listKnowledgeBases(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on KnowledgeBase {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n latestVersion\n }\n }\n }\n }\n }\n }\n}\n "])));
213
+ export var GetKnowledgeBaseDocument = gql(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n query getKnowledgeBase($name: String!, $namespace: String!) {\n KnowledgeBase {\n getKnowledgeBase(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n latestVersion\n }\n }\n }\n }\n}\n "])));
214
+ export var CreateKnowledgeBaseDocument = gql(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n mutation createKnowledgeBase($input: CreateKnowledgeBaseInput!) {\n KnowledgeBase {\n createKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n latestVersion\n }\n }\n }\n }\n}\n "])));
215
+ export var UpdateKnowledgeBaseDocument = gql(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n mutation updateKnowledgeBase($input: UpdateKnowledgeBaseInput) {\n KnowledgeBase {\n updateKnowledgeBase(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n chunkSize\n chunkOverlap\n batchSize\n status\n reason\n message\n updateTimestamp\n embedder {\n kind\n name\n namespace\n displayName\n }\n embedderType\n vectorStore {\n kind\n name\n }\n fileGroupDetails {\n source {\n kind\n name\n }\n filedetails {\n path\n phase\n fileType\n count\n size\n updateTimestamp\n timeCost\n version\n latestVersion\n }\n }\n }\n }\n}\n "])));
216
216
  export var DeleteKnowledgeBaseDocument = gql(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "])));
217
217
  export var ListLlMsDocument = gql(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n query listLLMs($input: ListCommonInput!) {\n LLM {\n listLLMs(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on LLM {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n }\n }\n}\n "])));
218
218
  export var GetLlmDocument = gql(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n query getLLM($name: String!, $namespace: String!) {\n LLM {\n getLLM(name: $name, namespace: $namespace) {\n name\n namespace\n labels\n annotations\n displayName\n description\n baseUrl\n models\n provider\n type\n updateTimestamp\n status\n message\n }\n }\n}\n "])));