@yuntijs/arcadia-bff-sdk 1.2.112 → 1.2.114
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/cjs/sdk.d.ts +36 -0
- package/dist/cjs/sdk.js +5 -0
- package/dist/esm/sdk.d.ts +36 -0
- package/dist/esm/sdk.js +2 -2
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -99,6 +99,8 @@ export type Agent = {
|
|
|
99
99
|
__typename?: 'Agent';
|
|
100
100
|
/** audioConfig 语音配置 */
|
|
101
101
|
audioConfig?: Maybe<AudioConfig>;
|
|
102
|
+
/** box-engine 文件盒子配置 */
|
|
103
|
+
boxEngineConfig?: Maybe<BoxEngineConfig>;
|
|
102
104
|
/** conversionWindowSize 对话轮次 */
|
|
103
105
|
conversionWindowSize?: Maybe<Scalars['Int']['output']>;
|
|
104
106
|
/** docNullReturn 空搜索回复 */
|
|
@@ -170,6 +172,10 @@ export type AgentInvocationLog = {
|
|
|
170
172
|
request: Scalars['String']['output'];
|
|
171
173
|
/** 回复内容 */
|
|
172
174
|
response: Scalars['String']['output'];
|
|
175
|
+
/** 状态 */
|
|
176
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
177
|
+
/** 用户反馈 */
|
|
178
|
+
vote?: Maybe<Scalars['Int64']['output']>;
|
|
173
179
|
};
|
|
174
180
|
/**
|
|
175
181
|
* Agent
|
|
@@ -271,6 +277,7 @@ export type AgentMutation = {
|
|
|
271
277
|
releaseAgent: AgentMetadata;
|
|
272
278
|
updateAgent: AgentMetadata;
|
|
273
279
|
updateAgentAudioConfig?: Maybe<Scalars['Void']['output']>;
|
|
280
|
+
updateAgentBoxEngineConfig?: Maybe<Scalars['Void']['output']>;
|
|
274
281
|
updateAgentKnowledgeBase?: Maybe<Scalars['Void']['output']>;
|
|
275
282
|
updateAgentModeConfig?: Maybe<Scalars['Void']['output']>;
|
|
276
283
|
updateAgentModel?: Maybe<Scalars['Void']['output']>;
|
|
@@ -315,6 +322,9 @@ export type AgentMutationUpdateAgentArgs = {
|
|
|
315
322
|
export type AgentMutationUpdateAgentAudioConfigArgs = {
|
|
316
323
|
input: UpdateAgentAudioConfigInput;
|
|
317
324
|
};
|
|
325
|
+
export type AgentMutationUpdateAgentBoxEngineConfigArgs = {
|
|
326
|
+
input: UpdateAgentBoxEngineConfigInput;
|
|
327
|
+
};
|
|
318
328
|
export type AgentMutationUpdateAgentKnowledgeBaseArgs = {
|
|
319
329
|
input: UpdateAgentKnowledgebaseInput;
|
|
320
330
|
};
|
|
@@ -458,6 +468,10 @@ export type AudioConfig = {
|
|
|
458
468
|
__typename?: 'AudioConfig';
|
|
459
469
|
ttsReferenceID?: Maybe<Scalars['String']['output']>;
|
|
460
470
|
};
|
|
471
|
+
export type BoxEngineConfig = {
|
|
472
|
+
__typename?: 'BoxEngineConfig';
|
|
473
|
+
enable?: Maybe<Scalars['Boolean']['output']>;
|
|
474
|
+
};
|
|
461
475
|
export type ChatSftInput = {
|
|
462
476
|
/**
|
|
463
477
|
* 是否使用生成的适配器对话
|
|
@@ -910,6 +924,8 @@ export type CreateWorkflowInput = {
|
|
|
910
924
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
911
925
|
/** 展示名,别名 */
|
|
912
926
|
displayName: Scalars['String']['input'];
|
|
927
|
+
/** 流水线编排的react-flow画布 */
|
|
928
|
+
graph: Scalars['Map']['input'];
|
|
913
929
|
/** 图标 */
|
|
914
930
|
icon?: InputMaybe<Scalars['String']['input']>;
|
|
915
931
|
/**
|
|
@@ -3290,6 +3306,20 @@ export type UpdateAgentAudioConfigInput = {
|
|
|
3290
3306
|
/** 参考音频ID */
|
|
3291
3307
|
ttsReferenceID?: InputMaybe<Scalars['String']['input']>;
|
|
3292
3308
|
};
|
|
3309
|
+
export type UpdateAgentBoxEngineConfigInput = {
|
|
3310
|
+
/** 是否启用文件盒子 */
|
|
3311
|
+
enable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3312
|
+
/**
|
|
3313
|
+
* 应用名称, 用于确定要更新哪个应用
|
|
3314
|
+
* 规则: 遵循 k8s 命名
|
|
3315
|
+
*/
|
|
3316
|
+
name: Scalars['String']['input'];
|
|
3317
|
+
/**
|
|
3318
|
+
* 应用所在的 namespace, 用于确定要更新哪个应用
|
|
3319
|
+
* 规则: 非空
|
|
3320
|
+
*/
|
|
3321
|
+
namespace: Scalars['String']['input'];
|
|
3322
|
+
};
|
|
3293
3323
|
export type UpdateAgentKnowledgebaseInput = {
|
|
3294
3324
|
/** knowledgebases 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
3295
3325
|
knowledgebases?: InputMaybe<Array<TypedObjectReferenceInput>>;
|
|
@@ -4378,6 +4408,10 @@ export type GetAgentQuery = {
|
|
|
4378
4408
|
__typename?: 'AudioConfig';
|
|
4379
4409
|
ttsReferenceID?: string | null;
|
|
4380
4410
|
} | null;
|
|
4411
|
+
boxEngineConfig?: {
|
|
4412
|
+
__typename?: 'BoxEngineConfig';
|
|
4413
|
+
enable?: boolean | null;
|
|
4414
|
+
} | null;
|
|
4381
4415
|
};
|
|
4382
4416
|
} | null;
|
|
4383
4417
|
};
|
|
@@ -4811,6 +4845,8 @@ export type ListAgentInvocationLogsQuery = {
|
|
|
4811
4845
|
response: string;
|
|
4812
4846
|
latency: any;
|
|
4813
4847
|
createdAt?: any | null;
|
|
4848
|
+
vote?: any | null;
|
|
4849
|
+
status?: string | null;
|
|
4814
4850
|
} | {
|
|
4815
4851
|
__typename?: 'AgentMetadata';
|
|
4816
4852
|
} | {
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -478,6 +478,9 @@ var GetAgentDocument = import_graphql_tag.default`
|
|
|
478
478
|
rerankerModel
|
|
479
479
|
rerankerName
|
|
480
480
|
rerankerNamespace
|
|
481
|
+
boxEngineConfig {
|
|
482
|
+
enable
|
|
483
|
+
}
|
|
481
484
|
}
|
|
482
485
|
}
|
|
483
486
|
}
|
|
@@ -651,6 +654,8 @@ var ListAgentInvocationLogsDocument = import_graphql_tag.default`
|
|
|
651
654
|
response
|
|
652
655
|
latency
|
|
653
656
|
createdAt
|
|
657
|
+
vote
|
|
658
|
+
status
|
|
654
659
|
}
|
|
655
660
|
}
|
|
656
661
|
}
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -99,6 +99,8 @@ export type Agent = {
|
|
|
99
99
|
__typename?: 'Agent';
|
|
100
100
|
/** audioConfig 语音配置 */
|
|
101
101
|
audioConfig?: Maybe<AudioConfig>;
|
|
102
|
+
/** box-engine 文件盒子配置 */
|
|
103
|
+
boxEngineConfig?: Maybe<BoxEngineConfig>;
|
|
102
104
|
/** conversionWindowSize 对话轮次 */
|
|
103
105
|
conversionWindowSize?: Maybe<Scalars['Int']['output']>;
|
|
104
106
|
/** docNullReturn 空搜索回复 */
|
|
@@ -170,6 +172,10 @@ export type AgentInvocationLog = {
|
|
|
170
172
|
request: Scalars['String']['output'];
|
|
171
173
|
/** 回复内容 */
|
|
172
174
|
response: Scalars['String']['output'];
|
|
175
|
+
/** 状态 */
|
|
176
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
177
|
+
/** 用户反馈 */
|
|
178
|
+
vote?: Maybe<Scalars['Int64']['output']>;
|
|
173
179
|
};
|
|
174
180
|
/**
|
|
175
181
|
* Agent
|
|
@@ -271,6 +277,7 @@ export type AgentMutation = {
|
|
|
271
277
|
releaseAgent: AgentMetadata;
|
|
272
278
|
updateAgent: AgentMetadata;
|
|
273
279
|
updateAgentAudioConfig?: Maybe<Scalars['Void']['output']>;
|
|
280
|
+
updateAgentBoxEngineConfig?: Maybe<Scalars['Void']['output']>;
|
|
274
281
|
updateAgentKnowledgeBase?: Maybe<Scalars['Void']['output']>;
|
|
275
282
|
updateAgentModeConfig?: Maybe<Scalars['Void']['output']>;
|
|
276
283
|
updateAgentModel?: Maybe<Scalars['Void']['output']>;
|
|
@@ -315,6 +322,9 @@ export type AgentMutationUpdateAgentArgs = {
|
|
|
315
322
|
export type AgentMutationUpdateAgentAudioConfigArgs = {
|
|
316
323
|
input: UpdateAgentAudioConfigInput;
|
|
317
324
|
};
|
|
325
|
+
export type AgentMutationUpdateAgentBoxEngineConfigArgs = {
|
|
326
|
+
input: UpdateAgentBoxEngineConfigInput;
|
|
327
|
+
};
|
|
318
328
|
export type AgentMutationUpdateAgentKnowledgeBaseArgs = {
|
|
319
329
|
input: UpdateAgentKnowledgebaseInput;
|
|
320
330
|
};
|
|
@@ -458,6 +468,10 @@ export type AudioConfig = {
|
|
|
458
468
|
__typename?: 'AudioConfig';
|
|
459
469
|
ttsReferenceID?: Maybe<Scalars['String']['output']>;
|
|
460
470
|
};
|
|
471
|
+
export type BoxEngineConfig = {
|
|
472
|
+
__typename?: 'BoxEngineConfig';
|
|
473
|
+
enable?: Maybe<Scalars['Boolean']['output']>;
|
|
474
|
+
};
|
|
461
475
|
export type ChatSftInput = {
|
|
462
476
|
/**
|
|
463
477
|
* 是否使用生成的适配器对话
|
|
@@ -910,6 +924,8 @@ export type CreateWorkflowInput = {
|
|
|
910
924
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
911
925
|
/** 展示名,别名 */
|
|
912
926
|
displayName: Scalars['String']['input'];
|
|
927
|
+
/** 流水线编排的react-flow画布 */
|
|
928
|
+
graph: Scalars['Map']['input'];
|
|
913
929
|
/** 图标 */
|
|
914
930
|
icon?: InputMaybe<Scalars['String']['input']>;
|
|
915
931
|
/**
|
|
@@ -3290,6 +3306,20 @@ export type UpdateAgentAudioConfigInput = {
|
|
|
3290
3306
|
/** 参考音频ID */
|
|
3291
3307
|
ttsReferenceID?: InputMaybe<Scalars['String']['input']>;
|
|
3292
3308
|
};
|
|
3309
|
+
export type UpdateAgentBoxEngineConfigInput = {
|
|
3310
|
+
/** 是否启用文件盒子 */
|
|
3311
|
+
enable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3312
|
+
/**
|
|
3313
|
+
* 应用名称, 用于确定要更新哪个应用
|
|
3314
|
+
* 规则: 遵循 k8s 命名
|
|
3315
|
+
*/
|
|
3316
|
+
name: Scalars['String']['input'];
|
|
3317
|
+
/**
|
|
3318
|
+
* 应用所在的 namespace, 用于确定要更新哪个应用
|
|
3319
|
+
* 规则: 非空
|
|
3320
|
+
*/
|
|
3321
|
+
namespace: Scalars['String']['input'];
|
|
3322
|
+
};
|
|
3293
3323
|
export type UpdateAgentKnowledgebaseInput = {
|
|
3294
3324
|
/** knowledgebases 指当前知识库应用使用的知识库,即 Kind 为 KnowledgeBase 的 CR 的名称,目前一个应用只支持0或1个知识库 */
|
|
3295
3325
|
knowledgebases?: InputMaybe<Array<TypedObjectReferenceInput>>;
|
|
@@ -4378,6 +4408,10 @@ export type GetAgentQuery = {
|
|
|
4378
4408
|
__typename?: 'AudioConfig';
|
|
4379
4409
|
ttsReferenceID?: string | null;
|
|
4380
4410
|
} | null;
|
|
4411
|
+
boxEngineConfig?: {
|
|
4412
|
+
__typename?: 'BoxEngineConfig';
|
|
4413
|
+
enable?: boolean | null;
|
|
4414
|
+
} | null;
|
|
4381
4415
|
};
|
|
4382
4416
|
} | null;
|
|
4383
4417
|
};
|
|
@@ -4811,6 +4845,8 @@ export type ListAgentInvocationLogsQuery = {
|
|
|
4811
4845
|
response: string;
|
|
4812
4846
|
latency: any;
|
|
4813
4847
|
createdAt?: any | null;
|
|
4848
|
+
vote?: any | null;
|
|
4849
|
+
status?: string | null;
|
|
4814
4850
|
} | {
|
|
4815
4851
|
__typename?: 'AgentMetadata';
|
|
4816
4852
|
} | {
|
package/dist/esm/sdk.js
CHANGED
|
@@ -190,7 +190,7 @@ export var GenerateAgentSystemPromptDocument = gql(_templateObject15 || (_templa
|
|
|
190
190
|
export var GenerateAgentPrologueDocument = gql(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n mutation generateAgentPrologue($namespacedname: String!, $currentPrologue: String!) {\n Agent {\n generateAgentPrologue(\n namespacedname: $namespacedname\n currentPrologue: $currentPrologue\n )\n }\n}\n "])));
|
|
191
191
|
export var GeneratesAgentUserPromptDocument = gql(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n mutation generatesAgentUserPrompt($namespacedname: String!) {\n Agent {\n generatesAgentUserPrompt(namespacedname: $namespacedname)\n }\n}\n "])));
|
|
192
192
|
export var GetAgentReleaseStatusDocument = gql(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n query getAgentReleaseStatus($name: String!, $namespace: String!) {\n Agent {\n getAgent(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n platformStatus\n platforms {\n icon\n name\n displayName\n }\n }\n }\n }\n}\n "])));
|
|
193
|
-
export var GetAgentDocument = gql(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n query getAgent($name: String!, $namespace: String!) {\n Agent {\n getAgent(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n background\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n platformStatus\n platforms {\n icon\n name\n displayName\n }\n modeConfig {\n mode\n workflow {\n name\n namespace\n }\n }\n }\n prologue\n model\n llm {\n name\n namespace\n kind\n apiGroup\n }\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebases {\n name\n namespace\n }\n onDemand\n searchMode\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRetrievalInfo\n showNextGuide\n plugins {\n name\n namespace\n }\n workflows {\n name\n namespace\n }\n audioConfig {\n ttsReferenceID\n }\n rerankerModel\n rerankerName\n rerankerNamespace\n }\n }\n}\n "])));
|
|
193
|
+
export var GetAgentDocument = gql(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n query getAgent($name: String!, $namespace: String!) {\n Agent {\n getAgent(name: $name, namespace: $namespace) {\n metadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n background\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n platformStatus\n platforms {\n icon\n name\n displayName\n }\n modeConfig {\n mode\n workflow {\n name\n namespace\n }\n }\n }\n prologue\n model\n llm {\n name\n namespace\n kind\n apiGroup\n }\n temperature\n maxLength\n maxTokens\n conversionWindowSize\n knowledgebases {\n name\n namespace\n }\n onDemand\n searchMode\n scoreThreshold\n numDocuments\n docNullReturn\n userPrompt\n systemPrompt\n showRetrievalInfo\n showNextGuide\n plugins {\n name\n namespace\n }\n workflows {\n name\n namespace\n }\n audioConfig {\n ttsReferenceID\n }\n rerankerModel\n rerankerName\n rerankerNamespace\n boxEngineConfig {\n enable\n }\n }\n }\n}\n "])));
|
|
194
194
|
export var GetAgentLatestReleaseInEachPlatformDocument = gql(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n query getAgentLatestReleaseInEachPlatform($name: String!, $namespace: String!) {\n Agent {\n getAgentLatestReleaseInEachPlatform(name: $name, namespace: $namespace) {\n hasNextPage\n totalCount\n nodes {\n ... on AgentRelease {\n id\n platform\n name\n namesapce\n status\n log\n createdAt\n username\n extra\n }\n }\n }\n }\n}\n "])));
|
|
195
195
|
export var GetAgentReleaseHistoryDocument = gql(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n query getAgentReleaseHistory($name: String!, $namespace: String!, $page: Int, $pageSize: Int) {\n Agent {\n getAgentReleaseHistory(\n name: $name\n namespace: $namespace\n page: $page\n pageSize: $pageSize\n ) {\n hasNextPage\n totalCount\n nodes {\n ... on AgentReleaseHistory {\n date\n items {\n log\n time\n username\n platforms {\n name\n displayName\n icon\n status\n }\n }\n }\n }\n }\n }\n}\n "])));
|
|
196
196
|
export var ListAgentsDocument = gql(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n query listAgents($input: ListCommonInput!) {\n Agent {\n listAgentMetadata(input: $input) {\n page\n pageSize\n totalCount\n hasNextPage\n nodes {\n ... on AgentMetadata {\n name\n namespace\n id\n labels\n annotations\n displayName\n description\n icon\n background\n creator\n creationTimestamp\n updateTimestamp\n isPublic\n isRecommended\n status\n category\n notReadyReasonCode\n modeConfig {\n mode\n workflow {\n name\n namespace\n }\n }\n }\n }\n }\n }\n}\n "])));
|
|
@@ -198,7 +198,7 @@ export var ListAgentPromptDocument = gql(_templateObject23 || (_templateObject23
|
|
|
198
198
|
export var ListGptCategoryDocument = gql(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n query listGPTCategory {\n Agent {\n listGPTCategory {\n id\n name\n nameEn\n }\n }\n}\n "])));
|
|
199
199
|
export var GetGptStoreDocument = gql(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n query getGPTStore {\n Agent {\n getGPTStore {\n url\n public_namespace\n }\n }\n}\n "])));
|
|
200
200
|
export var GetWeiXinAuthorizerUrlDocument = gql(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n query getWeiXinAuthorizerURL($name: String!, $namespace: String!, $redirectURL: String!) {\n Agent {\n getWeiXinAuthorizerURL(\n name: $name\n namespace: $namespace\n redirectURL: $redirectURL\n )\n }\n}\n "])));
|
|
201
|
-
export var ListAgentInvocationLogsDocument = gql(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n query listAgentInvocationLogs($name: String!, $namespace: String!, $platform: [String], $page: Int, $size: Int) {\n Agent {\n listAgentInvocationLogs(\n name: $name\n namespace: $namespace\n platform: $platform\n page: $page\n size: $size\n ) {\n totalCount\n page\n pageSize\n nodes {\n ... on AgentInvocationLog {\n id\n conversationId\n platform\n request\n func\n response\n latency\n createdAt\n }\n }\n }\n }\n}\n "])));
|
|
201
|
+
export var ListAgentInvocationLogsDocument = gql(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n query listAgentInvocationLogs($name: String!, $namespace: String!, $platform: [String], $page: Int, $size: Int) {\n Agent {\n listAgentInvocationLogs(\n name: $name\n namespace: $namespace\n platform: $platform\n page: $page\n size: $size\n ) {\n totalCount\n page\n pageSize\n nodes {\n ... on AgentInvocationLog {\n id\n conversationId\n platform\n request\n func\n response\n latency\n createdAt\n vote\n status\n }\n }\n }\n }\n}\n "])));
|
|
202
202
|
export var AllDataProcessListByPageDocument = gql(_templateObject28 || (_templateObject28 = _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 "])));
|
|
203
203
|
export var AllDataProcessListByCountDocument = gql(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n query allDataProcessListByCount($input: AllDataProcessListByCountInput!) {\n dataProcess {\n allDataProcessListByCount(input: $input) {\n status\n data\n message\n }\n }\n}\n "])));
|
|
204
204
|
export var DataProcessSupportTypeDocument = gql(_templateObject30 || (_templateObject30 = _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 "])));
|