@flowdot.ai/mcp-server 1.0.1 → 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.
Files changed (106) hide show
  1. package/bin/flowdot-mcp.js +1 -1
  2. package/dist/api-client.d.ts +2 -557
  3. package/dist/api-client.d.ts.map +1 -1
  4. package/dist/api-client.js +2 -1264
  5. package/dist/api-client.js.map +1 -1
  6. package/dist/resources/index.d.ts +12 -0
  7. package/dist/resources/index.d.ts.map +1 -0
  8. package/dist/resources/index.js +2204 -0
  9. package/dist/resources/index.js.map +1 -0
  10. package/dist/server.d.ts.map +1 -1
  11. package/dist/server.js +11 -1
  12. package/dist/server.js.map +1 -1
  13. package/dist/tools/add-recipe-step.d.ts +23 -0
  14. package/dist/tools/add-recipe-step.d.ts.map +1 -0
  15. package/dist/tools/add-recipe-step.js +196 -0
  16. package/dist/tools/add-recipe-step.js.map +1 -0
  17. package/dist/tools/add-recipe-store.d.ts +19 -0
  18. package/dist/tools/add-recipe-store.d.ts.map +1 -0
  19. package/dist/tools/add-recipe-store.js +116 -0
  20. package/dist/tools/add-recipe-store.js.map +1 -0
  21. package/dist/tools/agent-toolkits.d.ts.map +1 -1
  22. package/dist/tools/agent-toolkits.js +8 -1
  23. package/dist/tools/agent-toolkits.js.map +1 -1
  24. package/dist/tools/browse-recipes.d.ts +16 -0
  25. package/dist/tools/browse-recipes.d.ts.map +1 -0
  26. package/dist/tools/browse-recipes.js +102 -0
  27. package/dist/tools/browse-recipes.js.map +1 -0
  28. package/dist/tools/create-recipe.d.ts +16 -0
  29. package/dist/tools/create-recipe.d.ts.map +1 -0
  30. package/dist/tools/create-recipe.js +92 -0
  31. package/dist/tools/create-recipe.js.map +1 -0
  32. package/dist/tools/delete-recipe-step.d.ts +14 -0
  33. package/dist/tools/delete-recipe-step.d.ts.map +1 -0
  34. package/dist/tools/delete-recipe-step.js +65 -0
  35. package/dist/tools/delete-recipe-step.js.map +1 -0
  36. package/dist/tools/delete-recipe-store.d.ts +14 -0
  37. package/dist/tools/delete-recipe-store.d.ts.map +1 -0
  38. package/dist/tools/delete-recipe-store.js +65 -0
  39. package/dist/tools/delete-recipe-store.js.map +1 -0
  40. package/dist/tools/delete-recipe.d.ts +13 -0
  41. package/dist/tools/delete-recipe.d.ts.map +1 -0
  42. package/dist/tools/delete-recipe.js +59 -0
  43. package/dist/tools/delete-recipe.js.map +1 -0
  44. package/dist/tools/favorite-recipe.d.ts +13 -0
  45. package/dist/tools/favorite-recipe.d.ts.map +1 -0
  46. package/dist/tools/favorite-recipe.js +53 -0
  47. package/dist/tools/favorite-recipe.js.map +1 -0
  48. package/dist/tools/fork-recipe.d.ts +13 -0
  49. package/dist/tools/fork-recipe.d.ts.map +1 -0
  50. package/dist/tools/fork-recipe.js +56 -0
  51. package/dist/tools/fork-recipe.js.map +1 -0
  52. package/dist/tools/get-recipe-definition.d.ts +15 -0
  53. package/dist/tools/get-recipe-definition.d.ts.map +1 -0
  54. package/dist/tools/get-recipe-definition.js +70 -0
  55. package/dist/tools/get-recipe-definition.js.map +1 -0
  56. package/dist/tools/get-recipe.d.ts +12 -0
  57. package/dist/tools/get-recipe.d.ts.map +1 -0
  58. package/dist/tools/get-recipe.js +88 -0
  59. package/dist/tools/get-recipe.js.map +1 -0
  60. package/dist/tools/index.d.ts.map +1 -1
  61. package/dist/tools/index.js +87 -0
  62. package/dist/tools/index.js.map +1 -1
  63. package/dist/tools/link-recipe.d.ts +14 -0
  64. package/dist/tools/link-recipe.d.ts.map +1 -0
  65. package/dist/tools/link-recipe.js +76 -0
  66. package/dist/tools/link-recipe.js.map +1 -0
  67. package/dist/tools/list-recipe-steps.d.ts +12 -0
  68. package/dist/tools/list-recipe-steps.d.ts.map +1 -0
  69. package/dist/tools/list-recipe-steps.js +69 -0
  70. package/dist/tools/list-recipe-steps.js.map +1 -0
  71. package/dist/tools/list-recipe-stores.d.ts +12 -0
  72. package/dist/tools/list-recipe-stores.d.ts.map +1 -0
  73. package/dist/tools/list-recipe-stores.js +87 -0
  74. package/dist/tools/list-recipe-stores.js.map +1 -0
  75. package/dist/tools/list-recipes.d.ts +12 -0
  76. package/dist/tools/list-recipes.d.ts.map +1 -0
  77. package/dist/tools/list-recipes.js +92 -0
  78. package/dist/tools/list-recipes.js.map +1 -0
  79. package/dist/tools/update-recipe-step.d.ts +22 -0
  80. package/dist/tools/update-recipe-step.d.ts.map +1 -0
  81. package/dist/tools/update-recipe-step.js +97 -0
  82. package/dist/tools/update-recipe-step.js.map +1 -0
  83. package/dist/tools/update-recipe-store.d.ts +20 -0
  84. package/dist/tools/update-recipe-store.d.ts.map +1 -0
  85. package/dist/tools/update-recipe-store.js +98 -0
  86. package/dist/tools/update-recipe-store.js.map +1 -0
  87. package/dist/tools/update-recipe.d.ts +18 -0
  88. package/dist/tools/update-recipe.d.ts.map +1 -0
  89. package/dist/tools/update-recipe.js +98 -0
  90. package/dist/tools/update-recipe.js.map +1 -0
  91. package/dist/tools/vote-recipe.d.ts +13 -0
  92. package/dist/tools/vote-recipe.d.ts.map +1 -0
  93. package/dist/tools/vote-recipe.js +54 -0
  94. package/dist/tools/vote-recipe.js.map +1 -0
  95. package/dist/types.d.ts +3 -1092
  96. package/dist/types.d.ts.map +1 -1
  97. package/dist/types.js +3 -1
  98. package/dist/types.js.map +1 -1
  99. package/dist/utils/script-validator.d.ts.map +1 -1
  100. package/dist/utils/script-validator.js +5 -1
  101. package/dist/utils/script-validator.js.map +1 -1
  102. package/package.json +11 -3
  103. package/dist/tools/convert-app-to-multifile.d.ts +0 -11
  104. package/dist/tools/convert-app-to-multifile.d.ts.map +0 -1
  105. package/dist/tools/convert-app-to-multifile.js +0 -69
  106. package/dist/tools/convert-app-to-multifile.js.map +0 -1
