import {
  IsNotEmpty,
  IsString,
  IsIn,
  Length,
} from 'class-validator';

export class RevokeShareDto {
  @IsNotEmpty()
  @IsString()
  userId: string;

  @IsNotEmpty()
  @IsString()
  @Length(66, 130)
  publicKey: string;

  @IsNotEmpty()
  @IsString()
  @IsIn(['ROTATION', 'ACCOUNT_CLOSED', 'SECURITY_BREACH', 'USER_REQUEST'])
  reason: string;
}
