Add zk and hotlink upload create DTOs with batch options.
Split item shapes, array caps from config, and password-protected zk item transform.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { IsNotEmpty } from 'class-validator';
|
||||
import { IsBase64 } from '../../../validation/decorators/isBase64';
|
||||
import { CreateUploadCiphertextItemDto } from './CreateUploadCiphertextItemDto';
|
||||
|
||||
export class CreateZkPasswordUploadItemDto extends CreateUploadCiphertextItemDto {
|
||||
@IsNotEmpty()
|
||||
@IsBase64()
|
||||
wrappedDek: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsBase64({ byteLength: 12 })
|
||||
wrapIv: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsBase64()
|
||||
salt: string;
|
||||
}
|
||||
Reference in New Issue
Block a user