diff --git a/packages/common/lib/types/Generic.types.ts b/packages/common/lib/types/Generic.types.ts index 5bbddbe6..398a4abc 100644 --- a/packages/common/lib/types/Generic.types.ts +++ b/packages/common/lib/types/Generic.types.ts @@ -21,17 +21,16 @@ export enum CredentialFormatEnum { export interface NameAndLocale { name?: string; locale?: string; + [key: string]: unknown; } -export type NameAndLocaleExtended = NameAndLocale & { [key: string]: unknown }; - export interface LogoAndColor { logo?: CredentialLogo; background_color?: string; text_color?: string; } -export type Display = NameAndLocaleExtended & LogoAndColor; +export type Display = NameAndLocale & LogoAndColor; export interface IssuerMetadata { credential_endpoint: string; @@ -40,7 +39,7 @@ export interface IssuerMetadata { credential_issuer: string; // REQUIRED. The URL of the Credential Issuer, the Wallet is requested to obtain one or more Credentials from. authorization_server?: string; token_endpoint?: string; - display?: NameAndLocaleExtended[]; + display?: Display[]; } export interface CredentialIssuerMetadataSupportedCredentials { @@ -163,7 +162,7 @@ export type IssuerCredentialSubjectDisplay = CredentialSubjectDisplay & Record