@yuntijs/arcadia-bff-sdk 1.2.38 → 1.2.40

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
@@ -115,6 +115,8 @@ export type Agent = {
115
115
  temperature?: Maybe<Scalars['Float']['output']>;
116
116
  /** userPrompt 用户级别的 Prompt */
117
117
  userPrompt?: Maybe<Scalars['String']['output']>;
118
+ /** workflows 使用的工作流列表 */
119
+ workflows?: Maybe<Array<Maybe<Workflow>>>;
118
120
  };
119
121
  /**
120
122
  * Agent
@@ -191,6 +193,7 @@ export type AgentMutation = {
191
193
  updateAgentModel?: Maybe<Scalars['Void']['output']>;
192
194
  updateAgentPlugin?: Maybe<Scalars['Void']['output']>;
193
195
  updateAgentPrompt?: Maybe<Scalars['Void']['output']>;
196
+ updateAgentWorkflow?: Maybe<Scalars['Void']['output']>;
194
197
  };
195
198
  export type AgentMutationCreateAgentArgs = {
196
199
  input: CreateAgentMetadataInput;
@@ -226,6 +229,9 @@ export type AgentMutationUpdateAgentPluginArgs = {
226
229
  export type AgentMutationUpdateAgentPromptArgs = {
227
230
  input: UpdateAgentPromptInput;
228
231
  };
232
+ export type AgentMutationUpdateAgentWorkflowArgs = {
233
+ input: UpdateAgentWorkflowInput;
234
+ };
229
235
  export type AgentPrompt = {
230
236
  __typename?: 'AgentPrompt';
231
237
  content: Scalars['String']['output'];
@@ -2254,6 +2260,23 @@ export type ReleaseAgentInputItem = {
2254
2260
  /** 发布的平台 */
2255
2261
  Platform: Scalars['String']['input'];
2256
2262
  };
2263
+ export type ReleaseWorkflowInput = {
2264
+ /**
2265
+ * 应用名称
2266
+ * 规则: 遵循 k8s 命名
2267
+ */
2268
+ name: Scalars['String']['input'];
2269
+ /**
2270
+ * 应用所在的namespace
2271
+ * 规则: 非空
2272
+ */
2273
+ namespace: Scalars['String']['input'];
2274
+ /**
2275
+ * 设定 workflow 的发布状态
2276
+ * 规则:默认为 false
2277
+ */
2278
+ release: Scalars['Boolean']['input'];
2279
+ };
2257
2280
  export type RemoveDuplicateConfig = {
2258
2281
  embedding_model: Scalars['String']['input'];
2259
2282
  embedding_name: Scalars['String']['input'];
@@ -2481,6 +2504,20 @@ export type UpdateAgentPromptInput = {
2481
2504
  /** userPrompt 用户级别的 Prompt */
2482
2505
  userPrompt?: InputMaybe<Scalars['String']['input']>;
2483
2506
  };
2507
+ export type UpdateAgentWorkflowInput = {
2508
+ /**
2509
+ * 应用名称, 用于确定要更新哪个应用
2510
+ * 规则: 遵循 k8s 命名
2511
+ */
2512
+ name: Scalars['String']['input'];
2513
+ /**
2514
+ * 应用所在的 namespace, 用于确定要更新哪个应用
2515
+ * 规则: 非空
2516
+ */
2517
+ namespace: Scalars['String']['input'];
2518
+ /** workflows 要使用的工作流列表 */
2519
+ workflows?: InputMaybe<Array<InputMaybe<TypedObjectReferenceInput>>>;
2520
+ };
2484
2521
  /** 数据集更新的输入 */
2485
2522
  export type UpdateDatasetInput = {
2486
2523
  annotations?: InputMaybe<Scalars['Map']['input']>;
@@ -3049,6 +3086,8 @@ export type Workflow = {
3049
3086
  * 规则: 非空
3050
3087
  */
3051
3088
  namespace: Scalars['String']['output'];
3089
+ /** 发布状态 */
3090
+ release?: Maybe<Scalars['Boolean']['output']>;
3052
3091
  /** 状态 */
3053
3092
  status?: Maybe<Scalars['String']['output']>;
3054
3093
  /** 更新时间 */
@@ -3058,6 +3097,7 @@ export type WorkflowMutation = {
3058
3097
  __typename?: 'WorkflowMutation';
3059
3098
  createWorkflow: Workflow;
3060
3099
  deleteWorkflow?: Maybe<Scalars['Void']['output']>;
3100
+ releaseWorkflow?: Maybe<Scalars['Void']['output']>;
3061
3101
  updateWorkflow: Workflow;
3062
3102
  };
3063
3103
  export type WorkflowMutationCreateWorkflowArgs = {
@@ -3066,6 +3106,9 @@ export type WorkflowMutationCreateWorkflowArgs = {
3066
3106
  export type WorkflowMutationDeleteWorkflowArgs = {
3067
3107
  input: DeleteCommonInput;
3068
3108
  };
3109
+ export type WorkflowMutationReleaseWorkflowArgs = {
3110
+ input: ReleaseWorkflowInput;
3111
+ };
3069
3112
  export type WorkflowMutationUpdateWorkflowArgs = {
3070
3113
  input: UpdateWorkflowInput;
3071
3114
  };
@@ -3311,6 +3354,16 @@ export type UpdateAgentKnowledgeBaseMutation = {
3311
3354
  updateAgentKnowledgeBase?: any | null;
3312
3355
  } | null;
3313
3356
  };
3357
+ export type UpdateAgentWorkflowMutationVariables = Exact<{
3358
+ input: UpdateAgentWorkflowInput;
3359
+ }>;
3360
+ export type UpdateAgentWorkflowMutation = {
3361
+ __typename?: 'Mutation';
3362
+ Agent?: {
3363
+ __typename?: 'AgentMutation';
3364
+ updateAgentWorkflow?: any | null;
3365
+ } | null;
3366
+ };
3314
3367
  export type DeleteAgentPromptMutationVariables = Exact<{
3315
3368
  namespacedname: Scalars['String']['input'];
3316
3369
  ids?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
@@ -3408,6 +3461,11 @@ export type GetAgentQuery = {
3408
3461
  name: string;
3409
3462
  namespace: string;
3410
3463
  } | null> | null;
3464
+ workflows?: Array<{
3465
+ __typename?: 'Workflow';
3466
+ name: string;
3467
+ namespace: string;
3468
+ } | null> | null;
3411
3469
  };
3412
3470
  } | null;
3413
3471
  };
@@ -6959,6 +7017,7 @@ export type ListWorkflowsQuery = {
6959
7017
  status?: string | null;
6960
7018
  updateTimestamp?: any | null;
6961
7019
  graph?: any | null;
7020
+ release?: boolean | null;
6962
7021
  }> | null;
6963
7022
  };
6964
7023
  } | null;
