File

src/issuer/status-list/dto/status-update.dto.ts

Index

Properties

Properties

Optional credentialConfigurationId
Type : string
Decorators :
@IsString()
@IsOptional()

The ID of the credential configuration This is optional, if not provided, all credentials will be revoked of the session.

sessionId
Type : string
Decorators :
@IsString()

The session ID of the user

status
Type : number
Decorators :
@IsNumber()

The status of the credential 0 = valid, 1 = revoked, 2 = suspended

import { IsNumber, IsOptional, IsString } from "class-validator";

export class StatusUpdateDto {
    /**
     * The session ID of the user
     */
    @IsString()
    sessionId!: string;

    /**
     * The ID of the credential configuration
     * This is optional, if not provided, all credentials will be revoked of the session.
     */
    @IsString()
    @IsOptional()
    credentialConfigurationId?: string;

    /**
     * The status of the credential
     * 0 = valid, 1 = revoked, 2 = suspended
     */
    @IsNumber()
    status!: number;
}

results matching ""

    No results matching ""