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:
2026-10-07 00:36:16 +02:00
parent fa36b27d1b
commit c762223200
6 changed files with 111 additions and 0 deletions
@@ -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;
}