@hexabot-ai/api 3.2.2-alpha.14 → 3.2.2-alpha.15

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 (66) hide show
  1. package/dist/mcp/mcp-api.module.js +2 -2
  2. package/dist/mcp/mcp-api.module.js.map +1 -1
  3. package/dist/mcp/tools/catalog-mcp.tools.d.ts +63 -0
  4. package/dist/mcp/tools/catalog-mcp.tools.js +135 -0
  5. package/dist/mcp/tools/catalog-mcp.tools.js.map +1 -0
  6. package/dist/mcp/tools/cms-mcp.tools.d.ts +128 -0
  7. package/dist/mcp/tools/cms-mcp.tools.js +242 -0
  8. package/dist/mcp/tools/cms-mcp.tools.js.map +1 -0
  9. package/dist/mcp/tools/credential-mcp.tools.d.ts +19 -0
  10. package/dist/mcp/tools/credential-mcp.tools.js +82 -0
  11. package/dist/mcp/tools/credential-mcp.tools.js.map +1 -0
  12. package/dist/mcp/tools/hexabot-mcp-tool.base.d.ts +22 -0
  13. package/dist/mcp/tools/hexabot-mcp-tool.base.js +48 -0
  14. package/dist/mcp/tools/hexabot-mcp-tool.base.js.map +1 -0
  15. package/dist/mcp/tools/hexabot-mcp.schemas.d.ts +41 -0
  16. package/dist/mcp/tools/hexabot-mcp.schemas.js +36 -0
  17. package/dist/mcp/tools/hexabot-mcp.schemas.js.map +1 -0
  18. package/dist/mcp/tools/hexabot-mcp.tools.d.ts +1 -1329
  19. package/dist/mcp/tools/hexabot-mcp.tools.js +14 -1097
  20. package/dist/mcp/tools/hexabot-mcp.tools.js.map +1 -1
  21. package/dist/mcp/tools/hexabot-mcp.utils.d.ts +1 -0
  22. package/dist/mcp/tools/hexabot-mcp.utils.js +9 -0
  23. package/dist/mcp/tools/hexabot-mcp.utils.js.map +1 -0
  24. package/dist/mcp/tools/index.d.ts +22 -0
  25. package/dist/mcp/tools/index.js +50 -0
  26. package/dist/mcp/tools/index.js.map +1 -0
  27. package/dist/mcp/tools/mcp-server-mcp.tools.d.ts +77 -0
  28. package/dist/mcp/tools/mcp-server-mcp.tools.js +130 -0
  29. package/dist/mcp/tools/mcp-server-mcp.tools.js.map +1 -0
  30. package/dist/mcp/tools/memory-definition-mcp.tools.d.ts +57 -0
  31. package/dist/mcp/tools/memory-definition-mcp.tools.js +128 -0
  32. package/dist/mcp/tools/memory-definition-mcp.tools.js.map +1 -0
  33. package/dist/mcp/tools/workflow-mcp.helper.d.ts +141 -0
  34. package/dist/mcp/tools/workflow-mcp.helper.js +108 -0
  35. package/dist/mcp/tools/workflow-mcp.helper.js.map +1 -0
  36. package/dist/mcp/tools/workflow-mcp.tools.d.ts +468 -0
  37. package/dist/mcp/tools/workflow-mcp.tools.js +222 -0
  38. package/dist/mcp/tools/workflow-mcp.tools.js.map +1 -0
  39. package/dist/mcp/tools/workflow-run-mcp.tools.d.ts +347 -0
  40. package/dist/mcp/tools/workflow-run-mcp.tools.js +229 -0
  41. package/dist/mcp/tools/workflow-run-mcp.tools.js.map +1 -0
  42. package/dist/mcp/tools/workflow-version-mcp.tools.d.ts +230 -0
  43. package/dist/mcp/tools/workflow-version-mcp.tools.js +211 -0
  44. package/dist/mcp/tools/workflow-version-mcp.tools.js.map +1 -0
  45. package/dist/tsconfig.build.tsbuildinfo +1 -1
  46. package/dist/workflow/services/workflow.service.d.ts +7 -7
  47. package/dist/workflow/services/workflow.service.js +40 -35
  48. package/dist/workflow/services/workflow.service.js.map +1 -1
  49. package/package.json +4 -4
  50. package/src/mcp/README.md +12 -2
  51. package/src/mcp/mcp-api.module.ts +2 -2
  52. package/src/mcp/tools/catalog-mcp.tools.ts +122 -0
  53. package/src/mcp/tools/cms-mcp.tools.ts +239 -0
  54. package/src/mcp/tools/credential-mcp.tools.ts +81 -0
  55. package/src/mcp/tools/hexabot-mcp-tool.base.ts +74 -0
  56. package/src/mcp/tools/hexabot-mcp.schemas.ts +55 -0
  57. package/src/mcp/tools/hexabot-mcp.tools.ts +1 -1194
  58. package/src/mcp/tools/hexabot-mcp.utils.ts +13 -0
  59. package/src/mcp/tools/index.ts +51 -0
  60. package/src/mcp/tools/mcp-server-mcp.tools.ts +135 -0
  61. package/src/mcp/tools/memory-definition-mcp.tools.ts +125 -0
  62. package/src/mcp/tools/workflow-mcp.helper.ts +166 -0
  63. package/src/mcp/tools/workflow-mcp.tools.ts +254 -0
  64. package/src/mcp/tools/workflow-run-mcp.tools.ts +274 -0
  65. package/src/mcp/tools/workflow-version-mcp.tools.ts +226 -0
  66. package/src/workflow/services/workflow.service.ts +49 -29
