@@ -1858,17 +1858,16 @@ public struct Fido2CredentialNewView {
1858
1858
public let keyAlgorithm : String
1859
1859
public let keyCurve : String
1860
1860
public let rpId : String
1861
- public let userHandle : Data ?
1861
+ public let userHandle : String ?
1862
1862
public let userName : String ?
1863
1863
public let counter : String
1864
1864
public let rpName : String ?
1865
1865
public let userDisplayName : String ?
1866
- public let discoverable : String
1867
1866
public let creationDate : DateTime
1868
1867
1869
1868
// Default memberwise initializers are never public by default, so we
1870
1869
// declare one manually.
1871
- public init ( credentialId: String , keyType: String , keyAlgorithm: String , keyCurve: String , rpId: String , userHandle: Data ? , userName: String ? , counter: String , rpName: String ? , userDisplayName: String ? , discoverable : String , creationDate: DateTime ) {
1870
+ public init ( credentialId: String , keyType: String , keyAlgorithm: String , keyCurve: String , rpId: String , userHandle: String ? , userName: String ? , counter: String , rpName: String ? , userDisplayName: String ? , creationDate: DateTime ) {
1872
1871
self . credentialId = credentialId
1873
1872
self . keyType = keyType
1874
1873
self . keyAlgorithm = keyAlgorithm
@@ -1879,7 +1878,6 @@ public struct Fido2CredentialNewView {
1879
1878
self . counter = counter
1880
1879
self . rpName = rpName
1881
1880
self . userDisplayName = userDisplayName
1882
- self . discoverable = discoverable
1883
1881
self . creationDate = creationDate
1884
1882
}
1885
1883
}
@@ -1918,9 +1916,6 @@ extension Fido2CredentialNewView: Equatable, Hashable {
1918
1916
if lhs. userDisplayName != rhs. userDisplayName {
1919
1917
return false
1920
1918
}
1921
- if lhs. discoverable != rhs. discoverable {
1922
- return false
1923
- }
1924
1919
if lhs. creationDate != rhs. creationDate {
1925
1920
return false
1926
1921
}
@@ -1938,7 +1933,6 @@ extension Fido2CredentialNewView: Equatable, Hashable {
1938
1933
hasher. combine ( counter)
1939
1934
hasher. combine ( rpName)
1940
1935
hasher. combine ( userDisplayName)
1941
- hasher. combine ( discoverable)
1942
1936
hasher. combine ( creationDate)
1943
1937
}
1944
1938
}
@@ -1953,12 +1947,11 @@ public struct FfiConverterTypeFido2CredentialNewView: FfiConverterRustBuffer {
1953
1947
keyAlgorithm: FfiConverterString . read ( from: & buf) ,
1954
1948
keyCurve: FfiConverterString . read ( from: & buf) ,
1955
1949
rpId: FfiConverterString . read ( from: & buf) ,
1956
- userHandle: FfiConverterOptionData . read ( from: & buf) ,
1950
+ userHandle: FfiConverterOptionString . read ( from: & buf) ,
1957
1951
userName: FfiConverterOptionString . read ( from: & buf) ,
1958
1952
counter: FfiConverterString . read ( from: & buf) ,
1959
1953
rpName: FfiConverterOptionString . read ( from: & buf) ,
1960
1954
userDisplayName: FfiConverterOptionString . read ( from: & buf) ,
1961
- discoverable: FfiConverterString . read ( from: & buf) ,
1962
1955
creationDate: FfiConverterTypeDateTime . read ( from: & buf)
1963
1956
)
1964
1957
}
@@ -1969,12 +1962,11 @@ public struct FfiConverterTypeFido2CredentialNewView: FfiConverterRustBuffer {
1969
1962
FfiConverterString . write ( value. keyAlgorithm, into: & buf)
1970
1963
FfiConverterString . write ( value. keyCurve, into: & buf)
1971
1964
FfiConverterString . write ( value. rpId, into: & buf)
1972
- FfiConverterOptionData . write ( value. userHandle, into: & buf)
1965
+ FfiConverterOptionString . write ( value. userHandle, into: & buf)
1973
1966
FfiConverterOptionString . write ( value. userName, into: & buf)
1974
1967
FfiConverterString . write ( value. counter, into: & buf)
1975
1968
FfiConverterOptionString . write ( value. rpName, into: & buf)
1976
1969
FfiConverterOptionString . write ( value. userDisplayName, into: & buf)
1977
- FfiConverterString . write ( value. discoverable, into: & buf)
1978
1970
FfiConverterTypeDateTime . write ( value. creationDate, into: & buf)
1979
1971
}
1980
1972
}
@@ -1996,7 +1988,7 @@ public struct Fido2CredentialView {
1996
1988
public let keyCurve : String
1997
1989
public let keyValue : EncString
1998
1990
public let rpId : String
1999
- public let userHandle : Data ?
1991
+ public let userHandle : String ?
2000
1992
public let userName : String ?
2001
1993
public let counter : String
2002
1994
public let rpName : String ?
@@ -2006,7 +1998,7 @@ public struct Fido2CredentialView {
2006
1998
2007
1999
// Default memberwise initializers are never public by default, so we
2008
2000
// declare one manually.
2009
- public init ( credentialId: String , keyType: String , keyAlgorithm: String , keyCurve: String , keyValue: EncString , rpId: String , userHandle: Data ? , userName: String ? , counter: String , rpName: String ? , userDisplayName: String ? , discoverable: String , creationDate: DateTime ) {
2001
+ public init ( credentialId: String , keyType: String , keyAlgorithm: String , keyCurve: String , keyValue: EncString , rpId: String , userHandle: String ? , userName: String ? , counter: String , rpName: String ? , userDisplayName: String ? , discoverable: String , creationDate: DateTime ) {
2010
2002
self . credentialId = credentialId
2011
2003
self . keyType = keyType
2012
2004
self . keyAlgorithm = keyAlgorithm
@@ -2097,7 +2089,7 @@ public struct FfiConverterTypeFido2CredentialView: FfiConverterRustBuffer {
2097
2089
keyCurve: FfiConverterString . read ( from: & buf) ,
2098
2090
keyValue: FfiConverterTypeEncString . read ( from: & buf) ,
2099
2091
rpId: FfiConverterString . read ( from: & buf) ,
2100
- userHandle: FfiConverterOptionData . read ( from: & buf) ,
2092
+ userHandle: FfiConverterOptionString . read ( from: & buf) ,
2101
2093
userName: FfiConverterOptionString . read ( from: & buf) ,
2102
2094
counter: FfiConverterString . read ( from: & buf) ,
2103
2095
rpName: FfiConverterOptionString . read ( from: & buf) ,
@@ -2114,7 +2106,7 @@ public struct FfiConverterTypeFido2CredentialView: FfiConverterRustBuffer {
2114
2106
FfiConverterString . write ( value. keyCurve, into: & buf)
2115
2107
FfiConverterTypeEncString . write ( value. keyValue, into: & buf)
2116
2108
FfiConverterString . write ( value. rpId, into: & buf)
2117
- FfiConverterOptionData . write ( value. userHandle, into: & buf)
2109
+ FfiConverterOptionString . write ( value. userHandle, into: & buf)
2118
2110
FfiConverterOptionString . write ( value. userName, into: & buf)
2119
2111
FfiConverterString . write ( value. counter, into: & buf)
2120
2112
FfiConverterOptionString . write ( value. rpName, into: & buf)
@@ -3885,27 +3877,6 @@ fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
3885
3877
}
3886
3878
}
3887
3879
3888
- fileprivate struct FfiConverterOptionData : FfiConverterRustBuffer {
3889
- typealias SwiftType = Data ?
3890
-
3891
- public static func write( _ value: SwiftType , into buf: inout [ UInt8 ] ) {
3892
- guard let value = value else {
3893
- writeInt ( & buf, Int8 ( 0 ) )
3894
- return
3895
- }
3896
- writeInt ( & buf, Int8 ( 1 ) )
3897
- FfiConverterData . write ( value, into: & buf)
3898
- }
3899
-
3900
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> SwiftType {
3901
- switch try readInt ( & buf) as Int8 {
3902
- case 0 : return nil
3903
- case 1 : return try FfiConverterData . read ( from: & buf)
3904
- default : throw UniffiInternalError . unexpectedOptionalTag
3905
- }
3906
- }
3907
- }
3908
-
3909
3880
fileprivate struct FfiConverterOptionTypeCard : FfiConverterRustBuffer {
3910
3881
typealias SwiftType = Card ?
3911
3882
0 commit comments