diff --git a/lib/app/shared/helper_functions/helper_functions.dart b/lib/app/shared/helper_functions/helper_functions.dart index 4c2a2b937..740ec2128 100644 --- a/lib/app/shared/helper_functions/helper_functions.dart +++ b/lib/app/shared/helper_functions/helper_functions.dart @@ -1865,6 +1865,10 @@ List getPresentVCDetails({ /// jwt_vc_json presentJwtVcJson = format?.jwtVcJson != null || format?.jwtVpJson != null; + /// jwt_vc_json_ld + presentJwtVcJsonLd = + format?.jwtVcJsonLd != null || format?.jwtVpJson != null; + /// vc+sd-jwt presentVcSdJwt = format?.vcSdJwt != null; } else { diff --git a/packages/credential_manifest/lib/src/models/format.dart b/packages/credential_manifest/lib/src/models/format.dart index bc641def0..c99aa901a 100644 --- a/packages/credential_manifest/lib/src/models/format.dart +++ b/packages/credential_manifest/lib/src/models/format.dart @@ -13,6 +13,8 @@ class Format { this.ldpVp, this.ldpVc, this.vcSdJwt, + this.jwtVcJsonLd, + this.jwtVpJsonLd, }); factory Format.fromJson(Map json) => _$FormatFromJson(json); @@ -25,6 +27,10 @@ class Format { FormatType? jwtVpJson; @JsonKey(name: 'jwt_vc_json') FormatType? jwtVcJson; + @JsonKey(name: 'jwt_vp_json_ld') + FormatType? jwtVpJsonLd; + @JsonKey(name: 'jwt_vc_json_ld') + FormatType? jwtVcJsonLd; @JsonKey(name: 'ldp_vp') FormatType? ldpVp; @JsonKey(name: 'ldp_vc') diff --git a/packages/credential_manifest/lib/src/models/format.g.dart b/packages/credential_manifest/lib/src/models/format.g.dart index 37950209d..e73330157 100644 --- a/packages/credential_manifest/lib/src/models/format.g.dart +++ b/packages/credential_manifest/lib/src/models/format.g.dart @@ -28,6 +28,12 @@ Format _$FormatFromJson(Map json) => Format( vcSdJwt: json['vc+sd-jwt'] == null ? null : FormatType.fromJson(json['vc+sd-jwt'] as Map), + jwtVcJsonLd: json['jwt_vc_json_ld'] == null + ? null + : FormatType.fromJson(json['jwt_vc_json_ld'] as Map), + jwtVpJsonLd: json['jwt_vp_json_ld'] == null + ? null + : FormatType.fromJson(json['jwt_vp_json_ld'] as Map), ); Map _$FormatToJson(Format instance) => { @@ -35,6 +41,8 @@ Map _$FormatToJson(Format instance) => { 'jwt_vc': instance.jwtVc?.toJson(), 'jwt_vp_json': instance.jwtVpJson?.toJson(), 'jwt_vc_json': instance.jwtVcJson?.toJson(), + 'jwt_vp_json_ld': instance.jwtVpJsonLd?.toJson(), + 'jwt_vc_json_ld': instance.jwtVcJsonLd?.toJson(), 'ldp_vp': instance.ldpVp?.toJson(), 'ldp_vc': instance.ldpVc?.toJson(), 'vc+sd-jwt': instance.vcSdJwt?.toJson(), diff --git a/packages/oidc4vc/lib/src/models/openid_configuration.g.dart b/packages/oidc4vc/lib/src/models/openid_configuration.g.dart index 5c4212275..5149571e9 100644 --- a/packages/oidc4vc/lib/src/models/openid_configuration.g.dart +++ b/packages/oidc4vc/lib/src/models/openid_configuration.g.dart @@ -23,6 +23,9 @@ OpenIdConfiguration _$OpenIdConfigurationFromJson(Map json) => pushedAuthorizationRequestEndpoint: json['pushed_authorization_request_endpoint'] as String?, credentialIssuer: json['credential_issuer'] as String?, + display: (json['display'] as List?) + ?.map((e) => Display.fromJson(e as Map)) + .toList(), subjectSyntaxTypesSupported: json['subject_syntax_types_supported'] as List?, tokenEndpoint: json['token_endpoint'] as String?, @@ -54,6 +57,7 @@ Map _$OpenIdConfigurationToJson( 'authorization_servers': instance.authorizationServers, 'credential_endpoint': instance.credentialEndpoint, 'credential_issuer': instance.credentialIssuer, + 'display': instance.display, 'subject_syntax_types_supported': instance.subjectSyntaxTypesSupported, 'token_endpoint': instance.tokenEndpoint, 'batch_endpoint': instance.batchEndpoint,