Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator';
import { ToStrictString } from '../../../common/utils/strict-boolean';
/**
* Body for POST /infra/storage/import. A class (not an inline object literal) so the global
* ValidationPipe's whitelist/forbidNonWhitelisted actually runs — rejecting a non-string or extra
* property before the handler's data-directory path check.
*/
export class ImportStorageDto {
@ApiProperty({ description: 'Path to the tar.gz file to import (must be inside the data directory)' })
@ToStrictString()
@IsString()
@IsNotEmpty()
filePath!: string;
}