src/issuer/issuance/dto/issuance.dto.ts
DTO for Issuance Configuration.
Properties |
authenticationConfig |
Type : AuthenticationConfigDto
|
Decorators :
@IsObject()
|
Defined in src/issuer/issuance/dto/issuance.dto.ts:45
|
Authentication configuration for the issuance process. This includes details like the authentication method and any required parameters. |
credentialConfigs |
Type : CredentialConfigMapping[]
|
Decorators :
@IsArray()
|
Defined in src/issuer/issuance/dto/issuance.dto.ts:36
|
Ids of the credential configurations associated with this issuance configuration. |
id |
Type : string
|
Decorators :
@IsString()
|
Defined in src/issuer/issuance/dto/issuance.dto.ts:28
|
Unique identifier for the issuance configuration. |
Optional notifyWebhook |
Type : WebhookConfig
|
Decorators :
@IsObject()
|
Defined in src/issuer/issuance/dto/issuance.dto.ts:54
|
Optional webhook configuration to send the results of the notification response. |
import {
IsArray,
IsObject,
IsOptional,
IsString,
ValidateNested,
} from 'class-validator';
import { Type } from 'class-transformer';
import { AuthenticationConfigDto } from './authentication-config.dto';
import { WebhookConfig } from '../../../utils/webhook/webhook.dto';
export class CredentialConfigMapping {
@IsString()
id: string;
@IsString()
@IsOptional()
keyId?: string;
}
/**
* DTO for Issuance Configuration.
*/
export class IssuanceDto {
/**
* Unique identifier for the issuance configuration.
*/
@IsString()
id: string;
/**
* Ids of the credential configurations associated with this issuance configuration.
*/
@IsArray()
@ValidateNested({ each: true })
@Type(() => CredentialConfigMapping)
credentialConfigs: CredentialConfigMapping[];
/**
* Authentication configuration for the issuance process.
* This includes details like the authentication method and any required parameters.
*/
@IsObject()
@ValidateNested()
@Type(() => AuthenticationConfigDto)
authenticationConfig: AuthenticationConfigDto;
/**
* Optional webhook configuration to send the results of the notification response.
*/
@IsObject()
@IsOptional()
@ValidateNested()
@Type(() => WebhookConfig)
notifyWebhook?: WebhookConfig;
}