File

src/issuer/credentials/dto/credential-config.dto.ts

Index

Properties

Properties

Optional description
Type : string
Decorators :
@IsString()
Optional extends
Type : string
Decorators :
@IsString()
Optional extends#integrity
Type : string
Decorators :
@IsString()
Optional name
Type : string
Decorators :
@IsString()
Optional schema_uri
Type : string
Decorators :
@IsString()
Optional schema_uri#integrity
Type : string
Decorators :
@IsString()
vct
Type : string
Decorators :
@IsString()
import { CredentialConfigurationSupported } from '@openid4vc/openid4vci';
import { IsObject, IsOptional, IsString } from 'class-validator';
import { SchemaResponse } from './schema-response.dto';
import { WebhookConfig } from 'src/utils/webhook.dto';

export class VCT {
    @IsString()
    vct: string;
    @IsString()
    name?: string;
    @IsString()
    description?: string;
    @IsString()
    extends?: string;
    @IsString()
    'extends#integrity'?: string;
    @IsString()
    schema_uri?: string;
    @IsString()
    'schema_uri#integrity'?: string;
}

export class PresentationDuringIssuance {
    @IsString()
    type: string;
    @IsObject()
    webhook?: WebhookConfig;
}
export class CredentialConfig {
    @IsString()
    id: string;
    @IsObject()
    config: CredentialConfigurationSupported;
    @IsObject()
    claims: Record<string, any>;
    @IsObject()
    disclosureFrame: Record<string, any>;
    @IsObject()
    @IsOptional()
    vct?: VCT;
    @IsObject()
    @IsOptional()
    presentation_during_issuance?: PresentationDuringIssuance;
    @IsObject()
    @IsOptional()
    schema: SchemaResponse;
}

results matching ""

    No results matching ""