@@ -2235,6 +2235,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2235
2235
2236
2236
2237
2237
2238
+
2239
+
2238
2240
2239
2241
2240
2242
@@ -2350,6 +2352,8 @@ internal interface UniffiLib : Library {
2350
2352
): Long
2351
2353
fun uniffi_matrix_sdk_ffi_fn_method_client_get_url(`ptr`: Pointer,`url`: RustBuffer.ByValue,
2352
2354
): Long
2355
+ fun uniffi_matrix_sdk_ffi_fn_method_client_get_url_preview_json(`ptr`: Pointer,`url`: RustBuffer.ByValue,
2356
+ ): Long
2353
2357
fun uniffi_matrix_sdk_ffi_fn_method_client_homeserver(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2354
2358
): RustBuffer.ByValue
2355
2359
fun uniffi_matrix_sdk_ffi_fn_method_client_homeserver_login_details(`ptr`: Pointer,
@@ -3512,6 +3516,8 @@ internal interface UniffiLib : Library {
3512
3516
): Short
3513
3517
fun uniffi_matrix_sdk_ffi_checksum_method_client_get_url(
3514
3518
): Short
3519
+ fun uniffi_matrix_sdk_ffi_checksum_method_client_get_url_preview_json(
3520
+ ): Short
3515
3521
fun uniffi_matrix_sdk_ffi_checksum_method_client_homeserver(
3516
3522
): Short
3517
3523
fun uniffi_matrix_sdk_ffi_checksum_method_client_homeserver_login_details(
@@ -4445,6 +4451,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4445
4451
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_get_url() != 50489.toShort()) {
4446
4452
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4447
4453
}
4454
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_get_url_preview_json() != 54853.toShort()) {
4455
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4456
+ }
4448
4457
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_homeserver() != 26427.toShort()) {
4449
4458
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4450
4459
}
@@ -6232,6 +6241,11 @@ public interface ClientInterface {
6232
6241
*/
6233
6242
suspend fun `getUrl`(`url`: kotlin.String): kotlin.String
6234
6243
6244
+ /**
6245
+ * SC: request url preview json data from the homeserver
6246
+ */
6247
+ suspend fun `getUrlPreviewJson`(`url`: kotlin.String): kotlin.String
6248
+
6235
6249
/**
6236
6250
* The homeserver this client is configured to use.
6237
6251
*/
@@ -7130,6 +7144,30 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
7130
7144
}
7131
7145
7132
7146
7147
+ /**
7148
+ * SC: request url preview json data from the homeserver
7149
+ */
7150
+ @Throws(ClientException::class)
7151
+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
7152
+ override suspend fun `getUrlPreviewJson`(`url`: kotlin.String) : kotlin.String {
7153
+ return uniffiRustCallAsync(
7154
+ callWithPointer { thisPtr ->
7155
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_get_url_preview_json(
7156
+ thisPtr,
7157
+ FfiConverterString.lower(`url`),
7158
+ )
7159
+ },
7160
+ { future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
7161
+ { future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
7162
+ { future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
7163
+ // lift function
7164
+ { FfiConverterString.lift(it) },
7165
+ // Error FFI converter
7166
+ ClientException.ErrorHandler,
7167
+ )
7168
+ }
7169
+
7170
+
7133
7171
/**
7134
7172
* The homeserver this client is configured to use.
7135
7173
*/override fun `homeserver`(): kotlin.String {
0 commit comments