@yuntijs/arcadia-bff-sdk 1.2.39 → 1.2.41
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 +12 -0
- package/dist/cjs/sdk.d.ts +50 -0
- package/dist/cjs/sdk.js +18 -0
- package/dist/cjs/taro.d.ts +9 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/sdk.d.ts +50 -0
- package/dist/esm/sdk.js +13 -7
- package/dist/esm/taro.d.ts +9 -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
|
@@ -502,6 +502,9 @@ export declare const sdk: {
|
|
|
502
502
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
503
503
|
input: import("./sdk").DeleteCommonInput;
|
|
504
504
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
505
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
506
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
507
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
505
508
|
};
|
|
506
509
|
/** 初始化 sdk 的配置项 */
|
|
507
510
|
export interface SdkBaseOptions {
|
|
@@ -848,6 +851,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
848
851
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
849
852
|
input: import("./sdk").DeleteCommonInput;
|
|
850
853
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
854
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
855
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
856
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
851
857
|
};
|
|
852
858
|
/**
|
|
853
859
|
* 初始化 sdk 实例 (包含 hooks)
|
|
@@ -1346,6 +1352,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1346
1352
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1347
1353
|
input: import("./sdk").DeleteCommonInput;
|
|
1348
1354
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1355
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
1356
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
1357
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
1349
1358
|
};
|
|
1350
1359
|
/**
|
|
1351
1360
|
* hook 的方式获取 sdk 实例
|
|
@@ -1844,4 +1853,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1844
1853
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1845
1854
|
input: import("./sdk").DeleteCommonInput;
|
|
1846
1855
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1856
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
1857
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
1858
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
1847
1859
|
};
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -454,6 +454,8 @@ export type CreateKnowledgeBaseInput = {
|
|
|
454
454
|
chunkOverlap?: InputMaybe<Scalars['Int']['input']>;
|
|
455
455
|
/** chunkSize为知识库做文档拆分时的块大小 */
|
|
456
456
|
chunkSize?: InputMaybe<Scalars['Int']['input']>;
|
|
457
|
+
/** 知识库的数据类型 */
|
|
458
|
+
dataType: Scalars['String']['input'];
|
|
457
459
|
/** 知识库资源描述 */
|
|
458
460
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
459
461
|
/** 知识库资源展示名称作为显示,并提供编辑 */
|
|
@@ -1237,6 +1239,8 @@ export type FileDetails = {
|
|
|
1237
1239
|
};
|
|
1238
1240
|
/** 根据条件顾虑版本内的文件,只支持关键词搜索 */
|
|
1239
1241
|
export type FileFilter = {
|
|
1242
|
+
/** 根据数据类型过滤,同知识库的数据类型 */
|
|
1243
|
+
dataType?: InputMaybe<Scalars['String']['input']>;
|
|
1240
1244
|
/** 根据关键词搜索文件,strings.Container(fileName, keyword) */
|
|
1241
1245
|
keyword?: InputMaybe<Scalars['String']['input']>;
|
|
1242
1246
|
/** 页 */
|
|
@@ -1296,6 +1300,8 @@ export type KnowledgeBase = {
|
|
|
1296
1300
|
* 规则: webhook启用后自动添加,默认为空
|
|
1297
1301
|
*/
|
|
1298
1302
|
creator?: Maybe<Scalars['String']['output']>;
|
|
1303
|
+
/** 知识库的数据类型: text or structured */
|
|
1304
|
+
dataType?: Maybe<Scalars['String']['output']>;
|
|
1299
1305
|
/** 描述信息 */
|
|
1300
1306
|
description?: Maybe<Scalars['String']['output']>;
|
|
1301
1307
|
/** 展示名 */
|
|
@@ -2260,6 +2266,23 @@ export type ReleaseAgentInputItem = {
|
|
|
2260
2266
|
/** 发布的平台 */
|
|
2261
2267
|
Platform: Scalars['String']['input'];
|
|
2262
2268
|
};
|
|
2269
|
+
export type ReleaseWorkflowInput = {
|
|
2270
|
+
/**
|
|
2271
|
+
* 应用名称
|
|
2272
|
+
* 规则: 遵循 k8s 命名
|
|
2273
|
+
*/
|
|
2274
|
+
name: Scalars['String']['input'];
|
|
2275
|
+
/**
|
|
2276
|
+
* 应用所在的namespace
|
|
2277
|
+
* 规则: 非空
|
|
2278
|
+
*/
|
|
2279
|
+
namespace: Scalars['String']['input'];
|
|
2280
|
+
/**
|
|
2281
|
+
* 设定 workflow 的发布状态
|
|
2282
|
+
* 规则:默认为 false
|
|
2283
|
+
*/
|
|
2284
|
+
release: Scalars['Boolean']['input'];
|
|
2285
|
+
};
|
|
2263
2286
|
export type RemoveDuplicateConfig = {
|
|
2264
2287
|
embedding_model: Scalars['String']['input'];
|
|
2265
2288
|
embedding_name: Scalars['String']['input'];
|
|
@@ -3069,6 +3092,8 @@ export type Workflow = {
|
|
|
3069
3092
|
* 规则: 非空
|
|
3070
3093
|
*/
|
|
3071
3094
|
namespace: Scalars['String']['output'];
|
|
3095
|
+
/** 发布状态 */
|
|
3096
|
+
release?: Maybe<Scalars['Boolean']['output']>;
|
|
3072
3097
|
/** 状态 */
|
|
3073
3098
|
status?: Maybe<Scalars['String']['output']>;
|
|
3074
3099
|
/** 更新时间 */
|
|
@@ -3078,6 +3103,7 @@ export type WorkflowMutation = {
|
|
|
3078
3103
|
__typename?: 'WorkflowMutation';
|
|
3079
3104
|
createWorkflow: Workflow;
|
|
3080
3105
|
deleteWorkflow?: Maybe<Scalars['Void']['output']>;
|
|
3106
|
+
releaseWorkflow?: Maybe<Scalars['Void']['output']>;
|
|
3081
3107
|
updateWorkflow: Workflow;
|
|
3082
3108
|
};
|
|
3083
3109
|
export type WorkflowMutationCreateWorkflowArgs = {
|
|
@@ -3086,6 +3112,9 @@ export type WorkflowMutationCreateWorkflowArgs = {
|
|
|
3086
3112
|
export type WorkflowMutationDeleteWorkflowArgs = {
|
|
3087
3113
|
input: DeleteCommonInput;
|
|
3088
3114
|
};
|
|
3115
|
+
export type WorkflowMutationReleaseWorkflowArgs = {
|
|
3116
|
+
input: ReleaseWorkflowInput;
|
|
3117
|
+
};
|
|
3089
3118
|
export type WorkflowMutationUpdateWorkflowArgs = {
|
|
3090
3119
|
input: UpdateWorkflowInput;
|
|
3091
3120
|
};
|
|
@@ -4702,6 +4731,7 @@ export type ListKnowledgeBasesQuery = {
|
|
|
4702
4731
|
creator?: string | null;
|
|
4703
4732
|
displayName?: string | null;
|
|
4704
4733
|
description?: string | null;
|
|
4734
|
+
dataType?: string | null;
|
|
4705
4735
|
chunkSize?: number | null;
|
|
4706
4736
|
chunkOverlap?: number | null;
|
|
4707
4737
|
batchSize?: number | null;
|
|
@@ -4787,6 +4817,7 @@ export type GetKnowledgeBaseQuery = {
|
|
|
4787
4817
|
creator?: string | null;
|
|
4788
4818
|
displayName?: string | null;
|
|
4789
4819
|
description?: string | null;
|
|
4820
|
+
dataType?: string | null;
|
|
4790
4821
|
chunkSize?: number | null;
|
|
4791
4822
|
chunkOverlap?: number | null;
|
|
4792
4823
|
batchSize?: number | null;
|
|
@@ -4848,6 +4879,7 @@ export type CreateKnowledgeBaseMutation = {
|
|
|
4848
4879
|
creator?: string | null;
|
|
4849
4880
|
displayName?: string | null;
|
|
4850
4881
|
description?: string | null;
|
|
4882
|
+
dataType?: string | null;
|
|
4851
4883
|
chunkSize?: number | null;
|
|
4852
4884
|
chunkOverlap?: number | null;
|
|
4853
4885
|
batchSize?: number | null;
|
|
@@ -4909,6 +4941,7 @@ export type UpdateKnowledgeBaseMutation = {
|
|
|
4909
4941
|
creator?: string | null;
|
|
4910
4942
|
displayName?: string | null;
|
|
4911
4943
|
description?: string | null;
|
|
4944
|
+
dataType?: string | null;
|
|
4912
4945
|
chunkSize?: number | null;
|
|
4913
4946
|
chunkOverlap?: number | null;
|
|
4914
4947
|
batchSize?: number | null;
|
|
@@ -6994,6 +7027,7 @@ export type ListWorkflowsQuery = {
|
|
|
6994
7027
|
status?: string | null;
|
|
6995
7028
|
updateTimestamp?: any | null;
|
|
6996
7029
|
graph?: any | null;
|
|
7030
|
+
release?: boolean | null;
|
|
6997
7031
|
}> | null;
|
|
6998
7032
|
};
|
|
6999
7033
|
} | null;
|
|
@@ -7021,6 +7055,7 @@ export type GetWorkflowQuery = {
|
|
|
7021
7055
|
status?: string | null;
|
|
7022
7056
|
updateTimestamp?: any | null;
|
|
7023
7057
|
graph?: any | null;
|
|
7058
|
+
release?: boolean | null;
|
|
7024
7059
|
};
|
|
7025
7060
|
} | null;
|
|
7026
7061
|
};
|
|
@@ -7084,6 +7119,16 @@ export type DeleteWorkflowMutation = {
|
|
|
7084
7119
|
deleteWorkflow?: any | null;
|
|
7085
7120
|
} | null;
|
|
7086
7121
|
};
|
|
7122
|
+
export type ReleaseWorkflowMutationVariables = Exact<{
|
|
7123
|
+
input: ReleaseWorkflowInput;
|
|
7124
|
+
}>;
|
|
7125
|
+
export type ReleaseWorkflowMutation = {
|
|
7126
|
+
__typename?: 'Mutation';
|
|
7127
|
+
Workflow?: {
|
|
7128
|
+
__typename?: 'WorkflowMutation';
|
|
7129
|
+
releaseWorkflow?: any | null;
|
|
7130
|
+
} | null;
|
|
7131
|
+
};
|
|
7087
7132
|
export declare const CreateAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7088
7133
|
export declare const UpdateAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7089
7134
|
export declare const DeleteAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -7180,6 +7225,7 @@ export declare const GetWorkflowDocument: import("../node_modules/.pnpm/graphql@
|
|
|
7180
7225
|
export declare const CreateWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7181
7226
|
export declare const UpdateWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7182
7227
|
export declare const DeleteWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7228
|
+
export declare const ReleaseWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7183
7229
|
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
7184
7230
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
7185
7231
|
createAgent(variables: CreateAgentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateAgentMutation>;
|
|
@@ -7278,6 +7324,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7278
7324
|
createWorkflow(variables: CreateWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateWorkflowMutation>;
|
|
7279
7325
|
updateWorkflow(variables: UpdateWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateWorkflowMutation>;
|
|
7280
7326
|
deleteWorkflow(variables: DeleteWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteWorkflowMutation>;
|
|
7327
|
+
releaseWorkflow(variables: ReleaseWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<ReleaseWorkflowMutation>;
|
|
7281
7328
|
};
|
|
7282
7329
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
7283
7330
|
export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
@@ -7649,5 +7696,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
7649
7696
|
deleteWorkflow(variables: Exact<{
|
|
7650
7697
|
input: DeleteCommonInput;
|
|
7651
7698
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteWorkflowMutation>;
|
|
7699
|
+
releaseWorkflow(variables: Exact<{
|
|
7700
|
+
input: ReleaseWorkflowInput;
|
|
7701
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ReleaseWorkflowMutation>;
|
|
7652
7702
|
};
|
|
7653
7703
|
export type SdkWithHooks = ReturnType<typeof getSdkWithHooks>;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -107,6 +107,7 @@ __export(sdk_exports, {
|
|
|
107
107
|
ListWorkersDocument: () => ListWorkersDocument,
|
|
108
108
|
ListWorkflowsDocument: () => ListWorkflowsDocument,
|
|
109
109
|
ReleaseAgentDocument: () => ReleaseAgentDocument,
|
|
110
|
+
ReleaseWorkflowDocument: () => ReleaseWorkflowDocument,
|
|
110
111
|
UpdateAgentDocument: () => UpdateAgentDocument,
|
|
111
112
|
UpdateAgentKnowledgeBaseDocument: () => UpdateAgentKnowledgeBaseDocument,
|
|
112
113
|
UpdateAgentModelDocument: () => UpdateAgentModelDocument,
|
|
@@ -1081,6 +1082,7 @@ var ListKnowledgeBasesDocument = import_graphql_tag.default`
|
|
|
1081
1082
|
creator
|
|
1082
1083
|
displayName
|
|
1083
1084
|
description
|
|
1085
|
+
dataType
|
|
1084
1086
|
chunkSize
|
|
1085
1087
|
chunkOverlap
|
|
1086
1088
|
batchSize
|
|
@@ -1135,6 +1137,7 @@ var GetKnowledgeBaseDocument = import_graphql_tag.default`
|
|
|
1135
1137
|
creator
|
|
1136
1138
|
displayName
|
|
1137
1139
|
description
|
|
1140
|
+
dataType
|
|
1138
1141
|
chunkSize
|
|
1139
1142
|
chunkOverlap
|
|
1140
1143
|
batchSize
|
|
@@ -1187,6 +1190,7 @@ var CreateKnowledgeBaseDocument = import_graphql_tag.default`
|
|
|
1187
1190
|
creator
|
|
1188
1191
|
displayName
|
|
1189
1192
|
description
|
|
1193
|
+
dataType
|
|
1190
1194
|
chunkSize
|
|
1191
1195
|
chunkOverlap
|
|
1192
1196
|
batchSize
|
|
@@ -1239,6 +1243,7 @@ var UpdateKnowledgeBaseDocument = import_graphql_tag.default`
|
|
|
1239
1243
|
creator
|
|
1240
1244
|
displayName
|
|
1241
1245
|
description
|
|
1246
|
+
dataType
|
|
1242
1247
|
chunkSize
|
|
1243
1248
|
chunkOverlap
|
|
1244
1249
|
batchSize
|
|
@@ -2534,6 +2539,7 @@ var ListWorkflowsDocument = import_graphql_tag.default`
|
|
|
2534
2539
|
status
|
|
2535
2540
|
updateTimestamp
|
|
2536
2541
|
graph
|
|
2542
|
+
release
|
|
2537
2543
|
}
|
|
2538
2544
|
}
|
|
2539
2545
|
}
|
|
@@ -2557,6 +2563,7 @@ var GetWorkflowDocument = import_graphql_tag.default`
|
|
|
2557
2563
|
status
|
|
2558
2564
|
updateTimestamp
|
|
2559
2565
|
graph
|
|
2566
|
+
release
|
|
2560
2567
|
}
|
|
2561
2568
|
}
|
|
2562
2569
|
}
|
|
@@ -2610,6 +2617,13 @@ var DeleteWorkflowDocument = import_graphql_tag.default`
|
|
|
2610
2617
|
}
|
|
2611
2618
|
}
|
|
2612
2619
|
`;
|
|
2620
|
+
var ReleaseWorkflowDocument = import_graphql_tag.default`
|
|
2621
|
+
mutation releaseWorkflow($input: ReleaseWorkflowInput!) {
|
|
2622
|
+
Workflow {
|
|
2623
|
+
releaseWorkflow(input: $input)
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
`;
|
|
2613
2627
|
var defaultWrapper = (action, _operationName, _operationType, variables) => action();
|
|
2614
2628
|
function getSdk(client, withWrapper = defaultWrapper) {
|
|
2615
2629
|
return {
|
|
@@ -2900,6 +2914,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2900
2914
|
},
|
|
2901
2915
|
deleteWorkflow(variables, requestHeaders) {
|
|
2902
2916
|
return withWrapper((wrappedRequestHeaders) => client.request(DeleteWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "deleteWorkflow", "mutation", variables);
|
|
2917
|
+
},
|
|
2918
|
+
releaseWorkflow(variables, requestHeaders) {
|
|
2919
|
+
return withWrapper((wrappedRequestHeaders) => client.request(ReleaseWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "releaseWorkflow", "mutation", variables);
|
|
2903
2920
|
}
|
|
2904
2921
|
};
|
|
2905
2922
|
}
|
|
@@ -3131,6 +3148,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
3131
3148
|
ListWorkersDocument,
|
|
3132
3149
|
ListWorkflowsDocument,
|
|
3133
3150
|
ReleaseAgentDocument,
|
|
3151
|
+
ReleaseWorkflowDocument,
|
|
3134
3152
|
UpdateAgentDocument,
|
|
3135
3153
|
UpdateAgentKnowledgeBaseDocument,
|
|
3136
3154
|
UpdateAgentModelDocument,
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -353,6 +353,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
353
353
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
354
354
|
input: import("./sdk").DeleteCommonInput;
|
|
355
355
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
356
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
357
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
358
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
356
359
|
};
|
|
357
360
|
/**
|
|
358
361
|
* 初始化 sdk 实例 (包含 hooks)
|
|
@@ -851,6 +854,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
851
854
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
852
855
|
input: import("./sdk").DeleteCommonInput;
|
|
853
856
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
857
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
858
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
859
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
854
860
|
};
|
|
855
861
|
/**
|
|
856
862
|
* hook 的方式获取 sdk 实例
|
|
@@ -1349,4 +1355,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1349
1355
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1350
1356
|
input: import("./sdk").DeleteCommonInput;
|
|
1351
1357
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1358
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
1359
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
1360
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
1352
1361
|
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -502,6 +502,9 @@ export declare const sdk: {
|
|
|
502
502
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
503
503
|
input: import("./sdk").DeleteCommonInput;
|
|
504
504
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
505
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
506
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
507
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
505
508
|
};
|
|
506
509
|
/** 初始化 sdk 的配置项 */
|
|
507
510
|
export interface SdkBaseOptions {
|
|
@@ -848,6 +851,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
848
851
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
849
852
|
input: import("./sdk").DeleteCommonInput;
|
|
850
853
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
854
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
855
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
856
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
851
857
|
};
|
|
852
858
|
/**
|
|
853
859
|
* 初始化 sdk 实例 (包含 hooks)
|
|
@@ -1346,6 +1352,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1346
1352
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1347
1353
|
input: import("./sdk").DeleteCommonInput;
|
|
1348
1354
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1355
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
1356
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
1357
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
1349
1358
|
};
|
|
1350
1359
|
/**
|
|
1351
1360
|
* hook 的方式获取 sdk 实例
|
|
@@ -1844,4 +1853,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1844
1853
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1845
1854
|
input: import("./sdk").DeleteCommonInput;
|
|
1846
1855
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1856
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
1857
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
1858
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
1847
1859
|
};
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -454,6 +454,8 @@ export type CreateKnowledgeBaseInput = {
|
|
|
454
454
|
chunkOverlap?: InputMaybe<Scalars['Int']['input']>;
|
|
455
455
|
/** chunkSize为知识库做文档拆分时的块大小 */
|
|
456
456
|
chunkSize?: InputMaybe<Scalars['Int']['input']>;
|
|
457
|
+
/** 知识库的数据类型 */
|
|
458
|
+
dataType: Scalars['String']['input'];
|
|
457
459
|
/** 知识库资源描述 */
|
|
458
460
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
459
461
|
/** 知识库资源展示名称作为显示,并提供编辑 */
|
|
@@ -1237,6 +1239,8 @@ export type FileDetails = {
|
|
|
1237
1239
|
};
|
|
1238
1240
|
/** 根据条件顾虑版本内的文件,只支持关键词搜索 */
|
|
1239
1241
|
export type FileFilter = {
|
|
1242
|
+
/** 根据数据类型过滤,同知识库的数据类型 */
|
|
1243
|
+
dataType?: InputMaybe<Scalars['String']['input']>;
|
|
1240
1244
|
/** 根据关键词搜索文件,strings.Container(fileName, keyword) */
|
|
1241
1245
|
keyword?: InputMaybe<Scalars['String']['input']>;
|
|
1242
1246
|
/** 页 */
|
|
@@ -1296,6 +1300,8 @@ export type KnowledgeBase = {
|
|
|
1296
1300
|
* 规则: webhook启用后自动添加,默认为空
|
|
1297
1301
|
*/
|
|
1298
1302
|
creator?: Maybe<Scalars['String']['output']>;
|
|
1303
|
+
/** 知识库的数据类型: text or structured */
|
|
1304
|
+
dataType?: Maybe<Scalars['String']['output']>;
|
|
1299
1305
|
/** 描述信息 */
|
|
1300
1306
|
description?: Maybe<Scalars['String']['output']>;
|
|
1301
1307
|
/** 展示名 */
|
|
@@ -2260,6 +2266,23 @@ export type ReleaseAgentInputItem = {
|
|
|
2260
2266
|
/** 发布的平台 */
|
|
2261
2267
|
Platform: Scalars['String']['input'];
|
|
2262
2268
|
};
|
|
2269
|
+
export type ReleaseWorkflowInput = {
|
|
2270
|
+
/**
|
|
2271
|
+
* 应用名称
|
|
2272
|
+
* 规则: 遵循 k8s 命名
|
|
2273
|
+
*/
|
|
2274
|
+
name: Scalars['String']['input'];
|
|
2275
|
+
/**
|
|
2276
|
+
* 应用所在的namespace
|
|
2277
|
+
* 规则: 非空
|
|
2278
|
+
*/
|
|
2279
|
+
namespace: Scalars['String']['input'];
|
|
2280
|
+
/**
|
|
2281
|
+
* 设定 workflow 的发布状态
|
|
2282
|
+
* 规则:默认为 false
|
|
2283
|
+
*/
|
|
2284
|
+
release: Scalars['Boolean']['input'];
|
|
2285
|
+
};
|
|
2263
2286
|
export type RemoveDuplicateConfig = {
|
|
2264
2287
|
embedding_model: Scalars['String']['input'];
|
|
2265
2288
|
embedding_name: Scalars['String']['input'];
|
|
@@ -3069,6 +3092,8 @@ export type Workflow = {
|
|
|
3069
3092
|
* 规则: 非空
|
|
3070
3093
|
*/
|
|
3071
3094
|
namespace: Scalars['String']['output'];
|
|
3095
|
+
/** 发布状态 */
|
|
3096
|
+
release?: Maybe<Scalars['Boolean']['output']>;
|
|
3072
3097
|
/** 状态 */
|
|
3073
3098
|
status?: Maybe<Scalars['String']['output']>;
|
|
3074
3099
|
/** 更新时间 */
|
|
@@ -3078,6 +3103,7 @@ export type WorkflowMutation = {
|
|
|
3078
3103
|
__typename?: 'WorkflowMutation';
|
|
3079
3104
|
createWorkflow: Workflow;
|
|
3080
3105
|
deleteWorkflow?: Maybe<Scalars['Void']['output']>;
|
|
3106
|
+
releaseWorkflow?: Maybe<Scalars['Void']['output']>;
|
|
3081
3107
|
updateWorkflow: Workflow;
|
|
3082
3108
|
};
|
|
3083
3109
|
export type WorkflowMutationCreateWorkflowArgs = {
|
|
@@ -3086,6 +3112,9 @@ export type WorkflowMutationCreateWorkflowArgs = {
|
|
|
3086
3112
|
export type WorkflowMutationDeleteWorkflowArgs = {
|
|
3087
3113
|
input: DeleteCommonInput;
|
|
3088
3114
|
};
|
|
3115
|
+
export type WorkflowMutationReleaseWorkflowArgs = {
|
|
3116
|
+
input: ReleaseWorkflowInput;
|
|
3117
|
+
};
|
|
3089
3118
|
export type WorkflowMutationUpdateWorkflowArgs = {
|
|
3090
3119
|
input: UpdateWorkflowInput;
|
|
3091
3120
|
};
|
|
@@ -4702,6 +4731,7 @@ export type ListKnowledgeBasesQuery = {
|
|
|
4702
4731
|
creator?: string | null;
|
|
4703
4732
|
displayName?: string | null;
|
|
4704
4733
|
description?: string | null;
|
|
4734
|
+
dataType?: string | null;
|
|
4705
4735
|
chunkSize?: number | null;
|
|
4706
4736
|
chunkOverlap?: number | null;
|
|
4707
4737
|
batchSize?: number | null;
|
|
@@ -4787,6 +4817,7 @@ export type GetKnowledgeBaseQuery = {
|
|
|
4787
4817
|
creator?: string | null;
|
|
4788
4818
|
displayName?: string | null;
|
|
4789
4819
|
description?: string | null;
|
|
4820
|
+
dataType?: string | null;
|
|
4790
4821
|
chunkSize?: number | null;
|
|
4791
4822
|
chunkOverlap?: number | null;
|
|
4792
4823
|
batchSize?: number | null;
|
|
@@ -4848,6 +4879,7 @@ export type CreateKnowledgeBaseMutation = {
|
|
|
4848
4879
|
creator?: string | null;
|
|
4849
4880
|
displayName?: string | null;
|
|
4850
4881
|
description?: string | null;
|
|
4882
|
+
dataType?: string | null;
|
|
4851
4883
|
chunkSize?: number | null;
|
|
4852
4884
|
chunkOverlap?: number | null;
|
|
4853
4885
|
batchSize?: number | null;
|
|
@@ -4909,6 +4941,7 @@ export type UpdateKnowledgeBaseMutation = {
|
|
|
4909
4941
|
creator?: string | null;
|
|
4910
4942
|
displayName?: string | null;
|
|
4911
4943
|
description?: string | null;
|
|
4944
|
+
dataType?: string | null;
|
|
4912
4945
|
chunkSize?: number | null;
|
|
4913
4946
|
chunkOverlap?: number | null;
|
|
4914
4947
|
batchSize?: number | null;
|
|
@@ -6994,6 +7027,7 @@ export type ListWorkflowsQuery = {
|
|
|
6994
7027
|
status?: string | null;
|
|
6995
7028
|
updateTimestamp?: any | null;
|
|
6996
7029
|
graph?: any | null;
|
|
7030
|
+
release?: boolean | null;
|
|
6997
7031
|
}> | null;
|
|
6998
7032
|
};
|
|
6999
7033
|
} | null;
|
|
@@ -7021,6 +7055,7 @@ export type GetWorkflowQuery = {
|
|
|
7021
7055
|
status?: string | null;
|
|
7022
7056
|
updateTimestamp?: any | null;
|
|
7023
7057
|
graph?: any | null;
|
|
7058
|
+
release?: boolean | null;
|
|
7024
7059
|
};
|
|
7025
7060
|
} | null;
|
|
7026
7061
|
};
|
|
@@ -7084,6 +7119,16 @@ export type DeleteWorkflowMutation = {
|
|
|
7084
7119
|
deleteWorkflow?: any | null;
|
|
7085
7120
|
} | null;
|
|
7086
7121
|
};
|
|
7122
|
+
export type ReleaseWorkflowMutationVariables = Exact<{
|
|
7123
|
+
input: ReleaseWorkflowInput;
|
|
7124
|
+
}>;
|
|
7125
|
+
export type ReleaseWorkflowMutation = {
|
|
7126
|
+
__typename?: 'Mutation';
|
|
7127
|
+
Workflow?: {
|
|
7128
|
+
__typename?: 'WorkflowMutation';
|
|
7129
|
+
releaseWorkflow?: any | null;
|
|
7130
|
+
} | null;
|
|
7131
|
+
};
|
|
7087
7132
|
export declare const CreateAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7088
7133
|
export declare const UpdateAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7089
7134
|
export declare const DeleteAgentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -7180,6 +7225,7 @@ export declare const GetWorkflowDocument: import("../node_modules/.pnpm/graphql@
|
|
|
7180
7225
|
export declare const CreateWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7181
7226
|
export declare const UpdateWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7182
7227
|
export declare const DeleteWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7228
|
+
export declare const ReleaseWorkflowDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
7183
7229
|
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
7184
7230
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
7185
7231
|
createAgent(variables: CreateAgentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateAgentMutation>;
|
|
@@ -7278,6 +7324,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
7278
7324
|
createWorkflow(variables: CreateWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<CreateWorkflowMutation>;
|
|
7279
7325
|
updateWorkflow(variables: UpdateWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateWorkflowMutation>;
|
|
7280
7326
|
deleteWorkflow(variables: DeleteWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteWorkflowMutation>;
|
|
7327
|
+
releaseWorkflow(variables: ReleaseWorkflowMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<ReleaseWorkflowMutation>;
|
|
7281
7328
|
};
|
|
7282
7329
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
7283
7330
|
export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
@@ -7649,5 +7696,8 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
7649
7696
|
deleteWorkflow(variables: Exact<{
|
|
7650
7697
|
input: DeleteCommonInput;
|
|
7651
7698
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteWorkflowMutation>;
|
|
7699
|
+
releaseWorkflow(variables: Exact<{
|
|
7700
|
+
input: ReleaseWorkflowInput;
|
|
7701
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<ReleaseWorkflowMutation>;
|
|
7652
7702
|
};
|
|
7653
7703
|
export type SdkWithHooks = ReturnType<typeof getSdkWithHooks>;
|
package/dist/esm/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83, _templateObject84, _templateObject85, _templateObject86, _templateObject87, _templateObject88, _templateObject89, _templateObject90, _templateObject91, _templateObject92, _templateObject93, _templateObject94, _templateObject95, _templateObject96;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72, _templateObject73, _templateObject74, _templateObject75, _templateObject76, _templateObject77, _templateObject78, _templateObject79, _templateObject80, _templateObject81, _templateObject82, _templateObject83, _templateObject84, _templateObject85, _templateObject86, _templateObject87, _templateObject88, _templateObject89, _templateObject90, _templateObject91, _templateObject92, _templateObject93, _templateObject94, _templateObject95, _templateObject96, _templateObject97;
|
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -211,10 +211,10 @@ export var UpdateEmbedderDocument = gql(_templateObject42 || (_templateObject42
|
|
|
211
211
|
export var DeleteEmbeddersDocument = gql(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n mutation deleteEmbedders($input: DeleteCommonInput!) {\n Embedder {\n deleteEmbedders(input: $input)\n }\n}\n "])));
|
|
212
212
|
export var ListEmbeddersDocument = gql(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n query listEmbedders($input: ListCommonInput!) {\n Embedder {\n listEmbedders(input: $input) {\n totalCount\n hasNextPage\n nodes {\n ... on Embedder {\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 "])));
|
|
213
213
|
export var GetEmbedderDocument = gql(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n query getEmbedder($name: String!, $namespace: String!) {\n Embedder {\n getEmbedder(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 }\n }\n}\n "])));
|
|
214
|
-
export var ListKnowledgeBasesDocument = gql(_templateObject46 || (_templateObject46 = _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 "])));
|
|
215
|
-
export var GetKnowledgeBaseDocument = gql(_templateObject47 || (_templateObject47 = _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 "])));
|
|
216
|
-
export var CreateKnowledgeBaseDocument = gql(_templateObject48 || (_templateObject48 = _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 "])));
|
|
217
|
-
export var UpdateKnowledgeBaseDocument = gql(_templateObject49 || (_templateObject49 = _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 "])));
|
|
214
|
+
export var ListKnowledgeBasesDocument = gql(_templateObject46 || (_templateObject46 = _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 dataType\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 "])));
|
|
215
|
+
export var GetKnowledgeBaseDocument = gql(_templateObject47 || (_templateObject47 = _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 dataType\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
|
+
export var CreateKnowledgeBaseDocument = gql(_templateObject48 || (_templateObject48 = _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 dataType\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 "])));
|
|
217
|
+
export var UpdateKnowledgeBaseDocument = gql(_templateObject49 || (_templateObject49 = _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 dataType\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 "])));
|
|
218
218
|
export var DeleteKnowledgeBaseDocument = gql(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["\n mutation deleteKnowledgeBase($input: DeleteCommonInput) {\n KnowledgeBase {\n deleteKnowledgeBase(input: $input)\n }\n}\n "])));
|
|
219
219
|
export var ListLlMsDocument = gql(_templateObject51 || (_templateObject51 = _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 "])));
|
|
220
220
|
export var GetLlmDocument = gql(_templateObject52 || (_templateObject52 = _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 "])));
|
|
@@ -257,11 +257,12 @@ export var GetWorkerDocument = gql(_templateObject88 || (_templateObject88 = _ta
|
|
|
257
257
|
export var CreateWorkerDocument = gql(_templateObject89 || (_templateObject89 = _taggedTemplateLiteral(["\n mutation createWorker($input: CreateWorkerInput!) {\n Worker {\n createWorker(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 model {\n name\n namespace\n kind\n apiGroup\n }\n api\n modelTypes\n replicas\n resources {\n cpu\n memory\n nvidiaGPU\n }\n matchExpressions {\n key\n operator\n values\n }\n additionalEnvs\n storage {\n accessModes\n resources {\n limits\n requests\n }\n storageClassName\n }\n }\n }\n}\n "])));
|
|
258
258
|
export var UpdateWorkerDocument = gql(_templateObject90 || (_templateObject90 = _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 "])));
|
|
259
259
|
export var DeleteWorkersDocument = gql(_templateObject91 || (_templateObject91 = _taggedTemplateLiteral(["\n mutation deleteWorkers($input: DeleteCommonInput) {\n Worker {\n deleteWorkers(input: $input)\n }\n}\n "])));
|
|
260
|
-
export var ListWorkflowsDocument = gql(_templateObject92 || (_templateObject92 = _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 updateTimestamp\n graph\n }\n }\n }\n }\n}\n "])));
|
|
261
|
-
export var GetWorkflowDocument = gql(_templateObject93 || (_templateObject93 = _taggedTemplateLiteral(["\n query getWorkflow($name: String!, $namespace: String!) {\n Workflow {\n getWorkflow(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n updateTimestamp\n graph\n }\n }\n}\n "])));
|
|
260
|
+
export var ListWorkflowsDocument = gql(_templateObject92 || (_templateObject92 = _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 updateTimestamp\n graph\n release\n }\n }\n }\n }\n}\n "])));
|
|
261
|
+
export var GetWorkflowDocument = gql(_templateObject93 || (_templateObject93 = _taggedTemplateLiteral(["\n query getWorkflow($name: String!, $namespace: String!) {\n Workflow {\n getWorkflow(name: $name, namespace: $namespace) {\n id\n creationTimestamp\n name\n namespace\n labels\n annotations\n creator\n displayName\n description\n icon\n status\n updateTimestamp\n graph\n release\n }\n }\n}\n "])));
|
|
262
262
|
export var CreateWorkflowDocument = gql(_templateObject94 || (_templateObject94 = _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 updateTimestamp\n graph\n }\n }\n}\n "])));
|
|
263
263
|
export var UpdateWorkflowDocument = gql(_templateObject95 || (_templateObject95 = _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 updateTimestamp\n graph\n }\n }\n}\n "])));
|
|
264
264
|
export var DeleteWorkflowDocument = gql(_templateObject96 || (_templateObject96 = _taggedTemplateLiteral(["\n mutation deleteWorkflow($input: DeleteCommonInput!) {\n Workflow {\n deleteWorkflow(input: $input)\n }\n}\n "])));
|
|
265
|
+
export var ReleaseWorkflowDocument = gql(_templateObject97 || (_templateObject97 = _taggedTemplateLiteral(["\n mutation releaseWorkflow($input: ReleaseWorkflowInput!) {\n Workflow {\n releaseWorkflow(input: $input)\n }\n}\n "])));
|
|
265
266
|
var defaultWrapper = function defaultWrapper(action, _operationName, _operationType, variables) {
|
|
266
267
|
return action();
|
|
267
268
|
};
|
|
@@ -747,6 +748,11 @@ export function getSdk(client) {
|
|
|
747
748
|
return withWrapper(function (wrappedRequestHeaders) {
|
|
748
749
|
return client.request(DeleteWorkflowDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
749
750
|
}, 'deleteWorkflow', 'mutation', variables);
|
|
751
|
+
},
|
|
752
|
+
releaseWorkflow: function releaseWorkflow(variables, requestHeaders) {
|
|
753
|
+
return withWrapper(function (wrappedRequestHeaders) {
|
|
754
|
+
return client.request(ReleaseWorkflowDocument, variables, _objectSpread(_objectSpread({}, requestHeaders), wrappedRequestHeaders));
|
|
755
|
+
}, 'releaseWorkflow', 'mutation', variables);
|
|
750
756
|
}
|
|
751
757
|
};
|
|
752
758
|
}
|
package/dist/esm/taro.d.ts
CHANGED
|
@@ -353,6 +353,9 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
353
353
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
354
354
|
input: import("./sdk").DeleteCommonInput;
|
|
355
355
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
356
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
357
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
358
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
356
359
|
};
|
|
357
360
|
/**
|
|
358
361
|
* 初始化 sdk 实例 (包含 hooks)
|
|
@@ -851,6 +854,9 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
851
854
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
852
855
|
input: import("./sdk").DeleteCommonInput;
|
|
853
856
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
857
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
858
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
859
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
854
860
|
};
|
|
855
861
|
/**
|
|
856
862
|
* hook 的方式获取 sdk 实例
|
|
@@ -1349,4 +1355,7 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1349
1355
|
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1350
1356
|
input: import("./sdk").DeleteCommonInput;
|
|
1351
1357
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1358
|
+
releaseWorkflow(variables: import("./sdk").Exact<{
|
|
1359
|
+
input: import("./sdk").ReleaseWorkflowInput;
|
|
1360
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ReleaseWorkflowMutation>;
|
|
1352
1361
|
};
|