@yuntijs/arcadia-bff-sdk 1.2.118 → 1.2.120
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/index.d.ts +7 -0
- package/dist/cjs/sdk.d.ts +10 -1
- package/dist/cjs/sdk.js +4 -2
- package/dist/cjs/taro.d.ts +5 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/sdk.d.ts +10 -1
- package/dist/esm/sdk.js +3 -3
- package/dist/esm/taro.d.ts +5 -0
- 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/index.d.ts
CHANGED
|
@@ -248,6 +248,7 @@ export declare const sdk: {
|
|
|
248
248
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
249
249
|
name: string;
|
|
250
250
|
namespace: string;
|
|
251
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
251
252
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
252
253
|
createAgent(variables: import("./sdk").Exact<{
|
|
253
254
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -718,6 +719,7 @@ export declare const sdk: {
|
|
|
718
719
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
719
720
|
name: string;
|
|
720
721
|
namespace: string;
|
|
722
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
721
723
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
722
724
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
723
725
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -1225,6 +1227,7 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
1225
1227
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1226
1228
|
name: string;
|
|
1227
1229
|
namespace: string;
|
|
1230
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1228
1231
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1229
1232
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1230
1233
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -1482,6 +1485,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1482
1485
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1483
1486
|
name: string;
|
|
1484
1487
|
namespace: string;
|
|
1488
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1485
1489
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
1486
1490
|
createAgent(variables: import("./sdk").Exact<{
|
|
1487
1491
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -1952,6 +1956,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1952
1956
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1953
1957
|
name: string;
|
|
1954
1958
|
namespace: string;
|
|
1959
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1955
1960
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1956
1961
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1957
1962
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -2209,6 +2214,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2209
2214
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
2210
2215
|
name: string;
|
|
2211
2216
|
namespace: string;
|
|
2217
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
2212
2218
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
2213
2219
|
createAgent(variables: import("./sdk").Exact<{
|
|
2214
2220
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -2679,6 +2685,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2679
2685
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
2680
2686
|
name: string;
|
|
2681
2687
|
namespace: string;
|
|
2688
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
2682
2689
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
2683
2690
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
2684
2691
|
input: import("./sdk").CreateWorkflowInput;
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -276,6 +276,8 @@ export type AgentModeConfig = {
|
|
|
276
276
|
* 规则: 当mode为AGENT_MODE_WORKFLOW时,必填
|
|
277
277
|
*/
|
|
278
278
|
workflow?: Maybe<TypedObjectReference>;
|
|
279
|
+
/** 工作流中的输入变量(用于接收用户问题) */
|
|
280
|
+
workflowInputVar?: Maybe<Scalars['String']['output']>;
|
|
279
281
|
};
|
|
280
282
|
export type AgentMutation = {
|
|
281
283
|
__typename?: 'AgentMutation';
|
|
@@ -937,7 +939,7 @@ export type CreateWorkflowInput = {
|
|
|
937
939
|
/** 展示名,别名 */
|
|
938
940
|
displayName: Scalars['String']['input'];
|
|
939
941
|
/** 流水线编排的react-flow画布 */
|
|
940
|
-
graph
|
|
942
|
+
graph?: InputMaybe<Scalars['Map']['input']>;
|
|
941
943
|
/** 图标 */
|
|
942
944
|
icon?: InputMaybe<Scalars['String']['input']>;
|
|
943
945
|
/**
|
|
@@ -3435,6 +3437,8 @@ export type UpdateAgentModeConfigInput = {
|
|
|
3435
3437
|
* 规则: 当mode为AGENT_MODE_WORKFLOW时,必填
|
|
3436
3438
|
*/
|
|
3437
3439
|
workflow?: InputMaybe<TypedObjectReferenceInput>;
|
|
3440
|
+
/** 工作流中的输入变量(用于接收用户问题) */
|
|
3441
|
+
workflowInputVar?: InputMaybe<Scalars['String']['input']>;
|
|
3438
3442
|
};
|
|
3439
3443
|
export type UpdateAgentModelInput = {
|
|
3440
3444
|
/** conversionWindowSize 对话轮次 */
|
|
@@ -4069,6 +4073,7 @@ export type WorkflowQuery = {
|
|
|
4069
4073
|
listWorkflows: PaginatedResult;
|
|
4070
4074
|
};
|
|
4071
4075
|
export type WorkflowQueryGetWorkflowArgs = {
|
|
4076
|
+
isPublished?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4072
4077
|
name: Scalars['String']['input'];
|
|
4073
4078
|
namespace: Scalars['String']['input'];
|
|
4074
4079
|
};
|
|
@@ -4418,6 +4423,7 @@ export type GetAgentQuery = {
|
|
|
4418
4423
|
modeConfig?: {
|
|
4419
4424
|
__typename?: 'AgentModeConfig';
|
|
4420
4425
|
mode: AgentMode;
|
|
4426
|
+
workflowInputVar?: string | null;
|
|
4421
4427
|
workflow?: {
|
|
4422
4428
|
__typename?: 'TypedObjectReference';
|
|
4423
4429
|
name: string;
|
|
@@ -4674,6 +4680,7 @@ export type ListAgentsQuery = {
|
|
|
4674
4680
|
modeConfig?: {
|
|
4675
4681
|
__typename?: 'AgentModeConfig';
|
|
4676
4682
|
mode: AgentMode;
|
|
4683
|
+
workflowInputVar?: string | null;
|
|
4677
4684
|
workflow?: {
|
|
4678
4685
|
__typename?: 'TypedObjectReference';
|
|
4679
4686
|
name: string;
|
|
@@ -10269,6 +10276,7 @@ export type ListWorkflowsQuery = {
|
|
|
10269
10276
|
export type GetWorkflowQueryVariables = Exact<{
|
|
10270
10277
|
name: Scalars['String']['input'];
|
|
10271
10278
|
namespace: Scalars['String']['input'];
|
|
10279
|
+
isPublished?: InputMaybe<Scalars['Boolean']['input']>;
|
|
10272
10280
|
}>;
|
|
10273
10281
|
export type GetWorkflowQuery = {
|
|
10274
10282
|
__typename?: 'Query';
|
|
@@ -11200,6 +11208,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11200
11208
|
getWorkflow(variables: Exact<{
|
|
11201
11209
|
name: string;
|
|
11202
11210
|
namespace: string;
|
|
11211
|
+
isPublished?: InputMaybe<boolean> | undefined;
|
|
11203
11212
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetWorkflowQuery>;
|
|
11204
11213
|
createWorkflow(variables: Exact<{
|
|
11205
11214
|
input: CreateWorkflowInput;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -445,6 +445,7 @@ var GetAgentDocument = import_graphql_tag.default`
|
|
|
445
445
|
name
|
|
446
446
|
namespace
|
|
447
447
|
}
|
|
448
|
+
workflowInputVar
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
451
|
prologue
|
|
@@ -582,6 +583,7 @@ var ListAgentsDocument = import_graphql_tag.default`
|
|
|
582
583
|
name
|
|
583
584
|
namespace
|
|
584
585
|
}
|
|
586
|
+
workflowInputVar
|
|
585
587
|
}
|
|
586
588
|
}
|
|
587
589
|
}
|
|
@@ -3625,9 +3627,9 @@ var ListWorkflowsDocument = import_graphql_tag.default`
|
|
|
3625
3627
|
}
|
|
3626
3628
|
`;
|
|
3627
3629
|
var GetWorkflowDocument = import_graphql_tag.default`
|
|
3628
|
-
query getWorkflow($name: String!, $namespace: String
|
|
3630
|
+
query getWorkflow($name: String!, $namespace: String!, $isPublished: Boolean) {
|
|
3629
3631
|
Workflow {
|
|
3630
|
-
getWorkflow(name: $name, namespace: $namespace) {
|
|
3632
|
+
getWorkflow(name: $name, namespace: $namespace, isPublished: $isPublished) {
|
|
3631
3633
|
id
|
|
3632
3634
|
creationTimestamp
|
|
3633
3635
|
name
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -501,6 +501,7 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
501
501
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
502
502
|
name: string;
|
|
503
503
|
namespace: string;
|
|
504
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
504
505
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
505
506
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
506
507
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -758,6 +759,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
758
759
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
759
760
|
name: string;
|
|
760
761
|
namespace: string;
|
|
762
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
761
763
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
762
764
|
createAgent(variables: import("./sdk").Exact<{
|
|
763
765
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -1228,6 +1230,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1228
1230
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1229
1231
|
name: string;
|
|
1230
1232
|
namespace: string;
|
|
1233
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1231
1234
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1232
1235
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1233
1236
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -1485,6 +1488,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1485
1488
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1486
1489
|
name: string;
|
|
1487
1490
|
namespace: string;
|
|
1491
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1488
1492
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
1489
1493
|
createAgent(variables: import("./sdk").Exact<{
|
|
1490
1494
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -1955,6 +1959,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1955
1959
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1956
1960
|
name: string;
|
|
1957
1961
|
namespace: string;
|
|
1962
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1958
1963
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1959
1964
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1960
1965
|
input: import("./sdk").CreateWorkflowInput;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -248,6 +248,7 @@ export declare const sdk: {
|
|
|
248
248
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
249
249
|
name: string;
|
|
250
250
|
namespace: string;
|
|
251
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
251
252
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
252
253
|
createAgent(variables: import("./sdk").Exact<{
|
|
253
254
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -718,6 +719,7 @@ export declare const sdk: {
|
|
|
718
719
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
719
720
|
name: string;
|
|
720
721
|
namespace: string;
|
|
722
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
721
723
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
722
724
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
723
725
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -1225,6 +1227,7 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
1225
1227
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1226
1228
|
name: string;
|
|
1227
1229
|
namespace: string;
|
|
1230
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1228
1231
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1229
1232
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1230
1233
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -1482,6 +1485,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1482
1485
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1483
1486
|
name: string;
|
|
1484
1487
|
namespace: string;
|
|
1488
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1485
1489
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
1486
1490
|
createAgent(variables: import("./sdk").Exact<{
|
|
1487
1491
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -1952,6 +1956,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1952
1956
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1953
1957
|
name: string;
|
|
1954
1958
|
namespace: string;
|
|
1959
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1955
1960
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1956
1961
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1957
1962
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -2209,6 +2214,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2209
2214
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
2210
2215
|
name: string;
|
|
2211
2216
|
namespace: string;
|
|
2217
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
2212
2218
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
2213
2219
|
createAgent(variables: import("./sdk").Exact<{
|
|
2214
2220
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -2679,6 +2685,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2679
2685
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
2680
2686
|
name: string;
|
|
2681
2687
|
namespace: string;
|
|
2688
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
2682
2689
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
2683
2690
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
2684
2691
|
input: import("./sdk").CreateWorkflowInput;
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -276,6 +276,8 @@ export type AgentModeConfig = {
|
|
|
276
276
|
* 规则: 当mode为AGENT_MODE_WORKFLOW时,必填
|
|
277
277
|
*/
|
|
278
278
|
workflow?: Maybe<TypedObjectReference>;
|
|
279
|
+
/** 工作流中的输入变量(用于接收用户问题) */
|
|
280
|
+
workflowInputVar?: Maybe<Scalars['String']['output']>;
|
|
279
281
|
};
|
|
280
282
|
export type AgentMutation = {
|
|
281
283
|
__typename?: 'AgentMutation';
|
|
@@ -937,7 +939,7 @@ export type CreateWorkflowInput = {
|
|
|
937
939
|
/** 展示名,别名 */
|
|
938
940
|
displayName: Scalars['String']['input'];
|
|
939
941
|
/** 流水线编排的react-flow画布 */
|
|
940
|
-
graph
|
|
942
|
+
graph?: InputMaybe<Scalars['Map']['input']>;
|
|
941
943
|
/** 图标 */
|
|
942
944
|
icon?: InputMaybe<Scalars['String']['input']>;
|
|
943
945
|
/**
|
|
@@ -3435,6 +3437,8 @@ export type UpdateAgentModeConfigInput = {
|
|
|
3435
3437
|
* 规则: 当mode为AGENT_MODE_WORKFLOW时,必填
|
|
3436
3438
|
*/
|
|
3437
3439
|
workflow?: InputMaybe<TypedObjectReferenceInput>;
|
|
3440
|
+
/** 工作流中的输入变量(用于接收用户问题) */
|
|
3441
|
+
workflowInputVar?: InputMaybe<Scalars['String']['input']>;
|
|
3438
3442
|
};
|
|
3439
3443
|
export type UpdateAgentModelInput = {
|
|
3440
3444
|
/** conversionWindowSize 对话轮次 */
|
|
@@ -4069,6 +4073,7 @@ export type WorkflowQuery = {
|
|
|
4069
4073
|
listWorkflows: PaginatedResult;
|
|
4070
4074
|
};
|
|
4071
4075
|
export type WorkflowQueryGetWorkflowArgs = {
|
|
4076
|
+
isPublished?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4072
4077
|
name: Scalars['String']['input'];
|
|
4073
4078
|
namespace: Scalars['String']['input'];
|
|
4074
4079
|
};
|
|
@@ -4418,6 +4423,7 @@ export type GetAgentQuery = {
|
|
|
4418
4423
|
modeConfig?: {
|
|
4419
4424
|
__typename?: 'AgentModeConfig';
|
|
4420
4425
|
mode: AgentMode;
|
|
4426
|
+
workflowInputVar?: string | null;
|
|
4421
4427
|
workflow?: {
|
|
4422
4428
|
__typename?: 'TypedObjectReference';
|
|
4423
4429
|
name: string;
|
|
@@ -4674,6 +4680,7 @@ export type ListAgentsQuery = {
|
|
|
4674
4680
|
modeConfig?: {
|
|
4675
4681
|
__typename?: 'AgentModeConfig';
|
|
4676
4682
|
mode: AgentMode;
|
|
4683
|
+
workflowInputVar?: string | null;
|
|
4677
4684
|
workflow?: {
|
|
4678
4685
|
__typename?: 'TypedObjectReference';
|
|
4679
4686
|
name: string;
|
|
@@ -10269,6 +10276,7 @@ export type ListWorkflowsQuery = {
|
|
|
10269
10276
|
export type GetWorkflowQueryVariables = Exact<{
|
|
10270
10277
|
name: Scalars['String']['input'];
|
|
10271
10278
|
namespace: Scalars['String']['input'];
|
|
10279
|
+
isPublished?: InputMaybe<Scalars['Boolean']['input']>;
|
|
10272
10280
|
}>;
|
|
10273
10281
|
export type GetWorkflowQuery = {
|
|
10274
10282
|
__typename?: 'Query';
|
|
@@ -11200,6 +11208,7 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
11200
11208
|
getWorkflow(variables: Exact<{
|
|
11201
11209
|
name: string;
|
|
11202
11210
|
namespace: string;
|
|
11211
|
+
isPublished?: InputMaybe<boolean> | undefined;
|
|
11203
11212
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<GetWorkflowQuery>;
|
|
11204
11213
|
createWorkflow(variables: Exact<{
|
|
11205
11214
|
input: CreateWorkflowInput;
|
package/dist/esm/sdk.js
CHANGED
|
@@ -191,10 +191,10 @@ export var GenerateAgentSystemPromptDocument = gql(_templateObject16 || (_templa
|
|
|
191
191
|
export var GenerateAgentPrologueDocument = gql(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n mutation generateAgentPrologue($namespacedname: String!, $currentPrologue: String!) {\n Agent {\n generateAgentPrologue(\n namespacedname: $namespacedname\n currentPrologue: $currentPrologue\n )\n }\n}\n "])));
|
|
192
192
|
export var GeneratesAgentUserPromptDocument = gql(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n mutation generatesAgentUserPrompt($namespacedname: String!) {\n Agent {\n generatesAgentUserPrompt(namespacedname: $namespacedname)\n }\n}\n "])));
|
|
193
193
|
export var GetAgentReleaseStatusDocument = gql(_templateObject19 || (_templateObject19 = _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 "])));
|
|
194
|
-
export var GetAgentDocument = gql(_templateObject20 || (_templateObject20 = _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
|
+
export var GetAgentDocument = gql(_templateObject20 || (_templateObject20 = _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 workflowInputVar\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 "])));
|
|
195
195
|
export var GetAgentLatestReleaseInEachPlatformDocument = gql(_templateObject21 || (_templateObject21 = _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 version\n }\n }\n }\n }\n}\n "])));
|
|
196
196
|
export var GetAgentReleaseHistoryDocument = gql(_templateObject22 || (_templateObject22 = _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 version\n }\n }\n }\n }\n }\n}\n "])));
|
|
197
|
-
export var ListAgentsDocument = gql(_templateObject23 || (_templateObject23 = _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 "])));
|
|
197
|
+
export var ListAgentsDocument = gql(_templateObject23 || (_templateObject23 = _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 workflowInputVar\n }\n }\n }\n }\n }\n}\n "])));
|
|
198
198
|
export var ListAgentPromptDocument = gql(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n query listAgentPrompt($namespacedname: String!, $page: Int, $size: Int) {\n Agent {\n listAgentPrompt(namespacedname: $namespacedname, page: $page, size: $size) {\n totalCount\n page\n pageSize\n nodes {\n ... on AgentPrompt {\n id\n namespacedname\n content\n createdAt\n updatedAt\n }\n }\n }\n }\n}\n "])));
|
|
199
199
|
export var ListGptCategoryDocument = gql(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n query listGPTCategory {\n Agent {\n listGPTCategory {\n id\n name\n nameEn\n }\n }\n}\n "])));
|
|
200
200
|
export var GetGptStoreDocument = gql(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n query getGPTStore {\n Agent {\n getGPTStore {\n url\n public_namespace\n }\n }\n}\n "])));
|
|
@@ -312,7 +312,7 @@ export var CreateWorkerDocument = gql(_templateObject137 || (_templateObject137
|
|
|
312
312
|
export var UpdateWorkerDocument = gql(_templateObject138 || (_templateObject138 = _taggedTemplateLiteral(["\n mutation updateWorker($input: UpdateWorkerInput) {\n Worker {\n updateWorker(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n type\n status\n message\n updateTimestamp\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n api\n model {\n name\n namespace\n kind\n apiGroup\n }\n modelTypes\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n }\n }\n}\n "])));
|
|
313
313
|
export var DeleteWorkersDocument = gql(_templateObject139 || (_templateObject139 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
314
314
|
export var ListWorkflowsDocument = gql(_templateObject140 || (_templateObject140 = _taggedTemplateLiteral(["\n query listWorkflows($input: ListCommonInput!) {\n Workflow {\n listWorkflows(input: $input) {\n totalCount\n hasNextPage\n nodes {\n __typename\n ... on Workflow {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n release\n }\n }\n }\n }\n}\n "])));
|
|
315
|
-
export var GetWorkflowDocument = gql(_templateObject141 || (_templateObject141 = _taggedTemplateLiteral(["\n query getWorkflow($name: String!, $namespace: String
|
|
315
|
+
export var GetWorkflowDocument = gql(_templateObject141 || (_templateObject141 = _taggedTemplateLiteral(["\n query getWorkflow($name: String!, $namespace: String!, $isPublished: Boolean) {\n Workflow {\n getWorkflow(name: $name, namespace: $namespace, isPublished: $isPublished) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n release\n }\n }\n}\n "])));
|
|
316
316
|
export var CreateWorkflowDocument = gql(_templateObject142 || (_templateObject142 = _taggedTemplateLiteral(["\n mutation createWorkflow($input: CreateWorkflowInput!) {\n Workflow {\n createWorkflow(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n }\n }\n}\n "])));
|
|
317
317
|
export var UpdateWorkflowDocument = gql(_templateObject143 || (_templateObject143 = _taggedTemplateLiteral(["\n mutation updateWorkflow($input: UpdateWorkflowInput!) {\n Workflow {\n updateWorkflow(input: $input) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n message\n updateTimestamp\n draftUpdateTimestamp\n graph\n }\n }\n}\n "])));
|
|
318
318
|
export var DeleteWorkflowDocument = gql(_templateObject144 || (_templateObject144 = _taggedTemplateLiteral(["\n mutation deleteWorkflow($input: DeleteCommonInput!) {\n Workflow {\n deleteWorkflow(input: $input)\n }\n}\n "])));
|
package/dist/esm/taro.d.ts
CHANGED
|
@@ -501,6 +501,7 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
501
501
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
502
502
|
name: string;
|
|
503
503
|
namespace: string;
|
|
504
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
504
505
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
505
506
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
506
507
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -758,6 +759,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
758
759
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
759
760
|
name: string;
|
|
760
761
|
namespace: string;
|
|
762
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
761
763
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
762
764
|
createAgent(variables: import("./sdk").Exact<{
|
|
763
765
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -1228,6 +1230,7 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1228
1230
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1229
1231
|
name: string;
|
|
1230
1232
|
namespace: string;
|
|
1233
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1231
1234
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1232
1235
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1233
1236
|
input: import("./sdk").CreateWorkflowInput;
|
|
@@ -1485,6 +1488,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1485
1488
|
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1486
1489
|
name: string;
|
|
1487
1490
|
namespace: string;
|
|
1491
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1488
1492
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkflowQuery, import("graphql-request/src/types").ClientError>;
|
|
1489
1493
|
createAgent(variables: import("./sdk").Exact<{
|
|
1490
1494
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
@@ -1955,6 +1959,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1955
1959
|
getWorkflow(variables: import("./sdk").Exact<{
|
|
1956
1960
|
name: string;
|
|
1957
1961
|
namespace: string;
|
|
1962
|
+
isPublished?: import("./sdk").InputMaybe<boolean> | undefined;
|
|
1958
1963
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1959
1964
|
createWorkflow(variables: import("./sdk").Exact<{
|
|
1960
1965
|
input: import("./sdk").CreateWorkflowInput;
|