src/storage/dto/stored-object-response.dto.ts
Properties |
| Optional contentType |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'MIME type of the stored object'})
|
| Optional etag |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'ETag for the stored object'})
|
| key |
Type : string
|
Decorators :
@ApiProperty({description: 'Canonical storage key'})
|
| Optional metadata |
Type : Record<string, string>
|
Decorators :
@ApiPropertyOptional({description: 'Object metadata', type: 'object', additionalProperties: undefined})
|
| Optional size |
Type : number
|
Decorators :
@ApiPropertyOptional({description: 'Stored size in bytes'})
|
| Optional url |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Public or presigned URL'})
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
export class StoredObjectResponseDto {
@ApiProperty({ description: "Canonical storage key" })
key!: string;
@ApiPropertyOptional({ description: "ETag for the stored object" })
etag?: string;
@ApiPropertyOptional({ description: "Stored size in bytes" })
size?: number;
@ApiPropertyOptional({ description: "Public or presigned URL" })
url?: string;
@ApiPropertyOptional({ description: "MIME type of the stored object" })
contentType?: string;
@ApiPropertyOptional({
description: "Object metadata",
type: "object",
additionalProperties: { type: "string" },
})
metadata?: Record<string, string>;
}