File

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

Index

Properties

Properties

claims
Type : Record<string | any>
Decorators :
@IsObject()
config
Type : CredentialConfigurationSupported
Decorators :
@IsObject()
disclosureFrame
Type : Record<string | any>
Decorators :
@IsObject()
id
Type : string
Decorators :
@IsString()
Optional presentation_during_issuance
Type : PresentationDuringIssuance
Decorators :
@IsObject()
@IsOptional()
schema
Type : SchemaResponse
Decorators :
@IsObject()
@IsOptional()
Optional vct
Type : VCT
Decorators :
@IsObject()
@IsOptional()
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 ""