n8n 1.56.2 → 1.57.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/Db.js +2 -2
- package/dist/Db.js.map +1 -1
- package/dist/Interfaces.d.ts +6 -6
- package/dist/PublicApi/index.js +2 -2
- package/dist/PublicApi/index.js.map +1 -1
- package/dist/PublicApi/types.d.ts +2 -2
- package/dist/PublicApi/v1/handlers/audit/audit.handler.js +1 -1
- package/dist/PublicApi/v1/handlers/audit/audit.handler.js.map +1 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.handler.d.ts +1 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.handler.js +4 -4
- package/dist/PublicApi/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.middleware.js +4 -4
- package/dist/PublicApi/v1/handlers/credentials/credentials.middleware.js.map +1 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.service.d.ts +2 -2
- package/dist/PublicApi/v1/handlers/credentials/credentials.service.js +10 -10
- package/dist/PublicApi/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/PublicApi/v1/handlers/executions/executions.handler.js +2 -2
- package/dist/PublicApi/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/PublicApi/v1/handlers/sourceControl/sourceControl.handler.d.ts +1 -1
- package/dist/PublicApi/v1/handlers/sourceControl/sourceControl.handler.js +7 -7
- package/dist/PublicApi/v1/handlers/sourceControl/sourceControl.handler.js.map +1 -1
- package/dist/PublicApi/v1/handlers/tags/tags.handler.js.map +1 -1
- package/dist/PublicApi/v1/handlers/users/users.handler.ee.js +2 -2
- package/dist/PublicApi/v1/handlers/users/users.handler.ee.js.map +1 -1
- package/dist/PublicApi/v1/handlers/users/users.service.ee.js.map +1 -1
- package/dist/PublicApi/v1/handlers/workflows/workflows.handler.js +26 -26
- package/dist/PublicApi/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/PublicApi/v1/handlers/workflows/workflows.service.d.ts +4 -4
- package/dist/PublicApi/v1/handlers/workflows/workflows.service.js +15 -15
- package/dist/PublicApi/v1/handlers/workflows/workflows.service.js.map +1 -1
- package/dist/PublicApi/v1/shared/middlewares/global.middleware.js +5 -5
- package/dist/PublicApi/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/abstract-server.d.ts +35 -0
- package/dist/abstract-server.js +215 -0
- package/dist/abstract-server.js.map +1 -0
- package/dist/activation-errors.service.js +47 -0
- package/dist/activation-errors.service.js.map +1 -0
- package/dist/active-executions.d.ts +28 -0
- package/dist/active-executions.js +184 -0
- package/dist/active-executions.js.map +1 -0
- package/dist/active-workflow-manager.d.ts +63 -0
- package/dist/active-workflow-manager.js +505 -0
- package/dist/active-workflow-manager.js.map +1 -0
- package/dist/auth/auth.service.d.ts +6 -3
- package/dist/auth/auth.service.js +29 -6
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/auth/methods/email.js +1 -1
- package/dist/auth/methods/email.js.map +1 -1
- package/dist/auth/methods/ldap.js +2 -2
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/audit.d.ts +1 -1
- package/dist/commands/audit.js +4 -4
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/base-command.d.ts +41 -0
- package/dist/commands/base-command.js +258 -0
- package/dist/commands/base-command.js.map +1 -0
- package/dist/commands/db/revert.d.ts +1 -1
- package/dist/commands/db/revert.js +4 -4
- package/dist/commands/db/revert.js.map +1 -1
- package/dist/commands/execute.d.ts +1 -1
- package/dist/commands/execute.js +6 -6
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/executeBatch.d.ts +1 -1
- package/dist/commands/executeBatch.js +7 -7
- package/dist/commands/executeBatch.js.map +1 -1
- package/dist/commands/export/credentials.d.ts +1 -1
- package/dist/commands/export/credentials.js +2 -2
- package/dist/commands/export/credentials.js.map +1 -1
- package/dist/commands/export/workflow.d.ts +1 -1
- package/dist/commands/export/workflow.js +2 -2
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/import/credentials.d.ts +1 -1
- package/dist/commands/import/credentials.js +11 -11
- package/dist/commands/import/credentials.js.map +1 -1
- package/dist/commands/import/workflow.d.ts +1 -1
- package/dist/commands/import/workflow.js +4 -4
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/ldap/reset.d.ts +2 -2
- package/dist/commands/ldap/reset.js +14 -14
- package/dist/commands/ldap/reset.js.map +1 -1
- package/dist/commands/license/clear.d.ts +1 -1
- package/dist/commands/license/clear.js +4 -4
- package/dist/commands/license/clear.js.map +1 -1
- package/dist/commands/license/info.d.ts +1 -1
- package/dist/commands/license/info.js +4 -4
- package/dist/commands/license/info.js.map +1 -1
- package/dist/commands/list/workflow.d.ts +1 -1
- package/dist/commands/list/workflow.js +2 -2
- package/dist/commands/list/workflow.js.map +1 -1
- package/dist/commands/mfa/disable.d.ts +1 -1
- package/dist/commands/mfa/disable.js +4 -4
- package/dist/commands/mfa/disable.js.map +1 -1
- package/dist/commands/start.d.ts +3 -3
- package/dist/commands/start.js +17 -17
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/update/workflow.d.ts +1 -1
- package/dist/commands/update/workflow.js +2 -2
- package/dist/commands/update/workflow.js.map +1 -1
- package/dist/commands/user-management/reset.d.ts +1 -1
- package/dist/commands/user-management/reset.js +8 -8
- package/dist/commands/user-management/reset.js.map +1 -1
- package/dist/commands/webhook.d.ts +2 -2
- package/dist/commands/webhook.js +6 -6
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.d.ts +1 -1
- package/dist/commands/worker.js +9 -9
- package/dist/commands/worker.js.map +1 -1
- package/dist/concurrency/concurrency-control.service.d.ts +1 -1
- package/dist/concurrency/concurrency-control.service.js +2 -2
- package/dist/config/schema.d.ts +1 -1
- package/dist/controllers/active-workflows.controller.js +44 -0
- package/dist/controllers/active-workflows.controller.js.map +1 -0
- package/dist/controllers/ai-assistant.controller.js +64 -0
- package/dist/controllers/ai-assistant.controller.js.map +1 -0
- package/dist/controllers/auth.controller.d.ts +6 -6
- package/dist/controllers/auth.controller.js +12 -11
- package/dist/controllers/auth.controller.js.map +1 -1
- package/dist/controllers/binary-data.controller.js +73 -0
- package/dist/controllers/binary-data.controller.js.map +1 -0
- package/dist/controllers/community-packages.controller.d.ts +19 -0
- package/dist/controllers/community-packages.controller.js +251 -0
- package/dist/controllers/community-packages.controller.js.map +1 -0
- package/dist/controllers/debug.controller.d.ts +2 -2
- package/dist/controllers/debug.controller.js +2 -2
- package/dist/controllers/debug.controller.js.map +1 -1
- package/dist/controllers/dynamic-node-parameters.controller.js +84 -0
- package/dist/controllers/dynamic-node-parameters.controller.js.map +1 -0
- package/dist/controllers/invitation.controller.d.ts +3 -3
- package/dist/controllers/invitation.controller.js +8 -8
- package/dist/controllers/invitation.controller.js.map +1 -1
- package/dist/controllers/me.controller.d.ts +3 -3
- package/dist/controllers/me.controller.js +12 -12
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/mfa.controller.d.ts +1 -1
- package/dist/controllers/mfa.controller.js +1 -1
- package/dist/controllers/node-types.controller.d.ts +8 -0
- package/dist/controllers/node-types.controller.js +67 -0
- package/dist/controllers/node-types.controller.js.map +1 -0
- package/dist/controllers/oauth/abstract-oauth.controller.d.ts +38 -0
- package/dist/controllers/oauth/abstract-oauth.controller.js +139 -0
- package/dist/controllers/oauth/abstract-oauth.controller.js.map +1 -0
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +8 -0
- package/dist/controllers/oauth/oauth1-credential.controller.js +152 -0
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -0
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +9 -0
- package/dist/controllers/oauth/oauth2-credential.controller.js +196 -0
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -0
- package/dist/controllers/orchestration.controller.d.ts +1 -1
- package/dist/controllers/orchestration.controller.js +2 -2
- package/dist/controllers/owner.controller.d.ts +1 -1
- package/dist/controllers/owner.controller.js +4 -4
- package/dist/controllers/owner.controller.js.map +1 -1
- package/dist/controllers/password-reset.controller.d.ts +30 -0
- package/dist/controllers/password-reset.controller.js +201 -0
- package/dist/controllers/password-reset.controller.js.map +1 -0
- package/dist/controllers/project.controller.d.ts +10 -10
- package/dist/controllers/tags.controller.d.ts +3 -3
- package/dist/controllers/translation.controller.d.ts +1 -1
- package/dist/controllers/translation.controller.js +2 -2
- package/dist/controllers/translation.controller.js.map +1 -1
- package/dist/controllers/user-settings.controller.js +66 -0
- package/dist/controllers/user-settings.controller.js.map +1 -0
- package/dist/controllers/users.controller.d.ts +4 -4
- package/dist/controllers/users.controller.js +14 -14
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/controllers/workflow-statistics.controller.d.ts +24 -0
- package/dist/controllers/workflow-statistics.controller.js +120 -0
- package/dist/controllers/workflow-statistics.controller.js.map +1 -0
- package/dist/crash-journal.js +40 -0
- package/dist/crash-journal.js.map +1 -0
- package/dist/credential-types.d.ts +11 -0
- package/dist/credential-types.js +64 -0
- package/dist/credential-types.js.map +1 -0
- package/dist/credentials/credentials.controller.d.ts +7 -7
- package/dist/credentials/credentials.controller.js +12 -12
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +6 -6
- package/dist/credentials/credentials.service.ee.d.ts +3 -3
- package/dist/credentials/credentials.service.ee.js +6 -6
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +21 -21
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.d.ts +28 -0
- package/dist/credentials-helper.js +281 -0
- package/dist/credentials-helper.js.map +1 -0
- package/dist/credentials-overwrites.d.ts +17 -0
- package/dist/credentials-overwrites.js +95 -0
- package/dist/credentials-overwrites.js.map +1 -0
- package/dist/databases/dsl/Indices.d.ts +2 -0
- package/dist/databases/dsl/Indices.js +14 -1
- package/dist/databases/dsl/Indices.js.map +1 -1
- package/dist/databases/dsl/index.d.ts +4 -1
- package/dist/databases/dsl/index.js +3 -1
- package/dist/databases/dsl/index.js.map +1 -1
- package/dist/databases/entities/User.d.ts +5 -5
- package/dist/databases/entities/User.js +4 -4
- package/dist/databases/entities/User.js.map +1 -1
- package/dist/databases/entities/Variables.d.ts +1 -1
- package/dist/databases/entities/Variables.js +2 -2
- package/dist/databases/entities/Variables.js.map +1 -1
- package/dist/databases/entities/abstract-entity.js +78 -0
- package/dist/databases/entities/abstract-entity.js.map +1 -0
- package/dist/databases/entities/auth-identity.d.ts +10 -0
- package/dist/databases/entities/auth-identity.js +48 -0
- package/dist/databases/entities/auth-identity.js.map +1 -0
- package/dist/databases/entities/auth-provider-sync-history.d.ts +16 -0
- package/dist/databases/entities/auth-provider-sync-history.js +65 -0
- package/dist/databases/entities/auth-provider-sync-history.js.map +1 -0
- package/dist/databases/entities/auth-user.js +29 -0
- package/dist/databases/entities/auth-user.js.map +1 -0
- package/dist/databases/entities/credentials-entity.d.ts +9 -0
- package/dist/databases/entities/credentials-entity.js +47 -0
- package/dist/databases/entities/credentials-entity.js.map +1 -0
- package/dist/databases/entities/event-destinations.d.ts +6 -0
- package/dist/databases/entities/event-destinations.js +29 -0
- package/dist/databases/entities/event-destinations.js.map +1 -0
- package/dist/databases/entities/execution-data.d.ts +8 -0
- package/dist/databases/entities/execution-data.js +41 -0
- package/dist/databases/entities/execution-data.js.map +1 -0
- package/dist/databases/entities/execution-entity.d.ts +21 -0
- package/dist/databases/entities/execution-entity.js +86 -0
- package/dist/databases/entities/execution-entity.js.map +1 -0
- package/dist/databases/entities/execution-metadata.d.ts +8 -0
- package/dist/databases/entities/execution-metadata.js +43 -0
- package/dist/databases/entities/execution-metadata.js.map +1 -0
- package/dist/databases/entities/index.d.ts +23 -21
- package/dist/databases/entities/index.js +44 -42
- package/dist/databases/entities/index.js.map +1 -1
- package/dist/databases/entities/installed-nodes.d.ts +7 -0
- package/dist/databases/entities/installed-nodes.js +38 -0
- package/dist/databases/entities/installed-nodes.js.map +1 -0
- package/dist/databases/entities/installed-packages.d.ts +9 -0
- package/dist/databases/entities/installed-packages.js +42 -0
- package/dist/databases/entities/installed-packages.js.map +1 -0
- package/dist/databases/entities/invalid-auth-token.d.ts +4 -0
- package/dist/databases/entities/invalid-auth-token.js +29 -0
- package/dist/databases/entities/invalid-auth-token.js.map +1 -0
- package/dist/databases/entities/project-relation.d.ts +11 -0
- package/dist/databases/entities/project-relation.js +43 -0
- package/dist/databases/entities/project-relation.js.map +1 -0
- package/dist/databases/entities/project.d.ts +12 -0
- package/dist/databases/entities/project.js +41 -0
- package/dist/databases/entities/project.js.map +1 -0
- package/dist/databases/entities/settings.js +32 -0
- package/dist/databases/entities/settings.js.map +1 -0
- package/dist/databases/entities/shared-credentials.d.ts +11 -0
- package/dist/databases/entities/shared-credentials.js +43 -0
- package/dist/databases/entities/shared-credentials.js.map +1 -0
- package/dist/databases/entities/shared-workflow.d.ts +11 -0
- package/dist/databases/entities/shared-workflow.js +43 -0
- package/dist/databases/entities/shared-workflow.js.map +1 -0
- package/dist/databases/entities/tag-entity.d.ts +8 -0
- package/dist/databases/entities/tag-entity.js +37 -0
- package/dist/databases/entities/tag-entity.js.map +1 -0
- package/dist/databases/entities/webhook-entity.js +59 -0
- package/dist/databases/entities/webhook-entity.js.map +1 -0
- package/dist/databases/entities/workflow-entity.d.ts +32 -0
- package/dist/databases/entities/workflow-entity.js +113 -0
- package/dist/databases/entities/workflow-entity.js.map +1 -0
- package/dist/databases/entities/workflow-history.d.ts +12 -0
- package/dist/databases/entities/workflow-history.js +48 -0
- package/dist/databases/entities/workflow-history.js.map +1 -0
- package/dist/databases/entities/workflow-statistics.d.ts +15 -0
- package/dist/databases/entities/workflow-statistics.js +50 -0
- package/dist/databases/entities/workflow-statistics.js.map +1 -0
- package/dist/databases/entities/workflow-tag-mapping.d.ts +8 -0
- package/dist/databases/entities/workflow-tag-mapping.js +38 -0
- package/dist/databases/entities/workflow-tag-mapping.js.map +1 -0
- package/dist/databases/migrations/common/1620821879465-UniqueWorkflowNames.d.ts +1 -1
- package/dist/databases/migrations/common/1630330987096-UpdateWorkflowCredentials.d.ts +1 -1
- package/dist/databases/migrations/common/1658930531669-AddNodeIds.d.ts +1 -1
- package/dist/databases/migrations/common/1659888469333-AddJsonKeyPinData.d.ts +1 -1
- package/dist/databases/migrations/common/1669739707124-AddWorkflowVersionIdColumn.d.ts +1 -1
- package/dist/databases/migrations/common/1671726148419-RemoveWorkflowDataLoadedFlag.d.ts +1 -1
- package/dist/databases/migrations/common/1674509946020-CreateLdapEntities.d.ts +1 -1
- package/dist/databases/migrations/common/1674509946020-CreateLdapEntities.js +1 -1
- package/dist/databases/migrations/common/1675940580449-PurgeInvalidWorkflowConnections.d.ts +1 -1
- package/dist/databases/migrations/common/1690000000030-RemoveResetPasswordColumns.d.ts +1 -1
- package/dist/databases/migrations/common/1691088862123-CreateWorkflowNameIndex.d.ts +1 -1
- package/dist/databases/migrations/common/1692967111175-CreateWorkflowHistoryTable.d.ts +1 -1
- package/dist/databases/migrations/common/1693554410387-DisallowOrphanExecutions.d.ts +1 -1
- package/dist/databases/migrations/common/1695128658538-AddWorkflowMetadata.d.ts +1 -1
- package/dist/databases/migrations/common/1695829275184-ModifyWorkflowHistoryNodesAndConnections.d.ts +1 -1
- package/dist/databases/migrations/common/1700571993961-AddGlobalAdminRole.d.ts +1 -1
- package/dist/databases/migrations/common/1705429061930-DropRoleMapping.d.ts +1 -1
- package/dist/databases/migrations/common/1711018413374-RemoveFailedExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/common/1711390882123-MoveSshKeysToDatabase.d.ts +1 -1
- package/dist/databases/migrations/common/1712044305787-RemoveNodesAccess.d.ts +1 -1
- package/dist/databases/migrations/common/1714133768519-CreateProject.d.ts +1 -1
- package/dist/databases/migrations/common/1720101653148-AddConstraintToExecutionMetadata.d.ts +1 -1
- package/dist/databases/migrations/common/1723627610222-CreateInvalidAuthTokenTable.d.ts +5 -0
- package/dist/databases/migrations/common/1723627610222-CreateInvalidAuthTokenTable.js +14 -0
- package/dist/databases/migrations/common/1723627610222-CreateInvalidAuthTokenTable.js.map +1 -0
- package/dist/databases/migrations/common/1723796243146-RefactorExecutionIndices.d.ts +5 -0
- package/dist/databases/migrations/common/1723796243146-RefactorExecutionIndices.js +75 -0
- package/dist/databases/migrations/common/1723796243146-RefactorExecutionIndices.js.map +1 -0
- package/dist/databases/migrations/mysqldb/1588157391238-InitialMigration.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1592447867632-WebhookModel.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1594902918301-CreateIndexStoppedAt.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1607431743767-MakeStoppedAtNullable.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1611149998770-AddWebhookId.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1615306975123-ChangeDataSize.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1617268711084-CreateTagEntity.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1620729500000-ChangeCredentialDataSize.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1623936588000-CertifyCorrectCollation.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1626183952959-AddWaitColumn.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1644424784709-AddExecutionEntityIndexes.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1646992772331-CreateUserManagement.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1648740597343-LowerCaseUserEmail.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1652254514003-CommunityNodes.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1652367743993-AddUserSettings.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1652905585850-AddAPIKeyColumn.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1654090101303-IntroducePinData.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1660062385367-CreateCredentialsUserRole.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1663755770894-CreateWorkflowsEditorRole.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1664196174002-WorkflowStatistics.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1665484192213-CreateCredentialUsageTable.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1665754637026-RemoveCredentialUsageTable.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1669823906994-AddTriggerCountColumn.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1671535397530-MessageEventBusDestinations.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1673268682475-DeleteExecutionsWithWorkflows.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1674138566000-AddStatusToExecutions.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1676996103000-MigrateExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1677236788851-UpdateRunningExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1677501636753-CreateVariables.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1679416281779-CreateExecutionMetadataTable.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1681134145996-AddUserActivatedProperty.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1681134145997-RemoveSkipOwnerSetup.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1690000000001-MigrateIntegerKeysToString.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1690000000030-SeparateExecutionData.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1690000000031-FixExecutionDataType.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/1717498465931-AddActivatedAtUserSetting.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/index.d.ts +1 -1
- package/dist/databases/migrations/mysqldb/index.js +4 -0
- package/dist/databases/migrations/mysqldb/index.js.map +1 -1
- package/dist/databases/migrations/postgresdb/1587669153312-InitialMigration.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1589476000887-WebhookModel.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1594828256133-CreateIndexStoppedAt.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1607431743768-MakeStoppedAtNullable.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1611144599516-AddWebhookId.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1617270242566-CreateTagEntity.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1626176912946-AddwaitTill.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1644422880309-AddExecutionEntityIndexes.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1646834195327-IncreaseTypeVarcharLimit.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1646992772331-CreateUserManagement.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1648740597343-LowerCaseUserEmail.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1652254514002-CommunityNodes.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1652367743993-AddUserSettings.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1652905585850-AddAPIKeyColumn.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1654090467022-IntroducePinData.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1660062385367-CreateCredentialsUserRole.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1663755770893-CreateWorkflowsEditorRole.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1664196174001-WorkflowStatistics.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1665484192212-CreateCredentialUsageTable.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1665754637025-RemoveCredentialUsageTable.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1669823906995-AddTriggerCountColumn.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1671535397530-MessageEventBusDestinations.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1673268682475-DeleteExecutionsWithWorkflows.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1674138566000-AddStatusToExecutions.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1676996103000-MigrateExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1677236854063-UpdateRunningExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1677501636754-CreateVariables.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1679416281778-CreateExecutionMetadataTable.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1681134145996-AddUserActivatedProperty.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1681134145997-RemoveSkipOwnerSetup.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1690000000000-MigrateIntegerKeysToString.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1690000000020-SeparateExecutionData.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1717498465931-AddActivatedAtUserSetting.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/1721377157740-FixExecutionMetadataSequence.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/index.d.ts +1 -1
- package/dist/databases/migrations/postgresdb/index.js +4 -0
- package/dist/databases/migrations/postgresdb/index.js.map +1 -1
- package/dist/databases/migrations/sqlite/1588102412422-InitialMigration.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1592445003908-WebhookModel.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1594825041918-CreateIndexStoppedAt.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1607431743769-MakeStoppedAtNullable.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1611071044839-AddWebhookId.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1617213344594-CreateTagEntity.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1621707690587-AddWaitColumn.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1644421939510-AddExecutionEntityIndexes.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1646992772331-CreateUserManagement.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1648740597343-LowerCaseUserEmail.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1652254514001-CommunityNodes.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1652367743993-AddUserSettings.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1652905585850-AddAPIKeyColumn.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1654089251344-IntroducePinData.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1660062385367-CreateCredentialsUserRole.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1663755770892-CreateWorkflowsUserRole.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1664196174000-WorkflowStatistics.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1665484192211-CreateCredentialUsageTable.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1665754637024-RemoveCredentialUsageTable.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1669823906993-AddTriggerCountColumn.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1671535397530-MessageEventBusDestinations.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1673268682475-DeleteExecutionsWithWorkflows.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1674138566000-AddStatusToExecutions.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1676996103000-MigrateExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1677237073720-UpdateRunningExecutionStatus.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1677501636752-CreateVariables.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1679416281777-CreateExecutionMetadataTable.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1681134145996-AddUserActivatedProperty.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1681134145997-RemoveSkipOwnerSetup.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1690000000002-MigrateIntegerKeysToString.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1690000000010-SeparateExecutionData.d.ts +1 -1
- package/dist/databases/migrations/sqlite/1690000000020-FixMissingIndicesFromStringIdMigration.d.ts +1 -1
- package/dist/databases/migrations/sqlite/index.d.ts +1 -1
- package/dist/databases/migrations/sqlite/index.js +4 -0
- package/dist/databases/migrations/sqlite/index.js.map +1 -1
- package/dist/databases/repositories/auth-identity.repository.d.ts +5 -0
- package/dist/databases/repositories/auth-identity.repository.js +26 -0
- package/dist/databases/repositories/auth-identity.repository.js.map +1 -0
- package/dist/databases/repositories/auth-provider-sync-history.repository.d.ts +5 -0
- package/dist/databases/repositories/auth-provider-sync-history.repository.js +26 -0
- package/dist/databases/repositories/auth-provider-sync-history.repository.js.map +1 -0
- package/dist/databases/repositories/auth-user.repository.d.ts +5 -0
- package/dist/databases/repositories/auth-user.repository.js +26 -0
- package/dist/databases/repositories/auth-user.repository.js.map +1 -0
- package/dist/databases/repositories/credentials.repository.d.ts +1 -1
- package/dist/databases/repositories/credentials.repository.js +2 -2
- package/dist/databases/repositories/credentials.repository.js.map +1 -1
- package/dist/databases/repositories/event-destinations.repository.d.ts +5 -0
- package/dist/databases/repositories/event-destinations.repository.js +26 -0
- package/dist/databases/repositories/event-destinations.repository.js.map +1 -0
- package/dist/databases/repositories/execution-data.repository.d.ts +6 -0
- package/dist/databases/repositories/execution-data.repository.js +34 -0
- package/dist/databases/repositories/execution-data.repository.js.map +1 -0
- package/dist/databases/repositories/execution-metadata.repository.d.ts +5 -0
- package/dist/databases/repositories/execution-metadata.repository.js +26 -0
- package/dist/databases/repositories/execution-metadata.repository.js.map +1 -0
- package/dist/databases/repositories/execution.repository.d.ts +3 -3
- package/dist/databases/repositories/execution.repository.js +12 -12
- package/dist/databases/repositories/execution.repository.js.map +1 -1
- package/dist/databases/repositories/installed-nodes.repository.d.ts +5 -0
- package/dist/databases/repositories/installed-nodes.repository.js +26 -0
- package/dist/databases/repositories/installed-nodes.repository.js.map +1 -0
- package/dist/databases/repositories/installed-packages.repository.d.ts +9 -0
- package/dist/databases/repositories/installed-packages.repository.js +54 -0
- package/dist/databases/repositories/installed-packages.repository.js.map +1 -0
- package/dist/databases/repositories/invalid-auth-token.repository.d.ts +5 -0
- package/dist/databases/repositories/invalid-auth-token.repository.js +26 -0
- package/dist/databases/repositories/invalid-auth-token.repository.js.map +1 -0
- package/dist/databases/repositories/project-relation.repository.d.ts +14 -0
- package/dist/databases/repositories/project-relation.repository.js +73 -0
- package/dist/databases/repositories/project-relation.repository.js.map +1 -0
- package/dist/databases/repositories/project.repository.d.ts +1 -1
- package/dist/databases/repositories/project.repository.js +4 -4
- package/dist/databases/repositories/settings.repository.d.ts +1 -1
- package/dist/databases/repositories/settings.repository.js +3 -3
- package/dist/databases/repositories/settings.repository.js.map +1 -1
- package/dist/databases/repositories/shared-credentials.repository.d.ts +26 -0
- package/dist/databases/repositories/shared-credentials.repository.js +131 -0
- package/dist/databases/repositories/shared-credentials.repository.js.map +1 -0
- package/dist/databases/repositories/shared-workflow.repository.d.ts +45 -0
- package/dist/databases/repositories/shared-workflow.repository.js +170 -0
- package/dist/databases/repositories/shared-workflow.repository.js.map +1 -0
- package/dist/databases/repositories/tag.repository.d.ts +2 -2
- package/dist/databases/repositories/tag.repository.js +2 -2
- package/dist/databases/repositories/tag.repository.js.map +1 -1
- package/dist/databases/repositories/user.repository.d.ts +1 -1
- package/dist/databases/repositories/user.repository.js +4 -4
- package/dist/databases/repositories/user.repository.js.map +1 -1
- package/dist/databases/repositories/webhook.repository.d.ts +1 -1
- package/dist/databases/repositories/webhook.repository.js +2 -2
- package/dist/databases/repositories/webhook.repository.js.map +1 -1
- package/dist/databases/repositories/workflow-history.repository.d.ts +6 -0
- package/dist/databases/repositories/workflow-history.repository.js +29 -0
- package/dist/databases/repositories/workflow-history.repository.js.map +1 -0
- package/dist/databases/repositories/workflow-statistics.repository.d.ts +14 -0
- package/dist/databases/repositories/workflow-statistics.repository.js +109 -0
- package/dist/databases/repositories/workflow-statistics.repository.js.map +1 -0
- package/dist/databases/repositories/workflow-tag-mapping.repository.d.ts +6 -0
- package/dist/databases/repositories/workflow-tag-mapping.repository.js +33 -0
- package/dist/databases/repositories/workflow-tag-mapping.repository.js.map +1 -0
- package/dist/databases/repositories/workflow.repository.d.ts +1 -1
- package/dist/databases/repositories/workflow.repository.js +4 -4
- package/dist/databases/repositories/workflow.repository.js.map +1 -1
- package/dist/databases/subscribers/index.d.ts +1 -1
- package/dist/databases/subscribers/index.js +2 -2
- package/dist/databases/subscribers/index.js.map +1 -1
- package/dist/databases/subscribers/user-subscriber.js +64 -0
- package/dist/databases/subscribers/user-subscriber.js.map +1 -0
- package/dist/databases/types.d.ts +3 -1
- package/dist/databases/types.js.map +1 -1
- package/dist/databases/utils/migration-helpers.d.ts +2 -0
- package/dist/databases/utils/migration-helpers.js +186 -0
- package/dist/databases/utils/migration-helpers.js.map +1 -0
- package/dist/decorators/controller.registry.d.ts +1 -1
- package/dist/decorators/controller.registry.js +6 -6
- package/dist/decorators/controller.registry.js.map +1 -1
- package/dist/decorators/index.d.ts +5 -5
- package/dist/decorators/index.js +15 -15
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/licensed.js +10 -0
- package/dist/decorators/licensed.js.map +1 -0
- package/dist/decorators/middleware.js +10 -0
- package/dist/decorators/middleware.js.map +1 -0
- package/dist/decorators/on-shutdown.js +20 -0
- package/dist/decorators/on-shutdown.js.map +1 -0
- package/dist/decorators/redactable.js +29 -0
- package/dist/decorators/redactable.js.map +1 -0
- package/dist/decorators/rest-controller.js +12 -0
- package/dist/decorators/rest-controller.js.map +1 -0
- package/dist/decorators/route.js +20 -0
- package/dist/decorators/route.js.map +1 -0
- package/dist/decorators/scoped.js +13 -0
- package/dist/decorators/scoped.js.map +1 -0
- package/dist/environments/source-control/constants.js.map +1 -0
- package/dist/environments/source-control/middleware/source-control-enabled-middleware.ee.js +34 -0
- package/dist/environments/source-control/middleware/source-control-enabled-middleware.ee.js.map +1 -0
- package/dist/environments/source-control/source-control-export.service.ee.d.ts +25 -0
- package/dist/environments/source-control/source-control-export.service.ee.js +303 -0
- package/dist/environments/source-control/source-control-export.service.ee.js.map +1 -0
- package/dist/environments/source-control/source-control-git.service.ee.d.ts +57 -0
- package/dist/environments/source-control/source-control-git.service.ee.js +344 -0
- package/dist/environments/source-control/source-control-git.service.ee.js.map +1 -0
- package/dist/environments/source-control/source-control-helper.ee.d.ts +32 -0
- package/dist/environments/source-control/source-control-helper.ee.js +168 -0
- package/dist/environments/source-control/source-control-helper.ee.js.map +1 -0
- package/dist/environments/source-control/source-control-import.service.ee.d.ts +58 -0
- package/dist/environments/source-control/source-control-import.service.ee.js +424 -0
- package/dist/environments/source-control/source-control-import.service.ee.js.map +1 -0
- package/dist/environments/source-control/source-control-preferences.service.ee.d.ts +33 -0
- package/dist/environments/source-control/source-control-preferences.service.ee.js +227 -0
- package/dist/environments/source-control/source-control-preferences.service.ee.js.map +1 -0
- package/dist/environments/source-control/source-control.controller.ee.d.ts +53 -0
- package/dist/environments/source-control/source-control.controller.ee.js +282 -0
- package/dist/environments/source-control/source-control.controller.ee.js.map +1 -0
- package/dist/environments/source-control/source-control.service.ee.d.ts +90 -0
- package/dist/environments/source-control/source-control.service.ee.js +565 -0
- package/dist/environments/source-control/source-control.service.ee.js.map +1 -0
- package/dist/environments/source-control/types/export-result.js +3 -0
- package/dist/environments/source-control/types/export-result.js.map +1 -0
- package/dist/environments/source-control/types/exportable-credential.d.ts +9 -0
- package/dist/environments/source-control/types/exportable-credential.js +3 -0
- package/dist/environments/source-control/types/exportable-credential.js.map +1 -0
- package/dist/environments/source-control/types/exportable-workflow.d.ts +12 -0
- package/dist/environments/source-control/types/exportable-workflow.js +3 -0
- package/dist/environments/source-control/types/exportable-workflow.js.map +1 -0
- package/dist/environments/source-control/types/import-result.d.ts +21 -0
- package/dist/environments/source-control/types/import-result.js +3 -0
- package/dist/environments/source-control/types/import-result.js.map +1 -0
- package/dist/environments/source-control/types/key-pair-type.js +3 -0
- package/dist/environments/source-control/types/key-pair-type.js.map +1 -0
- package/dist/environments/source-control/types/key-pair.js +3 -0
- package/dist/environments/source-control/types/key-pair.js.map +1 -0
- package/dist/environments/source-control/types/requests.d.ts +25 -0
- package/dist/environments/source-control/types/requests.js.map +1 -0
- package/dist/environments/source-control/types/resource-owner.js +3 -0
- package/dist/environments/source-control/types/resource-owner.js.map +1 -0
- package/dist/environments/source-control/types/source-control-commit.js +21 -0
- package/dist/environments/source-control/types/source-control-commit.js.map +1 -0
- package/dist/environments/source-control/types/source-control-disconnect.js +22 -0
- package/dist/environments/source-control/types/source-control-disconnect.js.map +1 -0
- package/dist/environments/source-control/types/source-control-generate-key-pair.d.ts +4 -0
- package/dist/environments/source-control/types/source-control-generate-key-pair.js +22 -0
- package/dist/environments/source-control/types/source-control-generate-key-pair.js.map +1 -0
- package/dist/environments/source-control/types/source-control-get-status.js +43 -0
- package/dist/environments/source-control/types/source-control-get-status.js.map +1 -0
- package/dist/environments/source-control/types/source-control-preferences.d.ts +14 -0
- package/dist/environments/source-control/types/source-control-preferences.js +71 -0
- package/dist/environments/source-control/types/source-control-preferences.js.map +1 -0
- package/dist/environments/source-control/types/source-control-pull-work-folder.js +43 -0
- package/dist/environments/source-control/types/source-control-pull-work-folder.js.map +1 -0
- package/dist/environments/source-control/types/source-control-push-work-folder.d.ts +7 -0
- package/dist/environments/source-control/types/source-control-push-work-folder.js +36 -0
- package/dist/environments/source-control/types/source-control-push-work-folder.js.map +1 -0
- package/dist/environments/source-control/types/source-control-push.js +22 -0
- package/dist/environments/source-control/types/source-control-push.js.map +1 -0
- package/dist/environments/source-control/types/source-control-set-branch.js +21 -0
- package/dist/environments/source-control/types/source-control-set-branch.js.map +1 -0
- package/dist/environments/source-control/types/source-control-set-read-only.js +21 -0
- package/dist/environments/source-control/types/source-control-set-read-only.js.map +1 -0
- package/dist/environments/source-control/types/source-control-stage.js +32 -0
- package/dist/environments/source-control/types/source-control-stage.js.map +1 -0
- package/dist/environments/source-control/types/source-control-workflow-version-id.js +3 -0
- package/dist/environments/source-control/types/source-control-workflow-version-id.js.map +1 -0
- package/dist/environments/source-control/types/source-controlled-file.js +3 -0
- package/dist/environments/source-control/types/source-controlled-file.js.map +1 -0
- package/dist/environments/variables/environment-helpers.js +27 -0
- package/dist/environments/variables/environment-helpers.js.map +1 -0
- package/dist/environments/variables/variables.service.ee.js +2 -2
- package/dist/environments/variables/variables.service.ee.js.map +1 -1
- package/dist/error-reporting.js +110 -0
- package/dist/error-reporting.js.map +1 -0
- package/dist/errors/subworkflow-policy-denial.error.d.ts +1 -1
- package/dist/eventbus/event-message-classes/abstract-event-message-options.d.ts +13 -0
- package/dist/eventbus/event-message-classes/abstract-event-message-options.js +3 -0
- package/dist/eventbus/event-message-classes/abstract-event-message-options.js.map +1 -0
- package/dist/eventbus/event-message-classes/abstract-event-message.d.ts +24 -0
- package/dist/eventbus/event-message-classes/abstract-event-message.js +110 -0
- package/dist/eventbus/event-message-classes/abstract-event-message.js.map +1 -0
- package/dist/eventbus/event-message-classes/abstract-event-payload.js +3 -0
- package/dist/eventbus/event-message-classes/abstract-event-payload.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-ai-node.d.ts +25 -0
- package/dist/eventbus/event-message-classes/event-message-ai-node.js +29 -0
- package/dist/eventbus/event-message-classes/event-message-ai-node.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-audit.d.ts +30 -0
- package/dist/eventbus/event-message-classes/event-message-audit.js +29 -0
- package/dist/eventbus/event-message-classes/event-message-audit.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-confirm.js +31 -0
- package/dist/eventbus/event-message-classes/event-message-confirm.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-execution.d.ts +21 -0
- package/dist/eventbus/event-message-classes/event-message-execution.js +29 -0
- package/dist/eventbus/event-message-classes/event-message-execution.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-generic.d.ts +19 -0
- package/dist/eventbus/event-message-classes/event-message-generic.js +30 -0
- package/dist/eventbus/event-message-classes/event-message-generic.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-node.d.ts +26 -0
- package/dist/eventbus/event-message-classes/event-message-node.js +29 -0
- package/dist/eventbus/event-message-classes/event-message-node.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-workflow.d.ts +25 -0
- package/dist/eventbus/event-message-classes/event-message-workflow.js +29 -0
- package/dist/eventbus/event-message-classes/event-message-workflow.js.map +1 -0
- package/dist/eventbus/event-message-classes/index.d.ts +20 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -0
- package/dist/eventbus/eventBus.controller.d.ts +1 -1
- package/dist/eventbus/eventBus.controller.js +12 -12
- package/dist/eventbus/eventBus.controller.js.map +1 -1
- package/dist/eventbus/index.d.ts +2 -2
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +74 -0
- package/dist/eventbus/message-event-bus/message-event-bus.js +318 -0
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-from-db.d.ts +4 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-from-db.js +25 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-from-db.js.map +1 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee.d.ts +17 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee.js +125 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee.js.map +1 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee.d.ts +21 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee.js +115 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee.js.map +1 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.d.ts +33 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.js +327 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.js.map +1 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.d.ts +32 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js +94 -0
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js.map +1 -0
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer-worker.js +128 -0
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer-worker.js.map +1 -0
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.d.ts +57 -0
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js +307 -0
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js.map +1 -0
- package/dist/events/event.service.d.ts +4 -1
- package/dist/events/event.service.js.map +1 -1
- package/dist/events/log-streaming-event-relay.d.ts +1 -1
- package/dist/events/log-streaming-event-relay.js +26 -26
- package/dist/events/log-streaming-event-relay.js.map +1 -1
- package/dist/events/queue-metrics-event-map.d.ts +8 -0
- package/dist/events/queue-metrics-event-map.js +3 -0
- package/dist/events/queue-metrics-event-map.js.map +1 -0
- package/dist/events/relay-event-map.d.ts +2 -2
- package/dist/events/telemetry-event-relay.d.ts +4 -4
- package/dist/events/telemetry-event-relay.js +11 -10
- package/dist/events/telemetry-event-relay.js.map +1 -1
- package/dist/execution-lifecycle-hooks/restore-binary-data-id.js +47 -0
- package/dist/execution-lifecycle-hooks/restore-binary-data-id.js.map +1 -0
- package/dist/execution-lifecycle-hooks/save-execution-progress.js +66 -0
- package/dist/execution-lifecycle-hooks/save-execution-progress.js.map +1 -0
- package/dist/execution-lifecycle-hooks/shared/shared-hook-functions.js +92 -0
- package/dist/execution-lifecycle-hooks/shared/shared-hook-functions.js.map +1 -0
- package/dist/execution-lifecycle-hooks/to-save-settings.js +31 -0
- package/dist/execution-lifecycle-hooks/to-save-settings.js.map +1 -0
- package/dist/executions/execution-recovery.service.d.ts +2 -2
- package/dist/executions/execution-recovery.service.js +4 -4
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution.service.d.ts +7 -7
- package/dist/executions/execution.service.js +15 -15
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/execution.types.d.ts +2 -2
- package/dist/executions/executions.controller.d.ts +2 -2
- package/dist/executions/executions.controller.js +4 -4
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/executions/parse-range-query.middleware.js +1 -1
- package/dist/executions/parse-range-query.middleware.js.map +1 -1
- package/dist/expression-evaluator.js +21 -0
- package/dist/expression-evaluator.js.map +1 -0
- package/dist/external-hooks.js +94 -0
- package/dist/external-hooks.js.map +1 -0
- package/dist/external-secrets/constants.js.map +1 -0
- package/dist/external-secrets/external-secrets-helper.ee.js +19 -0
- package/dist/external-secrets/external-secrets-helper.ee.js.map +1 -0
- package/dist/external-secrets/external-secrets-manager.ee.d.ts +60 -0
- package/dist/external-secrets/external-secrets-manager.ee.js +366 -0
- package/dist/external-secrets/external-secrets-manager.ee.js.map +1 -0
- package/dist/external-secrets/external-secrets-providers.ee.js +41 -0
- package/dist/external-secrets/external-secrets-providers.ee.js.map +1 -0
- package/dist/external-secrets/external-secrets.controller.ee.d.ts +28 -0
- package/dist/external-secrets/external-secrets.controller.ee.js +158 -0
- package/dist/external-secrets/external-secrets.controller.ee.js.map +1 -0
- package/dist/external-secrets/external-secrets.service.ee.js +149 -0
- package/dist/external-secrets/external-secrets.service.ee.js.map +1 -0
- package/dist/external-secrets/providers/aws-secrets/aws-secrets-client.js.map +1 -0
- package/dist/external-secrets/providers/aws-secrets/aws-secrets-manager.js +105 -0
- package/dist/external-secrets/providers/aws-secrets/aws-secrets-manager.js.map +1 -0
- package/dist/external-secrets/providers/aws-secrets/types.js.map +1 -0
- package/dist/external-secrets/providers/azure-key-vault/azure-key-vault.js +115 -0
- package/dist/external-secrets/providers/azure-key-vault/azure-key-vault.js.map +1 -0
- package/dist/external-secrets/providers/azure-key-vault/types.js.map +1 -0
- package/dist/external-secrets/providers/gcp-secrets-manager/gcp-secrets-manager.js +112 -0
- package/dist/external-secrets/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +1 -0
- package/dist/external-secrets/providers/gcp-secrets-manager/types.js.map +1 -0
- package/dist/external-secrets/providers/infisical.js.map +1 -0
- package/dist/external-secrets/providers/vault.d.ts +31 -0
- package/dist/external-secrets/providers/vault.js +423 -0
- package/dist/external-secrets/providers/vault.js.map +1 -0
- package/dist/generic-helpers.d.ts +8 -0
- package/dist/generic-helpers.js +22 -0
- package/dist/generic-helpers.js.map +1 -0
- package/dist/ldap/constants.js.map +1 -0
- package/dist/ldap/helpers.ee.d.ts +31 -0
- package/dist/ldap/helpers.ee.js +244 -0
- package/dist/ldap/helpers.ee.js.map +1 -0
- package/dist/ldap/ldap.controller.ee.d.ts +13 -0
- package/dist/ldap/ldap.controller.ee.js.map +1 -0
- package/dist/ldap/ldap.service.ee.d.ts +36 -0
- package/dist/ldap/ldap.service.ee.js +295 -0
- package/dist/ldap/ldap.service.ee.js.map +1 -0
- package/dist/ldap/types.d.ts +34 -0
- package/dist/ldap/types.js.map +1 -0
- package/dist/license/license.service.d.ts +2 -2
- package/dist/license/license.service.js +4 -4
- package/dist/license/license.service.js.map +1 -1
- package/dist/license.d.ts +70 -0
- package/dist/license.js +343 -0
- package/dist/license.js.map +1 -0
- package/dist/load-nodes-and-credentials.d.ts +209 -0
- package/dist/load-nodes-and-credentials.js +272 -0
- package/dist/load-nodes-and-credentials.js.map +1 -0
- package/dist/logger.d.ts +9 -0
- package/dist/logger.js +95 -0
- package/dist/logger.js.map +1 -0
- package/dist/metrics/prometheus-metrics.service.d.ts +6 -2
- package/dist/metrics/prometheus-metrics.service.js +42 -4
- package/dist/metrics/prometheus-metrics.service.js.map +1 -1
- package/dist/metrics/types.d.ts +1 -1
- package/dist/mfa/constants.js.map +1 -0
- package/dist/mfa/helpers.js.map +1 -0
- package/dist/mfa/mfa.service.d.ts +23 -0
- package/dist/mfa/mfa.service.js +96 -0
- package/dist/mfa/mfa.service.js.map +1 -0
- package/dist/mfa/totp.service.js.map +1 -0
- package/dist/middlewares/body-parser.js +83 -0
- package/dist/middlewares/body-parser.js.map +1 -0
- package/dist/middlewares/index.d.ts +2 -2
- package/dist/middlewares/index.js +2 -2
- package/dist/middlewares/index.js.map +1 -1
- package/dist/middlewares/list-query/dtos/base.filter.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/base.select.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/credentials.filter.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/credentials.select.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/pagination.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/user.filter.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/user.select.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -0
- package/dist/middlewares/list-query/dtos/workflow.select.dto.js.map +1 -0
- package/dist/middlewares/list-query/filter.js +61 -0
- package/dist/middlewares/list-query/filter.js.map +1 -0
- package/dist/middlewares/list-query/index.js.map +1 -0
- package/dist/middlewares/list-query/pagination.js +48 -0
- package/dist/middlewares/list-query/pagination.js.map +1 -0
- package/dist/middlewares/list-query/select.js +61 -0
- package/dist/middlewares/list-query/select.js.map +1 -0
- package/dist/node-types.d.ts +23 -0
- package/dist/node-types.js +94 -0
- package/dist/node-types.js.map +1 -0
- package/dist/permissions/check-access.js +64 -0
- package/dist/permissions/check-access.js.map +1 -0
- package/dist/push/abstract.push.d.ts +1 -1
- package/dist/push/index.js +2 -2
- package/dist/push/index.js.map +1 -1
- package/dist/push/sse.push.d.ts +1 -1
- package/dist/push/sse.push.js +2 -2
- package/dist/push/websocket.push.d.ts +1 -1
- package/dist/push/websocket.push.js +2 -2
- package/dist/requests.d.ts +5 -5
- package/dist/response-helper.js +121 -0
- package/dist/response-helper.js.map +1 -0
- package/dist/scaling/job-processor.d.ts +3 -3
- package/dist/scaling/job-processor.js +5 -5
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/scaling.service.d.ts +21 -6
- package/dist/scaling/scaling.service.js +85 -24
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/scaling.types.d.ts +44 -0
- package/dist/scaling/scaling.types.js +3 -0
- package/dist/scaling/scaling.types.js.map +1 -0
- package/dist/secrets-helpers.d.ts +13 -0
- package/dist/secrets-helpers.js +53 -0
- package/dist/secrets-helpers.js.map +1 -0
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +16 -0
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +133 -0
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -0
- package/dist/security-audit/risk-reporters/database-risk-reporter.d.ts +6 -0
- package/dist/security-audit/risk-reporters/database-risk-reporter.js +97 -0
- package/dist/security-audit/risk-reporters/database-risk-reporter.js.map +1 -0
- package/dist/security-audit/risk-reporters/filesystem-risk-reporter.d.ts +5 -0
- package/dist/security-audit/risk-reporters/filesystem-risk-reporter.js +41 -0
- package/dist/security-audit/risk-reporters/filesystem-risk-reporter.js.map +1 -0
- package/dist/security-audit/risk-reporters/instance-risk-reporter.d.ts +19 -0
- package/dist/security-audit/risk-reporters/instance-risk-reporter.js +173 -0
- package/dist/security-audit/risk-reporters/instance-risk-reporter.js.map +1 -0
- package/dist/security-audit/risk-reporters/nodes-risk-reporter.d.ts +14 -0
- package/dist/security-audit/risk-reporters/nodes-risk-reporter.js +138 -0
- package/dist/security-audit/risk-reporters/nodes-risk-reporter.js.map +1 -0
- package/dist/security-audit/security-audit.service.js +93 -0
- package/dist/security-audit/security-audit.service.js.map +1 -0
- package/dist/security-audit/types.d.ts +1 -1
- package/dist/security-audit/utils.d.ts +1 -1
- package/dist/server.d.ts +47 -0
- package/dist/server.js +312 -0
- package/dist/server.js.map +1 -0
- package/dist/services/activeWorkflows.service.d.ts +3 -3
- package/dist/services/activeWorkflows.service.js +7 -7
- package/dist/services/activeWorkflows.service.js.map +1 -1
- package/dist/services/aiAsisstant.service.d.ts +1 -1
- package/dist/services/aiAsisstant.service.js +2 -2
- package/dist/services/communityPackages.service.d.ts +5 -5
- package/dist/services/communityPackages.service.js +8 -8
- package/dist/services/communityPackages.service.js.map +1 -1
- package/dist/services/credentials-tester.service.d.ts +4 -4
- package/dist/services/credentials-tester.service.js +9 -9
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/cta.service.d.ts +1 -1
- package/dist/services/cta.service.js +2 -2
- package/dist/services/cta.service.js.map +1 -1
- package/dist/services/dynamicNodeParameters.service.d.ts +1 -1
- package/dist/services/dynamicNodeParameters.service.js +2 -2
- package/dist/services/dynamicNodeParameters.service.js.map +1 -1
- package/dist/services/executionMetadata.service.d.ts +1 -1
- package/dist/services/executionMetadata.service.js +2 -2
- package/dist/services/executionMetadata.service.js.map +1 -1
- package/dist/services/frontend.service.d.ts +6 -6
- package/dist/services/frontend.service.js +22 -22
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/hooks.service.d.ts +5 -5
- package/dist/services/hooks.service.js +2 -2
- package/dist/services/hooks.service.js.map +1 -1
- package/dist/services/import.service.d.ts +2 -2
- package/dist/services/import.service.js +13 -13
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/jwt.service.d.ts +1 -0
- package/dist/services/jwt.service.js +3 -0
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/orchestration/helpers.js +2 -2
- package/dist/services/orchestration/main/MultiMainSetup.ee.d.ts +1 -1
- package/dist/services/orchestration/main/MultiMainSetup.ee.js +2 -2
- package/dist/services/orchestration/main/handleCommandMessageMain.js +13 -13
- package/dist/services/orchestration/main/handleCommandMessageMain.js.map +1 -1
- package/dist/services/orchestration/main/handleWorkerResponseMessageMain.js +3 -3
- package/dist/services/orchestration/pubsub/pubsub-message-map.d.ts +71 -0
- package/dist/services/orchestration/pubsub/pubsub-message-map.js +3 -0
- package/dist/services/orchestration/pubsub/pubsub-message-map.js.map +1 -0
- package/dist/services/orchestration/webhook/handleCommandMessageWebhook.js +6 -6
- package/dist/services/orchestration/webhook/handleCommandMessageWebhook.js.map +1 -1
- package/dist/services/orchestration/worker/handleCommandMessageWorker.js +8 -8
- package/dist/services/orchestration/worker/handleCommandMessageWorker.js.map +1 -1
- package/dist/services/orchestration/worker/types.d.ts +1 -1
- package/dist/services/orchestration.service.d.ts +1 -1
- package/dist/services/orchestration.service.js +2 -2
- package/dist/services/ownership.service.d.ts +3 -3
- package/dist/services/ownership.service.js +4 -4
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.d.ts +7 -7
- package/dist/services/project.service.js +13 -13
- package/dist/services/project.service.js.map +1 -1
- package/dist/services/pruning.service.d.ts +1 -1
- package/dist/services/pruning.service.js +4 -4
- package/dist/services/pruning.service.js.map +1 -1
- package/dist/services/redis/RedisServiceBaseClasses.d.ts +1 -1
- package/dist/services/redis/RedisServiceBaseClasses.js +2 -2
- package/dist/services/redis/redis-client.service.d.ts +2 -2
- package/dist/services/redis/redis-client.service.js +2 -2
- package/dist/services/redis/redis-client.service.js.map +1 -1
- package/dist/services/role.service.d.ts +5 -5
- package/dist/services/role.service.js +2 -2
- package/dist/services/tag.service.d.ts +2 -2
- package/dist/services/tag.service.js +4 -4
- package/dist/services/tag.service.js.map +1 -1
- package/dist/services/user.service.d.ts +2 -2
- package/dist/services/user.service.js +3 -3
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/userOnboarding.service.d.ts +1 -1
- package/dist/services/userOnboarding.service.js +2 -2
- package/dist/services/userOnboarding.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +2 -2
- package/dist/services/workflow-statistics.service.js +5 -5
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/shutdown/shutdown.service.d.ts +26 -0
- package/dist/shutdown/shutdown.service.js +93 -0
- package/dist/shutdown/shutdown.service.js.map +1 -0
- package/dist/sso/saml/middleware/saml-enabled-middleware.js +23 -0
- package/dist/sso/saml/middleware/saml-enabled-middleware.js.map +1 -0
- package/dist/sso/saml/routes/saml.controller.ee.d.ts +2 -2
- package/dist/sso/saml/routes/saml.controller.ee.js +23 -23
- package/dist/sso/saml/routes/saml.controller.ee.js.map +1 -1
- package/dist/sso/saml/saml-helpers.d.ts +22 -0
- package/dist/sso/saml/saml-helpers.js +144 -0
- package/dist/sso/saml/saml-helpers.js.map +1 -0
- package/dist/sso/saml/saml-validator.js +156 -0
- package/dist/sso/saml/saml-validator.js.map +1 -0
- package/dist/sso/saml/saml.service.ee.d.ts +3 -3
- package/dist/sso/saml/saml.service.ee.js +19 -19
- package/dist/sso/saml/saml.service.ee.js.map +1 -1
- package/dist/sso/saml/service-provider.ee.d.ts +6 -0
- package/dist/sso/saml/service-provider.ee.js +45 -0
- package/dist/sso/saml/service-provider.ee.js.map +1 -0
- package/dist/sso/saml/types/requests.d.ts +1 -1
- package/dist/sso/saml/types/saml-attribute-mapping.js +3 -0
- package/dist/sso/saml/types/saml-attribute-mapping.js.map +1 -0
- package/dist/sso/saml/types/saml-preferences.d.ts +18 -0
- package/dist/sso/saml/types/saml-preferences.js +98 -0
- package/dist/sso/saml/types/saml-preferences.js.map +1 -0
- package/dist/sso/saml/types/saml-user-attributes.js +3 -0
- package/dist/sso/saml/types/saml-user-attributes.js.map +1 -0
- package/dist/sso/saml/views/init-sso-post.js +17 -0
- package/dist/sso/saml/views/init-sso-post.js.map +1 -0
- package/dist/sso/saml/views/saml-connection-test-failed.d.ts +2 -0
- package/dist/sso/saml/views/saml-connection-test-failed.js +40 -0
- package/dist/sso/saml/views/saml-connection-test-failed.js.map +1 -0
- package/dist/sso/saml/views/saml-connection-test-success.d.ts +2 -0
- package/dist/sso/saml/views/saml-connection-test-success.js +36 -0
- package/dist/sso/saml/views/saml-connection-test-success.js.map +1 -0
- package/dist/sso/sso-helpers.d.ts +8 -0
- package/dist/sso/sso-helpers.js +42 -0
- package/dist/sso/sso-helpers.js.map +1 -0
- package/dist/subworkflows/subworkflow-policy-checker.service.d.ts +2 -2
- package/dist/subworkflows/subworkflow-policy-checker.service.js +4 -4
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +11 -11
- package/dist/telemetry/index.js.map +1 -1
- package/dist/user-management/email/Interfaces.js.map +1 -0
- package/dist/user-management/email/index.d.ts +2 -0
- package/dist/user-management/email/index.js +6 -0
- package/dist/user-management/email/index.js.map +1 -0
- package/dist/user-management/email/node-mailer.d.ts +10 -0
- package/dist/user-management/email/node-mailer.js +72 -0
- package/dist/user-management/email/node-mailer.js.map +1 -0
- package/dist/user-management/email/user-management-mailer.d.ts +34 -0
- package/dist/user-management/email/user-management-mailer.js +162 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -0
- package/dist/user-management/permission-checker.d.ts +12 -0
- package/dist/user-management/permission-checker.js +67 -0
- package/dist/user-management/permission-checker.js.map +1 -0
- package/dist/wait-tracker.d.ts +22 -0
- package/dist/wait-tracker.js +124 -0
- package/dist/wait-tracker.js.map +1 -0
- package/dist/waiting-forms.d.ts +7 -0
- package/dist/waiting-forms.js +30 -0
- package/dist/waiting-forms.js.map +1 -0
- package/dist/webhooks/live-webhooks.d.ts +20 -0
- package/dist/webhooks/live-webhooks.js +142 -0
- package/dist/webhooks/live-webhooks.js.map +1 -0
- package/dist/webhooks/test-webhooks.d.ts +26 -0
- package/dist/webhooks/test-webhooks.js +294 -0
- package/dist/webhooks/test-webhooks.js.map +1 -0
- package/dist/webhooks/waiting-webhooks.d.ts +16 -0
- package/dist/webhooks/waiting-webhooks.js +122 -0
- package/dist/webhooks/waiting-webhooks.js.map +1 -0
- package/dist/webhooks/webhook-helpers.js +496 -0
- package/dist/webhooks/webhook-helpers.js.map +1 -0
- package/dist/webhooks/webhook-request-handler.js +108 -0
- package/dist/webhooks/webhook-request-handler.js.map +1 -0
- package/dist/webhooks/webhook-server.d.ts +4 -0
- package/dist/webhooks/webhook-server.js +25 -0
- package/dist/webhooks/webhook-server.js.map +1 -0
- package/dist/webhooks/webhook.service.d.ts +1 -1
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +766 -0
- package/dist/workflow-execute-additional-data.js.map +1 -0
- package/dist/workflow-helpers.d.ts +9 -0
- package/dist/workflow-helpers.js +186 -0
- package/dist/workflow-helpers.js.map +1 -0
- package/dist/workflow-runner.d.ts +27 -0
- package/dist/workflow-runner.js +376 -0
- package/dist/workflow-runner.js.map +1 -0
- package/dist/workflows/workflow-execution.service.d.ts +35 -0
- package/dist/workflows/workflow-execution.service.js +269 -0
- package/dist/workflows/workflow-execution.service.js.map +1 -0
- package/dist/workflows/workflow-history/constants.js.map +1 -0
- package/dist/workflows/workflow-history/workflow-history-helper.ee.js +34 -0
- package/dist/workflows/workflow-history/workflow-history-helper.ee.js.map +1 -0
- package/dist/workflows/workflow-history/workflow-history-manager.ee.d.ts +9 -0
- package/dist/workflows/workflow-history/workflow-history-manager.ee.js +51 -0
- package/dist/workflows/workflow-history/workflow-history-manager.ee.js.map +1 -0
- package/dist/workflows/workflow-history/workflow-history.controller.ee.d.ts +11 -0
- package/dist/workflows/workflow-history/workflow-history.controller.ee.js +97 -0
- package/dist/workflows/workflow-history/workflow-history.controller.ee.js.map +1 -0
- package/dist/workflows/workflow-history/workflow-history.service.ee.d.ts +15 -0
- package/dist/workflows/workflow-history/workflow-history.service.ee.js +85 -0
- package/dist/workflows/workflow-history/workflow-history.service.ee.js.map +1 -0
- package/dist/workflows/workflow-sharing.service.d.ts +22 -0
- package/dist/workflows/workflow-sharing.service.js +71 -0
- package/dist/workflows/workflow-sharing.service.js.map +1 -0
- package/dist/workflows/workflow-static-data.service.d.ts +13 -0
- package/dist/workflows/workflow-static-data.service.js +71 -0
- package/dist/workflows/workflow-static-data.service.js.map +1 -0
- package/dist/workflows/workflow.service.d.ts +8 -8
- package/dist/workflows/workflow.service.ee.d.ts +6 -6
- package/dist/workflows/workflow.service.ee.js +11 -11
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +22 -22
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +25 -25
- package/dist/workflows/workflows.controller.js +26 -26
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/dist/workflows/workflows.types.d.ts +2 -2
- package/package.json +8 -8
- package/dist/AbstractServer.d.ts +0 -35
- package/dist/AbstractServer.js +0 -215
- package/dist/AbstractServer.js.map +0 -1
- package/dist/ActivationErrors.service.js +0 -47
- package/dist/ActivationErrors.service.js.map +0 -1
- package/dist/ActiveExecutions.d.ts +0 -28
- package/dist/ActiveExecutions.js +0 -184
- package/dist/ActiveExecutions.js.map +0 -1
- package/dist/ActiveWorkflowManager.d.ts +0 -63
- package/dist/ActiveWorkflowManager.js +0 -505
- package/dist/ActiveWorkflowManager.js.map +0 -1
- package/dist/CrashJournal.js +0 -40
- package/dist/CrashJournal.js.map +0 -1
- package/dist/CredentialTypes.d.ts +0 -11
- package/dist/CredentialTypes.js +0 -64
- package/dist/CredentialTypes.js.map +0 -1
- package/dist/CredentialsHelper.d.ts +0 -28
- package/dist/CredentialsHelper.js +0 -281
- package/dist/CredentialsHelper.js.map +0 -1
- package/dist/CredentialsOverwrites.d.ts +0 -17
- package/dist/CredentialsOverwrites.js +0 -95
- package/dist/CredentialsOverwrites.js.map +0 -1
- package/dist/ErrorReporting.js +0 -110
- package/dist/ErrorReporting.js.map +0 -1
- package/dist/ExpressionEvaluator.js +0 -21
- package/dist/ExpressionEvaluator.js.map +0 -1
- package/dist/ExternalHooks.js +0 -94
- package/dist/ExternalHooks.js.map +0 -1
- package/dist/ExternalSecrets/ExternalSecrets.controller.ee.d.ts +0 -28
- package/dist/ExternalSecrets/ExternalSecrets.controller.ee.js +0 -158
- package/dist/ExternalSecrets/ExternalSecrets.controller.ee.js.map +0 -1
- package/dist/ExternalSecrets/ExternalSecrets.service.ee.js +0 -149
- package/dist/ExternalSecrets/ExternalSecrets.service.ee.js.map +0 -1
- package/dist/ExternalSecrets/ExternalSecretsManager.ee.d.ts +0 -60
- package/dist/ExternalSecrets/ExternalSecretsManager.ee.js +0 -366
- package/dist/ExternalSecrets/ExternalSecretsManager.ee.js.map +0 -1
- package/dist/ExternalSecrets/ExternalSecretsProviders.ee.js +0 -41
- package/dist/ExternalSecrets/ExternalSecretsProviders.ee.js.map +0 -1
- package/dist/ExternalSecrets/constants.js.map +0 -1
- package/dist/ExternalSecrets/externalSecretsHelper.ee.js +0 -19
- package/dist/ExternalSecrets/externalSecretsHelper.ee.js.map +0 -1
- package/dist/ExternalSecrets/providers/aws-secrets/aws-secrets-client.js.map +0 -1
- package/dist/ExternalSecrets/providers/aws-secrets/aws-secrets-manager.js +0 -105
- package/dist/ExternalSecrets/providers/aws-secrets/aws-secrets-manager.js.map +0 -1
- package/dist/ExternalSecrets/providers/aws-secrets/types.js.map +0 -1
- package/dist/ExternalSecrets/providers/azure-key-vault/azure-key-vault.js +0 -115
- package/dist/ExternalSecrets/providers/azure-key-vault/azure-key-vault.js.map +0 -1
- package/dist/ExternalSecrets/providers/azure-key-vault/types.js.map +0 -1
- package/dist/ExternalSecrets/providers/gcp-secrets-manager/gcp-secrets-manager.js +0 -112
- package/dist/ExternalSecrets/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +0 -1
- package/dist/ExternalSecrets/providers/gcp-secrets-manager/types.js.map +0 -1
- package/dist/ExternalSecrets/providers/infisical.js.map +0 -1
- package/dist/ExternalSecrets/providers/vault.d.ts +0 -31
- package/dist/ExternalSecrets/providers/vault.js +0 -423
- package/dist/ExternalSecrets/providers/vault.js.map +0 -1
- package/dist/GenericHelpers.d.ts +0 -8
- package/dist/GenericHelpers.js +0 -22
- package/dist/GenericHelpers.js.map +0 -1
- package/dist/InternalHooks.d.ts +0 -8
- package/dist/InternalHooks.js +0 -31
- package/dist/InternalHooks.js.map +0 -1
- package/dist/Ldap/constants.js.map +0 -1
- package/dist/Ldap/helpers.ee.d.ts +0 -31
- package/dist/Ldap/helpers.ee.js +0 -244
- package/dist/Ldap/helpers.ee.js.map +0 -1
- package/dist/Ldap/ldap.controller.ee.d.ts +0 -13
- package/dist/Ldap/ldap.controller.ee.js.map +0 -1
- package/dist/Ldap/ldap.service.ee.d.ts +0 -36
- package/dist/Ldap/ldap.service.ee.js +0 -295
- package/dist/Ldap/ldap.service.ee.js.map +0 -1
- package/dist/Ldap/types.d.ts +0 -34
- package/dist/Ldap/types.js.map +0 -1
- package/dist/License.d.ts +0 -70
- package/dist/License.js +0 -343
- package/dist/License.js.map +0 -1
- package/dist/LoadNodesAndCredentials.d.ts +0 -209
- package/dist/LoadNodesAndCredentials.js +0 -272
- package/dist/LoadNodesAndCredentials.js.map +0 -1
- package/dist/Logger.d.ts +0 -10
- package/dist/Logger.js +0 -98
- package/dist/Logger.js.map +0 -1
- package/dist/Mfa/constants.js.map +0 -1
- package/dist/Mfa/helpers.js.map +0 -1
- package/dist/Mfa/mfa.service.d.ts +0 -23
- package/dist/Mfa/mfa.service.js +0 -96
- package/dist/Mfa/mfa.service.js.map +0 -1
- package/dist/Mfa/totp.service.js.map +0 -1
- package/dist/NodeTypes.d.ts +0 -23
- package/dist/NodeTypes.js +0 -94
- package/dist/NodeTypes.js.map +0 -1
- package/dist/ResponseHelper.js +0 -121
- package/dist/ResponseHelper.js.map +0 -1
- package/dist/SecretsHelpers.d.ts +0 -13
- package/dist/SecretsHelpers.js +0 -53
- package/dist/SecretsHelpers.js.map +0 -1
- package/dist/Server.d.ts +0 -47
- package/dist/Server.js +0 -312
- package/dist/Server.js.map +0 -1
- package/dist/UserManagement/PermissionChecker.d.ts +0 -12
- package/dist/UserManagement/PermissionChecker.js +0 -67
- package/dist/UserManagement/PermissionChecker.js.map +0 -1
- package/dist/UserManagement/email/Interfaces.js.map +0 -1
- package/dist/UserManagement/email/NodeMailer.d.ts +0 -10
- package/dist/UserManagement/email/NodeMailer.js +0 -72
- package/dist/UserManagement/email/NodeMailer.js.map +0 -1
- package/dist/UserManagement/email/UserManagementMailer.d.ts +0 -34
- package/dist/UserManagement/email/UserManagementMailer.js +0 -162
- package/dist/UserManagement/email/UserManagementMailer.js.map +0 -1
- package/dist/UserManagement/email/index.d.ts +0 -2
- package/dist/UserManagement/email/index.js +0 -6
- package/dist/UserManagement/email/index.js.map +0 -1
- package/dist/WaitTracker.d.ts +0 -22
- package/dist/WaitTracker.js +0 -124
- package/dist/WaitTracker.js.map +0 -1
- package/dist/WaitingForms.d.ts +0 -7
- package/dist/WaitingForms.js +0 -30
- package/dist/WaitingForms.js.map +0 -1
- package/dist/WorkflowExecuteAdditionalData.js +0 -766
- package/dist/WorkflowExecuteAdditionalData.js.map +0 -1
- package/dist/WorkflowHelpers.d.ts +0 -9
- package/dist/WorkflowHelpers.js +0 -186
- package/dist/WorkflowHelpers.js.map +0 -1
- package/dist/WorkflowRunner.d.ts +0 -27
- package/dist/WorkflowRunner.js +0 -376
- package/dist/WorkflowRunner.js.map +0 -1
- package/dist/commands/BaseCommand.d.ts +0 -41
- package/dist/commands/BaseCommand.js +0 -258
- package/dist/commands/BaseCommand.js.map +0 -1
- package/dist/controllers/activeWorkflows.controller.js +0 -44
- package/dist/controllers/activeWorkflows.controller.js.map +0 -1
- package/dist/controllers/aiAssistant.controller.js +0 -64
- package/dist/controllers/aiAssistant.controller.js.map +0 -1
- package/dist/controllers/binaryData.controller.js +0 -73
- package/dist/controllers/binaryData.controller.js.map +0 -1
- package/dist/controllers/communityPackages.controller.d.ts +0 -19
- package/dist/controllers/communityPackages.controller.js +0 -251
- package/dist/controllers/communityPackages.controller.js.map +0 -1
- package/dist/controllers/dynamicNodeParameters.controller.js +0 -84
- package/dist/controllers/dynamicNodeParameters.controller.js.map +0 -1
- package/dist/controllers/nodeTypes.controller.d.ts +0 -8
- package/dist/controllers/nodeTypes.controller.js +0 -67
- package/dist/controllers/nodeTypes.controller.js.map +0 -1
- package/dist/controllers/oauth/abstractOAuth.controller.d.ts +0 -38
- package/dist/controllers/oauth/abstractOAuth.controller.js +0 -139
- package/dist/controllers/oauth/abstractOAuth.controller.js.map +0 -1
- package/dist/controllers/oauth/oAuth1Credential.controller.d.ts +0 -8
- package/dist/controllers/oauth/oAuth1Credential.controller.js +0 -152
- package/dist/controllers/oauth/oAuth1Credential.controller.js.map +0 -1
- package/dist/controllers/oauth/oAuth2Credential.controller.d.ts +0 -9
- package/dist/controllers/oauth/oAuth2Credential.controller.js +0 -196
- package/dist/controllers/oauth/oAuth2Credential.controller.js.map +0 -1
- package/dist/controllers/passwordReset.controller.d.ts +0 -30
- package/dist/controllers/passwordReset.controller.js +0 -201
- package/dist/controllers/passwordReset.controller.js.map +0 -1
- package/dist/controllers/userSettings.controller.js +0 -66
- package/dist/controllers/userSettings.controller.js.map +0 -1
- package/dist/controllers/workflowStatistics.controller.d.ts +0 -24
- package/dist/controllers/workflowStatistics.controller.js +0 -120
- package/dist/controllers/workflowStatistics.controller.js.map +0 -1
- package/dist/databases/entities/AbstractEntity.js +0 -78
- package/dist/databases/entities/AbstractEntity.js.map +0 -1
- package/dist/databases/entities/AuthIdentity.d.ts +0 -10
- package/dist/databases/entities/AuthIdentity.js +0 -48
- package/dist/databases/entities/AuthIdentity.js.map +0 -1
- package/dist/databases/entities/AuthProviderSyncHistory.d.ts +0 -16
- package/dist/databases/entities/AuthProviderSyncHistory.js +0 -65
- package/dist/databases/entities/AuthProviderSyncHistory.js.map +0 -1
- package/dist/databases/entities/AuthUser.js +0 -29
- package/dist/databases/entities/AuthUser.js.map +0 -1
- package/dist/databases/entities/CredentialsEntity.d.ts +0 -9
- package/dist/databases/entities/CredentialsEntity.js +0 -47
- package/dist/databases/entities/CredentialsEntity.js.map +0 -1
- package/dist/databases/entities/EventDestinations.d.ts +0 -6
- package/dist/databases/entities/EventDestinations.js +0 -29
- package/dist/databases/entities/EventDestinations.js.map +0 -1
- package/dist/databases/entities/ExecutionData.d.ts +0 -8
- package/dist/databases/entities/ExecutionData.js +0 -41
- package/dist/databases/entities/ExecutionData.js.map +0 -1
- package/dist/databases/entities/ExecutionEntity.d.ts +0 -21
- package/dist/databases/entities/ExecutionEntity.js +0 -86
- package/dist/databases/entities/ExecutionEntity.js.map +0 -1
- package/dist/databases/entities/ExecutionMetadata.d.ts +0 -8
- package/dist/databases/entities/ExecutionMetadata.js +0 -43
- package/dist/databases/entities/ExecutionMetadata.js.map +0 -1
- package/dist/databases/entities/InstalledNodes.d.ts +0 -7
- package/dist/databases/entities/InstalledNodes.js +0 -38
- package/dist/databases/entities/InstalledNodes.js.map +0 -1
- package/dist/databases/entities/InstalledPackages.d.ts +0 -9
- package/dist/databases/entities/InstalledPackages.js +0 -42
- package/dist/databases/entities/InstalledPackages.js.map +0 -1
- package/dist/databases/entities/Project.d.ts +0 -12
- package/dist/databases/entities/Project.js +0 -41
- package/dist/databases/entities/Project.js.map +0 -1
- package/dist/databases/entities/ProjectRelation.d.ts +0 -11
- package/dist/databases/entities/ProjectRelation.js +0 -43
- package/dist/databases/entities/ProjectRelation.js.map +0 -1
- package/dist/databases/entities/Settings.js +0 -32
- package/dist/databases/entities/Settings.js.map +0 -1
- package/dist/databases/entities/SharedCredentials.d.ts +0 -11
- package/dist/databases/entities/SharedCredentials.js +0 -43
- package/dist/databases/entities/SharedCredentials.js.map +0 -1
- package/dist/databases/entities/SharedWorkflow.d.ts +0 -11
- package/dist/databases/entities/SharedWorkflow.js +0 -43
- package/dist/databases/entities/SharedWorkflow.js.map +0 -1
- package/dist/databases/entities/TagEntity.d.ts +0 -8
- package/dist/databases/entities/TagEntity.js +0 -37
- package/dist/databases/entities/TagEntity.js.map +0 -1
- package/dist/databases/entities/WebhookEntity.js +0 -59
- package/dist/databases/entities/WebhookEntity.js.map +0 -1
- package/dist/databases/entities/WorkflowEntity.d.ts +0 -32
- package/dist/databases/entities/WorkflowEntity.js +0 -113
- package/dist/databases/entities/WorkflowEntity.js.map +0 -1
- package/dist/databases/entities/WorkflowHistory.d.ts +0 -12
- package/dist/databases/entities/WorkflowHistory.js +0 -48
- package/dist/databases/entities/WorkflowHistory.js.map +0 -1
- package/dist/databases/entities/WorkflowStatistics.d.ts +0 -15
- package/dist/databases/entities/WorkflowStatistics.js +0 -50
- package/dist/databases/entities/WorkflowStatistics.js.map +0 -1
- package/dist/databases/entities/WorkflowTagMapping.d.ts +0 -8
- package/dist/databases/entities/WorkflowTagMapping.js +0 -38
- package/dist/databases/entities/WorkflowTagMapping.js.map +0 -1
- package/dist/databases/repositories/authIdentity.repository.d.ts +0 -5
- package/dist/databases/repositories/authIdentity.repository.js +0 -26
- package/dist/databases/repositories/authIdentity.repository.js.map +0 -1
- package/dist/databases/repositories/authProviderSyncHistory.repository.d.ts +0 -5
- package/dist/databases/repositories/authProviderSyncHistory.repository.js +0 -26
- package/dist/databases/repositories/authProviderSyncHistory.repository.js.map +0 -1
- package/dist/databases/repositories/authUser.repository.d.ts +0 -5
- package/dist/databases/repositories/authUser.repository.js +0 -26
- package/dist/databases/repositories/authUser.repository.js.map +0 -1
- package/dist/databases/repositories/eventDestinations.repository.d.ts +0 -5
- package/dist/databases/repositories/eventDestinations.repository.js +0 -26
- package/dist/databases/repositories/eventDestinations.repository.js.map +0 -1
- package/dist/databases/repositories/executionData.repository.d.ts +0 -6
- package/dist/databases/repositories/executionData.repository.js +0 -34
- package/dist/databases/repositories/executionData.repository.js.map +0 -1
- package/dist/databases/repositories/executionMetadata.repository.d.ts +0 -5
- package/dist/databases/repositories/executionMetadata.repository.js +0 -26
- package/dist/databases/repositories/executionMetadata.repository.js.map +0 -1
- package/dist/databases/repositories/installedNodes.repository.d.ts +0 -5
- package/dist/databases/repositories/installedNodes.repository.js +0 -26
- package/dist/databases/repositories/installedNodes.repository.js.map +0 -1
- package/dist/databases/repositories/installedPackages.repository.d.ts +0 -9
- package/dist/databases/repositories/installedPackages.repository.js +0 -54
- package/dist/databases/repositories/installedPackages.repository.js.map +0 -1
- package/dist/databases/repositories/projectRelation.repository.d.ts +0 -14
- package/dist/databases/repositories/projectRelation.repository.js +0 -73
- package/dist/databases/repositories/projectRelation.repository.js.map +0 -1
- package/dist/databases/repositories/sharedCredentials.repository.d.ts +0 -26
- package/dist/databases/repositories/sharedCredentials.repository.js +0 -131
- package/dist/databases/repositories/sharedCredentials.repository.js.map +0 -1
- package/dist/databases/repositories/sharedWorkflow.repository.d.ts +0 -45
- package/dist/databases/repositories/sharedWorkflow.repository.js +0 -170
- package/dist/databases/repositories/sharedWorkflow.repository.js.map +0 -1
- package/dist/databases/repositories/workflowHistory.repository.d.ts +0 -6
- package/dist/databases/repositories/workflowHistory.repository.js +0 -29
- package/dist/databases/repositories/workflowHistory.repository.js.map +0 -1
- package/dist/databases/repositories/workflowStatistics.repository.d.ts +0 -14
- package/dist/databases/repositories/workflowStatistics.repository.js +0 -109
- package/dist/databases/repositories/workflowStatistics.repository.js.map +0 -1
- package/dist/databases/repositories/workflowTagMapping.repository.d.ts +0 -6
- package/dist/databases/repositories/workflowTagMapping.repository.js +0 -33
- package/dist/databases/repositories/workflowTagMapping.repository.js.map +0 -1
- package/dist/databases/subscribers/UserSubscriber.js +0 -64
- package/dist/databases/subscribers/UserSubscriber.js.map +0 -1
- package/dist/databases/utils/migrationHelpers.d.ts +0 -2
- package/dist/databases/utils/migrationHelpers.js +0 -182
- package/dist/databases/utils/migrationHelpers.js.map +0 -1
- package/dist/decorators/Licensed.js +0 -10
- package/dist/decorators/Licensed.js.map +0 -1
- package/dist/decorators/Middleware.js +0 -10
- package/dist/decorators/Middleware.js.map +0 -1
- package/dist/decorators/OnShutdown.js +0 -20
- package/dist/decorators/OnShutdown.js.map +0 -1
- package/dist/decorators/Redactable.js +0 -29
- package/dist/decorators/Redactable.js.map +0 -1
- package/dist/decorators/RestController.js +0 -12
- package/dist/decorators/RestController.js.map +0 -1
- package/dist/decorators/Route.js +0 -20
- package/dist/decorators/Route.js.map +0 -1
- package/dist/decorators/Scoped.js +0 -13
- package/dist/decorators/Scoped.js.map +0 -1
- package/dist/environments/sourceControl/constants.js.map +0 -1
- package/dist/environments/sourceControl/middleware/sourceControlEnabledMiddleware.ee.js +0 -34
- package/dist/environments/sourceControl/middleware/sourceControlEnabledMiddleware.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControl.controller.ee.d.ts +0 -53
- package/dist/environments/sourceControl/sourceControl.controller.ee.js +0 -282
- package/dist/environments/sourceControl/sourceControl.controller.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControl.service.ee.d.ts +0 -90
- package/dist/environments/sourceControl/sourceControl.service.ee.js +0 -565
- package/dist/environments/sourceControl/sourceControl.service.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControlExport.service.ee.d.ts +0 -25
- package/dist/environments/sourceControl/sourceControlExport.service.ee.js +0 -303
- package/dist/environments/sourceControl/sourceControlExport.service.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControlGit.service.ee.d.ts +0 -57
- package/dist/environments/sourceControl/sourceControlGit.service.ee.js +0 -344
- package/dist/environments/sourceControl/sourceControlGit.service.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControlHelper.ee.d.ts +0 -32
- package/dist/environments/sourceControl/sourceControlHelper.ee.js +0 -168
- package/dist/environments/sourceControl/sourceControlHelper.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControlImport.service.ee.d.ts +0 -58
- package/dist/environments/sourceControl/sourceControlImport.service.ee.js +0 -424
- package/dist/environments/sourceControl/sourceControlImport.service.ee.js.map +0 -1
- package/dist/environments/sourceControl/sourceControlPreferences.service.ee.d.ts +0 -33
- package/dist/environments/sourceControl/sourceControlPreferences.service.ee.js +0 -227
- package/dist/environments/sourceControl/sourceControlPreferences.service.ee.js.map +0 -1
- package/dist/environments/sourceControl/types/exportResult.js +0 -3
- package/dist/environments/sourceControl/types/exportResult.js.map +0 -1
- package/dist/environments/sourceControl/types/exportableCredential.d.ts +0 -9
- package/dist/environments/sourceControl/types/exportableCredential.js +0 -3
- package/dist/environments/sourceControl/types/exportableCredential.js.map +0 -1
- package/dist/environments/sourceControl/types/exportableWorkflow.d.ts +0 -12
- package/dist/environments/sourceControl/types/exportableWorkflow.js +0 -3
- package/dist/environments/sourceControl/types/exportableWorkflow.js.map +0 -1
- package/dist/environments/sourceControl/types/importResult.d.ts +0 -21
- package/dist/environments/sourceControl/types/importResult.js +0 -3
- package/dist/environments/sourceControl/types/importResult.js.map +0 -1
- package/dist/environments/sourceControl/types/keyPair.js +0 -3
- package/dist/environments/sourceControl/types/keyPair.js.map +0 -1
- package/dist/environments/sourceControl/types/keyPairType.js +0 -3
- package/dist/environments/sourceControl/types/keyPairType.js.map +0 -1
- package/dist/environments/sourceControl/types/requests.d.ts +0 -25
- package/dist/environments/sourceControl/types/requests.js.map +0 -1
- package/dist/environments/sourceControl/types/resourceOwner.js +0 -3
- package/dist/environments/sourceControl/types/resourceOwner.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlCommit.js +0 -21
- package/dist/environments/sourceControl/types/sourceControlCommit.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlDisconnect.js +0 -22
- package/dist/environments/sourceControl/types/sourceControlDisconnect.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlGenerateKeyPair.d.ts +0 -4
- package/dist/environments/sourceControl/types/sourceControlGenerateKeyPair.js +0 -22
- package/dist/environments/sourceControl/types/sourceControlGenerateKeyPair.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlGetStatus.js +0 -43
- package/dist/environments/sourceControl/types/sourceControlGetStatus.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlPreferences.d.ts +0 -14
- package/dist/environments/sourceControl/types/sourceControlPreferences.js +0 -71
- package/dist/environments/sourceControl/types/sourceControlPreferences.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlPullWorkFolder.js +0 -43
- package/dist/environments/sourceControl/types/sourceControlPullWorkFolder.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlPush.js +0 -22
- package/dist/environments/sourceControl/types/sourceControlPush.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlPushWorkFolder.d.ts +0 -7
- package/dist/environments/sourceControl/types/sourceControlPushWorkFolder.js +0 -36
- package/dist/environments/sourceControl/types/sourceControlPushWorkFolder.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlSetBranch.js +0 -21
- package/dist/environments/sourceControl/types/sourceControlSetBranch.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlSetReadOnly.js +0 -21
- package/dist/environments/sourceControl/types/sourceControlSetReadOnly.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlStage.js +0 -32
- package/dist/environments/sourceControl/types/sourceControlStage.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlWorkflowVersionId.js +0 -3
- package/dist/environments/sourceControl/types/sourceControlWorkflowVersionId.js.map +0 -1
- package/dist/environments/sourceControl/types/sourceControlledFile.js +0 -3
- package/dist/environments/sourceControl/types/sourceControlledFile.js.map +0 -1
- package/dist/environments/variables/environmentHelpers.js +0 -27
- package/dist/environments/variables/environmentHelpers.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/AbstractEventMessage.d.ts +0 -24
- package/dist/eventbus/EventMessageClasses/AbstractEventMessage.js +0 -110
- package/dist/eventbus/EventMessageClasses/AbstractEventMessage.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/AbstractEventMessageOptions.d.ts +0 -13
- package/dist/eventbus/EventMessageClasses/AbstractEventMessageOptions.js +0 -3
- package/dist/eventbus/EventMessageClasses/AbstractEventMessageOptions.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/AbstractEventPayload.js +0 -3
- package/dist/eventbus/EventMessageClasses/AbstractEventPayload.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageAiNode.d.ts +0 -25
- package/dist/eventbus/EventMessageClasses/EventMessageAiNode.js +0 -29
- package/dist/eventbus/EventMessageClasses/EventMessageAiNode.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageAudit.d.ts +0 -30
- package/dist/eventbus/EventMessageClasses/EventMessageAudit.js +0 -29
- package/dist/eventbus/EventMessageClasses/EventMessageAudit.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageConfirm.js +0 -31
- package/dist/eventbus/EventMessageClasses/EventMessageConfirm.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageExecution.d.ts +0 -21
- package/dist/eventbus/EventMessageClasses/EventMessageExecution.js +0 -29
- package/dist/eventbus/EventMessageClasses/EventMessageExecution.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageGeneric.d.ts +0 -19
- package/dist/eventbus/EventMessageClasses/EventMessageGeneric.js +0 -30
- package/dist/eventbus/EventMessageClasses/EventMessageGeneric.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageNode.d.ts +0 -26
- package/dist/eventbus/EventMessageClasses/EventMessageNode.js +0 -29
- package/dist/eventbus/EventMessageClasses/EventMessageNode.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/EventMessageWorkflow.d.ts +0 -25
- package/dist/eventbus/EventMessageClasses/EventMessageWorkflow.js +0 -29
- package/dist/eventbus/EventMessageClasses/EventMessageWorkflow.js.map +0 -1
- package/dist/eventbus/EventMessageClasses/index.d.ts +0 -20
- package/dist/eventbus/EventMessageClasses/index.js.map +0 -1
- package/dist/eventbus/MessageEventBus/MessageEventBus.d.ts +0 -74
- package/dist/eventbus/MessageEventBus/MessageEventBus.js +0 -318
- package/dist/eventbus/MessageEventBus/MessageEventBus.js.map +0 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestination.ee.d.ts +0 -32
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestination.ee.js +0 -94
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestination.ee.js.map +0 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationFromDb.d.ts +0 -4
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationFromDb.js +0 -25
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationFromDb.js.map +0 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSentry.ee.d.ts +0 -17
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSentry.ee.js +0 -125
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSentry.ee.js.map +0 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSyslog.ee.d.ts +0 -21
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSyslog.ee.js +0 -115
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSyslog.ee.js.map +0 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationWebhook.ee.d.ts +0 -33
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationWebhook.ee.js +0 -327
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationWebhook.ee.js.map +0 -1
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.d.ts +0 -57
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.js +0 -306
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.js.map +0 -1
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.js +0 -128
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.js.map +0 -1
- package/dist/executionLifecycleHooks/restoreBinaryDataId.js +0 -47
- package/dist/executionLifecycleHooks/restoreBinaryDataId.js.map +0 -1
- package/dist/executionLifecycleHooks/saveExecutionProgress.js +0 -66
- package/dist/executionLifecycleHooks/saveExecutionProgress.js.map +0 -1
- package/dist/executionLifecycleHooks/shared/sharedHookFunctions.js +0 -92
- package/dist/executionLifecycleHooks/shared/sharedHookFunctions.js.map +0 -1
- package/dist/executionLifecycleHooks/toSaveSettings.js +0 -31
- package/dist/executionLifecycleHooks/toSaveSettings.js.map +0 -1
- package/dist/middlewares/bodyParser.js +0 -83
- package/dist/middlewares/bodyParser.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/base.filter.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/base.select.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/credentials.filter.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/credentials.select.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/pagination.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/user.filter.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/user.select.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/workflow.filter.dto.js.map +0 -1
- package/dist/middlewares/listQuery/dtos/workflow.select.dto.js.map +0 -1
- package/dist/middlewares/listQuery/filter.js +0 -61
- package/dist/middlewares/listQuery/filter.js.map +0 -1
- package/dist/middlewares/listQuery/index.js.map +0 -1
- package/dist/middlewares/listQuery/pagination.js +0 -48
- package/dist/middlewares/listQuery/pagination.js.map +0 -1
- package/dist/middlewares/listQuery/select.js +0 -61
- package/dist/middlewares/listQuery/select.js.map +0 -1
- package/dist/permissions/checkAccess.js +0 -64
- package/dist/permissions/checkAccess.js.map +0 -1
- package/dist/scaling/types.d.ts +0 -41
- package/dist/scaling/types.js +0 -3
- package/dist/scaling/types.js.map +0 -1
- package/dist/security-audit/SecurityAudit.service.js +0 -86
- package/dist/security-audit/SecurityAudit.service.js.map +0 -1
- package/dist/security-audit/risk-reporters/CredentialsRiskReporter.d.ts +0 -16
- package/dist/security-audit/risk-reporters/CredentialsRiskReporter.js +0 -133
- package/dist/security-audit/risk-reporters/CredentialsRiskReporter.js.map +0 -1
- package/dist/security-audit/risk-reporters/DatabaseRiskReporter.d.ts +0 -6
- package/dist/security-audit/risk-reporters/DatabaseRiskReporter.js +0 -97
- package/dist/security-audit/risk-reporters/DatabaseRiskReporter.js.map +0 -1
- package/dist/security-audit/risk-reporters/FilesystemRiskReporter.d.ts +0 -5
- package/dist/security-audit/risk-reporters/FilesystemRiskReporter.js +0 -41
- package/dist/security-audit/risk-reporters/FilesystemRiskReporter.js.map +0 -1
- package/dist/security-audit/risk-reporters/InstanceRiskReporter.d.ts +0 -19
- package/dist/security-audit/risk-reporters/InstanceRiskReporter.js +0 -173
- package/dist/security-audit/risk-reporters/InstanceRiskReporter.js.map +0 -1
- package/dist/security-audit/risk-reporters/NodesRiskReporter.d.ts +0 -14
- package/dist/security-audit/risk-reporters/NodesRiskReporter.js +0 -138
- package/dist/security-audit/risk-reporters/NodesRiskReporter.js.map +0 -1
- package/dist/shutdown/Shutdown.service.d.ts +0 -26
- package/dist/shutdown/Shutdown.service.js +0 -93
- package/dist/shutdown/Shutdown.service.js.map +0 -1
- package/dist/sso/saml/middleware/samlEnabledMiddleware.js +0 -23
- package/dist/sso/saml/middleware/samlEnabledMiddleware.js.map +0 -1
- package/dist/sso/saml/samlHelpers.d.ts +0 -22
- package/dist/sso/saml/samlHelpers.js +0 -144
- package/dist/sso/saml/samlHelpers.js.map +0 -1
- package/dist/sso/saml/samlValidator.js +0 -156
- package/dist/sso/saml/samlValidator.js.map +0 -1
- package/dist/sso/saml/serviceProvider.ee.d.ts +0 -6
- package/dist/sso/saml/serviceProvider.ee.js +0 -45
- package/dist/sso/saml/serviceProvider.ee.js.map +0 -1
- package/dist/sso/saml/types/samlAttributeMapping.js +0 -3
- package/dist/sso/saml/types/samlAttributeMapping.js.map +0 -1
- package/dist/sso/saml/types/samlPreferences.d.ts +0 -18
- package/dist/sso/saml/types/samlPreferences.js +0 -98
- package/dist/sso/saml/types/samlPreferences.js.map +0 -1
- package/dist/sso/saml/types/samlUserAttributes.js +0 -3
- package/dist/sso/saml/types/samlUserAttributes.js.map +0 -1
- package/dist/sso/saml/views/initSsoPost.js +0 -17
- package/dist/sso/saml/views/initSsoPost.js.map +0 -1
- package/dist/sso/saml/views/samlConnectionTestFailed.d.ts +0 -2
- package/dist/sso/saml/views/samlConnectionTestFailed.js +0 -40
- package/dist/sso/saml/views/samlConnectionTestFailed.js.map +0 -1
- package/dist/sso/saml/views/samlConnectionTestSuccess.d.ts +0 -2
- package/dist/sso/saml/views/samlConnectionTestSuccess.js +0 -36
- package/dist/sso/saml/views/samlConnectionTestSuccess.js.map +0 -1
- package/dist/sso/ssoHelpers.d.ts +0 -8
- package/dist/sso/ssoHelpers.js +0 -42
- package/dist/sso/ssoHelpers.js.map +0 -1
- package/dist/webhooks/LiveWebhooks.d.ts +0 -20
- package/dist/webhooks/LiveWebhooks.js +0 -142
- package/dist/webhooks/LiveWebhooks.js.map +0 -1
- package/dist/webhooks/TestWebhooks.d.ts +0 -26
- package/dist/webhooks/TestWebhooks.js +0 -294
- package/dist/webhooks/TestWebhooks.js.map +0 -1
- package/dist/webhooks/WaitingWebhooks.d.ts +0 -16
- package/dist/webhooks/WaitingWebhooks.js +0 -122
- package/dist/webhooks/WaitingWebhooks.js.map +0 -1
- package/dist/webhooks/WebhookHelpers.js +0 -496
- package/dist/webhooks/WebhookHelpers.js.map +0 -1
- package/dist/webhooks/WebhookRequestHandler.js +0 -108
- package/dist/webhooks/WebhookRequestHandler.js.map +0 -1
- package/dist/webhooks/WebhookServer.d.ts +0 -4
- package/dist/webhooks/WebhookServer.js +0 -25
- package/dist/webhooks/WebhookServer.js.map +0 -1
- package/dist/workflows/workflowExecution.service.d.ts +0 -35
- package/dist/workflows/workflowExecution.service.js +0 -269
- package/dist/workflows/workflowExecution.service.js.map +0 -1
- package/dist/workflows/workflowHistory/constants.js.map +0 -1
- package/dist/workflows/workflowHistory/workflowHistory.controller.ee.d.ts +0 -11
- package/dist/workflows/workflowHistory/workflowHistory.controller.ee.js +0 -97
- package/dist/workflows/workflowHistory/workflowHistory.controller.ee.js.map +0 -1
- package/dist/workflows/workflowHistory/workflowHistory.service.ee.d.ts +0 -15
- package/dist/workflows/workflowHistory/workflowHistory.service.ee.js +0 -85
- package/dist/workflows/workflowHistory/workflowHistory.service.ee.js.map +0 -1
- package/dist/workflows/workflowHistory/workflowHistoryHelper.ee.js +0 -34
- package/dist/workflows/workflowHistory/workflowHistoryHelper.ee.js.map +0 -1
- package/dist/workflows/workflowHistory/workflowHistoryManager.ee.d.ts +0 -9
- package/dist/workflows/workflowHistory/workflowHistoryManager.ee.js +0 -51
- package/dist/workflows/workflowHistory/workflowHistoryManager.ee.js.map +0 -1
- package/dist/workflows/workflowSharing.service.d.ts +0 -22
- package/dist/workflows/workflowSharing.service.js +0 -71
- package/dist/workflows/workflowSharing.service.js.map +0 -1
- package/dist/workflows/workflowStaticData.service.d.ts +0 -13
- package/dist/workflows/workflowStaticData.service.js +0 -71
- package/dist/workflows/workflowStaticData.service.js.map +0 -1
- /package/dist/{ActivationErrors.service.d.ts → activation-errors.service.d.ts} +0 -0
- /package/dist/controllers/{activeWorkflows.controller.d.ts → active-workflows.controller.d.ts} +0 -0
- /package/dist/controllers/{aiAssistant.controller.d.ts → ai-assistant.controller.d.ts} +0 -0
- /package/dist/controllers/{binaryData.controller.d.ts → binary-data.controller.d.ts} +0 -0
- /package/dist/controllers/{dynamicNodeParameters.controller.d.ts → dynamic-node-parameters.controller.d.ts} +0 -0
- /package/dist/controllers/{userSettings.controller.d.ts → user-settings.controller.d.ts} +0 -0
- /package/dist/{CrashJournal.d.ts → crash-journal.d.ts} +0 -0
- /package/dist/databases/entities/{AbstractEntity.d.ts → abstract-entity.d.ts} +0 -0
- /package/dist/databases/entities/{AuthUser.d.ts → auth-user.d.ts} +0 -0
- /package/dist/databases/entities/{Settings.d.ts → settings.d.ts} +0 -0
- /package/dist/databases/entities/{WebhookEntity.d.ts → webhook-entity.d.ts} +0 -0
- /package/dist/databases/subscribers/{UserSubscriber.d.ts → user-subscriber.d.ts} +0 -0
- /package/dist/decorators/{Licensed.d.ts → licensed.d.ts} +0 -0
- /package/dist/decorators/{Middleware.d.ts → middleware.d.ts} +0 -0
- /package/dist/decorators/{OnShutdown.d.ts → on-shutdown.d.ts} +0 -0
- /package/dist/decorators/{Redactable.d.ts → redactable.d.ts} +0 -0
- /package/dist/decorators/{RestController.d.ts → rest-controller.d.ts} +0 -0
- /package/dist/decorators/{Route.d.ts → route.d.ts} +0 -0
- /package/dist/decorators/{Scoped.d.ts → scoped.d.ts} +0 -0
- /package/dist/environments/{sourceControl → source-control}/constants.d.ts +0 -0
- /package/dist/environments/{sourceControl → source-control}/constants.js +0 -0
- /package/dist/environments/{sourceControl/middleware/sourceControlEnabledMiddleware.ee.d.ts → source-control/middleware/source-control-enabled-middleware.ee.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/exportResult.d.ts → source-control/types/export-result.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/keyPairType.d.ts → source-control/types/key-pair-type.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/keyPair.d.ts → source-control/types/key-pair.d.ts} +0 -0
- /package/dist/environments/{sourceControl → source-control}/types/requests.js +0 -0
- /package/dist/environments/{sourceControl/types/resourceOwner.d.ts → source-control/types/resource-owner.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlCommit.d.ts → source-control/types/source-control-commit.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlDisconnect.d.ts → source-control/types/source-control-disconnect.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlGetStatus.d.ts → source-control/types/source-control-get-status.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlPullWorkFolder.d.ts → source-control/types/source-control-pull-work-folder.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlPush.d.ts → source-control/types/source-control-push.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlSetBranch.d.ts → source-control/types/source-control-set-branch.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlSetReadOnly.d.ts → source-control/types/source-control-set-read-only.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlStage.d.ts → source-control/types/source-control-stage.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlWorkflowVersionId.d.ts → source-control/types/source-control-workflow-version-id.d.ts} +0 -0
- /package/dist/environments/{sourceControl/types/sourceControlledFile.d.ts → source-control/types/source-controlled-file.d.ts} +0 -0
- /package/dist/environments/variables/{environmentHelpers.d.ts → environment-helpers.d.ts} +0 -0
- /package/dist/{ErrorReporting.d.ts → error-reporting.d.ts} +0 -0
- /package/dist/eventbus/{EventMessageClasses/AbstractEventPayload.d.ts → event-message-classes/abstract-event-payload.d.ts} +0 -0
- /package/dist/eventbus/{EventMessageClasses/EventMessageConfirm.d.ts → event-message-classes/event-message-confirm.d.ts} +0 -0
- /package/dist/eventbus/{EventMessageClasses → event-message-classes}/index.js +0 -0
- /package/dist/eventbus/{MessageEventBusWriter/MessageEventBusLogWriterWorker.d.ts → message-event-bus-writer/message-event-bus-log-writer-worker.d.ts} +0 -0
- /package/dist/{executionLifecycleHooks/restoreBinaryDataId.d.ts → execution-lifecycle-hooks/restore-binary-data-id.d.ts} +0 -0
- /package/dist/{executionLifecycleHooks/saveExecutionProgress.d.ts → execution-lifecycle-hooks/save-execution-progress.d.ts} +0 -0
- /package/dist/{executionLifecycleHooks/shared/sharedHookFunctions.d.ts → execution-lifecycle-hooks/shared/shared-hook-functions.d.ts} +0 -0
- /package/dist/{executionLifecycleHooks/toSaveSettings.d.ts → execution-lifecycle-hooks/to-save-settings.d.ts} +0 -0
- /package/dist/{ExpressionEvaluator.d.ts → expression-evaluator.d.ts} +0 -0
- /package/dist/{ExternalHooks.d.ts → external-hooks.d.ts} +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/constants.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/constants.js +0 -0
- /package/dist/{ExternalSecrets/externalSecretsHelper.ee.d.ts → external-secrets/external-secrets-helper.ee.d.ts} +0 -0
- /package/dist/{ExternalSecrets/ExternalSecretsProviders.ee.d.ts → external-secrets/external-secrets-providers.ee.d.ts} +0 -0
- /package/dist/{ExternalSecrets/ExternalSecrets.service.ee.d.ts → external-secrets/external-secrets.service.ee.d.ts} +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/aws-secrets/aws-secrets-client.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/aws-secrets/aws-secrets-client.js +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/aws-secrets/aws-secrets-manager.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/aws-secrets/types.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/aws-secrets/types.js +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/azure-key-vault/azure-key-vault.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/azure-key-vault/types.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/azure-key-vault/types.js +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/gcp-secrets-manager/gcp-secrets-manager.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/gcp-secrets-manager/types.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/gcp-secrets-manager/types.js +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/infisical.d.ts +0 -0
- /package/dist/{ExternalSecrets → external-secrets}/providers/infisical.js +0 -0
- /package/dist/{Ldap → ldap}/constants.d.ts +0 -0
- /package/dist/{Ldap → ldap}/constants.js +0 -0
- /package/dist/{Ldap → ldap}/ldap.controller.ee.js +0 -0
- /package/dist/{Ldap → ldap}/types.js +0 -0
- /package/dist/{Mfa → mfa}/constants.d.ts +0 -0
- /package/dist/{Mfa → mfa}/constants.js +0 -0
- /package/dist/{Mfa → mfa}/helpers.d.ts +0 -0
- /package/dist/{Mfa → mfa}/helpers.js +0 -0
- /package/dist/{Mfa → mfa}/totp.service.d.ts +0 -0
- /package/dist/{Mfa → mfa}/totp.service.js +0 -0
- /package/dist/middlewares/{bodyParser.d.ts → body-parser.d.ts} +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/base.filter.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/base.filter.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/base.select.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/base.select.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/credentials.filter.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/credentials.filter.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/credentials.select.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/credentials.select.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/pagination.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/pagination.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/user.filter.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/user.filter.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/user.select.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/user.select.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/workflow.filter.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/workflow.filter.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/workflow.select.dto.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/dtos/workflow.select.dto.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/filter.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/index.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/index.js +0 -0
- /package/dist/middlewares/{listQuery → list-query}/pagination.d.ts +0 -0
- /package/dist/middlewares/{listQuery → list-query}/select.d.ts +0 -0
- /package/dist/permissions/{checkAccess.d.ts → check-access.d.ts} +0 -0
- /package/dist/{ResponseHelper.d.ts → response-helper.d.ts} +0 -0
- /package/dist/security-audit/{SecurityAudit.service.d.ts → security-audit.service.d.ts} +0 -0
- /package/dist/sso/saml/middleware/{samlEnabledMiddleware.d.ts → saml-enabled-middleware.d.ts} +0 -0
- /package/dist/sso/saml/{samlValidator.d.ts → saml-validator.d.ts} +0 -0
- /package/dist/sso/saml/types/{samlAttributeMapping.d.ts → saml-attribute-mapping.d.ts} +0 -0
- /package/dist/sso/saml/types/{samlUserAttributes.d.ts → saml-user-attributes.d.ts} +0 -0
- /package/dist/sso/saml/views/{initSsoPost.d.ts → init-sso-post.d.ts} +0 -0
- /package/dist/{UserManagement → user-management}/email/Interfaces.d.ts +0 -0
- /package/dist/{UserManagement → user-management}/email/Interfaces.js +0 -0
- /package/dist/{UserManagement → user-management}/email/templates/credentialsShared.html +0 -0
- /package/dist/{UserManagement → user-management}/email/templates/instanceSetup.html +0 -0
- /package/dist/{UserManagement → user-management}/email/templates/invite.html +0 -0
- /package/dist/{UserManagement → user-management}/email/templates/passwordReset.html +0 -0
- /package/dist/{UserManagement → user-management}/email/templates/workflowShared.html +0 -0
- /package/dist/webhooks/{WebhookHelpers.d.ts → webhook-helpers.d.ts} +0 -0
- /package/dist/webhooks/{WebhookRequestHandler.d.ts → webhook-request-handler.d.ts} +0 -0
- /package/dist/{WorkflowExecuteAdditionalData.d.ts → workflow-execute-additional-data.d.ts} +0 -0
- /package/dist/workflows/{workflowHistory → workflow-history}/constants.d.ts +0 -0
- /package/dist/workflows/{workflowHistory → workflow-history}/constants.js +0 -0
- /package/dist/workflows/{workflowHistory/workflowHistoryHelper.ee.d.ts → workflow-history/workflow-history-helper.ee.d.ts} +0 -0
|
@@ -19,14 +19,18 @@ const prom_client_1 = __importDefault(require("prom-client"));
|
|
|
19
19
|
const parse_1 = __importDefault(require("semver/functions/parse"));
|
|
20
20
|
const typedi_1 = require("typedi");
|
|
21
21
|
const cache_service_1 = require("../services/cache/cache.service");
|
|
22
|
-
const
|
|
22
|
+
const message_event_bus_1 = require("../eventbus/message-event-bus/message-event-bus");
|
|
23
23
|
const config_1 = require("@n8n/config");
|
|
24
|
+
const event_service_1 = require("../events/event.service");
|
|
25
|
+
const config_2 = __importDefault(require("../config"));
|
|
24
26
|
let PrometheusMetricsService = class PrometheusMetricsService {
|
|
25
|
-
constructor(cacheService, eventBus, globalConfig) {
|
|
27
|
+
constructor(cacheService, eventBus, globalConfig, eventService) {
|
|
26
28
|
this.cacheService = cacheService;
|
|
27
29
|
this.eventBus = eventBus;
|
|
28
30
|
this.globalConfig = globalConfig;
|
|
31
|
+
this.eventService = eventService;
|
|
29
32
|
this.counters = {};
|
|
33
|
+
this.gauges = {};
|
|
30
34
|
this.prefix = this.globalConfig.endpoints.metrics.prefix;
|
|
31
35
|
this.includes = {
|
|
32
36
|
metrics: {
|
|
@@ -34,6 +38,7 @@ let PrometheusMetricsService = class PrometheusMetricsService {
|
|
|
34
38
|
routes: this.globalConfig.endpoints.metrics.includeApiEndpoints,
|
|
35
39
|
cache: this.globalConfig.endpoints.metrics.includeCacheMetrics,
|
|
36
40
|
logs: this.globalConfig.endpoints.metrics.includeMessageEventBusMetrics,
|
|
41
|
+
queue: this.globalConfig.endpoints.metrics.includeQueueMetrics,
|
|
37
42
|
},
|
|
38
43
|
labels: {
|
|
39
44
|
credentialsType: this.globalConfig.endpoints.metrics.includeCredentialTypeLabel,
|
|
@@ -52,6 +57,7 @@ let PrometheusMetricsService = class PrometheusMetricsService {
|
|
|
52
57
|
this.initCacheMetrics();
|
|
53
58
|
this.initEventBusMetrics();
|
|
54
59
|
this.initRouteMetrics(app);
|
|
60
|
+
this.initQueueMetrics();
|
|
55
61
|
this.mountMetricsEndpoint(app);
|
|
56
62
|
}
|
|
57
63
|
enableMetric(metric) {
|
|
@@ -179,6 +185,37 @@ let PrometheusMetricsService = class PrometheusMetricsService {
|
|
|
179
185
|
counter.inc(1);
|
|
180
186
|
});
|
|
181
187
|
}
|
|
188
|
+
initQueueMetrics() {
|
|
189
|
+
if (!this.includes.metrics.queue || config_2.default.getEnv('executions.mode') !== 'queue')
|
|
190
|
+
return;
|
|
191
|
+
this.gauges.waiting = new prom_client_1.default.Gauge({
|
|
192
|
+
name: this.prefix + 'scaling_mode_queue_jobs_waiting',
|
|
193
|
+
help: 'Current number of enqueued jobs waiting for pickup in scaling mode.',
|
|
194
|
+
});
|
|
195
|
+
this.gauges.active = new prom_client_1.default.Gauge({
|
|
196
|
+
name: this.prefix + 'scaling_mode_queue_jobs_active',
|
|
197
|
+
help: 'Current number of jobs being processed across all workers in scaling mode.',
|
|
198
|
+
});
|
|
199
|
+
this.counters.completed = new prom_client_1.default.Counter({
|
|
200
|
+
name: this.prefix + 'scaling_mode_queue_jobs_completed',
|
|
201
|
+
help: 'Total number of jobs completed across all workers in scaling mode since instance start.',
|
|
202
|
+
});
|
|
203
|
+
this.counters.failed = new prom_client_1.default.Counter({
|
|
204
|
+
name: this.prefix + 'scaling_mode_queue_jobs_failed',
|
|
205
|
+
help: 'Total number of jobs failed across all workers in scaling mode since instance start.',
|
|
206
|
+
});
|
|
207
|
+
this.gauges.waiting.set(0);
|
|
208
|
+
this.gauges.active.set(0);
|
|
209
|
+
this.counters.completed.inc(0);
|
|
210
|
+
this.counters.failed.inc(0);
|
|
211
|
+
this.eventService.on('job-counts-updated', (jobCounts) => {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
this.gauges.waiting.set(jobCounts.waiting);
|
|
214
|
+
this.gauges.active.set(jobCounts.active);
|
|
215
|
+
(_a = this.counters.completed) === null || _a === void 0 ? void 0 : _a.inc(jobCounts.completed);
|
|
216
|
+
(_b = this.counters.failed) === null || _b === void 0 ? void 0 : _b.inc(jobCounts.failed);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
182
219
|
toLabels(event) {
|
|
183
220
|
var _a, _b, _c, _d;
|
|
184
221
|
const { __type, eventName, payload } = event;
|
|
@@ -215,7 +252,8 @@ exports.PrometheusMetricsService = PrometheusMetricsService;
|
|
|
215
252
|
exports.PrometheusMetricsService = PrometheusMetricsService = __decorate([
|
|
216
253
|
(0, typedi_1.Service)(),
|
|
217
254
|
__metadata("design:paramtypes", [cache_service_1.CacheService,
|
|
218
|
-
|
|
219
|
-
config_1.GlobalConfig
|
|
255
|
+
message_event_bus_1.MessageEventBus,
|
|
256
|
+
config_1.GlobalConfig,
|
|
257
|
+
event_service_1.EventService])
|
|
220
258
|
], PrometheusMetricsService);
|
|
221
259
|
//# sourceMappingURL=prometheus-metrics.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prometheus-metrics.service.js","sourceRoot":"","sources":["../../src/metrics/prometheus-metrics.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0C;AAE1C,8EAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"prometheus-metrics.service.js","sourceRoot":"","sources":["../../src/metrics/prometheus-metrics.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0C;AAE1C,8EAA6C;AAC7C,8DAAmE;AACnE,mEAAiD;AACjD,mCAAiC;AAEjC,kEAA8D;AAC9D,sFAAiF;AAIjF,wCAA2C;AAC3C,0DAAsD;AACtD,sDAA8B;AAGvB,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACpC,YACkB,YAA0B,EAC1B,QAAyB,EACzB,YAA0B,EAC1B,YAA0B;QAH1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,aAAQ,GAAR,QAAQ,CAAiB;QACzB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAG3B,aAAQ,GAA8C,EAAE,CAAC;QAEzD,WAAM,GAAkC,EAAE,CAAC;QAE3C,WAAM,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;QAEpD,aAAQ,GAAa;YACrC,OAAO,EAAE;gBACR,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,qBAAqB;gBAClE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,mBAAmB;gBAC/D,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,mBAAmB;gBAC9D,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,6BAA6B;gBACvE,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,mBAAmB;aAC9D;YACD,MAAM,EAAE;gBACP,eAAe,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,OAA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,SAAS,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC;oBAChD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU;wBACrC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAA,OAAO,CAAC,UAAU,mCAAI,SAAS,EAAE;wBAClD,CAAC,CAAC,EAAE,CAAC;gBACP,CAAC;gBACD,MAAM;YAEP;gBACC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ;oBACnC,CAAC,CAAC;wBACA,SAAS,EAAE,CAAC,MAAA,OAAO,CAAC,QAAQ,mCAAI,SAAS,CAAC;6BACxC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;6BACzB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;qBACrB;oBACF,CAAC,CAAC,EAAE,CAAC;YAEP;gBACC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU;oBACrC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAA,OAAO,CAAC,UAAU,mCAAI,SAAS,EAAE;oBAClD,CAAC,CAAC,EAAE,CAAC;QACR,CAAC;QAED,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAA;AAzRY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,gBAAO,GAAE;qCAGuB,4BAAY;QAChB,mCAAe;QACX,qBAAY;QACZ,4BAAY;GALhC,wBAAwB,CAyRpC"}
|
package/dist/metrics/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MetricCategory = 'default' | 'routes' | 'cache' | 'logs';
|
|
1
|
+
export type MetricCategory = 'default' | 'routes' | 'cache' | 'logs' | 'queue';
|
|
2
2
|
export type MetricLabel = 'credentialsType' | 'nodeType' | 'workflowId' | 'apiPath' | 'apiMethod' | 'apiStatusCode';
|
|
3
3
|
export type Includes = {
|
|
4
4
|
metrics: Record<MetricCategory, boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/mfa/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/mfa/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA+B;AAC/B,sDAA8B;AAC9B,2CAAkD;AAClD,8EAA0E;AAEnE,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,gBAAM,CAAC,GAAG,CAAC,+BAAmB,CAAC,CAAC;AAA5D,QAAA,mBAAmB,uBAAyC;AAEzE,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,CAAC,IAAA,2BAAmB,GAAE,CAAC;AAE1D,MAAM,sBAAsB,GAAG,KAAK,IAAI,EAAE,CACzC,MAAM,gBAAS,CAAC,GAAG,CAAC,gCAAc,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;AAErE,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;IAC1C,IAAI,oBAAoB,EAAE,EAAE,CAAC;QAG5B,MAAM,KAAK,GAAG,MAAM,sBAAsB,EAAE,CAAC;QAC7C,IAAI,KAAK,EAAE,CAAC;YACX,gBAAM,CAAC,GAAG,CAAC,+BAAmB,EAAE,IAAI,CAAC,CAAC;QACvC,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AATW,QAAA,gBAAgB,oBAS3B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Cipher } from 'n8n-core';
|
|
2
|
+
import { AuthUserRepository } from '../databases/repositories/auth-user.repository';
|
|
3
|
+
import { TOTPService } from './totp.service';
|
|
4
|
+
export declare class MfaService {
|
|
5
|
+
private authUserRepository;
|
|
6
|
+
totp: TOTPService;
|
|
7
|
+
private cipher;
|
|
8
|
+
constructor(authUserRepository: AuthUserRepository, totp: TOTPService, cipher: Cipher);
|
|
9
|
+
generateRecoveryCodes(n?: number): string[];
|
|
10
|
+
saveSecretAndRecoveryCodes(userId: string, secret: string, recoveryCodes: string[]): Promise<void>;
|
|
11
|
+
encryptSecretAndRecoveryCodes(rawSecret: string, rawRecoveryCodes: string[]): {
|
|
12
|
+
encryptedRecoveryCodes: string[];
|
|
13
|
+
encryptedSecret: string;
|
|
14
|
+
};
|
|
15
|
+
private decryptSecretAndRecoveryCodes;
|
|
16
|
+
getSecretAndRecoveryCodes(userId: string): Promise<{
|
|
17
|
+
decryptedSecret: string;
|
|
18
|
+
decryptedRecoveryCodes: string[];
|
|
19
|
+
}>;
|
|
20
|
+
validateMfa(userId: string, mfaToken: string | undefined, mfaRecoveryCode: string | undefined): Promise<boolean>;
|
|
21
|
+
enableMfa(userId: string): Promise<import("../databases/entities/auth-user").AuthUser>;
|
|
22
|
+
disableMfa(userId: string, mfaToken: string): Promise<void>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.MfaService = void 0;
|
|
13
|
+
const uuid_1 = require("uuid");
|
|
14
|
+
const typedi_1 = require("typedi");
|
|
15
|
+
const n8n_core_1 = require("n8n-core");
|
|
16
|
+
const auth_user_repository_1 = require("../databases/repositories/auth-user.repository");
|
|
17
|
+
const totp_service_1 = require("./totp.service");
|
|
18
|
+
const invalid_mfa_code_error_1 = require("../errors/response-errors/invalid-mfa-code.error");
|
|
19
|
+
let MfaService = class MfaService {
|
|
20
|
+
constructor(authUserRepository, totp, cipher) {
|
|
21
|
+
this.authUserRepository = authUserRepository;
|
|
22
|
+
this.totp = totp;
|
|
23
|
+
this.cipher = cipher;
|
|
24
|
+
}
|
|
25
|
+
generateRecoveryCodes(n = 10) {
|
|
26
|
+
return Array.from(Array(n)).map(() => (0, uuid_1.v4)());
|
|
27
|
+
}
|
|
28
|
+
async saveSecretAndRecoveryCodes(userId, secret, recoveryCodes) {
|
|
29
|
+
const { encryptedSecret, encryptedRecoveryCodes } = this.encryptSecretAndRecoveryCodes(secret, recoveryCodes);
|
|
30
|
+
const user = await this.authUserRepository.findOneByOrFail({ id: userId });
|
|
31
|
+
user.mfaSecret = encryptedSecret;
|
|
32
|
+
user.mfaRecoveryCodes = encryptedRecoveryCodes;
|
|
33
|
+
await this.authUserRepository.save(user);
|
|
34
|
+
}
|
|
35
|
+
encryptSecretAndRecoveryCodes(rawSecret, rawRecoveryCodes) {
|
|
36
|
+
const encryptedSecret = this.cipher.encrypt(rawSecret), encryptedRecoveryCodes = rawRecoveryCodes.map((code) => this.cipher.encrypt(code));
|
|
37
|
+
return {
|
|
38
|
+
encryptedRecoveryCodes,
|
|
39
|
+
encryptedSecret,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
decryptSecretAndRecoveryCodes(mfaSecret, mfaRecoveryCodes) {
|
|
43
|
+
return {
|
|
44
|
+
decryptedSecret: this.cipher.decrypt(mfaSecret),
|
|
45
|
+
decryptedRecoveryCodes: mfaRecoveryCodes.map((code) => this.cipher.decrypt(code)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async getSecretAndRecoveryCodes(userId) {
|
|
49
|
+
const { mfaSecret, mfaRecoveryCodes } = await this.authUserRepository.findOneByOrFail({
|
|
50
|
+
id: userId,
|
|
51
|
+
});
|
|
52
|
+
return this.decryptSecretAndRecoveryCodes(mfaSecret !== null && mfaSecret !== void 0 ? mfaSecret : '', mfaRecoveryCodes !== null && mfaRecoveryCodes !== void 0 ? mfaRecoveryCodes : []);
|
|
53
|
+
}
|
|
54
|
+
async validateMfa(userId, mfaToken, mfaRecoveryCode) {
|
|
55
|
+
const user = await this.authUserRepository.findOneByOrFail({ id: userId });
|
|
56
|
+
if (mfaToken) {
|
|
57
|
+
const decryptedSecret = this.cipher.decrypt(user.mfaSecret);
|
|
58
|
+
return this.totp.verifySecret({ secret: decryptedSecret, token: mfaToken });
|
|
59
|
+
}
|
|
60
|
+
if (mfaRecoveryCode) {
|
|
61
|
+
const validCodes = user.mfaRecoveryCodes.map((code) => this.cipher.decrypt(code));
|
|
62
|
+
const index = validCodes.indexOf(mfaRecoveryCode);
|
|
63
|
+
if (index === -1)
|
|
64
|
+
return false;
|
|
65
|
+
validCodes.splice(index, 1);
|
|
66
|
+
user.mfaRecoveryCodes = validCodes.map((code) => this.cipher.encrypt(code));
|
|
67
|
+
await this.authUserRepository.save(user);
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
async enableMfa(userId) {
|
|
73
|
+
const user = await this.authUserRepository.findOneByOrFail({ id: userId });
|
|
74
|
+
user.mfaEnabled = true;
|
|
75
|
+
return await this.authUserRepository.save(user);
|
|
76
|
+
}
|
|
77
|
+
async disableMfa(userId, mfaToken) {
|
|
78
|
+
const isValidToken = await this.validateMfa(userId, mfaToken, undefined);
|
|
79
|
+
if (!isValidToken) {
|
|
80
|
+
throw new invalid_mfa_code_error_1.InvalidMfaCodeError();
|
|
81
|
+
}
|
|
82
|
+
await this.authUserRepository.update(userId, {
|
|
83
|
+
mfaEnabled: false,
|
|
84
|
+
mfaSecret: null,
|
|
85
|
+
mfaRecoveryCodes: [],
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
exports.MfaService = MfaService;
|
|
90
|
+
exports.MfaService = MfaService = __decorate([
|
|
91
|
+
(0, typedi_1.Service)(),
|
|
92
|
+
__metadata("design:paramtypes", [auth_user_repository_1.AuthUserRepository,
|
|
93
|
+
totp_service_1.TOTPService,
|
|
94
|
+
n8n_core_1.Cipher])
|
|
95
|
+
], MfaService);
|
|
96
|
+
//# sourceMappingURL=mfa.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mfa.service.js","sourceRoot":"","sources":["../../src/mfa/mfa.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+BAAkC;AAClC,mCAAiC;AACjC,uCAAkC;AAClC,wFAAmF;AACnF,iDAA6C;AAC7C,4FAAsF;AAG/E,IAAM,UAAU,GAAhB,MAAM,UAAU;IACtB,YACS,kBAAsC,EACvC,IAAiB,EAChB,MAAc;QAFd,uBAAkB,GAAlB,kBAAkB,CAAoB;QACvC,SAAI,GAAJ,IAAI,CAAa;QAChB,WAAM,GAAN,MAAM,CAAQ;IACpB,CAAC;IAEJ,qBAAqB,CAAC,CAAC,GAAG,EAAE;QAC3B,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAA,SAAI,GAAE,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,MAAc,EAAE,MAAc,EAAE,aAAuB;QACvF,MAAM,EAAE,eAAe,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAAC,6BAA6B,CACrF,MAAM,EACN,aAAa,CACb,CAAC;QAEF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAC3E,IAAI,CAA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,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI;YACtC,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,IAAI,CAAC;IACT,CAAC;IAED,YAAY,CAAC,MAAc;QAC1B,OAAO,iBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC;YAC5B,MAAM,EAAE,iBAAO,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC;SACzC,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;AAlCY,kCAAW;sBAAX,WAAW;IADvB,IAAA,gBAAO,GAAE;GACG,WAAW,CAkCvB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.bodyParser = exports.parseBody = exports.rawBodyReader = void 0;
|
|
7
|
+
const raw_body_1 = __importDefault(require("raw-body"));
|
|
8
|
+
const zlib_1 = require("zlib");
|
|
9
|
+
const querystring_1 = require("querystring");
|
|
10
|
+
const xml2js_1 = require("xml2js");
|
|
11
|
+
const n8n_core_1 = require("n8n-core");
|
|
12
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
13
|
+
const unprocessable_error_1 = require("../errors/response-errors/unprocessable.error");
|
|
14
|
+
const config_1 = require("@n8n/config");
|
|
15
|
+
const typedi_1 = __importDefault(require("typedi"));
|
|
16
|
+
const xmlParser = new xml2js_1.Parser({
|
|
17
|
+
async: true,
|
|
18
|
+
normalize: true,
|
|
19
|
+
normalizeTags: true,
|
|
20
|
+
explicitArray: false,
|
|
21
|
+
});
|
|
22
|
+
const payloadSizeMax = typedi_1.default.get(config_1.GlobalConfig).endpoints.payloadSizeMax;
|
|
23
|
+
const rawBodyReader = async (req, _res, next) => {
|
|
24
|
+
(0, n8n_core_1.parseIncomingMessage)(req);
|
|
25
|
+
req.readRawBody = async () => {
|
|
26
|
+
if (!req.rawBody) {
|
|
27
|
+
let stream = req;
|
|
28
|
+
let contentLength;
|
|
29
|
+
const contentEncoding = req.headers['content-encoding'];
|
|
30
|
+
switch (contentEncoding) {
|
|
31
|
+
case 'gzip':
|
|
32
|
+
stream = req.pipe((0, zlib_1.createGunzip)());
|
|
33
|
+
break;
|
|
34
|
+
case 'deflate':
|
|
35
|
+
stream = req.pipe((0, zlib_1.createInflate)());
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
contentLength = req.headers['content-length'];
|
|
39
|
+
}
|
|
40
|
+
req.rawBody = await (0, raw_body_1.default)(stream, {
|
|
41
|
+
length: contentLength,
|
|
42
|
+
limit: `${String(payloadSizeMax)}mb`,
|
|
43
|
+
});
|
|
44
|
+
req._body = true;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
next();
|
|
48
|
+
};
|
|
49
|
+
exports.rawBodyReader = rawBodyReader;
|
|
50
|
+
const parseBody = async (req) => {
|
|
51
|
+
await req.readRawBody();
|
|
52
|
+
const { rawBody, contentType, encoding } = req;
|
|
53
|
+
if (rawBody === null || rawBody === void 0 ? void 0 : rawBody.length) {
|
|
54
|
+
try {
|
|
55
|
+
if (contentType === 'application/json') {
|
|
56
|
+
req.body = (0, n8n_workflow_1.jsonParse)(rawBody.toString(encoding));
|
|
57
|
+
}
|
|
58
|
+
else if ((contentType === null || contentType === void 0 ? void 0 : contentType.endsWith('/xml')) || (contentType === null || contentType === void 0 ? void 0 : contentType.endsWith('+xml'))) {
|
|
59
|
+
req.body = await xmlParser.parseStringPromise(rawBody.toString(encoding));
|
|
60
|
+
}
|
|
61
|
+
else if (contentType === 'application/x-www-form-urlencoded') {
|
|
62
|
+
req.body = (0, querystring_1.parse)(rawBody.toString(encoding), undefined, undefined, {
|
|
63
|
+
maxKeys: 1000,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
else if (contentType === 'text/plain') {
|
|
67
|
+
req.body = rawBody.toString(encoding);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
throw new unprocessable_error_1.UnprocessableRequestError('Failed to parse request body', error.message);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.parseBody = parseBody;
|
|
76
|
+
const bodyParser = async (req, _res, next) => {
|
|
77
|
+
await (0, exports.parseBody)(req);
|
|
78
|
+
if (!req.body)
|
|
79
|
+
req.body = {};
|
|
80
|
+
next();
|
|
81
|
+
};
|
|
82
|
+
exports.bodyParser = bodyParser;
|
|
83
|
+
//# sourceMappingURL=body-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-parser.js","sourceRoot":"","sources":["../../src/middlewares/body-parser.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAkC;AAElC,+BAAmD;AAEnD,6CAAwD;AACxD,mCAA6C;AAC7C,uCAAgD;AAChD,+CAAyC;AACzC,sFAAyF;AACzF,wCAA2C;AAC3C,oDAA+B;AAE/B,MAAM,SAAS,GAAG,IAAI,eAAS,CAAC;IAC/B,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,KAAK;CACpB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,gBAAS,CAAC,GAAG,CAAC,qBAAY,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC;AACrE,MAAM,aAAa,GAAmB,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IACtE,IAAA,+BAAoB,EAAC,GAAG,CAAC,CAAC;IAE1B,GAAG,CAAC,WAAW,GAAG,KAAK,IAAI,EAAE;QAC5B,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,MAAM,GAAa,GAAG,CAAC;YAC3B,IAAI,aAAiC,CAAC;YACtC,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,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AAC;gBAE3E,GAAG,CAAC,IAAI,GAAG,MAAM,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC3E,CAAC;iBAAM,IAAI,WAAW,KAAK,mCAAmC,EAAE,CAAC;gBAChE,GAAG,CAAC,IAAI,GAAG,IAAA,mBAAgB,EAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE;oBAC7E,OAAO,EAAE,IAAI;iBACb,CAAC,CAAC;YACJ,CAAC;iBAAM,IAAI,WAAW,KAAK,YAAY,EAAE,CAAC;gBACzC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACvC,CAAC;QACF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,MAAM,IAAI,+CAAyB,CAAC,8BAA8B,EAAG,KAAe,CAAC,OAAO,CAAC,CAAC;QAC/F,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAtBW,QAAA,SAAS,aAsBpB;AAEK,MAAM,UAAU,GAAmB,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IACnE,MAAM,IAAA,iBAAS,EAAC,GAAG,CAAC,CAAC;IACrB,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;IAC7B,IAAI,EAAE,CAAC;AACR,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './body-parser';
|
|
2
2
|
export * from './cors';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './list-query';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./body-parser"), exports);
|
|
18
18
|
__exportStar(require("./cors"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./list-query"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.filter.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/base.filter.dto.ts"],"names":[],"mappings":";;;AAAA,mCAA0C;AAC1C,yDAAqE;AACrE,qDAA2C;AAC3C,+CAA2D;AAE3D,MAAa,UAAU;IACZ,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,MAAyB;QAC3E,MAAM,GAAG,GAAG,IAAA,wBAAS,EAAC,SAAS,EAAE,EAAE,YAAY,EAAE,6BAA6B,EAAE,CAAC,CAAC;QAElF,IAAI,CAAC,IAAA,uBAAe,EAAC,GAAG,CAAC;YAAE,MAAM,IAAI,+BAAgB,CAAC,kCAAkC,CAAC,CAAC;QAE1F,MAAM,QAAQ,GAAG,IAAA,mCAAe,EAAC,MAAM,EAAE,GAAG,EAAE;YAC7C,uBAAuB,EAAE,IAAI;SAC7B,CAAC,CAAC;QAEH,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC;QAE1B,OAAO,IAAA,mCAAe,EAAC,QAAQ,EAAE;YAChC,iBAAiB,EAAE,KAAK;SACxB,CAAC,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,QAAQ;QACrB,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,IAAI,CAAC,CAAC;QAEpC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,IAAI,+BAAgB,CAAC,uCAAuC,CAAC,CAAC;IAC5F,CAAC;CACD;AAtBD,gCAsBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.select.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/base.select.dto.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AACxC,+CAA2D;AAE3D,MAAa,UAAU;IAGZ,MAAM,CAAC,QAAQ,CAAC,SAAiB,EAAE,MAAyB;QACrE,MAAM,GAAG,GAAG,IAAA,wBAAS,EAAC,SAAS,EAAE,EAAE,YAAY,EAAE,6BAA6B,EAAE,CAAC,CAAC;QAElF,IAAI,CAAC,IAAA,qBAAa,EAAC,GAAG,CAAC;YAAE,MAAM,IAAI,+BAAgB,CAAC,qCAAqC,CAAC,CAAC;QAE3F,OAAO,GAAG,CAAC,MAAM,CAAuB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACtD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC;gBAAE,OAAO,GAAG,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC;QACjC,CAAC,EAAE,EAAE,CAAC,CAAC;IACR,CAAC;CACD;AAbD,gCAaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.filter.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/credentials.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,yDAA2C;AAC3C,uDAA+C;AAE/C,MAAa,iBAAkB,SAAQ,4BAAU;IAgBhD,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,SAAiB;QACxC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAC1D,CAAC;CACD;AAnBD,8CAmBC;AAfA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACK;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACK;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;oDACU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.select.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/credentials.select.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C,MAAa,iBAAkB,SAAQ,4BAAU;IAChD,MAAM,KAAK,gBAAgB;QAC1B,OAAO,IAAI,GAAG,CAAC;YACd,IAAI;YACJ,MAAM;YACN,MAAM;SACN,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,SAAiB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IACpD,CAAC;CACD;AAZD,8CAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/pagination.dto.ts"],"names":[],"mappings":";;;AAAA,mCAA0C;AAC1C,+CAAgD;AAEhD,MAAa,UAAU;IACtB,MAAM,CAAC,UAAU,CAAC,OAAe,EAAE,OAAe;QACjD,IAAI,CAAC,IAAA,uBAAe,EAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,+BAAgB,CAAC,yCAAyC,CAAC,CAAC;QACvE,CAAC;QAED,IAAI,CAAC,IAAA,uBAAe,EAAC,OAAO,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,+BAAgB,CAAC,yCAAyC,CAAC,CAAC;QACvE,CAAC;QAED,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAEpE,MAAM,kBAAkB,GAAG,EAAE,CAAC;QAE9B,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC;YACxC,IAAI;SACJ,CAAC;IACH,CAAC;CACD;AAnBD,gCAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.filter.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/user.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,yDAA2C;AAC3C,uDAA+C;AAE/C,MAAa,UAAW,SAAQ,4BAAU;IAqBzC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,SAAiB;QACxC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC;CACD;AAxBD,gCAwBC;AApBA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;yCACM;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;6CACU;AAKnB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;4CACS;AAKlB;IAHC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;2CACS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.select.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/user.select.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C,MAAa,UAAW,SAAQ,4BAAU;IACzC,MAAM,KAAK,gBAAgB;QAC1B,OAAO,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,SAAiB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;CACD;AARD,gCAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.filter.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/workflow.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,yDAA2C;AAE3C,uDAA+C;AAE/C,MAAa,cAAe,SAAQ,4BAAU;IAsB7C,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,SAAiB;QACxC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IACvD,CAAC;CACD;AAzBD,wCAyBC;AArBA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;4CACK;AAKd;IAHC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;8CACQ;AAMjB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;4CACO;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;iDACU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.select.dto.js","sourceRoot":"","sources":["../../../../src/middlewares/list-query/dtos/workflow.select.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA+C;AAE/C,MAAa,cAAe,SAAQ,4BAAU;IAC7C,MAAM,KAAK,gBAAgB;QAC1B,OAAO,IAAI,GAAG,CAAC;YACd,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,MAAM;YACN,WAAW;YACX,WAAW;YACX,WAAW;YACX,SAAS;SACT,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,SAAiB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IACjD,CAAC;CACD;AAjBD,wCAiBC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.filterListQueryMiddleware = void 0;
|
|
27
|
+
const ResponseHelper = __importStar(require("../../response-helper"));
|
|
28
|
+
const workflow_filter_dto_1 = require("./dtos/workflow.filter.dto");
|
|
29
|
+
const credentials_filter_dto_1 = require("./dtos/credentials.filter.dto");
|
|
30
|
+
const user_filter_dto_1 = require("./dtos/user.filter.dto");
|
|
31
|
+
const utils_1 = require("../../utils");
|
|
32
|
+
const filterListQueryMiddleware = async (req, res, next) => {
|
|
33
|
+
const { filter: rawFilter } = req.query;
|
|
34
|
+
if (!rawFilter)
|
|
35
|
+
return next();
|
|
36
|
+
let Filter;
|
|
37
|
+
if (req.baseUrl.endsWith('workflows')) {
|
|
38
|
+
Filter = workflow_filter_dto_1.WorkflowFilter;
|
|
39
|
+
}
|
|
40
|
+
else if (req.baseUrl.endsWith('credentials')) {
|
|
41
|
+
Filter = credentials_filter_dto_1.CredentialsFilter;
|
|
42
|
+
}
|
|
43
|
+
else if (req.baseUrl.endsWith('users')) {
|
|
44
|
+
Filter = user_filter_dto_1.UserFilter;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return next();
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const filter = await Filter.fromString(rawFilter);
|
|
51
|
+
if (Object.keys(filter).length === 0)
|
|
52
|
+
return next();
|
|
53
|
+
req.listQueryOptions = { ...req.listQueryOptions, filter };
|
|
54
|
+
next();
|
|
55
|
+
}
|
|
56
|
+
catch (maybeError) {
|
|
57
|
+
ResponseHelper.sendErrorResponse(res, (0, utils_1.toError)(maybeError));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.filterListQueryMiddleware = filterListQueryMiddleware;
|
|
61
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter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AC;IAC5D,CAAC;AACF,CAAC,CAAC;AAhCW,QAAA,yBAAyB,6BAgCpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/middlewares/list-query/index.ts"],"names":[],"mappings":";;;AAAA,qCAAqD;AACrD,qCAAqD;AACrD,6CAA6D;AAUhD,QAAA,mBAAmB,GAA0B;IACzD,kCAAyB;IACzB,kCAAyB;IACzB,0CAA6B;CAC7B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.paginationListQueryMiddleware = void 0;
|
|
27
|
+
const utils_1 = require("../../utils");
|
|
28
|
+
const ResponseHelper = __importStar(require("../../response-helper"));
|
|
29
|
+
const pagination_dto_1 = require("./dtos/pagination.dto");
|
|
30
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
31
|
+
const paginationListQueryMiddleware = (req, res, next) => {
|
|
32
|
+
const { take: rawTake, skip: rawSkip = '0' } = req.query;
|
|
33
|
+
try {
|
|
34
|
+
if (!rawTake && req.query.skip) {
|
|
35
|
+
throw new n8n_workflow_1.ApplicationError('Please specify `take` when using `skip`');
|
|
36
|
+
}
|
|
37
|
+
if (!rawTake)
|
|
38
|
+
return next();
|
|
39
|
+
const { take, skip } = pagination_dto_1.Pagination.fromString(rawTake, rawSkip);
|
|
40
|
+
req.listQueryOptions = { ...req.listQueryOptions, skip, take };
|
|
41
|
+
next();
|
|
42
|
+
}
|
|
43
|
+
catch (maybeError) {
|
|
44
|
+
ResponseHelper.sendErrorResponse(res, (0, utils_1.toError)(maybeError));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.paginationListQueryMiddleware = paginationListQueryMiddleware;
|
|
48
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/middlewares/list-query/pagination.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAkC;AAClC,kEAAoD;AACpD,0DAAmD;AAGnD,+CAAgD;AAEzC,MAAM,6BAA6B,GAAmB,CAC5D,GAAsB,EACtB,GAAG,EACH,IAAI,EACH,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAEzD,IAAI,CAAC;QACJ,IAAI,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YAChC,MAAM,IAAI,+BAAgB,CAAC,yCAAyC,CAAC,CAAC;QACvE,CAAC;QAED,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,EAAE,CAAC;QAE5B,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,2BAAU,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAE/D,GAAG,CAAC,gBAAgB,GAAG,EAAE,GAAG,GAAG,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAE/D,IAAI,EAAE,CAAC;IACR,CAAC;IAAC,OAAO,UAAU,EAAE,CAAC;QACrB,cAAc,CAAC,iBAAiB,CAAC,GAAG,EAAE,IAAA,eAAO,EAAC,UAAU,CAAC,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAtBW,QAAA,6BAA6B,iCAsBxC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.selectListQueryMiddleware = void 0;
|
|
27
|
+
const workflow_select_dto_1 = require("./dtos/workflow.select.dto");
|
|
28
|
+
const user_select_dto_1 = require("./dtos/user.select.dto");
|
|
29
|
+
const credentials_select_dto_1 = require("./dtos/credentials.select.dto");
|
|
30
|
+
const ResponseHelper = __importStar(require("../../response-helper"));
|
|
31
|
+
const utils_1 = require("../../utils");
|
|
32
|
+
const selectListQueryMiddleware = (req, res, next) => {
|
|
33
|
+
const { select: rawSelect } = req.query;
|
|
34
|
+
if (!rawSelect)
|
|
35
|
+
return next();
|
|
36
|
+
let Select;
|
|
37
|
+
if (req.baseUrl.endsWith('workflows')) {
|
|
38
|
+
Select = workflow_select_dto_1.WorkflowSelect;
|
|
39
|
+
}
|
|
40
|
+
else if (req.baseUrl.endsWith('credentials')) {
|
|
41
|
+
Select = credentials_select_dto_1.CredentialsSelect;
|
|
42
|
+
}
|
|
43
|
+
else if (req.baseUrl.endsWith('users')) {
|
|
44
|
+
Select = user_select_dto_1.UserSelect;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return next();
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const select = Select.fromString(rawSelect);
|
|
51
|
+
if (Object.keys(select).length === 0)
|
|
52
|
+
return next();
|
|
53
|
+
req.listQueryOptions = { ...req.listQueryOptions, select };
|
|
54
|
+
next();
|
|
55
|
+
}
|
|
56
|
+
catch (maybeError) {
|
|
57
|
+
ResponseHelper.sendErrorResponse(res, (0, utils_1.toError)(maybeError));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.selectListQueryMiddleware = selectListQueryMiddleware;
|
|
61
|
+
//# sourceMappingURL=select.js.map
|
|
@@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