diff --git a/native/native_rust_library/src/lib.rs b/native/native_rust_library/src/lib.rs --- a/native/native_rust_library/src/lib.rs +++ b/native/native_rust_library/src/lib.rs @@ -1399,9 +1399,7 @@ new_device_list: update_payload, }; - identity_client - .update_device_list_for_user(update_request) - .await?; + identity_client.update_device_list(update_request).await?; Ok(()) } diff --git a/services/identity/src/grpc_services/authenticated.rs b/services/identity/src/grpc_services/authenticated.rs --- a/services/identity/src/grpc_services/authenticated.rs +++ b/services/identity/src/grpc_services/authenticated.rs @@ -376,7 +376,7 @@ })) } - async fn update_device_list_for_user( + async fn update_device_list( &self, request: tonic::Request, ) -> Result, tonic::Status> { diff --git a/shared/protos/identity_auth.proto b/shared/protos/identity_auth.proto --- a/shared/protos/identity_auth.proto +++ b/shared/protos/identity_auth.proto @@ -55,7 +55,7 @@ rpc GetDeviceListForUser(GetDeviceListRequest) returns (GetDeviceListResponse) {} - rpc UpdateDeviceListForUser(UpdateDeviceListRequest) returns + rpc UpdateDeviceList(UpdateDeviceListRequest) returns (identity.unauth.Empty) {} } diff --git a/web/protobufs/identity-auth-client.cjs b/web/protobufs/identity-auth-client.cjs --- a/web/protobufs/identity-auth-client.cjs +++ b/web/protobufs/identity-auth-client.cjs @@ -694,8 +694,8 @@ * !proto.identity.auth.UpdateDeviceListRequest, * !proto.identity.unauth.Empty>} */ -const methodDescriptor_IdentityClientService_UpdateDeviceListForUser = new grpc.web.MethodDescriptor( - '/identity.auth.IdentityClientService/UpdateDeviceListForUser', +const methodDescriptor_IdentityClientService_UpdateDeviceList = new grpc.web.MethodDescriptor( + '/identity.auth.IdentityClientService/UpdateDeviceList', grpc.web.MethodType.UNARY, proto.identity.auth.UpdateDeviceListRequest, identity_unauth_pb.Empty, @@ -720,13 +720,13 @@ * @return {!grpc.web.ClientReadableStream|undefined} * The XHR Node Readable Stream */ -proto.identity.auth.IdentityClientServiceClient.prototype.updateDeviceListForUser = +proto.identity.auth.IdentityClientServiceClient.prototype.updateDeviceList = function(request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + - '/identity.auth.IdentityClientService/UpdateDeviceListForUser', + '/identity.auth.IdentityClientService/UpdateDeviceList', request, metadata || {}, - methodDescriptor_IdentityClientService_UpdateDeviceListForUser, + methodDescriptor_IdentityClientService_UpdateDeviceList, callback); }; @@ -739,13 +739,13 @@ * @return {!Promise} * Promise that resolves to the response */ -proto.identity.auth.IdentityClientServicePromiseClient.prototype.updateDeviceListForUser = +proto.identity.auth.IdentityClientServicePromiseClient.prototype.updateDeviceList = function(request, metadata) { return this.client_.unaryCall(this.hostname_ + - '/identity.auth.IdentityClientService/UpdateDeviceListForUser', + '/identity.auth.IdentityClientService/UpdateDeviceList', request, metadata || {}, - methodDescriptor_IdentityClientService_UpdateDeviceListForUser); + methodDescriptor_IdentityClientService_UpdateDeviceList); }; diff --git a/web/protobufs/identity-auth-client.cjs.flow b/web/protobufs/identity-auth-client.cjs.flow --- a/web/protobufs/identity-auth-client.cjs.flow +++ b/web/protobufs/identity-auth-client.cjs.flow @@ -81,7 +81,7 @@ response: identityAuthStructs.GetDeviceListResponse) => void ): grpcWeb.ClientReadableStream; - updateDeviceListForUser( + updateDeviceList( request: identityAuthStructs.UpdateDeviceListRequest, metadata: grpcWeb.Metadata | void, callback: (err: grpcWeb.RpcError, @@ -144,7 +144,7 @@ metadata?: grpcWeb.Metadata ): Promise; - updateDeviceListForUser( + updateDeviceList( request: identityAuthStructs.UpdateDeviceListRequest, metadata?: grpcWeb.Metadata ): Promise;