@hexabot-ai/api 3.2.2-alpha.1 → 3.2.2-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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 +8 -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/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/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 +3 -3
- 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 -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 -1
- package/dist/chat/entities/label.entity.d.ts +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 -5
- 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.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/database/entities/base.entity.d.ts +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/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 +6 -6
- package/dist/extensions/channels/web/base-web-channel.js +2 -2
- 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/services/web-history.service.d.ts +2 -2
- package/dist/extensions/channels/web/services/web-session.service.d.ts +6 -6
- 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/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-BHrZk0Ba.js +2 -0
- package/dist/static/assets/{cssMode-ClQbC1-G.js → cssMode-BMhPv6LQ.js} +1 -1
- package/dist/static/assets/{freemarker2-DRxgvoL0.js → freemarker2-BeZMhdTv.js} +1 -1
- package/dist/static/assets/{handlebars-CTQECjcj.js → handlebars-BKG3g2Ua.js} +1 -1
- package/dist/static/assets/{html-DvVbNWXL.js → html-DGzTITbD.js} +1 -1
- package/dist/static/assets/{htmlMode-DHCoon1T.js → htmlMode-BqkaqtYx.js} +1 -1
- package/dist/static/assets/{index-BgFwJPy7.js → index-BZ6XUYgl.js} +2139 -2136
- package/dist/static/assets/{javascript-CiEs6Ej5.js → javascript-b5wI9R64.js} +1 -1
- package/dist/static/assets/{jsonMode-DTfAuumC.js → jsonMode-CHkAHll-.js} +1 -1
- package/dist/static/assets/{liquid-B714yIaN.js → liquid-DWtcf_ol.js} +1 -1
- package/dist/static/assets/{lspLanguageFeatures-r73pyfl4.js → lspLanguageFeatures-CogY5n0Q.js} +1 -1
- package/dist/static/assets/{mdx-D5IAs7yq.js → mdx-Bahv9Yam.js} +1 -1
- package/dist/static/assets/{python-ehBpsG6S.js → python-BMSmNQlB.js} +1 -1
- package/dist/static/assets/{razor-V-Gitx5J.js → razor-gQN4hgMu.js} +1 -1
- package/dist/static/assets/{tsMode-D_iFxZ-O.js → tsMode-lBRxNuK8.js} +1 -1
- package/dist/static/assets/{typescript-CEGzsf5j.js → typescript-BIY26e43.js} +1 -1
- package/dist/static/assets/{xml-N5EKZaXL.js → xml-CU3COlzI.js} +1 -1
- package/dist/static/assets/{yaml-IWZvbW4T.js → yaml-Bu2tB__J.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/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 -3
- 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 -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 +3 -3
- package/dist/utils/test/fixtures/label.d.ts +2 -2
- 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/mailer-service.provider.d.ts +3 -3
- package/dist/utils/test/providers/setting-service.provider.d.ts +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 +181 -41
- 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/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/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/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/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 +4 -4
- 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-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/package.json +63 -32
- package/src/attachment/utilities/index.ts +2 -2
- package/src/bootstrap.ts +10 -1
- package/src/channel/lib/Handler.ts +3 -2
- package/src/chat/chat.module.ts +1 -1
- 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/extensions/actions/web/http-request.action.ts +23 -4
- package/src/extensions/channels/web/base-web-channel.ts +3 -2
- 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/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/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/test.ts +39 -0
- package/src/utils/test/utils.ts +278 -52
- package/src/websocket/websocket.gateway.ts +2 -2
- package/src/workflow/entities/workflow-version.entity.ts +8 -3
- package/src/workflow/services/memory.service.ts +1 -0
- package/src/workflow/utils/memory-store.ts +13 -1
- 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 +0 -3
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseWorkflowContext } from '@hexabot-ai/agentic';
|
|
2
|
-
import { I18nService } from
|
|
3
|
-
import { LoggerService } from
|
|
4
|
-
import { WorkflowType } from
|
|
2
|
+
import { I18nService } from "../i18n/services/i18n.service";
|
|
3
|
+
import { LoggerService } from "../logger/logger.service";
|
|
4
|
+
import { WorkflowType } from "../workflow/types";
|
|
5
5
|
import { BaseAction } from './base-action';
|
|
6
6
|
import { ActionName } from './types';
|
|
7
7
|
export declare class ActionService {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AbstractAction, BaseWorkflowContext } from '@hexabot-ai/agentic';
|
|
2
2
|
import { OnModuleInit } from '@nestjs/common';
|
|
3
|
-
import { RuntimeBindings } from
|
|
4
|
-
import { ConversationalWorkflowContext } from
|
|
5
|
-
import { WorkflowType } from
|
|
3
|
+
import { RuntimeBindings } from "../bindings/runtime-bindings";
|
|
4
|
+
import { ConversationalWorkflowContext } from "../workflow/contexts/conversational-workflow.context";
|
|
5
|
+
import { WorkflowType } from "../workflow/types";
|
|
6
6
|
import { ActionService } from './actions.service';
|
|
7
7
|
import { ActionMetadata, ActionName, ExecArgs } from './types';
|
|
8
8
|
export declare abstract class BaseAction<I = unknown, O = unknown, C extends BaseWorkflowContext = ConversationalWorkflowContext, S = unknown> extends AbstractAction<I, O, C, S, RuntimeBindings> implements OnModuleInit {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from '@nestjs/common';
|
|
2
|
-
import { WorkflowRuntimeContext } from
|
|
2
|
+
import { WorkflowRuntimeContext } from "../workflow/contexts/workflow-runtime.context";
|
|
3
3
|
import { BaseAction } from './base-action';
|
|
4
4
|
import { ActionMetadata, ExecArgs } from './types';
|
|
5
5
|
type CreateActionParams<I, O, C extends WorkflowRuntimeContext = WorkflowRuntimeContext, S = unknown> = ActionMetadata<I, O, S> & {
|
package/dist/actions/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Action, ActionExecutionArgs, ActionMetadata as BaseActionMetadata, BaseWorkflowContext } from '@hexabot-ai/agentic';
|
|
2
2
|
import type { ZodType } from 'zod';
|
|
3
|
-
import { RuntimeBindingKind, RuntimeBindings } from
|
|
4
|
-
import { ConversationalWorkflowContext } from
|
|
5
|
-
import { WorkflowType } from
|
|
3
|
+
import { RuntimeBindingKind, RuntimeBindings } from "../bindings/runtime-bindings";
|
|
4
|
+
import { ConversationalWorkflowContext } from "../workflow/contexts/conversational-workflow.context";
|
|
5
|
+
import { WorkflowType } from "../workflow/types";
|
|
6
6
|
export type ActionName = `${string}_${string}`;
|
|
7
7
|
export declare const DEFAULT_ACTION_COLOR = "#98a7ba";
|
|
8
8
|
export declare const DEFAULT_ACTION_ICON = "Zap";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseOrmController } from
|
|
1
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
2
2
|
import { StatsFindDatumDto, StatsFindDto, StatsFailedWorkflowRunsDto, StatsSummaryDto, StatsThreadSnapshotDto } from '../dto/stats.dto';
|
|
3
3
|
import { StatsOrmEntity, ToLinesType } from '../entities/stats.entity';
|
|
4
4
|
import { StatsService } from '../services/stats.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { statsFullSchema, statsSchema, type WorkflowRunFull } from '@hexabot-ai/types';
|
|
2
|
-
import { TDto } from
|
|
2
|
+
import { TDto } from "../../utils/types/dto.types";
|
|
3
3
|
import { StatsType } from '../enums/stats-type.enum';
|
|
4
4
|
export declare class StatsCreateDto {
|
|
5
5
|
type: StatsType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stats } from '@hexabot-ai/types';
|
|
2
|
-
import { BaseOrmEntity } from
|
|
2
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
3
3
|
import { StatsDto } from '../dto/stats.dto';
|
|
4
4
|
import { StatsType } from '../enums/stats-type.enum';
|
|
5
5
|
export { StatsType };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Stats } from '@hexabot-ai/types';
|
|
2
2
|
import { Repository } from 'typeorm';
|
|
3
|
-
import { BaseOrmRepository } from
|
|
3
|
+
import { BaseOrmRepository } from "../../utils/generics/base-orm.repository";
|
|
4
4
|
import { StatsOrmEntity, StatsType } from '../entities/stats.entity';
|
|
5
5
|
export declare class StatsRepository extends BaseOrmRepository<StatsOrmEntity> {
|
|
6
6
|
constructor(repository: Repository<StatsOrmEntity>);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Stats, Subscriber } from '@hexabot-ai/types';
|
|
2
|
-
import { SubscriberUpdateDto } from
|
|
3
|
-
import { SubscriberOrmEntity } from
|
|
4
|
-
import { MessageService } from
|
|
5
|
-
import { BaseOrmService } from
|
|
6
|
-
import { InsertEntityEvent } from
|
|
7
|
-
import { WorkflowRunService } from
|
|
8
|
-
import { WorkflowService } from
|
|
2
|
+
import { SubscriberUpdateDto } from "../../chat/dto/subscriber.dto";
|
|
3
|
+
import { SubscriberOrmEntity } from "../../chat/entities/subscriber.entity";
|
|
4
|
+
import { MessageService } from "../../chat/services/message.service";
|
|
5
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
6
|
+
import { InsertEntityEvent } from "../../utils/types/entity-event.types";
|
|
7
|
+
import { WorkflowRunService } from "../../workflow/services/workflow-run.service";
|
|
8
|
+
import { WorkflowService } from "../../workflow/services/workflow.service";
|
|
9
9
|
import { StatsFailedWorkflowRunsDto, StatsSummaryDto, StatsThreadSnapshotDto } from '../dto/stats.dto';
|
|
10
10
|
import { StatsOrmEntity, StatsType } from '../entities/stats.entity';
|
|
11
11
|
import { StatsRepository } from '../repositories/stats.repository';
|
|
@@ -2,7 +2,7 @@ import { Attachment, AttachmentFull } from '@hexabot-ai/types';
|
|
|
2
2
|
import { StreamableFile } from '@nestjs/common';
|
|
3
3
|
import { Request } from 'express';
|
|
4
4
|
import { FindManyOptions } from 'typeorm';
|
|
5
|
-
import { BaseOrmController } from
|
|
5
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
6
6
|
import { AttachmentContextParamDto, AttachmentDownloadDto } from '../dto/attachment.dto';
|
|
7
7
|
import { AttachmentOrmEntity } from '../entities/attachment.entity';
|
|
8
8
|
import { AttachmentService } from '../services/attachment.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { attachmentFullSchema, attachmentSchema } from '@hexabot-ai/types';
|
|
2
|
-
import { ChannelName } from
|
|
3
|
-
import { TDto } from
|
|
2
|
+
import { ChannelName } from "../../channel/types";
|
|
3
|
+
import { TDto } from "../../utils/types/dto.types";
|
|
4
4
|
import { AttachmentAccess, AttachmentCreatedByRef, AttachmentResourceRef } from '../types';
|
|
5
5
|
export declare class AttachmentMetadataDto {
|
|
6
6
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileType } from '@hexabot-ai/types';
|
|
2
|
-
import { ChannelName } from
|
|
3
|
-
import { BaseOrmEntity } from
|
|
4
|
-
import { UserProfileOrmEntity } from
|
|
2
|
+
import { ChannelName } from "../../channel/types";
|
|
3
|
+
import { BaseOrmEntity } from "../../database";
|
|
4
|
+
import { UserProfileOrmEntity } from "../../user/entities/user-profile.entity";
|
|
5
5
|
import { AttachmentDto } from '../dto/attachment.dto';
|
|
6
6
|
import { AttachmentAccess, AttachmentCreatedByRef, AttachmentResourceRef } from '../types';
|
|
7
7
|
export declare class AttachmentOrmEntity extends BaseOrmEntity<AttachmentDto> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
-
import { ModelService } from
|
|
3
|
-
import { PermissionService } from
|
|
2
|
+
import { ModelService } from "../../user/services/model.service";
|
|
3
|
+
import { PermissionService } from "../../user/services/permission.service";
|
|
4
4
|
import { AttachmentService } from '../services/attachment.service';
|
|
5
5
|
export declare class AttachmentGuard implements CanActivate {
|
|
6
6
|
private readonly permissionService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
|
-
import { AttachmentOrmEntity } from
|
|
3
|
-
import { BaseOrmRepository } from
|
|
2
|
+
import { AttachmentOrmEntity } from "../entities/attachment.entity";
|
|
3
|
+
import { BaseOrmRepository } from "../../utils/generics/base-orm.repository";
|
|
4
4
|
export declare class AttachmentRepository extends BaseOrmRepository<AttachmentOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<AttachmentOrmEntity>);
|
|
6
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Readable, Stream } from 'stream';
|
|
2
2
|
import type { Attachment, AttachmentStub } from '@hexabot-ai/types';
|
|
3
3
|
import { StreamableFile } from '@nestjs/common';
|
|
4
|
-
import { AttachmentOrmEntity } from
|
|
5
|
-
import { HelperService } from
|
|
6
|
-
import { BaseOrmService } from
|
|
4
|
+
import { AttachmentOrmEntity } from "../entities/attachment.entity";
|
|
5
|
+
import { HelperService } from "../../helper/helper.service";
|
|
6
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
7
7
|
import { AttachmentMetadataDto } from '../dto/attachment.dto';
|
|
8
8
|
import { AttachmentRepository } from '../repositories/attachment.repository';
|
|
9
9
|
export declare class AttachmentService extends BaseOrmService<AttachmentOrmEntity> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isAttachmentResourceRefArray = exports.isAttachmentResourceRef = exports.generateUniqueFilename = exports.getStreamableFile = exports.fileExists = exports.isMime = exports.MIME_REGEX = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const path_1 = require("path");
|
|
6
7
|
const stream_1 = require("stream");
|
|
7
8
|
const common_1 = require("@nestjs/common");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
9
|
const config_1 = require("../../config");
|
|
10
10
|
const types_1 = require("../types");
|
|
11
11
|
exports.MIME_REGEX = /^[a-z-]+\/[0-9a-z\-.]+$/gm;
|
|
@@ -37,7 +37,7 @@ exports.getStreamableFile = getStreamableFile;
|
|
|
37
37
|
const generateUniqueFilename = (originalname) => {
|
|
38
38
|
const extension = (0, path_1.extname)(originalname);
|
|
39
39
|
const name = originalname.slice(0, -extension.length);
|
|
40
|
-
return `${name}-${(0,
|
|
40
|
+
return `${name}-${(0, crypto_1.randomUUID)()}${extension}`;
|
|
41
41
|
};
|
|
42
42
|
exports.generateUniqueFilename = generateUniqueFilename;
|
|
43
43
|
const isAttachmentResourceRef = (resourceRef) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/attachment/utilities/index.ts"],"names":[],"mappings":";;;AAMA,2BAAkD;AAClD,+BAA+B;AAC/B,mCAAkC;AAElC,2CAAwD;
|
|
1
|
+
{"version":3,"file":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cAAO,EAAC,YAAY,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAEtD,OAAO,GAAG,IAAI,IAAI,IAAA,mBAAU,GAAE,GAAG,SAAS,EAAE,CAAC;AAC/C,CAAC,CAAC;AALW,QAAA,sBAAsB,0BAKjC;AAQK,MAAM,uBAAuB,GAAG,CACrC,WAAgB,EACsB,EAAE;IACxC,OAAO,MAAM,CAAC,MAAM,CAAC,6BAAqB,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACpE,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAQK,MAAM,4BAA4B,GAAG,CAC1C,OAAY,EACwB,EAAE;IACtC,OAAO,CACL,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QACtB,OAAO,CAAC,MAAM,GAAG,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,+BAAuB,CAAC,CACvC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,4BAA4B,gCAQvC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuditLog, AuditLogFull } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions } from 'typeorm';
|
|
3
|
-
import { BaseOrmController } from
|
|
4
|
-
import { TFilterNestedKeysOfType } from
|
|
3
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
4
|
+
import { TFilterNestedKeysOfType } from "../../utils/types/filter.types";
|
|
5
5
|
import { AuditLogOrmEntity } from '../entities/audit-log.entity';
|
|
6
6
|
import { AuditLogRecordService } from '../services/audit-log-record.service';
|
|
7
7
|
export declare const AUDIT_LOG_ALLOWED_FILTER_FIELDS: TFilterNestedKeysOfType<AuditLogOrmEntity>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseOrmEntity } from
|
|
1
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
2
2
|
import { AuditLogDto } from '../dto/audit-log.dto';
|
|
3
3
|
export declare class AuditLogOrmEntity extends BaseOrmEntity<AuditLogDto> {
|
|
4
4
|
plainCls: import("zod").ZodObject<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAuditLogExporter } from 'nestjs-auditlog';
|
|
2
|
-
import { LoggerService } from
|
|
2
|
+
import { LoggerService } from "../../logger/logger.service";
|
|
3
3
|
import { AuditDatabaseExporter } from './audit-database.exporter';
|
|
4
4
|
export declare class AuditBackendFactory {
|
|
5
5
|
private readonly databaseExporter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAuditLog, IAuditLogExporter } from 'nestjs-auditlog';
|
|
2
|
-
import { LoggerService } from
|
|
2
|
+
import { LoggerService } from "../../logger/logger.service";
|
|
3
3
|
export declare class AuditSafeExporter implements IAuditLogExporter {
|
|
4
4
|
private readonly delegate;
|
|
5
5
|
private readonly failClosed;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
|
-
import { BaseOrmRepository } from
|
|
2
|
+
import { BaseOrmRepository } from "../../utils/generics/base-orm.repository";
|
|
3
3
|
import { AuditLogOrmEntity } from '../entities/audit-log.entity';
|
|
4
4
|
export declare class AuditLogRepository extends BaseOrmRepository<AuditLogOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<AuditLogOrmEntity>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuditLog } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions } from 'typeorm';
|
|
3
|
-
import { BaseOrmService } from
|
|
3
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
4
4
|
import { AuditLogOrmEntity } from '../entities/audit-log.entity';
|
|
5
5
|
import { AuditLogRepository } from '../repositories/audit-log.repository';
|
|
6
6
|
export declare class AuditLogRecordService extends BaseOrmService<AuditLogOrmEntity> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnModuleInit } from '@nestjs/common';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { BindingKindMetadata } from
|
|
4
|
-
import { RuntimeBindingsService } from
|
|
3
|
+
import { BindingKindMetadata } from "./runtime-bindings";
|
|
4
|
+
import { RuntimeBindingsService } from "./runtime-bindings.service";
|
|
5
5
|
export declare abstract class BaseBindingKindProvider<K extends string = string, S extends z.ZodTypeAny = z.ZodTypeAny, M extends boolean = boolean> implements OnModuleInit {
|
|
6
6
|
private static readonly DEFAULT_COLOR;
|
|
7
7
|
private static readonly DEFAULT_ICON;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RegisterRuntimeBindingKindParams, RuntimeBindingKindDescriptor, RuntimeBindingKindSchemas } from
|
|
2
|
-
import { I18nService } from
|
|
1
|
+
import { RegisterRuntimeBindingKindParams, RuntimeBindingKindDescriptor, RuntimeBindingKindSchemas } from "./runtime-bindings";
|
|
2
|
+
import { I18nService } from "../i18n/services/i18n.service";
|
|
3
3
|
export declare class RuntimeBindingsService {
|
|
4
4
|
private readonly i18nService;
|
|
5
5
|
private static readonly registry;
|
package/dist/bootstrap.js
CHANGED
|
@@ -22,6 +22,11 @@ const redis_io_adapter_1 = require("./websocket/adapters/redis-io.adapter");
|
|
|
22
22
|
module_alias_1.default.addAliases({
|
|
23
23
|
'@': __dirname,
|
|
24
24
|
});
|
|
25
|
+
class HexabotBootstrapLogger extends common_1.ConsoleLogger {
|
|
26
|
+
log(message, context) {
|
|
27
|
+
super.log(message, context === 'NestApplication' ? 'Hexabot' : context);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
25
30
|
const rawBodyBuffer = (req, res, buf, encoding) => {
|
|
26
31
|
if (buf?.length) {
|
|
27
32
|
req.rawBody = buf.toString(encoding || 'utf8');
|
|
@@ -37,6 +42,7 @@ async function createHexabotApplication(moduleRef) {
|
|
|
37
42
|
await (0, nestjs_dynamic_providers_1.resolveDynamicProviders)();
|
|
38
43
|
const app = await core_1.NestFactory.create(moduleRef, {
|
|
39
44
|
bodyParser: false,
|
|
45
|
+
logger: new HexabotBootstrapLogger(),
|
|
40
46
|
});
|
|
41
47
|
app.set('query parser', 'extended');
|
|
42
48
|
app_instance_1.AppInstance.setApp(app);
|
|
@@ -98,6 +104,8 @@ async function bootstrapHexabotApp(moduleRef, options = {}) {
|
|
|
98
104
|
(Number.parseInt(`${process.env.PORT ?? ''}`, 10) || 3000);
|
|
99
105
|
const host = options.listen?.host ?? '0.0.0.0';
|
|
100
106
|
await app.listen(port, host);
|
|
107
|
+
const appUrl = await app.getUrl();
|
|
108
|
+
common_1.Logger.log(`Hexabot is running at ${appUrl}`, 'Hexabot');
|
|
101
109
|
return app;
|
|
102
110
|
}
|
|
103
111
|
//# sourceMappingURL=bootstrap.js.map
|
package/dist/bootstrap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;;;;AAwDA,4DAgEC;AAED,kDAyBC;AA7ID,2CAA6E;AAC7E,uCAA2C;AAE3C,8DAAqC;AACrC,gEAAuC;AACvC,uEAAmE;AACnE,wDAAgC;AAEhC,iDAA6C;AAC7C,qCAAkC;AAClC,wCAAqC;AACrC,qCAAwC;AACxC,wEAAoE;AACpE,uCAAoC;AACpC,6EAA4E;AAC5E,4EAAuE;AAEvE,sBAAW,CAAC,UAAU,CAAC;IACrB,GAAG,EAAE,SAAS;CACf,CAAC,CAAC;AAEH,MAAM,sBAAuB,SAAQ,sBAAa;IACvC,GAAG,CAAC,OAAgB,EAAE,OAAgB;QAC7C,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAED,MAAM,aAAa,GA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CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChannelMetadata } from '@hexabot-ai/types';
|
|
2
|
-
import { I18nService } from
|
|
2
|
+
import { I18nService } from "../i18n/services/i18n.service";
|
|
3
3
|
import { ChannelService } from './channel.service';
|
|
4
4
|
export declare class ChannelController {
|
|
5
5
|
private readonly channelService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnApplicationBootstrap } from '@nestjs/common';
|
|
2
2
|
import { Request, Response } from 'express';
|
|
3
|
-
import { SubscriberService } from
|
|
4
|
-
import { LoggerService } from
|
|
5
|
-
import { SocketRequest } from
|
|
6
|
-
import { SocketResponse } from
|
|
7
|
-
import { WorkflowService } from
|
|
3
|
+
import { SubscriberService } from "../chat/services/subscriber.service";
|
|
4
|
+
import { LoggerService } from "../logger/logger.service";
|
|
5
|
+
import { SocketRequest } from "../websocket/utils/socket-request";
|
|
6
|
+
import { SocketResponse } from "../websocket/utils/socket-response";
|
|
7
|
+
import { WorkflowService } from "../workflow/services/workflow.service";
|
|
8
8
|
import type ChannelHandler from './lib/Handler';
|
|
9
9
|
import { ChannelRegistry } from './services/channel-registry.service';
|
|
10
10
|
import { SourceService } from './services/source.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseOrmEntity } from
|
|
2
|
-
import { WorkflowOrmEntity } from
|
|
1
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
2
|
+
import { WorkflowOrmEntity } from "../../workflow/entities/workflow.entity";
|
|
3
3
|
import { SourceDto } from '../dto/source.dto';
|
|
4
4
|
export declare class SourceOrmEntity extends BaseOrmEntity<SourceDto> {
|
|
5
5
|
plainCls: import("zod").ZodType<{
|
|
@@ -3,13 +3,13 @@ import { StdOutgoingEnvelope } from '@hexabot-ai/types';
|
|
|
3
3
|
import { OnModuleInit, Type } from '@nestjs/common';
|
|
4
4
|
import { Request, Response } from 'express';
|
|
5
5
|
import z from 'zod';
|
|
6
|
-
import { AttachmentService } from
|
|
7
|
-
import { AttachmentFile } from
|
|
8
|
-
import { MessageInboundEvent } from
|
|
9
|
-
import { SubscriberCreateDto } from
|
|
10
|
-
import { Extension } from
|
|
11
|
-
import { SocketRequest } from
|
|
12
|
-
import { SocketResponse } from
|
|
6
|
+
import { AttachmentService } from "../../attachment/services/attachment.service";
|
|
7
|
+
import { AttachmentFile } from "../../attachment/types";
|
|
8
|
+
import { MessageInboundEvent } from "./inbound-events";
|
|
9
|
+
import { SubscriberCreateDto } from "../../chat/dto/subscriber.dto";
|
|
10
|
+
import { Extension } from "../../utils/generics/extension";
|
|
11
|
+
import { SocketRequest } from "../../websocket/utils/socket-request";
|
|
12
|
+
import { SocketResponse } from "../../websocket/utils/socket-response";
|
|
13
13
|
import { ChannelAttachmentService } from '../services/channel-attachment.service';
|
|
14
14
|
import { ChannelRegistry } from '../services/channel-registry.service';
|
|
15
15
|
import { ChannelName } from '../types';
|
|
@@ -12,10 +12,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const crypto_1 = require("crypto");
|
|
15
16
|
const common_1 = require("@nestjs/common");
|
|
16
17
|
const core_1 = require("@nestjs/core");
|
|
17
18
|
const mime_1 = __importDefault(require("mime"));
|
|
18
|
-
const uuid_1 = require("uuid");
|
|
19
19
|
const zod_1 = __importDefault(require("zod"));
|
|
20
20
|
const attachment_service_1 = require("../../attachment/services/attachment.service");
|
|
21
21
|
const types_1 = require("../../attachment/types");
|
|
@@ -72,7 +72,7 @@ let ChannelHandler = class ChannelHandler extends extension_1.Extension {
|
|
|
72
72
|
const subscriber = event.getInitiator();
|
|
73
73
|
const attachments = await Promise.all(metadatas.map(({ file, name, type, size }) => {
|
|
74
74
|
return this.attachmentService.store(file, {
|
|
75
|
-
name: `${name ? `${name}-` : ''}${(0,
|
|
75
|
+
name: `${name ? `${name}-` : ''}${(0, crypto_1.randomUUID)()}.${mime_1.default.extension(type)}`,
|
|
76
76
|
type,
|
|
77
77
|
size,
|
|
78
78
|
resourceRef: types_1.AttachmentResourceRef.MessageAttachment,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Handler.js","sourceRoot":"","sources":["../../../src/channel/lib/Handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Handler.js","sourceRoot":"","sources":["../../../src/channel/lib/Handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAMA,mCAAoC;AAUpC,2CAAwE;AACxE,uCAAyC;AAEzC,gDAAwB;AACxB,8CAAoB;AAEpB,qFAA6E;AAC7E,kDAK4B;AAG5B,8DAAuD;AAIvD,uFAAkF;AAClF,mFAAuE;AAGvE,iEAGgC;AAChC,2DAAsD;AACtD,6EAA0E;AAC1E,yCAA4D;AAG7C,IAAe,cAAc,GAA7B,MAAe,cAG5B,SAAQ,qBAAS;IAkBjB,YACE,IAAO,EACU,uBAAqC,aAAC,CAAC,YAAY,CAAC,EAAE,CAAC;QAExE,KAAK,CAAC,IAAI,CAAC,CAAC;QAFK,yBAAoB,GAApB,oBAAoB,CAAmC;IAG1E,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,IAAS,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,KAAK,CAAC,YAAY,EAAE,CAAC;QAC3B,IAAI,CAAC,eAAe,CAAC,UAAU,CAC7B,IAAI,CAAC,OAAO,EAAE,EACd,IAAoC,CACrC,CAAC;QAEF,MAAM,KAAK,GAAG,IAAA,uDAA0B,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;YAC1C,IAAY,CAAC,WAAW,CAAC,GAAG,MAAM,IAAI,CAAC,eAAe,CAC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AAE;;GACiB,cAAc,CAuO3C;kBAvO6B,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
2
|
-
import { MessageCreateDto } from
|
|
2
|
+
import { MessageCreateDto } from "../../chat/dto/message.dto";
|
|
3
3
|
import type ChannelInboundEvent from './inbound-events/channel-inbound-event';
|
|
4
4
|
import type MessageInboundEvent from './inbound-events/message-inbound-event';
|
|
5
5
|
export declare const ChannelHookEvent: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelName } from
|
|
1
|
+
import { ChannelName } from "../../types";
|
|
2
2
|
export declare class ChannelInboundEventContext<N extends ChannelName = ChannelName, R = unknown, S = SubscriberChannelDict[N]> {
|
|
3
3
|
private readonly channel;
|
|
4
4
|
private readonly raw;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelName } from
|
|
1
|
+
import { ChannelName } from "../../types";
|
|
2
2
|
import { ChannelInboundEvent } from './channel-inbound-event';
|
|
3
3
|
export interface ChannelInboundEventDecoder<N extends ChannelName, E extends ChannelInboundEvent<N> = ChannelInboundEvent<N>, S = SubscriberChannelDict[N]> {
|
|
4
4
|
readonly channel: N;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subscriber, StdEventType } from '@hexabot-ai/types';
|
|
2
|
-
import { SubscriberChannelData } from
|
|
3
|
-
import { WorkflowType } from
|
|
2
|
+
import { SubscriberChannelData } from "../../../chat/types/channel";
|
|
3
|
+
import { WorkflowType } from "../../../workflow/types";
|
|
4
4
|
import { TriggerEventWrapper } from '../../../workflow/lib/trigger-event-wrapper';
|
|
5
5
|
import { ChannelName } from '../../types';
|
|
6
6
|
import type ChannelHandler from '../Handler';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingMessageType, StdEventType, StdIncomingMessage, Payload } from '@hexabot-ai/types';
|
|
2
|
-
import { ConversationalWorkflowInput } from
|
|
2
|
+
import { ConversationalWorkflowInput } from "../../../workflow/schemas/workflow-input-schemas";
|
|
3
3
|
import { ChannelName } from '../../types';
|
|
4
4
|
import type ChannelHandler from '../Handler';
|
|
5
5
|
import ChannelInboundEvent from './channel-inbound-event';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Source, Subscriber } from '@hexabot-ai/types';
|
|
2
2
|
import { Request, Response } from 'express';
|
|
3
|
-
import { SocketRequest } from
|
|
4
|
-
import { SocketResponse } from
|
|
3
|
+
import { SocketRequest } from "../../../websocket/utils/socket-request";
|
|
4
|
+
import { SocketResponse } from "../../../websocket/utils/socket-response";
|
|
5
5
|
import { SubscriberResolution } from '../../services/subscriber-resolver.service';
|
|
6
6
|
import { ChannelName } from '../../types';
|
|
7
7
|
import ChannelHandler from '../Handler';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Source, StdEventType, Subscriber } from '@hexabot-ai/types';
|
|
2
2
|
import { Request, Response } from 'express';
|
|
3
|
-
import { SocketRequest } from
|
|
4
|
-
import { SocketResponse } from
|
|
5
|
-
import { WebsocketGateway } from
|
|
3
|
+
import { SocketRequest } from "../../../websocket/utils/socket-request";
|
|
4
|
+
import { SocketResponse } from "../../../websocket/utils/socket-response";
|
|
5
|
+
import { WebsocketGateway } from "../../../websocket/websocket.gateway";
|
|
6
6
|
import { ChannelName } from '../../types';
|
|
7
7
|
import ChannelHandler from '../Handler';
|
|
8
8
|
export declare abstract class WebSocketChannelHandler<N extends ChannelName> extends ChannelHandler<N> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
|
-
import { BaseOrmRepository } from
|
|
2
|
+
import { BaseOrmRepository } from "../../utils/generics/base-orm.repository";
|
|
3
3
|
import { SourceOrmEntity } from '../entities/source.entity';
|
|
4
4
|
export declare class SourceRepository extends BaseOrmRepository<SourceOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<SourceOrmEntity>);
|
|
@@ -3,9 +3,9 @@ import { AttachmentRef } from '@hexabot-ai/types';
|
|
|
3
3
|
import { StreamableFile } from '@nestjs/common';
|
|
4
4
|
import { JwtService, JwtSignOptions } from '@nestjs/jwt';
|
|
5
5
|
import { Request } from 'express';
|
|
6
|
-
import { AttachmentOrmEntity } from
|
|
7
|
-
import { AttachmentService } from
|
|
8
|
-
import { LoggerService } from
|
|
6
|
+
import { AttachmentOrmEntity } from "../../attachment/entities/attachment.entity";
|
|
7
|
+
import { AttachmentService } from "../../attachment/services/attachment.service";
|
|
8
|
+
import { LoggerService } from "../../logger/logger.service";
|
|
9
9
|
export type HasDownloadAccess = (attachment: Attachment, req: Request) => Promise<boolean> | boolean;
|
|
10
10
|
export declare class ChannelAttachmentService {
|
|
11
11
|
private readonly attachmentService;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Source } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions, FindOneOptions } from 'typeorm';
|
|
3
3
|
import { DeleteResult } from 'typeorm/driver/mongodb/typings';
|
|
4
|
-
import { UpdateOneOptions } from
|
|
5
|
-
import { BaseOrmService } from
|
|
6
|
-
import { WorkflowService } from
|
|
4
|
+
import { UpdateOneOptions } from "../../utils/generics/base-orm.repository";
|
|
5
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
6
|
+
import { WorkflowService } from "../../workflow/services/workflow.service";
|
|
7
7
|
import { SourceCreateDto, SourceUpdateDto } from '../dto/source.dto';
|
|
8
8
|
import { SourceOrmEntity } from '../entities/source.entity';
|
|
9
9
|
import { SourceRepository } from '../repositories/source.repository';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subscriber } from '@hexabot-ai/types';
|
|
2
|
-
import { SubscriberCreateDto } from
|
|
3
|
-
import { SubscriberService } from
|
|
2
|
+
import { SubscriberCreateDto } from "../../chat/dto/subscriber.dto";
|
|
3
|
+
import { SubscriberService } from "../../chat/services/subscriber.service";
|
|
4
4
|
import type ChannelInboundEvent from '../lib/inbound-events/channel-inbound-event';
|
|
5
5
|
import type MessageInboundEvent from '../lib/inbound-events/message-inbound-event';
|
|
6
6
|
import { ChannelName } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Source, SourceFull } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions } from 'typeorm';
|
|
3
|
-
import { BaseOrmController } from
|
|
3
|
+
import { BaseOrmController } from "../utils/generics/base-orm.controller";
|
|
4
4
|
import { SourceCreateDto, SourceUpdateDto } from './dto/source.dto';
|
|
5
5
|
import { SourceOrmEntity } from './entities/source.entity';
|
|
6
6
|
import { SourceService } from './services/source.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response } from 'express';
|
|
2
|
-
import { LoggerService } from
|
|
2
|
+
import { LoggerService } from "../logger/logger.service";
|
|
3
3
|
import { ChannelService } from './channel.service';
|
|
4
4
|
import { ChannelDownloadService } from './services/channel-download.service';
|
|
5
5
|
export declare class WebhookController {
|
package/dist/chat/chat.module.js
CHANGED
|
@@ -49,7 +49,7 @@ exports.ChatModule = ChatModule = __decorate([
|
|
|
49
49
|
subscriber_entity_1.SubscriberOrmEntity,
|
|
50
50
|
thread_entity_1.ThreadOrmEntity,
|
|
51
51
|
]),
|
|
52
|
-
cms_module_1.CmsModule,
|
|
52
|
+
(0, common_1.forwardRef)(() => cms_module_1.CmsModule),
|
|
53
53
|
attachment_module_1.AttachmentModule,
|
|
54
54
|
user_module_1.UserModule,
|
|
55
55
|
(0, common_1.forwardRef)(() => workflow_module_1.WorkflowModule),
|