@hexabot-ai/api 3.2.2-alpha.8 → 3.2.2-beta.0
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 +1 -0
- package/dist/actions/actions.service.js +19 -1
- package/dist/actions/actions.service.js.map +1 -1
- package/dist/actions/types.d.ts +3 -1
- package/dist/app.controller.d.ts +1 -0
- package/dist/app.controller.js +1 -0
- package/dist/app.controller.js.map +1 -1
- package/dist/app.module.js +13 -1
- package/dist/app.module.js.map +1 -1
- package/dist/channel/lib/__test__/label.mock.js +0 -24
- package/dist/channel/lib/__test__/label.mock.js.map +1 -1
- package/dist/chat/dto/label.dto.d.ts +0 -1
- package/dist/chat/dto/label.dto.js +0 -6
- package/dist/chat/dto/label.dto.js.map +1 -1
- package/dist/chat/entities/label-group.entity.d.ts +0 -2
- package/dist/chat/entities/label.entity.d.ts +0 -4
- package/dist/chat/entities/label.entity.js +0 -5
- package/dist/chat/entities/label.entity.js.map +1 -1
- package/dist/chat/services/subscriber.service.d.ts +0 -1
- package/dist/config/index.js +14 -2
- package/dist/config/index.js.map +1 -1
- package/dist/config/types.d.ts +9 -0
- package/dist/extensions/actions/ai/agent.action.d.ts +1 -1
- package/dist/extensions/actions/ai/agent.action.js +6 -3
- package/dist/extensions/actions/ai/agent.action.js.map +1 -1
- package/dist/extensions/actions/ai/ai-base.action.d.ts +1 -1
- package/dist/extensions/actions/ai/ai-base.action.js +18 -5
- package/dist/extensions/actions/ai/ai-base.action.js.map +1 -1
- package/dist/extensions/actions/ai/generate-object.base.action.d.ts +1 -1
- package/dist/extensions/actions/ai/generate-object.base.action.js +3 -2
- package/dist/extensions/actions/ai/generate-object.base.action.js.map +1 -1
- package/dist/extensions/actions/ai/generate-text.base.action.d.ts +1 -1
- package/dist/extensions/actions/ai/generate-text.base.action.js +3 -2
- package/dist/extensions/actions/ai/generate-text.base.action.js.map +1 -1
- package/dist/extensions/actions/ai/mcp.binding.js +2 -0
- package/dist/extensions/actions/ai/mcp.binding.js.map +1 -1
- package/dist/extensions/actions/ai/memory.binding.js +2 -0
- package/dist/extensions/actions/ai/memory.binding.js.map +1 -1
- package/dist/extensions/actions/ai/retrieve-content-rag.action.js +2 -0
- package/dist/extensions/actions/ai/retrieve-content-rag.action.js.map +1 -1
- package/dist/extensions/actions/messaging/list.action.d.ts +2 -2
- package/dist/extensions/actions/messaging/list.action.js +7 -0
- package/dist/extensions/actions/messaging/list.action.js.map +1 -1
- package/dist/extensions/actions/subscriber/update-labels.action.js +3 -0
- package/dist/extensions/actions/subscriber/update-labels.action.js.map +1 -1
- package/dist/extensions/actions/web/http-request.action.js +12 -1
- package/dist/extensions/actions/web/http-request.action.js.map +1 -1
- package/dist/extensions/actions/workflow/call-workflow.action.d.ts +19 -0
- package/dist/extensions/actions/workflow/call-workflow.action.js +83 -0
- package/dist/extensions/actions/workflow/call-workflow.action.js.map +1 -0
- package/dist/extensions/actions/workflow/i18n/en.translations.json +9 -0
- package/dist/extensions/actions/workflow/i18n/fr.translations.json +9 -0
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/index.js +1 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/controllers/mcp-token.controller.d.ts +47 -0
- package/dist/mcp/controllers/mcp-token.controller.js +70 -0
- package/dist/mcp/controllers/mcp-token.controller.js.map +1 -0
- package/dist/mcp/decorators/mcp-permission.decorator.d.ts +8 -0
- package/dist/mcp/decorators/mcp-permission.decorator.js +11 -0
- package/dist/mcp/decorators/mcp-permission.decorator.js.map +1 -0
- package/dist/mcp/dto/mcp-token.dto.d.ts +17 -0
- package/dist/mcp/dto/mcp-token.dto.js +40 -0
- package/dist/mcp/dto/mcp-token.dto.js.map +1 -0
- package/dist/mcp/entities/mcp-token.entity.d.ts +111 -0
- package/dist/mcp/entities/mcp-token.entity.js +69 -0
- package/dist/mcp/entities/mcp-token.entity.js.map +1 -0
- package/dist/mcp/guards/hexabot-mcp-token.guard.d.ts +9 -0
- package/dist/mcp/guards/hexabot-mcp-token.guard.js +49 -0
- package/dist/mcp/guards/hexabot-mcp-token.guard.js.map +1 -0
- package/dist/mcp/guards/mcp-permission.guard.d.ts +9 -0
- package/dist/mcp/guards/mcp-permission.guard.js +47 -0
- package/dist/mcp/guards/mcp-permission.guard.js.map +1 -0
- package/dist/mcp/mcp-api.module.d.ts +2 -0
- package/dist/mcp/mcp-api.module.js +65 -0
- package/dist/mcp/mcp-api.module.js.map +1 -0
- package/dist/mcp/repositories/mcp-token.repository.d.ts +8 -0
- package/dist/mcp/repositories/mcp-token.repository.js +41 -0
- package/dist/mcp/repositories/mcp-token.repository.js.map +1 -0
- package/dist/mcp/services/mcp-token.service.d.ts +24 -0
- package/dist/mcp/services/mcp-token.service.js +106 -0
- package/dist/mcp/services/mcp-token.service.js.map +1 -0
- package/dist/mcp/tools/catalog-mcp.tools.d.ts +63 -0
- package/dist/mcp/tools/catalog-mcp.tools.js +135 -0
- package/dist/mcp/tools/catalog-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/cms-mcp.tools.d.ts +128 -0
- package/dist/mcp/tools/cms-mcp.tools.js +242 -0
- package/dist/mcp/tools/cms-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/credential-mcp.tools.d.ts +19 -0
- package/dist/mcp/tools/credential-mcp.tools.js +82 -0
- package/dist/mcp/tools/credential-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/hexabot-mcp-tool.base.d.ts +22 -0
- package/dist/mcp/tools/hexabot-mcp-tool.base.js +48 -0
- package/dist/mcp/tools/hexabot-mcp-tool.base.js.map +1 -0
- package/dist/mcp/tools/hexabot-mcp.schemas.d.ts +41 -0
- package/dist/mcp/tools/hexabot-mcp.schemas.js +36 -0
- package/dist/mcp/tools/hexabot-mcp.schemas.js.map +1 -0
- package/dist/mcp/tools/hexabot-mcp.tools.d.ts +1 -0
- package/dist/mcp/tools/hexabot-mcp.tools.js +18 -0
- package/dist/mcp/tools/hexabot-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/hexabot-mcp.utils.d.ts +2 -0
- package/dist/mcp/tools/hexabot-mcp.utils.js +21 -0
- package/dist/mcp/tools/hexabot-mcp.utils.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +22 -0
- package/dist/mcp/tools/index.js +50 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/mcp-server-mcp.tools.d.ts +77 -0
- package/dist/mcp/tools/mcp-server-mcp.tools.js +130 -0
- package/dist/mcp/tools/mcp-server-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/memory-definition-mcp.tools.d.ts +57 -0
- package/dist/mcp/tools/memory-definition-mcp.tools.js +128 -0
- package/dist/mcp/tools/memory-definition-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/workflow-mcp.helper.d.ts +156 -0
- package/dist/mcp/tools/workflow-mcp.helper.js +128 -0
- package/dist/mcp/tools/workflow-mcp.helper.js.map +1 -0
- package/dist/mcp/tools/workflow-mcp.tools.d.ts +790 -0
- package/dist/mcp/tools/workflow-mcp.tools.js +227 -0
- package/dist/mcp/tools/workflow-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/workflow-run-mcp.tools.d.ts +349 -0
- package/dist/mcp/tools/workflow-run-mcp.tools.js +242 -0
- package/dist/mcp/tools/workflow-run-mcp.tools.js.map +1 -0
- package/dist/mcp/tools/workflow-version-mcp.tools.d.ts +238 -0
- package/dist/mcp/tools/workflow-version-mcp.tools.js +368 -0
- package/dist/mcp/tools/workflow-version-mcp.tools.js.map +1 -0
- package/dist/mcp/types.d.ts +7 -0
- package/dist/mcp/types.js +3 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/static/assets/{browser-ponyfill-IkrOfrbH.js → browser-ponyfill-AQYxeOz6.js} +1 -1
- package/dist/static/assets/{cssMode-BVh8Ojbf.js → cssMode-CU7XHFDD.js} +1 -1
- package/dist/static/assets/{freemarker2-Cnk90W15.js → freemarker2-DA_oH4Qs.js} +1 -1
- package/dist/static/assets/{handlebars-DDmCOyIG.js → handlebars-DXFzBSlw.js} +1 -1
- package/dist/static/assets/{html-cDkAkcNZ.js → html-CnQNXujK.js} +1 -1
- package/dist/static/assets/{htmlMode-BKekdtGx.js → htmlMode-BpX8KTMR.js} +1 -1
- package/dist/static/assets/{index-CnXiX03v.js → index-BIqNbcu4.js} +2379 -2330
- package/dist/static/assets/{index-BI1BtkYv.css → index-D-b9KTZd.css} +1 -1
- package/dist/static/assets/{javascript-bO_Y-MtP.js → javascript-DeoOxUBN.js} +1 -1
- package/dist/static/assets/{jsonMode-p7oe1x6a.js → jsonMode-YGmaNoOG.js} +1 -1
- package/dist/static/assets/{liquid-DehK5Toi.js → liquid-K6wF5n3k.js} +1 -1
- package/dist/static/assets/{lspLanguageFeatures-C8ni2Y8s.js → lspLanguageFeatures-DFIoRPyQ.js} +1 -1
- package/dist/static/assets/{mdx-BqE3GcoU.js → mdx-CWEgpRjI.js} +1 -1
- package/dist/static/assets/{python-DYGyqTrT.js → python-22vBz2Ov.js} +1 -1
- package/dist/static/assets/{razor-CTOqYwI_.js → razor-CEUwDwv_.js} +1 -1
- package/dist/static/assets/{tsMode-n7ps72jb.js → tsMode-kpHfzhoP.js} +1 -1
- package/dist/static/assets/{typescript-B0sRB56_.js → typescript-PCkEoDOe.js} +1 -1
- package/dist/static/assets/{xml-C4I4RxHC.js → xml-OzOqd-hy.js} +1 -1
- package/dist/static/assets/{yaml-V_o23lNz.js → yaml-B3P_vvCy.js} +1 -1
- package/dist/static/index.html +2 -2
- package/dist/static/locales/en/translation.json +89 -5
- package/dist/static/locales/fr/translation.json +90 -6
- package/dist/transfer/adapters/content-type-transfer.adapter.d.ts +14 -0
- package/dist/transfer/adapters/content-type-transfer.adapter.js +102 -0
- package/dist/transfer/adapters/content-type-transfer.adapter.js.map +1 -0
- package/dist/transfer/adapters/credential-transfer.adapter.d.ts +13 -0
- package/dist/transfer/adapters/credential-transfer.adapter.js +110 -0
- package/dist/transfer/adapters/credential-transfer.adapter.js.map +1 -0
- package/dist/transfer/adapters/label-transfer.adapter.d.ts +15 -0
- package/dist/transfer/adapters/label-transfer.adapter.js +189 -0
- package/dist/transfer/adapters/label-transfer.adapter.js.map +1 -0
- package/dist/transfer/adapters/mcp-server-transfer.adapter.d.ts +16 -0
- package/dist/transfer/adapters/mcp-server-transfer.adapter.js +169 -0
- package/dist/transfer/adapters/mcp-server-transfer.adapter.js.map +1 -0
- package/dist/transfer/adapters/memory-definition-transfer.adapter.d.ts +14 -0
- package/dist/transfer/adapters/memory-definition-transfer.adapter.js +111 -0
- package/dist/transfer/adapters/memory-definition-transfer.adapter.js.map +1 -0
- package/dist/transfer/index.d.ts +7 -0
- package/dist/transfer/index.js +24 -0
- package/dist/transfer/index.js.map +1 -0
- package/dist/transfer/workflow-transfer-adapter.registry.d.ts +27 -0
- package/dist/transfer/workflow-transfer-adapter.registry.js +164 -0
- package/dist/transfer/workflow-transfer-adapter.registry.js.map +1 -0
- package/dist/transfer/workflow-transfer-definition.service.d.ts +40 -0
- package/dist/transfer/workflow-transfer-definition.service.js +353 -0
- package/dist/transfer/workflow-transfer-definition.service.js.map +1 -0
- package/dist/transfer/workflow-transfer-resource-adapter.d.ts +33 -0
- package/dist/transfer/workflow-transfer-resource-adapter.js +81 -0
- package/dist/transfer/workflow-transfer-resource-adapter.js.map +1 -0
- package/dist/transfer/workflow-transfer.controller.d.ts +9 -0
- package/dist/transfer/workflow-transfer.controller.js +63 -0
- package/dist/transfer/workflow-transfer.controller.js.map +1 -0
- package/dist/transfer/workflow-transfer.module.d.ts +2 -0
- package/dist/transfer/workflow-transfer.module.js +47 -0
- package/dist/transfer/workflow-transfer.module.js.map +1 -0
- package/dist/transfer/workflow-transfer.service.d.ts +51 -0
- package/dist/transfer/workflow-transfer.service.js +509 -0
- package/dist/transfer/workflow-transfer.service.js.map +1 -0
- package/dist/transfer/workflow-transfer.types.d.ts +31 -0
- package/dist/transfer/workflow-transfer.types.js +35 -0
- package/dist/transfer/workflow-transfer.types.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/event-emitter.d.ts +12 -5
- package/dist/user/controllers/user.controller.d.ts +0 -2
- package/dist/user/dto/user.dto.d.ts +1 -1
- package/dist/user/entities/user.entity.d.ts +0 -2
- package/dist/user/guards/ability.guard.js +12 -2
- package/dist/user/guards/ability.guard.js.map +1 -1
- package/dist/utils/test/fixtures/label-group.d.ts +1 -2
- package/dist/utils/test/fixtures/label.d.ts +1 -2
- package/dist/utils/test/fixtures/label.js +0 -19
- package/dist/utils/test/fixtures/label.js.map +1 -1
- package/dist/utils/test/fixtures/subscriber.d.ts +1 -1
- package/dist/utils/test/fixtures/workflow-run.js +4 -1
- package/dist/utils/test/fixtures/workflow-run.js.map +1 -1
- package/dist/utils/test/port.d.ts +8 -0
- package/dist/utils/test/port.js +34 -0
- package/dist/utils/test/port.js.map +1 -0
- package/dist/websocket/websocket.gateway.d.ts +2 -1
- package/dist/websocket/websocket.gateway.js.map +1 -1
- package/dist/workflow/contexts/workflow-runtime.context.d.ts +3 -1
- package/dist/workflow/contexts/workflow-runtime.context.js +5 -0
- package/dist/workflow/contexts/workflow-runtime.context.js.map +1 -1
- package/dist/workflow/controllers/workflow-run.controller.js +2 -0
- package/dist/workflow/controllers/workflow-run.controller.js.map +1 -1
- package/dist/workflow/dto/workflow-run.dto.d.ts +1 -0
- package/dist/workflow/dto/workflow-run.dto.js +11 -0
- package/dist/workflow/dto/workflow-run.dto.js.map +1 -1
- package/dist/workflow/entities/memory-record.entity.d.ts +2 -0
- package/dist/workflow/entities/workflow-run.entity.d.ts +62 -0
- package/dist/workflow/entities/workflow-run.entity.js +15 -1
- package/dist/workflow/entities/workflow-run.entity.js.map +1 -1
- package/dist/workflow/index.d.ts +7 -0
- package/dist/workflow/index.js +7 -0
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/repositories/workflow-run.repository.js +7 -1
- package/dist/workflow/repositories/workflow-run.repository.js.map +1 -1
- package/dist/workflow/resource-refs.d.ts +17 -0
- package/dist/workflow/resource-refs.js +15 -0
- package/dist/workflow/resource-refs.js.map +1 -0
- package/dist/workflow/services/agentic.service.d.ts +9 -2
- package/dist/workflow/services/agentic.service.js +142 -19
- package/dist/workflow/services/agentic.service.js.map +1 -1
- package/dist/workflow/services/workflow-run.service.d.ts +3 -0
- package/dist/workflow/services/workflow-run.service.js +75 -3
- package/dist/workflow/services/workflow-run.service.js.map +1 -1
- package/dist/workflow/services/workflow-version.service.d.ts +2 -0
- package/dist/workflow/services/workflow-version.service.js +19 -0
- package/dist/workflow/services/workflow-version.service.js.map +1 -1
- package/dist/workflow/services/workflow.service.d.ts +13 -9
- package/dist/workflow/services/workflow.service.js +64 -35
- package/dist/workflow/services/workflow.service.js.map +1 -1
- package/dist/workflow/types.d.ts +31 -0
- package/dist/workflow/types.js +2 -1
- package/dist/workflow/types.js.map +1 -1
- package/dist/workflow/workflow.module.js +3 -0
- package/dist/workflow/workflow.module.js.map +1 -1
- package/package.json +7 -5
- package/src/actions/actions.service.ts +34 -4
- package/src/actions/types.ts +6 -5
- package/src/app.controller.ts +1 -0
- package/src/app.module.ts +17 -1
- package/src/channel/lib/__test__/label.mock.ts +0 -24
- package/src/chat/dto/label.dto.ts +1 -12
- package/src/chat/entities/label.entity.ts +0 -4
- package/src/config/index.ts +17 -2
- package/src/config/types.ts +9 -0
- package/src/extensions/actions/ai/agent.action.ts +6 -1
- package/src/extensions/actions/ai/ai-base.action.ts +39 -5
- package/src/extensions/actions/ai/generate-object.base.action.ts +3 -0
- package/src/extensions/actions/ai/generate-text.base.action.ts +3 -0
- package/src/extensions/actions/ai/mcp.binding.ts +2 -0
- package/src/extensions/actions/ai/memory.binding.ts +2 -0
- package/src/extensions/actions/ai/retrieve-content-rag.action.ts +2 -0
- package/src/extensions/actions/messaging/list.action.ts +7 -0
- package/src/extensions/actions/subscriber/update-labels.action.ts +3 -0
- package/src/extensions/actions/web/http-request.action.ts +17 -1
- package/src/extensions/actions/workflow/call-workflow.action.ts +112 -0
- package/src/extensions/actions/workflow/i18n/en.translations.json +9 -0
- package/src/extensions/actions/workflow/i18n/fr.translations.json +9 -0
- package/src/extensions/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/mcp/README.md +277 -0
- package/src/mcp/controllers/mcp-token.controller.ts +64 -0
- package/src/mcp/decorators/mcp-permission.decorator.ts +23 -0
- package/src/mcp/dto/mcp-token.dto.ts +48 -0
- package/src/mcp/entities/mcp-token.entity.ts +60 -0
- package/src/mcp/guards/hexabot-mcp-token.guard.ts +55 -0
- package/src/mcp/guards/mcp-permission.guard.ts +61 -0
- package/src/mcp/mcp-api.module.ts +61 -0
- package/src/mcp/repositories/mcp-token.repository.ts +34 -0
- package/src/mcp/services/mcp-token.service.ts +138 -0
- package/src/mcp/tools/catalog-mcp.tools.ts +122 -0
- package/src/mcp/tools/cms-mcp.tools.ts +239 -0
- package/src/mcp/tools/credential-mcp.tools.ts +81 -0
- package/src/mcp/tools/hexabot-mcp-tool.base.ts +74 -0
- package/src/mcp/tools/hexabot-mcp.schemas.ts +55 -0
- package/src/mcp/tools/hexabot-mcp.tools.ts +7 -0
- package/src/mcp/tools/hexabot-mcp.utils.ts +29 -0
- package/src/mcp/tools/index.ts +51 -0
- package/src/mcp/tools/mcp-server-mcp.tools.ts +135 -0
- package/src/mcp/tools/memory-definition-mcp.tools.ts +125 -0
- package/src/mcp/tools/workflow-mcp.helper.ts +219 -0
- package/src/mcp/tools/workflow-mcp.tools.ts +271 -0
- package/src/mcp/tools/workflow-run-mcp.tools.ts +292 -0
- package/src/mcp/tools/workflow-version-mcp.tools.ts +459 -0
- package/src/mcp/types.ts +14 -0
- package/src/transfer/adapters/content-type-transfer.adapter.ts +154 -0
- package/src/transfer/adapters/credential-transfer.adapter.ts +158 -0
- package/src/transfer/adapters/label-transfer.adapter.ts +291 -0
- package/src/transfer/adapters/mcp-server-transfer.adapter.ts +255 -0
- package/src/transfer/adapters/memory-definition-transfer.adapter.ts +167 -0
- package/src/transfer/index.ts +19 -0
- package/src/transfer/workflow-transfer-adapter.registry.ts +250 -0
- package/src/transfer/workflow-transfer-definition.service.ts +587 -0
- package/src/transfer/workflow-transfer-resource-adapter.ts +132 -0
- package/src/transfer/workflow-transfer.controller.ts +86 -0
- package/src/transfer/workflow-transfer.module.ts +46 -0
- package/src/transfer/workflow-transfer.service.ts +858 -0
- package/src/transfer/workflow-transfer.types.ts +98 -0
- package/src/user/guards/ability.guard.ts +15 -3
- package/src/utils/test/fixtures/label.ts +0 -19
- package/src/utils/test/fixtures/workflow-run.ts +4 -1
- package/src/utils/test/port.ts +48 -0
- package/src/websocket/websocket.gateway.ts +2 -1
- package/src/workflow/contexts/workflow-runtime.context.ts +12 -1
- package/src/workflow/controllers/workflow-run.controller.ts +2 -0
- package/src/workflow/dto/workflow-run.dto.ts +10 -0
- package/src/workflow/entities/workflow-run.entity.ts +22 -1
- package/src/workflow/index.ts +14 -0
- package/src/workflow/repositories/workflow-run.repository.ts +7 -1
- package/src/workflow/resource-refs.ts +44 -0
- package/src/workflow/services/agentic.service.ts +271 -30
- package/src/workflow/services/workflow-run.service.ts +120 -7
- package/src/workflow/services/workflow-version.service.ts +33 -0
- package/src/workflow/services/workflow.service.ts +86 -31
- package/src/workflow/types.ts +52 -0
- package/src/workflow/workflow.module.ts +3 -0
- package/types/event-emitter.d.ts +12 -5
|
@@ -36,6 +36,14 @@
|
|
|
36
36
|
"success_save": "Changes has been saved!",
|
|
37
37
|
"source_ref_copied": "Source ref copied.",
|
|
38
38
|
"source_ref_copy_failed": "Unable to copy source ref.",
|
|
39
|
+
"mcp_token_create_success": "MCP token created.",
|
|
40
|
+
"mcp_token_revoke_success": "MCP token revoked.",
|
|
41
|
+
"mcp_token_copy_once": "Copy this token now. It cannot be shown again after you close this dialog.",
|
|
42
|
+
"mcp_token_copied": "MCP token copied.",
|
|
43
|
+
"mcp_token_copy_failed": "Unable to copy MCP token.",
|
|
44
|
+
"mcp_token_name_required": "Token name is required.",
|
|
45
|
+
"mcp_token_empty": "No MCP tokens have been created yet.",
|
|
46
|
+
"mcp_token_revoke_confirm": "Revoking this token immediately prevents coding agents from using it. This action cannot be undone.",
|
|
39
47
|
"file_max_size": "The file exceeds the maximum allowed size. Please ensure your file is within the size limit and try again.",
|
|
40
48
|
"upload_failed": "Unable to upload the file!",
|
|
41
49
|
"no_message_to_display": "No messages to display",
|
|
@@ -61,6 +69,9 @@
|
|
|
61
69
|
"ttl_seconds_invalid": "TTL must be a positive integer",
|
|
62
70
|
"success_import": "Content has been successfully imported!",
|
|
63
71
|
"import_failed": "Import failed",
|
|
72
|
+
"workflow_import_success": "Workflow has been imported.",
|
|
73
|
+
"workflow_import_warnings": "Imported with {{0}} warning(s). Review imported resources before publishing.",
|
|
74
|
+
"workflow_export_save_before": "Save this workflow before exporting it.",
|
|
64
75
|
"import_duplicated_data": "Data already exists",
|
|
65
76
|
"success_translation_refresh": "Translations has been successfully refreshed!",
|
|
66
77
|
"type_is_required": "Type is required",
|
|
@@ -230,7 +241,11 @@
|
|
|
230
241
|
"new_mcp_server": "New MCP Server",
|
|
231
242
|
"edit_mcp_server": "Edit MCP Server",
|
|
232
243
|
"mcp_server_test_result": "MCP Server Test Result",
|
|
233
|
-
"mcp_server_tools": "MCP Server Tools"
|
|
244
|
+
"mcp_server_tools": "MCP Server Tools",
|
|
245
|
+
"mcp_tokens": "MCP Tokens",
|
|
246
|
+
"new_mcp_token": "New MCP Token",
|
|
247
|
+
"mcp_token_created": "MCP Token Created",
|
|
248
|
+
"revoke_mcp_token": "Revoke MCP Token"
|
|
234
249
|
},
|
|
235
250
|
"dashboard": {
|
|
236
251
|
"kpi": {
|
|
@@ -470,7 +485,14 @@
|
|
|
470
485
|
"pending": "Pending",
|
|
471
486
|
"source": "Source",
|
|
472
487
|
"source_ref": "Source Ref",
|
|
473
|
-
"
|
|
488
|
+
"token_prefix": "Token Prefix",
|
|
489
|
+
"expires_at": "Expires At",
|
|
490
|
+
"last_used_at": "Last Used At",
|
|
491
|
+
"never": "Never",
|
|
492
|
+
"mcp_token": "MCP Token",
|
|
493
|
+
"mcp_token_status_active": "Active",
|
|
494
|
+
"mcp_token_status_expired": "Expired",
|
|
495
|
+
"mcp_token_status_revoked": "Revoked",
|
|
474
496
|
"email": "E-mail",
|
|
475
497
|
"roles": "Roles",
|
|
476
498
|
"method": "HTTP",
|
|
@@ -548,6 +570,7 @@
|
|
|
548
570
|
"status_failed": "Failed",
|
|
549
571
|
"status_skipped": "Skipped",
|
|
550
572
|
"status_suspended": "Suspended",
|
|
573
|
+
"status_cancelled": "Cancelled",
|
|
551
574
|
"status_pending": "Pending",
|
|
552
575
|
"type_llm": "LLM",
|
|
553
576
|
"type_http": "HTTP",
|
|
@@ -630,12 +653,16 @@
|
|
|
630
653
|
"download": "Download",
|
|
631
654
|
"upload": "Upload",
|
|
632
655
|
"import": "Import",
|
|
656
|
+
"export": "Export",
|
|
633
657
|
"manage": "Manage",
|
|
634
658
|
"view": "View",
|
|
635
659
|
"view_all": "View All",
|
|
636
660
|
"close": "Close",
|
|
637
661
|
"back": "Back",
|
|
638
662
|
"copy_source_ref": "Copy source ref",
|
|
663
|
+
"create_mcp_token": "Create Token",
|
|
664
|
+
"copy_token": "Copy token",
|
|
665
|
+
"revoke": "Revoke",
|
|
639
666
|
"permissions": "Permissions",
|
|
640
667
|
"content": "Content",
|
|
641
668
|
"takeover": "Take over",
|
|
@@ -649,11 +676,30 @@
|
|
|
649
676
|
"not_now": "Not now",
|
|
650
677
|
"view_plans": "View plans",
|
|
651
678
|
"enter_license_key": "Enter license key",
|
|
652
|
-
"manage_users": "Manage users"
|
|
679
|
+
"manage_users": "Manage users",
|
|
680
|
+
"next": "Next",
|
|
681
|
+
"skip": "Skip",
|
|
682
|
+
"done": "Done"
|
|
653
683
|
},
|
|
654
684
|
"input": {
|
|
655
685
|
"search": "Search",
|
|
656
|
-
"jsonata_formula_mode": "
|
|
686
|
+
"jsonata_formula_mode": "Dynamic value",
|
|
687
|
+
"dynamic_value": {
|
|
688
|
+
"active": "Dynamic value",
|
|
689
|
+
"use_dynamic": "Use dynamic value",
|
|
690
|
+
"menu": {
|
|
691
|
+
"replace": "Replace with dynamic value",
|
|
692
|
+
"replace_description": "Clear this static value and start an expression.",
|
|
693
|
+
"convert": "Convert current text to dynamic string",
|
|
694
|
+
"convert_description": "Keep this text as a quoted JSONata string.",
|
|
695
|
+
"cancel": "Cancel"
|
|
696
|
+
},
|
|
697
|
+
"errors": {
|
|
698
|
+
"disabled": "Values starting with '=' are dynamic values. This field does not support dynamic values.",
|
|
699
|
+
"empty": "Enter a dynamic value expression.",
|
|
700
|
+
"invalid_jsonata": "Invalid JSONata expression."
|
|
701
|
+
}
|
|
702
|
+
}
|
|
657
703
|
},
|
|
658
704
|
"link": {
|
|
659
705
|
"reset": "Forgot your password?"
|
|
@@ -667,7 +713,9 @@
|
|
|
667
713
|
"title": "Flows",
|
|
668
714
|
"search_placeholder": "Search name or description",
|
|
669
715
|
"search_workflows": "Search workflows",
|
|
670
|
-
"new_workflow": "New
|
|
716
|
+
"new_workflow": "New",
|
|
717
|
+
"import_workflow": "Import",
|
|
718
|
+
"export_workflow": "Export",
|
|
671
719
|
"resize": "Resize drawer",
|
|
672
720
|
"status": {
|
|
673
721
|
"draft": "Draft",
|
|
@@ -720,6 +768,15 @@
|
|
|
720
768
|
"override_global_settings": "Override global settings"
|
|
721
769
|
}
|
|
722
770
|
},
|
|
771
|
+
"dynamic_values_help": {
|
|
772
|
+
"open": "About dynamic values",
|
|
773
|
+
"title": "Dynamic values",
|
|
774
|
+
"static": "Static values are kept exactly as entered.",
|
|
775
|
+
"dynamic": "Type '=' or click the function icon to use a dynamic value from $input, $output, or $context.",
|
|
776
|
+
"technical": "Dynamic values use JSONata expressions. In settings, only supported fields can use them.",
|
|
777
|
+
"docs": "Hexabot docs",
|
|
778
|
+
"jsonata_docs": "JSONata docs"
|
|
779
|
+
},
|
|
723
780
|
"description": {
|
|
724
781
|
"placeholder": "Optional step description."
|
|
725
782
|
}
|
|
@@ -880,6 +937,33 @@
|
|
|
880
937
|
"hide": "Hide YAML editor",
|
|
881
938
|
"validation_title": "Workflow definition has errors"
|
|
882
939
|
},
|
|
940
|
+
"guided_tour": {
|
|
941
|
+
"workflow_name_prefix": "My first workflow",
|
|
942
|
+
"dashboard_create": {
|
|
943
|
+
"title": "Create your first workflow",
|
|
944
|
+
"content": "Start by creating a conversational workflow. Use the highlighted Create Workflow button and Hexabot will open a fresh visual editor for you."
|
|
945
|
+
},
|
|
946
|
+
"empty_insert": {
|
|
947
|
+
"title": "Add the first block",
|
|
948
|
+
"content": "Your canvas is ready. Click the highlighted plus button to drop in the first building block."
|
|
949
|
+
},
|
|
950
|
+
"insert_step": {
|
|
951
|
+
"title": "Choose a step",
|
|
952
|
+
"content": "Pick Step from the insert menu. This gives the workflow a real action to run when the conversation starts."
|
|
953
|
+
},
|
|
954
|
+
"send_text_action": {
|
|
955
|
+
"title": "Send a text message",
|
|
956
|
+
"content": "Choose Send Text Message. It is the quickest way to make your bot answer with a clear, friendly reply."
|
|
957
|
+
},
|
|
958
|
+
"action_save": {
|
|
959
|
+
"title": "Save the action",
|
|
960
|
+
"content": "Save the action with the default values. That locks the first reply into the workflow so you can try it right away."
|
|
961
|
+
},
|
|
962
|
+
"chat_widget": {
|
|
963
|
+
"title": "Test the conversation",
|
|
964
|
+
"content": "Now test the flow from the chat widget. Send a message and watch your first workflow answer back."
|
|
965
|
+
}
|
|
966
|
+
},
|
|
883
967
|
"workflow_versions": {
|
|
884
968
|
"show": "Show workflow versions",
|
|
885
969
|
"hide": "Hide workflow versions",
|
|
@@ -36,6 +36,14 @@
|
|
|
36
36
|
"success_save": "Les modifications ont été enregistrées!",
|
|
37
37
|
"source_ref_copied": "Référence source copiée.",
|
|
38
38
|
"source_ref_copy_failed": "Impossible de copier la référence source.",
|
|
39
|
+
"mcp_token_create_success": "Jeton MCP créé.",
|
|
40
|
+
"mcp_token_revoke_success": "Jeton MCP révoqué.",
|
|
41
|
+
"mcp_token_copy_once": "Copiez ce jeton maintenant. Il ne pourra plus être affiché après la fermeture de cette fenêtre.",
|
|
42
|
+
"mcp_token_copied": "Jeton MCP copié.",
|
|
43
|
+
"mcp_token_copy_failed": "Impossible de copier le jeton MCP.",
|
|
44
|
+
"mcp_token_name_required": "Le nom du jeton est obligatoire.",
|
|
45
|
+
"mcp_token_empty": "Aucun jeton MCP n'a encore été créé.",
|
|
46
|
+
"mcp_token_revoke_confirm": "La révocation de ce jeton empêche immédiatement les agents de code de l'utiliser. Cette action est irréversible.",
|
|
39
47
|
"file_max_size": "Le fichier dépasse la taille maximale autorisée. Veuillez vérifier que votre fichier respecte la limite de taille et réessayez.",
|
|
40
48
|
"upload_failed": "Impossible d'envoyer le fichier au serveur!",
|
|
41
49
|
"no_message_to_display": "Aucun message à afficher",
|
|
@@ -62,6 +70,9 @@
|
|
|
62
70
|
"ttl_seconds_invalid": "Le TTL doit être un entier positif",
|
|
63
71
|
"success_import": "Le contenu a été importé avec succès!",
|
|
64
72
|
"import_failed": "Échec de l'importation",
|
|
73
|
+
"workflow_import_success": "Le workflow a été importé.",
|
|
74
|
+
"workflow_import_warnings": "Import terminé avec {{0}} avertissement(s). Vérifiez les ressources importées avant publication.",
|
|
75
|
+
"workflow_export_save_before": "Enregistrez ce workflow avant de l'exporter.",
|
|
65
76
|
"import_duplicated_data": "Les données existent déjà",
|
|
66
77
|
"success_translation_refresh": "Les traductions ont été actualisées avec succès!",
|
|
67
78
|
"permission_already_exists": "La permission existe déjà",
|
|
@@ -230,7 +241,11 @@
|
|
|
230
241
|
"new_mcp_server": "Nouveau serveur MCP",
|
|
231
242
|
"edit_mcp_server": "Modifier le serveur MCP",
|
|
232
243
|
"mcp_server_test_result": "Résultat du test du serveur MCP",
|
|
233
|
-
"mcp_server_tools": "Outils du serveur MCP"
|
|
244
|
+
"mcp_server_tools": "Outils du serveur MCP",
|
|
245
|
+
"mcp_tokens": "Jetons MCP",
|
|
246
|
+
"new_mcp_token": "Nouveau jeton MCP",
|
|
247
|
+
"mcp_token_created": "Jeton MCP créé",
|
|
248
|
+
"revoke_mcp_token": "Révoquer le jeton MCP"
|
|
234
249
|
},
|
|
235
250
|
"dashboard": {
|
|
236
251
|
"kpi": {
|
|
@@ -470,7 +485,14 @@
|
|
|
470
485
|
"pending": "En attente",
|
|
471
486
|
"source": "Source",
|
|
472
487
|
"source_ref": "Référence source",
|
|
473
|
-
"
|
|
488
|
+
"token_prefix": "Préfixe du jeton",
|
|
489
|
+
"expires_at": "Expire le",
|
|
490
|
+
"last_used_at": "Dernière utilisation",
|
|
491
|
+
"never": "Jamais",
|
|
492
|
+
"mcp_token": "Jeton MCP",
|
|
493
|
+
"mcp_token_status_active": "Actif",
|
|
494
|
+
"mcp_token_status_expired": "Expiré",
|
|
495
|
+
"mcp_token_status_revoked": "Révoqué",
|
|
474
496
|
"email": "E-mail",
|
|
475
497
|
"roles": "Rôles",
|
|
476
498
|
"method": "HTTP",
|
|
@@ -549,6 +571,7 @@
|
|
|
549
571
|
"status_failed": "Échouée",
|
|
550
572
|
"status_skipped": "Ignorée",
|
|
551
573
|
"status_suspended": "Suspendue",
|
|
574
|
+
"status_cancelled": "Annulée",
|
|
552
575
|
"status_pending": "En attente",
|
|
553
576
|
"type_llm": "LLM",
|
|
554
577
|
"type_http": "HTTP",
|
|
@@ -629,13 +652,17 @@
|
|
|
629
652
|
"delete": "Supprimer",
|
|
630
653
|
"download": "Télécharger",
|
|
631
654
|
"upload": "Téléverser",
|
|
632
|
-
"import": "
|
|
655
|
+
"import": "Importer",
|
|
656
|
+
"export": "Exporter",
|
|
633
657
|
"manage": "Gérer",
|
|
634
658
|
"view": "Voir",
|
|
635
659
|
"view_all": "Voir tout",
|
|
636
660
|
"close": "Fermer",
|
|
637
661
|
"back": "Retour",
|
|
638
662
|
"copy_source_ref": "Copier la référence source",
|
|
663
|
+
"create_mcp_token": "Créer un jeton",
|
|
664
|
+
"copy_token": "Copier le jeton",
|
|
665
|
+
"revoke": "Révoquer",
|
|
639
666
|
"permissions": "Permissions",
|
|
640
667
|
"content": "Contenu",
|
|
641
668
|
"takeover": "Prendre la main",
|
|
@@ -649,11 +676,30 @@
|
|
|
649
676
|
"not_now": "Plus tard",
|
|
650
677
|
"view_plans": "Voir les offres",
|
|
651
678
|
"enter_license_key": "Saisir une clé de licence",
|
|
652
|
-
"manage_users": "Gérer les utilisateurs"
|
|
679
|
+
"manage_users": "Gérer les utilisateurs",
|
|
680
|
+
"next": "Suivant",
|
|
681
|
+
"skip": "Ignorer",
|
|
682
|
+
"done": "Terminé"
|
|
653
683
|
},
|
|
654
684
|
"input": {
|
|
655
685
|
"search": "Recherche",
|
|
656
|
-
"jsonata_formula_mode": "
|
|
686
|
+
"jsonata_formula_mode": "Valeur dynamique",
|
|
687
|
+
"dynamic_value": {
|
|
688
|
+
"active": "Valeur dynamique",
|
|
689
|
+
"use_dynamic": "Utiliser une valeur dynamique",
|
|
690
|
+
"menu": {
|
|
691
|
+
"replace": "Remplacer par une valeur dynamique",
|
|
692
|
+
"replace_description": "Effacer cette valeur statique et commencer une expression.",
|
|
693
|
+
"convert": "Convertir le texte en chaîne dynamique",
|
|
694
|
+
"convert_description": "Conserver ce texte comme chaîne JSONata entre guillemets.",
|
|
695
|
+
"cancel": "Annuler"
|
|
696
|
+
},
|
|
697
|
+
"errors": {
|
|
698
|
+
"disabled": "Les valeurs qui commencent par '=' sont des valeurs dynamiques. Ce champ ne prend pas en charge les valeurs dynamiques.",
|
|
699
|
+
"empty": "Saisissez une expression de valeur dynamique.",
|
|
700
|
+
"invalid_jsonata": "Expression JSONata invalide."
|
|
701
|
+
}
|
|
702
|
+
}
|
|
657
703
|
},
|
|
658
704
|
"link": {
|
|
659
705
|
"reset": "Mot de passe oublié?"
|
|
@@ -667,7 +713,9 @@
|
|
|
667
713
|
"title": "Flux",
|
|
668
714
|
"search_placeholder": "Rechercher par nom ou description",
|
|
669
715
|
"search_workflows": "Rechercher des workflows",
|
|
670
|
-
"new_workflow": "Nouveau
|
|
716
|
+
"new_workflow": "Nouveau",
|
|
717
|
+
"import_workflow": "Importer",
|
|
718
|
+
"export_workflow": "Exporter",
|
|
671
719
|
"resize": "Redimensionner le panneau",
|
|
672
720
|
"status": {
|
|
673
721
|
"draft": "Brouillon",
|
|
@@ -720,6 +768,15 @@
|
|
|
720
768
|
"override_global_settings": "Remplacer les paramètres globaux"
|
|
721
769
|
}
|
|
722
770
|
},
|
|
771
|
+
"dynamic_values_help": {
|
|
772
|
+
"open": "À propos des valeurs dynamiques",
|
|
773
|
+
"title": "Valeurs dynamiques",
|
|
774
|
+
"static": "Les valeurs statiques sont conservées exactement comme elles sont saisies.",
|
|
775
|
+
"dynamic": "Saisissez '=' ou cliquez sur l'icône de fonction pour utiliser une valeur dynamique depuis $input, $output ou $context.",
|
|
776
|
+
"technical": "Les valeurs dynamiques utilisent des expressions JSONata. Dans les paramètres, seuls les champs compatibles peuvent les utiliser.",
|
|
777
|
+
"docs": "Documentation Hexabot",
|
|
778
|
+
"jsonata_docs": "Documentation JSONata"
|
|
779
|
+
},
|
|
723
780
|
"description": {
|
|
724
781
|
"placeholder": "Description optionnelle de l'étape."
|
|
725
782
|
}
|
|
@@ -880,6 +937,33 @@
|
|
|
880
937
|
"hide": "Masquer l'éditeur YAML",
|
|
881
938
|
"validation_title": "La définition du workflow contient des erreurs"
|
|
882
939
|
},
|
|
940
|
+
"guided_tour": {
|
|
941
|
+
"workflow_name_prefix": "Mon premier workflow",
|
|
942
|
+
"dashboard_create": {
|
|
943
|
+
"title": "Créez votre premier workflow",
|
|
944
|
+
"content": "Commencez par créer un workflow conversationnel. Utilisez le bouton Créer un workflow mis en évidence et Hexabot ouvrira un éditeur visuel tout neuf."
|
|
945
|
+
},
|
|
946
|
+
"empty_insert": {
|
|
947
|
+
"title": "Ajoutez le premier bloc",
|
|
948
|
+
"content": "Votre canevas est prêt. Cliquez sur le bouton plus mis en évidence pour déposer le premier bloc."
|
|
949
|
+
},
|
|
950
|
+
"insert_step": {
|
|
951
|
+
"title": "Choisissez une étape",
|
|
952
|
+
"content": "Choisissez Étape dans le menu d'insertion. Le workflow aura ainsi une vraie action à exécuter au début de la conversation."
|
|
953
|
+
},
|
|
954
|
+
"send_text_action": {
|
|
955
|
+
"title": "Envoyez un message texte",
|
|
956
|
+
"content": "Choisissez Envoyer un message texte. C'est le moyen le plus rapide de faire répondre votre bot avec un message clair et sympa."
|
|
957
|
+
},
|
|
958
|
+
"action_save": {
|
|
959
|
+
"title": "Enregistrez l'action",
|
|
960
|
+
"content": "Enregistrez l'action avec les valeurs par défaut. La première réponse est alors ajoutée au workflow et vous pouvez l'essayer tout de suite."
|
|
961
|
+
},
|
|
962
|
+
"chat_widget": {
|
|
963
|
+
"title": "Testez la conversation",
|
|
964
|
+
"content": "Testez maintenant la conversation depuis le widget de chat. Envoyez un message et regardez votre premier workflow répondre."
|
|
965
|
+
}
|
|
966
|
+
},
|
|
883
967
|
"workflow_versions": {
|
|
884
968
|
"show": "Afficher les versions du workflow",
|
|
885
969
|
"hide": "Masquer les versions du workflow",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type WorkflowExportBundleContentType } from '@hexabot-ai/types';
|
|
2
|
+
import { ContentTypeService } from "../../cms/services/content-type.service";
|
|
3
|
+
import { WorkflowTransferExportContext, WorkflowTransferImportContext, WorkflowTransferResourceAdapter } from '../workflow-transfer-resource-adapter';
|
|
4
|
+
import { type WorkflowTransferImportAdapterResult } from '../workflow-transfer.types';
|
|
5
|
+
export declare class ContentTypeTransferAdapter extends WorkflowTransferResourceAdapter {
|
|
6
|
+
private readonly contentTypeService;
|
|
7
|
+
readonly kind = "contentType";
|
|
8
|
+
readonly resourceKeys: string[];
|
|
9
|
+
constructor(contentTypeService: ContentTypeService);
|
|
10
|
+
buildExportResources(ctx: WorkflowTransferExportContext): Promise<Record<string, WorkflowExportBundleContentType[]>>;
|
|
11
|
+
private buildContentTypeExportResources;
|
|
12
|
+
importResources(ctx: WorkflowTransferImportContext): Promise<WorkflowTransferImportAdapterResult>;
|
|
13
|
+
private isEquivalentContentType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContentTypeTransferAdapter = void 0;
|
|
13
|
+
const node_util_1 = require("node:util");
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const content_type_entity_1 = require("../../cms/entities/content-type.entity");
|
|
17
|
+
const content_type_service_1 = require("../../cms/services/content-type.service");
|
|
18
|
+
const workflow_transfer_resource_adapter_1 = require("../workflow-transfer-resource-adapter");
|
|
19
|
+
const workflow_transfer_types_1 = require("../workflow-transfer.types");
|
|
20
|
+
let ContentTypeTransferAdapter = class ContentTypeTransferAdapter extends workflow_transfer_resource_adapter_1.WorkflowTransferResourceAdapter {
|
|
21
|
+
constructor(contentTypeService) {
|
|
22
|
+
super();
|
|
23
|
+
this.contentTypeService = contentTypeService;
|
|
24
|
+
this.kind = 'contentType';
|
|
25
|
+
this.resourceKeys = ['contentTypes'];
|
|
26
|
+
}
|
|
27
|
+
async buildExportResources(ctx) {
|
|
28
|
+
return {
|
|
29
|
+
contentTypes: await this.buildContentTypeExportResources(ctx.getRefs(this.kind)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
async buildContentTypeExportResources(ids) {
|
|
33
|
+
const uniqueIds = (0, workflow_transfer_types_1.uniqueResourceIds)(ids);
|
|
34
|
+
if (uniqueIds.length === 0) {
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
const contentTypes = await this.contentTypeService.find({
|
|
38
|
+
where: { id: (0, typeorm_1.In)(uniqueIds) },
|
|
39
|
+
});
|
|
40
|
+
(0, workflow_transfer_types_1.assertFoundAll)('content type', uniqueIds, contentTypes.map((contentType) => contentType.id));
|
|
41
|
+
return contentTypes.map((contentType) => ({
|
|
42
|
+
exportId: contentType.id,
|
|
43
|
+
name: contentType.name,
|
|
44
|
+
schema: contentType.schema,
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
async importResources(ctx) {
|
|
48
|
+
const contentTypes = ctx.getResources('contentTypes');
|
|
49
|
+
const idMap = {};
|
|
50
|
+
const resources = [];
|
|
51
|
+
const postCreateEvents = [];
|
|
52
|
+
for (const contentType of contentTypes) {
|
|
53
|
+
const existing = await ctx.manager.findOne(content_type_entity_1.ContentTypeOrmEntity, {
|
|
54
|
+
where: { name: contentType.name },
|
|
55
|
+
});
|
|
56
|
+
if (existing) {
|
|
57
|
+
if (!this.isEquivalentContentType(existing, contentType)) {
|
|
58
|
+
throw new common_1.ConflictException(`Content type "${contentType.name}" already exists with different configuration`);
|
|
59
|
+
}
|
|
60
|
+
idMap[contentType.exportId] = existing.id;
|
|
61
|
+
resources.push((0, workflow_transfer_types_1.buildResourceResult)({
|
|
62
|
+
kind: 'contentType',
|
|
63
|
+
exportId: contentType.exportId,
|
|
64
|
+
localId: existing.id,
|
|
65
|
+
name: contentType.name,
|
|
66
|
+
action: 'reused',
|
|
67
|
+
}));
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
const payload = {
|
|
71
|
+
name: contentType.name,
|
|
72
|
+
schema: contentType.schema,
|
|
73
|
+
};
|
|
74
|
+
const created = await ctx.manager.save(content_type_entity_1.ContentTypeOrmEntity, ctx.manager.create(content_type_entity_1.ContentTypeOrmEntity, payload));
|
|
75
|
+
idMap[contentType.exportId] = created.id;
|
|
76
|
+
resources.push((0, workflow_transfer_types_1.buildResourceResult)({
|
|
77
|
+
kind: 'contentType',
|
|
78
|
+
exportId: contentType.exportId,
|
|
79
|
+
localId: created.id,
|
|
80
|
+
name: contentType.name,
|
|
81
|
+
action: 'created',
|
|
82
|
+
}));
|
|
83
|
+
postCreateEvents.push((0, workflow_transfer_types_1.buildPostCreateEvent)('contentType', created, payload));
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
idMap,
|
|
87
|
+
resources,
|
|
88
|
+
warnings: [],
|
|
89
|
+
postCreateEvents,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
isEquivalentContentType(existing, imported) {
|
|
93
|
+
return (0, node_util_1.isDeepStrictEqual)(existing.schema, imported.schema);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
exports.ContentTypeTransferAdapter = ContentTypeTransferAdapter;
|
|
97
|
+
exports.ContentTypeTransferAdapter = ContentTypeTransferAdapter = __decorate([
|
|
98
|
+
(0, workflow_transfer_resource_adapter_1.WorkflowTransferAdapter)(),
|
|
99
|
+
(0, common_1.Injectable)(),
|
|
100
|
+
__metadata("design:paramtypes", [content_type_service_1.ContentTypeService])
|
|
101
|
+
], ContentTypeTransferAdapter);
|
|
102
|
+
//# sourceMappingURL=content-type-transfer.adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-type-transfer.adapter.js","sourceRoot":"","sources":["../../../src/transfer/adapters/content-type-transfer.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,yCAA8C;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,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC;YACzC,SAAS,CAAC,IAAI,CACZ,IAAA,6CAAmB,EAAC;gBAClB,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,WAAW,CAAC,QAAQ;gBAC9B,OAAO,EAAE,OAAO,CAAC,EAAE;gBACnB,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,MAAM,EAAE,SAAS;aAClB,CAAC,CACH,CAAC;YACF,gBAAgB,CAAC,IAAI,CACnB,IAAA,8CAAoB,EAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CACtD,CAAC;QACJ,CAAC;QAED,OAAO;YACL,KAAK;YACL,SAAS;YACT,QAAQ,EAAE,EAAE;YACZ,gBAAgB;SACjB,CAAC;IACJ,CAAC;IAEO,uBAAuB,CAC7B,QAA8B,EAC9B,QAAmE;QAEnE,OAAO,IAAA,6BAAiB,EAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;CACF,CAAA;AAtHY,gEAA0B;qCAA1B,0BAA0B;IAFtC,IAAA,4DAAuB,GAAE;IACzB,IAAA,mBAAU,GAAE;qCAMsC,yCAAkB;GALxD,0BAA0B,CAsHtC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type WorkflowExportBundleCredential } from '@hexabot-ai/types';
|
|
2
|
+
import { CredentialService } from "../../user/services/credential.service";
|
|
3
|
+
import { WorkflowTransferExportContext, WorkflowTransferImportContext, WorkflowTransferResourceAdapter } from '../workflow-transfer-resource-adapter';
|
|
4
|
+
import { type WorkflowTransferImportAdapterResult } from '../workflow-transfer.types';
|
|
5
|
+
export declare class CredentialTransferAdapter extends WorkflowTransferResourceAdapter {
|
|
6
|
+
private readonly credentialService;
|
|
7
|
+
readonly kind = "credential";
|
|
8
|
+
readonly resourceKeys: string[];
|
|
9
|
+
constructor(credentialService: CredentialService);
|
|
10
|
+
buildExportResources(ctx: WorkflowTransferExportContext): Promise<Record<string, WorkflowExportBundleCredential[]>>;
|
|
11
|
+
private buildCredentialExportResources;
|
|
12
|
+
importResources(ctx: WorkflowTransferImportContext): Promise<WorkflowTransferImportAdapterResult>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CredentialTransferAdapter = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const credential_entity_1 = require("../../user/entities/credential.entity");
|
|
16
|
+
const credential_service_1 = require("../../user/services/credential.service");
|
|
17
|
+
const workflow_transfer_resource_adapter_1 = require("../workflow-transfer-resource-adapter");
|
|
18
|
+
const workflow_transfer_types_1 = require("../workflow-transfer.types");
|
|
19
|
+
let CredentialTransferAdapter = class CredentialTransferAdapter extends workflow_transfer_resource_adapter_1.WorkflowTransferResourceAdapter {
|
|
20
|
+
constructor(credentialService) {
|
|
21
|
+
super();
|
|
22
|
+
this.credentialService = credentialService;
|
|
23
|
+
this.kind = 'credential';
|
|
24
|
+
this.resourceKeys = ['credentials'];
|
|
25
|
+
}
|
|
26
|
+
async buildExportResources(ctx) {
|
|
27
|
+
return {
|
|
28
|
+
credentials: await this.buildCredentialExportResources(ctx.getRefs(this.kind)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
async buildCredentialExportResources(ids) {
|
|
32
|
+
const uniqueIds = (0, workflow_transfer_types_1.uniqueResourceIds)(ids);
|
|
33
|
+
if (uniqueIds.length === 0) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
const credentials = await this.credentialService.find({
|
|
37
|
+
where: { id: (0, typeorm_1.In)(uniqueIds) },
|
|
38
|
+
});
|
|
39
|
+
(0, workflow_transfer_types_1.assertFoundAll)('credential', uniqueIds, credentials.map((credential) => credential.id));
|
|
40
|
+
return credentials.map((credential) => ({
|
|
41
|
+
exportId: credential.id,
|
|
42
|
+
name: credential.name,
|
|
43
|
+
exportedOwnerId: credential.owner,
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
async importResources(ctx) {
|
|
47
|
+
const credentials = ctx.getResources('credentials');
|
|
48
|
+
const idMap = {};
|
|
49
|
+
const resources = [];
|
|
50
|
+
const warnings = [];
|
|
51
|
+
const postCreateEvents = [];
|
|
52
|
+
const placeholderExportIds = new Set();
|
|
53
|
+
for (const credential of credentials) {
|
|
54
|
+
const existingByName = await ctx.manager.findOne(credential_entity_1.CredentialOrmEntity, {
|
|
55
|
+
where: { name: credential.name },
|
|
56
|
+
relations: ['owner'],
|
|
57
|
+
});
|
|
58
|
+
if (existingByName) {
|
|
59
|
+
const existingOwnerId = existingByName.owner && typeof existingByName.owner === 'object'
|
|
60
|
+
? existingByName.owner.id
|
|
61
|
+
: null;
|
|
62
|
+
if (existingOwnerId !== ctx.ownerId) {
|
|
63
|
+
throw new common_1.ConflictException(`Credential "${credential.name}" already exists for another user`);
|
|
64
|
+
}
|
|
65
|
+
idMap[credential.exportId] = existingByName.id;
|
|
66
|
+
resources.push((0, workflow_transfer_types_1.buildResourceResult)({
|
|
67
|
+
kind: 'credential',
|
|
68
|
+
exportId: credential.exportId,
|
|
69
|
+
localId: existingByName.id,
|
|
70
|
+
name: credential.name,
|
|
71
|
+
action: 'reused',
|
|
72
|
+
}));
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
const payload = {
|
|
76
|
+
name: credential.name,
|
|
77
|
+
value: workflow_transfer_types_1.PLACEHOLDER_CREDENTIAL_VALUE,
|
|
78
|
+
owner: { id: ctx.ownerId },
|
|
79
|
+
};
|
|
80
|
+
const created = await ctx.manager.save(credential_entity_1.CredentialOrmEntity, ctx.manager.create(credential_entity_1.CredentialOrmEntity, payload));
|
|
81
|
+
idMap[credential.exportId] = created.id;
|
|
82
|
+
placeholderExportIds.add(credential.exportId);
|
|
83
|
+
resources.push((0, workflow_transfer_types_1.buildResourceResult)({
|
|
84
|
+
kind: 'credential',
|
|
85
|
+
exportId: credential.exportId,
|
|
86
|
+
localId: created.id,
|
|
87
|
+
name: credential.name,
|
|
88
|
+
action: 'placeholder_created',
|
|
89
|
+
}));
|
|
90
|
+
postCreateEvents.push((0, workflow_transfer_types_1.buildPostCreateEvent)('credential', created, payload));
|
|
91
|
+
warnings.push(`Credential "${credential.name}" was imported as a placeholder and must be updated before use.`);
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
idMap,
|
|
95
|
+
resources,
|
|
96
|
+
warnings,
|
|
97
|
+
postCreateEvents,
|
|
98
|
+
metadata: {
|
|
99
|
+
placeholderExportIds,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
exports.CredentialTransferAdapter = CredentialTransferAdapter;
|
|
105
|
+
exports.CredentialTransferAdapter = CredentialTransferAdapter = __decorate([
|
|
106
|
+
(0, workflow_transfer_resource_adapter_1.WorkflowTransferAdapter)(),
|
|
107
|
+
(0, common_1.Injectable)(),
|
|
108
|
+
__metadata("design:paramtypes", [credential_service_1.CredentialService])
|
|
109
|
+
], CredentialTransferAdapter);
|
|
110
|
+
//# sourceMappingURL=credential-transfer.adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-transfer.adapter.js","sourceRoot":"","sources":["../../../src/transfer/adapters/credential-transfer.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,2CAA+D;AAC/D,qCAA6B;AAE7B,6EAAwE;AACxE,+EAAuE;AAEvE,8FAK+C;AAC/C,wEAOoC;AAI7B,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,oEAA+B;IAK5E,YAA6B,iBAAoC;QAC/D,KAAK,EAAE,CAAC;QADmB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAJ/C,SAAI,GAAG,YAAY,CAAC;QAEpB,iBAAY,GAAG,CAAC,aAAa,CAAC,CAAC;IAIjD,CAAC;IAEQ,KAAK,CAAC,oBAAoB,CACjC,GAAkC;QAElC,OAAO;YACL,WAAW,EAAE,MAAM,IAAI,CAAC,8BAA8B,CACpD,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CACvB;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,8BAA8B,CAC1C,GAAa;QAEb,MAAM,SAAS,GAAG,IAAA,2CAAiB,EAAC,GAAG,CAAC,CAAC;QACzC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;YACpD,KAAK,EAAE,EAAE,EAAE,EAAE,IAAA,YAAE,EAAC,SAAS,CAAC,EAAE;SAC7B,CAAC,CAAC;QACH,IAAA,wCAAc,EACZ,YAAY,EACZ,SAAS,EACT,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAC/C,CAAC;QAEF,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,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A,4DAAuB,GAAE;IACzB,IAAA,mBAAU,GAAE;qCAMqC,sCAAiB;GALtD,yBAAyB,CA4HrC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LabelService } from "../../chat/services/label.service";
|
|
2
|
+
import { WorkflowTransferExportContext, WorkflowTransferImportContext, WorkflowTransferResourceAdapter } from '../workflow-transfer-resource-adapter';
|
|
3
|
+
import { type WorkflowTransferImportAdapterResult } from '../workflow-transfer.types';
|
|
4
|
+
export declare class LabelTransferAdapter extends WorkflowTransferResourceAdapter {
|
|
5
|
+
private readonly labelService;
|
|
6
|
+
readonly kind = "label";
|
|
7
|
+
readonly resourceKeys: string[];
|
|
8
|
+
constructor(labelService: LabelService);
|
|
9
|
+
buildExportResources(ctx: WorkflowTransferExportContext): Promise<Record<string, unknown[]>>;
|
|
10
|
+
private buildLabelExportResources;
|
|
11
|
+
importResources(ctx: WorkflowTransferImportContext): Promise<WorkflowTransferImportAdapterResult>;
|
|
12
|
+
private importLabelGroups;
|
|
13
|
+
private importLabels;
|
|
14
|
+
private isEquivalentLabel;
|
|
15
|
+
}
|