@yuntijs/arcadia-bff-sdk 1.2.15 → 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 +17 -1
- package/dist/esm/sdk.js +5 -5
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
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: 向量数据库没有就绪
|
|
@@ -2720,6 +2731,7 @@ export type CreateApplicationMutation = {
|
|
|
2720
2731
|
isRecommended?: boolean | null;
|
|
2721
2732
|
status?: string | null;
|
|
2722
2733
|
category?: Array<string | null> | null;
|
|
2734
|
+
notReadyReasonCode?: string | null;
|
|
2723
2735
|
};
|
|
2724
2736
|
} | null;
|
|
2725
2737
|
};
|
|
@@ -2747,6 +2759,7 @@ export type UpdateApplicationMutation = {
|
|
|
2747
2759
|
isRecommended?: boolean | null;
|
|
2748
2760
|
status?: string | null;
|
|
2749
2761
|
category?: Array<string | null> | null;
|
|
2762
|
+
notReadyReasonCode?: string | null;
|
|
2750
2763
|
};
|
|
2751
2764
|
} | null;
|
|
2752
2765
|
};
|
|
@@ -2810,6 +2823,7 @@ export type UpdateApplicationConfigMutation = {
|
|
|
2810
2823
|
isRecommended?: boolean | null;
|
|
2811
2824
|
status?: string | null;
|
|
2812
2825
|
category?: Array<string | null> | null;
|
|
2826
|
+
notReadyReasonCode?: string | null;
|
|
2813
2827
|
} | null;
|
|
2814
2828
|
tools?: Array<{
|
|
2815
2829
|
__typename?: 'Tool';
|
|
@@ -2870,6 +2884,7 @@ export type GetApplicationQuery = {
|
|
|
2870
2884
|
isRecommended?: boolean | null;
|
|
2871
2885
|
status?: string | null;
|
|
2872
2886
|
category?: Array<string | null> | null;
|
|
2887
|
+
notReadyReasonCode?: string | null;
|
|
2873
2888
|
} | null;
|
|
2874
2889
|
tools?: Array<{
|
|
2875
2890
|
__typename?: 'Tool';
|
|
@@ -2909,6 +2924,7 @@ export type ListApplicationsQuery = {
|
|
|
2909
2924
|
isRecommended?: boolean | null;
|
|
2910
2925
|
status?: string | null;
|
|
2911
2926
|
category?: Array<string | null> | null;
|
|
2927
|
+
notReadyReasonCode?: string | null;
|
|
2912
2928
|
} | {
|
|
2913
2929
|
__typename?: 'Dataset';
|
|
2914
2930
|
} | {
|
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 "])));
|