import type { FlowRunId } from '../../automation/flow-run/flow-run'; import type { FlowId } from '../../automation/flows/flow'; import type { FlowVersionId } from '../../automation/flows/flow-version'; import type { PlatformUsageMetric } from '../../management/platform'; import type { ProjectId } from '../../management/project'; import type { ProjectRole } from '../../management/project-role/project-role'; import type { UserId } from '../user'; import type { ApId } from './id-generator'; import type { Permission } from './security'; export declare class ActivepiecesError extends Error { error: ApErrorParams; constructor(error: ApErrorParams, message?: string); toString(): string; } export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExistingUserErrorParams | FlowOperationErrorParams | FlowOperationInProgressErrorParams | FlowRunRetryOutsideRetentionErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerUpdateStatusErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | AIProviderModelNotSupportedParams | AIProviderNotSupportedParams | AIRequestNotSupportedParams | AICreditLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | ProjectExternalIdAlreadyExistsParams | SandboxMemoryIssueParams | SandboxExecutionTimeoutParams | SandboxInternalErrorParams | InvalidCustomDomainErrorParams | McpPieceRequiresConnectionParams | McpPieceConnectionMismatchParams | ErrorUpdatingSubscriptionParams | TriggerExecutionFailedParams | SubflowFailedParams | MachineNotAvailableParams | MachineNotConnectedParams | DoesNotMeetBusinessRequirementsParams | PieceSyncNotSupportedErrorParams | SandboxLogSizeExceededParams | SecretManagerConnectionFailedParams | SecretManagerGetSecretFailedParams | SecretManagerKeyNotSecretParams | InvalidAIProviderCredentialsParams | FlowMigrationFailedParams | ResumeLogsFileMissingParams | ExecutionStateMissingParams | GenericErrorParams; export type TriggerExecutionFailedParams = BaseErrorParams; export type BaseErrorParams = { code: T; params: V; }; export type SandboxMemoryIssueParams = BaseErrorParams; export type SandboxExecutionTimeoutParams = BaseErrorParams; export type SandboxInternalErrorParams = BaseErrorParams; export type InvitationOnlySignUpParams = BaseErrorParams; export type InvalidClaimParams = BaseErrorParams; export type InvalidCloudClaimParams = BaseErrorParams; export type InvalidBearerTokenParams = BaseErrorParams; export type SessionExpiredParams = BaseErrorParams; export type NoChatResponseParams = BaseErrorParams>; export type EmailAuthIsDisabledParams = BaseErrorParams>; export type AuthorizationErrorParams = BaseErrorParams & { message?: string; }>; export type AICreditLimitExceededParams = BaseErrorParams; export type PermissionDeniedErrorParams = BaseErrorParams; export type SystemInvalidErrorParams = BaseErrorParams; export type FlowRunRetryOutsideRetentionErrorParams = BaseErrorParams; export type InvalidCredentialsErrorParams = BaseErrorParams; export type DomainIsNotAllowedErrorParams = BaseErrorParams; export type EmailIsNotVerifiedErrorParams = BaseErrorParams; export type UserIsInActiveErrorParams = BaseErrorParams; export type ExistingUserErrorParams = BaseErrorParams; export type TriggerFailedErrorParams = BaseErrorParams; export type JobRemovalFailureErrorParams = BaseErrorParams; export type SystemPropNotDefinedErrorParams = BaseErrorParams; export type OpenAiFailedErrorParams = BaseErrorParams>; export type FlowOperationErrorParams = BaseErrorParams; export type FlowOperationInProgressErrorParams = BaseErrorParams; export type InvalidJwtTokenErrorParams = BaseErrorParams; export type TestTriggerFailedErrorParams = BaseErrorParams; export type EntityNotFoundErrorParams = BaseErrorParams; }>; export type InvalidCustomDomainErrorParams = BaseErrorParams; export type PieceSyncNotSupportedErrorParams = BaseErrorParams; export type ValidationErrorParams = BaseErrorParams; export type TriggerUpdateStatusErrorParams = BaseErrorParams; export type PauseMetadataMissingErrorParams = BaseErrorParams>; export type InvalidApiKeyParams = BaseErrorParams>; export type EngineOperationFailureParams = BaseErrorParams; export type InvalidAppConnectionParams = BaseErrorParams; export type QuotaExceededParams = BaseErrorParams; export type ErrorUpdatingSubscriptionParams = BaseErrorParams; export type AIProviderModelNotSupportedParams = BaseErrorParams; export type AIProviderNotSupportedParams = BaseErrorParams; export type AIRequestNotSupportedParams = BaseErrorParams; export type FeatureDisabledErrorParams = BaseErrorParams; export type SignUpDisabledParams = BaseErrorParams>; export type AuthenticationParams = BaseErrorParams; export type InvalidSAMLResponseParams = BaseErrorParams; export type ExistingAlertChannelErrorParams = BaseErrorParams; export type InvalidOtpParams = BaseErrorParams>; export type InvalidLicenseKeyParams = BaseErrorParams; export type EmailAlreadyHasActivationKey = BaseErrorParams; export type InvalidSmtpCredentialsErrorParams = BaseErrorParams; export type InvalidGitCredentialsParams = BaseErrorParams; export type InvalidReleaseTypeParams = BaseErrorParams; export type ProjectExternalIdAlreadyExistsParams = BaseErrorParams; export type McpPieceRequiresConnectionParams = BaseErrorParams; export type McpPieceConnectionMismatchParams = BaseErrorParams; export type SubflowFailedParams = BaseErrorParams; export type MachineNotAvailableParams = BaseErrorParams; export type MachineNotConnectedParams = BaseErrorParams; export type DoesNotMeetBusinessRequirementsParams = BaseErrorParams; export type SandboxLogSizeExceededParams = BaseErrorParams; export type SecretManagerConnectionFailedParams = BaseErrorParams; export type SecretManagerGetSecretFailedParams = BaseErrorParams; }>; export type SecretManagerKeyNotSecretParams = BaseErrorParams; export type InvalidAIProviderCredentialsParams = BaseErrorParams; export type FlowMigrationFailedParams = BaseErrorParams; export type ResumeLogsFileMissingParams = BaseErrorParams; export type ExecutionStateMissingParams = BaseErrorParams; export type GenericErrorParams = BaseErrorParams; export declare enum ErrorCode { INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR", MACHINE_NOT_CONNECTED = "MACHINE_NOT_CONNECTED", MACHINE_NOT_AVAILABLE = "MACHINE_NOT_AVAILABLE", INVALID_CUSTOM_DOMAIN = "INVALID_CUSTOM_DOMAIN", NO_CHAT_RESPONSE = "NO_CHAT_RESPONSE", ERROR_UPDATING_SUBSCRIPTION = "ERROR_UPDATING_SUBSCRIPTION", AUTHENTICATION = "AUTHENTICATION", AUTHORIZATION = "AUTHORIZATION", AI_MODEL_NOT_SUPPORTED = "AI_MODEL_NOT_SUPPORTED", AI_PROVIDER_NOT_SUPPORTED = "AI_PROVIDER_NOT_SUPPORTED", AI_REQUEST_NOT_SUPPORTED = "AI_REQUEST_NOT_SUPPORTED", DOMAIN_NOT_ALLOWED = "DOMAIN_NOT_ALLOWED", EMAIL_IS_NOT_VERIFIED = "EMAIL_IS_NOT_VERIFIED", ENGINE_OPERATION_FAILURE = "ENGINE_OPERATION_FAILURE", ENTITY_NOT_FOUND = "ENTITY_NOT_FOUND", SANDBOX_EXECUTION_TIMEOUT = "SANDBOX_EXECUTION_TIMEOUT", SANDBOX_MEMORY_ISSUE = "SANDBOX_MEMORY_ISSUE", SANDBOX_INTERNAL_ERROR = "SANDBOX_INTERNAL_ERROR", TRIGGER_EXECUTION_FAILED = "TRIGGER_EXECUTION_FAILED", EMAIL_AUTH_DISABLED = "EMAIL_AUTH_DISABLED", EXISTING_USER = "EXISTING_USER", EXISTING_ALERT_CHANNEL = "EXISTING_ALERT_CHANNEL", PROJECT_EXTERNAL_ID_ALREADY_EXISTS = "PROJECT_EXTERNAL_ID_ALREADY_EXISTS", FLOW_OPERATION_INVALID = "FLOW_OPERATION_INVALID", FLOW_OPERATION_IN_PROGRESS = "FLOW_OPERATION_IN_PROGRESS", FLOW_RUN_RETRY_OUTSIDE_RETENTION = "FLOW_RUN_RETRY_OUTSIDE_RETENTION", INVALID_API_KEY = "INVALID_API_KEY", INVALID_APP_CONNECTION = "INVALID_APP_CONNECTION", INVALID_BEARER_TOKEN = "INVALID_BEARER_TOKEN", SESSION_EXPIRED = "SESSION_EXPIRED", INVALID_CLAIM = "INVALID_CLAIM", INVALID_CLOUD_CLAIM = "INVALID_CLOUD_CLAIM", INVALID_CREDENTIALS = "INVALID_CREDENTIALS", INVALID_OR_EXPIRED_JWT_TOKEN = "INVALID_OR_EXPIRED_JWT_TOKEN", INVALID_OTP = "INVALID_OTP", INVALID_SAML_RESPONSE = "INVALID_SAML_RESPONSE", INVITATION_ONLY_SIGN_UP = "INVITATION_ONLY_SIGN_UP", JOB_REMOVAL_FAILURE = "JOB_REMOVAL_FAILURE", OPEN_AI_FAILED = "OPEN_AI_FAILED", PAUSE_METADATA_MISSING = "PAUSE_METADATA_MISSING", PERMISSION_DENIED = "PERMISSION_DENIED", QUOTA_EXCEEDED = "QUOTA_EXCEEDED", FEATURE_DISABLED = "FEATURE_DISABLED", AI_CREDIT_LIMIT_EXCEEDED = "AI_CREDIT_LIMIT_EXCEEDED", SIGN_UP_DISABLED = "SIGN_UP_DISABLED", SYSTEM_PROP_INVALID = "SYSTEM_PROP_INVALID", SYSTEM_PROP_NOT_DEFINED = "SYSTEM_PROP_NOT_DEFINED", TEST_TRIGGER_FAILED = "TEST_TRIGGER_FAILED", TRIGGER_UPDATE_STATUS = "TRIGGER_UPDATE_STATUS", TRIGGER_FAILED = "TRIGGER_FAILED", USER_IS_INACTIVE = "USER_IS_INACTIVE", VALIDATION = "VALIDATION", INVALID_LICENSE_KEY = "INVALID_LICENSE_KEY", EMAIL_ALREADY_HAS_ACTIVATION_KEY = "EMAIL_ALREADY_HAS_ACTIVATION_KEY", INVALID_SMTP_CREDENTIALS = "INVALID_SMTP_CREDENTIALS", INVALID_GIT_CREDENTIALS = "INVALID_GIT_CREDENTIALS", INVALID_RELEASE_TYPE = "INVALID_RELEASE_TYPE", MCP_PIECE_REQUIRES_CONNECTION = "MCP_PIECE_REQUIRES_CONNECTION", MCP_PIECE_CONNECTION_MISMATCH = "MCP_PIECE_CONNECTION_MISMATCH", SUBFLOW_FAILED = "SUBFLOW_FAILED", DOES_NOT_MEET_BUSINESS_REQUIREMENTS = "DOES_NOT_MEET_BUSINESS_REQUIREMENTS", PIECE_SYNC_NOT_SUPPORTED = "PIECE_SYNC_NOT_SUPPORTED", SANDBOX_LOG_SIZE_EXCEEDED = "SANDBOX_LOG_SIZE_EXCEEDED", SECRET_MANAGER_CONNECTION_FAILED = "SECRET_MANAGER_CONNECTION_FAILED", SECRET_MANAGER_GET_SECRET_FAILED = "SECRET_MANAGER_GET_SECRET_FAILED", SECRET_MANAGER_KEY_NOT_SECRET = "SECRET_MANAGER_KEY_NOT_SECRET", INVALID_AI_PROVIDER_CREDENTIALS = "INVALID_AI_PROVIDER_CREDENTIALS", FLOW_MIGRATION_FAILED = "FLOW_MIGRATION_FAILED", RESUME_LOGS_FILE_MISSING = "RESUME_LOGS_FILE_MISSING", EXECUTION_STATE_MISSING = "EXECUTION_STATE_MISSING", GENERIC_ERROR = "GENERIC_ERROR" } //# sourceMappingURL=activepieces-error.d.ts.map