@@ -368,9 +368,9 @@ private struct FfiConverterString: FfiConverter {
368
368
369
369
public protocol FirefoxAccountProtocol {
370
370
func toJson( ) throws -> String
371
- func beginOauthFlow( scopes: [ String ] , entrypoint: String , metrics : MetricsParams ? ) throws -> String
371
+ func beginOauthFlow( scopes: [ String ] , entrypoint: String ) throws -> String
372
372
func getPairingAuthorityUrl( ) throws -> String
373
- func beginPairingFlow( pairingUrl: String , scopes: [ String ] , entrypoint: String , metrics : MetricsParams ? ) throws -> String
373
+ func beginPairingFlow( pairingUrl: String , scopes: [ String ] , entrypoint: String ) throws -> String
374
374
func completeOauthFlow( code: String , state: String ) throws
375
375
func checkAuthorizationStatus( ) throws -> AuthorizationInfo
376
376
func disconnect( )
@@ -440,13 +440,12 @@ public class FirefoxAccount: FirefoxAccountProtocol {
440
440
)
441
441
}
442
442
443
- public func beginOauthFlow( scopes: [ String ] , entrypoint: String , metrics : MetricsParams ? ) throws -> String {
443
+ public func beginOauthFlow( scopes: [ String ] , entrypoint: String ) throws -> String {
444
444
return try FfiConverterString . lift (
445
445
rustCallWithError ( FfiConverterTypeFxaError . lift) {
446
446
uniffi_fxa_client_fn_method_firefoxaccount_begin_oauth_flow ( self . pointer,
447
447
FfiConverterSequenceString . lower ( scopes) ,
448
- FfiConverterString . lower ( entrypoint) ,
449
- FfiConverterOptionTypeMetricsParams . lower ( metrics) , $0)
448
+ FfiConverterString . lower ( entrypoint) , $0)
450
449
}
451
450
)
452
451
}
@@ -459,14 +458,13 @@ public class FirefoxAccount: FirefoxAccountProtocol {
459
458
)
460
459
}
461
460
462
- public func beginPairingFlow( pairingUrl: String , scopes: [ String ] , entrypoint: String , metrics : MetricsParams ? ) throws -> String {
461
+ public func beginPairingFlow( pairingUrl: String , scopes: [ String ] , entrypoint: String ) throws -> String {
463
462
return try FfiConverterString . lift (
464
463
rustCallWithError ( FfiConverterTypeFxaError . lift) {
465
464
uniffi_fxa_client_fn_method_firefoxaccount_begin_pairing_flow ( self . pointer,
466
465
FfiConverterString . lower ( pairingUrl) ,
467
466
FfiConverterSequenceString . lower ( scopes) ,
468
- FfiConverterString . lower ( entrypoint) ,
469
- FfiConverterOptionTypeMetricsParams . lower ( metrics) , $0)
467
+ FfiConverterString . lower ( entrypoint) , $0)
470
468
}
471
469
)
472
470
}
@@ -1362,49 +1360,6 @@ public func FfiConverterTypeLocalDevice_lower(_ value: LocalDevice) -> RustBuffe
1362
1360
return FfiConverterTypeLocalDevice . lower ( value)
1363
1361
}
1364
1362
1365
- public struct MetricsParams {
1366
- public var parameters : [ String : String ]
1367
-
1368
- // Default memberwise initializers are never public by default, so we
1369
- // declare one manually.
1370
- public init ( parameters: [ String : String ] ) {
1371
- self . parameters = parameters
1372
- }
1373
- }
1374
-
1375
- extension MetricsParams : Equatable , Hashable {
1376
- public static func == ( lhs: MetricsParams , rhs: MetricsParams ) -> Bool {
1377
- if lhs. parameters != rhs. parameters {
1378
- return false
1379
- }
1380
- return true
1381
- }
1382
-
1383
- public func hash( into hasher: inout Hasher ) {
1384
- hasher. combine ( parameters)
1385
- }
1386
- }
1387
-
1388
- public struct FfiConverterTypeMetricsParams : FfiConverterRustBuffer {
1389
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> MetricsParams {
1390
- return try MetricsParams (
1391
- parameters: FfiConverterDictionaryStringString . read ( from: & buf)
1392
- )
1393
- }
1394
-
1395
- public static func write( _ value: MetricsParams , into buf: inout [ UInt8 ] ) {
1396
- FfiConverterDictionaryStringString . write ( value. parameters, into: & buf)
1397
- }
1398
- }
1399
-
1400
- public func FfiConverterTypeMetricsParams_lift( _ buf: RustBuffer ) throws -> MetricsParams {
1401
- return try FfiConverterTypeMetricsParams . lift ( buf)
1402
- }
1403
-
1404
- public func FfiConverterTypeMetricsParams_lower( _ value: MetricsParams ) -> RustBuffer {
1405
- return FfiConverterTypeMetricsParams . lower ( value)
1406
- }
1407
-
1408
1363
public struct Profile {
1409
1364
public var uid : String
1410
1365
public var email : String
@@ -2116,27 +2071,6 @@ private struct FfiConverterOptionTypeDevicePushSubscription: FfiConverterRustBuf
2116
2071
}
2117
2072
}
2118
2073
2119
- private struct FfiConverterOptionTypeMetricsParams : FfiConverterRustBuffer {
2120
- typealias SwiftType = MetricsParams ?
2121
-
2122
- public static func write( _ value: SwiftType , into buf: inout [ UInt8 ] ) {
2123
- guard let value = value else {
2124
- writeInt ( & buf, Int8 ( 0 ) )
2125
- return
2126
- }
2127
- writeInt ( & buf, Int8 ( 1 ) )
2128
- FfiConverterTypeMetricsParams . write ( value, into: & buf)
2129
- }
2130
-
2131
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> SwiftType {
2132
- switch try readInt ( & buf) as Int8 {
2133
- case 0 : return nil
2134
- case 1 : return try FfiConverterTypeMetricsParams . read ( from: & buf)
2135
- default : throw UniffiInternalError . unexpectedOptionalTag
2136
- }
2137
- }
2138
- }
2139
-
2140
2074
private struct FfiConverterOptionTypeScopedKey : FfiConverterRustBuffer {
2141
2075
typealias SwiftType = ScopedKey ?
2142
2076
@@ -2311,29 +2245,6 @@ private struct FfiConverterSequenceTypeIncomingDeviceCommand: FfiConverterRustBu
2311
2245
}
2312
2246
}
2313
2247
2314
- private struct FfiConverterDictionaryStringString : FfiConverterRustBuffer {
2315
- public static func write( _ value: [ String : String ] , into buf: inout [ UInt8 ] ) {
2316
- let len = Int32 ( value. count)
2317
- writeInt ( & buf, len)
2318
- for (key, value) in value {
2319
- FfiConverterString . write ( key, into: & buf)
2320
- FfiConverterString . write ( value, into: & buf)
2321
- }
2322
- }
2323
-
2324
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> [ String : String ] {
2325
- let len : Int32 = try readInt ( & buf)
2326
- var dict = [ String: String] ( )
2327
- dict. reserveCapacity ( Int ( len) )
2328
- for _ in 0 ..< len {
2329
- let key = try FfiConverterString . read ( from: & buf)
2330
- let value = try FfiConverterString . read ( from: & buf)
2331
- dict [ key] = value
2332
- }
2333
- return dict
2334
- }
2335
- }
2336
-
2337
2248
private enum InitializationResult {
2338
2249
case ok
2339
2250
case contractVersionMismatch
@@ -2353,13 +2264,13 @@ private var initializationResult: InitializationResult {
2353
2264
if uniffi_fxa_client_checksum_method_firefoxaccount_to_json ( ) != 52613 {
2354
2265
return InitializationResult . apiChecksumMismatch
2355
2266
}
2356
- if uniffi_fxa_client_checksum_method_firefoxaccount_begin_oauth_flow ( ) != 4486 {
2267
+ if uniffi_fxa_client_checksum_method_firefoxaccount_begin_oauth_flow ( ) != 6930 {
2357
2268
return InitializationResult . apiChecksumMismatch
2358
2269
}
2359
2270
if uniffi_fxa_client_checksum_method_firefoxaccount_get_pairing_authority_url ( ) != 63297 {
2360
2271
return InitializationResult . apiChecksumMismatch
2361
2272
}
2362
- if uniffi_fxa_client_checksum_method_firefoxaccount_begin_pairing_flow ( ) != 10680 {
2273
+ if uniffi_fxa_client_checksum_method_firefoxaccount_begin_pairing_flow ( ) != 37847 {
2363
2274
return InitializationResult . apiChecksumMismatch
2364
2275
}
2365
2276
if uniffi_fxa_client_checksum_method_firefoxaccount_complete_oauth_flow ( ) != 56647 {
0 commit comments