@hexabot-ai/api 3.2.2-alpha.1 → 3.2.2-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/actions/actions.service.d.ts +3 -3
- package/dist/actions/base-action.d.ts +3 -3
- package/dist/actions/create-action.d.ts +1 -1
- package/dist/actions/types.d.ts +3 -3
- package/dist/analytics/controllers/stats.controller.d.ts +1 -1
- package/dist/analytics/dto/stats.dto.d.ts +1 -1
- package/dist/analytics/entities/stats.entity.d.ts +1 -1
- package/dist/analytics/repositories/stats.repository.d.ts +1 -1
- package/dist/analytics/services/stats.service.d.ts +7 -7
- package/dist/app.controller.d.ts +1 -0
- package/dist/app.controller.js +1 -0
- package/dist/app.controller.js.map +1 -1
- package/dist/app.module.js +11 -1
- package/dist/app.module.js.map +1 -1
- package/dist/attachment/controllers/attachment.controller.d.ts +1 -1
- package/dist/attachment/dto/attachment.dto.d.ts +2 -2
- package/dist/attachment/entities/attachment.entity.d.ts +3 -3
- package/dist/attachment/guards/attachment-ability.guard.d.ts +2 -2
- package/dist/attachment/repositories/attachment.repository.d.ts +2 -2
- package/dist/attachment/services/attachment.service.d.ts +3 -3
- package/dist/attachment/utilities/index.js +2 -2
- package/dist/attachment/utilities/index.js.map +1 -1
- package/dist/audit/controllers/audit-log.controller.d.ts +2 -2
- package/dist/audit/dto/audit-log.dto.d.ts +1 -1
- package/dist/audit/entities/audit-log.entity.d.ts +1 -1
- package/dist/audit/exporters/audit-backend.factory.d.ts +1 -1
- package/dist/audit/exporters/audit-safe.exporter.d.ts +1 -1
- package/dist/audit/repositories/audit-log.repository.d.ts +1 -1
- package/dist/audit/services/audit-log-record.service.d.ts +1 -1
- package/dist/bindings/base-binding-kind.d.ts +2 -2
- package/dist/bindings/runtime-bindings.service.d.ts +2 -2
- package/dist/bootstrap.js +11 -0
- package/dist/bootstrap.js.map +1 -1
- package/dist/channel/channel.controller.d.ts +1 -1
- package/dist/channel/channel.service.d.ts +5 -5
- package/dist/channel/channel.service.js +3 -1
- package/dist/channel/channel.service.js.map +1 -1
- package/dist/channel/dto/source.dto.d.ts +1 -1
- package/dist/channel/entities/source.entity.d.ts +2 -2
- package/dist/channel/lib/Handler.d.ts +7 -7
- package/dist/channel/lib/Handler.js +2 -2
- package/dist/channel/lib/Handler.js.map +1 -1
- package/dist/channel/lib/__test__/label.mock.js +0 -24
- package/dist/channel/lib/__test__/label.mock.js.map +1 -1
- package/dist/channel/lib/channel-event-bus.d.ts +1 -1
- package/dist/channel/lib/inbound-events/channel-inbound-event-context.d.ts +1 -1
- package/dist/channel/lib/inbound-events/channel-inbound-event-decoder.d.ts +1 -1
- package/dist/channel/lib/inbound-events/channel-inbound-event.d.ts +2 -2
- package/dist/channel/lib/inbound-events/message-inbound-event.d.ts +1 -1
- package/dist/channel/lib/transports/http-channel-handler.d.ts +2 -2
- package/dist/channel/lib/transports/websocket-channel-handler.d.ts +3 -3
- package/dist/channel/repositories/source.repository.d.ts +1 -1
- package/dist/channel/services/channel-attachment.service.d.ts +3 -3
- package/dist/channel/services/source.service.d.ts +5 -3
- package/dist/channel/services/source.service.js +22 -0
- package/dist/channel/services/source.service.js.map +1 -1
- package/dist/channel/services/subscriber-resolver.service.d.ts +2 -2
- package/dist/channel/source.controller.d.ts +1 -1
- package/dist/channel/webhook.controller.d.ts +1 -1
- package/dist/chat/chat.module.js +1 -1
- package/dist/chat/chat.module.js.map +1 -1
- package/dist/chat/controllers/label-group.controller.d.ts +1 -1
- package/dist/chat/controllers/label.controller.d.ts +1 -1
- package/dist/chat/controllers/message.controller.d.ts +2 -2
- package/dist/chat/controllers/subscriber.controller.d.ts +3 -3
- package/dist/chat/controllers/thread.controller.d.ts +2 -2
- package/dist/chat/dto/label-group.dto.d.ts +1 -1
- package/dist/chat/dto/label.dto.d.ts +1 -2
- package/dist/chat/dto/label.dto.js +0 -6
- package/dist/chat/dto/label.dto.js.map +1 -1
- package/dist/chat/dto/message.dto.d.ts +1 -1
- package/dist/chat/dto/subscriber.dto.d.ts +3 -3
- package/dist/chat/dto/thread.dto.d.ts +1 -1
- package/dist/chat/entities/label-group.entity.d.ts +1 -3
- package/dist/chat/entities/label.entity.d.ts +1 -5
- package/dist/chat/entities/label.entity.js +0 -5
- package/dist/chat/entities/label.entity.js.map +1 -1
- package/dist/chat/entities/message.entity.d.ts +2 -2
- package/dist/chat/entities/subscriber.entity.d.ts +4 -4
- package/dist/chat/entities/subscriber.entity.js +3 -1
- package/dist/chat/entities/subscriber.entity.js.map +1 -1
- package/dist/chat/entities/thread.entity.d.ts +2 -2
- package/dist/chat/repositories/label-group.repository.d.ts +1 -1
- package/dist/chat/repositories/label.repository.d.ts +1 -1
- package/dist/chat/repositories/message.repository.d.ts +1 -1
- package/dist/chat/repositories/subscriber.repository.d.ts +1 -1
- package/dist/chat/repositories/thread.repository.d.ts +1 -1
- package/dist/chat/services/chat.service.d.ts +4 -4
- package/dist/chat/services/label-group.service.d.ts +1 -1
- package/dist/chat/services/label.service.d.ts +1 -1
- package/dist/chat/services/message.service.d.ts +2 -2
- package/dist/chat/services/subscriber.service.d.ts +5 -6
- package/dist/chat/services/subscriber.service.js +2 -2
- package/dist/chat/services/subscriber.service.js.map +1 -1
- package/dist/chat/services/thread.service.d.ts +2 -2
- package/dist/chat/types/channel.d.ts +1 -1
- package/dist/cms/controllers/content-type.controller.d.ts +1 -1
- package/dist/cms/controllers/content.controller.d.ts +1 -1
- package/dist/cms/controllers/menu.controller.d.ts +2 -2
- package/dist/cms/dto/content.dto.d.ts +1 -1
- package/dist/cms/dto/contentType.dto.d.ts +2 -2
- package/dist/cms/dto/menu.dto.d.ts +1 -1
- package/dist/cms/entities/content-type.entity.d.ts +2 -2
- package/dist/cms/entities/content-type.entity.js +3 -2
- package/dist/cms/entities/content-type.entity.js.map +1 -1
- package/dist/cms/entities/content.entity.d.ts +2 -2
- package/dist/cms/entities/content.entity.js +4 -3
- package/dist/cms/entities/content.entity.js.map +1 -1
- package/dist/cms/entities/menu.entity.d.ts +1 -1
- package/dist/cms/repositories/content-type.repository.d.ts +1 -1
- package/dist/cms/repositories/content.repository.d.ts +1 -1
- package/dist/cms/repositories/menu.repository.d.ts +1 -1
- package/dist/cms/services/content-type.service.d.ts +2 -2
- package/dist/cms/services/content-type.service.js.map +1 -1
- package/dist/cms/services/content.service.d.ts +1 -1
- package/dist/cms/services/menu.service.d.ts +1 -1
- package/dist/cms/services/rag-backend.service.d.ts +2 -2
- package/dist/cms/services/rag-indexer.service.d.ts +2 -2
- package/dist/cms/services/rag-retriever.service.d.ts +1 -1
- package/dist/cms/services/rag.service.d.ts +4 -4
- package/dist/config/index.js +14 -2
- package/dist/config/index.js.map +1 -1
- package/dist/config/types.d.ts +9 -0
- package/dist/database/decorators/json-column.decorator.js +1 -0
- package/dist/database/decorators/json-column.decorator.js.map +1 -1
- package/dist/database/entities/base.entity.d.ts +1 -1
- package/dist/database/typeorm-config.service.js +1 -1
- package/dist/database/typeorm-config.service.js.map +1 -1
- package/dist/extension/cleanup.service.d.ts +3 -3
- package/dist/extension/extension.module.d.ts +1 -1
- package/dist/extension/types.d.ts +1 -1
- package/dist/extensions/actions/ai/agent.action.d.ts +3 -3
- package/dist/extensions/actions/ai/ai-base.action.d.ts +5 -5
- package/dist/extensions/actions/ai/generate-object.action.d.ts +2 -2
- package/dist/extensions/actions/ai/generate-object.base.action.d.ts +3 -3
- package/dist/extensions/actions/ai/generate-reply.action.d.ts +2 -2
- package/dist/extensions/actions/ai/generate-text.action.d.ts +2 -2
- package/dist/extensions/actions/ai/generate-text.base.action.d.ts +3 -3
- package/dist/extensions/actions/ai/infer-object.action.d.ts +2 -2
- package/dist/extensions/actions/ai/mcp.binding.js +4 -3
- package/dist/extensions/actions/ai/mcp.binding.js.map +1 -1
- package/dist/extensions/actions/ai/retrieve-content-rag.action.d.ts +1 -1
- package/dist/extensions/actions/memory/update-memory.action.d.ts +4 -4
- package/dist/extensions/actions/messaging/attachment.action.d.ts +3 -3
- package/dist/extensions/actions/messaging/await-reply.action.d.ts +4 -4
- package/dist/extensions/actions/messaging/buttons.action.d.ts +3 -3
- package/dist/extensions/actions/messaging/list.action.d.ts +3 -3
- package/dist/extensions/actions/messaging/message-action.base.d.ts +6 -6
- package/dist/extensions/actions/messaging/quick-replies.action.d.ts +3 -3
- package/dist/extensions/actions/messaging/text-message.action.d.ts +3 -3
- package/dist/extensions/actions/subscriber/handover.action.d.ts +1 -1
- package/dist/extensions/actions/subscriber/update-labels.action.d.ts +1 -1
- package/dist/extensions/actions/web/http-request.action.d.ts +1 -1
- package/dist/extensions/actions/web/http-request.action.js +15 -4
- package/dist/extensions/actions/web/http-request.action.js.map +1 -1
- package/dist/extensions/actions/web/send-mail.action.d.ts +4 -4
- package/dist/extensions/channels/web/base-web-channel.d.ts +8 -6
- package/dist/extensions/channels/web/base-web-channel.js +37 -17
- package/dist/extensions/channels/web/base-web-channel.js.map +1 -1
- package/dist/extensions/channels/web/inbound/events/base-web-inbound.event.d.ts +3 -3
- package/dist/extensions/channels/web/inbound/events/delivery.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/attachment.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/location.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/payload.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/postback.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/quick-reply.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/text.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/messages/web-message.event.d.ts +3 -3
- package/dist/extensions/channels/web/inbound/events/read.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/typing.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/events/unsupported.event.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/web-inbound-event-decoder.d.ts +2 -2
- package/dist/extensions/channels/web/inbound/web-inbound-message-encoder.d.ts +1 -1
- package/dist/extensions/channels/web/outbound/web-outbound-message-encoder.d.ts +4 -4
- package/dist/extensions/channels/web/outbound/web-outbound-message-encoder.js +4 -4
- package/dist/extensions/channels/web/outbound/web-outbound-message-encoder.js.map +1 -1
- package/dist/extensions/channels/web/services/web-history.service.d.ts +2 -2
- package/dist/extensions/channels/web/services/web-session.service.d.ts +12 -6
- package/dist/extensions/channels/web/services/web-session.service.js +15 -0
- package/dist/extensions/channels/web/services/web-session.service.js.map +1 -1
- package/dist/extensions/helpers/local-storage/index.helper.d.ts +2 -2
- package/dist/health/health.service.d.ts +3 -3
- package/dist/helper/helper.service.d.ts +2 -2
- package/dist/helper/lib/base-helper.d.ts +2 -2
- package/dist/helper/lib/base-storage-helper.d.ts +1 -1
- package/dist/helper/types.d.ts +1 -1
- package/dist/i18n/controllers/language.controller.d.ts +1 -1
- package/dist/i18n/controllers/translation.controller.d.ts +1 -1
- package/dist/i18n/dto/language.dto.d.ts +1 -1
- package/dist/i18n/dto/translation.dto.d.ts +1 -1
- package/dist/i18n/entities/language.entity.d.ts +1 -1
- package/dist/i18n/entities/translation.entity.d.ts +1 -1
- package/dist/i18n/repositories/language.repository.d.ts +1 -1
- package/dist/i18n/repositories/translation.repository.d.ts +1 -1
- package/dist/i18n/seeds/language.seed.d.ts +1 -1
- package/dist/i18n/seeds/translation.seed.d.ts +1 -1
- package/dist/i18n/services/i18n.service.d.ts +2 -2
- package/dist/i18n/services/language.service.d.ts +1 -1
- package/dist/i18n/services/translation.service.d.ts +3 -3
- package/dist/license/services/lemon-squeezy.service.js +2 -2
- package/dist/license/services/lemon-squeezy.service.js.map +1 -1
- package/dist/license/services/license.service.d.ts +5 -5
- package/dist/mailer/mailer.module.js +1 -49
- package/dist/mailer/mailer.module.js.map +1 -1
- package/dist/mailer/mailer.service.d.ts +11 -2
- package/dist/mailer/mailer.service.js +69 -3
- package/dist/mailer/mailer.service.js.map +1 -1
- package/dist/mcp/controllers/mcp-token.controller.d.ts +47 -0
- package/dist/mcp/controllers/mcp-token.controller.js +70 -0
- package/dist/mcp/controllers/mcp-token.controller.js.map +1 -0
- package/dist/mcp/decorators/mcp-permission.decorator.d.ts +8 -0
- package/dist/mcp/decorators/mcp-permission.decorator.js +11 -0
- package/dist/mcp/decorators/mcp-permission.decorator.js.map +1 -0
- package/dist/mcp/dto/mcp-token.dto.d.ts +17 -0
- package/dist/mcp/dto/mcp-token.dto.js +40 -0
- package/dist/mcp/dto/mcp-token.dto.js.map +1 -0
- package/dist/mcp/entities/mcp-token.entity.d.ts +111 -0
- package/dist/mcp/entities/mcp-token.entity.js +69 -0
- package/dist/mcp/entities/mcp-token.entity.js.map +1 -0
- package/dist/mcp/guards/hexabot-mcp-token.guard.d.ts +9 -0
- package/dist/mcp/guards/hexabot-mcp-token.guard.js +49 -0
- package/dist/mcp/guards/hexabot-mcp-token.guard.js.map +1 -0
- package/dist/mcp/guards/mcp-permission.guard.d.ts +9 -0
- package/dist/mcp/guards/mcp-permission.guard.js +47 -0
- package/dist/mcp/guards/mcp-permission.guard.js.map +1 -0
- package/dist/mcp/mcp-api.module.d.ts +2 -0
- package/dist/mcp/mcp-api.module.js +65 -0
- package/dist/mcp/mcp-api.module.js.map +1 -0
- package/dist/mcp/repositories/mcp-token.repository.d.ts +8 -0
- package/dist/mcp/repositories/mcp-token.repository.js +41 -0
- package/dist/mcp/repositories/mcp-token.repository.js.map +1 -0
- package/dist/mcp/services/mcp-token.service.d.ts +24 -0
- package/dist/mcp/services/mcp-token.service.js +106 -0
- package/dist/mcp/services/mcp-token.service.js.map +1 -0
- package/dist/mcp/tools/hexabot-mcp.tools.d.ts +1141 -0
- package/dist/mcp/tools/hexabot-mcp.tools.js +957 -0
- package/dist/mcp/tools/hexabot-mcp.tools.js.map +1 -0
- package/dist/mcp/types.d.ts +7 -0
- package/dist/{utils/types/extension.js → mcp/types.js} +1 -1
- package/dist/mcp/types.js.map +1 -0
- package/dist/migration/migration.command.d.ts +1 -1
- package/dist/migration/migration.service.d.ts +3 -3
- package/dist/migration/types.d.ts +2 -2
- package/dist/setting/base-setting-group.d.ts +2 -2
- package/dist/setting/controllers/setting.controller.d.ts +1 -1
- package/dist/setting/create-setting-group.d.ts +2 -2
- package/dist/setting/dto/metadata.dto.d.ts +1 -1
- package/dist/setting/dto/setting.dto.d.ts +1 -1
- package/dist/setting/entities/metadata.entity.d.ts +1 -1
- package/dist/setting/entities/setting.entity.d.ts +1 -1
- package/dist/setting/repositories/metadata.repository.d.ts +1 -1
- package/dist/setting/repositories/setting.repository.d.ts +1 -1
- package/dist/setting/runtime-settings.seed.d.ts +3 -3
- package/dist/setting/seeds/metadata.seed.d.ts +1 -1
- package/dist/setting/seeds/setting.seed.d.ts +1 -1
- package/dist/setting/services/metadata.service.d.ts +1 -1
- package/dist/setting/services/runtime-settings.service.d.ts +1 -1
- package/dist/setting/services/setting.service.d.ts +4 -4
- package/dist/static/assets/browser-ponyfill-DN-Mu1Dr.js +2 -0
- package/dist/static/assets/{cssMode-ClQbC1-G.js → cssMode-BCWxI_Ux.js} +1 -1
- package/dist/static/assets/{freemarker2-DRxgvoL0.js → freemarker2-CFvevPey.js} +1 -1
- package/dist/static/assets/{handlebars-CTQECjcj.js → handlebars-BCStA9Eg.js} +1 -1
- package/dist/static/assets/{html-DvVbNWXL.js → html-DkIwCA7q.js} +1 -1
- package/dist/static/assets/{htmlMode-DHCoon1T.js → htmlMode-DHeMkUp8.js} +1 -1
- package/dist/static/assets/{index-BgFwJPy7.js → index-C6VeVxYx.js} +2152 -2149
- package/dist/static/assets/{javascript-CiEs6Ej5.js → javascript-DLPKJzLc.js} +1 -1
- package/dist/static/assets/{jsonMode-DTfAuumC.js → jsonMode-BUIDFK3O.js} +1 -1
- package/dist/static/assets/{liquid-B714yIaN.js → liquid-B0XmwdKh.js} +1 -1
- package/dist/static/assets/{lspLanguageFeatures-r73pyfl4.js → lspLanguageFeatures-Fcpw3Ev_.js} +1 -1
- package/dist/static/assets/{mdx-D5IAs7yq.js → mdx-DmJKi-dU.js} +1 -1
- package/dist/static/assets/{python-ehBpsG6S.js → python-B1WnWY4I.js} +1 -1
- package/dist/static/assets/{razor-V-Gitx5J.js → razor-CL2s-6qt.js} +1 -1
- package/dist/static/assets/{tsMode-D_iFxZ-O.js → tsMode-DSFhDcf0.js} +1 -1
- package/dist/static/assets/{typescript-CEGzsf5j.js → typescript-CmHv7Jwl.js} +1 -1
- package/dist/static/assets/{xml-N5EKZaXL.js → xml-Cyy6zXDM.js} +1 -1
- package/dist/static/assets/{yaml-IWZvbW4T.js → yaml-D_D6TAHE.js} +1 -1
- package/dist/static/assets/{yaml.worker.entry-BdO9k22I.js → yaml.worker.entry-BB81z30Q.js} +228 -228
- package/dist/static/index.html +1 -1
- package/dist/static/locales/en/translation.json +26 -2
- package/dist/static/locales/fr/translation.json +26 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/controllers/auth.controller.d.ts +2 -2
- package/dist/user/controllers/credential.controller.d.ts +1 -1
- package/dist/user/controllers/model.controller.d.ts +3 -3
- package/dist/user/controllers/permission.controller.d.ts +2 -2
- package/dist/user/controllers/role.controller.d.ts +1 -1
- package/dist/user/controllers/user.controller.d.ts +3 -5
- package/dist/user/dto/credential.dto.d.ts +1 -1
- package/dist/user/dto/model.dto.d.ts +1 -1
- package/dist/user/dto/permission.dto.d.ts +1 -1
- package/dist/user/dto/role.dto.d.ts +1 -1
- package/dist/user/dto/user-profile.dto.d.ts +1 -1
- package/dist/user/dto/user.dto.d.ts +2 -2
- package/dist/user/entities/credential.entity.d.ts +1 -1
- package/dist/user/entities/model.entity.d.ts +2 -2
- package/dist/user/entities/model.entity.js +4 -3
- package/dist/user/entities/model.entity.js.map +1 -1
- package/dist/user/entities/permission.entity.d.ts +3 -3
- package/dist/user/entities/permission.entity.js +7 -7
- package/dist/user/entities/permission.entity.js.map +1 -1
- package/dist/user/entities/role.entity.d.ts +2 -2
- package/dist/user/entities/role.entity.js +3 -2
- package/dist/user/entities/role.entity.js.map +1 -1
- package/dist/user/entities/user-profile.entity.d.ts +3 -3
- package/dist/user/entities/user.entity.d.ts +1 -3
- package/dist/user/guards/ability.guard.js +12 -2
- package/dist/user/guards/ability.guard.js.map +1 -1
- package/dist/user/repositories/credential.repository.d.ts +1 -1
- package/dist/user/repositories/model.repository.d.ts +1 -1
- package/dist/user/repositories/permission.repository.d.ts +1 -1
- package/dist/user/repositories/role.repository.d.ts +1 -1
- package/dist/user/repositories/user.repository.d.ts +1 -1
- package/dist/user/seeds/model.seed.d.ts +1 -1
- package/dist/user/seeds/permission.seed.d.ts +1 -1
- package/dist/user/seeds/role.seed.d.ts +1 -1
- package/dist/user/seeds/user.seed.d.ts +1 -1
- package/dist/user/services/credential.service.d.ts +1 -1
- package/dist/user/services/model.service.d.ts +1 -1
- package/dist/user/services/passwordReset.service.d.ts +4 -4
- package/dist/user/services/permission.service.d.ts +1 -1
- package/dist/user/services/role.service.d.ts +1 -1
- package/dist/user/services/user.service.d.ts +1 -1
- package/dist/user/services/validate-account.service.d.ts +4 -4
- package/dist/utils/decorators/roles.decorator.d.ts +1 -1
- package/dist/utils/generics/base-orm.controller.d.ts +2 -2
- package/dist/utils/generics/base-orm.repository.d.ts +2 -2
- package/dist/utils/generics/base-orm.seeder.d.ts +1 -1
- package/dist/utils/generics/base-orm.service.d.ts +2 -2
- package/dist/utils/generics/extension.d.ts +3 -4
- package/dist/utils/generics/extension.js.map +1 -1
- package/dist/utils/helpers/zod.d.ts +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/pipes/uuid.pipe.js +3 -3
- package/dist/utils/pipes/uuid.pipe.js.map +1 -1
- package/dist/utils/test/dummy/controllers/dummy.controller.d.ts +1 -1
- package/dist/utils/test/dummy/dto/dummy.dto.d.ts +1 -1
- package/dist/utils/test/dummy/dummy.action.d.ts +1 -1
- package/dist/utils/test/dummy/entities/dummy.entity.d.ts +1 -1
- package/dist/utils/test/dummy/repositories/dummy.repository.d.ts +1 -1
- package/dist/utils/test/dummy/services/dummy.service.d.ts +1 -1
- package/dist/utils/test/fixtures/attachment.d.ts +1 -1
- package/dist/utils/test/fixtures/content.d.ts +2 -2
- package/dist/utils/test/fixtures/contenttype.d.ts +2 -2
- package/dist/utils/test/fixtures/contenttype.js +2 -2
- package/dist/utils/test/fixtures/contenttype.js.map +1 -1
- package/dist/utils/test/fixtures/dummy.d.ts +2 -2
- package/dist/utils/test/fixtures/label-group.d.ts +4 -5
- package/dist/utils/test/fixtures/label.d.ts +3 -4
- package/dist/utils/test/fixtures/label.js +0 -19
- package/dist/utils/test/fixtures/label.js.map +1 -1
- package/dist/utils/test/fixtures/language.d.ts +2 -2
- package/dist/utils/test/fixtures/mcp-server.d.ts +3 -3
- package/dist/utils/test/fixtures/memory-definition.d.ts +2 -2
- package/dist/utils/test/fixtures/memory-record.d.ts +2 -2
- package/dist/utils/test/fixtures/menu.d.ts +1 -1
- package/dist/utils/test/fixtures/message.d.ts +1 -1
- package/dist/utils/test/fixtures/migration.d.ts +1 -1
- package/dist/utils/test/fixtures/model.d.ts +2 -2
- package/dist/utils/test/fixtures/permission.d.ts +4 -4
- package/dist/utils/test/fixtures/role.d.ts +2 -2
- package/dist/utils/test/fixtures/setting.d.ts +1 -1
- package/dist/utils/test/fixtures/stats.d.ts +1 -1
- package/dist/utils/test/fixtures/subscriber.d.ts +4 -4
- package/dist/utils/test/fixtures/translation.d.ts +1 -1
- package/dist/utils/test/fixtures/user.d.ts +2 -2
- package/dist/utils/test/fixtures/workflow-run.d.ts +2 -2
- package/dist/utils/test/fixtures/workflow.d.ts +2 -2
- package/dist/utils/test/providers/i18n-service.provider.d.ts +1 -1
- package/dist/utils/test/providers/i18n-service.provider.js +2 -2
- package/dist/utils/test/providers/i18n-service.provider.js.map +1 -1
- package/dist/utils/test/providers/mailer-service.provider.d.ts +3 -3
- package/dist/utils/test/providers/mailer-service.provider.js +2 -2
- package/dist/utils/test/providers/mailer-service.provider.js.map +1 -1
- package/dist/utils/test/providers/setting-service.provider.d.ts +1 -1
- package/dist/utils/test/providers/setting-service.provider.js +2 -2
- package/dist/utils/test/providers/setting-service.provider.js.map +1 -1
- package/dist/utils/test/test.d.ts +4 -0
- package/dist/utils/test/test.js +34 -1
- package/dist/utils/test/test.js.map +1 -1
- package/dist/utils/test/types.d.ts +1 -1
- package/dist/utils/test/utils.d.ts +2 -1
- package/dist/utils/test/utils.js +203 -46
- package/dist/utils/test/utils.js.map +1 -1
- package/dist/utils/types/dto.types.d.ts +1 -1
- package/dist/utils/types/entity-event.types.d.ts +1 -1
- package/dist/websocket/services/socket-event-dispatcher.service.d.ts +1 -1
- package/dist/websocket/websocket.gateway.d.ts +6 -6
- package/dist/websocket/websocket.gateway.js +2 -2
- package/dist/websocket/websocket.gateway.js.map +1 -1
- package/dist/workflow/contexts/conversational-workflow.context.d.ts +1 -1
- package/dist/workflow/contexts/workflow-runtime.context.d.ts +10 -10
- package/dist/workflow/contexts/workflow-runtime.context.js +6 -6
- package/dist/workflow/contexts/workflow-runtime.context.js.map +1 -1
- package/dist/workflow/controllers/mcp-server.controller.d.ts +1 -1
- package/dist/workflow/controllers/memory-definition.controller.d.ts +1 -1
- package/dist/workflow/controllers/workflow-run.controller.d.ts +1 -1
- package/dist/workflow/controllers/workflow-version.controller.d.ts +1 -1
- package/dist/workflow/controllers/workflow.controller.d.ts +4 -4
- package/dist/workflow/controllers/workflow.controller.js +9 -9
- package/dist/workflow/controllers/workflow.controller.js.map +1 -1
- package/dist/workflow/dto/mcp-server.dto.d.ts +1 -1
- package/dist/workflow/dto/memory-definition.dto.d.ts +1 -1
- package/dist/workflow/dto/memory-record.dto.d.ts +1 -1
- package/dist/workflow/dto/workflow-run.dto.d.ts +1 -1
- package/dist/workflow/dto/workflow-version.dto.d.ts +1 -1
- package/dist/workflow/dto/workflow.dto.d.ts +1 -1
- package/dist/workflow/entities/mcp-server.entity.d.ts +2 -2
- package/dist/workflow/entities/mcp-server.entity.js +4 -4
- package/dist/workflow/entities/mcp-server.entity.js.map +1 -1
- package/dist/workflow/entities/memory-definition.entity.d.ts +1 -1
- package/dist/workflow/entities/memory-record.entity.d.ts +4 -4
- package/dist/workflow/entities/workflow-run.entity.d.ts +4 -4
- package/dist/workflow/entities/workflow-version.entity.d.ts +3 -3
- package/dist/workflow/entities/workflow-version.entity.js +6 -4
- package/dist/workflow/entities/workflow-version.entity.js.map +1 -1
- package/dist/workflow/entities/workflow.entity.d.ts +2 -2
- package/dist/workflow/entities/workflow.entity.js +2 -1
- package/dist/workflow/entities/workflow.entity.js.map +1 -1
- package/dist/workflow/lib/trigger-event-wrapper.d.ts +1 -1
- package/dist/workflow/repositories/mcp-server.repository.d.ts +1 -1
- package/dist/workflow/repositories/memory-definition.repository.d.ts +1 -1
- package/dist/workflow/repositories/memory-record.repository.d.ts +1 -1
- package/dist/workflow/repositories/workflow-run.repository.d.ts +1 -1
- package/dist/workflow/repositories/workflow-version.repository.d.ts +1 -1
- package/dist/workflow/repositories/workflow.repository.d.ts +1 -1
- package/dist/workflow/seeds/memory-definition.seed.d.ts +1 -1
- package/dist/workflow/seeds/workflow.seed.d.ts +1 -1
- package/dist/workflow/services/agentic.service.d.ts +6 -5
- package/dist/workflow/services/agentic.service.js +11 -6
- package/dist/workflow/services/agentic.service.js.map +1 -1
- package/dist/workflow/services/mcp-client-pool.service.d.ts +2 -2
- package/dist/workflow/services/mcp-server.service.d.ts +1 -1
- package/dist/workflow/services/memory-definition.service.d.ts +1 -1
- package/dist/workflow/services/memory-record.service.d.ts +1 -1
- package/dist/workflow/services/memory.service.js +1 -0
- package/dist/workflow/services/memory.service.js.map +1 -1
- package/dist/workflow/services/workflow-run.service.d.ts +1 -1
- package/dist/workflow/services/workflow-scheduler.service.d.ts +3 -3
- package/dist/workflow/services/workflow-scheduler.service.js +2 -2
- package/dist/workflow/services/workflow-scheduler.service.js.map +1 -1
- package/dist/workflow/services/workflow-version.service.d.ts +1 -1
- package/dist/workflow/services/workflow.service.d.ts +3 -3
- package/dist/workflow/utils/memory-store.js +12 -1
- package/dist/workflow/utils/memory-store.js.map +1 -1
- package/dist/workflow/workflow.module.js +4 -4
- package/dist/workflow/workflow.module.js.map +1 -1
- package/package.json +65 -32
- package/src/app.controller.ts +1 -0
- package/src/app.module.ts +15 -1
- package/src/attachment/utilities/index.ts +2 -2
- package/src/bootstrap.ts +13 -1
- package/src/channel/channel.service.ts +5 -2
- package/src/channel/lib/Handler.ts +3 -2
- package/src/channel/lib/__test__/label.mock.ts +0 -24
- package/src/channel/services/source.service.ts +38 -1
- package/src/chat/chat.module.ts +1 -1
- package/src/chat/dto/label.dto.ts +1 -12
- package/src/chat/entities/label.entity.ts +0 -4
- package/src/chat/entities/subscriber.entity.ts +14 -7
- package/src/chat/services/subscriber.service.ts +3 -2
- package/src/cms/entities/content-type.entity.ts +12 -4
- package/src/cms/entities/content.entity.ts +13 -5
- package/src/cms/services/content-type.service.ts +1 -1
- package/src/cms/services/rag.service.ts +1 -1
- package/src/config/index.ts +17 -2
- package/src/config/types.ts +9 -0
- package/src/database/decorators/json-column.decorator.ts +1 -0
- package/src/database/typeorm-config.service.ts +1 -1
- package/src/extensions/actions/ai/mcp.binding.ts +4 -3
- package/src/extensions/actions/web/http-request.action.ts +23 -4
- package/src/extensions/channels/web/base-web-channel.ts +51 -13
- package/src/extensions/channels/web/outbound/web-outbound-message-encoder.ts +2 -2
- package/src/extensions/channels/web/services/web-session.service.ts +35 -0
- package/src/global.d.ts +0 -6
- package/src/license/services/lemon-squeezy.service.ts +3 -2
- package/src/mailer/mailer.module.ts +1 -54
- package/src/mailer/mailer.service.ts +86 -2
- package/src/mcp/README.md +244 -0
- package/src/mcp/controllers/mcp-token.controller.ts +64 -0
- package/src/mcp/decorators/mcp-permission.decorator.ts +23 -0
- package/src/mcp/dto/mcp-token.dto.ts +48 -0
- package/src/mcp/entities/mcp-token.entity.ts +60 -0
- package/src/mcp/guards/hexabot-mcp-token.guard.ts +55 -0
- package/src/mcp/guards/mcp-permission.guard.ts +61 -0
- package/src/mcp/mcp-api.module.ts +61 -0
- package/src/mcp/repositories/mcp-token.repository.ts +34 -0
- package/src/mcp/services/mcp-token.service.ts +138 -0
- package/src/mcp/tools/hexabot-mcp.tools.ts +1041 -0
- package/src/mcp/types.ts +14 -0
- package/src/user/entities/model.entity.ts +13 -5
- package/src/user/entities/permission.entity.ts +21 -9
- package/src/user/entities/role.entity.ts +12 -4
- package/src/user/guards/ability.guard.ts +15 -3
- package/src/utils/generics/extension.ts +1 -3
- package/src/utils/index.ts +0 -2
- package/src/utils/pipes/uuid.pipe.ts +3 -3
- package/src/utils/test/fixtures/contenttype.ts +1 -1
- package/src/utils/test/fixtures/label.ts +0 -19
- package/src/utils/test/fixtures/workflow.ts +1 -1
- package/src/utils/test/providers/i18n-service.provider.ts +1 -1
- package/src/utils/test/providers/mailer-service.provider.ts +1 -1
- package/src/utils/test/providers/setting-service.provider.ts +1 -1
- package/src/utils/test/test.ts +39 -0
- package/src/utils/test/utils.ts +332 -57
- package/src/websocket/websocket.gateway.ts +2 -2
- package/src/workflow/contexts/workflow-runtime.context.ts +2 -2
- package/src/workflow/controllers/workflow.controller.ts +2 -2
- package/src/workflow/entities/mcp-server.entity.ts +2 -2
- package/src/workflow/entities/workflow-version.entity.ts +8 -3
- package/src/workflow/entities/workflow.entity.ts +2 -1
- package/src/workflow/services/agentic.service.ts +19 -8
- package/src/workflow/services/memory.service.ts +1 -0
- package/src/workflow/services/workflow-scheduler.service.ts +1 -1
- package/src/workflow/utils/memory-store.ts +13 -1
- package/src/workflow/workflow.module.ts +2 -2
- package/dist/mailer/mjml-adapter.class.d.ts +0 -4
- package/dist/mailer/mjml-adapter.class.js +0 -67
- package/dist/mailer/mjml-adapter.class.js.map +0 -1
- package/dist/utils/types/extension.d.ts +0 -4
- package/dist/utils/types/extension.js.map +0 -1
- package/src/mailer/mjml-adapter.class.ts +0 -41
- package/src/utils/types/extension.ts +0 -13
|
@@ -0,0 +1,1141 @@
|
|
|
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
|
+
} | null;
|
|
719
|
+
}>;
|
|
720
|
+
searchWorkflowRuns(args: {
|
|
721
|
+
workflowId?: string;
|
|
722
|
+
status?: string;
|
|
723
|
+
} & PaginationArgs): Promise<{
|
|
724
|
+
items: unknown[];
|
|
725
|
+
total: number;
|
|
726
|
+
limit: number | undefined;
|
|
727
|
+
skip: number | undefined;
|
|
728
|
+
}>;
|
|
729
|
+
getWorkflowRun(args: {
|
|
730
|
+
id: string;
|
|
731
|
+
}): Promise<{
|
|
732
|
+
id: string;
|
|
733
|
+
createdAt: Date;
|
|
734
|
+
updatedAt: Date;
|
|
735
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
736
|
+
input: Record<string, any> | null;
|
|
737
|
+
output: Record<string, any> | null;
|
|
738
|
+
context: Record<string, any>;
|
|
739
|
+
snapshot: any;
|
|
740
|
+
stepLog: Record<string, any> | null;
|
|
741
|
+
suspendedStep: string | null;
|
|
742
|
+
suspensionReason: string | null;
|
|
743
|
+
suspensionData: unknown;
|
|
744
|
+
suspensionStepExecId: string | null;
|
|
745
|
+
suspensionIndex: number | null;
|
|
746
|
+
suspensionKey: string | null;
|
|
747
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
748
|
+
lastResumeData: unknown;
|
|
749
|
+
error: string | null;
|
|
750
|
+
suspendedAt: Date | null;
|
|
751
|
+
finishedAt: Date | null;
|
|
752
|
+
failedAt: Date | null;
|
|
753
|
+
duration: number | null;
|
|
754
|
+
metadata: Record<string, any> | null;
|
|
755
|
+
workflow: {
|
|
756
|
+
id: string;
|
|
757
|
+
createdAt: Date;
|
|
758
|
+
updatedAt: Date;
|
|
759
|
+
name: string;
|
|
760
|
+
description: string | null;
|
|
761
|
+
type: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowType;
|
|
762
|
+
schedule: string | null;
|
|
763
|
+
inputSchema: any;
|
|
764
|
+
builtin: boolean;
|
|
765
|
+
x: number;
|
|
766
|
+
y: number;
|
|
767
|
+
zoom: number;
|
|
768
|
+
direction: import("@hexabot-ai/types/dist/types/workflow/domain").DirectionType;
|
|
769
|
+
createdBy: string | null;
|
|
770
|
+
runAfterMs: number;
|
|
771
|
+
currentVersion?: string | null | undefined;
|
|
772
|
+
publishedVersion?: string | null | undefined;
|
|
773
|
+
};
|
|
774
|
+
triggeredBy: {
|
|
775
|
+
id: string;
|
|
776
|
+
createdAt: Date;
|
|
777
|
+
updatedAt: Date;
|
|
778
|
+
firstName: string;
|
|
779
|
+
lastName: string;
|
|
780
|
+
language: string | null;
|
|
781
|
+
timezone: number;
|
|
782
|
+
locale: string | null;
|
|
783
|
+
gender: string | null;
|
|
784
|
+
country: string | null;
|
|
785
|
+
foreignId: string | null;
|
|
786
|
+
assignedAt: Date | null;
|
|
787
|
+
lastvisit: Date | null;
|
|
788
|
+
retainedFrom: Date | null;
|
|
789
|
+
channel: {
|
|
790
|
+
name: string | null;
|
|
791
|
+
data?: Record<string, any> | null | undefined;
|
|
792
|
+
};
|
|
793
|
+
labels: string[];
|
|
794
|
+
assignedTo: string | null;
|
|
795
|
+
avatar: string | null;
|
|
796
|
+
source: string | null;
|
|
797
|
+
} | {
|
|
798
|
+
id: string;
|
|
799
|
+
createdAt: Date;
|
|
800
|
+
updatedAt: Date;
|
|
801
|
+
firstName: string;
|
|
802
|
+
lastName: string;
|
|
803
|
+
language: string | null;
|
|
804
|
+
timezone: number;
|
|
805
|
+
locale: string | null;
|
|
806
|
+
gender: string | null;
|
|
807
|
+
country: string | null;
|
|
808
|
+
foreignId: string | null;
|
|
809
|
+
assignedAt: Date | null;
|
|
810
|
+
lastvisit: Date | null;
|
|
811
|
+
retainedFrom: Date | null;
|
|
812
|
+
channel: {
|
|
813
|
+
name: string | null;
|
|
814
|
+
data?: Record<string, any> | null | undefined;
|
|
815
|
+
};
|
|
816
|
+
username: string;
|
|
817
|
+
email: string;
|
|
818
|
+
sendEmail: boolean;
|
|
819
|
+
state: boolean;
|
|
820
|
+
resetCount: number;
|
|
821
|
+
resetToken: string | null;
|
|
822
|
+
labels: string[];
|
|
823
|
+
assignedTo: string | null;
|
|
824
|
+
roles: string[];
|
|
825
|
+
avatar: string | null;
|
|
826
|
+
provider?: {
|
|
827
|
+
strategy: "local";
|
|
828
|
+
sub?: string | undefined;
|
|
829
|
+
} | undefined;
|
|
830
|
+
} | null;
|
|
831
|
+
workflowVersion?: {
|
|
832
|
+
id: string;
|
|
833
|
+
createdAt: Date;
|
|
834
|
+
updatedAt: Date;
|
|
835
|
+
version: number;
|
|
836
|
+
definitionYml: string;
|
|
837
|
+
checksum: string;
|
|
838
|
+
message: string | null;
|
|
839
|
+
action: import("@hexabot-ai/types/dist/types/workflow/domain").WorkflowVersionAction | null;
|
|
840
|
+
parentVersion: string | null;
|
|
841
|
+
workflow: string;
|
|
842
|
+
createdBy: string | null;
|
|
843
|
+
} | null | undefined;
|
|
844
|
+
thread?: {
|
|
845
|
+
id: string;
|
|
846
|
+
createdAt: Date;
|
|
847
|
+
updatedAt: Date;
|
|
848
|
+
status: "open" | "closed";
|
|
849
|
+
subscriber: string;
|
|
850
|
+
source: string;
|
|
851
|
+
lastMessageAt?: Date | null | undefined;
|
|
852
|
+
closedAt?: Date | null | undefined;
|
|
853
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
854
|
+
title?: string | null | undefined;
|
|
855
|
+
} | null | undefined;
|
|
856
|
+
}>;
|
|
857
|
+
searchMemoryDefinitions(args: {
|
|
858
|
+
query?: string;
|
|
859
|
+
scope?: MemoryScope;
|
|
860
|
+
} & PaginationArgs): Promise<{
|
|
861
|
+
items: unknown[];
|
|
862
|
+
total: number;
|
|
863
|
+
limit: number | undefined;
|
|
864
|
+
skip: number | undefined;
|
|
865
|
+
}>;
|
|
866
|
+
getMemoryDefinition(args: {
|
|
867
|
+
id: string;
|
|
868
|
+
}): Promise<{
|
|
869
|
+
id: string;
|
|
870
|
+
createdAt: Date;
|
|
871
|
+
updatedAt: Date;
|
|
872
|
+
name: string;
|
|
873
|
+
slug: string;
|
|
874
|
+
scope: MemoryScope;
|
|
875
|
+
schema: any;
|
|
876
|
+
ttlSeconds?: number | null | undefined;
|
|
877
|
+
}>;
|
|
878
|
+
createMemoryDefinition(args: {
|
|
879
|
+
name: string;
|
|
880
|
+
slug: string;
|
|
881
|
+
scope: MemoryScope;
|
|
882
|
+
schema: Record<string, unknown>;
|
|
883
|
+
ttlSeconds?: number | null;
|
|
884
|
+
}): Promise<{
|
|
885
|
+
id: string;
|
|
886
|
+
createdAt: Date;
|
|
887
|
+
updatedAt: Date;
|
|
888
|
+
name: string;
|
|
889
|
+
slug: string;
|
|
890
|
+
scope: MemoryScope;
|
|
891
|
+
schema: any;
|
|
892
|
+
ttlSeconds?: number | null | undefined;
|
|
893
|
+
}>;
|
|
894
|
+
updateMemoryDefinition(args: {
|
|
895
|
+
id: string;
|
|
896
|
+
} & Record<string, unknown>): Promise<{
|
|
897
|
+
id: string;
|
|
898
|
+
createdAt: Date;
|
|
899
|
+
updatedAt: Date;
|
|
900
|
+
name: string;
|
|
901
|
+
slug: string;
|
|
902
|
+
scope: MemoryScope;
|
|
903
|
+
schema: any;
|
|
904
|
+
ttlSeconds?: number | null | undefined;
|
|
905
|
+
}>;
|
|
906
|
+
searchActions(args: {
|
|
907
|
+
query?: string;
|
|
908
|
+
workflowType?: WorkflowType;
|
|
909
|
+
}): Promise<{
|
|
910
|
+
items: {
|
|
911
|
+
name: `${string}_${string}`;
|
|
912
|
+
description: string;
|
|
913
|
+
icon: string;
|
|
914
|
+
color: string;
|
|
915
|
+
group: string;
|
|
916
|
+
workflowTypes: WorkflowType[];
|
|
917
|
+
supportedBindings: readonly string[];
|
|
918
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
919
|
+
outputSchema: import("json-schema").JSONSchema7;
|
|
920
|
+
settingSchema: import("json-schema").JSONSchema7;
|
|
921
|
+
}[];
|
|
922
|
+
}>;
|
|
923
|
+
getAction(args: {
|
|
924
|
+
name: string;
|
|
925
|
+
}): Promise<{
|
|
926
|
+
name: `${string}_${string}`;
|
|
927
|
+
description: string;
|
|
928
|
+
icon: string;
|
|
929
|
+
color: string;
|
|
930
|
+
group: string;
|
|
931
|
+
workflowTypes: WorkflowType[];
|
|
932
|
+
supportedBindings: readonly string[];
|
|
933
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
934
|
+
outputSchema: import("json-schema").JSONSchema7;
|
|
935
|
+
settingSchema: import("json-schema").JSONSchema7;
|
|
936
|
+
}>;
|
|
937
|
+
searchBindings(args: {
|
|
938
|
+
query?: string;
|
|
939
|
+
}): Promise<{
|
|
940
|
+
items: {
|
|
941
|
+
schema: import("json-schema").JSONSchema7;
|
|
942
|
+
multiple: boolean;
|
|
943
|
+
color: string;
|
|
944
|
+
icon: string;
|
|
945
|
+
supportedBindings: readonly string[];
|
|
946
|
+
actionPolicy: import("@hexabot-ai/agentic/dist/types/bindings/base-binding").BindingActionPolicy;
|
|
947
|
+
kind: string;
|
|
948
|
+
}[];
|
|
949
|
+
}>;
|
|
950
|
+
getBinding(args: {
|
|
951
|
+
kind: string;
|
|
952
|
+
}): Promise<{
|
|
953
|
+
schema: import("json-schema").JSONSchema7;
|
|
954
|
+
multiple: boolean;
|
|
955
|
+
color: string;
|
|
956
|
+
icon: string;
|
|
957
|
+
supportedBindings: readonly string[];
|
|
958
|
+
actionPolicy: import("@hexabot-ai/agentic/dist/types/bindings/base-binding").BindingActionPolicy;
|
|
959
|
+
kind: string;
|
|
960
|
+
}>;
|
|
961
|
+
searchCredentials(args: {
|
|
962
|
+
query?: string;
|
|
963
|
+
ownerId?: string;
|
|
964
|
+
} & PaginationArgs): Promise<{
|
|
965
|
+
items: Record<string, unknown>[];
|
|
966
|
+
total: number;
|
|
967
|
+
limit: number | undefined;
|
|
968
|
+
skip: number | undefined;
|
|
969
|
+
}>;
|
|
970
|
+
getCredential(args: {
|
|
971
|
+
id: string;
|
|
972
|
+
}): Promise<{
|
|
973
|
+
id: string;
|
|
974
|
+
createdAt: Date;
|
|
975
|
+
updatedAt: Date;
|
|
976
|
+
name: string;
|
|
977
|
+
owner: {
|
|
978
|
+
id: string;
|
|
979
|
+
createdAt: Date;
|
|
980
|
+
updatedAt: Date;
|
|
981
|
+
firstName: string;
|
|
982
|
+
lastName: string;
|
|
983
|
+
language: string | null;
|
|
984
|
+
timezone: number;
|
|
985
|
+
locale: string | null;
|
|
986
|
+
gender: string | null;
|
|
987
|
+
country: string | null;
|
|
988
|
+
foreignId: string | null;
|
|
989
|
+
assignedAt: Date | null;
|
|
990
|
+
lastvisit: Date | null;
|
|
991
|
+
retainedFrom: Date | null;
|
|
992
|
+
channel: {
|
|
993
|
+
name: string | null;
|
|
994
|
+
data?: Record<string, any> | null | undefined;
|
|
995
|
+
};
|
|
996
|
+
username: string;
|
|
997
|
+
email: string;
|
|
998
|
+
sendEmail: boolean;
|
|
999
|
+
state: boolean;
|
|
1000
|
+
resetCount: number;
|
|
1001
|
+
resetToken: string | null;
|
|
1002
|
+
labels: string[];
|
|
1003
|
+
assignedTo: string | null;
|
|
1004
|
+
roles: string[];
|
|
1005
|
+
avatar: string | null;
|
|
1006
|
+
provider?: {
|
|
1007
|
+
strategy: "local";
|
|
1008
|
+
sub?: string | undefined;
|
|
1009
|
+
} | undefined;
|
|
1010
|
+
} | null;
|
|
1011
|
+
}>;
|
|
1012
|
+
searchContentTypes(args: {
|
|
1013
|
+
query?: string;
|
|
1014
|
+
} & PaginationArgs): Promise<{
|
|
1015
|
+
items: unknown[];
|
|
1016
|
+
total: number;
|
|
1017
|
+
limit: number | undefined;
|
|
1018
|
+
skip: number | undefined;
|
|
1019
|
+
}>;
|
|
1020
|
+
getContentType(args: {
|
|
1021
|
+
id: string;
|
|
1022
|
+
}): Promise<{
|
|
1023
|
+
id: string;
|
|
1024
|
+
createdAt: Date;
|
|
1025
|
+
updatedAt: Date;
|
|
1026
|
+
name: string;
|
|
1027
|
+
schema: any;
|
|
1028
|
+
}>;
|
|
1029
|
+
createContentType(args: {
|
|
1030
|
+
name: string;
|
|
1031
|
+
schema: Record<string, unknown>;
|
|
1032
|
+
}): Promise<{
|
|
1033
|
+
id: string;
|
|
1034
|
+
createdAt: Date;
|
|
1035
|
+
updatedAt: Date;
|
|
1036
|
+
name: string;
|
|
1037
|
+
schema: any;
|
|
1038
|
+
}>;
|
|
1039
|
+
updateContentType(args: {
|
|
1040
|
+
id: string;
|
|
1041
|
+
} & Record<string, unknown>): Promise<{
|
|
1042
|
+
id: string;
|
|
1043
|
+
createdAt: Date;
|
|
1044
|
+
updatedAt: Date;
|
|
1045
|
+
name: string;
|
|
1046
|
+
schema: any;
|
|
1047
|
+
}>;
|
|
1048
|
+
searchContent(args: {
|
|
1049
|
+
query?: string;
|
|
1050
|
+
contentTypeId?: string;
|
|
1051
|
+
status?: boolean;
|
|
1052
|
+
} & PaginationArgs): Promise<{
|
|
1053
|
+
items: unknown[];
|
|
1054
|
+
total: number;
|
|
1055
|
+
limit: number | undefined;
|
|
1056
|
+
skip: number | undefined;
|
|
1057
|
+
} | {
|
|
1058
|
+
items: {
|
|
1059
|
+
id: string;
|
|
1060
|
+
createdAt: Date;
|
|
1061
|
+
updatedAt: Date;
|
|
1062
|
+
title: string;
|
|
1063
|
+
status: boolean;
|
|
1064
|
+
properties: Record<string, unknown> | null;
|
|
1065
|
+
searchText: string;
|
|
1066
|
+
contentType: {
|
|
1067
|
+
id: string;
|
|
1068
|
+
createdAt: Date;
|
|
1069
|
+
updatedAt: Date;
|
|
1070
|
+
name: string;
|
|
1071
|
+
schema: any;
|
|
1072
|
+
};
|
|
1073
|
+
}[];
|
|
1074
|
+
limit: number;
|
|
1075
|
+
skip: number;
|
|
1076
|
+
}>;
|
|
1077
|
+
getContent(args: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
}): Promise<{
|
|
1080
|
+
id: string;
|
|
1081
|
+
createdAt: Date;
|
|
1082
|
+
updatedAt: Date;
|
|
1083
|
+
title: string;
|
|
1084
|
+
status: boolean;
|
|
1085
|
+
properties: Record<string, unknown> | null;
|
|
1086
|
+
searchText: string;
|
|
1087
|
+
contentType: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
createdAt: Date;
|
|
1090
|
+
updatedAt: Date;
|
|
1091
|
+
name: string;
|
|
1092
|
+
schema: any;
|
|
1093
|
+
};
|
|
1094
|
+
}>;
|
|
1095
|
+
createContent(args: {
|
|
1096
|
+
contentType: string;
|
|
1097
|
+
title: string;
|
|
1098
|
+
status?: boolean;
|
|
1099
|
+
properties?: Record<string, unknown>;
|
|
1100
|
+
}): Promise<{
|
|
1101
|
+
id: string;
|
|
1102
|
+
createdAt: Date;
|
|
1103
|
+
updatedAt: Date;
|
|
1104
|
+
title: string;
|
|
1105
|
+
status: boolean;
|
|
1106
|
+
properties: Record<string, unknown> | null;
|
|
1107
|
+
searchText: string;
|
|
1108
|
+
contentType: string;
|
|
1109
|
+
}>;
|
|
1110
|
+
updateContent(args: {
|
|
1111
|
+
id: string;
|
|
1112
|
+
} & Record<string, unknown>): Promise<{
|
|
1113
|
+
id: string;
|
|
1114
|
+
createdAt: Date;
|
|
1115
|
+
updatedAt: Date;
|
|
1116
|
+
title: string;
|
|
1117
|
+
status: boolean;
|
|
1118
|
+
properties: Record<string, unknown> | null;
|
|
1119
|
+
searchText: string;
|
|
1120
|
+
contentType: string;
|
|
1121
|
+
}>;
|
|
1122
|
+
searchRagContent(args: {
|
|
1123
|
+
query: string;
|
|
1124
|
+
mode?: 'embedding' | 'lexical';
|
|
1125
|
+
limit: number;
|
|
1126
|
+
contentTypeId?: string;
|
|
1127
|
+
includeInactive?: boolean;
|
|
1128
|
+
}): Promise<{
|
|
1129
|
+
items: import("../..").RagHit[];
|
|
1130
|
+
}>;
|
|
1131
|
+
static sanitizeCredential<T extends Record<string, unknown>>(credential: T): T;
|
|
1132
|
+
private buildWorkflowWhere;
|
|
1133
|
+
private requireWorkflow;
|
|
1134
|
+
private commitWorkflowDefinition;
|
|
1135
|
+
private findOptions;
|
|
1136
|
+
private listWithCount;
|
|
1137
|
+
private contains;
|
|
1138
|
+
private getActor;
|
|
1139
|
+
private getActorId;
|
|
1140
|
+
}
|
|
1141
|
+
export {};
|