@@ -1069,8 +1069,13 @@ public protocol ClientProtocol : AnyObject {
10691069 * However, it should be noted that when providing a user ID as a hint
10701070 * for MAS (with no upstream provider), then the format to use is defined
10711071 * by [MSC4198]: https://github.com/matrix-org/matrix-spec-proposals/pull/4198
1072+ *
1073+ * * `device_id` - The unique ID that will be associated with the session.
1074+ * If not set, a random one will be generated. It can be an existing
1075+ * device ID from a previous login call. Note that this should be done
1076+ * only if the client also holds the corresponding encryption keys.
10721077 */
1073- func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?) async throws -> OAuthAuthorizationData
1078+ func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?, deviceId: String? ) async throws -> OAuthAuthorizationData
10741079
10751080 func userId() throws -> String
10761081
@@ -2674,14 +2679,19 @@ open func uploadMedia(mimeType: String, data: Data, progressWatcher: ProgressWat
26742679 * However, it should be noted that when providing a user ID as a hint
26752680 * for MAS (with no upstream provider), then the format to use is defined
26762681 * by [MSC4198]: https://github.com/matrix-org/matrix-spec-proposals/pull/4198
2682+ *
2683+ * * `device_id` - The unique ID that will be associated with the session.
2684+ * If not set, a random one will be generated. It can be an existing
2685+ * device ID from a previous login call. Note that this should be done
2686+ * only if the client also holds the corresponding encryption keys.
26772687 */
2678- open func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?)async throws -> OAuthAuthorizationData {
2688+ open func urlForOidc(oidcConfiguration: OidcConfiguration, prompt: OidcPrompt?, loginHint: String?, deviceId: String? )async throws -> OAuthAuthorizationData {
26792689 return
26802690 try await uniffiRustCallAsync(
26812691 rustFutureFunc: {
26822692 uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc(
26832693 self.uniffiClonePointer(),
2684- FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),FfiConverterOptionTypeOidcPrompt.lower(prompt),FfiConverterOptionString.lower(loginHint)
2694+ FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),FfiConverterOptionTypeOidcPrompt.lower(prompt),FfiConverterOptionString.lower(loginHint),FfiConverterOptionString.lower(deviceId)
26852695 )
26862696 },
26872697 pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer,
@@ -37207,7 +37217,7 @@ private var initializationResult: InitializationResult = {
3720737217 if (uniffi_matrix_sdk_ffi_checksum_method_client_upload_media() != 51195) {
3720837218 return InitializationResult.apiChecksumMismatch
3720937219 }
37210- if (uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc() != 28386 ) {
37220+ if (uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc() != 34524 ) {
3721137221 return InitializationResult.apiChecksumMismatch
3721237222 }
3721337223 if (uniffi_matrix_sdk_ffi_checksum_method_client_user_id() != 40531) {
0 commit comments