Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 6x 6x 6x 6x 6x 6x 6x | import { IsBoolean, IsIn, IsOptional, IsString } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
export class UpdateToolHookDto {
@ApiPropertyOptional({
description: 'Name of the tool this hook attaches to',
example: 'overwrite_file',
})
@IsString()
@IsOptional()
tool_name?: string;
@ApiPropertyOptional({
description: 'When to execute the hook',
enum: ['before', 'after'],
})
@IsString()
@IsOptional()
@IsIn(['before', 'after'])
timing?: 'before' | 'after';
@ApiPropertyOptional({ description: 'Filename of the hook script' })
@IsString()
@IsOptional()
script_filename?: string;
@ApiPropertyOptional({ description: 'Whether the hook is active' })
@IsBoolean()
@IsOptional()
is_active?: boolean;
}
|