@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.module.js","sourceRoot":"","sources":["../../src/chat/chat.module.ts"],"names":[],"mappings":";;;;;;;;;AAMA,2CAAoD;AACpD,6CAAgD;AAEhD,uEAAkE;AAClE,kDAA6C;AAC7C,8EAA2E;AAC3E,qDAAgD;AAChD,iEAA4D;AAE5D,iFAA4E;AAC5E,qEAAiE;AACjE,yEAAqE;AACrE,+EAA2E;AAC3E,uEAAmE;AACnE,sEAAoE;AACpE,0DAAyD;AACzD,8DAA6D;AAC7D,oEAAmE;AACnE,4DAA2D;AAC3D,kFAA6E;AAC7E,sEAAkE;AAClE,0EAAsE;AACtE,gFAA4E;AAC5E,wEAAoE;AACpE,0DAAsD;AACtD,wEAAmE;AACnE,4DAAwD;AACxD,gEAA4D;AAC5D,sEAAkE;AAClE,8DAA0D;AA8CnD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA5CtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,0CAAoB;gBACpB,6BAAc;gBACd,wCAAmB;gBACnB,iCAAgB;gBAChB,uCAAmB;gBACnB,+BAAe;aAChB,CAAC;YACF,sBAAS;
|
|
1
|
+
{"version":3,"file":"chat.module.js","sourceRoot":"","sources":["../../src/chat/chat.module.ts"],"names":[],"mappings":";;;;;;;;;AAMA,2CAAoD;AACpD,6CAAgD;AAEhD,uEAAkE;AAClE,kDAA6C;AAC7C,8EAA2E;AAC3E,qDAAgD;AAChD,iEAA4D;AAE5D,iFAA4E;AAC5E,qEAAiE;AACjE,yEAAqE;AACrE,+EAA2E;AAC3E,uEAAmE;AACnE,sEAAoE;AACpE,0DAAyD;AACzD,8DAA6D;AAC7D,oEAAmE;AACnE,4DAA2D;AAC3D,kFAA6E;AAC7E,sEAAkE;AAClE,0EAAsE;AACtE,gFAA4E;AAC5E,wEAAoE;AACpE,0DAAsD;AACtD,wEAAmE;AACnE,4DAAwD;AACxD,gEAA4D;AAC5D,sEAAkE;AAClE,8DAA0D;AA8CnD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA5CtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,0CAAoB;gBACpB,6BAAc;gBACd,wCAAmB;gBACnB,iCAAgB;gBAChB,uCAAmB;gBACnB,+BAAe;aAChB,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAS,CAAC;YAC3B,oCAAgB;YAChB,wBAAU;YAEV,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC;SACjC;QACD,WAAW,EAAE;YACX,kCAAe;YACf,6CAAoB;YACpB,sCAAiB;YACjB,4CAAoB;YACpB,oCAAgB;SACjB;QACD,SAAS,EAAE;YACT,kCAAe;YACf,6CAAoB;YACpB,sCAAiB;YACjB,4CAAoB;YACpB,oCAAgB;YAChB,4BAAY;YACZ,uCAAiB;YACjB,gCAAc;YACd,sCAAiB;YACjB,8BAAa;YACb,0BAAW;SACZ;QACD,OAAO,EAAE;YACP,sCAAiB;YACjB,gCAAc;YACd,4BAAY;YACZ,uCAAiB;YACjB,8BAAa;SACd;KACF,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LabelGroup, LabelGroupFull } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions } from 'typeorm';
|
|
3
3
|
import { DeleteResult } from 'typeorm/driver/mongodb/typings';
|
|
4
|
-
import { BaseOrmController } from
|
|
4
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
5
5
|
import { LabelGroupCreateDto, LabelGroupUpdateDto } from '../dto/label-group.dto';
|
|
6
6
|
import { LabelGroupOrmEntity } from '../entities/label-group.entity';
|
|
7
7
|
import { LabelGroupService } from '../services/label-group.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Label, LabelFull } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions } from 'typeorm';
|
|
3
3
|
import { DeleteResult } from 'typeorm/driver/mongodb/typings';
|
|
4
|
-
import { BaseOrmController } from
|
|
4
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
5
5
|
import { LabelCreateDto, LabelUpdateDto } from '../dto/label.dto';
|
|
6
6
|
import { LabelOrmEntity } from '../entities/label.entity';
|
|
7
7
|
import { LabelService } from '../services/label.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Message, MessageFull } from '@hexabot-ai/types';
|
|
2
2
|
import { Request } from 'express';
|
|
3
3
|
import { FindManyOptions } from 'typeorm';
|
|
4
|
-
import { ChannelService } from
|
|
5
|
-
import { BaseOrmController } from
|
|
4
|
+
import { ChannelService } from "../../channel/channel.service";
|
|
5
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
6
6
|
import { MessageSendDto } from '../dto/message.dto';
|
|
7
7
|
import { MessageOrmEntity } from '../entities/message.entity';
|
|
8
8
|
import { MessageService } from '../services/message.service';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Subscriber, SubscriberFull } from '@hexabot-ai/types';
|
|
2
2
|
import { StreamableFile } from '@nestjs/common';
|
|
3
3
|
import { FindManyOptions } from 'typeorm';
|
|
4
|
-
import { AttachmentService } from
|
|
5
|
-
import { TFilterNestedKeysOfType } from
|
|
6
|
-
import { BaseOrmController } from
|
|
4
|
+
import { AttachmentService } from "../../attachment/services/attachment.service";
|
|
5
|
+
import { TFilterNestedKeysOfType } from "../../utils";
|
|
6
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
7
7
|
import { SubscriberUpdateDto } from '../dto/subscriber.dto';
|
|
8
8
|
import { SubscriberOrmEntity } from '../entities/subscriber.entity';
|
|
9
9
|
import { SubscriberService } from '../services/subscriber.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Thread, ThreadFull } 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 { ThreadCreateDto, ThreadUpdateDto } from '../dto/thread.dto';
|
|
6
6
|
import { ThreadOrmEntity } from '../entities/thread.entity';
|
|
7
7
|
import { ThreadService } from '../services/thread.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { messageFullSchema, messageSchema, StdIncomingMessage, StdOutgoingMessage } from '@hexabot-ai/types';
|
|
2
|
-
import { TDto } from
|
|
2
|
+
import { TDto } from "../../utils/types/dto.types";
|
|
3
3
|
export declare class MessageCreateDto {
|
|
4
4
|
mid?: string;
|
|
5
5
|
inReplyTo?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { subscriberFullSchema, subscriberSchema } from '@hexabot-ai/types';
|
|
2
|
-
import { ChannelName } from
|
|
3
|
-
import { UserProfileCreateDto } from
|
|
4
|
-
import { TDto } from
|
|
2
|
+
import { ChannelName } from "../../channel/types";
|
|
3
|
+
import { UserProfileCreateDto } from "../../user/dto/user-profile.dto";
|
|
4
|
+
import { TDto } from "../../utils/types/dto.types";
|
|
5
5
|
import { SubscriberChannelData } from '../types/channel';
|
|
6
6
|
export declare class SubscriberCreateDto extends UserProfileCreateDto {
|
|
7
7
|
locale: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseOrmEntity } from
|
|
1
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
2
2
|
import { LabelGroupDto } from '../dto/label-group.dto';
|
|
3
3
|
import { LabelOrmEntity } from './label.entity';
|
|
4
4
|
export declare class LabelGroupOrmEntity extends BaseOrmEntity<LabelGroupDto> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseOrmEntity } from
|
|
1
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
2
2
|
import { LabelDto } from '../dto/label.dto';
|
|
3
3
|
import { LabelGroupOrmEntity } from './label-group.entity';
|
|
4
4
|
import { SubscriberOrmEntity } from './subscriber.entity';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StdIncomingMessage, StdOutgoingMessage } from '@hexabot-ai/types';
|
|
2
|
-
import { BaseOrmEntity } from
|
|
3
|
-
import { UserOrmEntity } from
|
|
2
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
3
|
+
import { UserOrmEntity } from "../../user/entities/user.entity";
|
|
4
4
|
import { MessageDto } from '../dto/message.dto';
|
|
5
5
|
import { SubscriberOrmEntity } from './subscriber.entity';
|
|
6
6
|
import { ThreadOrmEntity } from './thread.entity';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UpdateEvent } from 'typeorm';
|
|
2
|
-
import type { SourceOrmEntity } from
|
|
3
|
-
import { UserProfileOrmEntity } from
|
|
4
|
-
import { UserOrmEntity } from
|
|
5
|
-
import { TZodDto } from
|
|
2
|
+
import type { SourceOrmEntity } from "../../channel/entities/source.entity";
|
|
3
|
+
import { UserProfileOrmEntity } from "../../user/entities/user-profile.entity";
|
|
4
|
+
import { UserOrmEntity } from "../../user/entities/user.entity";
|
|
5
|
+
import { TZodDto } from "../../utils";
|
|
6
6
|
import { SubscriberDto } from '../dto/subscriber.dto';
|
|
7
7
|
import { LabelOrmEntity } from './label.entity';
|
|
8
8
|
export declare class SubscriberChannel {
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubscriberOrmEntity = exports.SubscriberChannel = void 0;
|
|
13
|
+
const node_module_1 = require("node:module");
|
|
13
14
|
const types_1 = require("@hexabot-ai/types");
|
|
14
15
|
const typeorm_1 = require("typeorm");
|
|
15
16
|
const datetime_column_decorator_1 = require("../../database/decorators/datetime-column.decorator");
|
|
@@ -17,6 +18,7 @@ const json_column_decorator_1 = require("../../database/decorators/json-column.d
|
|
|
17
18
|
const user_profile_entity_1 = require("../../user/entities/user-profile.entity");
|
|
18
19
|
const relation_ref_decorator_1 = require("../../utils/decorators/relation-ref.decorator");
|
|
19
20
|
const label_entity_1 = require("./label.entity");
|
|
21
|
+
const requireEntity = (0, node_module_1.createRequire)(__filename);
|
|
20
22
|
class SubscriberChannel {
|
|
21
23
|
}
|
|
22
24
|
exports.SubscriberChannel = SubscriberChannel;
|
|
@@ -57,7 +59,7 @@ __decorate([
|
|
|
57
59
|
__metadata("design:type", String)
|
|
58
60
|
], SubscriberOrmEntity.prototype, "foreignId", void 0);
|
|
59
61
|
__decorate([
|
|
60
|
-
(0, typeorm_1.ManyToOne)('SourceOrmEntity
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => requireEntity('../../channel/entities/source.entity').SourceOrmEntity, {
|
|
61
63
|
nullable: true,
|
|
62
64
|
onDelete: 'CASCADE',
|
|
63
65
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriber.entity.js","sourceRoot":"","sources":["../../../src/chat/entities/subscriber.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAA2E;AAC3E,qCAWiB;AAGjB,mGAAiF;AACjF,2FAAyE;AACzE,iFAA2E;AAG3E,0FAAuE;AAIvE,iDAAgD;AAEhD,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAJC;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,kCAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACrB;AASL,IAAM,mBAAmB,GAAzB,MAAM,mBAEX,SAAQ,0CAAyB;IAF5B;;QAGL,aAAQ,GACN,wBAAgD,CAAC;QAEnD,YAAO,GACL,4BAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"subscriber.entity.js","sourceRoot":"","sources":["../../../src/chat/entities/subscriber.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAA4C;AAE5C,6CAA2E;AAC3E,qCAWiB;AAGjB,mGAAiF;AACjF,2FAAyE;AACzE,iFAA2E;AAG3E,0FAAuE;AAIvE,iDAAgD;AAEhD,MAAM,aAAa,GAAG,IAAA,2BAAa,EAAC,UAAU,CAAC,CAAC;AAEhD,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAJC;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,kCAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACrB;AASL,IAAM,mBAAmB,GAAzB,MAAM,mBAEX,SAAQ,0CAAyB;IAF5B;;QAGL,aAAQ,GACN,wBAAgD,CAAC;QAEnD,YAAO,GACL,4BAAmD,CAAC;IAmFxD,CAAC;IAPC,cA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1
|
+
import { SourceOrmEntity } from "../../channel/entities/source.entity";
|
|
2
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
3
3
|
import { ThreadDto } from '../dto/thread.dto';
|
|
4
4
|
import { SubscriberOrmEntity } from './subscriber.entity';
|
|
5
5
|
export declare const THREAD_STATUSES: readonly ["open", "closed"];
|
|
@@ -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 { LabelGroupOrmEntity } from '../entities/label-group.entity';
|
|
4
4
|
export declare class LabelGroupRepository extends BaseOrmRepository<LabelGroupOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<LabelGroupOrmEntity>);
|
|
@@ -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 { LabelOrmEntity } from '../entities/label.entity';
|
|
4
4
|
export declare class LabelRepository extends BaseOrmRepository<LabelOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<LabelOrmEntity>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThreadStub, Message } 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 { MessageOrmEntity } from '../entities/message.entity';
|
|
5
5
|
export declare class MessageRepository extends BaseOrmRepository<MessageOrmEntity> {
|
|
6
6
|
constructor(repository: Repository<MessageOrmEntity>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subscriber, SubscriberFull } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions, Repository } from 'typeorm';
|
|
3
|
-
import { BaseOrmRepository, FindAllOptions } from
|
|
3
|
+
import { BaseOrmRepository, FindAllOptions } from "../../utils/generics/base-orm.repository";
|
|
4
4
|
import { SubscriberUpdateDto } from '../dto/subscriber.dto';
|
|
5
5
|
import { SubscriberOrmEntity } from '../entities/subscriber.entity';
|
|
6
6
|
export declare class SubscriberRepository extends BaseOrmRepository<SubscriberOrmEntity> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Thread } 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 { ThreadOrmEntity } from '../entities/thread.entity';
|
|
5
5
|
export declare class ThreadRepository extends BaseOrmRepository<ThreadOrmEntity> {
|
|
6
6
|
constructor(repository: Repository<ThreadOrmEntity>);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
2
|
-
import { MessageInboundEvent } from
|
|
3
|
-
import { DeliveryNotificationInboundEvent, ReadNotificationInboundEvent } from
|
|
4
|
-
import { LoggerService } from
|
|
5
|
-
import { AgenticService } from
|
|
2
|
+
import { MessageInboundEvent } from "../../channel/lib/inbound-events";
|
|
3
|
+
import { DeliveryNotificationInboundEvent, ReadNotificationInboundEvent } from "../../extensions/channels/web/inbound";
|
|
4
|
+
import { LoggerService } from "../../logger/logger.service";
|
|
5
|
+
import { AgenticService } from "../../workflow/services/agentic.service";
|
|
6
6
|
import { MessageCreateDto } from '../dto/message.dto';
|
|
7
7
|
import { MessageService } from './message.service';
|
|
8
8
|
import { SubscriberService } from './subscriber.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseOrmService } from
|
|
1
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
2
2
|
import { LabelGroupOrmEntity } from '../entities/label-group.entity';
|
|
3
3
|
import { LabelGroupRepository } from '../repositories/label-group.repository';
|
|
4
4
|
export declare class LabelGroupService extends BaseOrmService<LabelGroupOrmEntity> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseOrmService } from
|
|
1
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
2
2
|
import { LabelOrmEntity } from '../entities/label.entity';
|
|
3
3
|
import { LabelRepository } from '../repositories/label.repository';
|
|
4
4
|
export declare class LabelService extends BaseOrmService<LabelOrmEntity> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThreadStub, Message, Thread } from '@hexabot-ai/types';
|
|
2
|
-
import { BaseOrmService } from
|
|
3
|
-
import { WebsocketGateway } from
|
|
2
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
3
|
+
import { WebsocketGateway } from "../../websocket/websocket.gateway";
|
|
4
4
|
import { MessageOrmEntity } from '../entities/message.entity';
|
|
5
5
|
import { MessageRepository } from '../repositories/message.repository';
|
|
6
6
|
export declare class MessageService extends BaseOrmService<MessageOrmEntity> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Subscriber } from '@hexabot-ai/types';
|
|
2
|
-
import { AttachmentService } from
|
|
3
|
-
import { AttachmentAccess, AttachmentCreatedByRef, AttachmentFile, AttachmentResourceRef } from
|
|
4
|
-
import { UserService } from
|
|
5
|
-
import { BaseOrmService } from
|
|
6
|
-
import { WebsocketGateway } from
|
|
2
|
+
import { AttachmentService } from "../../attachment/services/attachment.service";
|
|
3
|
+
import { AttachmentAccess, AttachmentCreatedByRef, AttachmentFile, AttachmentResourceRef } from "../../attachment/types";
|
|
4
|
+
import { UserService } from "../../user/services/user.service";
|
|
5
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
6
|
+
import { WebsocketGateway } from "../../websocket/websocket.gateway";
|
|
7
7
|
import { SubscriberUpdateDto } from '../dto/subscriber.dto';
|
|
8
8
|
import { SubscriberOrmEntity } from '../entities/subscriber.entity';
|
|
9
9
|
import { SubscriberRepository } from '../repositories/subscriber.repository';
|
|
@@ -16,11 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.SubscriberService = exports.SUBSCRIBER_HANDOVER_MODES = void 0;
|
|
19
|
+
const crypto_1 = require("crypto");
|
|
19
20
|
const common_1 = require("@nestjs/common");
|
|
20
21
|
const event_emitter_1 = require("@nestjs/event-emitter");
|
|
21
22
|
const mime_1 = __importDefault(require("mime"));
|
|
22
23
|
const typeorm_1 = require("typeorm");
|
|
23
|
-
const uuid_1 = require("uuid");
|
|
24
24
|
const attachment_service_1 = require("../../attachment/services/attachment.service");
|
|
25
25
|
const types_1 = require("../../attachment/types");
|
|
26
26
|
const config_1 = require("../../config");
|
|
@@ -58,7 +58,7 @@ let SubscriberService = class SubscriberService extends base_orm_service_1.BaseO
|
|
|
58
58
|
const { file, type, size } = avatar;
|
|
59
59
|
const extension = mime_1.default.extension(type);
|
|
60
60
|
const attachment = await this.attachmentService.store(file, {
|
|
61
|
-
name: `avatar-${(0,
|
|
61
|
+
name: `avatar-${(0, crypto_1.randomUUID)()}.${extension}`,
|
|
62
62
|
size,
|
|
63
63
|
type,
|
|
64
64
|
resourceRef: types_1.AttachmentResourceRef.SubscriberAvatar,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriber.service.js","sourceRoot":"","sources":["../../../src/chat/services/subscriber.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"subscriber.service.js","sourceRoot":"","sources":["../../../src/chat/services/subscriber.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAMA,mCAAoC;AAGpC,2CAA0E;AAC1E,yDAAgD;AAChD,gDAAwB;AACxB,qCAA0C;AAE1C,qFAA6E;AAC7E,kDAK4B;AAC5B,yCAAkC;AAClC,mEAA2D;AAC3D,4EAAmE;AACnE,yEAAiE;AAIjE,iFAA6E;AAE7E,mDAA+C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CAAC;gBACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,EAAE;oBAG/C,YAAY,EACV,CAAC,IAAI,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,SAAS;wBACnC,eAAM,CAAC,SAAS,CAAC,UAAU,CAAC,cAAc;wBACxC,CAAC,CAAC,IAAI,IAAI,EAAE;wBACZ,CAAC,CAAC,UAAU,CAAC,YAAY;oBAC7B,SAAS,EAAE,IAAI,IAAI,EAAE;iBACtB,CAAC,CAAC;gBACH,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,wDAAwD,EACxD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CACrB,CAAC;YACJ,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,GAAG,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAteY,8CAAiB;AAgdtB;IADL,IAAA,uBAAO,EAAC,qBAAqB,CAAC;;;;wDAsB9B;4BAreU,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,iBAAQ,GAAE,CAAA;IACV,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC,CAAC,CAAA;qCALtB,4CAAoB;QACH,sCAAiB;QACtB,4BAAY;QACb,0BAAW;QAGL,oCAAgB;GAR7C,iBAAiB,CAse7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Thread } from '@hexabot-ai/types';
|
|
2
2
|
import { FindOneOptions } from 'typeorm';
|
|
3
|
-
import { UpdateOneOptions } from
|
|
4
|
-
import { BaseOrmService } from
|
|
3
|
+
import { UpdateOneOptions } from "../../utils/generics/base-orm.repository";
|
|
4
|
+
import { BaseOrmService } from "../../utils/generics/base-orm.service";
|
|
5
5
|
import { ThreadCreateDto, ThreadUpdateDto } from '../dto/thread.dto';
|
|
6
6
|
import { ThreadOrmEntity } from '../entities/thread.entity';
|
|
7
7
|
import { ThreadRepository } from '../repositories/thread.repository';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentType } 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 { ContentTypeCreateDto, ContentTypeUpdateDto } from '../dto/contentType.dto';
|
|
5
5
|
import { ContentTypeOrmEntity } from '../entities/content-type.entity';
|
|
6
6
|
import { ContentTypeService } from '../services/content-type.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Content } 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 { ContentCreateDto, ContentUpdateDto } from '../dto/content.dto';
|
|
5
5
|
import { ContentOrmEntity } from '../entities/content.entity';
|
|
6
6
|
import { RagService } from '../services/rag.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Menu } from '@hexabot-ai/types';
|
|
2
2
|
import { FindManyOptions } from 'typeorm';
|
|
3
|
-
import { BaseOrmController } from
|
|
4
|
-
import { FindAllOptions } from
|
|
3
|
+
import { BaseOrmController } from "../../utils/generics/base-orm.controller";
|
|
4
|
+
import { FindAllOptions } from "../../utils/generics/base-orm.repository";
|
|
5
5
|
import { MenuCreateDto, MenuUpdateDto } from '../dto/menu.dto';
|
|
6
6
|
import { MenuOrmEntity } from '../entities/menu.entity';
|
|
7
7
|
import { MenuService } from '../services/menu.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { contentTypeFullSchema, contentTypeSchema } from '@hexabot-ai/types';
|
|
2
2
|
import { JSONSchema7 as JsonSchema } from 'json-schema';
|
|
3
|
-
import { FieldType } from
|
|
4
|
-
import { TDto } from
|
|
3
|
+
import { FieldType } from "../../setting/types";
|
|
4
|
+
import { TDto } from "../../utils/types/dto.types";
|
|
5
5
|
export declare class ContentField {
|
|
6
6
|
name: string;
|
|
7
7
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { menuFullSchema, menuSchema } from '@hexabot-ai/types';
|
|
2
|
-
import { TDto } from
|
|
2
|
+
import { TDto } from "../../utils/types/dto.types";
|
|
3
3
|
import { MenuType } from '../enums/menu-type.enum';
|
|
4
4
|
export declare class MenuCreateDto {
|
|
5
5
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSONSchema7 as JsonSchema } from 'json-schema';
|
|
2
|
-
import { BaseOrmEntity } from
|
|
2
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
3
3
|
import { ContentTypeDto } from '../dto/contentType.dto';
|
|
4
|
-
import { ContentOrmEntity } from './content.entity';
|
|
4
|
+
import type { ContentOrmEntity } from './content.entity';
|
|
5
5
|
export declare class ContentTypeOrmEntity extends BaseOrmEntity<ContentTypeDto> {
|
|
6
6
|
plainCls: import("zod").ZodObject<{
|
|
7
7
|
id: import("zod").ZodString;
|
|
@@ -10,12 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ContentTypeOrmEntity = void 0;
|
|
13
|
+
const node_module_1 = require("node:module");
|
|
13
14
|
const types_1 = require("@hexabot-ai/types");
|
|
14
15
|
const typeorm_1 = require("typeorm");
|
|
15
16
|
const audit_label_decorator_1 = require("../../audit/decorators/audit-label.decorator");
|
|
16
17
|
const json_column_decorator_1 = require("../../database/decorators/json-column.decorator");
|
|
17
18
|
const base_entity_1 = require("../../database/entities/base.entity");
|
|
18
|
-
const
|
|
19
|
+
const requireEntity = (0, node_module_1.createRequire)(__filename);
|
|
19
20
|
let ContentTypeOrmEntity = class ContentTypeOrmEntity extends base_entity_1.BaseOrmEntity {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
@@ -34,7 +35,7 @@ __decorate([
|
|
|
34
35
|
__metadata("design:type", Object)
|
|
35
36
|
], ContentTypeOrmEntity.prototype, "schema", void 0);
|
|
36
37
|
__decorate([
|
|
37
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
38
|
+
(0, typeorm_1.OneToMany)(() => requireEntity('./content.entity').ContentOrmEntity, (content) => content.contentType, {
|
|
38
39
|
cascade: ['remove'],
|
|
39
40
|
}),
|
|
40
41
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-type.entity.js","sourceRoot":"","sources":["../../../src/cms/entities/content-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAA6E;AAE7E,qCAA2D;AAE3D,wFAAsE;AACtE,2FAAyE;AACzE,qEAAgE;
|
|
1
|
+
{"version":3,"file":"content-type.entity.js","sourceRoot":"","sources":["../../../src/cms/entities/content-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAA4C;AAE5C,6CAA6E;AAE7E,qCAA2D;AAE3D,wFAAsE;AACtE,2FAAyE;AACzE,qEAAgE;AAMhE,MAAM,aAAa,GAAG,IAAA,2BAAa,EAAC,UAAU,CAAC,CAAC;AAIzC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,2BAA6B;IAAhE;;QACL,aAAQ,GAAG,yBAAiB,CAAC;QAE7B,YAAO,GAAG,6BAAqB,CAAC;IAkBlC,CAAC;CAAA,CAAA;AArBY,oDAAoB;AAO/B;IAFC,IAAA,kCAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDACX;AAId;IADC,IAAA,kCAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACX;AASpB;IAPC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,gBAAgB,EACxD,CAAC,OAAyB,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAClD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;KACpB,CACF;;sDAC6B;+BApBnB,oBAAoB;IAFhC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IACjC,IAAA,eAAK,EAAC,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACrB,oBAAoB,CAqBhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Content, ContentElement } from '@hexabot-ai/types';
|
|
2
|
-
import { BaseOrmEntity } from
|
|
2
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
3
3
|
import { ContentDto } from '../dto/content.dto';
|
|
4
|
-
import { ContentTypeOrmEntity } from './content-type.entity';
|
|
4
|
+
import type { ContentTypeOrmEntity } from './content-type.entity';
|
|
5
5
|
export declare class ContentOrmEntity extends BaseOrmEntity<ContentDto> {
|
|
6
6
|
plainCls: import("zod").ZodType<{
|
|
7
7
|
id: string;
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ContentOrmEntity = void 0;
|
|
13
|
+
const node_module_1 = require("node:module");
|
|
13
14
|
const types_1 = require("@hexabot-ai/types");
|
|
14
15
|
const typeorm_1 = require("typeorm");
|
|
15
16
|
const audit_label_decorator_1 = require("../../audit/decorators/audit-label.decorator");
|
|
@@ -18,7 +19,7 @@ const json_column_decorator_1 = require("../../database/decorators/json-column.d
|
|
|
18
19
|
const orm_event_hooks_decorator_1 = require("../../database/decorators/orm-event-hooks.decorator");
|
|
19
20
|
const base_entity_1 = require("../../database/entities/base.entity");
|
|
20
21
|
const relation_ref_decorator_1 = require("../../utils/decorators/relation-ref.decorator");
|
|
21
|
-
const
|
|
22
|
+
const requireEntity = (0, node_module_1.createRequire)(__filename);
|
|
22
23
|
let ContentOrmEntity = class ContentOrmEntity extends base_entity_1.BaseOrmEntity {
|
|
23
24
|
constructor() {
|
|
24
25
|
super(...arguments);
|
|
@@ -55,13 +56,13 @@ let ContentOrmEntity = class ContentOrmEntity extends base_entity_1.BaseOrmEntit
|
|
|
55
56
|
};
|
|
56
57
|
exports.ContentOrmEntity = ContentOrmEntity;
|
|
57
58
|
__decorate([
|
|
58
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
59
|
+
(0, typeorm_1.ManyToOne)(() => requireEntity('./content-type.entity').ContentTypeOrmEntity, (entity) => entity.contents, {
|
|
59
60
|
nullable: false,
|
|
60
61
|
onDelete: 'CASCADE',
|
|
61
62
|
}),
|
|
62
63
|
(0, typeorm_1.JoinColumn)({ name: 'content_type_id' }),
|
|
63
64
|
(0, relation_ref_decorator_1.AsRelation)(),
|
|
64
|
-
__metadata("design:type",
|
|
65
|
+
__metadata("design:type", Function)
|
|
65
66
|
], ContentOrmEntity.prototype, "contentType", void 0);
|
|
66
67
|
__decorate([
|
|
67
68
|
(0, typeorm_1.RelationId)((value) => value.contentType),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.entity.js","sourceRoot":"","sources":["../../../src/cms/entities/content.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAK2B;AAC3B,qCAOiB;AAEjB,wFAAsE;AACtE,yCAAkC;AAClC,2FAAyE;AACzE,mGAGyD;AACzD,qEAAgE;AAChE,0FAAuE;
|
|
1
|
+
{"version":3,"file":"content.entity.js","sourceRoot":"","sources":["../../../src/cms/entities/content.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6CAA4C;AAE5C,6CAK2B;AAC3B,qCAOiB;AAEjB,wFAAsE;AACtE,yCAAkC;AAClC,2FAAyE;AACzE,mGAGyD;AACzD,qEAAgE;AAChE,0FAAuE;AAMv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
|
2
|
-
import { BaseOrmEntity } from
|
|
2
|
+
import { BaseOrmEntity } from "../../database/entities/base.entity";
|
|
3
3
|
import { MenuDto } from '../dto/menu.dto';
|
|
4
4
|
import { MenuType } from '../enums/menu-type.enum';
|
|
5
5
|
export { MenuType };
|
|
@@ -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 { ContentTypeOrmEntity } from '../entities/content-type.entity';
|
|
4
4
|
export declare class ContentTypeRepository extends BaseOrmRepository<ContentTypeOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<ContentTypeOrmEntity>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentFull } 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 { ContentOrmEntity } from '../entities/content.entity';
|
|
5
5
|
export declare class ContentRepository extends BaseOrmRepository<ContentOrmEntity> {
|
|
6
6
|
constructor(repository: Repository<ContentOrmEntity>);
|
|
@@ -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 { MenuOrmEntity } from '../entities/menu.entity';
|
|
4
4
|
export declare class MenuRepository extends BaseOrmRepository<MenuOrmEntity> {
|
|
5
5
|
constructor(repository: Repository<MenuOrmEntity>);
|