@@ -19089,6 +19089,10 @@ public struct TracingConfiguration {
19089
19089
* If set, configures rotated log files where to write additional logs.
19090
19090
*/
19091
19091
public var writeToFiles: TracingFileConfiguration?
19092
+ /**
19093
+ * If set, the Sentry DSN to use for error reporting.
19094
+ */
19095
+ public var sentryDsn: String?
19092
19096
19093
19097
// Default memberwise initializers are never public by default, so we
19094
19098
// declare one manually.
@@ -19111,12 +19115,16 @@ public struct TracingConfiguration {
19111
19115
*/writeToStdoutOrSystem: Bool,
19112
19116
/**
19113
19117
* If set, configures rotated log files where to write additional logs.
19114
- */writeToFiles: TracingFileConfiguration?) {
19118
+ */writeToFiles: TracingFileConfiguration?,
19119
+ /**
19120
+ * If set, the Sentry DSN to use for error reporting.
19121
+ */sentryDsn: String?) {
19115
19122
self.logLevel = logLevel
19116
19123
self.traceLogPacks = traceLogPacks
19117
19124
self.extraTargets = extraTargets
19118
19125
self.writeToStdoutOrSystem = writeToStdoutOrSystem
19119
19126
self.writeToFiles = writeToFiles
19127
+ self.sentryDsn = sentryDsn
19120
19128
}
19121
19129
}
19122
19130
@@ -19139,6 +19147,9 @@ extension TracingConfiguration: Equatable, Hashable {
19139
19147
if lhs.writeToFiles != rhs.writeToFiles {
19140
19148
return false
19141
19149
}
19150
+ if lhs.sentryDsn != rhs.sentryDsn {
19151
+ return false
19152
+ }
19142
19153
return true
19143
19154
}
19144
19155
@@ -19148,6 +19159,7 @@ extension TracingConfiguration: Equatable, Hashable {
19148
19159
hasher.combine(extraTargets)
19149
19160
hasher.combine(writeToStdoutOrSystem)
19150
19161
hasher.combine(writeToFiles)
19162
+ hasher.combine(sentryDsn)
19151
19163
}
19152
19164
}
19153
19165
@@ -19160,7 +19172,8 @@ public struct FfiConverterTypeTracingConfiguration: FfiConverterRustBuffer {
19160
19172
traceLogPacks: FfiConverterSequenceTypeTraceLogPacks.read(from: &buf),
19161
19173
extraTargets: FfiConverterSequenceString.read(from: &buf),
19162
19174
writeToStdoutOrSystem: FfiConverterBool.read(from: &buf),
19163
- writeToFiles: FfiConverterOptionTypeTracingFileConfiguration.read(from: &buf)
19175
+ writeToFiles: FfiConverterOptionTypeTracingFileConfiguration.read(from: &buf),
19176
+ sentryDsn: FfiConverterOptionString.read(from: &buf)
19164
19177
)
19165
19178
}
19166
19179
@@ -19170,6 +19183,7 @@ public struct FfiConverterTypeTracingConfiguration: FfiConverterRustBuffer {
19170
19183
FfiConverterSequenceString.write(value.extraTargets, into: &buf)
19171
19184
FfiConverterBool.write(value.writeToStdoutOrSystem, into: &buf)
19172
19185
FfiConverterOptionTypeTracingFileConfiguration.write(value.writeToFiles, into: &buf)
19186
+ FfiConverterOptionString.write(value.sentryDsn, into: &buf)
19173
19187
}
19174
19188
}
19175
19189
@@ -30734,6 +30748,11 @@ public enum WidgetEventFilter {
30734
30748
*/
30735
30749
case stateWithTypeAndStateKey(eventType: String, stateKey: String
30736
30750
)
30751
+ /**
30752
+ * Matches to-device events with the given `event_type`.
30753
+ */
30754
+ case toDevice(eventType: String
30755
+ )
30737
30756
}
30738
30757
30739
30758
@@ -30756,6 +30775,9 @@ public struct FfiConverterTypeWidgetEventFilter: FfiConverterRustBuffer {
30756
30775
case 4: return .stateWithTypeAndStateKey(eventType: try FfiConverterString.read(from: &buf), stateKey: try FfiConverterString.read(from: &buf)
30757
30776
)
30758
30777
30778
+ case 5: return .toDevice(eventType: try FfiConverterString.read(from: &buf)
30779
+ )
30780
+
30759
30781
default: throw UniffiInternalError.unexpectedEnumCase
30760
30782
}
30761
30783
}
@@ -30784,6 +30806,11 @@ public struct FfiConverterTypeWidgetEventFilter: FfiConverterRustBuffer {
30784
30806
FfiConverterString.write(eventType, into: &buf)
30785
30807
FfiConverterString.write(stateKey, into: &buf)
30786
30808
30809
+
30810
+ case let .toDevice(eventType):
30811
+ writeInt(&buf, Int32(5))
30812
+ FfiConverterString.write(eventType, into: &buf)
30813
+
30787
30814
}
30788
30815
}
30789
30816
}
@@ -36123,6 +36150,16 @@ public func createCaptionEdit(caption: String?, formattedCaption: FormattedBody?
36123
36150
)
36124
36151
})
36125
36152
}
36153
+ /**
36154
+ * Set the global enablement level for the Sentry layer (after the logs have
36155
+ * been set up).
36156
+ */
36157
+ public func enableSentryLogging(enabled: Bool) {try! rustCall() {
36158
+ uniffi_matrix_sdk_ffi_fn_func_enable_sentry_logging(
36159
+ FfiConverterBool.lower(enabled),$0
36160
+ )
36161
+ }
36162
+ }
36126
36163
public func genTransactionId() -> String {
36127
36164
return try! FfiConverterString.lift(try! rustCall() {
36128
36165
uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id($0
@@ -36183,7 +36220,7 @@ public func getElementCallRequiredPermissions(ownUserId: String, ownDeviceId: St
36183
36220
* the NSE process on iOS). Otherwise, this can remain false, in which case a
36184
36221
* multithreaded tokio runtime will be set up.
36185
36222
*/
36186
- public func initPlatform(config: TracingConfiguration, useLightweightTokioRuntime: Bool) {try! rustCall( ) {
36223
+ public func initPlatform(config: TracingConfiguration, useLightweightTokioRuntime: Bool)throws {try rustCallWithError(FfiConverterTypeClientError.lift ) {
36187
36224
uniffi_matrix_sdk_ffi_fn_func_init_platform(
36188
36225
FfiConverterTypeTracingConfiguration.lower(config),
36189
36226
FfiConverterBool.lower(useLightweightTokioRuntime),$0
@@ -36387,6 +36424,9 @@ private var initializationResult: InitializationResult = {
36387
36424
if (uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit() != 33992) {
36388
36425
return InitializationResult.apiChecksumMismatch
36389
36426
}
36427
+ if (uniffi_matrix_sdk_ffi_checksum_func_enable_sentry_logging() != 53125) {
36428
+ return InitializationResult.apiChecksumMismatch
36429
+ }
36390
36430
if (uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id() != 15808) {
36391
36431
return InitializationResult.apiChecksumMismatch
36392
36432
}
@@ -36396,7 +36436,7 @@ private var initializationResult: InitializationResult = {
36396
36436
if (uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions() != 30181) {
36397
36437
return InitializationResult.apiChecksumMismatch
36398
36438
}
36399
- if (uniffi_matrix_sdk_ffi_checksum_func_init_platform() != 35062 ) {
36439
+ if (uniffi_matrix_sdk_ffi_checksum_func_init_platform() != 11113 ) {
36400
36440
return InitializationResult.apiChecksumMismatch
36401
36441
}
36402
36442
if (uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() != 54845) {
0 commit comments