Add shared sessions, cached message history and transactional idempotency backed by PostgreSQL. Return readiness 503 during draining and finish in-flight requests before closing dependencies.
16 lines
309 B
TypeScript
16 lines
309 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { User } from '../User/user.schema';
|
|
|
|
export class Session {
|
|
token!: string;
|
|
|
|
@ApiProperty({ enum: ['Bearer'] })
|
|
token_type!: 'Bearer';
|
|
|
|
@ApiProperty({ format: 'date-time' })
|
|
expires_at!: string;
|
|
|
|
@ApiProperty({ type: User })
|
|
user!: User;
|
|
}
|