@@ -1,1329 +1 @@
1
- import { ActionService } from "../../actions/actions.service";
2
- import { RuntimeBindingsService } from "../../bindings/runtime-bindings.service";
3
- import { ContentTypeService } from "../../cms/services/content-type.service";
4
- import { ContentService } from "../../cms/services/content.service";
5
- import { CredentialService } from "../../user/services/credential.service";
6
- import { AgenticService } from "../../workflow/services/agentic.service";
7
- import { McpServerService } from "../../workflow/services/mcp-server.service";
8
- import { MemoryDefinitionService } from "../../workflow/services/memory-definition.service";
9
- import { WorkflowRunService } from "../../workflow/services/workflow-run.service";
10
- import { WorkflowVersionService } from "../../workflow/services/workflow-version.service";
11
- import { WorkflowService } from "../../workflow/services/workflow.service";
12
- import { DirectionType, McpServerTransport, MemoryScope, WorkflowType, WorkflowVersionAction } from "../../workflow/types";
13
- import { HexabotMcpRequest } from '../types';
14
- type PaginationArgs = {
15
- limit: number;
16
- skip: number;
17
- sortBy: string;
18
- sortDirection: 'ASC' | 'DESC';
19
- };
20
- export declare class HexabotMcpTools {
21
- private readonly workflowService;
22
- private readonly workflowVersionService;
23
- private readonly workflowRunService;
24
- private readonly agenticService;
25
- private readonly memoryDefinitionService;
26
- private readonly actionService;
27
- private readonly runtimeBindingsService;
28
- private readonly credentialService;
29
- private readonly contentTypeService;
30
- private readonly contentService;
31
- private readonly mcpServerService;
32
- constructor(workflowService: WorkflowService, workflowVersionService: WorkflowVersionService, workflowRunService: WorkflowRunService, agenticService: AgenticService, memoryDefinitionService: MemoryDefinitionService, actionService: ActionService, runtimeBindingsService: RuntimeBindingsService, credentialService: CredentialService, contentTypeService: ContentTypeService, contentService: ContentService, mcpServerService: McpServerService);
33
- searchWorkflows(args: {
34
- query?: string;
35
- type?: WorkflowType;
36
- createdById?: string;
37
- } & PaginationArgs): Promise<{
38
- items: unknown[];
39
- total: number;
40
- limit: number | undefined;
41
- skip: number | undefined;
42
- }>;
43
- getWorkflow(args: {
44
- id: string;
45
- }): Promise<{
46
- id: string;
47
- createdAt: Date;
48
- updatedAt: Date;
49
- name: string;
50
- description: string | null;
51
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
52
- schedule: string | null;
53
- inputSchema: any;
54
- builtin: boolean;
55
- x: number;
56
- y: number;
57
- zoom: number;
58
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
59
- currentVersion: {
60
- id: string;
61
- createdAt: Date;
62
- updatedAt: Date;
63
- version: number;
64
- definitionYml: string;
65
- checksum: string;
66
- message: string | null;
67
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
68
- parentVersion: string | null;
69
- workflow: string;
70
- createdBy: string | null;
71
- } | null;
72
- publishedVersion: {
73
- id: string;
74
- createdAt: Date;
75
- updatedAt: Date;
76
- version: number;
77
- definitionYml: string;
78
- checksum: string;
79
- message: string | null;
80
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
81
- parentVersion: string | null;
82
- workflow: string;
83
- createdBy: string | null;
84
- } | null;
85
- createdBy: {
86
- id: string;
87
- createdAt: Date;
88
- updatedAt: Date;
89
- firstName: string;
90
- lastName: string;
91
- language: string | null;
92
- timezone: number;
93
- locale: string | null;
94
- gender: string | null;
95
- country: string | null;
96
- foreignId: string | null;
97
- assignedAt: Date | null;
98
- lastvisit: Date | null;
99
- retainedFrom: Date | null;
100
- channel: {
101
- name: string | null;
102
- data?: Record<string, any> | null | undefined;
103
- };
104
- username: string;
105
- email: string;
106
- sendEmail: boolean;
107
- state: boolean;
108
- resetCount: number;
109
- resetToken: string | null;
110
- labels: string[];
111
- assignedTo: string | null;
112
- roles: string[];
113
- avatar: string | null;
114
- provider?: {
115
- strategy: "local";
116
- sub?: string | undefined;
117
- } | undefined;
118
- } | null;
119
- definitionYml?: string | undefined;
120
- definition?: any;
121
- }>;
122
- createWorkflow(args: {
123
- name: string;
124
- description?: string;
125
- type?: WorkflowType;
126
- schedule?: string | null;
127
- inputSchema?: Record<string, unknown>;
128
- builtin?: boolean;
129
- x?: number;
130
- y?: number;
131
- zoom?: number;
132
- direction?: DirectionType;
133
- definitionYml?: string;
134
- versionMessage?: string;
135
- }, _context: unknown, request?: HexabotMcpRequest): Promise<{
136
- id: string;
137
- createdAt: Date;
138
- updatedAt: Date;
139
- name: string;
140
- description: string | null;
141
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
142
- schedule: string | null;
143
- inputSchema: any;
144
- builtin: boolean;
145
- x: number;
146
- y: number;
147
- zoom: number;
148
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
149
- currentVersion: {
150
- id: string;
151
- createdAt: Date;
152
- updatedAt: Date;
153
- version: number;
154
- definitionYml: string;
155
- checksum: string;
156
- message: string | null;
157
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
158
- parentVersion: string | null;
159
- workflow: string;
160
- createdBy: string | null;
161
- } | null;
162
- publishedVersion: {
163
- id: string;
164
- createdAt: Date;
165
- updatedAt: Date;
166
- version: number;
167
- definitionYml: string;
168
- checksum: string;
169
- message: string | null;
170
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
171
- parentVersion: string | null;
172
- workflow: string;
173
- createdBy: string | null;
174
- } | null;
175
- createdBy: {
176
- id: string;
177
- createdAt: Date;
178
- updatedAt: Date;
179
- firstName: string;
180
- lastName: string;
181
- language: string | null;
182
- timezone: number;
183
- locale: string | null;
184
- gender: string | null;
185
- country: string | null;
186
- foreignId: string | null;
187
- assignedAt: Date | null;
188
- lastvisit: Date | null;
189
- retainedFrom: Date | null;
190
- channel: {
191
- name: string | null;
192
- data?: Record<string, any> | null | undefined;
193
- };
194
- username: string;
195
- email: string;
196
- sendEmail: boolean;
197
- state: boolean;
198
- resetCount: number;
199
- resetToken: string | null;
200
- labels: string[];
201
- assignedTo: string | null;
202
- roles: string[];
203
- avatar: string | null;
204
- provider?: {
205
- strategy: "local";
206
- sub?: string | undefined;
207
- } | undefined;
208
- } | null;
209
- definitionYml?: string | undefined;
210
- definition?: any;
211
- }>;
212
- updateWorkflow(args: {
213
- id: string;
214
- definitionYml?: string;
215
- versionMessage?: string;
216
- } & Record<string, unknown>, _context: unknown, request?: HexabotMcpRequest): Promise<{
217
- id: string;
218
- createdAt: Date;
219
- updatedAt: Date;
220
- name: string;
221
- description: string | null;
222
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
223
- schedule: string | null;
224
- inputSchema: any;
225
- builtin: boolean;
226
- x: number;
227
- y: number;
228
- zoom: number;
229
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
230
- currentVersion: {
231
- id: string;
232
- createdAt: Date;
233
- updatedAt: Date;
234
- version: number;
235
- definitionYml: string;
236
- checksum: string;
237
- message: string | null;
238
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
239
- parentVersion: string | null;
240
- workflow: string;
241
- createdBy: string | null;
242
- } | null;
243
- publishedVersion: {
244
- id: string;
245
- createdAt: Date;
246
- updatedAt: Date;
247
- version: number;
248
- definitionYml: string;
249
- checksum: string;
250
- message: string | null;
251
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
252
- parentVersion: string | null;
253
- workflow: string;
254
- createdBy: string | null;
255
- } | null;
256
- createdBy: {
257
- id: string;
258
- createdAt: Date;
259
- updatedAt: Date;
260
- firstName: string;
261
- lastName: string;
262
- language: string | null;
263
- timezone: number;
264
- locale: string | null;
265
- gender: string | null;
266
- country: string | null;
267
- foreignId: string | null;
268
- assignedAt: Date | null;
269
- lastvisit: Date | null;
270
- retainedFrom: Date | null;
271
- channel: {
272
- name: string | null;
273
- data?: Record<string, any> | null | undefined;
274
- };
275
- username: string;
276
- email: string;
277
- sendEmail: boolean;
278
- state: boolean;
279
- resetCount: number;
280
- resetToken: string | null;
281
- labels: string[];
282
- assignedTo: string | null;
283
- roles: string[];
284
- avatar: string | null;
285
- provider?: {
286
- strategy: "local";
287
- sub?: string | undefined;
288
- } | undefined;
289
- } | null;
290
- definitionYml?: string | undefined;
291
- definition?: any;
292
- }>;
293
- commitWorkflowYaml(args: {
294
- workflowId: string;
295
- definitionYml: string;
296
- message?: string;
297
- parentVersion?: string | null;
298
- action: WorkflowVersionAction;
299
- }, _context: unknown, request?: HexabotMcpRequest): Promise<{
300
- id: string;
301
- createdAt: Date;
302
- updatedAt: Date;
303
- version: number;
304
- definitionYml: string;
305
- checksum: string;
306
- message: string | null;
307
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
308
- parentVersion: string | null;
309
- workflow: string;
310
- createdBy: string | null;
311
- }>;
312
- validateWorkflowYaml(args: {
313
- definitionYml: string;
314
- validateActions?: boolean;
315
- }): Promise<{
316
- valid: boolean;
317
- errors: string[];
318
- definition?: undefined;
319
- } | {
320
- valid: boolean;
321
- errors: never[];
322
- definition: {
323
- defs: Record<string, {
324
- kind: "task";
325
- action: string;
326
- description?: string | undefined;
327
- inputs?: Record<string, import("@hexabot-ai/agentic").JsonValue> | undefined;
328
- bindings?: Record<string, string | string[]> | undefined;
329
- settings?: {
330
- [x: string]: import("@hexabot-ai/agentic").JsonValue;
331
- timeout_ms?: number | undefined;
332
- retries?: {
333
- max_attempts: number;
334
- backoff_ms: number;
335
- max_delay_ms: number;
336
- jitter: number;
337
- multiplier: number;
338
- enabled?: boolean | undefined;
339
- } | undefined;
340
- } | undefined;
341
- } | {
342
- kind: string;
343
- settings: Record<string, unknown>;
344
- description?: string | undefined;
345
- action?: string | undefined;
346
- bindings?: Record<string, string | string[]> | undefined;
347
- }>;
348
- flow: import("@hexabot-ai/agentic").FlowStep[];
349
- outputs: Record<string, string>;
350
- inputs?: {
351
- schema?: Record<string, import("@hexabot-ai/agentic").InputField> | undefined;
352
- } | undefined;
353
- context?: Record<string, import("@hexabot-ai/agentic").JsonValue> | undefined;
354
- defaults?: {
355
- settings?: {
356
- [x: string]: import("@hexabot-ai/agentic").JsonValue;
357
- timeout_ms?: number | undefined;
358
- retries?: {
359
- max_attempts: number;
360
- backoff_ms: number;
361
- max_delay_ms: number;
362
- jitter: number;
363
- multiplier: number;
364
- enabled?: boolean | undefined;
365
- } | undefined;
366
- } | undefined;
367
- } | undefined;
368
- };
369
- }>;
370
- searchWorkflowVersions(args: {
371
- workflowId: string;
372
- } & PaginationArgs): Promise<{
373
- items: unknown[];
374
- total: number;
375
- limit: number | undefined;
376
- skip: number | undefined;
377
- }>;
378
- getWorkflowVersion(args: {
379
- id: string;
380
- workflowId?: string;
381
- }): Promise<{
382
- id: string;
383
- createdAt: Date;
384
- updatedAt: Date;
385
- version: number;
386
- definitionYml: string;
387
- checksum: string;
388
- message: string | null;
389
- action: WorkflowVersionAction | null;
390
- parentVersion: {
391
- id: string;
392
- createdAt: Date;
393
- updatedAt: Date;
394
- version: number;
395
- definitionYml: string;
396
- checksum: string;
397
- message: string | null;
398
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
399
- parentVersion: string | null;
400
- workflow: string;
401
- createdBy: string | null;
402
- } | null;
403
- workflow: {
404
- id: string;
405
- createdAt: Date;
406
- updatedAt: Date;
407
- name: string;
408
- description: string | null;
409
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
410
- schedule: string | null;
411
- inputSchema: any;
412
- builtin: boolean;
413
- x: number;
414
- y: number;
415
- zoom: number;
416
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
417
- createdBy: string | null;
418
- runAfterMs: number;
419
- currentVersion?: string | null | undefined;
420
- publishedVersion?: string | null | undefined;
421
- };
422
- createdBy: {
423
- id: string;
424
- createdAt: Date;
425
- updatedAt: Date;
426
- firstName: string;
427
- lastName: string;
428
- language: string | null;
429
- timezone: number;
430
- locale: string | null;
431
- gender: string | null;
432
- country: string | null;
433
- foreignId: string | null;
434
- assignedAt: Date | null;
435
- lastvisit: Date | null;
436
- retainedFrom: Date | null;
437
- channel: {
438
- name: string | null;
439
- data?: Record<string, any> | null | undefined;
440
- };
441
- username: string;
442
- email: string;
443
- sendEmail: boolean;
444
- state: boolean;
445
- resetCount: number;
446
- resetToken: string | null;
447
- labels: string[];
448
- assignedTo: string | null;
449
- roles: string[];
450
- avatar: string | null;
451
- provider?: {
452
- strategy: "local";
453
- sub?: string | undefined;
454
- } | undefined;
455
- } | null;
456
- }>;
457
- updateWorkflowVersion(args: {
458
- id: string;
459
- message?: string | null;
460
- }): Promise<{
461
- id: string;
462
- createdAt: Date;
463
- updatedAt: Date;
464
- version: number;
465
- definitionYml: string;
466
- checksum: string;
467
- message: string | null;
468
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
469
- parentVersion: string | null;
470
- workflow: string;
471
- createdBy: string | null;
472
- }>;
473
- restoreWorkflowVersion(args: {
474
- workflowId: string;
475
- versionId: string;
476
- message?: string;
477
- }, _context: unknown, request?: HexabotMcpRequest): Promise<{
478
- id: string;
479
- createdAt: Date;
480
- updatedAt: Date;
481
- version: number;
482
- definitionYml: string;
483
- checksum: string;
484
- message: string | null;
485
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
486
- parentVersion: string | null;
487
- workflow: string;
488
- createdBy: string | null;
489
- }>;
490
- publishWorkflow(args: {
491
- id: string;
492
- }): Promise<{
493
- id: string;
494
- createdAt: Date;
495
- updatedAt: Date;
496
- name: string;
497
- description: string | null;
498
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
499
- schedule: string | null;
500
- inputSchema: any;
501
- builtin: boolean;
502
- x: number;
503
- y: number;
504
- zoom: number;
505
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
506
- currentVersion: {
507
- id: string;
508
- createdAt: Date;
509
- updatedAt: Date;
510
- version: number;
511
- definitionYml: string;
512
- checksum: string;
513
- message: string | null;
514
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
515
- parentVersion: string | null;
516
- workflow: string;
517
- createdBy: string | null;
518
- } | null;
519
- publishedVersion: {
520
- id: string;
521
- createdAt: Date;
522
- updatedAt: Date;
523
- version: number;
524
- definitionYml: string;
525
- checksum: string;
526
- message: string | null;
527
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
528
- parentVersion: string | null;
529
- workflow: string;
530
- createdBy: string | null;
531
- } | null;
532
- createdBy: {
533
- id: string;
534
- createdAt: Date;
535
- updatedAt: Date;
536
- firstName: string;
537
- lastName: string;
538
- language: string | null;
539
- timezone: number;
540
- locale: string | null;
541
- gender: string | null;
542
- country: string | null;
543
- foreignId: string | null;
544
- assignedAt: Date | null;
545
- lastvisit: Date | null;
546
- retainedFrom: Date | null;
547
- channel: {
548
- name: string | null;
549
- data?: Record<string, any> | null | undefined;
550
- };
551
- username: string;
552
- email: string;
553
- sendEmail: boolean;
554
- state: boolean;
555
- resetCount: number;
556
- resetToken: string | null;
557
- labels: string[];
558
- assignedTo: string | null;
559
- roles: string[];
560
- avatar: string | null;
561
- provider?: {
562
- strategy: "local";
563
- sub?: string | undefined;
564
- } | undefined;
565
- } | null;
566
- definitionYml?: string | undefined;
567
- definition?: any;
568
- }>;
569
- unpublishWorkflow(args: {
570
- id: string;
571
- }): Promise<{
572
- id: string;
573
- createdAt: Date;
574
- updatedAt: Date;
575
- name: string;
576
- description: string | null;
577
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
578
- schedule: string | null;
579
- inputSchema: any;
580
- builtin: boolean;
581
- x: number;
582
- y: number;
583
- zoom: number;
584
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
585
- currentVersion: {
586
- id: string;
587
- createdAt: Date;
588
- updatedAt: Date;
589
- version: number;
590
- definitionYml: string;
591
- checksum: string;
592
- message: string | null;
593
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
594
- parentVersion: string | null;
595
- workflow: string;
596
- createdBy: string | null;
597
- } | null;
598
- publishedVersion: {
599
- id: string;
600
- createdAt: Date;
601
- updatedAt: Date;
602
- version: number;
603
- definitionYml: string;
604
- checksum: string;
605
- message: string | null;
606
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
607
- parentVersion: string | null;
608
- workflow: string;
609
- createdBy: string | null;
610
- } | null;
611
- createdBy: {
612
- id: string;
613
- createdAt: Date;
614
- updatedAt: Date;
615
- firstName: string;
616
- lastName: string;
617
- language: string | null;
618
- timezone: number;
619
- locale: string | null;
620
- gender: string | null;
621
- country: string | null;
622
- foreignId: string | null;
623
- assignedAt: Date | null;
624
- lastvisit: Date | null;
625
- retainedFrom: Date | null;
626
- channel: {
627
- name: string | null;
628
- data?: Record<string, any> | null | undefined;
629
- };
630
- username: string;
631
- email: string;
632
- sendEmail: boolean;
633
- state: boolean;
634
- resetCount: number;
635
- resetToken: string | null;
636
- labels: string[];
637
- assignedTo: string | null;
638
- roles: string[];
639
- avatar: string | null;
640
- provider?: {
641
- strategy: "local";
642
- sub?: string | undefined;
643
- } | undefined;
644
- } | null;
645
- definitionYml?: string | undefined;
646
- definition?: any;
647
- }>;
648
- runWorkflow(args: {
649
- workflowId: string;
650
- input: Record<string, unknown>;
651
- }, _context: unknown, request?: HexabotMcpRequest): Promise<{
652
- accepted: boolean;
653
- run: {
654
- id: string;
655
- createdAt: Date;
656
- updatedAt: Date;
657
- status: "idle" | "running" | "suspended" | "finished" | "failed";
658
- input: Record<string, any> | null;
659
- output: Record<string, any> | null;
660
- context: Record<string, any>;
661
- snapshot: any;
662
- stepLog: Record<string, any> | null;
663
- suspendedStep: string | null;
664
- suspensionReason: string | null;
665
- suspensionData: unknown;
666
- suspensionStepExecId: string | null;
667
- suspensionIndex: number | null;
668
- suspensionKey: string | null;
669
- suspensionAwaitResults: Record<string, any> | null;
670
- lastResumeData: unknown;
671
- error: string | null;
672
- suspendedAt: Date | null;
673
- finishedAt: Date | null;
674
- failedAt: Date | null;
675
- duration: number | null;
676
- metadata: Record<string, any> | null;
677
- workflow: {
678
- id: string;
679
- createdAt: Date;
680
- updatedAt: Date;
681
- name: string;
682
- description: string | null;
683
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
684
- schedule: string | null;
685
- inputSchema: any;
686
- builtin: boolean;
687
- x: number;
688
- y: number;
689
- zoom: number;
690
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
691
- createdBy: string | null;
692
- runAfterMs: number;
693
- currentVersion?: string | null | undefined;
694
- publishedVersion?: string | null | undefined;
695
- };
696
- triggeredBy: {
697
- id: string;
698
- createdAt: Date;
699
- updatedAt: Date;
700
- firstName: string;
701
- lastName: string;
702
- language: string | null;
703
- timezone: number;
704
- locale: string | null;
705
- gender: string | null;
706
- country: string | null;
707
- foreignId: string | null;
708
- assignedAt: Date | null;
709
- lastvisit: Date | null;
710
- retainedFrom: Date | null;
711
- channel: {
712
- name: string | null;
713
- data?: Record<string, any> | null | undefined;
714
- };
715
- labels: string[];
716
- assignedTo: string | null;
717
- avatar: string | null;
718
- source: string | null;
719
- } | {
720
- id: string;
721
- createdAt: Date;
722
- updatedAt: Date;
723
- firstName: string;
724
- lastName: string;
725
- language: string | null;
726
- timezone: number;
727
- locale: string | null;
728
- gender: string | null;
729
- country: string | null;
730
- foreignId: string | null;
731
- assignedAt: Date | null;
732
- lastvisit: Date | null;
733
- retainedFrom: Date | null;
734
- channel: {
735
- name: string | null;
736
- data?: Record<string, any> | null | undefined;
737
- };
738
- username: string;
739
- email: string;
740
- sendEmail: boolean;
741
- state: boolean;
742
- resetCount: number;
743
- resetToken: string | null;
744
- labels: string[];
745
- assignedTo: string | null;
746
- roles: string[];
747
- avatar: string | null;
748
- provider?: {
749
- strategy: "local";
750
- sub?: string | undefined;
751
- } | undefined;
752
- } | null;
753
- workflowVersion?: {
754
- id: string;
755
- createdAt: Date;
756
- updatedAt: Date;
757
- version: number;
758
- definitionYml: string;
759
- checksum: string;
760
- message: string | null;
761
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
762
- parentVersion: string | null;
763
- workflow: string;
764
- createdBy: string | null;
765
- } | null | undefined;
766
- thread?: {
767
- id: string;
768
- createdAt: Date;
769
- updatedAt: Date;
770
- status: "open" | "closed";
771
- subscriber: string;
772
- source: string;
773
- lastMessageAt?: Date | null | undefined;
774
- closedAt?: Date | null | undefined;
775
- closeReason?: "manual" | "inactivity" | null | undefined;
776
- title?: string | null | undefined;
777
- } | null | undefined;
778
- parentRun?: {
779
- id: string;
780
- createdAt: Date;
781
- updatedAt: Date;
782
- status: "idle" | "running" | "suspended" | "finished" | "failed";
783
- input: Record<string, any> | null;
784
- output: Record<string, any> | null;
785
- context: Record<string, any>;
786
- snapshot: any;
787
- stepLog: Record<string, any> | null;
788
- suspendedStep: string | null;
789
- suspensionReason: string | null;
790
- suspensionData: unknown;
791
- suspensionStepExecId: string | null;
792
- suspensionIndex: number | null;
793
- suspensionKey: string | null;
794
- suspensionAwaitResults: Record<string, any> | null;
795
- lastResumeData: unknown;
796
- error: string | null;
797
- suspendedAt: Date | null;
798
- finishedAt: Date | null;
799
- failedAt: Date | null;
800
- duration: number | null;
801
- metadata: Record<string, any> | null;
802
- workflow: string;
803
- workflowVersion: string | null;
804
- triggeredBy: string | null;
805
- parentRun: string | null;
806
- } | null | undefined;
807
- } | null;
808
- }>;
809
- searchWorkflowRuns(args: {
810
- workflowId?: string;
811
- status?: string;
812
- } & PaginationArgs): Promise<{
813
- items: unknown[];
814
- total: number;
815
- limit: number | undefined;
816
- skip: number | undefined;
817
- }>;
818
- getWorkflowRun(args: {
819
- id: string;
820
- }): Promise<{
821
- id: string;
822
- createdAt: Date;
823
- updatedAt: Date;
824
- status: "idle" | "running" | "suspended" | "finished" | "failed";
825
- input: Record<string, any> | null;
826
- output: Record<string, any> | null;
827
- context: Record<string, any>;
828
- snapshot: any;
829
- stepLog: Record<string, any> | null;
830
- suspendedStep: string | null;
831
- suspensionReason: string | null;
832
- suspensionData: unknown;
833
- suspensionStepExecId: string | null;
834
- suspensionIndex: number | null;
835
- suspensionKey: string | null;
836
- suspensionAwaitResults: Record<string, any> | null;
837
- lastResumeData: unknown;
838
- error: string | null;
839
- suspendedAt: Date | null;
840
- finishedAt: Date | null;
841
- failedAt: Date | null;
842
- duration: number | null;
843
- metadata: Record<string, any> | null;
844
- workflow: {
845
- id: string;
846
- createdAt: Date;
847
- updatedAt: Date;
848
- name: string;
849
- description: string | null;
850
- type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
851
- schedule: string | null;
852
- inputSchema: any;
853
- builtin: boolean;
854
- x: number;
855
- y: number;
856
- zoom: number;
857
- direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
858
- createdBy: string | null;
859
- runAfterMs: number;
860
- currentVersion?: string | null | undefined;
861
- publishedVersion?: string | null | undefined;
862
- };
863
- triggeredBy: {
864
- id: string;
865
- createdAt: Date;
866
- updatedAt: Date;
867
- firstName: string;
868
- lastName: string;
869
- language: string | null;
870
- timezone: number;
871
- locale: string | null;
872
- gender: string | null;
873
- country: string | null;
874
- foreignId: string | null;
875
- assignedAt: Date | null;
876
- lastvisit: Date | null;
877
- retainedFrom: Date | null;
878
- channel: {
879
- name: string | null;
880
- data?: Record<string, any> | null | undefined;
881
- };
882
- labels: string[];
883
- assignedTo: string | null;
884
- avatar: string | null;
885
- source: string | null;
886
- } | {
887
- id: string;
888
- createdAt: Date;
889
- updatedAt: Date;
890
- firstName: string;
891
- lastName: string;
892
- language: string | null;
893
- timezone: number;
894
- locale: string | null;
895
- gender: string | null;
896
- country: string | null;
897
- foreignId: string | null;
898
- assignedAt: Date | null;
899
- lastvisit: Date | null;
900
- retainedFrom: Date | null;
901
- channel: {
902
- name: string | null;
903
- data?: Record<string, any> | null | undefined;
904
- };
905
- username: string;
906
- email: string;
907
- sendEmail: boolean;
908
- state: boolean;
909
- resetCount: number;
910
- resetToken: string | null;
911
- labels: string[];
912
- assignedTo: string | null;
913
- roles: string[];
914
- avatar: string | null;
915
- provider?: {
916
- strategy: "local";
917
- sub?: string | undefined;
918
- } | undefined;
919
- } | null;
920
- workflowVersion?: {
921
- id: string;
922
- createdAt: Date;
923
- updatedAt: Date;
924
- version: number;
925
- definitionYml: string;
926
- checksum: string;
927
- message: string | null;
928
- action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
929
- parentVersion: string | null;
930
- workflow: string;
931
- createdBy: string | null;
932
- } | null | undefined;
933
- thread?: {
934
- id: string;
935
- createdAt: Date;
936
- updatedAt: Date;
937
- status: "open" | "closed";
938
- subscriber: string;
939
- source: string;
940
- lastMessageAt?: Date | null | undefined;
941
- closedAt?: Date | null | undefined;
942
- closeReason?: "manual" | "inactivity" | null | undefined;
943
- title?: string | null | undefined;
944
- } | null | undefined;
945
- parentRun?: {
946
- id: string;
947
- createdAt: Date;
948
- updatedAt: Date;
949
- status: "idle" | "running" | "suspended" | "finished" | "failed";
950
- input: Record<string, any> | null;
951
- output: Record<string, any> | null;
952
- context: Record<string, any>;
953
- snapshot: any;
954
- stepLog: Record<string, any> | null;
955
- suspendedStep: string | null;
956
- suspensionReason: string | null;
957
- suspensionData: unknown;
958
- suspensionStepExecId: string | null;
959
- suspensionIndex: number | null;
960
- suspensionKey: string | null;
961
- suspensionAwaitResults: Record<string, any> | null;
962
- lastResumeData: unknown;
963
- error: string | null;
964
- suspendedAt: Date | null;
965
- finishedAt: Date | null;
966
- failedAt: Date | null;
967
- duration: number | null;
968
- metadata: Record<string, any> | null;
969
- workflow: string;
970
- workflowVersion: string | null;
971
- triggeredBy: string | null;
972
- parentRun: string | null;
973
- } | null | undefined;
974
- }>;
975
- searchMemoryDefinitions(args: {
976
- query?: string;
977
- scope?: MemoryScope;
978
- } & PaginationArgs): Promise<{
979
- items: unknown[];
980
- total: number;
981
- limit: number | undefined;
982
- skip: number | undefined;
983
- }>;
984
- getMemoryDefinition(args: {
985
- id: string;
986
- }): Promise<{
987
- id: string;
988
- createdAt: Date;
989
- updatedAt: Date;
990
- name: string;
991
- slug: string;
992
- scope: MemoryScope;
993
- schema: any;
994
- ttlSeconds?: number | null | undefined;
995
- }>;
996
- createMemoryDefinition(args: {
997
- name: string;
998
- slug: string;
999
- scope: MemoryScope;
1000
- schema: Record<string, unknown>;
1001
- ttlSeconds?: number | null;
1002
- }): Promise<{
1003
- id: string;
1004
- createdAt: Date;
1005
- updatedAt: Date;
1006
- name: string;
1007
- slug: string;
1008
- scope: MemoryScope;
1009
- schema: any;
1010
- ttlSeconds?: number | null | undefined;
1011
- }>;
1012
- updateMemoryDefinition(args: {
1013
- id: string;
1014
- } & Record<string, unknown>): Promise<{
1015
- id: string;
1016
- createdAt: Date;
1017
- updatedAt: Date;
1018
- name: string;
1019
- slug: string;
1020
- scope: MemoryScope;
1021
- schema: any;
1022
- ttlSeconds?: number | null | undefined;
1023
- }>;
1024
- searchActions(args: {
1025
- query?: string;
1026
- workflowType?: WorkflowType;
1027
- }): Promise<{
1028
- items: {
1029
- name: `${string}_${string}`;
1030
- description: string;
1031
- icon: string;
1032
- color: string;
1033
- group: string;
1034
- workflowTypes: WorkflowType[];
1035
- supportedBindings: readonly string[];
1036
- inputSchema: import("json-schema").JSONSchema7;
1037
- outputSchema: import("json-schema").JSONSchema7;
1038
- settingSchema: import("json-schema").JSONSchema7;
1039
- }[];
1040
- }>;
1041
- getAction(args: {
1042
- name: string;
1043
- }): Promise<{
1044
- name: `${string}_${string}`;
1045
- description: string;
1046
- icon: string;
1047
- color: string;
1048
- group: string;
1049
- workflowTypes: WorkflowType[];
1050
- supportedBindings: readonly string[];
1051
- inputSchema: import("json-schema").JSONSchema7;
1052
- outputSchema: import("json-schema").JSONSchema7;
1053
- settingSchema: import("json-schema").JSONSchema7;
1054
- }>;
1055
- searchBindings(args: {
1056
- query?: string;
1057
- }): Promise<{
1058
- items: {
1059
- schema: import("json-schema").JSONSchema7;
1060
- multiple: boolean;
1061
- color: string;
1062
- icon: string;
1063
- supportedBindings: readonly string[];
1064
- actionPolicy: import("@hexabot-ai/agentic/dist/types/bindings/base-binding").BindingActionPolicy;
1065
- kind: string;
1066
- }[];
1067
- }>;
1068
- getBinding(args: {
1069
- kind: string;
1070
- }): Promise<{
1071
- schema: import("json-schema").JSONSchema7;
1072
- multiple: boolean;
1073
- color: string;
1074
- icon: string;
1075
- supportedBindings: readonly string[];
1076
- actionPolicy: import("@hexabot-ai/agentic/dist/types/bindings/base-binding").BindingActionPolicy;
1077
- kind: string;
1078
- }>;
1079
- searchCredentials(args: {
1080
- query?: string;
1081
- ownerId?: string;
1082
- } & PaginationArgs): Promise<{
1083
- items: Record<string, unknown>[];
1084
- total: number;
1085
- limit: number | undefined;
1086
- skip: number | undefined;
1087
- }>;
1088
- getCredential(args: {
1089
- id: string;
1090
- }): Promise<{
1091
- id: string;
1092
- createdAt: Date;
1093
- updatedAt: Date;
1094
- name: string;
1095
- owner: {
1096
- id: string;
1097
- createdAt: Date;
1098
- updatedAt: Date;
1099
- firstName: string;
1100
- lastName: string;
1101
- language: string | null;
1102
- timezone: number;
1103
- locale: string | null;
1104
- gender: string | null;
1105
- country: string | null;
1106
- foreignId: string | null;
1107
- assignedAt: Date | null;
1108
- lastvisit: Date | null;
1109
- retainedFrom: Date | null;
1110
- channel: {
1111
- name: string | null;
1112
- data?: Record<string, any> | null | undefined;
1113
- };
1114
- username: string;
1115
- email: string;
1116
- sendEmail: boolean;
1117
- state: boolean;
1118
- resetCount: number;
1119
- resetToken: string | null;
1120
- labels: string[];
1121
- assignedTo: string | null;
1122
- roles: string[];
1123
- avatar: string | null;
1124
- provider?: {
1125
- strategy: "local";
1126
- sub?: string | undefined;
1127
- } | undefined;
1128
- } | null;
1129
- }>;
1130
- searchMcpServers(args: {
1131
- query?: string;
1132
- enabled?: boolean;
1133
- transport?: McpServerTransport;
1134
- credentialId?: string;
1135
- } & PaginationArgs): Promise<{
1136
- items: unknown[];
1137
- total: number;
1138
- limit: number | undefined;
1139
- skip: number | undefined;
1140
- }>;
1141
- getMcpServer(args: {
1142
- id: string;
1143
- }): Promise<{
1144
- id: string;
1145
- createdAt: Date;
1146
- updatedAt: Date;
1147
- name: string;
1148
- enabled: boolean;
1149
- transport: McpServerTransport;
1150
- url: string | null;
1151
- command: string | null;
1152
- args: string[] | null;
1153
- cwd: string | null;
1154
- credential?: {
1155
- id: string;
1156
- createdAt: Date;
1157
- updatedAt: Date;
1158
- name: string;
1159
- owner: string;
1160
- } | null | undefined;
1161
- }>;
1162
- createMcpServer(args: {
1163
- name: string;
1164
- enabled?: boolean;
1165
- transport?: McpServerTransport;
1166
- url?: string | null;
1167
- command?: string | null;
1168
- args?: string[] | null;
1169
- cwd?: string | null;
1170
- credential?: string | null;
1171
- }): Promise<{
1172
- id: string;
1173
- createdAt: Date;
1174
- updatedAt: Date;
1175
- name: string;
1176
- enabled: boolean;
1177
- transport: import("@hexabot-ai/types/dist/types/workflow/domain").McpServerTransport;
1178
- url: string | null;
1179
- command: string | null;
1180
- args: string[] | null;
1181
- cwd: string | null;
1182
- credential: string | null;
1183
- }>;
1184
- updateMcpServer(args: {
1185
- id: string;
1186
- } & Record<string, unknown>): Promise<{
1187
- id: string;
1188
- createdAt: Date;
1189
- updatedAt: Date;
1190
- name: string;
1191
- enabled: boolean;
1192
- transport: import("@hexabot-ai/types/dist/types/workflow/domain").McpServerTransport;
1193
- url: string | null;
1194
- command: string | null;
1195
- args: string[] | null;
1196
- cwd: string | null;
1197
- credential: string | null;
1198
- }>;
1199
- searchContentTypes(args: {
1200
- query?: string;
1201
- } & PaginationArgs): Promise<{
1202
- items: unknown[];
1203
- total: number;
1204
- limit: number | undefined;
1205
- skip: number | undefined;
1206
- }>;
1207
- getContentType(args: {
1208
- id: string;
1209
- }): Promise<{
1210
- id: string;
1211
- createdAt: Date;
1212
- updatedAt: Date;
1213
- name: string;
1214
- schema: any;
1215
- }>;
1216
- createContentType(args: {
1217
- name: string;
1218
- schema: Record<string, unknown>;
1219
- }): Promise<{
1220
- id: string;
1221
- createdAt: Date;
1222
- updatedAt: Date;
1223
- name: string;
1224
- schema: any;
1225
- }>;
1226
- updateContentType(args: {
1227
- id: string;
1228
- } & Record<string, unknown>): Promise<{
1229
- id: string;
1230
- createdAt: Date;
1231
- updatedAt: Date;
1232
- name: string;
1233
- schema: any;
1234
- }>;
1235
- searchContent(args: {
1236
- query?: string;
1237
- contentTypeId?: string;
1238
- status?: boolean;
1239
- } & PaginationArgs): Promise<{
1240
- items: unknown[];
1241
- total: number;
1242
- limit: number | undefined;
1243
- skip: number | undefined;
1244
- } | {
1245
- items: {
1246
- id: string;
1247
- createdAt: Date;
1248
- updatedAt: Date;
1249
- title: string;
1250
- status: boolean;
1251
- properties: Record<string, unknown> | null;
1252
- searchText: string;
1253
- contentType: {
1254
- id: string;
1255
- createdAt: Date;
1256
- updatedAt: Date;
1257
- name: string;
1258
- schema: any;
1259
- };
1260
- }[];
1261
- limit: number;
1262
- skip: number;
1263
- }>;
1264
- getContent(args: {
1265
- id: string;
1266
- }): Promise<{
1267
- id: string;
1268
- createdAt: Date;
1269
- updatedAt: Date;
1270
- title: string;
1271
- status: boolean;
1272
- properties: Record<string, unknown> | null;
1273
- searchText: string;
1274
- contentType: {
1275
- id: string;
1276
- createdAt: Date;
1277
- updatedAt: Date;
1278
- name: string;
1279
- schema: any;
1280
- };
1281
- }>;
1282
- createContent(args: {
1283
- contentType: string;
1284
- title: string;
1285
- status?: boolean;
1286
- properties?: Record<string, unknown>;
1287
- }): Promise<{
1288
- id: string;
1289
- createdAt: Date;
1290
- updatedAt: Date;
1291
- title: string;
1292
- status: boolean;
1293
- properties: Record<string, unknown> | null;
1294
- searchText: string;
1295
- contentType: string;
1296
- }>;
1297
- updateContent(args: {
1298
- id: string;
1299
- } & Record<string, unknown>): Promise<{
1300
- id: string;
1301
- createdAt: Date;
1302
- updatedAt: Date;
1303
- title: string;
1304
- status: boolean;
1305
- properties: Record<string, unknown> | null;
1306
- searchText: string;
1307
- contentType: string;
1308
- }>;
1309
- searchRagContent(args: {
1310
- query: string;
1311
- mode?: 'embedding' | 'lexical';
1312
- limit: number;
1313
- contentTypeId?: string;
1314
- includeInactive?: boolean;
1315
- }): Promise<{
1316
- items: import("../..").RagHit[];
1317
- }>;
1318
- static sanitizeCredential<T extends Record<string, unknown>>(credential: T): T;
1319
- private buildWorkflowWhere;
1320
- private requireWorkflow;
1321
- private commitWorkflowDefinition;
1322
- private findOptions;
1323
- private listWithCount;
1324
- private contains;
1325
- private getWorkflowValidationActions;
1326
- private getActor;
1327
- private getActorId;
1328
- }
1329
- export {};
1
+ export * from './index';