@yuntijs/arcadia-bff-sdk 1.2.36 → 1.2.37
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 +85 -0
- package/dist/cjs/sdk.d.ts +343 -1
- package/dist/cjs/sdk.js +129 -0
- package/dist/cjs/taro.d.ts +62 -0
- package/dist/esm/index.d.ts +85 -0
- package/dist/esm/sdk.d.ts +343 -1
- package/dist/esm/sdk.js +43 -1
- package/dist/esm/taro.d.ts +62 -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/sdk.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(sdk_exports, {
|
|
|
48
48
|
CreateRerankerDocument: () => CreateRerankerDocument,
|
|
49
49
|
CreateVersionedDatasetDocument: () => CreateVersionedDatasetDocument,
|
|
50
50
|
CreateWorkerDocument: () => CreateWorkerDocument,
|
|
51
|
+
CreateWorkflowDocument: () => CreateWorkflowDocument,
|
|
51
52
|
DataProcessDetailsDocument: () => DataProcessDetailsDocument,
|
|
52
53
|
DataProcessLogInfoByFileNameDocument: () => DataProcessLogInfoByFileNameDocument,
|
|
53
54
|
DataProcessRetryDocument: () => DataProcessRetryDocument,
|
|
@@ -66,6 +67,7 @@ __export(sdk_exports, {
|
|
|
66
67
|
DeleteRerankersDocument: () => DeleteRerankersDocument,
|
|
67
68
|
DeleteVersionedDatasetsDocument: () => DeleteVersionedDatasetsDocument,
|
|
68
69
|
DeleteWorkersDocument: () => DeleteWorkersDocument,
|
|
70
|
+
DeleteWorkflowDocument: () => DeleteWorkflowDocument,
|
|
69
71
|
GetAgentDocument: () => GetAgentDocument,
|
|
70
72
|
GetAgentLatestReleaseInEachPlatformDocument: () => GetAgentLatestReleaseInEachPlatformDocument,
|
|
71
73
|
GetAgentReleaseHistoryDocument: () => GetAgentReleaseHistoryDocument,
|
|
@@ -84,6 +86,7 @@ __export(sdk_exports, {
|
|
|
84
86
|
GetRerankerDocument: () => GetRerankerDocument,
|
|
85
87
|
GetVersionedDatasetDocument: () => GetVersionedDatasetDocument,
|
|
86
88
|
GetWorkerDocument: () => GetWorkerDocument,
|
|
89
|
+
GetWorkflowDocument: () => GetWorkflowDocument,
|
|
87
90
|
ListAgentPromptDocument: () => ListAgentPromptDocument,
|
|
88
91
|
ListAgentsDocument: () => ListAgentsDocument,
|
|
89
92
|
ListDatasetsDocument: () => ListDatasetsDocument,
|
|
@@ -102,6 +105,7 @@ __export(sdk_exports, {
|
|
|
102
105
|
ListRerankersDocument: () => ListRerankersDocument,
|
|
103
106
|
ListVersionedDatasetsDocument: () => ListVersionedDatasetsDocument,
|
|
104
107
|
ListWorkersDocument: () => ListWorkersDocument,
|
|
108
|
+
ListWorkflowsDocument: () => ListWorkflowsDocument,
|
|
105
109
|
ReleaseAgentDocument: () => ReleaseAgentDocument,
|
|
106
110
|
UpdateAgentDocument: () => UpdateAgentDocument,
|
|
107
111
|
UpdateAgentKnowledgeBaseDocument: () => UpdateAgentKnowledgeBaseDocument,
|
|
@@ -119,6 +123,7 @@ __export(sdk_exports, {
|
|
|
119
123
|
UpdateRerankerDocument: () => UpdateRerankerDocument,
|
|
120
124
|
UpdateVersionedDatasetDocument: () => UpdateVersionedDatasetDocument,
|
|
121
125
|
UpdateWorkerDocument: () => UpdateWorkerDocument,
|
|
126
|
+
UpdateWorkflowDocument: () => UpdateWorkflowDocument,
|
|
122
127
|
getSdk: () => getSdk,
|
|
123
128
|
getSdkWithHooks: () => getSdkWithHooks
|
|
124
129
|
});
|
|
@@ -2495,6 +2500,104 @@ var DeleteWorkersDocument = import_graphql_tag.default`
|
|
|
2495
2500
|
}
|
|
2496
2501
|
}
|
|
2497
2502
|
`;
|
|
2503
|
+
var ListWorkflowsDocument = import_graphql_tag.default`
|
|
2504
|
+
query listWorkflows($input: ListCommonInput!) {
|
|
2505
|
+
Workflow {
|
|
2506
|
+
listWorkflows(input: $input) {
|
|
2507
|
+
totalCount
|
|
2508
|
+
hasNextPage
|
|
2509
|
+
nodes {
|
|
2510
|
+
__typename
|
|
2511
|
+
... on Workflow {
|
|
2512
|
+
id
|
|
2513
|
+
creationTimestamp
|
|
2514
|
+
name
|
|
2515
|
+
namespace
|
|
2516
|
+
labels
|
|
2517
|
+
annotations
|
|
2518
|
+
creator
|
|
2519
|
+
displayName
|
|
2520
|
+
description
|
|
2521
|
+
icon
|
|
2522
|
+
status
|
|
2523
|
+
updateTimestamp
|
|
2524
|
+
graph
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
`;
|
|
2531
|
+
var GetWorkflowDocument = import_graphql_tag.default`
|
|
2532
|
+
query getWorkflow($name: String!, $namespace: String!) {
|
|
2533
|
+
Workflow {
|
|
2534
|
+
getWorkflow(name: $name, namespace: $namespace) {
|
|
2535
|
+
id
|
|
2536
|
+
creationTimestamp
|
|
2537
|
+
name
|
|
2538
|
+
namespace
|
|
2539
|
+
labels
|
|
2540
|
+
annotations
|
|
2541
|
+
creator
|
|
2542
|
+
displayName
|
|
2543
|
+
description
|
|
2544
|
+
icon
|
|
2545
|
+
status
|
|
2546
|
+
updateTimestamp
|
|
2547
|
+
graph
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
`;
|
|
2552
|
+
var CreateWorkflowDocument = import_graphql_tag.default`
|
|
2553
|
+
mutation createWorkflow($input: CreateWorkflowInput!) {
|
|
2554
|
+
Workflow {
|
|
2555
|
+
createWorkflow(input: $input) {
|
|
2556
|
+
id
|
|
2557
|
+
creationTimestamp
|
|
2558
|
+
name
|
|
2559
|
+
namespace
|
|
2560
|
+
labels
|
|
2561
|
+
annotations
|
|
2562
|
+
creator
|
|
2563
|
+
displayName
|
|
2564
|
+
description
|
|
2565
|
+
icon
|
|
2566
|
+
status
|
|
2567
|
+
updateTimestamp
|
|
2568
|
+
graph
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
`;
|
|
2573
|
+
var UpdateWorkflowDocument = import_graphql_tag.default`
|
|
2574
|
+
mutation updateWorkflow($input: UpdateWorkflowInput!) {
|
|
2575
|
+
Workflow {
|
|
2576
|
+
updateWorkflow(input: $input) {
|
|
2577
|
+
id
|
|
2578
|
+
creationTimestamp
|
|
2579
|
+
name
|
|
2580
|
+
namespace
|
|
2581
|
+
labels
|
|
2582
|
+
annotations
|
|
2583
|
+
creator
|
|
2584
|
+
displayName
|
|
2585
|
+
description
|
|
2586
|
+
icon
|
|
2587
|
+
status
|
|
2588
|
+
updateTimestamp
|
|
2589
|
+
graph
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
`;
|
|
2594
|
+
var DeleteWorkflowDocument = import_graphql_tag.default`
|
|
2595
|
+
mutation deleteWorkflow($input: DeleteCommonInput!) {
|
|
2596
|
+
Workflow {
|
|
2597
|
+
deleteWorkflow(input: $input)
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
`;
|
|
2498
2601
|
var defaultWrapper = (action, _operationName, _operationType, variables) => action();
|
|
2499
2602
|
function getSdk(client, withWrapper = defaultWrapper) {
|
|
2500
2603
|
return {
|
|
@@ -2767,6 +2870,21 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2767
2870
|
},
|
|
2768
2871
|
deleteWorkers(variables, requestHeaders) {
|
|
2769
2872
|
return withWrapper((wrappedRequestHeaders) => client.request(DeleteWorkersDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "deleteWorkers", "mutation", variables);
|
|
2873
|
+
},
|
|
2874
|
+
listWorkflows(variables, requestHeaders) {
|
|
2875
|
+
return withWrapper((wrappedRequestHeaders) => client.request(ListWorkflowsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "listWorkflows", "query", variables);
|
|
2876
|
+
},
|
|
2877
|
+
getWorkflow(variables, requestHeaders) {
|
|
2878
|
+
return withWrapper((wrappedRequestHeaders) => client.request(GetWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getWorkflow", "query", variables);
|
|
2879
|
+
},
|
|
2880
|
+
createWorkflow(variables, requestHeaders) {
|
|
2881
|
+
return withWrapper((wrappedRequestHeaders) => client.request(CreateWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "createWorkflow", "mutation", variables);
|
|
2882
|
+
},
|
|
2883
|
+
updateWorkflow(variables, requestHeaders) {
|
|
2884
|
+
return withWrapper((wrappedRequestHeaders) => client.request(UpdateWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateWorkflow", "mutation", variables);
|
|
2885
|
+
},
|
|
2886
|
+
deleteWorkflow(variables, requestHeaders) {
|
|
2887
|
+
return withWrapper((wrappedRequestHeaders) => client.request(DeleteWorkflowDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "deleteWorkflow", "mutation", variables);
|
|
2770
2888
|
}
|
|
2771
2889
|
};
|
|
2772
2890
|
}
|
|
@@ -2909,6 +3027,12 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
2909
3027
|
},
|
|
2910
3028
|
useGetWorker(variables, config) {
|
|
2911
3029
|
return (0, import_useSWR.default)(genKey("GetWorker", variables), () => sdk.getWorker(variables), config);
|
|
3030
|
+
},
|
|
3031
|
+
useListWorkflows(variables, config) {
|
|
3032
|
+
return (0, import_useSWR.default)(genKey("ListWorkflows", variables), () => sdk.listWorkflows(variables), config);
|
|
3033
|
+
},
|
|
3034
|
+
useGetWorkflow(variables, config) {
|
|
3035
|
+
return (0, import_useSWR.default)(genKey("GetWorkflow", variables), () => sdk.getWorkflow(variables), config);
|
|
2912
3036
|
}
|
|
2913
3037
|
};
|
|
2914
3038
|
}
|
|
@@ -2933,6 +3057,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
2933
3057
|
CreateRerankerDocument,
|
|
2934
3058
|
CreateVersionedDatasetDocument,
|
|
2935
3059
|
CreateWorkerDocument,
|
|
3060
|
+
CreateWorkflowDocument,
|
|
2936
3061
|
DataProcessDetailsDocument,
|
|
2937
3062
|
DataProcessLogInfoByFileNameDocument,
|
|
2938
3063
|
DataProcessRetryDocument,
|
|
@@ -2951,6 +3076,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
2951
3076
|
DeleteRerankersDocument,
|
|
2952
3077
|
DeleteVersionedDatasetsDocument,
|
|
2953
3078
|
DeleteWorkersDocument,
|
|
3079
|
+
DeleteWorkflowDocument,
|
|
2954
3080
|
GetAgentDocument,
|
|
2955
3081
|
GetAgentLatestReleaseInEachPlatformDocument,
|
|
2956
3082
|
GetAgentReleaseHistoryDocument,
|
|
@@ -2969,6 +3095,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
2969
3095
|
GetRerankerDocument,
|
|
2970
3096
|
GetVersionedDatasetDocument,
|
|
2971
3097
|
GetWorkerDocument,
|
|
3098
|
+
GetWorkflowDocument,
|
|
2972
3099
|
ListAgentPromptDocument,
|
|
2973
3100
|
ListAgentsDocument,
|
|
2974
3101
|
ListDatasetsDocument,
|
|
@@ -2987,6 +3114,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
2987
3114
|
ListRerankersDocument,
|
|
2988
3115
|
ListVersionedDatasetsDocument,
|
|
2989
3116
|
ListWorkersDocument,
|
|
3117
|
+
ListWorkflowsDocument,
|
|
2990
3118
|
ReleaseAgentDocument,
|
|
2991
3119
|
UpdateAgentDocument,
|
|
2992
3120
|
UpdateAgentKnowledgeBaseDocument,
|
|
@@ -3004,6 +3132,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
3004
3132
|
UpdateRerankerDocument,
|
|
3005
3133
|
UpdateVersionedDatasetDocument,
|
|
3006
3134
|
UpdateWorkerDocument,
|
|
3135
|
+
UpdateWorkflowDocument,
|
|
3007
3136
|
getSdk,
|
|
3008
3137
|
getSdkWithHooks
|
|
3009
3138
|
});
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -334,6 +334,22 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
334
334
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
335
335
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
336
336
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
337
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
338
|
+
input: import("./sdk").ListCommonInput;
|
|
339
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
340
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
341
|
+
name: string;
|
|
342
|
+
namespace: string;
|
|
343
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
344
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
345
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
346
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
347
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
348
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
349
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
350
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
351
|
+
input: import("./sdk").DeleteCommonInput;
|
|
352
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
337
353
|
};
|
|
338
354
|
/**
|
|
339
355
|
* 初始化 sdk 实例 (包含 hooks)
|
|
@@ -504,6 +520,13 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
504
520
|
name: string;
|
|
505
521
|
namespace: string;
|
|
506
522
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError>;
|
|
523
|
+
useListWorkflows(variables: import("./sdk").Exact<{
|
|
524
|
+
input: import("./sdk").ListCommonInput;
|
|
525
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError>;
|
|
526
|
+
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
527
|
+
name: string;
|
|
528
|
+
namespace: string;
|
|
529
|
+
}>, 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>;
|
|
507
530
|
createAgent(variables: import("./sdk").Exact<{
|
|
508
531
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
509
532
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateAgentMutation>;
|
|
@@ -806,6 +829,22 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
806
829
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
807
830
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
808
831
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
832
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
833
|
+
input: import("./sdk").ListCommonInput;
|
|
834
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
835
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
836
|
+
name: string;
|
|
837
|
+
namespace: string;
|
|
838
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
839
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
840
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
841
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
842
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
843
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
844
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
845
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
846
|
+
input: import("./sdk").DeleteCommonInput;
|
|
847
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
809
848
|
};
|
|
810
849
|
/**
|
|
811
850
|
* hook 的方式获取 sdk 实例
|
|
@@ -976,6 +1015,13 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
976
1015
|
name: string;
|
|
977
1016
|
namespace: string;
|
|
978
1017
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError>;
|
|
1018
|
+
useListWorkflows(variables: import("./sdk").Exact<{
|
|
1019
|
+
input: import("./sdk").ListCommonInput;
|
|
1020
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError>;
|
|
1021
|
+
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1022
|
+
name: string;
|
|
1023
|
+
namespace: string;
|
|
1024
|
+
}>, 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>;
|
|
979
1025
|
createAgent(variables: import("./sdk").Exact<{
|
|
980
1026
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
981
1027
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateAgentMutation>;
|
|
@@ -1278,4 +1324,20 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1278
1324
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
1279
1325
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
1280
1326
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
1327
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
1328
|
+
input: import("./sdk").ListCommonInput;
|
|
1329
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
1330
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
1331
|
+
name: string;
|
|
1332
|
+
namespace: string;
|
|
1333
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1334
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
1335
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
1336
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
1337
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
1338
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
1339
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
1340
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1341
|
+
input: import("./sdk").DeleteCommonInput;
|
|
1342
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1281
1343
|
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -174,6 +174,13 @@ export declare const sdk: {
|
|
|
174
174
|
name: string;
|
|
175
175
|
namespace: string;
|
|
176
176
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError>;
|
|
177
|
+
useListWorkflows(variables: import("./sdk").Exact<{
|
|
178
|
+
input: import("./sdk").ListCommonInput;
|
|
179
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError>;
|
|
180
|
+
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
181
|
+
name: string;
|
|
182
|
+
namespace: string;
|
|
183
|
+
}>, 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>;
|
|
177
184
|
createAgent(variables: import("./sdk").Exact<{
|
|
178
185
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
179
186
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateAgentMutation>;
|
|
@@ -476,6 +483,22 @@ export declare const sdk: {
|
|
|
476
483
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
477
484
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
478
485
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
486
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
487
|
+
input: import("./sdk").ListCommonInput;
|
|
488
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
489
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
490
|
+
name: string;
|
|
491
|
+
namespace: string;
|
|
492
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
493
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
494
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
495
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
496
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
497
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
498
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
499
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
500
|
+
input: import("./sdk").DeleteCommonInput;
|
|
501
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
479
502
|
};
|
|
480
503
|
/** 初始化 sdk 的配置项 */
|
|
481
504
|
export interface SdkBaseOptions {
|
|
@@ -803,6 +826,22 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
803
826
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
804
827
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
805
828
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
829
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
830
|
+
input: import("./sdk").ListCommonInput;
|
|
831
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
832
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
833
|
+
name: string;
|
|
834
|
+
namespace: string;
|
|
835
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
836
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
837
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
838
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
839
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
840
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
841
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
842
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
843
|
+
input: import("./sdk").DeleteCommonInput;
|
|
844
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
806
845
|
};
|
|
807
846
|
/**
|
|
808
847
|
* 初始化 sdk 实例 (包含 hooks)
|
|
@@ -973,6 +1012,13 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
973
1012
|
name: string;
|
|
974
1013
|
namespace: string;
|
|
975
1014
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError>;
|
|
1015
|
+
useListWorkflows(variables: import("./sdk").Exact<{
|
|
1016
|
+
input: import("./sdk").ListCommonInput;
|
|
1017
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError>;
|
|
1018
|
+
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1019
|
+
name: string;
|
|
1020
|
+
namespace: string;
|
|
1021
|
+
}>, 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>;
|
|
976
1022
|
createAgent(variables: import("./sdk").Exact<{
|
|
977
1023
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
978
1024
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateAgentMutation>;
|
|
@@ -1275,6 +1321,22 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1275
1321
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
1276
1322
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
1277
1323
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
1324
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
1325
|
+
input: import("./sdk").ListCommonInput;
|
|
1326
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
1327
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
1328
|
+
name: string;
|
|
1329
|
+
namespace: string;
|
|
1330
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1331
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
1332
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
1333
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
1334
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
1335
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
1336
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
1337
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1338
|
+
input: import("./sdk").DeleteCommonInput;
|
|
1339
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1278
1340
|
};
|
|
1279
1341
|
/**
|
|
1280
1342
|
* hook 的方式获取 sdk 实例
|
|
@@ -1445,6 +1507,13 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1445
1507
|
name: string;
|
|
1446
1508
|
namespace: string;
|
|
1447
1509
|
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").GetWorkerQuery, import("graphql-request/src/types").ClientError>;
|
|
1510
|
+
useListWorkflows(variables: import("./sdk").Exact<{
|
|
1511
|
+
input: import("./sdk").ListCommonInput;
|
|
1512
|
+
}>, config?: Partial<import("swr/_internal").PublicConfiguration<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError, import("swr/_internal").BareFetcher<any>>> | undefined): import("./useSWR").SWRResponsePro<import("./sdk").ListWorkflowsQuery, import("graphql-request/src/types").ClientError>;
|
|
1513
|
+
useGetWorkflow(variables: import("./sdk").Exact<{
|
|
1514
|
+
name: string;
|
|
1515
|
+
namespace: string;
|
|
1516
|
+
}>, 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>;
|
|
1448
1517
|
createAgent(variables: import("./sdk").Exact<{
|
|
1449
1518
|
input: import("./sdk").CreateAgentMetadataInput;
|
|
1450
1519
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateAgentMutation>;
|
|
@@ -1747,4 +1816,20 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1747
1816
|
deleteWorkers(variables?: import("./sdk").Exact<{
|
|
1748
1817
|
input?: import("./sdk").InputMaybe<import("./sdk").DeleteCommonInput> | undefined;
|
|
1749
1818
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkersMutation>;
|
|
1819
|
+
listWorkflows(variables: import("./sdk").Exact<{
|
|
1820
|
+
input: import("./sdk").ListCommonInput;
|
|
1821
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").ListWorkflowsQuery>;
|
|
1822
|
+
getWorkflow(variables: import("./sdk").Exact<{
|
|
1823
|
+
name: string;
|
|
1824
|
+
namespace: string;
|
|
1825
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").GetWorkflowQuery>;
|
|
1826
|
+
createWorkflow(variables: import("./sdk").Exact<{
|
|
1827
|
+
input: import("./sdk").CreateWorkflowInput;
|
|
1828
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").CreateWorkflowMutation>;
|
|
1829
|
+
updateWorkflow(variables: import("./sdk").Exact<{
|
|
1830
|
+
input: import("./sdk").UpdateWorkflowInput;
|
|
1831
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateWorkflowMutation>;
|
|
1832
|
+
deleteWorkflow(variables: import("./sdk").Exact<{
|
|
1833
|
+
input: import("./sdk").DeleteCommonInput;
|
|
1834
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteWorkflowMutation>;
|
|
1750
1835
|
};
|