@@ -427,22 +427,6 @@ fileprivate struct FfiConverterInt64: FfiConverterPrimitive {
427
427
}
428
428
}
429
429
430
- #if swift(>=5.8)
431
- @_documentation ( visibility: private)
432
- #endif
433
- fileprivate struct FfiConverterDouble : FfiConverterPrimitive {
434
- typealias FfiType = Double
435
- typealias SwiftType = Double
436
-
437
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> Double {
438
- return try lift ( readDouble ( & buf) )
439
- }
440
-
441
- public static func write( _ value: Double , into buf: inout [ UInt8 ] ) {
442
- writeDouble ( & buf, lower ( value) )
443
- }
444
- }
445
-
446
430
#if swift(>=5.8)
447
431
@_documentation ( visibility: private)
448
432
#endif
@@ -1398,12 +1382,8 @@ public func FfiConverterTypeNimbusTargetingHelper_lower(_ value: NimbusTargeting
1398
1382
1399
1383
public protocol RecordedContext : AnyObject {
1400
1384
1401
- func getEventQueries( ) -> [ String : String ]
1402
-
1403
1385
func record( )
1404
1386
1405
- func setEventQueryValues( eventQueryValues: [ String : Double ] )
1406
-
1407
1387
func toJson( ) -> JsonObject
1408
1388
1409
1389
}
@@ -1457,26 +1437,12 @@ open class RecordedContextImpl:
1457
1437
1458
1438
1459
1439
1460
- open func getEventQueries( ) -> [ String : String ] {
1461
- return try ! FfiConverterDictionaryStringString . lift ( try ! rustCall ( ) {
1462
- uniffi_nimbus_fn_method_recordedcontext_get_event_queries ( self . uniffiClonePointer ( ) , $0
1463
- )
1464
- } )
1465
- }
1466
-
1467
1440
open func record( ) { try ! rustCall ( ) {
1468
1441
uniffi_nimbus_fn_method_recordedcontext_record ( self . uniffiClonePointer ( ) , $0
1469
1442
)
1470
1443
}
1471
1444
}
1472
1445
1473
- open func setEventQueryValues( eventQueryValues: [ String : Double ] ) { try ! rustCall ( ) {
1474
- uniffi_nimbus_fn_method_recordedcontext_set_event_query_values ( self . uniffiClonePointer ( ) ,
1475
- FfiConverterDictionaryStringDouble . lower ( eventQueryValues) , $0
1476
- )
1477
- }
1478
- }
1479
-
1480
1446
open func toJson( ) -> JsonObject {
1481
1447
return try ! FfiConverterTypeJsonObject . lift ( try ! rustCall ( ) {
1482
1448
uniffi_nimbus_fn_method_recordedcontext_to_json ( self . uniffiClonePointer ( ) , $0
@@ -1500,28 +1466,6 @@ fileprivate struct UniffiCallbackInterfaceRecordedContext {
1500
1466
// Create the VTable using a series of closures.
1501
1467
// Swift automatically converts these into C callback functions.
1502
1468
static var vtable : UniffiVTableCallbackInterfaceRecordedContext = UniffiVTableCallbackInterfaceRecordedContext (
1503
- getEventQueries: { (
1504
- uniffiHandle: UInt64 ,
1505
- uniffiOutReturn: UnsafeMutablePointer < RustBuffer > ,
1506
- uniffiCallStatus: UnsafeMutablePointer < RustCallStatus >
1507
- ) in
1508
- let makeCall = {
1509
- ( ) throws -> [ String : String ] in
1510
- guard let uniffiObj = try ? FfiConverterTypeRecordedContext . handleMap. get ( handle: uniffiHandle) else {
1511
- throw UniffiInternalError . unexpectedStaleHandle
1512
- }
1513
- return uniffiObj. getEventQueries (
1514
- )
1515
- }
1516
-
1517
-
1518
- let writeReturn = { uniffiOutReturn. pointee = FfiConverterDictionaryStringString . lower ( $0) }
1519
- uniffiTraitInterfaceCall (
1520
- callStatus: uniffiCallStatus,
1521
- makeCall: makeCall,
1522
- writeReturn: writeReturn
1523
- )
1524
- } ,
1525
1469
record: { (
1526
1470
uniffiHandle: UInt64 ,
1527
1471
uniffiOutReturn: UnsafeMutableRawPointer ,
@@ -1537,30 +1481,6 @@ fileprivate struct UniffiCallbackInterfaceRecordedContext {
1537
1481
}
1538
1482
1539
1483
1540
- let writeReturn = { ( ) }
1541
- uniffiTraitInterfaceCall (
1542
- callStatus: uniffiCallStatus,
1543
- makeCall: makeCall,
1544
- writeReturn: writeReturn
1545
- )
1546
- } ,
1547
- setEventQueryValues: { (
1548
- uniffiHandle: UInt64 ,
1549
- eventQueryValues: RustBuffer ,
1550
- uniffiOutReturn: UnsafeMutableRawPointer ,
1551
- uniffiCallStatus: UnsafeMutablePointer < RustCallStatus >
1552
- ) in
1553
- let makeCall = {
1554
- ( ) throws -> ( ) in
1555
- guard let uniffiObj = try ? FfiConverterTypeRecordedContext . handleMap. get ( handle: uniffiHandle) else {
1556
- throw UniffiInternalError . unexpectedStaleHandle
1557
- }
1558
- return uniffiObj. setEventQueryValues (
1559
- eventQueryValues: try FfiConverterDictionaryStringDouble . lift ( eventQueryValues)
1560
- )
1561
- }
1562
-
1563
-
1564
1484
let writeReturn = { ( ) }
1565
1485
uniffiTraitInterfaceCall (
1566
1486
callStatus: uniffiCallStatus,
@@ -2558,8 +2478,6 @@ public enum NimbusError {
2558
2478
2559
2479
case UniFfiCallbackError( message: String )
2560
2480
2561
- case RegexError( message: String )
2562
-
2563
2481
}
2564
2482
2565
2483
@@ -2676,10 +2594,6 @@ public struct FfiConverterTypeNimbusError: FfiConverterRustBuffer {
2676
2594
message: try FfiConverterString . read ( from: & buf)
2677
2595
)
2678
2596
2679
- case 26 : return . RegexError(
2680
- message: try FfiConverterString . read ( from: & buf)
2681
- )
2682
-
2683
2597
2684
2598
default : throw UniffiInternalError . unexpectedEnumCase
2685
2599
}
@@ -2741,8 +2655,6 @@ public struct FfiConverterTypeNimbusError: FfiConverterRustBuffer {
2741
2655
writeInt ( & buf, Int32 ( 24 ) )
2742
2656
case . UniFfiCallbackError( _ /* message is ignored*/) :
2743
2657
writeInt ( & buf, Int32 ( 25 ) )
2744
- case . RegexError( _ /* message is ignored*/) :
2745
- writeInt ( & buf, Int32 ( 26 ) )
2746
2658
2747
2659
2748
2660
}
@@ -3208,58 +3120,6 @@ fileprivate struct FfiConverterSequenceTypeExperimentBranch: FfiConverterRustBuf
3208
3120
}
3209
3121
}
3210
3122
3211
- #if swift(>=5.8)
3212
- @_documentation ( visibility: private)
3213
- #endif
3214
- fileprivate struct FfiConverterDictionaryStringDouble : FfiConverterRustBuffer {
3215
- public static func write( _ value: [ String : Double ] , into buf: inout [ UInt8 ] ) {
3216
- let len = Int32 ( value. count)
3217
- writeInt ( & buf, len)
3218
- for (key, value) in value {
3219
- FfiConverterString . write ( key, into: & buf)
3220
- FfiConverterDouble . write ( value, into: & buf)
3221
- }
3222
- }
3223
-
3224
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> [ String : Double ] {
3225
- let len : Int32 = try readInt ( & buf)
3226
- var dict = [ String: Double] ( )
3227
- dict. reserveCapacity ( Int ( len) )
3228
- for _ in 0 ..< len {
3229
- let key = try FfiConverterString . read ( from: & buf)
3230
- let value = try FfiConverterDouble . read ( from: & buf)
3231
- dict [ key] = value
3232
- }
3233
- return dict
3234
- }
3235
- }
3236
-
3237
- #if swift(>=5.8)
3238
- @_documentation ( visibility: private)
3239
- #endif
3240
- fileprivate struct FfiConverterDictionaryStringString : FfiConverterRustBuffer {
3241
- public static func write( _ value: [ String : String ] , into buf: inout [ UInt8 ] ) {
3242
- let len = Int32 ( value. count)
3243
- writeInt ( & buf, len)
3244
- for (key, value) in value {
3245
- FfiConverterString . write ( key, into: & buf)
3246
- FfiConverterString . write ( value, into: & buf)
3247
- }
3248
- }
3249
-
3250
- public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> [ String : String ] {
3251
- let len : Int32 = try readInt ( & buf)
3252
- var dict = [ String: String] ( )
3253
- dict. reserveCapacity ( Int ( len) )
3254
- for _ in 0 ..< len {
3255
- let key = try FfiConverterString . read ( from: & buf)
3256
- let value = try FfiConverterString . read ( from: & buf)
3257
- dict [ key] = value
3258
- }
3259
- return dict
3260
- }
3261
- }
3262
-
3263
3123
3264
3124
3265
3125
@@ -3304,17 +3164,6 @@ public func FfiConverterTypeJsonObject_lift(_ value: RustBuffer) throws -> JsonO
3304
3164
public func FfiConverterTypeJsonObject_lower( _ value: JsonObject ) -> RustBuffer {
3305
3165
return FfiConverterTypeJsonObject . lower ( value)
3306
3166
}
3307
- /**
3308
- * A test utility used to validate event queries against the jexl evaluator.
3309
- *
3310
- * This method should only be used in tests.
3311
- */
3312
- public func validateEventQueries( recordedContext: RecordedContext ) throws { try rustCallWithError ( FfiConverterTypeNimbusError . lift) {
3313
- uniffi_nimbus_fn_func_validate_event_queries (
3314
- FfiConverterTypeRecordedContext . lower ( recordedContext) , $0
3315
- )
3316
- }
3317
- }
3318
3167
3319
3168
private enum InitializationResult {
3320
3169
case ok
@@ -3331,9 +3180,6 @@ private var initializationResult: InitializationResult = {
3331
3180
if bindings_contract_version != scaffolding_contract_version {
3332
3181
return InitializationResult . contractVersionMismatch
3333
3182
}
3334
- if ( uniffi_nimbus_checksum_func_validate_event_queries ( ) != 42746 ) {
3335
- return InitializationResult . apiChecksumMismatch
3336
- }
3337
3183
if ( uniffi_nimbus_checksum_method_nimbusclient_advance_event_time ( ) != 40755 ) {
3338
3184
return InitializationResult . apiChecksumMismatch
3339
3185
}
@@ -3421,15 +3267,9 @@ private var initializationResult: InitializationResult = {
3421
3267
if ( uniffi_nimbus_checksum_method_nimbustargetinghelper_eval_jexl ( ) != 42395 ) {
3422
3268
return InitializationResult . apiChecksumMismatch
3423
3269
}
3424
- if ( uniffi_nimbus_checksum_method_recordedcontext_get_event_queries ( ) != 28844 ) {
3425
- return InitializationResult . apiChecksumMismatch
3426
- }
3427
3270
if ( uniffi_nimbus_checksum_method_recordedcontext_record ( ) != 5916 ) {
3428
3271
return InitializationResult . apiChecksumMismatch
3429
3272
}
3430
- if ( uniffi_nimbus_checksum_method_recordedcontext_set_event_query_values ( ) != 40199 ) {
3431
- return InitializationResult . apiChecksumMismatch
3432
- }
3433
3273
if ( uniffi_nimbus_checksum_method_recordedcontext_to_json ( ) != 530 ) {
3434
3274
return InitializationResult . apiChecksumMismatch
3435
3275
}
0 commit comments