src/crypto/key/dto/key-generate.dto.ts
DTO for generating a new key via the server.
Properties |
|
| Optional description |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Optional human-readable description for the key.'})
|
|
Defined in src/crypto/key/dto/key-generate.dto.ts:22
|
| Optional kmsProvider |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'KMS provider to use (defaults to the configured default provider).', example: 'vault'})
|
|
Defined in src/crypto/key/dto/key-generate.dto.ts:15
|
import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";
/**
* DTO for generating a new key via the server.
*/
export class KeyGenerateDto {
@ApiPropertyOptional({
description:
"KMS provider to use (defaults to the configured default provider).",
example: "vault",
})
@IsString()
@IsOptional()
kmsProvider?: string;
@ApiPropertyOptional({
description: "Optional human-readable description for the key.",
})
@IsString()
@IsOptional()
description?: string;
}