@@ -7420,15 +7420,39 @@ public struct MdlReaderResponseData {
74207420 * Contains the namespaces for the mDL directly, without top-level doc types
74217421 */
74227422 public var verifiedResponse : [ String : [ String : MDocItem ] ]
7423+ /**
7424+ * Outcome of issuer authentication.
7425+ */
7426+ public var issuerAuthentication : AuthenticationStatus
7427+ /**
7428+ * Outcome of device authentication.
7429+ */
7430+ public var deviceAuthentication : AuthenticationStatus
7431+ /**
7432+ * Errors that occurred during response processing.
7433+ */
7434+ public var errors : String ?
74237435
74247436 // Default memberwise initializers are never public by default, so we
74257437 // declare one manually.
74267438 public init ( state: MdlSessionManager ,
74277439 /**
74287440 * Contains the namespaces for the mDL directly, without top-level doc types
7429- */verifiedResponse: [ String : [ String : MDocItem ] ] ) {
7441+ */verifiedResponse: [ String : [ String : MDocItem ] ] ,
7442+ /**
7443+ * Outcome of issuer authentication.
7444+ */issuerAuthentication: AuthenticationStatus ,
7445+ /**
7446+ * Outcome of device authentication.
7447+ */deviceAuthentication: AuthenticationStatus ,
7448+ /**
7449+ * Errors that occurred during response processing.
7450+ */errors: String ? ) {
74307451 self . state = state
74317452 self . verifiedResponse = verifiedResponse
7453+ self . issuerAuthentication = issuerAuthentication
7454+ self . deviceAuthentication = deviceAuthentication
7455+ self . errors = errors
74327456 }
74337457}
74347458
@@ -7439,13 +7463,19 @@ public struct FfiConverterTypeMDLReaderResponseData: FfiConverterRustBuffer {
74397463 return
74407464 try MdlReaderResponseData (
74417465 state: FfiConverterTypeMDLSessionManager . read ( from: & buf) ,
7442- verifiedResponse: FfiConverterDictionaryStringDictionaryStringTypeMDocItem . read ( from: & buf)
7466+ verifiedResponse: FfiConverterDictionaryStringDictionaryStringTypeMDocItem . read ( from: & buf) ,
7467+ issuerAuthentication: FfiConverterTypeAuthenticationStatus . read ( from: & buf) ,
7468+ deviceAuthentication: FfiConverterTypeAuthenticationStatus . read ( from: & buf) ,
7469+ errors: FfiConverterOptionString . read ( from: & buf)
74437470 )
74447471 }
74457472
74467473 public static func write( _ value: MdlReaderResponseData , into buf: inout [ UInt8 ] ) {
74477474 FfiConverterTypeMDLSessionManager . write ( value. state, into: & buf)
74487475 FfiConverterDictionaryStringDictionaryStringTypeMDocItem . write ( value. verifiedResponse, into: & buf)
7476+ FfiConverterTypeAuthenticationStatus . write ( value. issuerAuthentication, into: & buf)
7477+ FfiConverterTypeAuthenticationStatus . write ( value. deviceAuthentication, into: & buf)
7478+ FfiConverterOptionString . write ( value. errors, into: & buf)
74497479 }
74507480}
74517481
@@ -7720,6 +7750,68 @@ public func FfiConverterTypeStatusMessage_lower(_ value: StatusMessage) -> RustB
77207750 return FfiConverterTypeStatusMessage . lower ( value)
77217751}
77227752
7753+ // Note that we don't yet support `indirect` for enums.
7754+ // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
7755+
7756+ public enum AuthenticationStatus {
7757+
7758+ case valid
7759+ case invalid
7760+ case unchecked
7761+ }
7762+
7763+
7764+ public struct FfiConverterTypeAuthenticationStatus : FfiConverterRustBuffer {
7765+ typealias SwiftType = AuthenticationStatus
7766+
7767+ public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> AuthenticationStatus {
7768+ let variant : Int32 = try readInt ( & buf)
7769+ switch variant {
7770+
7771+ case 1 : return . valid
7772+
7773+ case 2 : return . invalid
7774+
7775+ case 3 : return . unchecked
7776+
7777+ default : throw UniffiInternalError . unexpectedEnumCase
7778+ }
7779+ }
7780+
7781+ public static func write( _ value: AuthenticationStatus , into buf: inout [ UInt8 ] ) {
7782+ switch value {
7783+
7784+
7785+ case . valid:
7786+ writeInt ( & buf, Int32 ( 1 ) )
7787+
7788+
7789+ case . invalid:
7790+ writeInt ( & buf, Int32 ( 2 ) )
7791+
7792+
7793+ case . unchecked:
7794+ writeInt ( & buf, Int32 ( 3 ) )
7795+
7796+ }
7797+ }
7798+ }
7799+
7800+
7801+ public func FfiConverterTypeAuthenticationStatus_lift( _ buf: RustBuffer ) throws -> AuthenticationStatus {
7802+ return try FfiConverterTypeAuthenticationStatus . lift ( buf)
7803+ }
7804+
7805+ public func FfiConverterTypeAuthenticationStatus_lower( _ value: AuthenticationStatus ) -> RustBuffer {
7806+ return FfiConverterTypeAuthenticationStatus . lower ( value)
7807+ }
7808+
7809+
7810+
7811+ extension AuthenticationStatus : Equatable , Hashable { }
7812+
7813+
7814+
77237815// Note that we don't yet support `indirect` for enums.
77247816// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
77257817/**
0 commit comments