@flowdot.ai/mcp-server 1.0.0 → 1.0.2
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/LICENSE +21 -0
- package/README.md +162 -162
- package/bin/flowdot-mcp.js +15 -15
- package/dist/api-client.d.ts +2 -344
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +2 -784
- package/dist/api-client.js.map +1 -1
- package/dist/resources/index.d.ts +12 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +2204 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +19 -10
- package/dist/server.js.map +1 -1
- package/dist/tools/add-recipe-step.d.ts +23 -0
- package/dist/tools/add-recipe-step.d.ts.map +1 -0
- package/dist/tools/add-recipe-step.js +196 -0
- package/dist/tools/add-recipe-step.js.map +1 -0
- package/dist/tools/add-recipe-store.d.ts +19 -0
- package/dist/tools/add-recipe-store.d.ts.map +1 -0
- package/dist/tools/add-recipe-store.js +116 -0
- package/dist/tools/add-recipe-store.js.map +1 -0
- package/dist/tools/agent-toolkits.d.ts +57 -0
- package/dist/tools/agent-toolkits.d.ts.map +1 -0
- package/dist/tools/agent-toolkits.js +1712 -0
- package/dist/tools/agent-toolkits.js.map +1 -0
- package/dist/tools/append-app-code.d.ts +12 -0
- package/dist/tools/append-app-code.d.ts.map +1 -0
- package/dist/tools/append-app-code.js +83 -0
- package/dist/tools/append-app-code.js.map +1 -0
- package/dist/tools/browse-recipes.d.ts +16 -0
- package/dist/tools/browse-recipes.d.ts.map +1 -0
- package/dist/tools/browse-recipes.js +102 -0
- package/dist/tools/browse-recipes.js.map +1 -0
- package/dist/tools/clone-app.js +20 -20
- package/dist/tools/create-app-file.d.ts +11 -0
- package/dist/tools/create-app-file.d.ts.map +1 -0
- package/dist/tools/create-app-file.js +83 -0
- package/dist/tools/create-app-file.js.map +1 -0
- package/dist/tools/create-app.d.ts.map +1 -1
- package/dist/tools/create-app.js +47 -29
- package/dist/tools/create-app.js.map +1 -1
- package/dist/tools/create-knowledge-category.d.ts +16 -0
- package/dist/tools/create-knowledge-category.d.ts.map +1 -0
- package/dist/tools/create-knowledge-category.js +71 -0
- package/dist/tools/create-knowledge-category.js.map +1 -0
- package/dist/tools/create-recipe.d.ts +16 -0
- package/dist/tools/create-recipe.d.ts.map +1 -0
- package/dist/tools/create-recipe.js +92 -0
- package/dist/tools/create-recipe.js.map +1 -0
- package/dist/tools/delete-app-file.d.ts +11 -0
- package/dist/tools/delete-app-file.d.ts.map +1 -0
- package/dist/tools/delete-app-file.js +52 -0
- package/dist/tools/delete-app-file.js.map +1 -0
- package/dist/tools/delete-app.js +3 -3
- package/dist/tools/delete-knowledge-category.d.ts +12 -0
- package/dist/tools/delete-knowledge-category.d.ts.map +1 -0
- package/dist/tools/delete-knowledge-category.js +40 -0
- package/dist/tools/delete-knowledge-category.js.map +1 -0
- package/dist/tools/delete-knowledge-document.d.ts +12 -0
- package/dist/tools/delete-knowledge-document.d.ts.map +1 -0
- package/dist/tools/delete-knowledge-document.js +40 -0
- package/dist/tools/delete-knowledge-document.js.map +1 -0
- package/dist/tools/delete-recipe-step.d.ts +14 -0
- package/dist/tools/delete-recipe-step.d.ts.map +1 -0
- package/dist/tools/delete-recipe-step.js +65 -0
- package/dist/tools/delete-recipe-step.js.map +1 -0
- package/dist/tools/delete-recipe-store.d.ts +14 -0
- package/dist/tools/delete-recipe-store.d.ts.map +1 -0
- package/dist/tools/delete-recipe-store.js +65 -0
- package/dist/tools/delete-recipe-store.js.map +1 -0
- package/dist/tools/delete-recipe.d.ts +13 -0
- package/dist/tools/delete-recipe.d.ts.map +1 -0
- package/dist/tools/delete-recipe.js +59 -0
- package/dist/tools/delete-recipe.js.map +1 -0
- package/dist/tools/edit-app-code.d.ts +12 -0
- package/dist/tools/edit-app-code.d.ts.map +1 -0
- package/dist/tools/edit-app-code.js +110 -0
- package/dist/tools/edit-app-code.js.map +1 -0
- package/dist/tools/favorite-recipe.d.ts +13 -0
- package/dist/tools/favorite-recipe.d.ts.map +1 -0
- package/dist/tools/favorite-recipe.js +53 -0
- package/dist/tools/favorite-recipe.js.map +1 -0
- package/dist/tools/fork-recipe.d.ts +13 -0
- package/dist/tools/fork-recipe.d.ts.map +1 -0
- package/dist/tools/fork-recipe.js +56 -0
- package/dist/tools/fork-recipe.js.map +1 -0
- package/dist/tools/get-app-file.d.ts +11 -0
- package/dist/tools/get-app-file.d.ts.map +1 -0
- package/dist/tools/get-app-file.js +76 -0
- package/dist/tools/get-app-file.js.map +1 -0
- package/dist/tools/get-app-template.d.ts.map +1 -1
- package/dist/tools/get-app-template.js +65 -21
- package/dist/tools/get-app-template.js.map +1 -1
- package/dist/tools/get-app.js +54 -54
- package/dist/tools/get-knowledge-document.d.ts +12 -0
- package/dist/tools/get-knowledge-document.d.ts.map +1 -0
- package/dist/tools/get-knowledge-document.js +71 -0
- package/dist/tools/get-knowledge-document.js.map +1 -0
- package/dist/tools/get-knowledge-storage.d.ts +10 -0
- package/dist/tools/get-knowledge-storage.d.ts.map +1 -0
- package/dist/tools/get-knowledge-storage.js +54 -0
- package/dist/tools/get-knowledge-storage.js.map +1 -0
- package/dist/tools/get-recipe-definition.d.ts +15 -0
- package/dist/tools/get-recipe-definition.d.ts.map +1 -0
- package/dist/tools/get-recipe-definition.js +70 -0
- package/dist/tools/get-recipe-definition.js.map +1 -0
- package/dist/tools/get-recipe.d.ts +12 -0
- package/dist/tools/get-recipe.d.ts.map +1 -0
- package/dist/tools/get-recipe.js +88 -0
- package/dist/tools/get-recipe.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +301 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/insert-app-code.d.ts +12 -0
- package/dist/tools/insert-app-code.d.ts.map +1 -0
- package/dist/tools/insert-app-code.js +97 -0
- package/dist/tools/insert-app-code.js.map +1 -0
- package/dist/tools/link-app-workflow.js +21 -21
- package/dist/tools/link-recipe.d.ts +14 -0
- package/dist/tools/link-recipe.d.ts.map +1 -0
- package/dist/tools/link-recipe.js +76 -0
- package/dist/tools/link-recipe.js.map +1 -0
- package/dist/tools/list-app-files.d.ts +11 -0
- package/dist/tools/list-app-files.d.ts.map +1 -0
- package/dist/tools/list-app-files.js +84 -0
- package/dist/tools/list-app-files.js.map +1 -0
- package/dist/tools/list-apps.js +8 -8
- package/dist/tools/list-knowledge-categories.d.ts +14 -0
- package/dist/tools/list-knowledge-categories.d.ts.map +1 -0
- package/dist/tools/list-knowledge-categories.js +107 -0
- package/dist/tools/list-knowledge-categories.js.map +1 -0
- package/dist/tools/list-knowledge-documents.d.ts +15 -0
- package/dist/tools/list-knowledge-documents.d.ts.map +1 -0
- package/dist/tools/list-knowledge-documents.js +129 -0
- package/dist/tools/list-knowledge-documents.js.map +1 -0
- package/dist/tools/list-recipe-steps.d.ts +12 -0
- package/dist/tools/list-recipe-steps.d.ts.map +1 -0
- package/dist/tools/list-recipe-steps.js +69 -0
- package/dist/tools/list-recipe-steps.js.map +1 -0
- package/dist/tools/list-recipe-stores.d.ts +12 -0
- package/dist/tools/list-recipe-stores.d.ts.map +1 -0
- package/dist/tools/list-recipe-stores.js +87 -0
- package/dist/tools/list-recipe-stores.js.map +1 -0
- package/dist/tools/list-recipes.d.ts +12 -0
- package/dist/tools/list-recipes.d.ts.map +1 -0
- package/dist/tools/list-recipes.js +92 -0
- package/dist/tools/list-recipes.js.map +1 -0
- package/dist/tools/list-user-teams.d.ts +11 -0
- package/dist/tools/list-user-teams.d.ts.map +1 -0
- package/dist/tools/list-user-teams.js +56 -0
- package/dist/tools/list-user-teams.js.map +1 -0
- package/dist/tools/move-document-to-category.d.ts +13 -0
- package/dist/tools/move-document-to-category.d.ts.map +1 -0
- package/dist/tools/move-document-to-category.js +42 -0
- package/dist/tools/move-document-to-category.js.map +1 -0
- package/dist/tools/prepend-app-code.d.ts +12 -0
- package/dist/tools/prepend-app-code.d.ts.map +1 -0
- package/dist/tools/prepend-app-code.js +79 -0
- package/dist/tools/prepend-app-code.js.map +1 -0
- package/dist/tools/publish-app.js +7 -7
- package/dist/tools/query-knowledge-base.d.ts +18 -0
- package/dist/tools/query-knowledge-base.d.ts.map +1 -0
- package/dist/tools/query-knowledge-base.js +144 -0
- package/dist/tools/query-knowledge-base.js.map +1 -0
- package/dist/tools/rename-app-file.d.ts +11 -0
- package/dist/tools/rename-app-file.d.ts.map +1 -0
- package/dist/tools/rename-app-file.js +64 -0
- package/dist/tools/rename-app-file.js.map +1 -0
- package/dist/tools/reprocess-document.d.ts +12 -0
- package/dist/tools/reprocess-document.d.ts.map +1 -0
- package/dist/tools/reprocess-document.js +40 -0
- package/dist/tools/reprocess-document.js.map +1 -0
- package/dist/tools/search-apps.js +13 -13
- package/dist/tools/search.d.ts +14 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/tools/search.js +86 -0
- package/dist/tools/search.js.map +1 -0
- package/dist/tools/set-app-entry-file.d.ts +11 -0
- package/dist/tools/set-app-entry-file.d.ts.map +1 -0
- package/dist/tools/set-app-entry-file.js +56 -0
- package/dist/tools/set-app-entry-file.js.map +1 -0
- package/dist/tools/transfer-document-ownership.d.ts +15 -0
- package/dist/tools/transfer-document-ownership.d.ts.map +1 -0
- package/dist/tools/transfer-document-ownership.js +66 -0
- package/dist/tools/transfer-document-ownership.js.map +1 -0
- package/dist/tools/unlink-app-workflow.js +2 -2
- package/dist/tools/unpublish-app.js +2 -2
- package/dist/tools/update-app-file.d.ts +11 -0
- package/dist/tools/update-app-file.d.ts.map +1 -0
- package/dist/tools/update-app-file.js +73 -0
- package/dist/tools/update-app-file.js.map +1 -0
- package/dist/tools/update-app.d.ts.map +1 -1
- package/dist/tools/update-app.js +8 -1
- package/dist/tools/update-app.js.map +1 -1
- package/dist/tools/update-knowledge-category.d.ts +15 -0
- package/dist/tools/update-knowledge-category.d.ts.map +1 -0
- package/dist/tools/update-knowledge-category.js +74 -0
- package/dist/tools/update-knowledge-category.js.map +1 -0
- package/dist/tools/update-recipe-step.d.ts +22 -0
- package/dist/tools/update-recipe-step.d.ts.map +1 -0
- package/dist/tools/update-recipe-step.js +97 -0
- package/dist/tools/update-recipe-step.js.map +1 -0
- package/dist/tools/update-recipe-store.d.ts +20 -0
- package/dist/tools/update-recipe-store.d.ts.map +1 -0
- package/dist/tools/update-recipe-store.js +98 -0
- package/dist/tools/update-recipe-store.js.map +1 -0
- package/dist/tools/update-recipe.d.ts +18 -0
- package/dist/tools/update-recipe.d.ts.map +1 -0
- package/dist/tools/update-recipe.js +98 -0
- package/dist/tools/update-recipe.js.map +1 -0
- package/dist/tools/upload-document-from-url.d.ts +16 -0
- package/dist/tools/upload-document-from-url.d.ts.map +1 -0
- package/dist/tools/upload-document-from-url.js +73 -0
- package/dist/tools/upload-document-from-url.js.map +1 -0
- package/dist/tools/upload-text-document.d.ts +17 -0
- package/dist/tools/upload-text-document.d.ts.map +1 -0
- package/dist/tools/upload-text-document.js +77 -0
- package/dist/tools/upload-text-document.js.map +1 -0
- package/dist/tools/vote-recipe.d.ts +13 -0
- package/dist/tools/vote-recipe.d.ts.map +1 -0
- package/dist/tools/vote-recipe.js +54 -0
- package/dist/tools/vote-recipe.js.map +1 -0
- package/dist/types.d.ts +3 -666
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/script-validator.d.ts.map +1 -1
- package/dist/utils/script-validator.js +5 -1
- package/dist/utils/script-validator.js.map +1 -1
- package/package.json +62 -54
package/dist/api-client.d.ts
CHANGED
|
@@ -1,349 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FlowDot Hub API Client
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Re-exported from @flowdot.ai/api shared package.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
export declare class FlowDotApiClient {
|
|
8
|
-
private hubUrl;
|
|
9
|
-
private apiToken;
|
|
10
|
-
constructor(hubUrl: string, apiToken: string);
|
|
11
|
-
/**
|
|
12
|
-
* Make an authenticated request to the FlowDot Hub API.
|
|
13
|
-
*/
|
|
14
|
-
private request;
|
|
15
|
-
/**
|
|
16
|
-
* List workflows available to the user.
|
|
17
|
-
*/
|
|
18
|
-
listWorkflows(filter?: string, favoritesOnly?: boolean): Promise<Workflow[]>;
|
|
19
|
-
/**
|
|
20
|
-
* Get a specific workflow by ID.
|
|
21
|
-
*/
|
|
22
|
-
getWorkflow(workflowId: string): Promise<Workflow>;
|
|
23
|
-
/**
|
|
24
|
-
* Execute a workflow.
|
|
25
|
-
*/
|
|
26
|
-
executeWorkflow(workflowId: string, inputs?: Record<string, unknown>, waitForCompletion?: boolean, mode?: string): Promise<ExecuteWorkflowResult>;
|
|
27
|
-
/**
|
|
28
|
-
* Get execution status and results.
|
|
29
|
-
*/
|
|
30
|
-
getExecution(executionId: string): Promise<Execution>;
|
|
31
|
-
/**
|
|
32
|
-
* Chat with the FlowDot agent.
|
|
33
|
-
*/
|
|
34
|
-
agentChat(message: string, conversationId?: string, mode?: string): Promise<AgentChatResult>;
|
|
35
|
-
/**
|
|
36
|
-
* Test the connection to the FlowDot Hub.
|
|
37
|
-
*/
|
|
38
|
-
testConnection(): Promise<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Get workflow execution metrics.
|
|
41
|
-
*/
|
|
42
|
-
getWorkflowMetrics(workflowId: string, period?: string): Promise<WorkflowMetrics>;
|
|
43
|
-
/**
|
|
44
|
-
* Get workflow comments.
|
|
45
|
-
*/
|
|
46
|
-
getWorkflowComments(workflowId: string): Promise<WorkflowComment[]>;
|
|
47
|
-
/**
|
|
48
|
-
* Get execution history for a workflow.
|
|
49
|
-
*/
|
|
50
|
-
getExecutionHistory(workflowId: string, page?: number, limit?: number): Promise<PaginatedResult<ExecutionHistoryItem>>;
|
|
51
|
-
/**
|
|
52
|
-
* Get detailed workflow information including nodes, connections, signature.
|
|
53
|
-
*/
|
|
54
|
-
getWorkflowDetails(workflowId: string): Promise<WorkflowDetails>;
|
|
55
|
-
/**
|
|
56
|
-
* Get the input schema for a workflow.
|
|
57
|
-
*/
|
|
58
|
-
getWorkflowInputsSchema(workflowId: string): Promise<WorkflowInputSchemaResult>;
|
|
59
|
-
/**
|
|
60
|
-
* Duplicate a workflow.
|
|
61
|
-
*/
|
|
62
|
-
duplicateWorkflow(workflowId: string, name?: string): Promise<CreateWorkflowResult>;
|
|
63
|
-
/**
|
|
64
|
-
* Toggle workflow public/private status.
|
|
65
|
-
*/
|
|
66
|
-
toggleWorkflowPublic(workflowId: string, isPublic: boolean): Promise<SuccessResult>;
|
|
67
|
-
/**
|
|
68
|
-
* Favorite or unfavorite a workflow.
|
|
69
|
-
*/
|
|
70
|
-
favoriteWorkflow(workflowId: string, favorite: boolean): Promise<SuccessResult>;
|
|
71
|
-
/**
|
|
72
|
-
* Cancel a running execution.
|
|
73
|
-
*/
|
|
74
|
-
cancelExecution(executionId: string): Promise<SuccessResult>;
|
|
75
|
-
/**
|
|
76
|
-
* Retry a failed execution.
|
|
77
|
-
*/
|
|
78
|
-
retryExecution(executionId: string): Promise<RetryExecutionResult>;
|
|
79
|
-
/**
|
|
80
|
-
* Get SSE stream URL for execution (client handles actual streaming).
|
|
81
|
-
*/
|
|
82
|
-
getExecutionStreamUrl(executionId: string): string;
|
|
83
|
-
/**
|
|
84
|
-
* Get auth token for SSE requests.
|
|
85
|
-
*/
|
|
86
|
-
getAuthToken(): string;
|
|
87
|
-
/**
|
|
88
|
-
* Get workflow tags.
|
|
89
|
-
*/
|
|
90
|
-
getWorkflowTags(workflowId: string): Promise<{
|
|
91
|
-
workflow_id: string;
|
|
92
|
-
tags: string[];
|
|
93
|
-
}>;
|
|
94
|
-
/**
|
|
95
|
-
* Set workflow tags.
|
|
96
|
-
*/
|
|
97
|
-
setWorkflowTags(workflowId: string, tags: string[]): Promise<SuccessResult>;
|
|
98
|
-
/**
|
|
99
|
-
* Search workflows by name, description, or tags.
|
|
100
|
-
*/
|
|
101
|
-
searchWorkflows(query: string, tags?: string[], page?: number): Promise<PaginatedResult<Workflow>>;
|
|
102
|
-
/**
|
|
103
|
-
* Get public workflows from all users.
|
|
104
|
-
*/
|
|
105
|
-
getPublicWorkflows(page?: number, sortBy?: string): Promise<PaginatedResult<PublicWorkflow>>;
|
|
106
|
-
/**
|
|
107
|
-
* Create a new empty workflow.
|
|
108
|
-
*/
|
|
109
|
-
createWorkflow(name: string, description?: string): Promise<CreateWorkflowResult>;
|
|
110
|
-
/**
|
|
111
|
-
* Delete a workflow.
|
|
112
|
-
*/
|
|
113
|
-
deleteWorkflow(workflowId: string): Promise<SuccessResult>;
|
|
114
|
-
/**
|
|
115
|
-
* Get the full graph (nodes and connections) of a workflow.
|
|
116
|
-
*/
|
|
117
|
-
getWorkflowGraph(workflowId: string): Promise<WorkflowGraph>;
|
|
118
|
-
/**
|
|
119
|
-
* Validate a workflow for errors.
|
|
120
|
-
*/
|
|
121
|
-
validateWorkflow(workflowId: string): Promise<ValidationResult>;
|
|
122
|
-
/**
|
|
123
|
-
* List all available node types.
|
|
124
|
-
* Note: Response may be an array or object depending on the API version.
|
|
125
|
-
*/
|
|
126
|
-
listAvailableNodes(): Promise<NodeTypesResponse>;
|
|
127
|
-
/**
|
|
128
|
-
* Get schema for a specific node type.
|
|
129
|
-
*/
|
|
130
|
-
getNodeSchema(nodeType: string): Promise<NodeType>;
|
|
131
|
-
/**
|
|
132
|
-
* Add a node to a workflow.
|
|
133
|
-
*/
|
|
134
|
-
addNode(workflowId: string, nodeType: string, position: {
|
|
135
|
-
x: number;
|
|
136
|
-
y: number;
|
|
137
|
-
}, properties?: Record<string, unknown>): Promise<AddNodeResult>;
|
|
138
|
-
/**
|
|
139
|
-
* Update a node in a workflow.
|
|
140
|
-
*/
|
|
141
|
-
updateNode(workflowId: string, nodeId: string, updates: {
|
|
142
|
-
position?: {
|
|
143
|
-
x: number;
|
|
144
|
-
y: number;
|
|
145
|
-
};
|
|
146
|
-
properties?: Record<string, unknown>;
|
|
147
|
-
}): Promise<WorkflowNode>;
|
|
148
|
-
/**
|
|
149
|
-
* Delete a node from a workflow.
|
|
150
|
-
*/
|
|
151
|
-
deleteNode(workflowId: string, nodeId: string): Promise<SuccessResult>;
|
|
152
|
-
/**
|
|
153
|
-
* Add a connection between nodes.
|
|
154
|
-
*/
|
|
155
|
-
addConnection(workflowId: string, sourceNodeId: string, sourceSocketId: string, targetNodeId: string, targetSocketId: string): Promise<AddConnectionResult>;
|
|
156
|
-
/**
|
|
157
|
-
* Delete a connection from a workflow.
|
|
158
|
-
*/
|
|
159
|
-
deleteConnection(workflowId: string, connectionId: string): Promise<SuccessResult>;
|
|
160
|
-
/**
|
|
161
|
-
* Get all connections for a specific node.
|
|
162
|
-
*/
|
|
163
|
-
getNodeConnections(workflowId: string, nodeId: string): Promise<WorkflowConnection[]>;
|
|
164
|
-
/**
|
|
165
|
-
* List user's own custom nodes.
|
|
166
|
-
*/
|
|
167
|
-
listCustomNodes(options?: CustomNodeListFilters): Promise<PaginatedResult<CustomNode>>;
|
|
168
|
-
/**
|
|
169
|
-
* Search public custom nodes.
|
|
170
|
-
*/
|
|
171
|
-
searchPublicCustomNodes(filters?: CustomNodeSearchFilters): Promise<PaginatedResult<CustomNode>>;
|
|
172
|
-
/**
|
|
173
|
-
* Get a specific custom node with full details including script_code.
|
|
174
|
-
*/
|
|
175
|
-
getCustomNode(nodeId: string): Promise<CustomNode>;
|
|
176
|
-
/**
|
|
177
|
-
* Get comments for a custom node.
|
|
178
|
-
*/
|
|
179
|
-
getCustomNodeComments(nodeId: string): Promise<CustomNodeComment[]>;
|
|
180
|
-
/**
|
|
181
|
-
* Create a new custom node.
|
|
182
|
-
*/
|
|
183
|
-
createCustomNode(input: CreateCustomNodeInput): Promise<CreateWorkflowResult>;
|
|
184
|
-
/**
|
|
185
|
-
* Update a custom node.
|
|
186
|
-
*/
|
|
187
|
-
updateCustomNode(nodeId: string, updates: UpdateCustomNodeInput): Promise<SuccessResult>;
|
|
188
|
-
/**
|
|
189
|
-
* Delete a custom node.
|
|
190
|
-
*/
|
|
191
|
-
deleteCustomNode(nodeId: string): Promise<SuccessResult>;
|
|
192
|
-
/**
|
|
193
|
-
* Copy a public custom node to user's library.
|
|
194
|
-
*/
|
|
195
|
-
copyCustomNode(nodeId: string, name?: string): Promise<CreateWorkflowResult>;
|
|
196
|
-
/**
|
|
197
|
-
* Toggle custom node visibility.
|
|
198
|
-
*/
|
|
199
|
-
toggleCustomNodeVisibility(nodeId: string, visibility: 'private' | 'public' | 'unlisted'): Promise<SuccessResult>;
|
|
200
|
-
/**
|
|
201
|
-
* Vote on a custom node.
|
|
202
|
-
*/
|
|
203
|
-
voteCustomNode(nodeId: string, vote: 'up' | 'down' | 'remove'): Promise<VoteCustomNodeResult>;
|
|
204
|
-
/**
|
|
205
|
-
* Toggle favorite on a custom node.
|
|
206
|
-
*/
|
|
207
|
-
favoriteCustomNode(nodeId: string, favorite: boolean): Promise<FavoriteCustomNodeResult>;
|
|
208
|
-
/**
|
|
209
|
-
* Add a comment to a custom node.
|
|
210
|
-
*/
|
|
211
|
-
addCustomNodeComment(nodeId: string, content: string, parentId?: number): Promise<CreateCustomNodeCommentResult>;
|
|
212
|
-
/**
|
|
213
|
-
* List user's own apps.
|
|
214
|
-
*/
|
|
215
|
-
listApps(options?: AppListFilters): Promise<PaginatedResult<App>>;
|
|
216
|
-
/**
|
|
217
|
-
* Search public apps.
|
|
218
|
-
*/
|
|
219
|
-
searchPublicApps(filters?: AppSearchFilters): Promise<PaginatedResult<App>>;
|
|
220
|
-
/**
|
|
221
|
-
* Get app categories.
|
|
222
|
-
*/
|
|
223
|
-
getAppCategories(): Promise<string[]>;
|
|
224
|
-
/**
|
|
225
|
-
* Get popular app tags.
|
|
226
|
-
*/
|
|
227
|
-
getAppTags(): Promise<string[]>;
|
|
228
|
-
/**
|
|
229
|
-
* Get a specific app with full details including code.
|
|
230
|
-
*/
|
|
231
|
-
getApp(appId: string): Promise<App>;
|
|
232
|
-
/**
|
|
233
|
-
* Get comments for an app.
|
|
234
|
-
*/
|
|
235
|
-
getAppComments(appId: string): Promise<AppComment[]>;
|
|
236
|
-
/**
|
|
237
|
-
* Create a new app.
|
|
238
|
-
*/
|
|
239
|
-
createApp(input: CreateAppInput): Promise<CreateAppResult>;
|
|
240
|
-
/**
|
|
241
|
-
* Update an app.
|
|
242
|
-
*/
|
|
243
|
-
updateApp(appId: string, updates: UpdateAppInput): Promise<SuccessResult>;
|
|
244
|
-
/**
|
|
245
|
-
* Delete an app.
|
|
246
|
-
*/
|
|
247
|
-
deleteApp(appId: string): Promise<SuccessResult>;
|
|
248
|
-
/**
|
|
249
|
-
* Publish an app (make it public).
|
|
250
|
-
*/
|
|
251
|
-
publishApp(appId: string): Promise<SuccessResult>;
|
|
252
|
-
/**
|
|
253
|
-
* Unpublish an app (make it private).
|
|
254
|
-
*/
|
|
255
|
-
unpublishApp(appId: string): Promise<SuccessResult>;
|
|
256
|
-
/**
|
|
257
|
-
* Clone a public app to user's library.
|
|
258
|
-
*/
|
|
259
|
-
cloneApp(appId: string, name?: string): Promise<CloneAppResult>;
|
|
260
|
-
/**
|
|
261
|
-
* Vote on an app.
|
|
262
|
-
*/
|
|
263
|
-
voteApp(appId: string, vote: 'up' | 'down' | 'remove'): Promise<VoteAppResult>;
|
|
264
|
-
/**
|
|
265
|
-
* Toggle favorite on an app.
|
|
266
|
-
*/
|
|
267
|
-
favoriteApp(appId: string, favorite: boolean): Promise<FavoriteAppResult>;
|
|
268
|
-
/**
|
|
269
|
-
* Add a comment to an app.
|
|
270
|
-
*/
|
|
271
|
-
addAppComment(appId: string, content: string, parentId?: number): Promise<CreateAppCommentResult>;
|
|
272
|
-
/**
|
|
273
|
-
* Get workflows linked to an app.
|
|
274
|
-
*/
|
|
275
|
-
getAppWorkflows(appId: string): Promise<AppWorkflow[]>;
|
|
276
|
-
/**
|
|
277
|
-
* Link a workflow to an app.
|
|
278
|
-
*/
|
|
279
|
-
linkAppWorkflow(appId: string, workflowHash: string, alias?: string): Promise<LinkAppWorkflowResult>;
|
|
280
|
-
/**
|
|
281
|
-
* Unlink a workflow from an app.
|
|
282
|
-
*/
|
|
283
|
-
unlinkAppWorkflow(appId: string, workflowHash: string): Promise<SuccessResult>;
|
|
284
|
-
/**
|
|
285
|
-
* Get the public URL for a workflow.
|
|
286
|
-
*/
|
|
287
|
-
getWorkflowPublicUrl(workflowId: string): Promise<WorkflowPublicUrlResult>;
|
|
288
|
-
/**
|
|
289
|
-
* List shared results for a workflow.
|
|
290
|
-
*/
|
|
291
|
-
listSharedResults(workflowId: string, options?: SharedResultListFilters): Promise<PaginatedResult<SharedResult>>;
|
|
292
|
-
/**
|
|
293
|
-
* Get a specific shared result.
|
|
294
|
-
*/
|
|
295
|
-
getSharedResult(workflowId: string, resultHash: string): Promise<SharedResultDetails>;
|
|
296
|
-
/**
|
|
297
|
-
* Get comments for a shared result.
|
|
298
|
-
*/
|
|
299
|
-
getSharedResultComments(workflowId: string, resultHash: string): Promise<SharedResultComment[]>;
|
|
300
|
-
/**
|
|
301
|
-
* Create a shared result from an execution.
|
|
302
|
-
*/
|
|
303
|
-
createSharedResult(workflowId: string, input: CreateSharedResultInput): Promise<CreateSharedResultResult>;
|
|
304
|
-
/**
|
|
305
|
-
* Add a comment to a workflow.
|
|
306
|
-
*/
|
|
307
|
-
addWorkflowComment(workflowId: string, content: string, parentId?: number): Promise<CreateCommentResult>;
|
|
308
|
-
/**
|
|
309
|
-
* Add a comment to a shared result.
|
|
310
|
-
*/
|
|
311
|
-
addSharedResultComment(workflowId: string, resultHash: string, content: string, parentId?: number): Promise<CreateCommentResult>;
|
|
312
|
-
/**
|
|
313
|
-
* Vote on a workflow.
|
|
314
|
-
*/
|
|
315
|
-
voteWorkflow(workflowId: string, vote: 'up' | 'down' | 'remove'): Promise<VoteWorkflowResult>;
|
|
316
|
-
/**
|
|
317
|
-
* Vote on a shared result.
|
|
318
|
-
*/
|
|
319
|
-
voteSharedResult(workflowId: string, resultHash: string, vote: 'up' | 'down' | 'remove'): Promise<VoteSharedResultResult>;
|
|
320
|
-
/**
|
|
321
|
-
* List input presets for a workflow.
|
|
322
|
-
*/
|
|
323
|
-
listInputPresets(workflowId: string, options?: InputPresetListFilters): Promise<InputPresetListResult>;
|
|
324
|
-
/**
|
|
325
|
-
* Get a specific input preset.
|
|
326
|
-
*/
|
|
327
|
-
getInputPreset(workflowId: string, presetHash: string): Promise<InputPreset>;
|
|
328
|
-
/**
|
|
329
|
-
* Create a new input preset.
|
|
330
|
-
*/
|
|
331
|
-
createInputPreset(workflowId: string, input: CreateInputPresetInput): Promise<CreateInputPresetResult>;
|
|
332
|
-
/**
|
|
333
|
-
* Update an input preset.
|
|
334
|
-
*/
|
|
335
|
-
updateInputPreset(workflowId: string, presetHash: string, updates: UpdateInputPresetInput): Promise<InputPreset>;
|
|
336
|
-
/**
|
|
337
|
-
* Delete an input preset.
|
|
338
|
-
*/
|
|
339
|
-
deleteInputPreset(workflowId: string, presetHash: string): Promise<SuccessResult>;
|
|
340
|
-
/**
|
|
341
|
-
* Vote on an input preset.
|
|
342
|
-
*/
|
|
343
|
-
voteInputPreset(workflowId: string, presetHash: string, vote: 'up' | 'down' | 'remove'): Promise<VoteInputPresetResult>;
|
|
344
|
-
/**
|
|
345
|
-
* Toggle community inputs (input presets) for a workflow.
|
|
346
|
-
*/
|
|
347
|
-
toggleCommunityInputs(workflowId: string, enabled: boolean): Promise<ToggleCommunityInputsResult>;
|
|
348
|
-
}
|
|
6
|
+
export { FlowDotApiClient } from '@flowdot.ai/api';
|
|
349
7
|
//# sourceMappingURL=api-client.d.ts.map
|
package/dist/api-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|