no-hassle
Version:
Makes Node.js route handling easy with support for [Joi schema](https://github.com/hapijs/joi) validation and automatic Swagger generation based on these schema definitions. Uses Expressjs routing mechanism.
18 lines (17 loc) • 792 B
TypeScript
import { AuthenticationTypes, Security, SecurityDefinition } from '../../interfaces';
import { IOutputSecurityDefinitions } from './interfaces';
export declare const createBasicSecurityDefinition: (id: string) => {
[x: string]: {
type: AuthenticationTypes;
};
};
export declare const createApiKeySecurityDefinition: (id: string, header: string) => {
[x: string]: {
type: AuthenticationTypes;
name: string;
in: string;
};
};
export declare const validateSecurity: (security: Security, validSecurityIds: string[]) => void;
export declare const validateSecurityDefinitions: (securityDefinitions: SecurityDefinition[]) => void;
export declare const getSecurityDefinitions: (securityDefinitions: SecurityDefinition[]) => IOutputSecurityDefinitions;