mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
* refactor: use consistent folder structure across workflow, core, and cli * setup typescript project references across workflow, core, and cli
40 lines
951 B
TypeScript
40 lines
951 B
TypeScript
import { Application } from 'express';
|
|
import { JwtFromRequestFunction } from 'passport-jwt';
|
|
import type { ActiveWorkflowRunner } from '@/ActiveWorkflowRunner';
|
|
import type { IExternalHooksClass, IPersonalizationSurveyAnswers } from '@/Interfaces';
|
|
|
|
export interface JwtToken {
|
|
token: string;
|
|
expiresIn: number;
|
|
}
|
|
|
|
export interface JwtOptions {
|
|
secretOrKey: string;
|
|
jwtFromRequest: JwtFromRequestFunction;
|
|
}
|
|
|
|
export interface JwtPayload {
|
|
id: string;
|
|
email: string | null;
|
|
password: string | null;
|
|
}
|
|
|
|
export interface PublicUser {
|
|
id: string;
|
|
email?: string;
|
|
firstName?: string;
|
|
lastName?: string;
|
|
personalizationAnswers?: IPersonalizationSurveyAnswers | null;
|
|
password?: string;
|
|
passwordResetToken?: string;
|
|
createdAt: Date;
|
|
isPending: boolean;
|
|
}
|
|
|
|
export interface N8nApp {
|
|
app: Application;
|
|
restEndpoint: string;
|
|
externalHooks: IExternalHooksClass;
|
|
defaultCredentialsName: string;
|
|
activeWorkflowRunner: ActiveWorkflowRunner;
|
|
}
|