@@ -6986,6 +7045,7 @@ export type GetWorkflowQuery = {
6986
7045
  status?: string | null;
6987
7046
  updateTimestamp?: any | null;
6988
7047
  graph?: any | null;
7048
+ release?: boolean | null;
6989
7049
  };
6990
7050
  } | null;
6991
7051
  };
@@ -7049,6 +7109,16 @@ export type DeleteWorkflowMutation = {
7049
7109
  deleteWorkflow?: any | null;
7050
7110
  } | null;
7051
7111
  };
7112
+ export type ReleaseWorkflowMutationVariables = Exact<{
7113
+ input: ReleaseWorkflowInput;
7114
+ }>;
7115
+ export type ReleaseWorkflowMutation = {
7116
+ __typename?: 'Mutation';
7117
+ Workflow?: {
7118
+ __typename?: 'WorkflowMutation';
7119
+ releaseWorkflow?: any | null;
7120
+ } | null;
7121
+ };
7052
7122
  export declare const CreateAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7053
7123
  export declare const UpdateAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7054
7124
  export declare const DeleteAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -7058,6 +7128,7 @@ export declare const UpdateAgentPromptDocument: import("../node_modules/.pnpm/gr
7058
7128
  export declare const UpdateAgentModelDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7059
7129
  export declare const UpdateAgentPluginDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7060
7130
  export declare const UpdateAgentKnowledgeBaseDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7131
+ export declare const UpdateAgentWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7061
7132
  export declare const DeleteAgentPromptDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7062
7133
  export declare const GetAgentReleaseStatusDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7063
7134
  export declare const GetAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
@@ -7144,6 +7215,7 @@ export declare const GetWorkflowDocument: import("../node_modules/.pnpm/graphql@
7144
7215
  export declare const CreateWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7145
7216
  export declare const UpdateWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7146
7217
  export declare const DeleteWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7218
+ export declare const ReleaseWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
7147
7219
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
7148
7220
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
7149
7221
  createAgent(variables: CreateAgentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateAgentMutation>;
@@ -7155,6 +7227,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
7155
7227
  updateAgentModel(variables: UpdateAgentModelMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentModelMutation>;
7156
7228
  updateAgentPlugin(variables: UpdateAgentPluginMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentPluginMutation>;
7157
7229
  updateAgentKnowledgeBase(variables: UpdateAgentKnowledgeBaseMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentKnowledgeBaseMutation>;
7230
+ updateAgentWorkflow(variables: UpdateAgentWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateAgentWorkflowMutation>;
7158
7231
  deleteAgentPrompt(variables: DeleteAgentPromptMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteAgentPromptMutation>;
7159
7232
  getAgentReleaseStatus(variables: GetAgentReleaseStatusQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentReleaseStatusQuery>;
7160
7233
  getAgent(variables: GetAgentQueryVariables, requestHeaders?: RequestConfig['headers']): Promise<GetAgentQuery>;
@@ -7241,6 +7314,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
7241
7314
  createWorkflow(variables: CreateWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateWorkflowMutation>;
7242
7315
  updateWorkflow(variables: UpdateWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateWorkflowMutation>;
7243
7316
  deleteWorkflow(variables: DeleteWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteWorkflowMutation>;
7317
+ releaseWorkflow(variables: ReleaseWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<ReleaseWorkflowMutation>;
7244
7318
  };
7245
7319
  export type Sdk = ReturnType<typeof getSdk>;
7246
7320
  export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
@@ -7321,6 +7395,9 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
7321
7395
  updateAgentKnowledgeBase(variables: Exact<{
7322
7396
  input: UpdateAgentKnowledgebaseInput;
7323
7397
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentKnowledgeBaseMutation>;
7398
+ updateAgentWorkflow(variables: Exact<{
7399
+ input: UpdateAgentWorkflowInput;
7400
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateAgentWorkflowMutation>;
7324
7401
  deleteAgentPrompt(variables: Exact<{
7325
7402
  namespacedname: string;
7326
7403
  ids?: InputMaybe<string | string[]> | undefined;
@@ -7609,5 +7686,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
7609
7686
  deleteWorkflow(variables: Exact<{
7610
7687
  input: DeleteCommonInput;
7611
7688
  }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteWorkflowMutation>;
7689
+ releaseWorkflow(variables: Exact<{
7690
+ input: ReleaseWorkflowInput;
7691
+ }>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ReleaseWorkflowMutation>;
7612
7692
  };
7613
7693
  export type SdkWithHooks = ReturnType<typeof getSdkWithHooks>;