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