src/issuer/credentials/dto/credential-config.dto.ts
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()
|
schema |
Type : SchemaResponse
|
Decorators :
@IsObject()
|
Optional vct |
Type : VCT
|
Decorators :
@IsObject()
|
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;
}