package/dist/types.d.ts CHANGED
@@ -1,1096 +1,7 @@
1
1
  /**
2
2
  * FlowDot MCP Server Types
3
+ *
4
+ * Re-exported from @flowdot.ai/api shared package.
3
5
  */
4
- export interface FlowDotConfig {
5
- apiToken: string;
6
- hubUrl: string;
7
- }
8
- export interface Workflow {
9
- id: string;
10
- name: string;
11
- description: string | null;
12
- is_public: boolean;
13
- created_at: string;
14
- updated_at: string;
15
- input_schema?: InputSchema[] | null;
16
- }
17
- export interface InputSchema {
18
- name: string;
19
- type: string;
20
- description?: string | null;
21
- required?: boolean;
22
- default?: unknown;
23
- }
24
- export interface WorkflowInputSchemaResult {
25
- workflow_id: string;
26
- inputs: InputSchema[];
27
- settings: InputSchema[];
28
- usage_notes: string[];
29
- }
30
- export interface Execution {
31
- execution_id: string;
32
- status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
33
- started_at: string | null;
34
- completed_at: string | null;
35
- duration_ms: number | null;
36
- outputs: Record<string, unknown> | null;
37
- error: string | null;
38
- }
39
- export interface ExecuteWorkflowResult {
40
- execution_id: string | null;
41
- status: string;
42
- outputs?: Record<string, unknown>;
43
- message?: string;
44
- }
45
- export interface AgentChatResult {
46
- response: string;
47
- conversation_id: string | null;
48
- suggested_workflows: SuggestedWorkflow[];
49
- }
50
- export interface SuggestedWorkflow {
51
- id: string;
52
- name: string;
53
- description: string | null;
54
- }
55
- export interface ApiResponse<T> {
56
- success: boolean;
57
- data?: T;
58
- error?: string;
59
- message?: string;
60
- count?: number;
61
- debug?: Record<string, unknown>;
62
- }
63
- export interface WorkflowMetrics {
64
- workflow_id: string;
65
- total_executions: number;
66
- successful_executions: number;
67
- failed_executions: number;
68
- success_rate: number;
69
- avg_duration_ms: number | null;
70
- executions_by_day: DailyMetric[];
71
- period: string;
72
- }
73
- export interface DailyMetric {
74
- date: string;
75
- count: number;
76
- success_count: number;
77
- failure_count: number;
78
- }
79
- export interface WorkflowComment {
80
- id: number;
81
- user_name: string;
82
- user_hash: string;
83
- content: string;
84
- vote_count: number;
85
- created_at: string;
86
- replies: WorkflowComment[];
87
- }
88
- export interface ExecutionHistoryItem {
89
- execution_id: string;
90
- status: string;
91
- description: string | null;
92
- started_at: string | null;
93
- completed_at: string | null;
94
- duration_ms: number | null;
95
- created_at: string;
96
- }
97
- export interface WorkflowDetails extends Workflow {
98
- nodes: Record<string, WorkflowNode>;
99
- connections: Record<string, WorkflowConnection>;
100
- signature: WorkflowSignature;
101
- tags: string[];
102
- is_favorited: boolean;
103
- favorite_count: number;
104
- vote_count: number;
105
- copy_count: number;
106
- visibility: string;
107
- is_disabled: boolean;
108
- }
109
- export interface WorkflowSignature {
110
- inputs: SignatureInput[];
111
- outputs: SignatureOutput[];
112
- settings: SignatureSetting[];
113
- usage_notes: string[];
114
- }
115
- export interface SignatureInput {
116
- name: string;
117
- dataType: string;
118
- nodeId: string;
119
- socketName: string;
120
- }
121
- export interface SignatureOutput {
122
- name: string;
123
- dataType: string;
124
- nodeId: string;
125
- nodeType: string;
126
- socketName: string;
127
- }
128
- export interface SignatureSetting {
129
- type: string;
130
- name: string;
131
- nodeId: string;
132
- currentValue: unknown;
133
- options: string[];
134
- description: string;
135
- }
136
- export interface WorkflowGraph {
137
- nodes: Record<string, WorkflowNode>;
138
- connections: Record<string, WorkflowConnection>;
139
- }
140
- export interface WorkflowNode {
141
- id: string;
142
- type: string;
143
- title: string;
144
- position: Position;
145
- width?: number;
146
- height?: number;
147
- inputs: NodeSocket[];
148
- outputs: NodeSocket[];
149
- properties: NodeProperty[];
150
- typeVersion?: string;
151
- }
152
- export interface Position {
153
- x: number;
154
- y: number;
155
- }
156
- export interface NodeSocket {
157
- name: string;
158
- dataType: string;
159
- }
160
- export interface NodeProperty {
161
- key: string;
162
- value: unknown;
163
- dataType: string;
164
- }
165
- export interface WorkflowConnection {
166
- id: string;
167
- sourceNodeId: string;
168
- sourceSocketId: string;
169
- targetNodeId: string;
170
- targetSocketId: string;
171
- isFeedback?: boolean;
172
- }
173
- export interface ValidationResult {
174
- valid: boolean;
175
- errors: ValidationError[];
176
- warnings: ValidationWarning[];
177
- }
178
- export interface ValidationError {
179
- type: string;
180
- nodeId?: string;
181
- message: string;
182
- }
183
- export interface ValidationWarning {
184
- type: string;
185
- nodeId?: string;
186
- message: string;
187
- }
188
- export interface NodeType {
189
- type: string;
190
- title: string;
191
- category: string;
192
- description: string;
193
- use_case?: string;
194
- version: string;
195
- inputs: NodeSocket[];
196
- outputs: NodeSocket[];
197
- properties: NodeTypeProperty[];
198
- experimental?: boolean;
199
- pinned?: boolean;
200
- }
201
- export interface NodeTypeProperty {
202
- key: string;
203
- value: unknown;
204
- dataType: string;
205
- description?: string;
206
- options?: unknown[];
207
- }
208
- export type NodeTypesResponse = NodeType[] | {
209
- [nodeTypeName: string]: NodeType;
210
- };
211
- export interface NodeTypesByCategory {
212
- [nodeTypeName: string]: NodeType;
213
- }
214
- export interface PublicWorkflow {
215
- id: string;
216
- name: string;
217
- description: string | null;
218
- is_public: boolean;
219
- created_at: string;
220
- updated_at: string;
221
- user_name: string;
222
- user_hash: string;
223
- vote_count: number;
224
- favorite_count: number;
225
- copy_count: number;
226
- tags: string[];
227
- }
228
- export interface PaginatedResult<T> {
229
- data: T[];
230
- current_page: number;
231
- per_page: number;
232
- total: number;
233
- last_page: number;
234
- }
235
- export interface SearchFilters {
236
- tags?: string[];
237
- is_public?: boolean;
238
- created_after?: string;
239
- created_before?: string;
240
- }
241
- export interface ExecutionStreamEvent {
242
- event: 'node_started' | 'node_completed' | 'node_error' | 'execution_completed' | 'execution_failed';
243
- data: {
244
- node_id?: string;
245
- node_title?: string;
246
- status?: string;
247
- output?: unknown;
248
- error?: string;
249
- timestamp: string;
250
- };
251
- }
252
- export interface RetryExecutionResult extends ExecuteWorkflowResult {
253
- original_execution_id: string;
254
- }
255
- export interface SuccessResult {
256
- success: boolean;
257
- message?: string;
258
- }
259
- export interface CreateWorkflowResult {
260
- id: string;
261
- name: string;
262
- description: string | null;
263
- created_at: string;
264
- }
265
- export interface AddNodeResult {
266
- node_id: string;
267
- node: WorkflowNode;
268
- }
269
- export interface AddConnectionResult {
270
- connection_id: string;
271
- connection: WorkflowConnection;
272
- }
273
- export interface CustomNode {
274
- id: string;
275
- name: string;
276
- title: string;
277
- description: string;
278
- category: string;
279
- version: string;
280
- icon: string | null;
281
- inputs?: CustomNodeSocket[];
282
- outputs?: CustomNodeSocket[];
283
- properties?: CustomNodeProperty[];
284
- script_code?: string;
285
- llm_config?: CustomNodeLLMConfig | null;
286
- execution_timeout?: number;
287
- memory_limit?: number;
288
- visibility: 'private' | 'public' | 'unlisted' | 'team';
289
- is_verified: boolean;
290
- is_disabled?: boolean;
291
- user_name?: string;
292
- user_hash?: string;
293
- team_name?: string | null;
294
- vote_count?: number;
295
- favorite_count?: number;
296
- execution_count: number;
297
- copy_count: number;
298
- tags: string[];
299
- ancestry?: CustomNodeAncestry | null;
300
- is_favorited?: boolean;
301
- user_vote?: number | null;
302
- can_edit?: boolean;
303
- created_at: string;
304
- updated_at: string;
305
- }
306
- export interface CustomNodeSocket {
307
- name: string;
308
- dataType: string;
309
- description?: string;
310
- }
311
- export interface CustomNodeProperty {
312
- key: string;
313
- value: unknown;
314
- dataType: string;
315
- description?: string;
316
- }
317
- export interface CustomNodeAncestry {
318
- copied_from_node_hash: string | null;
319
- copied_from_node_name: string | null;
320
- copied_from_user_name: string | null;
321
- copied_from_user_hash: string | null;
322
- chain: AncestryChainItem[];
323
- }
324
- export interface AncestryChainItem {
325
- node_hash: string;
326
- node_name: string;
327
- user_id: number;
328
- user_name: string | null;
329
- user_hash: string | null;
330
- copied_at: string;
331
- is_current: boolean;
332
- }
333
- export interface CustomNodeComment {
334
- id: number;
335
- user_name: string;
336
- user_hash: string | null;
337
- content: string;
338
- vote_count: number;
339
- created_at: string;
340
- replies: CustomNodeComment[];
341
- }
342
- export interface CustomNodeLLMConfig {
343
- enabled: boolean;
344
- }
345
- export interface CreateCustomNodeInput {
346
- name: string;
347
- title: string;
348
- description: string;
349
- category?: string;
350
- version?: string;
351
- icon?: string;
352
- inputs: CustomNodeSocket[];
353
- outputs: CustomNodeSocket[];
354
- properties?: CustomNodeProperty[];
355
- script_code: string;
356
- execution_timeout?: number;
357
- memory_limit?: number;
358
- visibility?: 'private' | 'public' | 'unlisted';
359
- tags?: string[];
360
- llm_config?: CustomNodeLLMConfig;
361
- }
362
- export interface UpdateCustomNodeInput {
363
- name?: string;
364
- title?: string;
365
- description?: string;
366
- category?: string;
367
- version?: string;
368
- icon?: string;
369
- inputs?: CustomNodeSocket[];
370
- outputs?: CustomNodeSocket[];
371
- properties?: CustomNodeProperty[];
372
- script_code?: string;
373
- execution_timeout?: number;
374
- memory_limit?: number;
375
- tags?: string[];
376
- llm_config?: CustomNodeLLMConfig | null;
377
- }
378
- export interface CustomNodeSearchFilters {
379
- q?: string;
380
- category?: string;
381
- tags?: string[];
382
- verified_only?: boolean;
383
- sort?: 'updated_at' | 'created_at' | 'execution_count' | 'copy_count';
384
- limit?: number;
385
- page?: number;
386
- }
387
- export interface CustomNodeListFilters {
388
- search?: string;
389
- category?: string;
390
- limit?: number;
391
- page?: number;
392
- }
393
- export interface VoteCustomNodeResult {
394
- id: string;
395
- vote: string;
396
- vote_count: number;
397
- }
398
- export interface FavoriteCustomNodeResult {
399
- id: string;
400
- is_favorited: boolean;
401
- }
402
- export interface CreateCustomNodeCommentResult {
403
- id: number;
404
- content: string;
405
- user_name: string;
406
- created_at: string;
407
- }
408
- export interface App {
409
- id: string;
410
- name: string;
411
- description: string | null;
412
- code: string | null;
413
- mobile_code: string | null;
414
- config: Record<string, unknown> | null;
415
- category: string | null;
416
- tags: string[];
417
- is_public: boolean;
418
- is_multi_file: boolean;
419
- router_enabled?: boolean;
420
- routes?: Route[] | null;
421
- mobile_compatible: boolean;
422
- user_name?: string;
423
- user_hash?: string | null;
424
- upvotes: number;
425
- downvotes: number;
426
- vote_score?: number;
427
- execution_count: number;
428
- clone_count: number;
429
- view_count?: number;
430
- is_verified: boolean;
431
- is_featured: boolean;
432
- workflows?: AppWorkflow[];
433
- files?: AppFile[];
434
- is_favorited?: boolean;
435
- user_vote?: number | null;
436
- can_edit?: boolean;
437
- created_at: string;
438
- updated_at: string;
439
- published_at: string | null;
440
- }
441
- export interface Route {
442
- path: string;
443
- component: string;
444
- exact?: boolean;
445
- }
446
- export interface AppFile {
447
- path: string;
448
- content: string;
449
- type: 'component' | 'hook' | 'utility' | 'page' | 'context' | 'style';
450
- is_entry: boolean;
451
- created_at?: string;
452
- updated_at?: string;
453
- }
454
- export interface AppWorkflow {
455
- hash: string;
456
- name: string;
457
- description: string | null;
458
- signature: WorkflowSignature | null;
459
- alias: string | null;
460
- }
461
- export interface AppComment {
462
- id: number;
463
- user_name: string;
464
- user_hash: string | null;
465
- content: string;
466
- vote_count: number;
467
- created_at: string;
468
- replies: AppComment[];
469
- }
470
- export interface CreateAppInput {
471
- name: string;
472
- description?: string;
473
- code?: string;
474
- mobile_code?: string;
475
- config?: Record<string, unknown>;
476
- category?: string;
477
- tags?: string[];
478
- mobile_compatible?: boolean;
479
- }
480
- export interface UpdateAppInput {
481
- name?: string;
482
- description?: string;
483
- code?: string;
484
- mobile_code?: string;
485
- config?: Record<string, unknown>;
486
- category?: string;
487
- tags?: string[];
488
- mobile_compatible?: boolean;
489
- }
490
- export interface AppSearchFilters {
491
- q?: string;
492
- category?: string;
493
- tag?: string;
494
- mobile_compatible?: boolean;
495
- sort?: 'trending' | 'popular' | 'recent' | 'most_used';
496
- limit?: number;
497
- page?: number;
498
- }
499
- export interface AppListFilters {
500
- search?: string;
501
- category?: string;
502
- limit?: number;
503
- page?: number;
504
- }
505
- export interface CreateAppResult {
506
- id: string;
507
- name: string;
508
- description: string | null;
509
- created_at: string;
510
- }
511
- export interface CloneAppResult {
512
- id: string;
513
- name: string;
514
- original_app_id: string;
515
- created_at: string;
516
- }
517
- export interface VoteAppResult {
518
- id: string;
519
- upvotes: number;
520
- downvotes: number;
521
- vote_score: number;
522
- }
523
- export interface FavoriteAppResult {
524
- id: string;
525
- is_favorited: boolean;
526
- }
527
- export interface CreateAppCommentResult {
528
- id: number;
529
- content: string;
530
- user_name: string;
531
- created_at: string;
532
- }
533
- export interface LinkAppWorkflowResult {
534
- hash: string;
535
- name: string;
536
- description: string | null;
537
- signature: WorkflowSignature | null;
538
- alias: string | null;
539
- }
540
- export interface EditAppCodeInput {
541
- old_string: string;
542
- new_string: string;
543
- field?: 'code' | 'mobile_code';
544
- replace_all?: boolean;
545
- }
546
- export interface AppendAppCodeInput {
547
- content: string;
548
- field?: 'code' | 'mobile_code';
549
- }
550
- export interface PrependAppCodeInput {
551
- content: string;
552
- field?: 'code' | 'mobile_code';
553
- }
554
- export interface InsertAppCodeInput {
555
- content: string;
556
- after_pattern: string;
557
- field?: 'code' | 'mobile_code';
558
- }
559
- export interface AppCodeEditResult {
560
- id: string;
561
- field: string;
562
- previous_length: number;
563
- new_length: number;
564
- updated_at: string;
565
- }
566
- export interface CreateAppFileInput {
567
- path: string;
568
- content: string;
569
- type?: 'component' | 'hook' | 'utility' | 'page' | 'context' | 'style';
570
- is_entry?: boolean;
571
- }
572
- export interface UpdateAppFileInput {
573
- content: string;
574
- type?: 'component' | 'hook' | 'utility' | 'page' | 'context' | 'style';
575
- }
576
- export interface RenameAppFileInput {
577
- new_path: string;
578
- }
579
- export interface AppFileResult {
580
- path: string;
581
- content: string;
582
- type: string;
583
- is_entry: boolean;
584
- created_at: string;
585
- updated_at: string;
586
- }
587
- export interface WorkflowPublicUrlResult {
588
- workflow_id: string;
589
- workflow_name: string;
590
- is_public: boolean;
591
- public_url: string;
592
- accessible: boolean;
593
- message: string;
594
- }
595
- export interface SharedResult {
596
- hash: string;
597
- title: string | null;
598
- description: string | null;
599
- preset_hash: string | null;
600
- view_count: number;
601
- vote_count: number;
602
- is_active: boolean;
603
- share_url: string;
604
- expires_at: string | null;
605
- created_at: string;
606
- user?: {
607
- hash: string;
608
- name: string;
609
- avatar?: string;
610
- } | null;
611
- workflow?: {
612
- hash: string;
613
- name: string;
614
- description: string | null;
615
- };
616
- }
617
- export interface SharedResultDetails extends SharedResult {
618
- shared_node_results: Record<string, unknown>;
619
- shared_inputs: Record<string, unknown>;
620
- }
621
- export interface SharedResultComment {
622
- id: number;
623
- user_name: string;
624
- user_hash: string | null;
625
- content: string;
626
- vote_count: number;
627
- created_at: string;
628
- replies: SharedResultComment[];
629
- }
630
- export interface CreateSharedResultInput {
631
- execution_id: string;
632
- title?: string;
633
- description?: string;
634
- preset_hash?: string;
635
- expires_in_days?: number;
636
- }
637
- export interface CreateSharedResultResult {
638
- hash: string;
639
- title: string | null;
640
- description: string | null;
641
- preset_hash: string | null;
642
- view_count: number;
643
- is_active: boolean;
644
- share_url: string;
645
- expires_at: string | null;
646
- created_at: string;
647
- }
648
- export interface CreateCommentResult {
649
- id: number;
650
- content: string;
651
- user_name: string;
652
- user_hash: string;
653
- created_at: string;
654
- }
655
- export interface SharedResultListFilters {
656
- sort?: 'newest' | 'oldest' | 'most_viewed';
657
- limit?: number;
658
- page?: number;
659
- }
660
- export interface VoteWorkflowResult {
661
- id: string;
662
- vote: string;
663
- vote_count: number;
664
- }
665
- export interface VoteSharedResultResult {
666
- hash: string;
667
- vote: string;
668
- vote_count: number;
669
- }
670
- export interface InputPreset {
671
- hash: string;
672
- title: string;
673
- description: string | null;
674
- inputs: Record<string, unknown>;
675
- vote_count: number;
676
- usage_count: number;
677
- public_url: string;
678
- can_edit?: boolean;
679
- created_at: string;
680
- updated_at: string;
681
- user?: {
682
- hash: string;
683
- name: string;
684
- } | null;
685
- workflow?: {
686
- hash: string;
687
- name: string;
688
- };
689
- }
690
- export interface InputPresetListResult {
691
- data: InputPreset[];
692
- community_inputs_enabled: boolean;
693
- current_page?: number;
694
- per_page?: number;
695
- total?: number;
696
- last_page?: number;
697
- message?: string;
698
- }
699
- export interface CreateInputPresetInput {
700
- title: string;
701
- description?: string;
702
- inputs: Record<string, unknown>;
703
- }
704
- export interface UpdateInputPresetInput {
705
- title?: string;
706
- description?: string;
707
- inputs?: Record<string, unknown>;
708
- }
709
- export interface CreateInputPresetResult {
710
- hash: string;
711
- title: string;
712
- description: string | null;
713
- inputs: Record<string, unknown>;
714
- vote_count: number;
715
- usage_count: number;
716
- public_url: string;
717
- created_at: string;
718
- }
719
- export interface VoteInputPresetResult {
720
- hash: string;
721
- vote: string;
722
- vote_count: number;
723
- }
724
- export interface InputPresetListFilters {
725
- sort?: 'popular' | 'newest' | 'oldest' | 'most_used';
726
- limit?: number;
727
- page?: number;
728
- }
729
- export interface ToggleCommunityInputsResult {
730
- workflow_id: string;
731
- workflow_name: string;
732
- community_inputs_enabled: boolean;
733
- message: string;
734
- }
735
- export interface Team {
736
- id: number;
737
- name: string;
738
- slug: string;
739
- description: string | null;
740
- role: 'owner' | 'admin' | 'manager' | 'editor' | 'viewer';
741
- member_count: number;
742
- created_at: string;
743
- }
744
- export interface DocumentCategory {
745
- id: number;
746
- name: string;
747
- slug: string;
748
- description: string | null;
749
- color: string;
750
- document_count: number;
751
- team_id: number | null;
752
- team_name: string | null;
753
- created_at: string;
754
- updated_at: string;
755
- }
756
- export interface KnowledgeDocument {
757
- id: number;
758
- hash: string;
759
- title: string;
760
- original_filename: string;
761
- mime_type: string;
762
- file_size_bytes: number;
763
- formatted_size: string;
764
- status: 'pending' | 'processing' | 'ready' | 'failed';
765
- processing_error: string | null;
766
- chunk_count: number;
767
- token_count: number;
768
- has_embeddings: boolean;
769
- metadata: Record<string, unknown> | null;
770
- category: {
771
- id: number;
772
- name: string;
773
- color: string;
774
- } | null;
775
- team_id: number | null;
776
- team: {
777
- id: number;
778
- name: string;
779
- slug: string;
780
- } | null;
781
- is_team_document: boolean;
782
- can_edit: boolean;
783
- can_delete: boolean;
784
- processed_at: string | null;
785
- created_at: string;
786
- }
787
- export interface KnowledgeQueryResult {
788
- chunk_id: number;
789
- content: string;
790
- token_count: number;
791
- chunk_index: number;
792
- relevance: number | null;
793
- similarity: number | null;
794
- document_id: number;
795
- document_title: string;
796
- document_hash: string | null;
797
- is_team_document: boolean;
798
- team_id: number | null;
799
- metadata: Record<string, unknown> | null;
800
- }
801
- export interface KnowledgeQueryResponse {
802
- query: string;
803
- result_count: number;
804
- results: KnowledgeQueryResult[];
805
- }
806
- export interface KnowledgeStorage {
807
- knowledge_storage_bytes: number;
808
- knowledge_storage_mb: number;
809
- total_storage_bytes: number;
810
- total_storage_mb: number;
811
- storage_limit_bytes: number;
812
- storage_limit_mb: number;
813
- usage_percentage: number;
814
- document_count: number;
815
- ready_document_count: number;
816
- category_count: number;
817
- }
818
- export interface CreateKnowledgeCategoryInput {
819
- name: string;
820
- description?: string;
821
- color?: string;
822
- team_id?: number;
823
- }
824
- export interface UpdateKnowledgeCategoryInput {
825
- name?: string;
826
- description?: string;
827
- color?: string;
828
- }
829
- export interface UploadTextDocumentInput {
830
- title: string;
831
- content: string;
832
- category_id?: number;
833
- team_id?: number;
834
- mime_type?: 'text/plain' | 'text/markdown' | 'application/json';
835
- }
836
- export interface UploadDocumentFromUrlInput {
837
- url: string;
838
- title?: string;
839
- category_id?: number;
840
- team_id?: number;
841
- }
842
- export interface UploadDocumentResult {
843
- id: number;
844
- hash: string;
845
- title: string;
846
- original_filename?: string;
847
- file_size_bytes?: number;
848
- status: string;
849
- message: string;
850
- }
851
- export interface KnowledgeDocumentListFilters {
852
- category_id?: number;
853
- team_id?: number | 'personal';
854
- status?: 'pending' | 'processing' | 'ready' | 'failed';
855
- }
856
- export interface KnowledgeQueryInput {
857
- query: string;
858
- category_id?: number;
859
- team_id?: number;
860
- include_personal?: boolean;
861
- include_team?: boolean;
862
- top_k?: number;
863
- }
864
- export interface KnowledgeCategoryListFilters {
865
- team_id?: number;
866
- personal?: boolean;
867
- }
868
- export interface TransferDocumentInput {
869
- team_id?: number | null;
870
- category_id?: number | null;
871
- }
872
- export interface TransferDocumentResult {
873
- message: string;
874
- document: {
875
- id: number;
876
- hash: string;
877
- title: string;
878
- team_id: number | null;
879
- team_name: string | null;
880
- category_id: number | null;
881
- };
882
- }
883
- export interface AgentToolkit {
884
- id: string;
885
- name: string;
886
- title: string;
887
- description: string;
888
- category: string;
889
- version: string;
890
- icon: string | null;
891
- visibility: 'private' | 'public' | 'unlisted' | 'team';
892
- is_verified: boolean;
893
- is_featured: boolean;
894
- is_disabled?: boolean;
895
- user_name?: string;
896
- user_hash?: string;
897
- team_name?: string | null;
898
- vote_count?: number;
899
- favorite_count?: number;
900
- installation_count: number;
901
- copy_count: number;
902
- tags: string[];
903
- tools_count: number;
904
- tools?: AgentToolkitTool[];
905
- credential_requirements?: ToolkitCredentialRequirement[];
906
- is_favorited?: boolean;
907
- user_vote?: number | null;
908
- can_edit?: boolean;
909
- created_at: string;
910
- updated_at: string;
911
- }
912
- export interface AgentToolkitTool {
913
- id: string;
914
- name: string;
915
- title: string;
916
- description: string;
917
- tool_type: 'http' | 'workflow';
918
- input_schema: Record<string, unknown>;
919
- endpoint_config?: ToolkitEndpointConfig | null;
920
- workflow_hash?: string | null;
921
- credential_keys?: string[];
922
- timeout_ms?: number;
923
- order_index: number;
924
- is_enabled: boolean;
925
- created_at: string;
926
- updated_at: string;
927
- }
928
- export interface ToolkitEndpointConfig {
929
- url: string;
930
- method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
931
- headers?: Record<string, string>;
932
- query_params?: Record<string, string>;
933
- body_template?: Record<string, unknown>;
934
- response_mapping?: Record<string, string>;
935
- }
936
- export interface ToolkitCredentialRequirement {
937
- id?: number;
938
- key_name: string;
939
- label: string;
940
- credential_type: 'api_key' | 'oauth' | 'bearer' | 'basic' | 'custom';
941
- description?: string;
942
- is_required: boolean;
943
- validation_pattern?: string;
944
- placeholder?: string;
945
- oauth_config?: OAuthConfig;
946
- }
947
- export interface OAuthConfig {
948
- authorization_url: string;
949
- token_endpoint: string;
950
- scopes?: string[];
951
- client_id_credential_key?: string;
952
- client_secret_credential_key?: string;
953
- auth_error_codes?: number[];
954
- auth_error_patterns?: string[];
955
- pkce_enabled?: boolean;
956
- extra_auth_params?: Record<string, string>;
957
- }
958
- export interface AgentToolkitInstallation {
959
- id: string;
960
- toolkit_id: string;
961
- toolkit_name: string;
962
- toolkit_title: string;
963
- toolkit_version: string;
964
- is_active: boolean;
965
- credentials_configured: boolean;
966
- missing_credentials?: string[];
967
- installed_at: string;
968
- last_used_at: string | null;
969
- usage_count: number;
970
- }
971
- export interface ToolkitComment {
972
- id: number;
973
- user_name: string;
974
- user_hash: string | null;
975
- content: string;
976
- vote_count: number;
977
- created_at: string;
978
- replies: ToolkitComment[];
979
- }
980
- export interface CreateToolkitInput {
981
- name: string;
982
- title: string;
983
- description: string;
984
- category?: string;
985
- version?: string;
986
- icon?: string;
987
- visibility?: 'private' | 'public' | 'unlisted';
988
- tags?: string[];
989
- credential_requirements?: ToolkitCredentialRequirementInput[];
990
- }
991
- export interface ToolkitCredentialRequirementInput {
992
- id?: number;
993
- key_name: string;
994
- label: string;
995
- credential_type?: 'api_key' | 'oauth' | 'bearer' | 'basic' | 'custom';
996
- description?: string;
997
- is_required?: boolean;
998
- validation_pattern?: string;
999
- placeholder?: string;
1000
- oauth_config?: OAuthConfig;
1001
- }
1002
- export interface UpdateToolkitInput {
1003
- name?: string;
1004
- title?: string;
1005
- description?: string;
1006
- category?: string;
1007
- version?: string;
1008
- icon?: string;
1009
- tags?: string[];
1010
- credential_requirements?: ToolkitCredentialRequirementInput[];
1011
- }
1012
- export interface CreateToolkitToolInput {
1013
- name: string;
1014
- title: string;
1015
- description: string;
1016
- tool_type: 'http' | 'workflow';
1017
- input_schema: Record<string, unknown>;
1018
- output_schema?: Record<string, unknown>;
1019
- endpoint_config?: ToolkitEndpointConfig;
1020
- workflow_hash?: string;
1021
- credential_keys?: string[];
1022
- timeout_ms?: number;
1023
- is_enabled?: boolean;
1024
- }
1025
- export interface UpdateToolkitToolInput {
1026
- name?: string;
1027
- title?: string;
1028
- description?: string;
1029
- tool_type?: 'http' | 'workflow';
1030
- input_schema?: Record<string, unknown>;
1031
- output_schema?: Record<string, unknown>;
1032
- endpoint_config?: ToolkitEndpointConfig;
1033
- workflow_hash?: string;
1034
- credential_keys?: string[];
1035
- timeout_ms?: number;
1036
- is_enabled?: boolean;
1037
- }
1038
- export interface ToolkitSearchFilters {
1039
- query?: string;
1040
- category?: string;
1041
- tags?: string[];
1042
- verified_only?: boolean;
1043
- sort?: 'trending' | 'popular' | 'recent' | 'most_installed';
1044
- limit?: number;
1045
- page?: number;
1046
- }
1047
- export interface ToolkitListFilters {
1048
- search?: string;
1049
- category?: string;
1050
- limit?: number;
1051
- page?: number;
1052
- }
1053
- export interface InstallToolkitResult {
1054
- id: string;
1055
- toolkit_id: string;
1056
- toolkit_name: string;
1057
- is_active: boolean;
1058
- credentials_configured: boolean;
1059
- missing_credentials: string[];
1060
- message: string;
1061
- }
1062
- export interface ToolkitCredentialStatus {
1063
- toolkit_id: string;
1064
- toolkit_name: string;
1065
- credentials_configured: boolean;
1066
- required_credentials: ToolkitCredentialRequirement[];
1067
- configured_credentials?: string[];
1068
- missing_credentials: string[];
1069
- }
1070
- export interface InvokeToolkitToolInput {
1071
- installation_id: string;
1072
- tool_name: string;
1073
- inputs: Record<string, unknown>;
1074
- }
1075
- export interface InvokeToolkitToolResult {
1076
- success: boolean;
1077
- data?: unknown;
1078
- error?: string;
1079
- execution_time_ms?: number;
1080
- }
1081
- export interface VoteToolkitResult {
1082
- id: string;
1083
- vote: string;
1084
- vote_count: number;
1085
- }
1086
- export interface FavoriteToolkitResult {
1087
- id: string;
1088
- is_favorited: boolean;
1089
- }
1090
- export interface CreateToolkitCommentResult {
1091
- id: number;
1092
- content: string;
1093
- user_name: string;
1094
- created_at: string;
1095
- }
6
+ export * from '@flowdot.ai/api';
1096
7
  //# sourceMappingURL=types.d.ts.map